rss

Getting LaTeX to work on Windows

After I got the following errors:

1
! LaTeX Error: Cannot determine size of graphic in filename.jpg (no BoundingBox).

when trying:

1
2
3
\usepackage{graphics}
...
\includegraphics{filename.jpg}

And those errors on a .tex file (a friend gave me):

1
2
3
I found no \citation commands
I found no \bibdata command
I found no \bibstyle command

and several other issues with my latex editors on windows machines, I finally figured out to convert that tex to pdf.

First of all I installed the miktex latex command line tools. I downloaded basic version here, worked fine.

TexnicCenter and LEd can't manage to edit UTF-8 files. So I needed to stick with texmaker (which works also on linux and mac os). To get utf-8 working there, I switched to Options -> Configure Texmaker and turned Font to utf-8.

After I got those issues with includegraphics tags, I changed the 'fast translation'-key F1 to PdfLatex -> ViewPDF (in options) and: It workes well, even with those images.

In open source, Articles, Windows & LaTeX By DracoBlue @ 21:23 23.08.2007

Embedding Array fields as Attributes in Smarty

If you want to use an arrayfields value as attribute for a function, you can't use:

1
{func var="test $foo[bar] test"} <-- sees $foo[bar]

like described in the manual.
You have to use this instead:

1
{func var="test `$foo.bar` test"} <-- sees $foo[bar]
In open source, php & smarty By DracoBlue @ 13:20 21.08.2007

Fix SA-MP 0.2.1 Internet/Serverlist

Looks like Kyeman is continueing the official site, so this list isn't in use anymore. Thanks for using!

<strike>Open
<span>C:\WINDOWS\system32\<wbr></wbr>drivers\etc\hosts</span></strike>

<strike>And append:

1
81.169.180.114 master.sa-mp.com

</strike>

<strike>Thats it. (Hint: You need logged in as windows administrator to do that)</strike>

<strike>This serverlist will be removed as soon as sa-mp is relaunched by the devs.</strike>

In dracoblue.net By DracoBlue @ 13:49 24.07.2007

Www-Archives and File-Archives

Today I finally added Www-Archives and File-Archives and the required makeAvailable-functions.

This generally means, that you can share your packages on a webserver somewhere and they'll be downloaded on demand only as soon as you try to install them.

The whole system is using sqlite3 now as database, and runs quite fast in tests.

In Project & wnp By DracoBlue @ 19:36 18.07.2007

DUDB 2.4 and DUtils 1.10

Today I updated DUDB and DUtils with new functionality.

DUDB 2.4 has now udb_renameUser(oldnick[],newnick[]) added and DUtils 1.10 has now a new function called frenametextfile(filename[],newfilename[]). I added both of them, because fputchar is still broken in sa-mp 0.2 on linux machines, so dudb uses the secure fcopytextfile instead of the fcopy which only works on windows.

Please update both, if you are using Dini, too.

In open source, pawn, dutils, dudb & dini By DracoBlue @ 19:22 12.07.2007

Escaping { and } or javascript in smarty

When using php's smarty you sometimes want to use { and } (curly braces) in .tpl files.

For such things you can use the {literal}{what you want to do}<!-- {} -->{/literal} statement.

Detailed explanation at the smarty documentation page.

In open source, php & smarty By DracoBlue @ 10:54 09.07.2007