<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0"> <channel><title>L.A.M.N.K</title> <link>http://www.lamnk.com/blog</link> <description>Free your mind ... and your ass will follow</description> <lastBuildDate>Tue, 29 Nov 2011 15:09:17 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/lamnk" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="lamnk" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><title>Remove the black Google bar with Greasemonkey script</title><link>http://www.lamnk.com/blog/computer/remove-the-black-google-bar-with-greasemonkey-script/</link> <comments>http://www.lamnk.com/blog/computer/remove-the-black-google-bar-with-greasemonkey-script/#comments</comments> <pubDate>Thu, 17 Nov 2011 17:18:19 +0000</pubDate> <dc:creator>Lamnk</dc:creator> <category><![CDATA[Computer]]></category> <guid isPermaLink="false">http://www.lamnk.com/blog/?p=334</guid> <description><![CDATA[If you use Google Docs in Chrome&#8217;s or Firefox&#8217;s app mode, you will see instantly how disturbing the new black Google bar is. It&#8217;s very intrusive: You can use this script to remove the black bar. However this script works on all Google&#8217;s websites. Sometimes it&#8217;s useful to have direct links to Google Mail, Images, [...]
Related posts:<ol><li><a
href='http://www.lamnk.com/blog/computer/how-to-fix-error-1601-1604-when-unlock-iphone-with-winpwn/' rel='bookmark' title='How to fix error 1601 1604 when unlock iPhone with Winpwn'>How to fix error 1601 1604 when unlock iPhone with Winpwn</a></li></ol>]]></description> <content:encoded><![CDATA[<p>If you use Google Docs in Chrome&#8217;s or Firefox&#8217;s app mode, you will see instantly how disturbing the new black Google bar is. It&#8217;s <em>very </em> intrusive:</p><p><a
href="http://i.imgur.com/zbDvI.png"><img
src="http://i.imgur.com/whe6K.png" alt="google black bar" /></a></p><p>You can use <a
href="http://userscripts.org/scripts/show/105723" title="Greasemonkey script">this script</a> to remove the black bar. However this script works on all Google&#8217;s websites. Sometimes it&#8217;s useful to have direct links to Google Mail, Images, News or Pictures so those sites are only one click away. But when you are in app mode, you&#8217;ll want to focus to your document only. In Firefox you can change the affected sites in Greasemonkey&#8217;s settings. However because Chrome installs user&#8217;s scripts directly, you must edit the script and replace the wildcard regex with <code>https://docs.google.*/*</code></p><p>The result:</p><p><a
href="http://i.imgur.com/KUP8Z.png"><img
src="http://i.imgur.com/jGnRk.png" alt="google black bar" /></a></p><p>Related posts:<ol><li><a
href='http://www.lamnk.com/blog/computer/how-to-fix-error-1601-1604-when-unlock-iphone-with-winpwn/' rel='bookmark' title='How to fix error 1601 1604 when unlock iPhone with Winpwn'>How to fix error 1601 1604 when unlock iPhone with Winpwn</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.lamnk.com/blog/computer/remove-the-black-google-bar-with-greasemonkey-script/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Fixing Ubuntu 11.10 Oneiric Ocelot wireless problem with Atheros AR9285 and Ralink RT3090</title><link>http://www.lamnk.com/blog/computer/fixing-ubuntu-11-10-oneiric-ocelot-wireless-problem-with-atheros-ar9285-and-ralink-rt3090/</link> <comments>http://www.lamnk.com/blog/computer/fixing-ubuntu-11-10-oneiric-ocelot-wireless-problem-with-atheros-ar9285-and-ralink-rt3090/#comments</comments> <pubDate>Mon, 31 Oct 2011 15:15:28 +0000</pubDate> <dc:creator>Lamnk</dc:creator> <category><![CDATA[Computer]]></category> <guid isPermaLink="false">http://www.lamnk.com/blog/?p=330</guid> <description><![CDATA[If your laptop has either Atheros AR9285 or Ralink RT3090 wireless adapter, then Ubuntu 11.10 shows that driver is properly loaded, wlan0 interface is up, however you can not enable wireless in NetworkManager. Wireless is turned off instantly after you click on &#8220;Enable Wireless&#8221; or after manually bringing the interface up. The solution is to [...]
Related posts:<ol><li><a
href='http://www.lamnk.com/blog/computer/acer-extensa-5520-wireless-problem-under-linux/' rel='bookmark' title='Acer Extensa 5520 wireless problem under linux'>Acer Extensa 5520 wireless problem under linux</a></li><li><a
href='http://www.lamnk.com/blog/computer/xml-mapping-gem-has-permission-problem/' rel='bookmark' title='XML-Mapping gem has permission problem'>XML-Mapping gem has permission problem</a></li><li><a
href='http://www.lamnk.com/blog/vpn/never-ending-headache-disconnect-problem-again/' rel='bookmark' title='Never ending headache … disconnect problem again'>Never ending headache … disconnect problem again</a></li></ol>]]></description> <content:encoded><![CDATA[<p>If your laptop has either Atheros AR9285 or Ralink RT3090 wireless adapter, then Ubuntu 11.10 shows that driver is properly loaded, wlan0 interface is up, however you can not enable wireless in NetworkManager. Wireless is turned off instantly after you click on &#8220;Enable Wireless&#8221; or after manually bringing the interface up.</p><p>The solution is to blacklist the <code>acer-wmi</code> module: open the file <code>/etc/modprobe.d/blacklist.conf</code> and add this line:</p><blockquote><p><code>blacklist acer-wmi</code></p></blockquote><p>Then reboot.</p><p>Note: in Archlinux the module is named <code>acer_wmi</code></p><p>Related posts:<ol><li><a
href='http://www.lamnk.com/blog/computer/acer-extensa-5520-wireless-problem-under-linux/' rel='bookmark' title='Acer Extensa 5520 wireless problem under linux'>Acer Extensa 5520 wireless problem under linux</a></li><li><a
href='http://www.lamnk.com/blog/computer/xml-mapping-gem-has-permission-problem/' rel='bookmark' title='XML-Mapping gem has permission problem'>XML-Mapping gem has permission problem</a></li><li><a
href='http://www.lamnk.com/blog/vpn/never-ending-headache-disconnect-problem-again/' rel='bookmark' title='Never ending headache … disconnect problem again'>Never ending headache … disconnect problem again</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.lamnk.com/blog/computer/fixing-ubuntu-11-10-oneiric-ocelot-wireless-problem-with-atheros-ar9285-and-ralink-rt3090/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Microsoft’s and LinkedIn’s IPO</title><link>http://www.lamnk.com/blog/all-about-me/microsofts-and-linkedins-ipo/</link> <comments>http://www.lamnk.com/blog/all-about-me/microsofts-and-linkedins-ipo/#comments</comments> <pubDate>Sat, 21 May 2011 17:31:17 +0000</pubDate> <dc:creator>Lamnk</dc:creator> <category><![CDATA[Shine on you crazy diamond]]></category> <guid isPermaLink="false">http://www.lamnk.com/blog/?p=322</guid> <description><![CDATA[I&#8217;ve just read an article aout Microsoft&#8217;s IPO process. Some excerpts from the article: &#8230; with $172.5 million in revenues over the last four quarters and &#8230; going public put a market value of $350 million on the 45% stake he retains. That would make a total market cap of appr. $800 million and revenue [...]
No related posts.]]></description> <content:encoded><![CDATA[<p>I&#8217;ve just read an article aout <a
href="http://features.blogs.fortune.cnn.com/2011/03/13/inside-the-deal-that-made-bill-gates-350000000/">Microsoft&#8217;s IPO process</a>. Some excerpts from the article:</p><blockquote><p> &#8230; with $172.5 million in revenues over the last four quarters</p></blockquote><p>and</p><blockquote><p>&#8230; going public put a market value of $350 million on the 45% stake he retains.</p></blockquote><p>That would make a total market cap of appr. $800 million and revenue of around $170 million.</p><p>Compare that to <a
href="http://www.google.com/finance?q=LNKD">LNKD</a>, which has $161.4 million revenue and $1.85 million net profit in 2010. LNKD was valued initially at $4 billion. At the time of this post its market cap is $8.8 billion.</p><p>And people say <a
href="http://www.marketwatch.com/story/linkedin-ipo-doesnt-mean-its-1999-again-2011-05-19">it&#8217;s not 1999 again</a>.</p><p>No related posts.</p>]]></content:encoded> <wfw:commentRss>http://www.lamnk.com/blog/all-about-me/microsofts-and-linkedins-ipo/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Oscar 2011 winners prediction</title><link>http://www.lamnk.com/blog/all-about-me/oscar-2011-winners-prediction/</link> <comments>http://www.lamnk.com/blog/all-about-me/oscar-2011-winners-prediction/#comments</comments> <pubDate>Fri, 25 Feb 2011 20:07:22 +0000</pubDate> <dc:creator>Lamnk</dc:creator> <category><![CDATA[Shine on you crazy diamond]]></category> <category><![CDATA[oscar]]></category> <category><![CDATA[prediction]]></category> <guid isPermaLink="false">http://www.lamnk.com/blog/?p=310</guid> <description><![CDATA[As you may know, I enjoy good movies and despise bad ones. Needless to say, i&#8217;m psyched up with the coming Oscar. I always try to watch as many nominated movies as possible before the Oscar night to predict winners. Now it&#8217;s the time to sum it up: Best Motion Picture of the Year Holy [...]
No related posts.]]></description> <content:encoded><![CDATA[<p>As you may know, I enjoy good movies and despise bad ones. Needless to say, i&#8217;m psyched up with the coming Oscar. I always try to watch as many nominated movies as possible before the Oscar night to predict winners. Now it&#8217;s the time to sum it up:</p><p><strong>Best Motion Picture of the Year</strong><br
/> Holy cow this year they expand the nominees list for Best Picture to 10. Does that make it harder to guess ? Let&#8217;s see:</p><ul><li>127 Hours: So so, I&#8217;m unimpressed. And Slumdog Millionaire took the prize in 2009. No.</li><li>Black Swan: I watched Aronofsky&#8217;s The Fountain and Requiem for a Dream but frankly I didn&#8217;t understand much. The same for Black Swan. The Wrestler is outstanding though, <a
href="http://www.lamnk.com/blog/all-about-me/a-wild-guess-about-tonight-academy-award/">I rooted for Mickey Rourke</a> in 2009</li><li>The Fighter: Good film, however not enough for Academy Award</li><li>Inception: My favorite.</li><li>The Kids are All Right: indie films often don&#8217;t have a chance (with the exception of Crash maybe?)</li><li>The King&#8217;s Speech: very good, has great potential to get Oscar</li><li>The Social Network: although i&#8217;m a fan of David Fincher, IMO this one is overrated</li><li>Toy Story 3: no way</li><li>True Grit: haven&#8217;t seen this, but the Coen brothers have got Best Picture recently, so chance for True Grit is quite low</li><li>Winter&#8217;s Bone: haven&#8217;t seen this</li></ul><p>After all, the ones with biggest chance would be (after this sequence): Black Swan, The King&#8217;s Speech and Inception. I pick Inception.</p><p><strong>Best Performance by an Actor in a Leading Role</strong><br
/> This one is easy: Colin Firth.</p><ul><li>Javier Bardem for Biutiful</li><li>Jeff Bridges for True Grit</li><li>Jesse Eisenberg for The Social Network</li><li>Colin Firth for The King&#8217;s Speech</li><li>James Franco for 127 Hours</li></ul><p><strong>Best Performance by an Actress in a Leading Role</strong><br
/> I haven&#8217;t seen 3 in this list. Will update later.</p><ul><li>Annette Bening for The Kids Are All Right</li><li>Nicole Kidman for Rabbit Hole</li><li>Jennifer Lawrence for Winter&#8217;s Bone</li><li>Natalie Portman for Black Swan</li><li>Michelle Williams for Blue Valentine</li></ul><p><strong>Best Achievement in Directing</strong><br
/> Aronofsky or Tom Hooper.</p><ul><li>Darren Aronofsky for Black Swan</li><li>Ethan Coen, Joel Coen for True Grit</li><li>David Fincher for The Social Network</li><li>Tom Hooper for The King&#8217;s Speech</li><li>David O. Russell for The Fighter</li></ul><p>Best supporting actor would be Geoffrey Rush or Christian Bale. Both had excellent performance. I pick Geoffrey Rush.</p><p>Best supporting actress would be Hailee Steinfeld. I really like Amy Adam in The Fighter though.</p><p><strong>Update 1 (26 Feb)</strong>: Betting market&#8217;s favorites:</p><p>The odd on The King&#8217;s Speech is 1.27 (lower odd implies that a lof of money has been waged on this film). The Social Network is second with an odd of 5.70. A distant third is, suprisingly, True Grit (46).</p><p>The odd on Leading Actor is astronomically low: if you place 1€ on Colin Firth and he wins, then you win a whopping 5 cent. The same with Natalie Portan at an odd of 1.11.</p><p>In Supporting Actor category Christian Bale is on top with 1.16, while Geoffrey Rush plays catch up at 7.60. Melissa Leo with her role as a manipulating mother in The Fighter leads the group of supporting actress nominees (1.70). My precition in this category, Hailee Steinfeld, is not far behind at an odd of 4.00.</p><p>The market really favors The Social Network when David Fincher competes with Tom Hooper for Best Director (1.7 and 2.8, respectively). I don&#8217;t expect The Social Network gets that much support.</p><p><strong>Note</strong>: The odds in this post are approximately taken from Betfair and William Hill. They are subjected to change when gamblers change their opinion.</p><p>No related posts.</p>]]></content:encoded> <wfw:commentRss>http://www.lamnk.com/blog/all-about-me/oscar-2011-winners-prediction/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>32bit Cisco VPN client on 64 bit linux systems</title><link>http://www.lamnk.com/blog/vpn/32bit-cisco-vpn-client-on-64-bit-linux-systems/</link> <comments>http://www.lamnk.com/blog/vpn/32bit-cisco-vpn-client-on-64-bit-linux-systems/#comments</comments> <pubDate>Wed, 23 Feb 2011 14:13:56 +0000</pubDate> <dc:creator>Lamnk</dc:creator> <category><![CDATA[VPN]]></category> <category><![CDATA[32bit]]></category> <category><![CDATA[cisco]]></category> <category><![CDATA[linux]]></category> <guid isPermaLink="false">http://www.lamnk.com/blog/?p=306</guid> <description><![CDATA[I&#8217;ve just encountered a strange problem with Cisco VPN Client: # ll /opt/cisco-vpnclient/bin/ total 4224 ---x--x--x 1 root bin 1241184 Feb 23 12:35 cisco_cert_mgr* ---s--x--x 1 root bin 2181976 Feb 23 12:35 cvpnd* ---x--x--x 1 root bin 226700 Feb 23 12:35 ipseclog* ---x--x--x 1 root bin 666260 Feb 23 12:35 vpnclient* # /opt/cisco-vpnclient/bin/vpnclient zsh: no [...]
Related posts:<ol><li><a
href='http://www.lamnk.com/blog/vpn/cisco-vpn-now-runs-on-linux-64-bit-systems/' rel='bookmark' title='Cisco VPN now runs on linux 64 bit systems'>Cisco VPN now runs on linux 64 bit systems</a></li><li><a
href='http://www.lamnk.com/blog/vpn/with-kernel-2624-you-will-need-a-patch-to-install-cisco-vpn-client/' rel='bookmark' title='With kernel 2.6.24 you will need a patch to install Cisco VPN Client'>With kernel 2.6.24 you will need a patch to install Cisco VPN Client</a></li><li><a
href='http://www.lamnk.com/blog/vpn/how-to-install-cisco-vpn-client-on-ubuntu-hardy-heron-804/' rel='bookmark' title='How to install Cisco VPN client on Ubuntu Hardy Heron 8.04 64 bit'>How to install Cisco VPN client on Ubuntu Hardy Heron 8.04 64 bit</a></li></ol>]]></description> <content:encoded><![CDATA[<p>I&#8217;ve just encountered a strange problem with Cisco VPN Client:<br
/> <code><br
/> # ll /opt/cisco-vpnclient/bin/<br
/> total 4224<br
/> ---x--x--x 1 root bin 1241184 Feb 23 12:35 cisco_cert_mgr*<br
/> ---s--x--x 1 root bin 2181976 Feb 23 12:35 cvpnd*<br
/> ---x--x--x 1 root bin  226700 Feb 23 12:35 ipseclog*<br
/> ---x--x--x 1 root bin  666260 Feb 23 12:35 vpnclient*<br
/> # /opt/cisco-vpnclient/bin/vpnclient<br
/> zsh: no such file or directory: /opt/cisco-vpnclient/bin/vpnclient<br
/> </code><br
/> My initial response was &#8220;wtf, how is this possible? The file is there, how dare zsh states the opposite?&#8221;</p><p>I scratched my head for a while, then tried this:<br
/> <code><br
/> # ldd /opt/cisco-vpnclient/bin/vpnclient<br
/> not a dynamic executable<br
/> # ld /opt/cisco-vpnclient/bin/vpnclient<br
/> ld: i386 architecture of input file `/opt/cisco-vpnclient/bin/vpnclient' is incompatible with i386:x86-64 output<br
/> ld: error in /opt/cisco-vpnclient/bin/vpnclient(.eh_frame); no .eh_frame_hdr table will be created.<br
/> ld: warning: cannot find entry symbol _start; defaulting to 000000000040a900<br
/> </code><br
/> Ah, now that makes sense. Cisco has probably compiled vpnclient with gcc 32bit, so I turned the multilib repo on and installed lib32-gcc (named lib32gcc on ubuntu)<br
/> <code><br
/> # pacman -S lib32-glibc lib32-gcc-libs<br
/> # ldd /opt/cisco-vpnclient/bin/vpnclient<br
/> linux-gate.so.1 =>  (0xf7793000)<br
/> libvpnapi.so => /opt/cisco-vpnclient/lib/libvpnapi.so (0xf774a000)<br
/> libm.so.6 => /usr/lib32/libm.so.6 (0xf7701000)<br
/> libc.so.6 => /usr/lib32/libc.so.6 (0xf75b6000)<br
/> /lib/ld-linux.so.2 (0xf7794000)<br
/> </code><br
/> vpnclient works again <img
src='http://www.lamnk.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p><p>Related posts:<ol><li><a
href='http://www.lamnk.com/blog/vpn/cisco-vpn-now-runs-on-linux-64-bit-systems/' rel='bookmark' title='Cisco VPN now runs on linux 64 bit systems'>Cisco VPN now runs on linux 64 bit systems</a></li><li><a
href='http://www.lamnk.com/blog/vpn/with-kernel-2624-you-will-need-a-patch-to-install-cisco-vpn-client/' rel='bookmark' title='With kernel 2.6.24 you will need a patch to install Cisco VPN Client'>With kernel 2.6.24 you will need a patch to install Cisco VPN Client</a></li><li><a
href='http://www.lamnk.com/blog/vpn/how-to-install-cisco-vpn-client-on-ubuntu-hardy-heron-804/' rel='bookmark' title='How to install Cisco VPN client on Ubuntu Hardy Heron 8.04 64 bit'>How to install Cisco VPN client on Ubuntu Hardy Heron 8.04 64 bit</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.lamnk.com/blog/vpn/32bit-cisco-vpn-client-on-64-bit-linux-systems/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Optimize WordPress for speed</title><link>http://www.lamnk.com/blog/computer/optimize-wordpress-for-speed/</link> <comments>http://www.lamnk.com/blog/computer/optimize-wordpress-for-speed/#comments</comments> <pubDate>Sun, 28 Nov 2010 00:34:38 +0000</pubDate> <dc:creator>Lamnk</dc:creator> <category><![CDATA[Computer]]></category> <category><![CDATA[pagespeed]]></category> <category><![CDATA[performance]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[yslow]]></category> <guid isPermaLink="false">http://www.lamnk.com/blog/?p=281</guid> <description><![CDATA[I confess, I&#8217;m a speed freak, premature optimization type Still not that good with Google&#8217;s PageSpeed, i&#8217;ll fix those warnings soon (most of them, however, is from external hosts) The essential plugins are: WP-Super-Cache: this one is trivial. Every WordPress blog should have this plugin enabled by default. Use Google Libraries: replace WordPress included javascript [...]
Related posts:<ol><li><a
href='http://www.lamnk.com/blog/computer/wordpress-installation-error-establishing-a-database-connection/' rel='bookmark' title='WordPress installation &#8211; Error establishing a database connection'>WordPress installation &#8211; Error establishing a database connection</a></li><li><a
href='http://www.lamnk.com/blog/computer/wordpress-blank-screen-of-death/' rel='bookmark' title='WordPress Blank Screen of Death'>WordPress Blank Screen of Death</a></li></ol>]]></description> <content:encoded><![CDATA[<p>I confess, I&#8217;m a speed freak, premature optimization type <img
src='http://www.lamnk.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /></p><p><img
src="http://i.imgur.com/JrUfJ.png" alt="optimize YSlow Grade A" height="304" width="519"/></p><p>Still not that good with Google&#8217;s PageSpeed, i&#8217;ll fix those warnings soon (most of them, however, is from external hosts)</p><p><img
src="http://i.imgur.com/1rhvr.png" alt="optimize PageSpeed" height="316" width="519" /></p><p>The essential plugins are:</p><ul><li><a
href="http://ocaoimh.ie/wp-super-cache/">WP-Super-Cache</a>: this one is trivial. Every WordPress blog should have this plugin enabled by default.</li><li><a
href="http://wordpress.org/extend/plugins/use-google-libraries/">Use Google Libraries</a>: replace WordPress included javascript libraries with copies hosted on Google&#8217;s servers.</li><li><a
href="http://omninoggin.com/wordpress-plugins/wp-minify-wordpress-plugin/">WP-Minify</a>: minify your files (HTML, CSS) then concatenate CSS files into one file. Javascript files served by <em>Use Google Libraries</em> are external and minified already.</li></ul><p>combining with some tweaks in my WordPress theme and nginx.conf</p><p>Related posts:<ol><li><a
href='http://www.lamnk.com/blog/computer/wordpress-installation-error-establishing-a-database-connection/' rel='bookmark' title='WordPress installation &#8211; Error establishing a database connection'>WordPress installation &#8211; Error establishing a database connection</a></li><li><a
href='http://www.lamnk.com/blog/computer/wordpress-blank-screen-of-death/' rel='bookmark' title='WordPress Blank Screen of Death'>WordPress Blank Screen of Death</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.lamnk.com/blog/computer/optimize-wordpress-for-speed/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Really, Cisco, really ?</title><link>http://www.lamnk.com/blog/all-about-me/really-cisco-really/</link> <comments>http://www.lamnk.com/blog/all-about-me/really-cisco-really/#comments</comments> <pubDate>Wed, 24 Nov 2010 18:04:26 +0000</pubDate> <dc:creator>Lamnk</dc:creator> <category><![CDATA[Shine on you crazy diamond]]></category> <category><![CDATA[cisco]]></category> <category><![CDATA[VPN]]></category> <guid isPermaLink="false">http://www.lamnk.com/blog/?p=278</guid> <description><![CDATA[I was reading Cisco release notes for their VPN client and spotted this gem: VPN client fails to install on Linux kernel version is 2.6.31 and above. The workaround is to downgrade to one of the Linux distributions supported by the VPN Client. Their supported Linux distros: Red Hat 6.2 with Kernel 2.2.12 (released in [...]
Related posts:<ol><li><a
href='http://www.lamnk.com/blog/vpn/cisco-vpn-now-runs-on-linux-64-bit-systems/' rel='bookmark' title='Cisco VPN now runs on linux 64 bit systems'>Cisco VPN now runs on linux 64 bit systems</a></li><li><a
href='http://www.lamnk.com/blog/vpn/with-kernel-2624-you-will-need-a-patch-to-install-cisco-vpn-client/' rel='bookmark' title='With kernel 2.6.24 you will need a patch to install Cisco VPN Client'>With kernel 2.6.24 you will need a patch to install Cisco VPN Client</a></li><li><a
href='http://www.lamnk.com/blog/vpn/cisco-vpn-client-reason-412-the-remote-peer-is-no-longer-responding/' rel='bookmark' title='Cisco VPN Client: Reason 412 &#8211; The remote peer is no longer responding'>Cisco VPN Client: Reason 412 &#8211; The remote peer is no longer responding</a></li></ol>]]></description> <content:encoded><![CDATA[<p>I was reading <a
href="http://www.cisco.com/en/US/docs/security/vpn_client/cisco_vpn_client/vpn_client48/release/notes/48client.html">Cisco release notes for their VPN client</a> and spotted this gem:</p><blockquote><p>VPN client fails to install on Linux kernel version is 2.6.31 and above. The workaround is to <strong>downgrade</strong> to one of the Linux distributions supported by the VPN Client.</p></blockquote><p>Their supported Linux distros:</p><ul><li>Red Hat 6.2 with Kernel 2.2.12 (released in 2000)</li><li>Red Hat 9 with Kernel 2.4.20 (released in 2003)</li><li>Fedora Core 8 with Kernel 2.6.23 or 2.6.24 (released in 2007)</li></ul><p>Is it always like this with corporate/enterprise software ? In someway it explains why IE6 is still the dominant browser after all these years.</p><p>Related posts:<ol><li><a
href='http://www.lamnk.com/blog/vpn/cisco-vpn-now-runs-on-linux-64-bit-systems/' rel='bookmark' title='Cisco VPN now runs on linux 64 bit systems'>Cisco VPN now runs on linux 64 bit systems</a></li><li><a
href='http://www.lamnk.com/blog/vpn/with-kernel-2624-you-will-need-a-patch-to-install-cisco-vpn-client/' rel='bookmark' title='With kernel 2.6.24 you will need a patch to install Cisco VPN Client'>With kernel 2.6.24 you will need a patch to install Cisco VPN Client</a></li><li><a
href='http://www.lamnk.com/blog/vpn/cisco-vpn-client-reason-412-the-remote-peer-is-no-longer-responding/' rel='bookmark' title='Cisco VPN Client: Reason 412 &#8211; The remote peer is no longer responding'>Cisco VPN Client: Reason 412 &#8211; The remote peer is no longer responding</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.lamnk.com/blog/all-about-me/really-cisco-really/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Remember to specify nginx’s temp directory path</title><link>http://www.lamnk.com/blog/computer/remember-to-specify-nginxs-temp-directory-path/</link> <comments>http://www.lamnk.com/blog/computer/remember-to-specify-nginxs-temp-directory-path/#comments</comments> <pubDate>Sun, 21 Nov 2010 16:54:13 +0000</pubDate> <dc:creator>Lamnk</dc:creator> <category><![CDATA[Computer]]></category> <category><![CDATA[centos]]></category> <category><![CDATA[fastcgi]]></category> <category><![CDATA[nginx]]></category> <category><![CDATA[php-fpm]]></category> <guid isPermaLink="false">http://www.lamnk.com/blog/?p=269</guid> <description><![CDATA[I catched this error in my log: 2010/11/20 12:38:22 [crit] 792#0: *58342 open() “/usr/local/fastcgi_temp/2/23/0000002309″ failed (13: Permission denied) while reading upstream, client: XXX.XXX.XXX.XXX, server: xxx.host.com, request: “GET /page.php”, upstream: “http://0.0.0.0/dir/page.php”, host: “lamnk.com”, referrer: “http://referrer.com/” fastcgi_temp should in no way belong to /usr/local. It&#8217;s clear that if you forget to set configuration flags, nginx will set [...]
Related posts:<ol><li><a
href='http://www.lamnk.com/blog/computer/fix-nginx-411-length-required-error/' rel='bookmark' title='Fix Nginx 411 Length Required error'>Fix Nginx 411 Length Required error</a></li><li><a
href='http://www.lamnk.com/blog/computer/compile-rtorrent-on-centos-64bit/' rel='bookmark' title='Compile rtorrent on CentOS 64bit'>Compile rtorrent on CentOS 64bit</a></li><li><a
href='http://www.lamnk.com/blog/computer/replace-a-string-in-all-files-recursively-within-a-directory/' rel='bookmark' title='Replace a string in all files recursively within a directory'>Replace a string in all files recursively within a directory</a></li></ol>]]></description> <content:encoded><![CDATA[<p>I catched this error in my log:</p><blockquote><p><code>2010/11/20 12:38:22 [crit] 792#0: *58342 open() “/usr/local/fastcgi_temp/2/23/0000002309″ failed (13: Permission denied) while reading upstream, client: XXX.XXX.XXX.XXX, server: xxx.host.com, request: “GET /page.php”, upstream: “http://0.0.0.0/dir/page.php”, host: “lamnk.com”, referrer: “http://referrer.com/”</code></p></blockquote><p><code>fastcgi_temp</code> should in no way belong to <code>/usr/local</code>. It&#8217;s clear that if you forget to set configuration flags, nginx will set the path to <code>prefix</code>&#8216;s path during compilation. Run <code>./configure --help</code> show:</p><blockquote><p><code>% ./configure --help | grep -e "temp-path"<br
/> --http-client-body-temp-path=PATH  set path to the http client request body<br
/> --http-proxy-temp-path=PATH        set path to the http proxy temporary files<br
/> --http-fastcgi-temp-path=PATH      set path to the http fastcgi temporary<br
/> --http-uwsgi-temp-path=PATH        set path to the http uwsgi temporary files<br
/> --http-scgi-temp-path=PATH         set path to the http scgi temporary files</code></p></blockquote><p>On my system they go to <code>/var/tmp/nginx</code> according to CentOS file system structure.</p><p>Related posts:<ol><li><a
href='http://www.lamnk.com/blog/computer/fix-nginx-411-length-required-error/' rel='bookmark' title='Fix Nginx 411 Length Required error'>Fix Nginx 411 Length Required error</a></li><li><a
href='http://www.lamnk.com/blog/computer/compile-rtorrent-on-centos-64bit/' rel='bookmark' title='Compile rtorrent on CentOS 64bit'>Compile rtorrent on CentOS 64bit</a></li><li><a
href='http://www.lamnk.com/blog/computer/replace-a-string-in-all-files-recursively-within-a-directory/' rel='bookmark' title='Replace a string in all files recursively within a directory'>Replace a string in all files recursively within a directory</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.lamnk.com/blog/computer/remember-to-specify-nginxs-temp-directory-path/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Fix Nginx 411 Length Required error</title><link>http://www.lamnk.com/blog/computer/fix-nginx-411-length-required-error/</link> <comments>http://www.lamnk.com/blog/computer/fix-nginx-411-length-required-error/#comments</comments> <pubDate>Sun, 21 Nov 2010 02:49:16 +0000</pubDate> <dc:creator>Lamnk</dc:creator> <category><![CDATA[Computer]]></category> <category><![CDATA[api]]></category> <category><![CDATA[http]]></category> <category><![CDATA[nginx]]></category> <category><![CDATA[readability]]></category> <guid isPermaLink="false">http://www.lamnk.com/blog/?p=260</guid> <description><![CDATA[If you don&#8217;t want to read my rant below: use HttpChunkinModule In my case i used a Readbility API to parse news articles&#8217; content. The API receives requests and POST it back to URL specified in the request. However no matter how hard i tried, the API&#8217;s log always told me there was error. I [...]
Related posts:<ol><li><a
href='http://www.lamnk.com/blog/computer/remember-to-specify-nginxs-temp-directory-path/' rel='bookmark' title='Remember to specify nginx’s temp directory path'>Remember to specify nginx’s temp directory path</a></li></ol>]]></description> <content:encoded><![CDATA[<p>If you don&#8217;t want to read my rant below: use <a
href="https://github.com/agentzh/chunkin-nginx-module">HttpChunkinModule</a></p><p>In my case i used a <a
href="http://preona.net/2010/11/ever-wanted-arc90s-readability-as-an-api/">Readbility API</a> to parse news articles&#8217; content. The API receives requests and POST it back to URL specified in the request.</p><p>However no matter how hard i tried, the API&#8217;s log always told me there was error. I POST&#8217;ed many requests manually to test it myself; my server received and processed all of them, but not the API&#8217;s ?</p><p>So I turned on <a
href="http://unicorn.bogomips.org/">unicorn</a>&#8216;s log to see what&#8217;s wrong. Well, there was absolutely no hit from any IP except from my computer. Strange, it means API&#8217;s requests must be blocked from higher (lower?) level, either nginx or iptables. Firewall is unlikely the cause since it&#8217;s normal HTTP, it must be nginx:</p><blockquote><p><code>129.206.*.* - - [20/Nov/2010:15:37:08 -0800] "POST / HTTP/1.1" 200 106 "-" "Ruby" "-"<br
/> 77.234.*.* - - [20/Nov/2010:15:37:45 -0800] "POST / HTTP/1.1" 411 174 "-" "-" "-"</code></p></blockquote><p>Aha, here you are. But why the hell nginx returned <a
href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html">error code 411</a> ? According to Sysoev, author of <a
href="http://nginx.org">nginx</a>, there may be <a
href="http://www.ruby-forum.com/topic/162976#715758">3 reasons for 411 error</a> if you use POST or PUT method to send requests to nginx:</p><blockquote><ul><li>client sent invalid &#8220;Content-Length&#8221; header</li><li>client sent &#8230; method without &#8220;Content-Length&#8221; header</li><li>client sent &#8220;Transfer-Encoding: chunked&#8221; header</li></ul><p>The last reason is nginx feature: it still does not support chunked body.</p></blockquote><p>Oh, it&#8217;s not a bug, it&#8217;s a feature ! I couldn&#8217;t stop swearing, this &#8220;feature&#8221; takes me almost one day to find out. And Google shows a lot people who are like me.</p><p>nginx&#8217;s error log (you must turn debug on):</p><blockquote><p><code>2010/11/20 18:19:05 [info] 16755#0: *80135 client sent "Transfer-Encoding: chunked" header while reading client request headers, client: 77.234.129.43, server: lab.lamnk.com, request: "POST / HTTP/1.1", host: "lab.lamnk.com"</code></p></blockquote><p>Once you know causes of the problem, then it&#8217;s (supposed to be) easy to fix it: recompile nginx with HttpChunkinModule, added configuration directives in nginx.conf and we&#8217;re good !</p><p>PS: kudos to the guys at <a
href="http://preona.net/about/">Preona</a> for the nice API</p><p>Related posts:<ol><li><a
href='http://www.lamnk.com/blog/computer/remember-to-specify-nginxs-temp-directory-path/' rel='bookmark' title='Remember to specify nginx’s temp directory path'>Remember to specify nginx’s temp directory path</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.lamnk.com/blog/computer/fix-nginx-411-length-required-error/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Fix Cydia crashes</title><link>http://www.lamnk.com/blog/computer/fix-cydia-crashes/</link> <comments>http://www.lamnk.com/blog/computer/fix-cydia-crashes/#comments</comments> <pubDate>Sun, 14 Nov 2010 18:49:29 +0000</pubDate> <dc:creator>Lamnk</dc:creator> <category><![CDATA[Computer]]></category> <category><![CDATA[cydia]]></category> <category><![CDATA[iphone]]></category> <guid isPermaLink="false">http://www.lamnk.com/blog/?p=255</guid> <description><![CDATA[If Cydia quits during an installation process, it could refuse to run next time. Solution: remove everything in: /var/lib/dpkg/updates/ and every files in /var/lib/apt/lists/ except the folder called partial. Then reboot your Iphone. No related posts.
No related posts.]]></description> <content:encoded><![CDATA[<p>If Cydia quits during an installation process, it could refuse to run next time. Solution: remove everything in:</p><blockquote><p><code>/var/lib/dpkg/updates/</code></p></blockquote><p>and every files in</p><blockquote><p><code>/var/lib/apt/lists/</code></p></blockquote><p>except the folder called <code>partial</code>. Then reboot your Iphone.</p><p>No related posts.</p>]]></content:encoded> <wfw:commentRss>http://www.lamnk.com/blog/computer/fix-cydia-crashes/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss><!-- Dynamic page generated in 0.348 seconds. --><!-- Cached page generated by WP-Super-Cache on 2013-04-17 01:07:46 -->
