Dual-boot a hackintosh with Windows 7
Veröffentlicht am 7.7.2010, 10:26 Uhr
http://thebackpackr.com/hackintoshing-with-snow-leopard/
http://www.chip.de/news/Microsoft-Tool-Windows-7-vom-USB-Stick-installieren_38622482.html
Keine Kommentare - :(Pin Freemind to the taskbar in Windows7
Veröffentlicht am 8.4.2010, 09:55 Uhr
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.
Keine Kommentare - :(Programming is hard
Veröffentlicht am 16.1.2010, 19:10 Uhr
http://writing.bryanwoods4e.com/
Keine Kommentare - :(MySQL: temporäre Tabellen
Veröffentlicht am 23.6.2009, 23:57 Uhr
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.
Keine Kommentare - :(MySQL: Delete a subset in a table quickly
Veröffentlicht am 21.6.2009, 14:04 Uhr
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…
Keine Kommentare - :(Elastische Tabstopps
Veröffentlicht am 16.10.2008, 11:26 Uhr
Verdammt interessant, aber gerade keine Zeit hier nochmal komplett separat etwas darüber zu schreiben, deshalb der Verweis auf mein Privat-Blog:
http://blog.janpiotrowski.de/elastische-tabstopps/
Keine Kommentare - :(PHP: UTF-16 zu UTF-8 konvertieren
Veröffentlicht am 8.9.2008, 11:18 Uhr
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) {Quelle: http://www.moddular.org/log/utf16-to-utf8
$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 >= 0×0001 && $c <= 0x007F) {
$dec .= chr($c);
} else if ($c > 0×07FF) {
$dec .= chr(0xE0 | (($c >> 12) & 0×0F));
$dec .= chr(0×80 | (($c >> 6) & 0×3F));
$dec .= chr(0×80 | (($c >> 0) & 0×3F));
} else {
$dec .= chr(0xC0 | (($c >> 6) & 0×1F));
$dec .= chr(0×80 | (($c >> 0) & 0×3F));
}
}
return $dec;
}
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');
1 einsamer Kommentar - :/File-Encoding erkennen
Veröffentlicht am 7.9.2008, 20:00 Uhr
Mein Held für heute: Mindprod mit seinem Encoding Recogniser. Applet kurz laden lassen, Datei auswählen und einfach Encodings durchprobieren. Funktioniert wunderbar.
Keine Kommentare - :(Lösung: Maus zu langsam in Adobe Photoshop/Fireworks/… CS3
Veröffentlicht am 12.8.2008, 11:08 Uhr
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
2 Kommentare - :)MySQL: The table ‘foo’ is full
Veröffentlicht am 31.3.2008, 14:14 Uhr
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.
2 Kommentare - :)