<?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>javier arturo rodríguez &#187; sh</title>
	<atom:link href="http://javier.rodriguez.org.mx/index.php/category/code/sh/feed" rel="self" type="application/rss+xml" />
	<link>http://javier.rodriguez.org.mx</link>
	<description>random musings</description>
	<lastBuildDate>Thu, 16 Apr 2009 14:00:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>uHOWTO: Recover stuck modified keys from VMware Player or Workstation</title>
		<link>http://javier.rodriguez.org.mx/index.php/2009/01/15/uhowto-recover-stuck-modified-keys-from-vmware-player-or-workstation</link>
		<comments>http://javier.rodriguez.org.mx/index.php/2009/01/15/uhowto-recover-stuck-modified-keys-from-vmware-player-or-workstation#comments</comments>
		<pubDate>Thu, 15 Jan 2009 14:12:53 +0000</pubDate>
		<dc:creator>javier</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[sh]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[x11]]></category>
		<category><![CDATA[xmodmap]]></category>

		<guid isPermaLink="false">http://javier.rodriguez.org.mx/?p=193</guid>
		<description><![CDATA[If you use VMware Player or VMware workstation under Linux and you&#8217;re an alt-tab fan like me, you might end up with stuck modifier keys, so you can&#8217;t use keys like Ctrl, Alt or Shift outside of VMware. Xiao Feng has written a nice script to recover from this annoying condition without having to reboot, [...]]]></description>
			<content:encoded><![CDATA[<p>If you use VMware Player or VMware workstation under Linux and you&#8217;re an alt-tab fan like me, you might end up with stuck modifier keys, so you can&#8217;t use keys like Ctrl, Alt or Shift outside of VMware. Xiao Feng has written a <a href="http://bitubique.com/tutorials/recovering-from-stuck-modifier-keys">nice script</a> to recover from this annoying condition without having to reboot, and I tought I&#8217;d share it with everyone out there:</p>
<div class="codesnip-container" >
<div class="codesnip"><span class="co1">#!/bin/sh</span><br />
<span class="co1"># Xiao Feng&#8217;s &quot;Recovering from stuck modifier keys caused by VMware&quot;</span><br />
<span class="co1"># http://bitubique.com/tutorials/recovering-from-stuck-modifier-keys</span><br />
/usr/bin/xmodmap &#8211; &lt;&lt; fixme<br />
clear <span class="kw3">shift</span><br />
add <span class="kw3">shift</span> = Shift_L Shift_R<br />
clear lock<br />
add lock = Caps_Lock<br />
clear control<br />
add control = Control_L Control_R<br />
clear mod1<br />
add mod1 = Alt_L Alt_R<br />
clear mod2<br />
add mod2 = Num_Lock<br />
clear mod3<br />
clear mod4<br />
add mod4 = Super_L Super_R<br />
clear mod5<br />
add mod5 = Scroll_Lock<br />
fixme<br />
xset r on<br />
xset m <span class="nu0">3</span>.<span class="nu0">5</span> <span class="nu0">4</span><br />
xset b off<br />
xset s off</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://javier.rodriguez.org.mx/index.php/2009/01/15/uhowto-recover-stuck-modified-keys-from-vmware-player-or-workstation/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bourne Shell Server Pages</title>
		<link>http://javier.rodriguez.org.mx/index.php/2007/11/22/bourne-shell-server-pages</link>
		<comments>http://javier.rodriguez.org.mx/index.php/2007/11/22/bourne-shell-server-pages#comments</comments>
		<pubDate>Fri, 23 Nov 2007 05:07:23 +0000</pubDate>
		<dc:creator>javier</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Hack!]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[sh]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[bourneShell]]></category>
		<category><![CDATA[jsp]]></category>

		<guid isPermaLink="false">http://javier.rodriguez.org.mx/index.php/2007/11/22/bourne-shell-server-pages/</guid>
		<description><![CDATA[Easy. Portable. Buzzword-compliant. Ingenuous. Elegant. Right-out wicked cool: Bourne Shell Server Pages. As I write this I&#8217;m looking for a excuse to use this revolutionary technology in my next project!
Behold the simplicity of ASP and the power of sh:

&#60;html&#62;
&#160; &#60;body&#62;
&#160; &#160; &#60;h1&#62;&#60;$ echo &#8220;Hello, world!&#8221; $&#62;&#60;/h1&#62;
&#160; &#60;/body&#62;
&#60;/html&#62;

Interface21: please take note. I expect a Spring.sh implementation [...]]]></description>
			<content:encoded><![CDATA[<p>Easy. Portable. Buzzword-compliant. Ingenuous. Elegant. Right-out wicked cool: <a href="http://hyperrealm.com/wtfd00d/shsp/">Bourne Shell Server Pages</a>. As I write this I&#8217;m looking for a excuse to use this revolutionary technology in my next project!<br />
Behold the simplicity of ASP and the power of sh:</p>
<div class="codesnip-container" >
<div class="codesnip"><span class="sc2"><a href="http://december.com/html/4/element/html.html"><span class="kw2">&lt;html&gt;</span></a></span><br />
&nbsp; <span class="sc2"><a href="http://december.com/html/4/element/body.html"><span class="kw2">&lt;body&gt;</span></a></span><br />
&nbsp; &nbsp; <span class="sc2"><a href="http://december.com/html/4/element/h1.html"><span class="kw2">&lt;h1&gt;</span></a></span><span class="sc2"><span class="kw2">&lt;</span></a>$ echo <span class="st0">&#8220;Hello, world!&#8221;</span> $&gt;</span><span class="sc2"><span class="kw2">&lt;/h1&gt;</span></span><br />
&nbsp; <span class="sc2"><span class="kw2">&lt;/body&gt;</span></span><br />
<span class="sc2"><span class="kw2">&lt;/html&gt;</span></span></div>
</div>
<p>Interface21: please take note. I expect a <a href="http://www.springframework.net/">Spring.sh implementation</a> before the year ends. ;-)<br /><div class="simpletags">Tags: <a href="http://technorati.com/tag/bourneShell" rel="tag">bourneShell</a>, <a href="http://technorati.com/tag/asp" rel="tag"> asp</a>, <a href="http://technorati.com/tag/jsp" rel="tag"> jsp</a></div>
]]></content:encoded>
			<wfw:commentRss>http://javier.rodriguez.org.mx/index.php/2007/11/22/bourne-shell-server-pages/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Moving from MyISAM to InnoDB: bulk table conversion</title>
		<link>http://javier.rodriguez.org.mx/index.php/2007/05/01/moving-from-myisam-to-innodb-bulk-table-conversion</link>
		<comments>http://javier.rodriguez.org.mx/index.php/2007/05/01/moving-from-myisam-to-innodb-bulk-table-conversion#comments</comments>
		<pubDate>Tue, 01 May 2007 09:08:54 +0000</pubDate>
		<dc:creator>javier</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[sh]]></category>

		<guid isPermaLink="false">http://javier.rodriguez.org.mx/index.php/2007/05/01/moving-from-myisam-to-innodb-bulk-table-conversion/</guid>
		<description><![CDATA[A couple of years ago Ludovico Magnocavallo tackled the issue of bulk conversion of MySQL tables from MyISAM to InnoDB with an elegant bash snippet.
for t in $(mysql &#8211;batch &#8211;column-names=false -e &#8220;show tables&#8221; mydbname); do
  mysql -e &#8220;alter table $t type=InnoDB&#8221; mydbname;
done
The original post also suggests using grep to limit the scope of the [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of years ago Ludovico Magnocavallo tackled the issue of bulk conversion of MySQL tables from MyISAM to InnoDB with an elegant bash snippet.</p>
<div class="codesnip-container" >for t in $(mysql &#8211;batch &#8211;column-names=false -e &#8220;show tables&#8221; mydbname); do<br />
  mysql -e &#8220;alter table $t type=InnoDB&#8221; mydbname;<br />
done</div>
<p>The <a href="http://ludo.qix.it/archive/2005/04/convert-a-bunch-of-tables-to-innodb.html">original post</a> also suggests using grep to limit the scope of the conversion to just a few tables.<br />
(It seems that now Google *does* yield practical answers to this question ;-)<br /><div class="simpletags">Tags: <a href="http://technorati.com/tag/bash" rel="tag">bash</a>, <a href="http://technorati.com/tag/mysql" rel="tag">mysql</a>, <a href="http://technorati.com/tag/innodb" rel="tag">innodb</a></div>
]]></content:encoded>
			<wfw:commentRss>http://javier.rodriguez.org.mx/index.php/2007/05/01/moving-from-myisam-to-innodb-bulk-table-conversion/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get stock quotes into a spreadsheet</title>
		<link>http://javier.rodriguez.org.mx/index.php/2006/01/04/get-stock-quotes-into-a-spreadsheet</link>
		<comments>http://javier.rodriguez.org.mx/index.php/2006/01/04/get-stock-quotes-into-a-spreadsheet#comments</comments>
		<pubDate>Wed, 04 Jan 2006 14:26:02 +0000</pubDate>
		<dc:creator>javier</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[sh]]></category>

		<guid isPermaLink="false">http://javier.rodriguez.org.mx/?p=49</guid>
		<description><![CDATA[This code stnippet grabs a .CSV file from Yahoo! Finance with selected quotes. This is very useful to keep an eye in your portfolio from within OpenOffice.org Calc, Gnumeric, Kspread,Microsoft Excel or similar program using your very own models.
To use it edit the paths and the symbols in the script, run it periodically from cron(8) [...]]]></description>
			<content:encoded><![CDATA[<p>This code stnippet grabs a .CSV file from Yahoo! Finance with selected quotes. This is very useful to keep an eye in your portfolio from within <a href="http://www.openoffice.org/">OpenOffice.org Calc</a>, <a href="http://www.gnome.org/projects/gnumeric/">Gnumeric</a>, <a href="http://www.koffice.org/kspread/">Kspread</a>,<a href="http://office.microsoft.com/">Microsoft Excel</a> or similar program using your very own models.<br />
To use it edit the paths and the symbols in the script, run it periodically from cron(8) to get $DEST/quotes.csv, import the file once and reference it from your own spreadsheet.</p>
<div class="codesnip-container" >#!/bin/sh<br />
TMP=/home/user/tmp<br />
DEST=/home/user/prj/mba/dinero/portafolio<br />
wget -q -O $TMP/quotes.csv &#8216;http://finance.yahoo.com/d/quotes.csv?s=^MXX+^DJI+^IXIC+MXN=X+AMXL.MX+ARA.MX+BIMBOA.MX+CIEB.MX+FEMSAUBD.MX+GFBBB.MX+GMODELOC.MX+TELMEXL.MX+TLEVISACPO.M+WALMEXV.MX&#038;f=sl1d1t1c1ohgv&#038;e=.csv&#8217;<br />
echo &#8216;&#8221;SYMBOL&#8221;,&#8221;VALUE&#8221;,&#8221;A&#8221;,&#8221;B&#8221;,&#8221;C&#8221;,&#8221;D&#8221;,&#8221;E&#8221;,&#8221;F&#8221;,&#8221;G&#8221;,&#8221;H&#8221;&#8216; > $DEST/quotes.csv<br />
cat $TMP/quotes.csv >> $DEST/quotes.csv</div>
]]></content:encoded>
			<wfw:commentRss>http://javier.rodriguez.org.mx/index.php/2006/01/04/get-stock-quotes-into-a-spreadsheet/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
