Archiv

Archiv für Juni, 2010

WordPress 3.0 “Thelonious”

KategorienBlogging Tags: ,

Project: Steam Activities!

About: Steam Activities!

Show Steam Activities on your Website. On the left Side you can see an Example. The information will be refreshed every hour.

The Project parses the Steam Community Site by the User given ID and extracts all relevant Informations.

With the received Data a JavaScript is generated that the User can implement on his own Site or Blog.

The Script outputs the generated HTML Code with document.write on the Page.

To easy archive the needed Data from the Community Site the PHP Simple HTML DOM Parser is used.

About PHP Simple HTML DOM Parser.

  • A HTML DOM parser written in PHP5+ let you manipulate HTML in a very easy way!
  • Require PHP 5+.
  • Supports invalid HTML.
  • Find tags on an HTML page with selectors just like jQuery.
  • Extract contents from HTML in a single line.
KategorienBlogging Tags: , ,

AutoKey PPA and Icon Installer for Ubuntu

Go to the up to date Post!

Since the current AutoKey Version shipped with Ubuntu Linux 10.04 Lucid Lynx is an outdated one, i found an easy way to get a newer one through the PPA of Chris Dekter from the AutoKey Project.

If you are not so familiar with installing through PPA i made a set of install scripts. You can also easy switch the theme icons i mentioned earlier.

Make sure you remove any installed autokey packages before you install the PPA Version!

Do not forget to restart AutoKey after you made any changes.

Download

AutoKey Install Helper Package

Scripts

install_autokey-gtk.sh

#!/bin/bash

mkdir backup
cp ~/.config/autokey/* backup/
gksu add-apt-repository ppa:cdekter/ppa
sudo apt-get install autokey-common autokey-gtk

install_autokey_ambiance.sh

#!/bin/bash

autokeynotifier="/usr/share/pyshared/autokey/gtkui/notifier.py"
autokeyicons="/usr/share/pixmaps/"
themeicon="akicon-status-ambiance.png"

command="cp $themeicon $autokeyicons"
eval gksu "$command"

pattern=`awk -F\" '/STATUS_ICON_FILE = /{print $2}' $autokeynotifier`

command="sed -i 's,$pattern,$autokeyicons$themeicon,g' $autokeynotifier"
eval sudo "$command"

install_autokey_radiance.sh

#!/bin/bash

autokeynotifier="/usr/share/pyshared/autokey/gtkui/notifier.py"
autokeyicons="/usr/share/pixmaps/"
themeicon="akicon-status-radiance.png"

command="cp $themeicon $autokeyicons"
eval gksu "$command"

pattern=`awk -F\" '/STATUS_ICON_FILE = /{print $2}' $autokeynotifier`

command="sed -i 's,$pattern,$autokeyicons$themeicon,g' $autokeynotifier"
eval sudo "$command"

install_autokey_default.sh

#!/bin/bash

autokeynotifier="/usr/share/pyshared/autokey/gtkui/notifier.py"
autokeyicons="/usr/share/pixmaps/"
themeicon="akicon.png"

gksu echo

pattern=`awk -F\" '/STATUS_ICON_FILE = /{print $2}' $autokeynotifier`

command="sed -i 's,$pattern,$autokeyicons$themeicon,g' $autokeynotifier"
eval sudo "$command"

Mehr…

KategorienLinux Tags: , , , ,