bloginfo('name');

bloginfo('description');

Archives Posts

Ubuntu: Is the intrepid ibex still jumping?

Oktober 31st, 2008 by Blu:RayNe

Or update day: it still jumps over the rocks, but seems it got one foot hurt: keyboard mapping doesn’t work for me anymore – the arrow keys are not mapped rightly.

At least Ubuntu is a big distro, so there are already tickets for it:

https://bugs.launchpad.net/ubuntu/+bug/255861

https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/255008

Damn. I should have waited another week, but i don’t want to go back anymore. At least all other things still seem to work and my Nautilus now has tabs. The update took about 40mins and worked fine. Good job!

setxkbmap -model evdev
setxkbmap -model evdev -layout de -option lv3:ralt_switch

Hmmm.. works… partly :(

If i just knew that Fedora works now better. I tested out the latest version a month ago and it made up a very stable and fresh impression. Perhaps i’ll give it another try one day.

Well, i guess i’ll make up a new version of my xmodmap.rc now :/

Filed under Linux having No Comments »

Archives Posts

Custom fonts: text replacement via Canvas and VML

Oktober 28th, 2008 by Blu:RayNe

Still we have to wait until @font-face is ready in all modern browsers. We had text-replacement by Flash, by images created on the server and by half-working SVG so far. Now it’s time for another approach: text replacement via pure Javascript!

Basically the script draws JSON font outlines converted via a Perl-Script from TTF and uses both VML and Canvas for rendering. Only problem: text cannot be selected and copied to the clipboard anymore.

There’s work left to be done. Planned improvements:

  • Full support for @font-face rules, if possible
  • Support for hinting (this seems like a viable option)
  • Speed improvements, especially for IE
  • Work around Opera’s getComputedStyle() issues
  • Possible support for SVG backend
  • Work around needing to specify ‘typeface-js’ as a class name
  • More CSS support, including :hover and x-height
  • React to DOMNode* events to support DHTML

 

Great job: It’s working on all major modern and semi-modern browser (MSIE7). I’ll be using that! Thanks!

More here: http://typeface.neocracy.org/

Filed under CSS, JavaScript having No Comments »

Archives Posts

Little bash snippet to kill locking queries from MySQL

Oktober 9th, 2008 by Blu:RayNe

I just tell you: optimize your tables! I will not give anymore support for bad code, stupid database layout and i am not going to debug your messy code. If you don’t get the introductino chapters of MySQL – stay away from me! Yep, it was just one of these days…

#!/bin/bash
echo "Killing MySQL Queries…"
MYSQL="$(which mysql)"
MyUSER="username"
MyPASS="password"

for pid in `mysqladmin proc  -u$MyUSER -p$MyPASS | grep -i Query  | grep -i lock|awk ‘{ print $2;}’`
do
        query="KILL $pid;"
        echo "> $query";
        $MYSQL -u$MyUSER  -p$MyPASS -e "$query"
done;

Filed under Datenbanken having No Comments »