<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6375710026482353996</id><updated>2012-02-17T07:52:46.469+01:00</updated><category term='mobile'/><category term='resize'/><category term='Slackawre'/><category term='pm'/><category term='package'/><category term='phpunit'/><category term='apt-get'/><category term='Bug'/><category term='nyromodal'/><category term='Windows'/><category term='cups'/><category term='automated build'/><category term='copy'/><category term='Sencha Touch'/><category term='printer'/><category term='lightbox'/><category term='recursiv'/><category term='wicd-gtk'/><category term='Error'/><category term='packages'/><category term='CSS'/><category term='shortcode'/><category term='overclock'/><category term='xwindow'/><category term='Alsa'/><category term='CRUD'/><category term='battery'/><category term='bash'/><category term='compile'/><category term='batch'/><category term='Headphonejack'/><category term='segfault'/><category term='desktop'/><category term='build'/><category term='Sound'/><category term='HTML'/><category term='coding'/><category term='Slackware'/><category term='Debug'/><category term='pear'/><category term='framework'/><category term='ubuntu'/><category term='wicd'/><category term='Alsaconf'/><category term='ls'/><category term='google'/><category term='Slackbuilds'/><category term='Microsoft'/><category term='javascript'/><category term='Windows Update'/><category term='github'/><category term='keycodes'/><category term='Chromium'/><category term='Shellscript'/><category term='programmer'/><category term='Tipps'/><category term='commands'/><category term='CPU'/><category term='Chrome'/><category term='helper'/><category term='browser'/><category term='class'/><category term='concept'/><category term='gist'/><category term='imagemagick'/><category term='tdd'/><category term='code'/><category term='image'/><category term='menu'/><category term='rc.d'/><category term='Windows 7'/><category term='xfce4'/><category term='tgz'/><category term='dry'/><category term='php'/><category term='ajax'/><category term='wicd-client'/><category term='Extension'/><category term='customize'/><category term='console.log()'/><category term='gtk'/><category term='oop'/><category term='buildfile'/><category term='opacity'/><category term='time'/><category term='source'/><category term='print'/><category term='clock'/><category term='webdeveloper toolbar'/><category term='Validation'/><category term='Linux'/><category term='kernel'/><category term='IE'/><category term='Alsactl'/><category term='Frequency'/><category term='cheatsheet'/><category term='Wiki'/><category term='x121e'/><title type='text'>powered by caffeine</title><subtitle type='html'>programmer: a device to convert coffee into software&lt;br&gt;
programmers: fixing other people's mistakes since 1908&lt;br&gt;
programmer: are expected to know how to do things they've never done before&lt;br&gt;and estimate how long they will take</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>37</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-5748194744870758169</id><published>2012-02-17T07:29:00.007+01:00</published><updated>2012-02-17T07:52:46.476+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='shortcode'/><category scheme='http://www.blogger.com/atom/ns#' term='dry'/><category scheme='http://www.blogger.com/atom/ns#' term='code'/><title type='text'>No need for temporary variable (Javascript)</title><content type='html'>Assume you have a function, and that function has a param (called 'config' herein) which may be a string or an object. Inside your function, you check for the type and if it's a string, you want to make this strings value a property of your object.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;My first, fast approach was this one:&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style="background-color: #f4cccc; font-family: 'Courier New', Courier, monospace;"&gt;var url = config;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="background-color: #f4cccc; font-family: 'Courier New', Courier, monospace;"&gt;config &amp;nbsp;= {};&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="background-color: #f4cccc; font-family: 'Courier New', Courier, monospace;"&gt;config.videoLink = url;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="background-color: #f4cccc; font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;My second approach looked like this:&lt;br /&gt;&lt;div&gt;&lt;div&gt;&lt;span style="background-color: #fff2cc; font-family: 'Courier New', Courier, monospace;"&gt;var url = config;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="background-color: #fff2cc; font-family: 'Courier New', Courier, monospace;"&gt;config &amp;nbsp;= {videoLink: url};&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;I thought about what's happening in those statements and realized that the temporary variable 'url' is not needed, because javascript is executing the assignement from right to left, means I can override 'config' with an object that keeps the original value of config as a property. See this third &amp;amp; final approach:&lt;br /&gt;&lt;div&gt;&lt;span style="background-color: #d9ead3; font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="nx" style="color: #333333; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; white-space: pre;"&gt;config&lt;/span&gt;&lt;span style="color: #333333; line-height: 16px; white-space: pre;"&gt;  &lt;/span&gt;&lt;span class="o" style="color: #333333; font-weight: bold; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; white-space: pre;"&gt;=&lt;/span&gt;&lt;span style="color: #333333; line-height: 16px; white-space: pre;"&gt; &lt;/span&gt;&lt;span class="p" style="color: #333333; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; white-space: pre;"&gt;{&lt;/span&gt;&lt;span class="nx" style="color: #333333; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; white-space: pre;"&gt;videoHash&lt;/span&gt;&lt;span class="o" style="color: #333333; font-weight: bold; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; white-space: pre;"&gt;:&lt;/span&gt;&lt;span style="color: #333333; line-height: 16px; white-space: pre;"&gt; &lt;/span&gt;&lt;span class="nx" style="color: #333333; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; white-space: pre;"&gt;config&lt;/span&gt;&lt;span class="p" style="color: #333333; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; white-space: pre;"&gt;};&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;So Javascript builds the object, assigns the value of config (string) to videoHash and assigns this object to config, which now is a object as desired.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-5748194744870758169?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/5748194744870758169/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2012/02/no-need-for-temporary-variable.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/5748194744870758169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/5748194744870758169'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2012/02/no-need-for-temporary-variable.html' title='No need for temporary variable (Javascript)'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-2573937621347381551</id><published>2012-02-01T18:53:00.001+01:00</published><updated>2012-02-01T18:54:52.439+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='segfault'/><category scheme='http://www.blogger.com/atom/ns#' term='xfce4'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>xfce4-screenshooter 1.7.9 - Segmentation Fault on startup</title><content type='html'>When starting xfce4-screenshooter, there's an segmentation fault message and it (of course) doesn't start up. The solution is pretty simple:&lt;br /&gt;&lt;br /&gt;&lt;span style="-webkit-text-size-adjust: none; background-color: #d9ead3; white-space: pre-wrap;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;touch ~/.config/xfce4/xfce4-screenshooter&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="-webkit-text-size-adjust: none; white-space: pre-wrap;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Source:&amp;nbsp;&lt;a href="http://www.linuxquestions.org/questions/slackware-14/where-to-get-xfce4-8-goodies-etc-885538/#post4382696"&gt;http://www.linuxquestions.org/questions/slackware-14/where-to-get-xfce4-8-goodies-etc-885538/#post4382696&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-2573937621347381551?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/2573937621347381551/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2012/02/xfce4-screenshooter-179-segmentation.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/2573937621347381551'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/2573937621347381551'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2012/02/xfce4-screenshooter-179-segmentation.html' title='xfce4-screenshooter 1.7.9 - Segmentation Fault on startup'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-5129191868510877245</id><published>2012-01-21T23:35:00.001+01:00</published><updated>2012-01-21T23:35:20.730+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wicd'/><category scheme='http://www.blogger.com/atom/ns#' term='wicd-gtk'/><category scheme='http://www.blogger.com/atom/ns#' term='gtk'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='wicd-client'/><category scheme='http://www.blogger.com/atom/ns#' term='Slackware'/><title type='text'>wicd-gtk / wicd-client (tray) not starting, glib.GError: Unable to connect to server</title><content type='html'>Start wicd-client with '-n' - disable notifications and everything is fine. See source below if you want to use notifiations:&lt;br /&gt;&lt;br /&gt;Source:&amp;nbsp;&lt;a href="https://bbs.archlinux.org/viewtopic.php?id=108666"&gt;https://bbs.archlinux.org/viewtopic.php?id=108666&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-5129191868510877245?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/5129191868510877245/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2012/01/wicd-gtk-wicd-client-tray-not-starting.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/5129191868510877245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/5129191868510877245'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2012/01/wicd-gtk-wicd-client-tray-not-starting.html' title='wicd-gtk / wicd-client (tray) not starting, glib.GError: Unable to connect to server'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-2853333325714653106</id><published>2012-01-13T22:05:00.000+01:00</published><updated>2012-01-13T22:05:45.858+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Alsaconf'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Slackware'/><category scheme='http://www.blogger.com/atom/ns#' term='Alsactl'/><category scheme='http://www.blogger.com/atom/ns#' term='Headphonejack'/><category scheme='http://www.blogger.com/atom/ns#' term='Alsa'/><category scheme='http://www.blogger.com/atom/ns#' term='Sound'/><title type='text'>Headphonejack not working on x121 w. Slackware 13.37 - Kernel 2.6.37-6</title><content type='html'>Use alsaconf to create config file. Edit the created config file /etc/modprobe.d/sound.conf , add the following line:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;options snd-hda-intel model=thinkpad&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Save and either reload modules or reboot.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-2853333325714653106?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/2853333325714653106/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2012/01/headphonejack-not-working-on-x121-w.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/2853333325714653106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/2853333325714653106'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2012/01/headphonejack-not-working-on-x121-w.html' title='Headphonejack not working on x121 w. Slackware 13.37 - Kernel 2.6.37-6'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-4246285313990153494</id><published>2012-01-09T22:19:00.001+01:00</published><updated>2012-01-09T22:19:50.951+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xwindow'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='keycodes'/><category scheme='http://www.blogger.com/atom/ns#' term='kernel'/><title type='text'>Keycodes &amp; X</title><content type='html'>Cool tutorial on keycodes and how they are noticed by the kernel (&amp;amp; passed to X).&amp;nbsp;&lt;a href="http://fail2fail.com/archives/2-Hardware-Tasten-unter-Linux-unabhaengig-von-Desktop-Umgebung-nutzen.html"&gt;http://fail2fail.com/archives/2-Hardware-Tasten-unter-Linux-unabhaengig-von-Desktop-Umgebung-nutzen.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-4246285313990153494?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/4246285313990153494/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2012/01/keycodes-x.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/4246285313990153494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/4246285313990153494'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2012/01/keycodes-x.html' title='Keycodes &amp; X'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-3123060910154627933</id><published>2012-01-02T07:55:00.004+01:00</published><updated>2012-01-02T07:59:16.946+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='packages'/><category scheme='http://www.blogger.com/atom/ns#' term='Slackawre'/><category scheme='http://www.blogger.com/atom/ns#' term='Slackbuilds'/><category scheme='http://www.blogger.com/atom/ns#' term='source'/><category scheme='http://www.blogger.com/atom/ns#' term='Chrome'/><category scheme='http://www.blogger.com/atom/ns#' term='compile'/><category scheme='http://www.blogger.com/atom/ns#' term='Chromium'/><category scheme='http://www.blogger.com/atom/ns#' term='browser'/><title type='text'>Building latest Chromium on Slackware</title><content type='html'>Nice Slackbuild on Github, frequently updated:&lt;br /&gt;&lt;a href="https://github.com/yucatan/chromium"&gt;https://github.com/yucatan/chromium&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Edit: Don't forget to replace make with make -j2 in file chromium.SlackBuild on a dualcore system to use both cores. :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-3123060910154627933?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/3123060910154627933/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2012/01/building-latest-chromium-on-slackware.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/3123060910154627933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/3123060910154627933'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2012/01/building-latest-chromium-on-slackware.html' title='Building latest Chromium on Slackware'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-2343810209078700399</id><published>2012-01-01T18:52:00.001+01:00</published><updated>2012-01-01T18:52:25.042+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pm'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>pm-tools - dig deeper</title><content type='html'>Nice howto, even if it's for gentoo:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.gentoo.de/doc/de/power-management-guide.xml"&gt;http://www.gentoo.de/doc/de/power-management-guide.xml&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-2343810209078700399?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/2343810209078700399/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2012/01/pm-tools-dig-deeper.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/2343810209078700399'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/2343810209078700399'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2012/01/pm-tools-dig-deeper.html' title='pm-tools - dig deeper'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-1414305063348721703</id><published>2011-12-28T11:28:00.000+01:00</published><updated>2011-12-28T11:28:32.752+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='battery'/><category scheme='http://www.blogger.com/atom/ns#' term='xfce4'/><category scheme='http://www.blogger.com/atom/ns#' term='x121e'/><category scheme='http://www.blogger.com/atom/ns#' term='Slackware'/><title type='text'>Install xfce4-power-manager Slackware 13.37 - shows no Battery status</title><content type='html'>http://goodies.xfce.org/projects/applications/xfce4-power-manager needs upower (http://slackbuilds.org/repository/13.37/system/upower/) - install upower, restart power-manager and battery state is fine.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-1414305063348721703?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/1414305063348721703/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/12/install-xfce4-power-manager-slackware.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/1414305063348721703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/1414305063348721703'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/12/install-xfce4-power-manager-slackware.html' title='Install xfce4-power-manager Slackware 13.37 - shows no Battery status'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-2979726249807035363</id><published>2011-12-21T10:54:00.000+01:00</published><updated>2011-12-21T10:54:30.043+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><title type='text'>setTimeout() &amp;&amp; setInterval() scope problem solver</title><content type='html'>&lt;pre class="default prettyprint" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: left; vertical-align: baseline; width: auto;"&gt;&lt;code style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;This is so handy from time to time:&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre class="default prettyprint" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: left; vertical-align: baseline; width: auto;"&gt;&lt;code style="background-attachment: initial; background-clip: initial; background-color: #d9ead3; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;setInterval&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;(&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="kwd" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;    &lt;/span&gt;&lt;span class="kwd" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;function&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;() &lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;{&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;     &lt;/span&gt;&lt;span class="kwd" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;var&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; myVar &lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; document&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;getElementById&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;(&lt;/span&gt;&lt;span class="str" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: maroon; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;"givenID"&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;);&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;     setTimeout&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;(&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;         &lt;/span&gt;&lt;span class="kwd" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;function&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;() &lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;{&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;     &lt;/span&gt;&lt;span class="com" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: grey; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;// myVar is available because the inner closure &lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;     &lt;/span&gt;&lt;span class="com" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: grey; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;// gets the outer closures scope&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;     myVar&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;innerHTML &lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="str" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: maroon; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;"Junk"&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;;&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;        },&lt;/span&gt;&lt;span class="lit" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: maroon; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;2000&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;);&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;},&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="lit" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: maroon; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;10000&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Source:&amp;nbsp;&lt;a href="http://stackoverflow.com/questions/237350/how-to-solve-var-out-of-scope-within-settimeout-call" target="_blank"&gt;Stackoverflow&lt;/a&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-2979726249807035363?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/2979726249807035363/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/12/settimeout-setinterval-scope-problem.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/2979726249807035363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/2979726249807035363'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/12/settimeout-setinterval-scope-problem.html' title='setTimeout() &amp;&amp; setInterval() scope problem solver'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-5303576188599138502</id><published>2011-12-20T10:26:00.008+01:00</published><updated>2011-12-21T21:03:15.266+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='Sencha Touch'/><category scheme='http://www.blogger.com/atom/ns#' term='framework'/><category scheme='http://www.blogger.com/atom/ns#' term='Bug'/><title type='text'>Sencha Touch 1.1 - Adding a record and removing it doesn't work</title><content type='html'>&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;&lt;b&gt;I did the following and it worked well:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Add an entry - reload the app - delete that entry&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;&lt;b&gt;I did the following and it didn't work:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Add an entry - delete that entry&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;&lt;b&gt;Why?&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;I started to debug both cases paralelly. In both cases I found the new record in the object that is used to determine what has to be done, but for some strange reason in the case of adding and directly deleting that entry Sencha Touch doesn't find the entry.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;What I did is really simple: After running the &lt;/span&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;store.remove(record)&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt; method I check if there's a record in the &lt;/span&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;store.removed&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt; property. If not, I add that record manually. You can as well fully remove the &lt;/span&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;store.remove(record)&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;method call and write the record directly into the property. It's up to you.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;After you did that you just need to call &lt;/span&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;store.destroy()&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt; to remove the record.&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-5303576188599138502?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/5303576188599138502/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/12/sencha-touch-11-adding-record-and.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/5303576188599138502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/5303576188599138502'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/12/sencha-touch-11-adding-record-and.html' title='Sencha Touch 1.1 - Adding a record and removing it doesn&apos;t work'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-6333235605578443219</id><published>2011-12-20T09:18:00.003+01:00</published><updated>2011-12-21T15:27:13.040+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='mobile'/><category scheme='http://www.blogger.com/atom/ns#' term='Sencha Touch'/><category scheme='http://www.blogger.com/atom/ns#' term='CRUD'/><category scheme='http://www.blogger.com/atom/ns#' term='framework'/><category scheme='http://www.blogger.com/atom/ns#' term='Bug'/><title type='text'>Sencha Touch 1.1 - CRUD actions &amp; callbacks via REST proxy</title><content type='html'>&lt;b&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;CRUD actions&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Methods without value param (update, destroy):&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style="background-color: #d9ead3; font-family: 'Courier New', Courier, monospace;"&gt;store.update({&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #d9ead3; font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; callback: function(answer, object, success) {&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #d9ead3; font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (success) { ... }&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #d9ead3; font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="background-color: #d9ead3;"&gt;});&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #fff2cc;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;store.destroy&lt;/span&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;({&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #fff2cc; font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; callback: function(answer, object, success) {&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #fff2cc; font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (success) { ... }&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #fff2cc; font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #fff2cc; font-family: 'Courier New', Courier, monospace;"&gt;});&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Methods with value param (create, load):&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style="background-color: #d9ead3;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;store.create&lt;/span&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;(values, {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #d9ead3; font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; callback: function(answer, object, success) {&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #d9ead3; font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (success) { ... }&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #d9ead3; font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span style="background-color: #d9ead3;"&gt;});&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #fff2cc; font-family: 'Courier New', Courier, monospace;"&gt;store.load&lt;/span&gt;&lt;span style="background-color: #fff2cc; font-family: 'Courier New', Courier, monospace;"&gt;({&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #fff2cc; font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; callback: function(answer, object, success) {&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #fff2cc; font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (success) { ... }&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #fff2cc; font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #fff2cc; font-family: 'Courier New', Courier, monospace;"&gt;});&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;&lt;b&gt;CRUD action executes only once?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;If you can run some of these functions once and after that no XHR is made, it may be because you encountered this bug:&amp;nbsp;&lt;a href="http://www.sencha.com/forum/showthread.php?144404-Store.loadData-doesn-t-update-Snapshot-when-loadData-is-called-second-time" target="_blank"&gt;Bug @ Sencha Forum&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;I solved this bug by setting store.snapshot to false, so the function that engages the XHR is no longer looking for changes in the snapshot but in the store object.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-6333235605578443219?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/6333235605578443219/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/12/sencha-touch-11-crud-actions-callbacks.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/6333235605578443219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/6333235605578443219'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/12/sencha-touch-11-crud-actions-callbacks.html' title='Sencha Touch 1.1 - CRUD actions &amp; callbacks via REST proxy'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-7031456015406067919</id><published>2011-12-11T16:15:00.004+01:00</published><updated>2011-12-20T09:20:01.876+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rc.d'/><category scheme='http://www.blogger.com/atom/ns#' term='cups'/><category scheme='http://www.blogger.com/atom/ns#' term='printer'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Slackware'/><category scheme='http://www.blogger.com/atom/ns#' term='print'/><title type='text'>Enable cups</title><content type='html'>&lt;pre class="code"&gt;chmod +x /etc/rc.d/rc.&lt;span class="search_hit"&gt;cups&lt;/span&gt;&lt;br /&gt;/etc/rc.d/rc.&lt;span class="search_hit"&gt;cups&lt;/span&gt; start&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre class="code"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Source: &lt;a href="http://alien.slackbook.org/dokuwiki/doku.php?id=slackware:cups#setting_up_the_cups_service%20"&gt;alien slackbook&lt;/a&gt; &lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-7031456015406067919?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/7031456015406067919/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/12/enable-cups.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/7031456015406067919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/7031456015406067919'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/12/enable-cups.html' title='Enable cups'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-8963719178767144545</id><published>2011-12-11T15:38:00.000+01:00</published><updated>2011-12-11T15:38:59.055+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Slackware'/><category scheme='http://www.blogger.com/atom/ns#' term='Shellscript'/><title type='text'>Slackware local shutdown script (to wipe out /tmp etc.)</title><content type='html'>Doesn't exist, but according to rc.local it's ok to create &amp;amp; use it :)&lt;br /&gt;&lt;br /&gt;/etc/rc.d/rc.local_shutdown&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-8963719178767144545?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/8963719178767144545/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/12/slackware-local-shutdown-script-to-wipe.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/8963719178767144545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/8963719178767144545'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/12/slackware-local-shutdown-script-to-wipe.html' title='Slackware local shutdown script (to wipe out /tmp etc.)'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-702282875280284641</id><published>2011-12-11T15:16:00.002+01:00</published><updated>2011-12-11T15:51:47.998+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Chrome'/><category scheme='http://www.blogger.com/atom/ns#' term='Slackware'/><category scheme='http://www.blogger.com/atom/ns#' term='google'/><category scheme='http://www.blogger.com/atom/ns#' term='tgz'/><category scheme='http://www.blogger.com/atom/ns#' term='browser'/><title type='text'>Chrome 15 from Slackbuild.org</title><content type='html'>Install libevent:&lt;br /&gt;http://slackbuilds.org/repository/13.37/libraries/libevent/&lt;br /&gt;&lt;br /&gt;then chromium:&lt;br /&gt;http://slackbuilds.org/repository/13.37/network/chromium/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-702282875280284641?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/702282875280284641/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/12/chrome-15-from-slackbuildorg.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/702282875280284641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/702282875280284641'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/12/chrome-15-from-slackbuildorg.html' title='Chrome 15 from Slackbuild.org'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-1574986309656779052</id><published>2011-12-11T12:08:00.001+01:00</published><updated>2011-12-11T12:17:06.268+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xfce4'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='desktop'/><category scheme='http://www.blogger.com/atom/ns#' term='Slackware'/><category scheme='http://www.blogger.com/atom/ns#' term='menu'/><category scheme='http://www.blogger.com/atom/ns#' term='customize'/><title type='text'>Customize XFCE4 Menu</title><content type='html'>&lt;a href="http://wiki.xfce.org/howto/customize-menu"&gt;http://wiki.xfce.org/howto/customize-menu&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Desktop files are located here: /usr/local/share/applications | /usr/share/applications/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-1574986309656779052?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/1574986309656779052/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/12/customize-xfce4-menu.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/1574986309656779052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/1574986309656779052'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/12/customize-xfce4-menu.html' title='Customize XFCE4 Menu'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-7463649220276867719</id><published>2011-12-11T11:48:00.012+01:00</published><updated>2011-12-11T16:21:55.485+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Slackware'/><category scheme='http://www.blogger.com/atom/ns#' term='commands'/><category scheme='http://www.blogger.com/atom/ns#' term='ls'/><title type='text'>List only symbolic links in current directory</title><content type='html'>&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span style="background-color: #fce5cd;"&gt;find . -type l&lt;/span&gt;&lt;span style="background-color: #d9ead3;"&gt;&lt;span style="background-color: white;"&gt; &lt;/span&gt;-exec ls -la &lt;span style="background-color: #fce5cd;"&gt;{}&lt;/span&gt; \;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Got to say that here: find with -exec param is &lt;a href="http://powered-by-caffeine.blogspot.com/2011/12/copy-files-recursively-without-keeping.html"&gt;sooooo mighty&lt;/a&gt;!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-7463649220276867719?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/7463649220276867719/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/12/list-only-symbolic-links-in-current.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/7463649220276867719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/7463649220276867719'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/12/list-only-symbolic-links-in-current.html' title='List only symbolic links in current directory'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-2107699435034196303</id><published>2011-12-07T11:43:00.004+01:00</published><updated>2011-12-11T16:22:12.410+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='recursiv'/><category scheme='http://www.blogger.com/atom/ns#' term='copy'/><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='commands'/><category scheme='http://www.blogger.com/atom/ns#' term='Shellscript'/><title type='text'>Copy files recursively without keeping directory structure (Linux)</title><content type='html'>We had to copy many files that were located in a very complex directory structure. The following snippet searches the current directory and its subdirectories for *.xml files &amp;amp; executes the cp command on every file it finds (the braces {} represent the file):&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New',Courier,monospace;"&gt;&lt;span style="background-color: #fce5cd;"&gt;find -type -f -iname '*.xml'&lt;/span&gt; &lt;span style="background-color: #d9ead3;"&gt;-exec cp &lt;span style="background-color: #fce5cd;"&gt;{}&lt;/span&gt; /target/dir/for/all/xmls/ \;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The target dir now contains all *.xml files without directories.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-2107699435034196303?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/2107699435034196303/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/12/copy-files-recursively-without-keeping.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/2107699435034196303'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/2107699435034196303'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/12/copy-files-recursively-without-keeping.html' title='Copy files recursively without keeping directory structure (Linux)'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-4702302003203648748</id><published>2011-12-07T08:18:00.000+01:00</published><updated>2011-12-07T08:18:15.274+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='webdeveloper toolbar'/><category scheme='http://www.blogger.com/atom/ns#' term='Debug'/><category scheme='http://www.blogger.com/atom/ns#' term='helper'/><category scheme='http://www.blogger.com/atom/ns#' term='github'/><category scheme='http://www.blogger.com/atom/ns#' term='gist'/><title type='text'>All Methods from a Javascript Object</title><content type='html'>I wrote that little helper because webdeveloper toolbar didn't show all methods to me. Maybe it's useful for you too.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://gist.github.com/1441816"&gt;https://gist.github.com/1441816&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-4702302003203648748?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/4702302003203648748/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/12/all-methods-from-javascript-object.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/4702302003203648748'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/4702302003203648748'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/12/all-methods-from-javascript-object.html' title='All Methods from a Javascript Object'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-4301016440089966634</id><published>2011-12-01T14:34:00.003+01:00</published><updated>2011-12-01T14:36:40.343+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='Debug'/><category scheme='http://www.blogger.com/atom/ns#' term='Tipps'/><category scheme='http://www.blogger.com/atom/ns#' term='console.log()'/><title type='text'>console.log &amp; debug flag?</title><content type='html'>Instead of checking the DEBUG flag everytime you need a debug info, like this:&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; if (DEBUG) {&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; console.log("my debug output");&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;you can just check the DEBUG flag once and disable the console.log function, like this:&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; if (DEBUG === false) {&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; console = {&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; log: function() {}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This enables you to simply call:&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; console.log("my debug output")&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;in your application. If DEBUG is true, you'll get your output. If DEBUG is false, console.log() will be called but is an empty function and thus will produce no output / error.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-4301016440089966634?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/4301016440089966634/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/12/consolelog-debug-flag.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/4301016440089966634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/4301016440089966634'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/12/consolelog-debug-flag.html' title='console.log &amp; debug flag?'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-1566393083298035791</id><published>2011-11-19T22:18:00.004+01:00</published><updated>2011-11-19T23:26:21.548+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='packages'/><category scheme='http://www.blogger.com/atom/ns#' term='buildfile'/><category scheme='http://www.blogger.com/atom/ns#' term='package'/><category scheme='http://www.blogger.com/atom/ns#' term='build'/><category scheme='http://www.blogger.com/atom/ns#' term='source'/><category scheme='http://www.blogger.com/atom/ns#' term='Slackware'/><category scheme='http://www.blogger.com/atom/ns#' term='automated build'/><category scheme='http://www.blogger.com/atom/ns#' term='tgz'/><category scheme='http://www.blogger.com/atom/ns#' term='Shellscript'/><title type='text'>Automated slackware package creation from given sourcefile</title><content type='html'>Slackware packages are a great (the only good way) to keep track of the installed software on (and to cleanly remove installed software from) your slackware machine.&lt;br /&gt;&lt;br /&gt;Most packages that you can find in the www (slackbuilds.org, http://packages.slackware.it, ...) are outdated. You know that: Looking at slackbuilds.org for a tool, then looking at the version number and see that there's a source on the builders homepage that's x major and y minor releases further.&lt;br /&gt;&lt;br /&gt;I, personally, hate to install 'old' software. I want the newest. So I have to built from source - make, ./configure --flags, make install to a DESTDIR, cp docs, change rights and makepkg at the end.&lt;br /&gt;&lt;br /&gt;This sucks. To learn a bit about writing shellscripts I started to write a shellscript that does the job (yes, I know about pkgbuild). Currently it's able to:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;remove old sources&lt;/li&gt;&lt;li&gt;remove old package&lt;/li&gt;&lt;li&gt;extract the source package (tar.gz / tar.bz2)&lt;/li&gt;&lt;li&gt;copy a given layout file (supported by apache httpd for instance)&lt;/li&gt;&lt;li&gt;make install to DESTDIR&lt;/li&gt;&lt;li&gt;create documentation directory&lt;/li&gt;&lt;li&gt;copy documentation files (like README, INSTALL, AUTHORS...)&lt;/li&gt;&lt;li&gt;chown root.root DESTDIR&lt;/li&gt;&lt;li&gt;build package with makepkg&lt;/li&gt;&lt;li&gt;echo build time&lt;/li&gt;&lt;/ul&gt;&amp;nbsp;And here is what I plan to add:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;remove sources after successful build&lt;/li&gt;&lt;li&gt;remove installation from DESTDIR after successful build&lt;/li&gt;&lt;li&gt;automatically search SRCDIR for documentation and copy it&lt;/li&gt;&lt;li&gt;&lt;b&gt;really important: create slack_desc for created package&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;really important: output last 5 rows if build fails&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;really important: check for $DESTDIR support &lt;/b&gt;&lt;/li&gt;&lt;li&gt;make it much cleaner&lt;/li&gt;&lt;li&gt;less params&lt;/li&gt;&lt;/ul&gt;Yesterday I built the whole xfce4 from source in approx 15 minutes. Added install.sh to installpkg the packages in the right order and et voilà - installed xfce4 in 30 seconds. :-)&lt;br /&gt;&lt;br /&gt;&lt;b&gt;NOTE: I don't make any warranties that my script will work for you or won't fuck up your machine.&lt;/b&gt; &lt;br /&gt;&lt;ul&gt;&lt;/ul&gt;So if you want to give it a try, look here: &lt;a href="https://gist.github.com/1379368"&gt;https://gist.github.com/1379368&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;NOTE: I don't make any warranties that my script will work for you or won't fuck up your machine.&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-1566393083298035791?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/1566393083298035791/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/11/automated-slackware-package-creation.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/1566393083298035791'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/1566393083298035791'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/11/automated-slackware-package-creation.html' title='Automated slackware package creation from given sourcefile'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-3983526621492650669</id><published>2011-11-19T21:33:00.000+01:00</published><updated>2011-11-19T21:33:10.607+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Slackware'/><title type='text'>Change keyboard layout in Slackware 13.37</title><content type='html'>/usr/share/X11/xorg.conf.d/90-keyboard-layout.conf&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-3983526621492650669?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/3983526621492650669/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/11/change-keyboard-layout-in-slackware.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/3983526621492650669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/3983526621492650669'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/11/change-keyboard-layout-in-slackware.html' title='Change keyboard layout in Slackware 13.37'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-1171797357216637862</id><published>2011-11-07T09:30:00.002+01:00</published><updated>2011-11-07T09:30:06.282+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='code'/><category scheme='http://www.blogger.com/atom/ns#' term='programmer'/><category scheme='http://www.blogger.com/atom/ns#' term='coding'/><title type='text'>Signs that you are a bad programmer (Bad Programmers)</title><content type='html'>Quite interesting article:&amp;nbsp;&lt;a href="http://badprogrammer.infogami.com/"&gt;http://badprogrammer.infogami.com/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-1171797357216637862?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/1171797357216637862/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/11/signs-that-you-are-bad-programmer-bad.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/1171797357216637862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/1171797357216637862'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/11/signs-that-you-are-bad-programmer-bad.html' title='Signs that you are a bad programmer (Bad Programmers)'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-2820449075570906014</id><published>2011-10-02T09:42:00.000+02:00</published><updated>2011-10-02T10:19:48.812+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='clock'/><category scheme='http://www.blogger.com/atom/ns#' term='time'/><category scheme='http://www.blogger.com/atom/ns#' term='CPU'/><category scheme='http://www.blogger.com/atom/ns#' term='compile'/><category scheme='http://www.blogger.com/atom/ns#' term='overclock'/><title type='text'>Measuring compile time to check overclocking of cpu</title><content type='html'>&lt;u&gt;&lt;b&gt;Step 1:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;Use standard cpu clock and a source of medium size:&lt;br /&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; time -p ./configure &amp;amp;&amp;amp; make&lt;/i&gt;&lt;br /&gt;and note down time next to 'real'.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Step2:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;Remove sources, extract again, overclock cpu and run&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; time -p ./configure &amp;amp;&amp;amp; make&lt;/i&gt;&lt;br /&gt;&lt;div&gt;again. Compare the value next to 'real' with the noted down value.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-2820449075570906014?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/2820449075570906014/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/10/measuring-compile-to-check-overclocking.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/2820449075570906014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/2820449075570906014'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/10/measuring-compile-to-check-overclocking.html' title='Measuring compile time to check overclocking of cpu'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-3745271478446429830</id><published>2011-09-27T21:11:00.000+02:00</published><updated>2011-09-27T21:11:31.506+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CPU'/><category scheme='http://www.blogger.com/atom/ns#' term='Frequency'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Asus S.H.E. for Ubuntu (Jupiter)</title><content type='html'>'overclock' Asus netbook cpu in Ubuntu via Jupiter:&amp;nbsp;&lt;a href="http://www.webupd8.org/2010/07/jupiter-ubuntu-ppa-hardware-and-power.html"&gt;http://www.webupd8.org/2010/07/jupiter-ubuntu-ppa-hardware-and-power.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-3745271478446429830?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/3745271478446429830/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/09/asus-she-for-ubuntu-jupiter.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/3745271478446429830'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/3745271478446429830'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/09/asus-she-for-ubuntu-jupiter.html' title='Asus S.H.E. for Ubuntu (Jupiter)'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-4203858484612855527</id><published>2011-08-30T08:16:00.000+02:00</published><updated>2011-08-30T08:16:13.995+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Validation'/><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><title type='text'>Styling Browser Validation Messages</title><content type='html'>With HTML5 there came the great power of using the browsers built-in validation methods for &amp;lt;input&amp;gt; fields. Some days ago I heared a co-worker arguing that it's not possible to style the error messages generated by the browser. It's just wrong. You can style them, they are using pseudo classes and, of course, every browser uses different pseudo classes:&lt;br /&gt;&lt;br /&gt;Firefox:&amp;nbsp;&lt;a href="https://developer.mozilla.org/en/CSS/%3ainvalid"&gt;https://developer.mozilla.org/en/CSS/%3ainvalid&lt;/a&gt;&lt;br /&gt;Chrome [Webkit]:&amp;nbsp;&lt;a href="http://trac.webkit.org/browser/trunk/Source/WebCore/css/html.css"&gt;http://trac.webkit.org/browser/trunk/Source/WebCore/css/html.css&lt;/a&gt;&amp;nbsp;(search for 'bubble' there)&lt;br /&gt;&lt;br /&gt;Sadly, if you want to use it today, you have to implement a fallback for IE.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-4203858484612855527?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/4203858484612855527/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/08/styling-browser-validation-messages.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/4203858484612855527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/4203858484612855527'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/08/styling-browser-validation-messages.html' title='Styling Browser Validation Messages'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-1399878306040854330</id><published>2011-08-25T07:53:00.000+02:00</published><updated>2011-08-25T07:55:01.097+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='class'/><category scheme='http://www.blogger.com/atom/ns#' term='tdd'/><category scheme='http://www.blogger.com/atom/ns#' term='concept'/><category scheme='http://www.blogger.com/atom/ns#' term='code'/><title type='text'>Coding Backwards</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;b&gt;Now this is a really cool idea how to get a gerneral idea of the design you really need (and this is NOT the design that comes to your mind FIRST):&lt;/b&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;"&lt;span class="Apple-style-span" style="line-height: 27px;"&gt;I decided that I’d [...]&amp;nbsp;write out a script using the yet unwritten API. I’d reverse-engineer a good design by pretending I’d already written one!&lt;/span&gt;"&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;"&lt;span class="Apple-style-span" style="line-height: 27px;"&gt;A better design quickly appeared when I forced myself to preemptively eat my own dogfood. Instead of shoehorning use-cases into a class structure I’d already designed, I coded backwards and the opposite happened: a design evolved from daydreaming about an API that I’d like using."&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;SOURCE:&amp;nbsp;&lt;a href="http://jameso.be/2011/08/19/coding-backwards.html"&gt;http://jameso.be/2011/08/19/coding-backwards.html&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-1399878306040854330?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/1399878306040854330/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/08/coding-backwards.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/1399878306040854330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/1399878306040854330'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/08/coding-backwards.html' title='Coding Backwards'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-7004012047223503808</id><published>2011-07-25T08:15:00.000+02:00</published><updated>2011-07-29T20:18:42.041+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='opacity'/><title type='text'>For all your opacity needs</title><content type='html'>&lt;span class="Apple-style-span" style="color: #070606; font-family: monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 18px; white-space: pre;"&gt;&lt;b&gt;in this order:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #070606; font-family: monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 18px; white-space: pre;"&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #070606; font-family: monospace; font-size: 12px; line-height: 18px; white-space: pre;"&gt;opacity: .5;&lt;/span&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: #242424; font-family: georgia, times, serif; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #070606; font-family: monospace; font-size: 12px; line-height: 18px; white-space: pre;"&gt;// for all other browsers&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #070606; font-family: monospace; font-size: 12px; line-height: 18px; white-space: pre;"&gt;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; &lt;/span&gt;&lt;span class="Apple-style-span" style="color: #070606; font-family: monospace; font-size: 12px; line-height: 18px; white-space: pre;"&gt;//&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #070606; font-family: monospace; font-size: 12px; line-height: 18px; white-space: pre;"&gt;for IE8&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #070606; font-family: monospace; font-size: 12px; line-height: 18px; white-space: pre;"&gt;filter: alpha(opacity=50); &lt;/span&gt;&lt;span class="Apple-style-span" style="color: #070606; font-family: monospace; font-size: 12px; line-height: 18px; white-space: pre;"&gt;//&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #070606; font-family: monospace; font-size: 12px; line-height: 18px; white-space: pre;"&gt;for IE5-7&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #070606; font-family: monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 18px; white-space: pre;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-7004012047223503808?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/7004012047223503808/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/07/for-all-your-opacity-needs.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/7004012047223503808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/7004012047223503808'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/07/for-all-your-opacity-needs.html' title='For all your opacity needs'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-5669072725109700111</id><published>2011-07-23T13:20:00.003+02:00</published><updated>2011-08-31T08:09:33.731+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='code'/><category scheme='http://www.blogger.com/atom/ns#' term='cheatsheet'/><category scheme='http://www.blogger.com/atom/ns#' term='oop'/><title type='text'>JS Module Pattern</title><content type='html'>&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; white-space: normal;"&gt;&lt;pre&gt;var&amp;nbsp;someModule&amp;nbsp;=&amp;nbsp;(function(){&lt;/pre&gt;&lt;pre&gt;//private attributes&lt;br /&gt;&amp;nbsp;&amp;nbsp;var&amp;nbsp;privateVar&amp;nbsp;=&amp;nbsp;5;&lt;br /&gt;&lt;br /&gt;  //private methods&lt;br /&gt;&amp;nbsp;&amp;nbsp;var&amp;nbsp;privateMethod&amp;nbsp;=&amp;nbsp;function(){&lt;br /&gt;&amp;nbsp;&amp;nbsp;return&amp;nbsp;'Private Test';&lt;br /&gt;&amp;nbsp;&amp;nbsp;};&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;return&amp;nbsp;{&lt;br /&gt;    //public attributes&lt;br /&gt;    publicVar:&amp;nbsp;10,&lt;br /&gt;    //public methods&lt;br /&gt;    publicMethod:&amp;nbsp;function(){&lt;br /&gt;      return&amp;nbsp;' Followed By Public Test ';&lt;br /&gt;    },&lt;br /&gt;&lt;br /&gt;    //let's access the private members&lt;br /&gt;    getData:&amp;nbsp;function(){&lt;br /&gt;      return&amp;nbsp;privateMethod()&amp;nbsp;+&amp;nbsp;this.publicMethod()&amp;nbsp;+&amp;nbsp;privateVar;&lt;br /&gt;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;})();&amp;nbsp;//the parens here cause the anonymous function to execute and return&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;br /&gt;someModule.getData();&lt;br /&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;/span&gt;SOURCE: &lt;a href="http://addyosmani.com/resources/essentialjsdesignpatterns/book/"&gt;http://addyosmani.com/resources/essentialjsdesignpatterns/book/&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; white-space: normal;"&gt;&lt;pre&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-5669072725109700111?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/5669072725109700111/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/07/js-module-pattern.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/5669072725109700111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/5669072725109700111'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/07/js-module-pattern.html' title='JS Module Pattern'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-148610824317714915</id><published>2011-07-19T09:55:00.001+02:00</published><updated>2011-07-21T23:44:15.536+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Wiki'/><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='nyromodal'/><title type='text'>Nyromodal Wiki Startpage is defective, use this older version instead</title><content type='html'>&lt;a href="http://bit.ly/qUra4h"&gt;http://bit.ly/qUra4h&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-148610824317714915?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/148610824317714915/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/07/nyromodal-wiki-startpage-is-defective.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/148610824317714915'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/148610824317714915'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/07/nyromodal-wiki-startpage-is-defective.html' title='Nyromodal Wiki Startpage is defective, use this older version instead'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-3389464510652549744</id><published>2011-07-19T09:40:00.000+02:00</published><updated>2011-07-19T09:42:12.849+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='lightbox'/><category scheme='http://www.blogger.com/atom/ns#' term='ajax'/><category scheme='http://www.blogger.com/atom/ns#' term='nyromodal'/><title type='text'>Nyromodal strips / removes script tag on ajax / xhr load</title><content type='html'>Got me some time to get 'round this, here's the solution:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;"&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;"&gt;If you need to use an external JavaScript content, you could add the attribute&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;"&gt;&lt;b&gt;rel="forceLoad"&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;"&gt;to the script tag and nyroModal will load it during the opening modal."&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;"&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;"&gt;If you want to use a script which need the content to be visible (many jQuery UI script for instance) you could add the setting&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;"&gt;&lt;b&gt;rev="shown"&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;"&gt;to the inline or external script tag to execute it juste before the endShowContent&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;"&gt;&lt;a href="http://nyromodal.nyrodev.com/wiki/index.php/Callback" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; text-decoration: none;" title="Callback"&gt;callback&lt;/a&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;"&gt;."&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Source:&amp;nbsp;&lt;a href="http://nyromodal.nyrodev.com/wiki/index.php/Deal_with_JavaScript_in_an_Ajax_loaded_page"&gt;http://bit.ly/oJ8AeD&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-3389464510652549744?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/3389464510652549744/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/07/nyromodal-strips-removes-script-tag-on.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/3389464510652549744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/3389464510652549744'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/07/nyromodal-strips-removes-script-tag-on.html' title='Nyromodal strips / removes script tag on ajax / xhr load'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-8386863635241162019</id><published>2011-07-18T20:46:00.001+02:00</published><updated>2011-07-18T20:46:05.844+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='Extension'/><category scheme='http://www.blogger.com/atom/ns#' term='Chrome'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>Writing a Chrome Extension - HTML + JS</title><content type='html'>&lt;a href="http://geeknizer.com/google-chrome-4-extensions-how-to-create-twitter-client-download-tutorial/"&gt;http://geeknizer.com/google-chrome-4-extensions-how-to-create-twitter-client-download-tutorial/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-8386863635241162019?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/8386863635241162019/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/07/writing-chrome-extension-html-js.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/8386863635241162019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/8386863635241162019'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/07/writing-chrome-extension-html-js.html' title='Writing a Chrome Extension - HTML + JS'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-5428765756694535400</id><published>2011-07-14T19:47:00.000+02:00</published><updated>2011-07-29T20:20:55.195+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows 7'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows Update'/><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft'/><title type='text'>"WindowsUpdate_80070570" "WindowsUpdate_80073712" Errors</title><content type='html'>&lt;div style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Arial, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;b&gt;Fixed the above stated problem for me. EDIT: It also fixed a problem where the Service Pack couldn't be installed!&lt;/b&gt;&lt;/div&gt;&lt;div style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Arial, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Arial, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;net stop wuauserv&lt;/div&gt;&lt;div style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Arial, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;net stop bits&lt;/div&gt;&lt;div style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Arial, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;net stop cryptsvc&lt;/div&gt;&lt;div style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Arial, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;ren %systemroot%\System32\Catroot2 Catroot2.old&lt;/div&gt;&lt;div style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Arial, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;net start cryptsvc&lt;/div&gt;&lt;div style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Arial, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;ren %systemroot%\SoftwareDistribution SoftwareDistribution.old&lt;/div&gt;&lt;div style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Arial, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;regsvr32 wuapi.dll&lt;/div&gt;&lt;div style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Arial, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;regsvr32 wuaueng.dll&lt;/div&gt;&lt;div style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Arial, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;regsvr32 wucltux.dll&lt;/div&gt;&lt;div style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Arial, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;regsvr32 wups2.dll&lt;/div&gt;&lt;div style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Arial, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;regsvr32 wups.dll&lt;/div&gt;&lt;div style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Arial, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;regsvr32 wuwebv.dll&lt;/div&gt;&lt;div style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Arial, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;net start bits&lt;/div&gt;&lt;div style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Arial, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;net start wuauserv&lt;/div&gt;&lt;div style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Arial, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;net start Eventlog&lt;/div&gt;&lt;div style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Arial, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;exit&lt;/div&gt;&lt;div style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Arial, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Reboot and try update again.&lt;/div&gt;&lt;br /&gt;SOURCE:&amp;nbsp;&lt;a href="http://answers.microsoft.com/en-us/windows/forum/windows_other-windows_update/windowsupdate80070570-windowsupdate80073712-errors/8a1ff2d4-0c96-495c-b22a-759f9b66f2e6"&gt;http://answers.microsoft.com/en-us/windows/forum/windows_other-windows_update/windowsupdate80070570-windowsupdate80073712-errors/8a1ff2d4-0c96-495c-b22a-759f9b66f2e6&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-5428765756694535400?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/5428765756694535400/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/07/windowsupdate80070570.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/5428765756694535400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/5428765756694535400'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/07/windowsupdate80070570.html' title='&quot;WindowsUpdate_80070570&quot; &quot;WindowsUpdate_80073712&quot; Errors'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-2926682635461406590</id><published>2011-07-08T09:51:00.000+02:00</published><updated>2011-07-17T18:33:12.975+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='Error'/><category scheme='http://www.blogger.com/atom/ns#' term='IE'/><title type='text'>On event.preventDefault() error messages in IE 8 (9? 7? 6?)</title><content type='html'>If checking for event.preventDefault() you get error messages&amp;nbsp;in IE.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;A better way is to check for the existence of event.returnValue (which is IEs preventDefault()) and if it doesn't exist you know that you're not on IE.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;if (event.returnValue) {&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; // this is IE&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; event.returnValue = false;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;} else {&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; // this is Chrome, Firefox, Safari etc.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; event.preventDefault();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;}&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-2926682635461406590?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/2926682635461406590/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/07/on-eventpreventdefault-error-messages.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/2926682635461406590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/2926682635461406590'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/07/on-eventpreventdefault-error-messages.html' title='On event.preventDefault() error messages in IE 8 (9? 7? 6?)'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-395424207389935181</id><published>2011-06-19T17:01:00.000+02:00</published><updated>2011-06-19T17:03:27.229+02:00</updated><title type='text'>JPG to DIV</title><content type='html'>Spent some minutes doing this after a co-worker of mine had this idea. Here's the PHP-Script:&lt;br /&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;&amp;lt;!doctype html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;&amp;lt;style type="text/css"&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;div {position: absolute;width: 1px; height: 1px;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;&amp;lt;/style&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;&amp;lt;?php&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;$imagePath = 'path/to/picture/and/picname.jpg';&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;$img = imagecreatefromjpeg($imagePath);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;$heightWidth = getimagesize($imagePath);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;$imgH = --$heightWidth[1];&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;$imgW = --$heightWidth[0];&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;for ($xc=0; $xc&amp;lt;=$imgH; $xc++) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;for ($yc=0; $yc&amp;lt;=$imgW; $yc++) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;$color_index = imagecolorat($img, $yc, $xc);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;$color_tran &amp;nbsp;= imagecolorsforindex($img, $color_index);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;echo '&amp;lt;div style="background:rgb('.$color_tran['red'].','.$color_tran['green'].','.$color_tran['blue'].');top:'.$xc.'px;left:'.$yc.'px;"&amp;gt;&amp;lt;/div&amp;gt;';&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;?&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Using this one with a picture with more than 160.000 pixel will produce a html-file with a size of more than 10 Megabyte. The Script runs trough in less than a second, rendering the divs in the browser is what makes it unuseable, but it works well to around 200.000 pixel.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Optimization ideas:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;float instead of absolute (have no idea if that speeds up or slows down)&lt;/li&gt;&lt;li&gt;reduce the markup as much as possible&lt;/li&gt;&lt;li&gt;if the pixel next to the last rendered pixel hast the same color, the element could be extended, insted of placing a new element&lt;/li&gt;&lt;li&gt;some more, too lazy to write them down now...&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-395424207389935181?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/395424207389935181/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/06/jpg-to-div.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/395424207389935181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/395424207389935181'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/06/jpg-to-div.html' title='JPG to DIV'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-4844586866556152385</id><published>2011-06-15T14:34:00.001+02:00</published><updated>2011-06-17T13:43:14.291+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='code'/><category scheme='http://www.blogger.com/atom/ns#' term='cheatsheet'/><category scheme='http://www.blogger.com/atom/ns#' term='oop'/><title type='text'>Javascript OOP Cheatsheet</title><content type='html'>var MyClass = function() {&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; // self to get "this" in private / global / anonymous methods&lt;br /&gt;&amp;nbsp; &amp;nbsp; var self = this;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; // public var&lt;br /&gt;&amp;nbsp; &amp;nbsp; this.publicVar = 'public';&lt;br /&gt;&amp;nbsp; &amp;nbsp; // private var&lt;br /&gt;&amp;nbsp; &amp;nbsp; var privateVar = 'private';&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; // public method&lt;br /&gt;&amp;nbsp; &amp;nbsp; this.publicMethod = function() {}&lt;br /&gt;&amp;nbsp; &amp;nbsp; // private method&lt;br /&gt;&amp;nbsp; &amp;nbsp; function privateMethod() {}&lt;br /&gt;&amp;nbsp; &amp;nbsp; // global method&lt;br /&gt;&amp;nbsp; &amp;nbsp; globalMethod = function() {}&lt;br /&gt;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-4844586866556152385?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/4844586866556152385/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/06/javascript-oop-cheatsheet.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/4844586866556152385'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/4844586866556152385'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/06/javascript-oop-cheatsheet.html' title='Javascript OOP Cheatsheet'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-2984843476707486922</id><published>2011-06-10T19:51:00.000+02:00</published><updated>2011-06-10T20:00:35.499+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='image'/><category scheme='http://www.blogger.com/atom/ns#' term='batch'/><category scheme='http://www.blogger.com/atom/ns#' term='apt-get'/><category scheme='http://www.blogger.com/atom/ns#' term='resize'/><category scheme='http://www.blogger.com/atom/ns#' term='imagemagick'/><title type='text'>Imagemagick Ubuntu Install &amp; Batch</title><content type='html'>sudo apt-get install imagemagick&lt;br /&gt;&lt;div&gt;convert -resize 25% -quality 80% *.jpg&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-2984843476707486922?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/2984843476707486922/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/06/imagemagick-install-batch.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/2984843476707486922'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/2984843476707486922'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/06/imagemagick-install-batch.html' title='Imagemagick Ubuntu Install &amp; Batch'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6375710026482353996.post-86571972558707106</id><published>2011-06-10T19:31:00.000+02:00</published><updated>2011-10-05T07:21:59.509+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='phpunit'/><category scheme='http://www.blogger.com/atom/ns#' term='pear'/><title type='text'>Installing php-unit via PEAR on Ubuntu 11.04 Natty</title><content type='html'>sudo apt-get install apache2&lt;br /&gt;sudo&amp;nbsp;apt-get install php5&lt;br /&gt;sudo&amp;nbsp;apt-get install php5-curl&lt;br /&gt;&lt;br /&gt;enable curl.so in php5.ini&lt;br /&gt;&lt;br /&gt;sudo apt-get install php-pear&lt;br /&gt;sudo&amp;nbsp;pear channel-discover pear.phpunit.de&lt;br /&gt;sudo&amp;nbsp;pear channel-discover components.ez.no&lt;br /&gt;sudo&amp;nbsp;pear channel-discover pear.symfony-project.com&lt;br /&gt;sudo&amp;nbsp;pear update-channels&lt;br /&gt;sudo pear upgrade&lt;br /&gt;sudo&amp;nbsp;pear install phpunit/PHPUnit&lt;br /&gt;&lt;br /&gt;sudo /etc/init.d/apache2 restart&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6375710026482353996-86571972558707106?l=powered-by-caffeine.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powered-by-caffeine.blogspot.com/feeds/86571972558707106/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/06/installing-php-unit-via-pear-on-ubuntu.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/86571972558707106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6375710026482353996/posts/default/86571972558707106'/><link rel='alternate' type='text/html' href='http://powered-by-caffeine.blogspot.com/2011/06/installing-php-unit-via-pear-on-ubuntu.html' title='Installing php-unit via PEAR on Ubuntu 11.04 Natty'/><author><name>Marc</name><uri>http://www.blogger.com/profile/15971736016995618943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Wiesbaden, Deutschland</georss:featurename><georss:point>50.084284 8.238716899999986</georss:point><georss:box>50.005123 8.056497399999985 50.163444999999996 8.420936399999986</georss:box></entry></feed>
