Fix ugly fonts in Firefox 5
Veröffentlicht am 27.6.2011, 09:40 Uhr
- about:config
gfx.direct2d.disabledauf true setzen
Secure XAMPP: only local connections
Veröffentlicht am 25.3.2011, 12:23 Uhr
1) Open file xampp\apache\conf\httpd.conf and replace
Listen 80
with
Listen 127.0.0.1:80
2) Open file xampp\apache\conf\extra\httpd-ssl.conf and replace
Listen 443
with
Listen 127.0.0.1:443
3) Open file xampp\mysql\bin\my.cnf|.ini and put in
bind-address=localhost
directly after [mysqld] (NOT [mysql]!)
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
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.
Programming is hard
Veröffentlicht am 16.1.2010, 19:10 Uhr
http://writing.bryanwoods4e.com/
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…
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/
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 >= 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;
}
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');
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.
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
