<?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-5117888051746154536</id><updated>2011-07-28T07:36:09.609-07:00</updated><title type='text'>Nico's Linux</title><subtitle type='html'>Linux and Mobile stuff.
Just notes, no fluff, for my reference.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://nicoslinux.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5117888051746154536/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://nicoslinux.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Nicolas Galler</name><uri>http://www.blogger.com/profile/09553414029059795270</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://1.bp.blogspot.com/_EpJin5yWrNk/SqMM0RlSejI/AAAAAAAAAzQ/NY7_5-kCeNs/S220/nich-head.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5117888051746154536.post-8258711706473173818</id><published>2010-02-07T13:50:00.000-08:00</published><updated>2010-02-12T14:32:19.262-08:00</updated><title type='text'>Eclipse 3.4 on Arch Linux</title><content type='html'>2 Problems when trying to run Eclipse 3.4.2 on Arch Linux x64 (eclipse 3.5 runs great):&lt;br /&gt;&lt;ul&gt;&lt;li&gt;xulrunner error - was resolved by compiling an older version of xulrunner (I used 1.9.0.17) and passing parameter specifying its path in eclipse.ini:&lt;/li&gt;&lt;/ul&gt;&lt;pre&gt;-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/local/lib/xulrunner-1.9.0.17&lt;/pre&gt;&lt;ul&gt;&lt;li&gt;some buttons seemed to "stick", this was resolved with: export GDK_NATIVE_WINDOWS=1&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5117888051746154536-8258711706473173818?l=nicoslinux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nicoslinux.blogspot.com/feeds/8258711706473173818/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nicoslinux.blogspot.com/2010/02/eclipse-34-on-arch-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5117888051746154536/posts/default/8258711706473173818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5117888051746154536/posts/default/8258711706473173818'/><link rel='alternate' type='text/html' href='http://nicoslinux.blogspot.com/2010/02/eclipse-34-on-arch-linux.html' title='Eclipse 3.4 on Arch Linux'/><author><name>Nicolas Galler</name><uri>http://www.blogger.com/profile/09553414029059795270</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://1.bp.blogspot.com/_EpJin5yWrNk/SqMM0RlSejI/AAAAAAAAAzQ/NY7_5-kCeNs/S220/nich-head.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5117888051746154536.post-8055406823196488520</id><published>2010-02-03T18:58:00.000-08:00</published><updated>2010-02-03T18:58:26.890-08:00</updated><title type='text'>OpenID and Mobile Devices</title><content type='html'>When I first started &lt;a href="http://sailfish.mobi/"&gt;sailfish.mobi&lt;/a&gt; I wanted to make OpenID the only login option... the idea being that users would more likely not want to provide a password to yet another site.&amp;nbsp; However I was very unhappy with the experience on the mobile device - there is no address bar displayed, so no quick way for the user to confirm that they are indeed giving their password to Google.com and not to some cleverly disguised phishing site.&lt;br /&gt;&lt;br /&gt;There is a way to go through the options to see the page address but it is a few clicks away and even there you have to parse out the domain which is not as clearly visible on the tiny blackberry screen.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;IMHO the page's domain should be displayed in an obvious fashion when submitting to an SSL site.&amp;nbsp; With maybe an option to hide it for certain domains.&lt;br /&gt;&lt;br /&gt;In the meantime I have just added a plain old email/password option to the site (I might put the ability to associate an openid to such a login in the future... but not sure there would be much interest, I mean if you already went through the trouble of creating a password you might as well use it)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5117888051746154536-8055406823196488520?l=nicoslinux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nicoslinux.blogspot.com/feeds/8055406823196488520/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nicoslinux.blogspot.com/2010/02/openid-and-mobile-devices.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5117888051746154536/posts/default/8055406823196488520'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5117888051746154536/posts/default/8055406823196488520'/><link rel='alternate' type='text/html' href='http://nicoslinux.blogspot.com/2010/02/openid-and-mobile-devices.html' title='OpenID and Mobile Devices'/><author><name>Nicolas Galler</name><uri>http://www.blogger.com/profile/09553414029059795270</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://1.bp.blogspot.com/_EpJin5yWrNk/SqMM0RlSejI/AAAAAAAAAzQ/NY7_5-kCeNs/S220/nich-head.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5117888051746154536.post-3131339312930954841</id><published>2010-01-31T22:37:00.000-08:00</published><updated>2010-01-31T22:37:41.719-08:00</updated><title type='text'>PHPUnit recursive test runner</title><content type='html'>You can run php unit tests by pointing it at a directory:&lt;br /&gt;&lt;br /&gt;phpunit MyTestFolder&lt;br /&gt;&lt;br /&gt;What I did not realize is that the test files have to end in "Test.php" (I am used to a test prefix instead).&amp;nbsp; No big deal now that I know it!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5117888051746154536-3131339312930954841?l=nicoslinux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nicoslinux.blogspot.com/feeds/3131339312930954841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nicoslinux.blogspot.com/2010/01/phpunit-recursive-test-runner.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5117888051746154536/posts/default/3131339312930954841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5117888051746154536/posts/default/3131339312930954841'/><link rel='alternate' type='text/html' href='http://nicoslinux.blogspot.com/2010/01/phpunit-recursive-test-runner.html' title='PHPUnit recursive test runner'/><author><name>Nicolas Galler</name><uri>http://www.blogger.com/profile/09553414029059795270</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://1.bp.blogspot.com/_EpJin5yWrNk/SqMM0RlSejI/AAAAAAAAAzQ/NY7_5-kCeNs/S220/nich-head.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5117888051746154536.post-4948545559513284556</id><published>2010-01-31T07:50:00.000-08:00</published><updated>2010-02-03T18:59:37.475-08:00</updated><title type='text'>Apache Caching and Compression</title><content type='html'>For caching, enable mod_expires and use the following config:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;ifmodule mod_expires.c=""&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExpiresActive On&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExpiresByType image/gif "access plus 1 week"&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExpiresByType image/png "access plus 1 week"&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExpiresByType image/jpg "access plus 1 week"&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExpiresByType image/jpeg "access plus 1 week"&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExpiresByType image/x-icon "access plus 1 week"&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExpiresByType application/x-shockwave-flash "access plus 1 week"&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExpiresByType text/html "access plus 1 hour"&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExpiresByType text/css "access plus 1 day"&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExpiresByType text/javascript "access plus 1 day"&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/ifmodule&gt;&lt;br /&gt;&lt;br /&gt;This will cache even PHP pages.&amp;nbsp; So add the following before session_start:&lt;br /&gt;&amp;nbsp;&amp;nbsp; session_cache_limiter("nocache")&lt;br /&gt;&lt;br /&gt;This way authenticated users (who are presumably using the dynamic features) are not cached, but others are.&amp;nbsp; CSS and images are still cached for everyone, of course.&amp;nbsp; One limitation is that if a user changes from logged off to logged in, and he keeps visiting the same pages that he had seen before when he had not yet logged in, he will still see the logged off version.&lt;br /&gt;&lt;br /&gt;For compression, this can be enabled for specific types like this:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;code&gt;AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;(and enable mod_deflate)&lt;br /&gt;&lt;br /&gt;There is a sample config on http://httpd.apache.org/docs/2.0/mod/mod_deflate.html that shows how to enable it in general and limit it for specific browsers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5117888051746154536-4948545559513284556?l=nicoslinux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nicoslinux.blogspot.com/feeds/4948545559513284556/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nicoslinux.blogspot.com/2010/01/apache-caching-and-compression.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5117888051746154536/posts/default/4948545559513284556'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5117888051746154536/posts/default/4948545559513284556'/><link rel='alternate' type='text/html' href='http://nicoslinux.blogspot.com/2010/01/apache-caching-and-compression.html' title='Apache Caching and Compression'/><author><name>Nicolas Galler</name><uri>http://www.blogger.com/profile/09553414029059795270</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://1.bp.blogspot.com/_EpJin5yWrNk/SqMM0RlSejI/AAAAAAAAAzQ/NY7_5-kCeNs/S220/nich-head.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5117888051746154536.post-4577423576727956273</id><published>2010-01-30T14:39:00.001-08:00</published><updated>2010-01-30T14:39:40.143-08:00</updated><title type='text'>Smart Shopper</title><content type='html'>New comparison shopping tool for Blackberry - &lt;a href="http://www.sailfish.mobi/store/details/SmartShopper"&gt;Smart Shopper&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5117888051746154536-4577423576727956273?l=nicoslinux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nicoslinux.blogspot.com/feeds/4577423576727956273/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nicoslinux.blogspot.com/2010/01/smart-shopper.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5117888051746154536/posts/default/4577423576727956273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5117888051746154536/posts/default/4577423576727956273'/><link rel='alternate' type='text/html' href='http://nicoslinux.blogspot.com/2010/01/smart-shopper.html' title='Smart Shopper'/><author><name>Nicolas Galler</name><uri>http://www.blogger.com/profile/09553414029059795270</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://1.bp.blogspot.com/_EpJin5yWrNk/SqMM0RlSejI/AAAAAAAAAzQ/NY7_5-kCeNs/S220/nich-head.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5117888051746154536.post-80475421832991402</id><published>2010-01-23T12:35:00.001-08:00</published><updated>2010-01-23T12:35:57.403-08:00</updated><title type='text'>Blackberry simulator log</title><content type='html'>&lt;p&gt;Use this flag in the simulator:&lt;/p&gt;&lt;code&gt;&lt;br /&gt;"/app-param=JvmDebugFile:E:\Java\BB-Log.txt"&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;p&gt;It will log the stuff that is normally accessible through the on-device log.  E.g. stuff wrote to System.err.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5117888051746154536-80475421832991402?l=nicoslinux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nicoslinux.blogspot.com/feeds/80475421832991402/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nicoslinux.blogspot.com/2010/01/blackberry-simulator-log.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5117888051746154536/posts/default/80475421832991402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5117888051746154536/posts/default/80475421832991402'/><link rel='alternate' type='text/html' href='http://nicoslinux.blogspot.com/2010/01/blackberry-simulator-log.html' title='Blackberry simulator log'/><author><name>Nicolas Galler</name><uri>http://www.blogger.com/profile/09553414029059795270</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://1.bp.blogspot.com/_EpJin5yWrNk/SqMM0RlSejI/AAAAAAAAAzQ/NY7_5-kCeNs/S220/nich-head.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5117888051746154536.post-6297356856612026411</id><published>2010-01-21T16:20:00.000-08:00</published><updated>2010-01-21T16:20:53.221-08:00</updated><title type='text'>Set LVM volume permissions via UDEV</title><content type='html'>&lt;p&gt;I needed to set up the permissions on an LV for my user in order to use it for VirtualBox.  This is what I did (on Arch Linux):&lt;/p&gt;&lt;p&gt;In /etc/udev/rules.d/zz-vmdmsetup.rules:&lt;/p&gt;&lt;code&gt;&lt;br /&gt;SUBSYSTEM=="block", \&lt;br /&gt;    KERNEL=="dm-*",\&lt;br /&gt;    ACTION=="add|change", \&lt;br /&gt;    PROGRAM="/etc/udev/get-lv-name.sh %M %m", \&lt;br /&gt;    RESULT=="vm*", \&lt;br /&gt;    GROUP="nico", MODE="0660"&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;p&gt;What this does - for "dm" devices, it will check the name via the get-lv-name.sh program, and if it starts with "vm", puts it in my user group and change the permission to g+rw.&lt;/p&gt;&lt;p&gt;Here is the get-lv-name.sh script:&lt;/p&gt;&lt;code&gt;&lt;br /&gt;#!/bin/sh&lt;br /&gt;&lt;br /&gt;# Usage: get-lv-name.sh $MAJOR $MINOR&lt;br /&gt;# Outputs the corresponding logical volume name&lt;br /&gt;&lt;br /&gt;/sbin/dmsetup info -j $1 -m $2 | &lt;br /&gt;    /bin/grep Name |&lt;br /&gt;    /bin/cut -d '-' -f 2-&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;p&gt;Finally to add it to VirtualBox:&lt;/p&gt;&lt;code&gt;&lt;br /&gt;vboxmanage internalcommands createrawvmdk &lt;br /&gt;  -filename /home/user/.VirtualBox/HardDisks/w7rc.vmdk &lt;br /&gt;  -rawdisk /dev/vg0/vm1 -register&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5117888051746154536-6297356856612026411?l=nicoslinux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nicoslinux.blogspot.com/feeds/6297356856612026411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nicoslinux.blogspot.com/2010/01/set-lvm-volume-permissions-via-udev.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5117888051746154536/posts/default/6297356856612026411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5117888051746154536/posts/default/6297356856612026411'/><link rel='alternate' type='text/html' href='http://nicoslinux.blogspot.com/2010/01/set-lvm-volume-permissions-via-udev.html' title='Set LVM volume permissions via UDEV'/><author><name>Nicolas Galler</name><uri>http://www.blogger.com/profile/09553414029059795270</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://1.bp.blogspot.com/_EpJin5yWrNk/SqMM0RlSejI/AAAAAAAAAzQ/NY7_5-kCeNs/S220/nich-head.jpg'/></author><thr:total>1</thr:total></entry></feed>
