Pin Freemind to the taskbar in Windows7

Published 2010-04-08, 09:55

The normal Freemind shortcut goes directly to Freemind.exe, but as the execution takes place in Java you can’t pin this shortcut to the taskbar in Windows 7. Another icon will appear with the same icon. If you try to pin this icon, Freemind won’t start or the icon will change to the generic Java icon.

The solution to the problem is to change the target of the shortcut from […]/Freemind.exe to this:
"C:\Program Files\Java\jre6\bin\javaw.exe" -jar lib/freemind.jar
Now you can pin the program to the taskbar in Win7 and use it as every other program.

And yes, this tip works with almost all Java programs that are delivered with working .jar files.

Topic(s): Kram No comments - :(

Programming is hard

Published 2010-01-16, 19:10

http://writing.bryanwoods4e.com/

Topic(s): Kram No comments - :(

MySQL: temporäre Tabellen

Published 2009-06-23, 23:57

Große Queries, die sowieso per ‚Using temporary‘ anzeigen, dass im Hintergrund eine temporäre Tabelle erstellt wird, lassen sich oft wunderbar zwei- oder dreiteilen indem man erst eine temporäre Tabelle erstellt und dort nun dann die Abfragen ausführt. Besonders effektiv ist das, wenn Teil 1 des Queries die Anzahl der zu betrachtenden Zeilen stark einschränkt, Teil 2 dann jedoch nochmal heftig sortieren muss.

Topic(s): MySQL No comments - :(

MySQL: Delete a subset in a table quickly

Published 2009-06-21, 14:04

Heute mal wieder über einen netten MySQL-Hack gestolpert:

The trick is, that INNER JOIN will ’shrink‘ the LargeTable down to the size of the TemporarySmallTable and the delete will operate on that smaller set only, since USING will reference to the joined table.

http://blog.mkoebele.de/2008/07/mysql-delete-subset-in-table-quickly.html
http://dev.mysql.com/doc/refman/5.0/en/delete.html#c9536

Mehr davon bitte…

Topic(s): Link, MySQL, Technik No comments - :(

Elastische Tabstopps

Published 2008-10-16, 11:26

Verdammt interessant, aber gerade keine Zeit hier nochmal komplett separat etwas darüber zu schreiben, deshalb der Verweis auf mein Privat-Blog:

Elastische Tabstopps

Topic(s): Kram No comments - :(

PHP: UTF-16 zu UTF-8 konvertieren

Published 2008-09-08, 11:18

Und die zweite Heldentat gleich hinterher:
Eine kleine PHP-Funktion (evtl. unvollständig, bei meinem Anwendungsfall hat es ausgereicht) zum konvertieren von UTF-16-Daten zu UTF-8:

function utf16_to_utf8($str) {
$c0 = ord($str[0]);
$c1 = ord($str[1]);
if ($c0 == 0xFE && $c1 == 0xFF) {
$be = true;
} else if ($c0 == 0xFF && $c1 == 0xFE) {
$be = false;
} else {
return $str;
}
$str = substr($str, 2);
$len = strlen($str);
$dec = '';
for ($i = 0; $i < $len; $i += 2) { $c = ($be) ? ord($str[$i]) << 8 | ord($str[$i + 1]) : ord($str[$i + 1]) << 8 | ord($str[$i]); if ($c >= 0x0001 && $c <= 0x007F) { $dec .= chr($c); } else if ($c > 0x07FF) {
$dec .= chr(0xE0 | (($c >> 12) & 0x0F));
$dec .= chr(0x80 | (($c >> 6) & 0x3F));
$dec .= chr(0x80 | (($c >> 0) & 0x3F));
} else {
$dec .= chr(0xC0 | (($c >> 6) & 0x1F));
$dec .= chr(0x80 | (($c >> 0) & 0x3F));
}
}
return $dec;
}
Quelle: http://www.moddular.org/log/utf16-to-utf8

Update:
Manchmal sollte ich erst nachdenken, und dann nach Code googlen. Das hier reicht natürlich auch vollkommen aus und ist sicher besser getestet:
$utf8 = mb_convert_encoding($utf16, 'UTF-8', 'UTF-16LE');

Topic(s): Kram 1 single comment - :/

File-Encoding erkennen

Published 2008-09-07, 20:00

Mein Held für heute: Mindprod mit seinem Encoding Recogniser. Applet kurz laden lassen, Datei auswählen und einfach Encodings durchprobieren. Funktioniert wunderbar.

Topic(s): Link, Technik No comments - :(

Lösung: Maus zu langsam in Adobe Photoshop/Fireworks/… CS3

Published 2008-08-12, 11:08

Systemsteuerung -> Maus -> Registerkarte „Bewegung“ -> Haken bei „Beschleunigung in Spielen deaktivieren“ entfernen

Und schon hat man die normale Mausgeschwindigkeit auch in CS3-Programmen.

Quelle: http://www.psd-tutorials.de/modules/Forum/11_photoshop/25234-photoshop-cs3-maus-zu-langsam.html

Topic(s): Link, Notiz 2 comments - :)

MySQL: The table ‚foo‘ is full

Published 2008-03-31, 14:14

Ich muss zugeben, ich war erstmal ziemlich platt. Aber, es gibt ja zum Glück Erklärungen und (mutmaßliche) Lösungen:

http://dev.mysql.com/doc/refman/5.0/en/full-table.html
http://dev.mysql.com/doc/refman/5.1/de/full-table.html
http://jeremy.zawodny.com/blog/archives/000796.html

Das von Jeremy Zawodny vorgeschlagene

alter table foo max_rows = 200000000000 avg_row_length = 50;

funktioniert auch wunderbar. Nun passen nochmal ein paar Gigabyte rein.

Topic(s): Link, MySQL, Notiz 2 comments - :)

IE7 em + float Bug

Published 2008-03-04, 00:47

Immer wieder schön was einem bei der täglichen Arbeit so über den Weg läuft. Stark vereinfacht:

<div style="float:left"><img src=...></div>
<div id="text">Erste Zeile Text. <em>Zweite Zeile Text</em></div>

Das führte im konkreten Fall im IE7 dazu, daß ab der zweiten Zeile der Hintergrund des text-Div vor das floatende Div links gelegt wurde. Natürlich war der verursachende Code lange nicht so einfach, und so habe ich dann doch locker 30 Minuten gesucht und probiert bis ich auf die Idee kam, dass das em der Auslöser sein könnte.

Glücklicherweise hatte schon 2006 jemand dieses Problem:

The other (are you ready for this?) is to remove the <em> element.

I am perplexed. Does anyone have a clue as to what is going on?

Und ein weiterer Leidensgenosse konnte eine passende Lösung liefern:

Yeah. It’s an em bug 🙂 IE6 has em bugs, too. Try this:
em {zoom: 100%; overflow: hidden;}

http://archivist.incutio.com/viewlist/css-discuss/81647

Topic(s): (X)HTML, CSS, Link 1 single comment - :/

20 queries. 0,095 seconds.