<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>Allan Willems Joergensen - OnDemand</title> <atom:link href="http://billeder.telianisse.org/feed" rel="self" type="application/rss+xml" /><link>https://billeder.telianisse.org</link> <description>.. I love it when you talk nerdy to me ..</description> <lastBuildDate>Sat, 28 Apr 2012 21:18:36 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>Damn you, Google!</title><link>https://billeder.telianisse.org/articles/damn-you-google</link> <comments>https://billeder.telianisse.org/articles/damn-you-google#comments</comments> <pubDate>Mon, 02 Apr 2012 20:05:29 +0000</pubDate> <dc:creator>alj</dc:creator> <category><![CDATA[Personal]]></category> <category><![CDATA[google]]></category> <guid
isPermaLink="false">https://nowhere.dk/?p=1102</guid> <description><![CDATA[First post in a long time &#8211; Don&#8217;t worry, I haven&#8217;t been abducted by aliens from Omicron Persei 8 So today, Felicia Day launched her new personal show called the The Flog. Since I enjoyed this first episode immensely I decided it was time to extend my use of Youtube and subscribe to the channel [...]]]></description> <content:encoded><![CDATA[<p>First post in a long time &#8211; Don&#8217;t worry, I haven&#8217;t been abducted by aliens from <a
href="http://futurama.wikia.com/wiki/Omicron_Persei_8" title="Omicron Persei 8">Omicron Persei 8</a></p><p>So today, Felicia Day launched her new personal show called the <a
href="http://www.youtube.com/watch?v=-vyS8l2SxpA" title="The Flog">The Flog</a>. Since I enjoyed this first episode immensely I decided it was time to extend my use of Youtube and subscribe to the channel (user?) <a
href="http://www.youtube.com/user/geekandsundry?feature=watch" title="Geek &#038; Sundry" target="_blank">Geek &#038; Sundry</a>.</p><p>To the *sshats at Google: Why, oh why, do you punish me for using Google Apps?</p><p>What&#8217;s the problem, you ask? Well, the problem wasn&#8217;t like it used to be (where I simply couldn&#8217;t log on to Youtube, unlike other services it didn&#8217;t give me the opportunity to switch to my non-apps Google account. So I had to log out from Apps account. Log in to my Google account, do whatever on Youtube and the log back into my Apps account &#8211; After logging of the Google Account, otherwise Google services would choose that as default).</p><p><a
href="http://www.memecreator.com/meme/log-in-to-youtube-one-does-not-simply"><img
alt="One does not simply log in to Youtube" src="https://dl.dropbox.com/u/262048/www.nowhere.dk/89399.jpg" title="One does not simply log in to Youtube" class="aligncenter" width="400" height="235" /></a></p><p>No, I was presented with a message telling, Youtube access hadn&#8217;t been enabled by my administrator. Easy peasy. I would just go to the domain control panel in Google Apps and enable. Right?</p><p>Wrong.</p><p>After remembering where the services are (that&#8217;s &#8220;Organization &#038; Users&#8221; -> &#8220;Services&#8221; for future reference) I couldn&#8217;t find any Youtube. Turns out, I&#8217;m in the wrong country.</p><p>This is the fix:</p><ul><li>On the Dashboard, select &#8220;Try Google Apps for Business Free&#8221;</li><li>On the next page, select &#8220;Country/Region: United States&#8221; and click &#8220;Begin Free Trial&#8221;</li><li>Now, a checkout window appear. Simply close it</li><li>Go to &#8220;Organization &#038; Users&#8221; -> &#8220;Services&#8221; in your Apps control panel</li><li>Enable Youtube services</li><li>Wait five minutes</li><li>Log on to Youtube using your Google Apps account</li></ul><p>In the end, it all worked out. And who can stay mad after watching <a
href="https://twitter.com/feliciaday" title="@feliciaday">@feliciaday</a> in <a
href="http://www.youtube.com/watch?v=m-4wIUxuk0k&#038;feature=relmfu" title="The Flog" target="_blank">&#8220;The Flog&#8221;</a>; <a
href="https://twitter.com/wilw" title="@wilw">@wilw</a> and <a
href="https://twitter.com/grantimahara" title="@grantimahara">@grantimihara</a> battle for (Small) World domination in <a
href="http://www.youtube.com/watch?v=X9QtdiRJYro" title="Table Top" target="_blank">&#8220;Table Top&#8221;</a> &#8211; And last but least, a new video from <a
href="https://twitter.com/TheGuild" title="@TheGuild">@TheGuild</a> called <a
href="http://www.youtube.com/watch?v=jFhgupR565Q&#038;list=UUaBf1a-dpIsw8OxqH4ki2Kg&#038;feature=plcp" title="I'm The One That's Cool" target="_blank">&#8220;I&#8217;m The One That&#8217;s Cool&#8221;</a>. Oh, and <a
href="https://twitter.com/#!/feliciaday/status/186893308302336000" title="Twitter" target="_blank">this tweet</a>.</p> ]]></content:encoded> <wfw:commentRss>https://billeder.telianisse.org/articles/damn-you-google/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>May you have a fortuitous New Year</title><link>https://billeder.telianisse.org/articles/may-you-have-a-new-year</link> <comments>https://billeder.telianisse.org/articles/may-you-have-a-new-year#comments</comments> <pubDate>Fri, 30 Dec 2011 08:29:39 +0000</pubDate> <dc:creator>alj</dc:creator> <category><![CDATA[Uncategorized]]></category> <guid
isPermaLink="false">https://nowhere.dk/?p=1089</guid> <description><![CDATA[Live long and prosper!]]></description> <content:encoded><![CDATA[<p><a
href="http://www.explosm.net/comics/2281/"><img
alt="May you survive a new year" src="http://www.explosm.net/db/files/Comics/Rob/newyears_2011.png" title="May you survive a new year" class="aligncenter" width="705" height="598" /></a></p><p><a
href="http://www.bugcomic.com/comics/its-a-new-year-baby/"><img
alt="It’s A New Year, Baby!" src="http://www.bugcomic.com/comics/2011-12-30-Its-a-New-Year-B.png" title="It’s A New Year, Baby!" class="aligncenter" width="960" height="328" /></a></p><p>Live long and prosper!</p> ]]></content:encoded> <wfw:commentRss>https://billeder.telianisse.org/articles/may-you-have-a-new-year/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Installing Cisco VPN Client on Ubuntu 11.10 (Oneiric Ocelot)</title><link>https://billeder.telianisse.org/articles/installing-cisco-vpn-client-on-ubuntu-11-10-oneiric-ocelot</link> <comments>https://billeder.telianisse.org/articles/installing-cisco-vpn-client-on-ubuntu-11-10-oneiric-ocelot#comments</comments> <pubDate>Sat, 22 Oct 2011 12:58:14 +0000</pubDate> <dc:creator>alj</dc:creator> <category><![CDATA[Computer]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[cisco]]></category> <category><![CDATA[patch]]></category> <category><![CDATA[vpnc]]></category> <guid
isPermaLink="false">https://nowhere.dk/?p=1076</guid> <description><![CDATA[As always with a new Ubuntu release comes the problem of getting Cisco&#8217;s VPN client to install (and no, using vpnc instead is not really an option since the VPN concentrator doesn&#8217;t play nice and drops the connection from time to time) The problem this time is the kernel version of Ubuntu 11.10 &#8211; The [...]]]></description> <content:encoded><![CDATA[<p>As always with a new Ubuntu release comes the problem of getting Cisco&#8217;s VPN client to install (and no, using <a
href="http://www.unix-ag.uni-kl.de/~massar/vpnc/" title="vpnc" target="_blank">vpnc</a> instead is not really an option since the VPN concentrator doesn&#8217;t play nice and drops the connection from time to time)</p><p>The problem this time is the kernel version of Ubuntu 11.10 &#8211; The new 3.0 series kernel.</p><p>I&#8217;ve made a <a
href="https://nowhere.dk/files/vpnclient_linux3.0.diff" title="patch">patch</a> which will make the kernel module compile and install on the 3.0 kernel.</p><p>If you have the vanilla Linux client, you still need the patches <a
href="http://projects.tuxx-home.at/?id=cisco_vpn_client" title="here">here</a> &#8211; <strong>If the installation/compile fails, make sure you have installed all relevant patches</strong> as will as the packages needed to install (<em>ia32-libs build-essential linux-headers-`uname -r`</em>).</p> ]]></content:encoded> <wfw:commentRss>https://billeder.telianisse.org/articles/installing-cisco-vpn-client-on-ubuntu-11-10-oneiric-ocelot/feed</wfw:commentRss> <slash:comments>27</slash:comments> </item> <item><title>Running Symantec Veritas Cluster Manager on Ubuntu</title><link>https://billeder.telianisse.org/articles/running-symantec-veritas-cluster-manager-on-ubuntu</link> <comments>https://billeder.telianisse.org/articles/running-symantec-veritas-cluster-manager-on-ubuntu#comments</comments> <pubDate>Mon, 17 Oct 2011 08:58:40 +0000</pubDate> <dc:creator>alj</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[veritas]]></category> <guid
isPermaLink="false">https://nowhere.dk/?p=1068</guid> <description><![CDATA[At some point Veritas has release the Cluster Manager (Java Console) for Linux. Of course, Linux means Red Hat (and other RPM based flavours). Luckily it isn&#8217;t too hard making it work on Ubuntu (and friends). First, get the software &#8211; This requires a SymAccount. And no, I will not send you the software Now, [...]]]></description> <content:encoded><![CDATA[<p>At some point Veritas has release the Cluster Manager (Java Console) for Linux. Of course, Linux means Red Hat (and other RPM based flavours). Luckily it isn&#8217;t too hard making it work on Ubuntu (and friends).</p><p>First, <a
href="http://www.symantec.com/business/products/utilities.jsp?pcid=pcat_business_cont&#038;pvid=20_1" title="Veritas downloads" target="_blank">get the software</a> &#8211; This requires a SymAccount. And no, I will not send you the software</p><p>Now, prepare your Ubuntu box</p><div
class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ sudo apt-get install alien fakeroot</div></div><p>And finally convert and install the package</p><div
class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ fakeroot alien -c VCS_Cluster_Manager_Java_Console_5.1_for_Linux.rpm<br
/> $ sudo dpkg -i vrtscscm_5.1.00.20-1_all.deb</div></div><p>Now, from a terminal or otherwise (ALT-F2 in various Ubuntus) run</p><div
class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ /opt/VRTSvcs/bin/hagui</div></div><p>Or create a desktop entry for the Cluster Manager to put it in the menu</p><p>Create the file <i>~/.local/share/applications/hagui.desktop</i></p><div
class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[Desktop Entry]<br
/> Version=1.0<br
/> Name=Veritas Cluster Manager<br
/> GenericName=Veritas Cluster Manager<br
/> Comment=Manage Veritas clusters<br
/> Exec=/opt/VRTSvcs/bin/hagui<br
/> Terminal=false<br
/> Icon=ClusterManager<br
/> Type=Application<br
/> Categories=System</div></div><p>Copy <a
href="https://dl.dropbox.com/u/262048/www.nowhere.dk/ClusterManager.png" title="ClusterManager.png">ClusterManager.png</a> to <i>~/.icons</i></p><p><img
src="https://nowhere.dk/wp-content/uploads/2011/10/ClusterManager_screen-300x225.png" alt="" title="Cluster Manager about" width="300" height="225" class="aligncenter size-medium wp-image-1072" /></p> ]]></content:encoded> <wfw:commentRss>https://billeder.telianisse.org/articles/running-symantec-veritas-cluster-manager-on-ubuntu/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Ubuntu Natty: Fixing &#8216;unknown locale&#8217; in Python</title><link>https://billeder.telianisse.org/articles/ubuntu-natty-fixing-unknown-locale-in-python</link> <comments>https://billeder.telianisse.org/articles/ubuntu-natty-fixing-unknown-locale-in-python#comments</comments> <pubDate>Mon, 27 Jun 2011 08:20:53 +0000</pubDate> <dc:creator>alj</dc:creator> <category><![CDATA[Computer]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[python]]></category> <guid
isPermaLink="false">https://nowhere.dk/?p=1051</guid> <description><![CDATA[The fix itself is the same as for Python 2.5 &#8211; only the line numbers have changed. Open the file /usr/lib/python2.7/locale.py and find the line containing en_gb (line 921) and add these lines (this works for Danish locales): &#160; &#160; 'en_dk': &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; [...]]]></description> <content:encoded><![CDATA[<p>The fix itself is the same as for <a
href="http://www.nowhere.dk/articles/fixing_pythons_unknown_locale">Python 2.5</a> &#8211; only the line numbers have changed.</p><p>Open the file /usr/lib/python2.7/locale.py and find the line containing en_gb (line 921) and add these lines (this works for Danish locales):</p><div
class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; 'en_dk': &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'en_DK.ISO8859-1',<br
/> &nbsp; &nbsp; 'en_dk.iso88591': &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'en_DK.ISO8859-1',<br
/> &nbsp; &nbsp; 'en_dk@euro': &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'en_DK.ISO8859-15',</div></div><p>In order to avoid this change getting overwritten by packages updates, I use <em>dpkg-divert</em>:</p><div
class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ sudo dpkg-divert --add --rename --divert /usr/lib/python2.7/locale.py.real /usr/lib/python2.7/locale.py<br
/> $ sudo cp /usr/lib/python2.7/locale.py.real /usr/lib/python2.7/locale.py</div></div><p>If you wish to remove the diversion (if the package is fixed to support you locale at some point) simply run</p><div
class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ sudo dpkg-divert --rename --remove /usr/lib/python2.7/locale.py</div></div> ]]></content:encoded> <wfw:commentRss>https://billeder.telianisse.org/articles/ubuntu-natty-fixing-unknown-locale-in-python/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Ubuntu: Installing and running a Lodge-it pastebin</title><link>https://billeder.telianisse.org/articles/ubuntu-installing-and-running-a-lodge-it-pastebin</link> <comments>https://billeder.telianisse.org/articles/ubuntu-installing-and-running-a-lodge-it-pastebin#comments</comments> <pubDate>Mon, 20 Jun 2011 08:53:08 +0000</pubDate> <dc:creator>alj</dc:creator> <category><![CDATA[Computer]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[pastebin]]></category> <category><![CDATA[python]]></category> <guid
isPermaLink="false">https://nowhere.dk/?p=1035</guid> <description><![CDATA[When I switched from Apache2 to nginx, the software used to run my pastebin needed to be changed (I used Perl NoPaste, which is CGI based and I didn&#8217;t feel like messing with FastCGI wrappers). Instead I chose LodgeIt. LodgeIt is not just another pastebin, it features a clean user interface, different color schemes for [...]]]></description> <content:encoded><![CDATA[<p>When I switched from Apache2 to nginx, the software used to run <a
href="http://p.nowhere.dk/">my pastebin</a> needed to be changed (I used Perl NoPaste, which is CGI based and I didn&#8217;t feel like messing with FastCGI wrappers). Instead I chose <a
href="http://www.pocoo.org/projects/lodgeit/">LodgeIt</a>.<a
href="http://tux.crystalxp.net/en.id.20816-brunocb-louis-xiv---tux-soleil.html"><img
src="https://nowhere.dk/wp-content/uploads/2011/06/brunocb-louis-xiv-tux-soleil-300x300.png" alt="" title="brunocb-louis-xiv---tux-soleil" width="300" height="300" class="alignright size-medium wp-image-1043" /></a></p><blockquote><p>LodgeIt is not just another pastebin, it features a clean user interface, different color schemes for sourcecode, reply to pastes, support for all languages Pygments supports, and XMLRPC support</p></blockquote><p>LodgeIt spawns it&#8217;s own webserver, which I placed behind nginx.</p><ol><li>Install required packages<br
/><em>sudo apt-get install python-imaging python-sqlalchemy python-jinja2 python-pybabel python-werkzeug python-simplejson mercurial python-pygments</em></li><li>Go to the directory where you want LodgeIt to live and check out the Mercurial repository<br
/><em>hg clone http://dev.pocoo.org/hg/lodgeit-main</em></li><li>cd into lodgeit-main, open manage.py and change the lines<br
/><em>dburi</em><br
/><em>SECRET_KEY</em></li><li><a
href="http://dl.dropbox.com/u/262048/www.nowhere.dk/lodgeit">Download</a> the init script and place it in /etc/init.d and change the lines<br
/><em>APP_PATH</em><br
/><em>DAEMON_OPTS</em><br
/><em>RUN_AS</em></li><li>Configure autostart<br
/><em>sudo update-rc.d lodgeit defaults</em></li><li>Start the program<br
/><em>sudo service lodgeit start</em></li></ol><p>The init-script is also available <a
href="http://p.nowhere.dk/show/2/">for viewing</a></p><p>The nginx configuration is pretty easy &#8211; the only caveat is the fact that nginx does not support IPv6 for upstream servers, which is why lodgeit is configured to explicitly to listen on 127.0.0.1 (and not localhost which on a IPv6-enabled host is ::1).</p><div
class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">server {<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; listen [::]:80;<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; server_name my.server;<br
/> <br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; access_log /var/log/nginx/my.server-access.log;<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; error_log /var/log/nginx/my.server-error.log;<br
/> <br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; location / {<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_pass http://localhost:20000/;<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } <br
/> }</div></div> ]]></content:encoded> <wfw:commentRss>https://billeder.telianisse.org/articles/ubuntu-installing-and-running-a-lodge-it-pastebin/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Switched to nginx</title><link>https://billeder.telianisse.org/articles/switched-to-nginx</link> <comments>https://billeder.telianisse.org/articles/switched-to-nginx#comments</comments> <pubDate>Sun, 19 Jun 2011 06:37:18 +0000</pubDate> <dc:creator>alj</dc:creator> <category><![CDATA[Site]]></category> <guid
isPermaLink="false">https://nowhere.dk/?p=1029</guid> <description><![CDATA[Nowhere.dk has been moved to nginx (with php5-fpm) and most things seem to be working. There is one problem though. It seem that some of the older articles are indexed as /articles/-title-/index.php (which is sort of wrong) and accessing that type of URI results in a blank page. The problem seem to be that I&#8217;ve [...]]]></description> <content:encoded><![CDATA[<p>Nowhere.dk has been moved to nginx (with php5-fpm) and most things seem to be working.</p><p>There is one problem though.</p><p>It seem that some of the older articles are indexed as <em>/articles/-title-/index.php</em> (which is sort of wrong) and accessing that type of URI results in a blank page.</p><p>The problem seem to be that I&#8217;ve configured nginx to serve file in this order:</p><div
class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">location / {<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try_files $uri $uri/ @rewrites;<br
/> }</div></div><p>In theory it should then be a matter of defining the right rewrite</p><div
class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">location @rewrites {<br
/> &nbsp; &nbsp; &nbsp; &nbsp;rewrite ^/articles/(.*)/index.php$ /articles/$1 permanent;<br
/> &nbsp; &nbsp; &nbsp; &nbsp;rewrite ^ /index.php last;<br
/> }</div></div><p>but &#8211; There&#8217;s also a location definition for all php &#8220;files&#8221; (locations ending in .php, not files mind you) and I believe that the .php locations are handed over to php5-fpm withouth nginx actually testing to see if it&#8217;s there.</p><p>Perhaps I can solve this &#8211; but it is a minor problem.</p> ]]></content:encoded> <wfw:commentRss>https://billeder.telianisse.org/articles/switched-to-nginx/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Android: ASCII Android &#8211; splash1 image</title><link>https://billeder.telianisse.org/articles/ascii-android-splash1-image</link> <comments>https://billeder.telianisse.org/articles/ascii-android-splash1-image#comments</comments> <pubDate>Fri, 17 Jun 2011 06:00:14 +0000</pubDate> <dc:creator>alj</dc:creator> <category><![CDATA[Android]]></category> <category><![CDATA[alpharev]]></category> <category><![CDATA[android]]></category> <category><![CDATA[fastboot]]></category> <category><![CDATA[splash1]]></category> <guid
isPermaLink="false">https://nowhere.dk/?p=1020</guid> <description><![CDATA[The image itself was taken from the Android bios boot animation &#8211; I haven&#8217;t been able to find the name of the author but all credits go to him (or her) Use fastboot to install the image $ fastboot flash splash1 splash1.img sending 'splash1' (750 KB)... OKAY writing 'splash1'... OKAY $ fastboot reboot Get the [...]]]></description> <content:encoded><![CDATA[<p>The image itself was taken from the <a
href="http://is.gd/h0wVmL">Android bios boot animation</a> &#8211; I haven&#8217;t been able to find<br
/> the name of the author but all credits go to him (or her)</p><p><a
href="http://is.gd/h0wVmL"><img
src="https://nowhere.dk/wp-content/uploads/2011/06/00111-180x300.png" alt="Ascii Android" title="Ascii Android" width="180" height="300" class="alignleft size-medium wp-image-1021" /></a></p><p>Use <i>fastboot</i> to install the image</p><div
class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ fastboot flash splash1 splash1.img <br
/> sending 'splash1' (750 KB)... OKAY<br
/> writing 'splash1'... OKAY<br
/> $ fastboot reboot</div></div><p><a
href="http://dl.dropbox.com/u/262048/www.nowhere.dk/asciiandroid.zip">Get the file</a></p> ]]></content:encoded> <wfw:commentRss>https://billeder.telianisse.org/articles/ascii-android-splash1-image/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Tip: Change the Chrome proxy settings when running Xubuntu (Xfce)</title><link>https://billeder.telianisse.org/articles/tip-change-the-chrome-proxy-settings-when-running-xubuntu-xfce</link> <comments>https://billeder.telianisse.org/articles/tip-change-the-chrome-proxy-settings-when-running-xubuntu-xfce#comments</comments> <pubDate>Mon, 13 Jun 2011 17:55:21 +0000</pubDate> <dc:creator>alj</dc:creator> <category><![CDATA[Computer]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Ubuntu]]></category> <guid
isPermaLink="false">https://www.nowhere.dk/?p=1000</guid> <description><![CDATA[For a long time, in the olden days, I ran Xubuntu &#8211; mainly because I loved the simplicity of the desktop (and also because it was a lot lighter on my machine, a Thinkpad T40, than GNOME. And I just have no love for KDE). Then some changes were made to the menu system (or [...]]]></description> <content:encoded><![CDATA[<p>For a long time, in the olden days, I ran Xubuntu &#8211; mainly because I loved the simplicity of the desktop (and also because it was a lot lighter on my machine, a Thinkpad T40, than GNOME. And I just have no love for KDE). Then some changes were made to the menu system (or the way to edit it) which annoyed the hell out of me &#8211; that combined with a new, more powerful machine, I decided to switch to GNOME, which I&#8217;ve been running for a couple of years.</p><p><a
href="https://www.nowhere.dk/wp-content/uploads/2011/06/geek-miousik-portal-still-alive-L-1.jpeg"><img
src="https://www.nowhere.dk/wp-content/uploads/2011/06/geek-miousik-portal-still-alive-L-1-300x206.jpg" alt="" title="Portal" width="300" height="206" class="alignright size-medium wp-image-1013" /></a></p><p>Recently two things have happened</p><ul><li>Ubuntu decided to switch to Unity as the default graphical environment</li><li>GNOME released 3.0 and announced that GNOME 2.x will no longer be actively developed (bug fixes only)</li></ul><p>While both Unity and gnome-shell look nice and definitely have their place (I&#8217;m guessing they will both appeal much more to new users than GNOME2 ever did as well as work a lot better on netbooks and tablets) they both felt like they were hindering me in actually using my computer. Enter Xubuntu. Xfce felt like home :)</p><p>Now that I&#8217;m done rambling, let&#8217; get down to business.</p><p><a
href="http://google.com/chrome">Google Chrome</a> does not support Xfce, in the sense that it normally uses the proxy settings from GNOME or KDE; when running neither the proxy settings are simply not available. There are some hacks available to utilize the GNOME preferences infrastructure, but it seems cumbersome.</p><p>Chrome also support configuring proxy settings on the command line, in a rather neat way actually</p><ul><li> &#8211;proxy-server=&#8221;foopy:99&#8243;<br
/> Use the HTTP proxy &#8220;foopy:99&#8243; to load all URLs.</li><li>&#8211;proxy-server=&#8221;https=proxy1:80;http=socks4://baz:1080&#8243;<br
/> Load https://* URLs using the HTTP proxy &#8220;proxy1:80&#8243;. And load http://* URLs using the SOCKS v4 proxy baz:1080&#8243;.</li></ul><p>neat indeed, but not very efficient if you have a lot of rules &#8211; Normally one could use <a
href="https://chrome.google.com/webstore/detail/caehdcpeofiiigpdhbabniblemipncjj">Proxy Switchy!</a> but since it relies on the proxy configuration in Chrome it also does not work in Xfce. <a
href="http://en.wikipedia.org/wiki/Proxy_auto-config">Proxy Auto Config</a> to the rescue.</p><p>A PAC file, in essence, is a Javascript which returns what proxy to use for a given URL or IP (if any).</p><p>An example</p><div
class="codecolorer-container javascript vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div
class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span
style="color: #003366; font-weight: bold;">function</span> FindProxyForURL<span
style="color: #009900;">&#40;</span>url<span
style="color: #339933;">,</span>host<span
style="color: #009900;">&#41;</span> <br
/> <span
style="color: #009900;">&#123;</span><br
/> <br
/> &nbsp; &nbsp; &nbsp; &nbsp; <span
style="color: #003366; font-weight: bold;">var</span> resolved_ip <span
style="color: #339933;">=</span> dnsResolve<span
style="color: #009900;">&#40;</span>host<span
style="color: #009900;">&#41;</span><span
style="color: #339933;">;</span><br
/> <br
/> &nbsp; &nbsp; &nbsp; &nbsp; <span
style="color: #000066; font-weight: bold;">if</span> <span
style="color: #009900;">&#40;</span>isPlainHostName<span
style="color: #009900;">&#40;</span>host<span
style="color: #009900;">&#41;</span><span
style="color: #009900;">&#41;</span><br
/> &nbsp; &nbsp; &nbsp; &nbsp; <span
style="color: #000066; font-weight: bold;">return</span> <span
style="color: #3366CC;">&quot;DIRECT&quot;</span><span
style="color: #339933;">;</span><br
/> &nbsp; &nbsp; &nbsp; &nbsp; <span
style="color: #000066; font-weight: bold;">else</span> <span
style="color: #000066; font-weight: bold;">if</span> <span
style="color: #009900;">&#40;</span>host <span
style="color: #339933;">==</span> <span
style="color: #3366CC;">&quot;server1.my.corp&quot;</span> <span
style="color: #339933;">||</span><br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; host <span
style="color: #339933;">==</span> <span
style="color: #3366CC;">&quot;server2.my.corp&quot;</span><span
style="color: #009900;">&#41;</span><br
/> &nbsp; &nbsp; &nbsp; &nbsp; <span
style="color: #000066; font-weight: bold;">return</span> <span
style="color: #3366CC;">&quot;PROXY proxy.my.corp:8080&quot;</span><span
style="color: #339933;">;</span><br
/> &nbsp; &nbsp; &nbsp; &nbsp; <span
style="color: #000066; font-weight: bold;">else</span> <span
style="color: #000066; font-weight: bold;">if</span> <span
style="color: #009900;">&#40;</span>isInNet<span
style="color: #009900;">&#40;</span>resolved_ip<span
style="color: #339933;">,</span> <span
style="color: #3366CC;">&quot;192.168.1.0&quot;</span><span
style="color: #339933;">,</span> <span
style="color: #3366CC;">&quot;255.255.255.0&quot;</span><span
style="color: #009900;">&#41;</span> <span
style="color: #339933;">||</span><br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; isInNet<span
style="color: #009900;">&#40;</span>resolved_ip<span
style="color: #339933;">,</span> <span
style="color: #3366CC;">&quot;192.168.4.0&quot;</span><span
style="color: #339933;">,</span> <span
style="color: #3366CC;">&quot;255.255.255.0&quot;</span><span
style="color: #009900;">&#41;</span><br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span
style="color: #009900;">&#41;</span><br
/> &nbsp; &nbsp; &nbsp; &nbsp; <span
style="color: #000066; font-weight: bold;">return</span> <span
style="color: #3366CC;">&quot;DIRECT&quot;</span><span
style="color: #339933;">;</span><br
/> &nbsp; &nbsp; &nbsp; &nbsp; <span
style="color: #000066; font-weight: bold;">else</span><br
/> &nbsp; &nbsp; &nbsp; &nbsp; <span
style="color: #000066; font-weight: bold;">return</span> <span
style="color: #3366CC;">&quot;PROXY localhost:18080&quot;</span><span
style="color: #339933;">;</span><br
/> <span
style="color: #009900;">&#125;</span></div></div><p>I use <a
href="https://dropbox.com">Dropbox</a> to keep the proxy config in sync between machines.</p><p>To use the proxy pac, I created a copy of the Chrome launcher</p><div
class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ cp /usr/share/applications/google-chrome.desktop ~/.local/share/applications</div></div><p>Now, locate all lines containing<pre>Exec=/opt/google/chrome/google-chrome</pre><p> and change it to</p><div
class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Exec=/opt/google/chrome/google-chrome --proxy-pac-url=file:///path/to/proxy.pac %U</div></div><p>or</p><div
class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Exec=/opt/google/chrome/google-chrome --proxy-server=&quot;https=proxy1:80;http=socks4://baz:1080 %U</div></div><p>That&#8217;s it. The next time you launch Google Chrome, it will use the proxy settings configured in the application shortcut.</p> ]]></content:encoded> <wfw:commentRss>https://billeder.telianisse.org/articles/tip-change-the-chrome-proxy-settings-when-running-xubuntu-xfce/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Ubuntu: Install Percona XtraBackup</title><link>https://billeder.telianisse.org/articles/ubuntu-install-percona-xtrabackup</link> <comments>https://billeder.telianisse.org/articles/ubuntu-install-percona-xtrabackup#comments</comments> <pubDate>Mon, 13 Jun 2011 13:51:59 +0000</pubDate> <dc:creator>alj</dc:creator> <category><![CDATA[Computer]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Ubuntu]]></category> <guid
isPermaLink="false">https://nowhere.dk/?p=1002</guid> <description><![CDATA[Percona XtraBackup is an open-source hot backup utility for MySQL that doesn&#8217;t lock your database during the backup. It can back up data from InnoDB, XtraDB, and MyISAM tables on MySQL 5.0 and newer servers, and it has many advanced features. Commercial support contracts are available. For a high-level overview of the features, including a [...]]]></description> <content:encoded><![CDATA[<blockquote><p>Percona XtraBackup is an open-source hot backup utility for MySQL that doesn&#8217;t lock your database during the backup. It can back up data from InnoDB, XtraDB, and MyISAM tables on MySQL 5.0 and newer servers, and it has many advanced features. <a
href="http://www.percona.com/mysql-support/">Commercial support contracts are available</a>. For a high-level overview of the features, including a feature comparison, please see the <a
href="http://www.percona.com/software/percona-xtrabackup/">XtraBackup homepage</a>.</p></blockquote><p>Luckily installing XtraBackup is pretty easy</p><div
class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 1C4CBDCDCD2EFD2A<br
/> $ echo &quot;deb http://repo.percona.com/apt maverick main&quot; | sudo tee -a /etc/apt/sources.list<br
/> $ sudo apt-get update<br
/> $ sudo apt-get install xtrabackup</div></div><p>I wrapped the backup program in a small shell script</p><div
class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div
class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span
style="color: #666666; font-style: italic;">#!/bin/bash</span><br
/> <span
style="color: #007800;">BDIR</span>=<span
style="color: #ff0000;">&quot;/home/backup/mysql&quot;</span><br
/> <br
/> <span
style="color: #666666; font-style: italic;"># Run backup</span><br
/> <span
style="color: #000000; font-weight: bold;">/</span>usr<span
style="color: #000000; font-weight: bold;">/</span>bin<span
style="color: #000000; font-weight: bold;">/</span>innobackupex-1.5.1 <span
style="color: #660033;">--stream</span>=<span
style="color: #c20cb9; font-weight: bold;">tar</span> <span
style="color: #660033;">--defaults-file</span>=<span
style="color: #000000; font-weight: bold;">/</span>etc<span
style="color: #000000; font-weight: bold;">/</span>mysql<span
style="color: #000000; font-weight: bold;">/</span>my.cnf .<span
style="color: #000000; font-weight: bold;">/</span> <span
style="color: #000000; font-weight: bold;">|</span> <span
style="color: #c20cb9; font-weight: bold;">gzip</span> <span
style="color: #660033;">-c</span> <span
style="color: #660033;">-9</span> <span
style="color: #000000; font-weight: bold;">&gt;</span> <span
style="color: #007800;">$BDIR</span><span
style="color: #000000; font-weight: bold;">/</span>backup.<span
style="color: #000000; font-weight: bold;">`</span><span
style="color: #c20cb9; font-weight: bold;">date</span> +<span
style="color: #000000; font-weight: bold;">%</span>m<span
style="color: #000000; font-weight: bold;">%</span>d<span
style="color: #000000; font-weight: bold;">%</span>Y<span
style="color: #000000; font-weight: bold;">%</span>H<span
style="color: #000000; font-weight: bold;">%</span>M<span
style="color: #000000; font-weight: bold;">%</span>S<span
style="color: #000000; font-weight: bold;">`</span>.tar.gz<br
/> <br
/> <span
style="color: #666666; font-style: italic;"># Remove backups older than 7 days</span><br
/> <span
style="color: #c20cb9; font-weight: bold;">find</span> <span
style="color: #007800;">$BDIR</span> <span
style="color: #660033;">-name</span> backup.\<span
style="color: #000000; font-weight: bold;">*</span> <span
style="color: #660033;">-ctime</span> +<span
style="color: #000000;">7</span> <span
style="color: #660033;">-exec</span> <span
style="color: #c20cb9; font-weight: bold;">rm</span> <span
style="color: #7a0874; font-weight: bold;">&#123;</span><span
style="color: #7a0874; font-weight: bold;">&#125;</span> \;</div></div><p>I prefer to have the the username and password for MySQL in my.cnf (add these lines under [client])</p><div
class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">user &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = root<br
/> password &nbsp; &nbsp;= Secreeet</div></div><p>Finally, add the script to root&#8217;s crontab (you know, sudo crontab -e)</p><div
class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">0 2 * * * bash /usr/local/bin/mysql_backup.sh &gt; /dev/null 2&gt;&amp;1</div></div> ]]></content:encoded> <wfw:commentRss>https://billeder.telianisse.org/articles/ubuntu-install-percona-xtrabackup/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
