<?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>Kocram</title>
	<atom:link href="http://www.kocram.com/wp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kocram.com/wp</link>
	<description>be quiet and drive far away</description>
	<lastBuildDate>Thu, 10 May 2012 21:17:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Gource &#8211; graphical representation of software version control (svn, git, mercurial, bazaar)</title>
		<link>http://www.kocram.com/wp/2012/05/gource-graphical-representation-of-software-version-control-svn-git-mercurial-bazaar/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=gource-graphical-representation-of-software-version-control-svn-git-mercurial-bazaar</link>
		<comments>http://www.kocram.com/wp/2012/05/gource-graphical-representation-of-software-version-control-svn-git-mercurial-bazaar/#comments</comments>
		<pubDate>Thu, 10 May 2012 21:17:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Graphics]]></category>

		<guid isPermaLink="false">http://www.kocram.com/wp/?p=286</guid>
		<description><![CDATA[Gource &#8211; graphical representation of software version control: http://code.google.com/p/gource/]]></description>
			<content:encoded><![CDATA[<p>Gource &#8211; graphical representation of software version control:<br />
<a href="http://code.google.com/p/gource/">http://code.google.com/p/gource/</a></p>
<p><a href="http://www.youtube.com/watch?v=NjUuAuBcoqs"><img src="http://img.youtube.com/vi/NjUuAuBcoqs/2.jpg"></a></p>
<p><a href="http://www.youtube.com/watch?v=NjUuAuBcoqs">Click here</a> to view the video on YouTube.</p>

]]></content:encoded>
			<wfw:commentRss>http://www.kocram.com/wp/2012/05/gource-graphical-representation-of-software-version-control-svn-git-mercurial-bazaar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FormAlchemy 1.4.1: language selection &#8211; fieldset.render(lang=&#8217;fr&#8217;) ignored &#8211; solution</title>
		<link>http://www.kocram.com/wp/2012/04/formalchemy-1-4-1-language-selection-fieldset-renderlangfr-ignored-solution/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=formalchemy-1-4-1-language-selection-fieldset-renderlangfr-ignored-solution</link>
		<comments>http://www.kocram.com/wp/2012/04/formalchemy-1-4-1-language-selection-fieldset-renderlangfr-ignored-solution/#comments</comments>
		<pubDate>Wed, 11 Apr 2012 20:21:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.kocram.com/wp/?p=235</guid>
		<description><![CDATA[I&#8217;m using FormAlchemy 1.4.1, SQLAlchemy 0.7.2, Plone 3.3.4, Python 2.4.6 What steps will reproduce the problem? create a fieldset with a date field call fieldset.render(lang=&#8217;fr&#8217;) the form uses English language (ie months) With a bit of debug, I finally got &#8230;<p class="read-more"><a href="http://www.kocram.com/wp/2012/04/formalchemy-1-4-1-language-selection-fieldset-renderlangfr-ignored-solution/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.kocram.com/wp/wp-content/uploads/2011/09/example-grid.png" rel="lightbox[235]"><img class="alignright size-full wp-image-249" title="example-grid" src="http://www.kocram.com/wp/wp-content/uploads/2011/09/example-grid.png" alt="" width="203" height="110" /></a>I&#8217;m using <strong>FormAlchemy</strong> 1.4.1, <strong>SQLAlchemy</strong> 0.7.2, <strong>Plone</strong> 3.3.4, <strong>Python</strong> 2.4.6</p>
<p>What steps will reproduce the problem?</p>
<ol>
<li>create a fieldset with a date field</li>
<li>call fieldset.render(lang=&#8217;fr&#8217;)</li>
<li>the form uses English language (ie months)</li>
</ol>
<p>With a bit of debug, I <span style="text-decoration: underline;">finally got it working</span> by adding:<br />
<strong>fieldset.mydatefield.set(html=[('lang', 'fr')])</strong></p>
<p>Details:<br />
I noticed &#8220;DateFieldRenderer&#8221; uses &#8220;FieldRenderer.get_translator&#8221; to get the correct translation.<br />
&#8220;FieldRenderer.get_translator&#8221; expects and argument &#8216;lang&#8217; in kwargs.<br />
The kwargs come from &#8220;AbstractField.render&#8221;, this &#8220;render&#8221; method calls &#8220;AbstractField._get_render_opts&#8221;; &#8220;_get_render_opts&#8221; reads &#8220;render_opts&#8221; and &#8220;html_options&#8221; from the field.<br />
&#8220;render_opts&#8221; (that I&#8217;d set using fs.mydatefield.set(options=&#8230;.)) can&#8217;t handle a &#8216;lang&#8217; entry, but the &#8220;html_options&#8221; (that I&#8217;d set using fs.mydatefield.set(html=&#8230;.)) accept the lang option.<br />
Therefore &#8220;fieldset.mydatefield.set(html=[('lang', 'fr')])&#8221; seems to work, but I expect this to be a workaround ( <a href="http://docs.formalchemy.org/formalchemy/internationalisation.html">http://docs.formalchemy.org/formalchemy/internationalisation.html</a> ).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kocram.com/wp/2012/04/formalchemy-1-4-1-language-selection-fieldset-renderlangfr-ignored-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Max Ehrmann, Desiderata</title>
		<link>http://www.kocram.com/wp/2012/03/max-ehrmann-desiderata/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=max-ehrmann-desiderata</link>
		<comments>http://www.kocram.com/wp/2012/03/max-ehrmann-desiderata/#comments</comments>
		<pubDate>Thu, 29 Mar 2012 16:19:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Various]]></category>

		<guid isPermaLink="false">http://www.kocram.com/wp/?p=434</guid>
		<description><![CDATA[Va&#8217; serenamente in mezzo al rumore e alla fretta, e ricorda quale pace ci può essere nel silenzio. Finché è possibile, senza cedimenti, conserva i buoni rapporti con tutti. Di&#8217; la tua verità con calma e chiarezza, e ascolta gli &#8230;<p class="read-more"><a href="http://www.kocram.com/wp/2012/03/max-ehrmann-desiderata/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Va&#8217; serenamente in mezzo al rumore e alla fretta,<br />
e ricorda quale pace ci può essere nel silenzio.</p>
<p>Finché è possibile, senza cedimenti,<br />
conserva i buoni rapporti con tutti.<br />
Di&#8217; la tua verità con calma e chiarezza,<br />
e ascolta gli altri,<br />
anche il noioso e l&#8217;ignorante,<br />
anch&#8217;essi hanno una loro storia da raccontare.<br />
Evita le persone volgari e aggressive,<br />
esse sono un tormento per lo spirito.</p>
<p>Se ti paragoni agli altri,<br />
puoi diventare vanitoso o aspro,<br />
perché sempre ci saranno persone superiori ed inferiori a te.</p>
<p>Rallegrati dei tuoi successi come dei tuoi progetti.<br />
Mantieniti interessato alla tua professione, benché umile,<br />
e&#8217; un vero patrimonio nelle fortune mutevoli del tempo.<br />
Sii prudente nei tuoi affari,<br />
poiché il mondo é pieno di inganno.<br />
Ma questo non ti renda cieco su quanto c&#8217;è di virtuoso,<br />
molte persone lottano per alti ideali,<br />
e dovunque la vita e&#8217; piena di eroismo.</p>
<p>Sii te stesso.<br />
Specialmente non fingere negli affetti.<br />
E non essere cinico riguardo all&#8217;amore,<br />
perché a dispetto di ogni aridità e disillusione<br />
esso e&#8217; perenne come l&#8217;erba.</p>
<p>Accetta serenamente l&#8217;insegnamento degli anni,<br />
abbandonando con grazia le cose della giovinezza.<br />
Coltiva la forza d&#8217;animo per difenderti dall&#8217;improvvisa sfortuna.<br />
Ma non angosciarti con fantasie oscure.<br />
Molte paure nascono dalla stanchezza e dalla solitudine.</p>
<p>Al di la&#8217; di una sana disciplina,<br />
sii delicato con te stesso.<br />
Tu sei un figlio dell&#8217;universo,<br />
non meno degli alberi e delle stelle;<br />
tu hai diritto ad essere qui.<br />
E che ti sia chiaro o no,<br />
senza dubbio l&#8217;universo va schiudendosi come dovrebbe.</p>
<p>Perciò sta in pace con Dio,<br />
comunque tu Lo concepisca,<br />
e qualunque siano i tuoi affanni e le tue aspirazioni,<br />
nella rumorosa confusione della vita conserva la pace con la tua anima.</p>
<p>Nonostante tutta la sua falsità, il lavoro ingrato ed i sogni infranti,<br />
questo è ancora un mondo meraviglioso.<br />
Sii allegro.<br />
Sforzati di essere felice.</p>
<p><strong>Max Ehrmann, Desiderata</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kocram.com/wp/2012/03/max-ehrmann-desiderata/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ansel Adams</title>
		<link>http://www.kocram.com/wp/2012/03/ansel-adams/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ansel-adams</link>
		<comments>http://www.kocram.com/wp/2012/03/ansel-adams/#comments</comments>
		<pubDate>Wed, 07 Mar 2012 16:37:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.kocram.com/wp/?p=421</guid>
		<description><![CDATA[Non ci sono regole per una buona foto, ci sono solo buone fotografie. / Ansel Adams Ho sempre pensato che la fotografia sia come una barzelletta: se la devi spiegare non è venuta bene. / Ansel Adams L’assoluta facilità con &#8230;<p class="read-more"><a href="http://www.kocram.com/wp/2012/03/ansel-adams/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Non ci sono regole per una buona foto, ci sono solo buone fotografie. <strong>/</strong> <em>Ansel Adams</em></p>
<p>Ho sempre pensato che la fotografia sia come una barzelletta: se la devi spiegare non è venuta bene. <strong>/</strong> <em>Ansel Adams</em></p>
<p>L’assoluta facilità con cui possiamo produrre una immagine banale porta spesso ad una totale mancanza di creatività. <strong>/</strong> <em>Ansel Adams</em></p>
<p>Molti ritengono che le mie immagini rientrino nella categoria delle &#8220;foto realistiche&#8221;, mentre di fatto quanto offrono di reale risiede solo nella precisione dell’immagine ottica; i loro valori sono invece decisamente &#8220;distaccati dalla realtà&#8221;. <strong>/</strong> <em>Ansel Adams</em></p>
<p>Ci sono due persone in ogni foto: il fotografo e l’osservatore. <strong>/</strong> <em>Ansel Adams</em></p>
<p>Fotografia. Un’austera e sfolgorante poesia dal vero. <strong>/</strong> <em>Ansel Adams</em></p>
<p><em><a href="http://www.kocram.com/wp/wp-content/uploads/2012/02/ansel_adams.jpg" rel="lightbox[421]"><img class="alignnone size-full wp-image-422" title="ansel_adams" src="http://www.kocram.com/wp/wp-content/uploads/2012/02/ansel_adams.jpg" alt="" width="432" height="316" /></a><br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kocram.com/wp/2012/03/ansel-adams/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: enable history for user (howto)</title>
		<link>http://www.kocram.com/wp/2012/02/linux-enable-history-for-user-howto/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=linux-enable-history-for-user-howto</link>
		<comments>http://www.kocram.com/wp/2012/02/linux-enable-history-for-user-howto/#comments</comments>
		<pubDate>Wed, 22 Feb 2012 22:17:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computer Science]]></category>

		<guid isPermaLink="false">http://www.kocram.com/wp/?p=229</guid>
		<description><![CDATA[Example: enable history for root user. Edit &#8216;bash_profile&#8217;: sudo vi /root/.bash_profile And add the following two lines: HISTFILE='/root/.bash_hystory' export HISTFILE Notes .bash_profile is executed for login shells (via console, either sitting at the machine, or remotely via ssh). .bashrc is &#8230;<p class="read-more"><a href="http://www.kocram.com/wp/2012/02/linux-enable-history-for-user-howto/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Example: enable history for root user.<br />
Edit &#8216;bash_profile&#8217;:</p>
<pre>sudo vi /root/.bash_profile</pre>
<p>And add the following two lines:</p>
<pre> HISTFILE='/root/.bash_hystory'
 export HISTFILE</pre>
<p>Notes<br />
<strong>.bash_profile</strong> is executed for login shells (via console, either sitting at the machine, or remotely via ssh).<br />
<strong>.bashrc</strong> is executed for interactive non-login shells (ie: you’ve already logged into your machine and open a new terminal window inside Gnome or KDE)</p>
<p><a href="http://www.kocram.com/wp/wp-content/uploads/2011/09/banana-boy-tux-perso-2990.png" rel="lightbox[229]"><img class="size-thumbnail wp-image-240 alignnone" title="banana-boy-tux-perso-2990" src="http://www.kocram.com/wp/wp-content/uploads/2011/09/banana-boy-tux-perso-2990-150x150.png" alt="" width="69" height="69" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kocram.com/wp/2012/02/linux-enable-history-for-user-howto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Bookmarks &#8211; Firefox shortcut (no addon)</title>
		<link>http://www.kocram.com/wp/2012/02/google-bookmarks-firefox-shortcut-no-addon/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=google-bookmarks-firefox-shortcut-no-addon</link>
		<comments>http://www.kocram.com/wp/2012/02/google-bookmarks-firefox-shortcut-no-addon/#comments</comments>
		<pubDate>Sun, 12 Feb 2012 17:08:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.kocram.com/wp/?p=388</guid>
		<description><![CDATA[This is a small script you can use to place a special bookmark that will let you save current page in your google bookmarks. No add-ons are required and it really easy to use. Create a new bookmark: Bookmarks &#62; &#8230;<p class="read-more"><a href="http://www.kocram.com/wp/2012/02/google-bookmarks-firefox-shortcut-no-addon/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>This is a small script you can use to place a special bookmark that will let you save current page in your google bookmarks.<br />
No add-ons are required and it really easy to use.</p>
<ol>
<li>Create a new bookmark: Bookmarks &gt; Show all bookmarks &gt; Bookmarks menu &gt; Organize &gt; New bookmark</li>
<li>Set &#8220;name&#8221; with something like &#8220;Google Bookmark&#8221;</li>
<li>In the &#8220;location&#8221; field add the following code:
<pre>javascript:(function(){var%20a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk='+c(b.location)+'&amp;title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();</pre>
</li>
<li>Done!</li>
</ol>
<p>Everytime you need to save a google bookmark just click on the Bookmarks menu, select your special bookmark called &#8220;Google Bookmark&#8221; and enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kocram.com/wp/2012/02/google-bookmarks-firefox-shortcut-no-addon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Browsing a REST interface with Firefox and ModifyHeaders</title>
		<link>http://www.kocram.com/wp/2012/02/browsing-a-rest-interface-with-firefox-and-modifyheaders/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=browsing-a-rest-interface-with-firefox-and-modifyheaders</link>
		<comments>http://www.kocram.com/wp/2012/02/browsing-a-rest-interface-with-firefox-and-modifyheaders/#comments</comments>
		<pubDate>Mon, 06 Feb 2012 22:37:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[rest firefox]]></category>

		<guid isPermaLink="false">http://www.kocram.com/wp/?p=373</guid>
		<description><![CDATA[Install ModifyHeaders for Firefox: https://addons.mozilla.org/en-US/firefox/addon/modify-headers/ Then open config panel and add your custom headers to access the REST service. A single header has a name and a value, so it&#8217;s something like: Name: X-Gallery-Request-Key Value: b333837c... Add all the custom &#8230;<p class="read-more"><a href="http://www.kocram.com/wp/2012/02/browsing-a-rest-interface-with-firefox-and-modifyheaders/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-383" title="modify-headers" src="http://www.kocram.com/wp/wp-content/uploads/2011/12/modify-headers.png" alt="" width="64" height="64" />Install <strong>ModifyHeaders</strong> for Firefox:<br />
<a href="https://addons.mozilla.org/en-US/firefox/addon/modify-headers/"> https://addons.mozilla.org/en-US/firefox/addon/modify-headers/</a></p>
<p>Then open config panel and add your custom headers to access the REST service.<br />
A single header has a name and a value, so it&#8217;s something like:</p>
<pre><strong> Name</strong>: X-Gallery-Request-Key
<strong> Value</strong>: b333837c...</pre>
<p>Add all the custom headers you need, then press &#8220;start&#8221;.<br />
Now you can browse your REST url with firefox <img src='http://www.kocram.com/wp/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.kocram.com/wp/2012/02/browsing-a-rest-interface-with-firefox-and-modifyheaders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>At last</title>
		<link>http://www.kocram.com/wp/2012/02/at-last/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=at-last</link>
		<comments>http://www.kocram.com/wp/2012/02/at-last/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 22:01:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.kocram.com/wp/?p=425</guid>
		<description><![CDATA[And I am lost so lost But you&#8217;re the constellations That guide me]]></description>
			<content:encoded><![CDATA[<p>And I am lost so lost<br />
But you&#8217;re the constellations<br />
That guide me</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kocram.com/wp/2012/02/at-last/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 10.10 audio equalizer</title>
		<link>http://www.kocram.com/wp/2012/01/ubuntu-10-10-audio-equalizer/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ubuntu-10-10-audio-equalizer</link>
		<comments>http://www.kocram.com/wp/2012/01/ubuntu-10-10-audio-equalizer/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 21:08:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.kocram.com/wp/?p=415</guid>
		<description><![CDATA[Open terminal, type: sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt-get update &#38;&#38; sudo apt-get install pulseaudio-equalizer Then open &#8220;Applications &#62; Sound &#38; Video &#62; PulseAudio Equalizer&#8221; and &#8230; have fun!]]></description>
			<content:encoded><![CDATA[<p>Open terminal, type:</p>
<pre>sudo add-apt-repository ppa:nilarimogard/webupd8</pre>
<pre>sudo apt-get update &amp;&amp; sudo apt-get install pulseaudio-equalizer</pre>
<p>Then open &#8220;Applications &gt; Sound &amp; Video &gt; PulseAudio Equalizer&#8221; and &#8230; have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kocram.com/wp/2012/01/ubuntu-10-10-audio-equalizer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Mint 12, Dell Vostro 3750 laptop, enable/disable touchpad (howto)</title>
		<link>http://www.kocram.com/wp/2012/01/linux-mint-12-dell-vostro-3750-laptop-enabledisable-touchpad-howto/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=linux-mint-12-dell-vostro-3750-laptop-enabledisable-touchpad-howto</link>
		<comments>http://www.kocram.com/wp/2012/01/linux-mint-12-dell-vostro-3750-laptop-enabledisable-touchpad-howto/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 23:10:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[touchpad linux mint]]></category>
		<category><![CDATA[touchpad mint]]></category>

		<guid isPermaLink="false">http://www.kocram.com/wp/?p=385</guid>
		<description><![CDATA[Steps to get a simple shourtcut to enable/disable touchpad on a dell 3750 (it should work also on other laptops): 1. create a custom bash script &#8220;toggle-touchpad&#8221; (see details here) with this code: #!/bin/bash # this script queries the status &#8230;<p class="read-more"><a href="http://www.kocram.com/wp/2012/01/linux-mint-12-dell-vostro-3750-laptop-enabledisable-touchpad-howto/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.kocram.com/wp/wp-content/uploads/2011/09/banana-boy-tux-perso-2990.png" rel="lightbox[385]"><img class="alignright  wp-image-240" title="banana-boy-tux-perso-2990" src="http://www.kocram.com/wp/wp-content/uploads/2011/09/banana-boy-tux-perso-2990-300x294.png" alt="" width="48" height="48" /></a>Steps to get a simple shourtcut to enable/disable touchpad on a dell 3750 (it should work also on other laptops):<br />
<strong>1.</strong> create a custom bash script &#8220;toggle-touchpad&#8221; (see details <a href="http://www.kocram.com/wp/2011/12/ubuntu-howto-add-custom-bash-scripts-to-your-path/">here</a>) with this code:</p>
<pre>#!/bin/bash

# this script queries the status of the ImPS/2 ALPS GlidePoint device
# via xinput and disables / enables the device accordingly.

#get touchpad id
XINPUTNUM=`xinput list 'ImPS/2 ALPS GlidePoint' | sed -n -e's/.*id=\([0-9]\+\).*/\1/p'`

TPSTATUS=$(gconftool-2 -g /desktop/gnome/peripherals/touchpad/touchpad_enabled)

#if status fails, exit 1
test -z $TPSTATUS &amp;&amp; exit 1
if [[ $TPSTATUS == true ]]; then
xinput set-int-prop $XINPUTNUM "Device Enabled" 8 0;
gconftool-2 --type bool -s /desktop/gnome/peripherals/touchpad/touchpad_enabled false
else
xinput set-int-prop $XINPUTNUM "Device Enabled" 8 1;
gconftool-2 --type bool -s /desktop/gnome/peripherals/touchpad/touchpad_enabled true
fi</pre>
<p><em>Thanks to <a href="http://ubuntuforums.org/showthread.php?p=11504018">http://ubuntuforums.org/showthread.php?p=11504018</a> for this script (these guys kick ass)</em></p>
<p><strong>2.</strong> check that the script works (run the script to enable/disable touchpad).</p>
<p><strong>3.</strong> create a keyboard shortcut for your script:<br />
- open &#8220;System Settings &gt; Keyboard &gt; Shortcuts &gt; Custom Shortcuts&#8221;<br />
- click on &#8220;+&#8221; and type &#8220;toggle-touchpad&#8221; in the name field, and the path to your script in the command field (should be something like &#8220;/home/john/bin/toggle-touchpad&#8221; )<br />
- click &#8220;Apply&#8221;<br />
- click on &#8220;Disabled&#8221; column and type the shourtcut you&#8217;d like to use (something like Ctrl+Alt+0)</p>
<p><strong>4.</strong> close and test your new shortcut <img src='http://www.kocram.com/wp/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.kocram.com/wp/2012/01/linux-mint-12-dell-vostro-3750-laptop-enabledisable-touchpad-howto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

