<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Pablo Marin-garcia&#039;s Blog</title>
	<atom:link href="http://pamag.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://pamag.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 25 Mar 2010 01:41:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='pamag.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Pablo Marin-garcia&#039;s Blog</title>
		<link>http://pamag.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://pamag.wordpress.com/osd.xml" title="Pablo Marin-garcia&#039;s Blog" />
	<atom:link rel='hub' href='http://pamag.wordpress.com/?pushpress=hub'/>
		<item>
		<title>runlevels in ubuntu</title>
		<link>http://pamag.wordpress.com/2010/02/03/runlevels-in-ubuntu/</link>
		<comments>http://pamag.wordpress.com/2010/02/03/runlevels-in-ubuntu/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 15:00:38 +0000</pubDate>
		<dc:creator>Pablo Marín-García</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://marinp.blogs.uv.es/?p=90</guid>
		<description><![CDATA[Ubuntu has a different concept for runlevels than redhat (ubuntu always starts the Xs). Here there is a blog entry how to make ubuntu runlevels like redhat. http://caulfield.info/emmet/2008/03/add-a-textonly-runlevel-to-ubu.html<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pamag.wordpress.com&amp;blog=11710908&amp;post=90&amp;subd=pamag&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span class="mceItemHidden">Ubuntu <span class="hiddenGrammarError">has a different</span> concept for <span class="hiddenSpellError">runlevels</span> than </span><a href="http://www.redhat.com/docs/manuals/linux/RHL-7.2-Manual/ref-guide/s1-init-boot-shutdown-init.html"><span class="mceItemHidden"><span class="hiddenSpellError">redhat</span></span></a><span class="mceItemHidden"> (ubuntu always starts the <span class="hiddenSpellError">Xs</span>). Here there is a blog entry how to make ubuntu <span class="hiddenSpellError">runlevels</span> like <span class="hiddenSpellError">redhat</span>.</span></p>
<p><a href="http://caulfield.info/emmet/2008/03/add-a-textonly-runlevel-to-ubu.html">http://caulfield.info/emmet/2008/03/add-a-textonly-runlevel-to-ubu.html</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pamag.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pamag.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pamag.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pamag.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pamag.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pamag.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pamag.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pamag.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pamag.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pamag.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pamag.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pamag.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pamag.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pamag.wordpress.com/90/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pamag.wordpress.com&amp;blog=11710908&amp;post=90&amp;subd=pamag&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pamag.wordpress.com/2010/02/03/runlevels-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c06bb1e87c664eb288bc39c491cb161d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pamag</media:title>
		</media:content>
	</item>
		<item>
		<title>Sound with fluxbox in non-intel ibook and alsamixer</title>
		<link>http://pamag.wordpress.com/2010/02/03/sound-with-fluxbox-in-non-intel-ibook-and-alsamixer/</link>
		<comments>http://pamag.wordpress.com/2010/02/03/sound-with-fluxbox-in-non-intel-ibook-and-alsamixer/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 14:57:11 +0000</pubDate>
		<dc:creator>Pablo Marín-García</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://marinp.blogs.uv.es/?p=88</guid>
		<description><![CDATA[I had no sound with fluxbox in the speakers. This was a good thing. This has given me the opportunity of rediscovering the text GUI for alsamixer. Definitively I like text GUIs. They are clever and conceptually more challenging to create than the graphical GUI. I think that an only-text environment is the final step [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pamag.wordpress.com&amp;blog=11710908&amp;post=88&amp;subd=pamag&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had no sound with fluxbox in the speakers. This was a good thing. This has given me the opportunity of rediscovering the text GUI for alsamixer.</p>
<p>Definitively I like text GUIs. They are clever and conceptually more challenging to create than the graphical GUI.</p>
<p>I think that an only-text environment is the final step in the evolution of GUI for power users. Screen multiplexer, emacs -nw, myriads of keybindings for the windowmanager. If I ever remember again how to copy paste between virtual displays I will start to use runlevel 3 again and achieve the nirvana <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> .</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pamag.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pamag.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pamag.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pamag.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pamag.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pamag.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pamag.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pamag.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pamag.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pamag.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pamag.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pamag.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pamag.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pamag.wordpress.com/88/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pamag.wordpress.com&amp;blog=11710908&amp;post=88&amp;subd=pamag&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pamag.wordpress.com/2010/02/03/sound-with-fluxbox-in-non-intel-ibook-and-alsamixer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c06bb1e87c664eb288bc39c491cb161d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pamag</media:title>
		</media:content>
	</item>
		<item>
		<title>flymake for perl syntax checking on the fly in emacs</title>
		<link>http://pamag.wordpress.com/2010/02/03/flymake-for-perl-syntax-checking-on-the-fly-emacs/</link>
		<comments>http://pamag.wordpress.com/2010/02/03/flymake-for-perl-syntax-checking-on-the-fly-emacs/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 14:46:21 +0000</pubDate>
		<dc:creator>Pablo Marín-García</dc:creator>
				<category><![CDATA[emacs]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://marinp.blogs.uv.es/2010/02/03/86/</guid>
		<description><![CDATA[If you are tired of M-! perl -wc myscript for syntax checking, there fancy minor mode: flymake for syntax checking on the fly while programming in emacs Here is a video how it works: http://blog.marcelotoledo.org/2007/07/11/emacs-flymake/ and a warning from Merlin: beware perl -c on unknown code by merlyn (47) &#60;merlyn@stonehenge.com&#62; on 2006.11.07 22:43 (#51498) ( [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pamag.wordpress.com&amp;blog=11710908&amp;post=86&amp;subd=pamag&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you are tired of <strong>M-! perl -wc myscript for</strong> syntax checking, there fancy minor mode: <a href="http://flymake.sourceforge.net/"><strong>flymake</strong></a> for syntax checking on the fly while programming in emacs</p>
<p>Here is a video how it works:</p>
<p>http://blog.marcelotoledo.org/2007/07/11/emacs-flymake/</p>
<p>and a warning from Merlin:</p>
<div style="border:solid black 1px;padding:2em;"><strong><a name="51498">beware perl -c on unknown code</a></strong></p>
<p>by    <a href="http://use.perl.org/%7Emerlyn/">merlyn (47)</a> <span>&lt;<a href="mailto:merlyn%40stonehenge.com">merlyn@stonehenge.com</a>&gt;    on 2006.11.07 22:43     (<a href="http://use.perl.org/comments.pl?sid=33573&amp;op=&amp;threshold=0&amp;commentsort=0&amp;mode=thread&amp;cid=51498">#51498</a>)<br />
(       <a href="http://www.stonehenge.com/merlyn/">http://www.stonehenge.com/merlyn/</a> |                    Last Journal:       <a href="http://use.perl.org/%7Emerlyn/journal/">2007.09.21 11:04</a> ) </span> All I have to do now is send you a perl script to &#8220;look at&#8221; that contains:</p>
<blockquote><p><tt>BEGIN { system 'rm -rf $HOME' }</tt></p></blockquote>
<p>and hope that you look at it in your editor.  That flymake code will nicely execute that system operation.  Oops!<br />
&#8211;</p>
<ul>
<li>Randal L. Schwartz</li>
<li>Stonehenge</li>
</ul>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pamag.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pamag.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pamag.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pamag.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pamag.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pamag.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pamag.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pamag.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pamag.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pamag.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pamag.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pamag.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pamag.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pamag.wordpress.com/86/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pamag.wordpress.com&amp;blog=11710908&amp;post=86&amp;subd=pamag&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pamag.wordpress.com/2010/02/03/flymake-for-perl-syntax-checking-on-the-fly-emacs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c06bb1e87c664eb288bc39c491cb161d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pamag</media:title>
		</media:content>
	</item>
		<item>
		<title>Mysql cheatsheet</title>
		<link>http://pamag.wordpress.com/2010/02/03/mysql-cheatsheet/</link>
		<comments>http://pamag.wordpress.com/2010/02/03/mysql-cheatsheet/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 14:38:05 +0000</pubDate>
		<dc:creator>Pablo Marín-García</dc:creator>
				<category><![CDATA[databases]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://marinp.blogs.uv.es/?p=79</guid>
		<description><![CDATA[- mysql cheat sheet Selecting a database: mysql&#62; USE database; Listing databases: mysql&#62; SHOW DATABASES; Listing tables in a db: mysql&#62; SHOW TABLES; Describing the format of a table: mysql&#62; DESCRIBE table; Creating a database: mysql&#62; CREATE DATABASE db_name; Creating a table: mysql&#62; CREATE TABLE table_name (field1_name TYPE(SIZE), field2_name TYPE(SIZE)); Ex: mysql&#62; CREATE TABLE pet [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pamag.wordpress.com&amp;blog=11710908&amp;post=79&amp;subd=pamag&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:130%;">-  mysql cheat sheet<br />
</span><br />
<strong>Selecting a database:</strong></p>
<pre>  mysql&gt; USE database;</pre>
<p><strong>Listing databases:</strong></p>
<pre>  mysql&gt; SHOW DATABASES;</pre>
<p><strong>Listing tables in a db:</strong></p>
<pre>  mysql&gt; SHOW TABLES;</pre>
<p><strong>Describing the format of a table:</strong></p>
<pre>  mysql&gt; DESCRIBE table;</pre>
<p><strong>Creating a database:</strong></p>
<pre>  mysql&gt; CREATE DATABASE db_name;</pre>
<p><strong>Creating a table:</strong></p>
<pre>  mysql&gt; CREATE TABLE table_name (field1_name TYPE(SIZE), field2_name TYPE(SIZE));
  Ex: mysql&gt; CREATE TABLE pet (name VARCHAR(20), sex CHAR(1), birth DATE);</pre>
<p><strong>Load tab-delimited data into a table:</strong></p>
<pre>  mysql&gt; LOAD DATA LOCAL INFILE "infile.txt" INTO TABLE table_name;</pre>
<p>(Use \n for NULL)</p>
<p><strong> Inserting one row at a time:</strong></p>
<pre>  mysql&gt; INSERT INTO table_name VALUES ('MyName', 'MyOwner', '2002-08-31');</pre>
<p>(Use NULL for NULL)</p>
<p><strong>Retrieving information (general):</strong></p>
<pre>  mysql&gt; SELECT from_columns FROM table WHERE conditions;</pre>
<pre>  All values: SELECT * FROM table;
  Some values: SELECT * FROM table WHERE rec_name = "value";
  Multiple critera: SELECT * FROM TABLE WHERE rec1 = "value1" AND rec2 = "value2";</pre>
<p><strong> Reloading a new data set into existing table:</strong></p>
<pre>  mysql&gt; SET AUTOCOMMIT=1; # used for quick recreation of table
  mysql&gt; DELETE FROM pet;
  mysql&gt; LOAD DATA LOCAL INFILE "infile.txt" INTO TABLE table;</pre>
<p><strong>Fixing all records with a certain value:</strong></p>
<pre>  mysql&gt; UPDATE table SET column_name = "new_value" WHERE record_name = "value";</pre>
<p><strong>Selecting specific columns</strong>:</p>
<pre>  mysql&gt; SELECT column_name FROM table;</pre>
<p><strong>Retrieving unique output records:</strong></p>
<pre>  mysql&gt; SELECT DISTINCT column_name FROM table;</pre>
<p><strong>Sorting:</strong></p>
<pre>  mysql&gt; SELECT col1, col2 FROM table ORDER BY col2;
  Backwards: SELECT col1, col2 FROM table ORDER BY col2 DESC;</pre>
<p><strong> Date calculations:</strong></p>
<pre>  mysql&gt; SELECT CURRENT_DATE, (YEAR(CURRENT_DATE)-YEAR(date_col)) AS time_diff [FROM table];
  MONTH(some_date) extracts the month value and DAYOFMONTH() extracts day.</pre>
<p><strong>Pattern Matching:</strong></p>
<pre>  mysql&gt; SELECT * FROM table WHERE rec LIKE "blah%";</pre>
<p>(% is wildcard &#8211; arbitrary # of chars)<br />
Find 5-char values: SELECT * FROM table WHERE rec like &#8220;_____&#8221;;<br />
(_ is any single character)</p>
<p><strong> Extended Regular Expression Matching:</strong></p>
<pre>  mysql&gt; SELECT * FROM table WHERE rec RLIKE "^b$";</pre>
<p>(. for char, [...] for char class, * for 0 or more instances<br />
^ for beginning, {n} for repeat n times, and $ for end)<br />
(RLIKE or REGEXP)<br />
To force case-sensitivity, use &#8220;REGEXP BINARY&#8221;</p>
<p><strong>Counting Rows:</strong></p>
<pre>  mysql&gt; SELECT COUNT(*) FROM table;</pre>
<p><strong> Grouping with Counting:</strong></p>
<pre>  mysql&gt; SELECT owner, COUNT(*) FROM table GROUP BY owner;</pre>
<p>(GROUP BY groups together all records for each &#8216;owner&#8217;)<br />
<strong> </strong></p>
<p><strong>Selecting from multiple tables:</strong></p>
<p>(Example)</p>
<pre>  mysql&gt; SELECT pet.name, comment FROM pet, event WHERE pet.name = event.name;</pre>
<p>(You can join a table to itself to compare by using &#8216;AS&#8217;)</p>
<p><strong> Currently selected database:</strong></p>
<pre>  mysql&gt; SELECT DATABASE();</pre>
<p><strong> Maximum value:</strong></p>
<pre>  mysql&gt; SELECT MAX(col_name) AS label FROM table;</pre>
<p><strong> Auto-incrementing rows:</strong></p>
<pre>  mysql&gt; CREATE TABLE table (number INT NOT NULL AUTO_INCREMENT, name CHAR(10) NOT NULL);
  mysql&gt; INSERT INTO table (name) VALUES ("tom"),("dick"),("harry");</pre>
<p><strong> Adding a column to an already-created table:</strong></p>
<pre><strong>  </strong>mysql&gt; ALTER TABLE tbl ADD COLUMN [column_create syntax] AFTER col_name;</pre>
<p><strong> Removing a column:</strong></p>
<pre><strong>  </strong>mysql&gt; ALTER TABLE tbl DROP COLUMN col;</pre>
<p>(Full ALTER TABLE syntax available at mysql.com.)</p>
<p><strong>Batch mode (feeding in a script):</strong></p>
<pre>  # mysql -u user -p &lt;&gt;</pre>
<p>(Use -t for nice table layout and -vvv for command echoing.)<br />
Alternatively: mysql&gt; source batch_file;</p>
<p><strong>Backing up a database with mysqldump:</strong></p>
<pre><strong>  </strong># mysqldump --opt -u username -p database &gt; database_backup.sql</pre>
<p>(Use &#8216;mysqldump &#8211;opt &#8211;all-databases &gt; all_backup.sql&#8217; to backup everything.)<br />
(More info at MySQL&#8217;s docs.)<span><br />
</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pamag.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pamag.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pamag.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pamag.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pamag.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pamag.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pamag.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pamag.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pamag.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pamag.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pamag.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pamag.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pamag.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pamag.wordpress.com/79/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pamag.wordpress.com&amp;blog=11710908&amp;post=79&amp;subd=pamag&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pamag.wordpress.com/2010/02/03/mysql-cheatsheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c06bb1e87c664eb288bc39c491cb161d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pamag</media:title>
		</media:content>
	</item>
		<item>
		<title>my CVS default options</title>
		<link>http://pamag.wordpress.com/2010/01/03/my-cvs-default-options/</link>
		<comments>http://pamag.wordpress.com/2010/01/03/my-cvs-default-options/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 14:53:49 +0000</pubDate>
		<dc:creator>Pablo Marín-García</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[CVS]]></category>

		<guid isPermaLink="false">http://marinp.blogs.uv.es/?p=69</guid>
		<description><![CDATA[I have all my code now in svn or git, so, in order to remember my cvs defaults for projects that still use cvs (eg. EnsEMBL), these are my defaults: cvs -z3 diff -Nu update -Pd checkout -P This example says: always use compression level 3 when talking to a remote server. This is a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pamag.wordpress.com&amp;blog=11710908&amp;post=69&amp;subd=pamag&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have all my code now in svn or git, so, in order to remember my cvs defaults for projects that still use cvs (eg. EnsEMBL), these are my defaults:</p>
<pre>cvs -z3
diff -Nu
update -Pd
checkout -P</pre>
<p>This example says:</p>
<ul>
<li>always use compression level 3 when talking to a remote server. This is a life-saver when working over a slow connection.</li>
<li>always use the <code>-N</code> (show added or removed files) and <code>-u</code> (unified diff format) options to <a href="http://www.freebsd.org/cgi/man.cgi?query=diff&amp;sektion=1"><span><span>diff</span>(1)</span></a>.</li>
<li>always use the <code>-P</code> (prune empty directories) and <code>-d</code> (check out new directories) options when updating.</li>
<li>always use the <code>-P</code> (prune empty directories) option when checking out.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pamag.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pamag.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pamag.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pamag.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pamag.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pamag.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pamag.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pamag.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pamag.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pamag.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pamag.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pamag.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pamag.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pamag.wordpress.com/69/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pamag.wordpress.com&amp;blog=11710908&amp;post=69&amp;subd=pamag&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pamag.wordpress.com/2010/01/03/my-cvs-default-options/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c06bb1e87c664eb288bc39c491cb161d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pamag</media:title>
		</media:content>
	</item>
		<item>
		<title>emacs and unicode links</title>
		<link>http://pamag.wordpress.com/2010/01/03/emacs-and-unicode-links/</link>
		<comments>http://pamag.wordpress.com/2010/01/03/emacs-and-unicode-links/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 14:45:33 +0000</pubDate>
		<dc:creator>Pablo Marín-García</dc:creator>
				<category><![CDATA[emacs]]></category>

		<guid isPermaLink="false">http://marinp.blogs.uv.es/?p=67</guid>
		<description><![CDATA[Xah Lee, 2006-07, &#8230;, 2009-08-12, 2009-12-06 This page gives some tips about using emacs and unicode. If you work in 2 languages, or type a lot math symbols, you&#8217;ll find this page useful. http://xahlee.org/emacs/emacs_n_unicode.html Emacs manual for coding systems http://www.gnu.org/software/emacs/manual/html_node/emacs/Coding-Systems.html#Coding-Systems http://www.gnu.org/software/emacs/manual/html_node/emacs/International.html#International<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pamag.wordpress.com&amp;blog=11710908&amp;post=67&amp;subd=pamag&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Xah Lee, 2006-07, &#8230;, 2009-08-12, 2009-12-06</p>
<p>This page gives some tips about using emacs and unicode. If you work in 2 languages, or type a lot math symbols, you&#8217;ll find this page useful.</p>
<p><a href="http://xahlee.org/emacs/emacs_n_unicode.html">http://xahlee.org/emacs/emacs_n_unicode.html</a></p>
<p>Emacs manual for coding systems</p>
<p><a href="http://www.gnu.org/software/emacs/manual/html_node/emacs/Coding-Systems.html#Coding-Systems">http://www.gnu.org/software/emacs/manual/html_node/emacs/Coding-Systems.html#Coding-Systems</a></p>
<p><a href="http://www.gnu.org/software/emacs/manual/html_node/emacs/International.html#International">http://www.gnu.org/software/emacs/manual/html_node/emacs/International.html#International</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pamag.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pamag.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pamag.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pamag.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pamag.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pamag.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pamag.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pamag.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pamag.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pamag.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pamag.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pamag.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pamag.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pamag.wordpress.com/67/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pamag.wordpress.com&amp;blog=11710908&amp;post=67&amp;subd=pamag&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pamag.wordpress.com/2010/01/03/emacs-and-unicode-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c06bb1e87c664eb288bc39c491cb161d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pamag</media:title>
		</media:content>
	</item>
		<item>
		<title>MySQL alternatives from MySQL</title>
		<link>http://pamag.wordpress.com/2010/01/03/mysql-alternatives-from-mysql/</link>
		<comments>http://pamag.wordpress.com/2010/01/03/mysql-alternatives-from-mysql/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 14:30:20 +0000</pubDate>
		<dc:creator>Pablo Marín-García</dc:creator>
				<category><![CDATA[databases]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://marinp.blogs.uv.es/?p=60</guid>
		<description><![CDATA[Monty Widenius, after the selling of MySQL AB to SUN started a company &#8220;Monty Program Ab&#8221;, and released a new MySQL engine: MariaDB (following his tradition of naming his programing childs after his biological ones) One of the pourposes of MariaDB is t0 counteract the side effects of InnoDB being under the control of ORACLE, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pamag.wordpress.com&amp;blog=11710908&amp;post=60&amp;subd=pamag&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Monty Widenius, after the selling of MySQL AB to SUN started a company &#8220;<a href="http://askmonty.org/">Monty Program Ab&#8221;</a>, and released a new MySQL engine: <a href="http://askmonty.org/wiki/index.php/Maria">MariaDB</a> (following his tradition of naming his programing childs after his biological ones)</p>
<p>One of the pourposes of MariaDB is t0 counteract the side effects of InnoDB being under the control of ORACLE, and provide a &#8220;crash-safe alternative to MyISAM&#8221; and for Maria2.0 &#8220;A fully transactional storage engine with at least all of InnoDB&#8217;s major features.&#8221;</p>
<p>Also there is an GPL2 alternative to InnoDB: <a href="http://www.percona.com/docs/wiki/percona-xtradb:start">percona-xtradb</a> (from an independent company)</p>
<p>&#8220;Percona XtraDB is an enhanced version of the InnoDB storage engine, designed to better scale on modern hardware, and including a variety of other features useful in high performance environments. It is fully backwards compatible, and so can be used as a drop-in replacement for standard InnoDB.&#8221;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pamag.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pamag.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pamag.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pamag.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pamag.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pamag.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pamag.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pamag.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pamag.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pamag.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pamag.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pamag.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pamag.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pamag.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pamag.wordpress.com&amp;blog=11710908&amp;post=60&amp;subd=pamag&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pamag.wordpress.com/2010/01/03/mysql-alternatives-from-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c06bb1e87c664eb288bc39c491cb161d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pamag</media:title>
		</media:content>
	</item>
		<item>
		<title>Oracle buying Sun, therefore adquiring MySQL!!!!!</title>
		<link>http://pamag.wordpress.com/2010/01/03/oracle-buying-sun-therefore-adquiring-mysql/</link>
		<comments>http://pamag.wordpress.com/2010/01/03/oracle-buying-sun-therefore-adquiring-mysql/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 14:07:32 +0000</pubDate>
		<dc:creator>Pablo Marín-García</dc:creator>
				<category><![CDATA[databases]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[GPL]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://marinp.blogs.uv.es/?p=57</guid>
		<description><![CDATA[Oracle is buying SUN. But because SUN holds MySQL, there is a problem of competency and the European Commission is looking closely the acquisition to guaranty that the market diversity for databases is similar before and after the merging. Monty (the creator of MySQL) thinks that Oracle will kill MySQL in the long run and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pamag.wordpress.com&amp;blog=11710908&amp;post=57&amp;subd=pamag&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Oracle is buying SUN. But because SUN holds MySQL, there is a problem of competency and the European Commission is looking closely the acquisition to guaranty that the market diversity for databases is similar before and after the merging.</p>
<p>Monty (the creator of MySQL) thinks that Oracle will kill MySQL in the long run and also thinks that  this was its first motivation when buying SUN: get rid off an annoying competitor. Therefore he started a big campaign to show to the EC that Oracle&#8217;s movement is a thread to MySQL development:</p>
<p><a href="http://helpmysql.org/en/theissue/customerspaythebill">http://helpmysql.org/en/theissue/customerspaythebill</a></p>
<p>Monty Widenius, in early Dicember 2009<a href="http://monty-says.blogspot.com/2009/12/help-saving-mysql.html"> asked for people using MySQL to write to EC</a> in order to prevent oracle to acquire MySQL unconditionally. He ask for several points not addressed in the oracle &#8216;promises&#8217;:</p>
<p style="padding-left:30px;"><span style="color:#0000ff;">Oracle has NOT promised (as far as I know and certainly not in a legally binding manner):</span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;">- To keep (all of) MySQL under an open source license.<br />
- Not to add closed source parts, modules or required tools.<br />
- To keep the code for MySQL enterprise edition and MySQL community edition the same.<br />
- To not raise MySQL license or MySQL support prices.<br />
- To release new MySQL versions in a regular and timely manner. (*)<br />
- To continue with dual licensing and always provide affordable commercial licenses to MySQL to those who needs them (to storage vendors and application vendors) or provide MySQL under a more permissive license<br />
- To develop MySQL as an Open Source project<br />
- To actively work with the community<br />
- Apply submitted patches in a timely manner<br />
- To not discriminate patches that make MySQL compete more with Oracles other products<br />
- To ensure that MySQL is improved also in manners that make it compete even more with Oracles&#8217; main offering.</span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;">From looking at how Oracle handled the InnoDB acquisition, I don&#8217;t have high hopes that Oracle will do the above right if not required to do so:</span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;">For InnoDB:<br />
- Bug fixes were done (but this was done under a contractual obligation)<br />
- New features, like compression that was announced before acquisition, took 3 years to implement<br />
- No time tables or insight into development<br />
- The community where not allowed to participate in development<br />
- Patches from users (like Google) that would have increased performance was not implemented/released until after Oracle announced it was acquiring Sun.<br />
- Oracle started working on InnoDB+, a better &#8216;closed source&#8217; version of InnoDB<br />
- In the end Sun had to fork InnoDB, just to be able to improve performance. </span></p>
<p style="padding-left:30px;">
<p><span style="color:#0000ff;"><span style="color:#000000;">Monty says that when he sold MySQL to Sun there was a trap clause that he didn&#8217;t fully understood  at that time:</span></span></p>
<p style="padding-left:30px;"><em>About MySQL Workbench 7; I always wanted MySQL AB to only produce Open Source code. I had in my shareholder agreement a clause that ensured that the MySQL server should always be fully open source (no commercial modules) until MySQL AB would be sold. (Note that it&#8217;s impossible to get an agreement from investors that would protect the code after the company is sold). Unfortunately, the clause was written in such a way that it did not protect other programs (I did not understand this at the time I signed the contract). For a long time I manage to fight off any attempt from the management for closed source programs until they finally went over my head and created some of the new tools as closed source programs. I, and many other developers in MySQL AB, always thought that was a bad idea and we still think that way!</em></p>
<p>And a better Monty&#8217;s explanation of the process of MySQL being sold to SUN and how the agreement of MySQL being open source get jeopardized when it was sold to SUN could be found <a href="http://monty-says.blogspot.com/2009/12/help-keep-internet-free.html">here. </a>:</p>
<p style="padding-left:30px;"><em><a name="q20"><span style="font-weight:bold;">Q: Didn&#8217;t you sell MySQL to Sun? Do you want to have the cake and eat it too?</span></a></em></p>
<p><em>First a little background:</em></p>
<p><em>I started to work on a code that would later become MySQL in 1982. MySQL was released in 1995 under a dual licensing scheme that allowed David Axmark and me to very quickly work full time on developing MySQL.</em></p>
<p><em>I lost the rights to the MySQL copyright in 2001 when MySQL AB was created and we allowed investors to come in. We needed to bring in investors to be able to create a full-scale working company to satisfy big customers and to be able to hire more developers and take MySQL to the next stage.<strong><span style="text-decoration:underline;"> To ensure that MySQL would continue to be free, David and I stated in the shareholder agreement that MySQL AB would have to keep MySQL under an open source license. The problem with a shareholder agreement is that it is terminated when the company is sold. This is just how things works.</span></strong></em></p>
<p><em>David and I however thought that this would not be a problem, as we would help ensure that MySQL would be bought by a good owner.</em></p>
<p><em>I continued to lead the MySQL project and have been one of the leaders and top contributors for the project since then.</em></p>
<p><em>When the sales process to Sun started, I was at the time not anymore in the MySQL Board (just a MySQL shareholder). I was just informed about the deal, after it was agreed to. I did get money for my shares, that is true, but it did not change in any way my dedication or involvement in the MySQL project.</em></p>
<p style="padding-left:30px;">
<p>Also another problem is that although MySQL is GPL the manuals aren not!!!. And not the name either nor the &#8216;defensive&#8217; IPR filled.</p>
<p><em><br />
</em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pamag.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pamag.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pamag.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pamag.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pamag.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pamag.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pamag.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pamag.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pamag.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pamag.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pamag.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pamag.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pamag.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pamag.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pamag.wordpress.com&amp;blog=11710908&amp;post=57&amp;subd=pamag&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pamag.wordpress.com/2010/01/03/oracle-buying-sun-therefore-adquiring-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c06bb1e87c664eb288bc39c491cb161d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pamag</media:title>
		</media:content>
	</item>
		<item>
		<title>perl local::lib problems with some makefiles (eg: git manual installation)</title>
		<link>http://pamag.wordpress.com/2009/12/30/perl-locallib-problems-with-some-makefiles-eg-git-manual-installtion/</link>
		<comments>http://pamag.wordpress.com/2009/12/30/perl-locallib-problems-with-some-makefiles-eg-git-manual-installtion/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 12:27:00 +0000</pubDate>
		<dc:creator>Pablo Marín-García</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[perl_local_lib]]></category>

		<guid isPermaLink="false">http://marinp.blogs.uv.es/?p=37</guid>
		<description><![CDATA[I tried to install the latest git in my ubuntu 9.04 and failed while trying to install some perl code. The makefile use prefix but does not check if there is a INSTALL_BASE variable already  defined in the system. This create a conflict having both prefix and install_base. # installing git sudo aptitude install git-core [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pamag.wordpress.com&amp;blog=11710908&amp;post=37&amp;subd=pamag&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I tried to install the latest git in my ubuntu 9.04 and failed while trying to install some perl code. The makefile use prefix but does not check if there is a INSTALL_BASE variable already  defined in the system. This create a conflict having both prefix and install_base.</p>
<p><strong># installing git</strong><br />
<code>sudo aptitude install git-core git-doc git-svn gitmagic gitweb<br />
git-core git-doc git-svn gitmagic gitweb libdigest-sha1-perl{a} liberror-perl{a} libneon27-gnutls{a} libsvn-perl{a}<br />
libsvn1{a}</code></p>
<p><strong>#updating git:</strong></p>
<p><a href="http://blog.zobie.com/2009/07/installing-git-on-ubuntu-904-jaunty/">http://blog.zobie.com/2009/07/installing-git-on-ubuntu-904-jaunty/</a></p>
<p><code>$ sudo apt-get build-dep git-core git-doc libssl-dev<br />
$ wget <a href="http://kernel.org/pub/software/scm/git/git-1.6.3.3.tar.gz">http://kernel.org/pub/software/scm/git/git-1.6.3.3.tar.gz</a><br />
$ tar -xzf git-1.6.3.3.tar.gz<br />
$ cd git-1.6.3.3/<br />
$ ./configure<br />
$ make all doc<br />
$ sudo make install install-doc<br />
$ git --version<br />
git version 1.6.3.3<br />
</code><br />
[in my case wget <a href="http://kernel.org/pub/software/scm/git/git-1.6.5.6.tar.gz">http://kernel.org/pub/software/scm/git/git-1.6.5.6.tar.gz</a>]</p>
<p>ERROR because Local::Lib exported variable: INSTALL_BASE</p>
<pre>-----[error]------
/usr/bin/perl Makefile.PL PREFIX='/usr/local'
Only one of PREFIX or INSTALL_BASE can be given.  Not both.
make[1]: *** [perl.mak] Error 255
make: *** [perl/perl.mak] Error 2
-----------</pre>
<p><span style="background-color:#ffff00;"> !!! why /usr/bin/perl; ????? </span> if I have my local perl 5.10.1 in my home and &#8216;which perl&#8217; point to it. Seems that I would need to change the makefile options and the hardcoded perl location!!! &lt;TO_DO&gt;</p>
<pre>$ make clean</pre>
<p>&lt;TO_DO&gt; modify the makefile options for using my local perl 5.10.1 and use only the INSTALL_BASE (or only prefix deleting the install_base envvar)</p>
<p>[NB]<br />
## how Local::Lib works: it exports some variables from an eval in your .bashrc:</p>
<pre> pablo@pmg-linux:~$ perl -I$HOME/localperl/locallib/lib/perl5 -Mlocal::lib=$HOME/localperl/locallib
 export MODULEBUILDRC="/home/pablo/localperl/locallib/.modulebuildrc"
 export PERL_MM_OPT="INSTALL_BASE=/home/pablo/localperl/locallib"
 export PERL5LIB="/home/pablo/localperl/locallib/lib/perl5:/home/pablo/localperl/locallib/lib/perl5/i486-linux-gnu-thread-multi:$PERL5LIB"
 export PATH="/home/pablo/localperl/locallib/bin:$PATH"</pre>
<p>&#8212;&#8212;&#8212;&#8212;</p>
<p><strong>And similar problems reported in the web:</strong></p>
<p><a href="http://thread.gmane.org/gmane.comp.version-control.git/129906/focus=130343">http://thread.gmane.org/gmane.comp.version-control.git/129906/focus=130343</a></p>
<p>From: Jakub Narebski &lt;jnareb &lt;at&gt; <a href="http://gmail.com/">gmail.com</a>&gt;<br />
Subject: <a rel="nofollow" href="http://news.gmane.org/find-root.php?message_id=%3cm3fx9lfwwr.fsf%40localhost.localdomain%3e">Re: [ANNOUNCE] GIT 1.6.5</a><br />
Newsgroups: <a href="http://news.gmane.org/gmane.comp.version%2dcontrol.git">gmane.comp.version-control.git</a><br />
Date: 2009-10-14 22:11:50 GMT  (9 weeks and 26 minutes ago)</p>
<pre>Junio C Hamano &lt;gitster &lt;at&gt; <a href="http://pobox.com/">pobox.com</a>&gt; writes:

&gt; The latest feature release GIT 1.6.5 is available at the usual
&gt; places:
&gt;
&gt;   <a rel="nofollow" href="http://www.kernel.org/pub/software/scm/git/">http://www.kernel.org/pub/software/scm/git/</a>
&gt;
&gt;   git-1.6.5.tar.{gz,bz2}			(source tarball)
&gt;   git-htmldocs-1.6.5.tar.{gz,bz2}		(preformatted docs)
&gt;   git-manpages-1.6.5.tar.{gz,bz2}		(preformatted docs)
&gt;
&gt; The RPM binary packages for a few architectures are found in:
&gt;
&gt;   RPMS/$arch/git-*-1.6.5-1.fc9.$arch.rpm	(RPM)
&gt;
&gt; This cycle took a bit longer than I hoped, but here it is.  We already
&gt; have some new features cooking in 'next', and I expect we may be able to
&gt; have 1.6.6 by the end of the year.

Compiling git from source RPM git-1.6.5-1.fc9.src.rpm using

  $ rpmbuild --rebuild git-1.6.5-1.fc9.src.rpm

fails with the following error:

    SUBDIR perl
/usr/bin/perl Makefile.PL PREFIX='/usr'
Only one of PREFIX or INSTALL_BASE can be given.  Not both.
make[1]: <strong>**</strong>* [perl.mak] Error 2
make: <strong>**</strong>* [perl/perl.mak] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.53174 (%build)

Compiling git from source with

 $ make prefix=/home/local/git \
        bindir=/home/local/git \
        gitexecdir=/home/local/git \
        template_dir=/home/local/git \
        GIT_PYTHON_DIR=/home/local/git

gives the same error.

It might matter that I am using modern Perl way of installing Perl
modules locally, via local::lib, with ~<em>/perl5/</em>.modulebuildrc
containing

  install  --install_base  /home/jnareb/perl5

and I have

  export MODULEBUILDRC="$HOME<em>/perl5/</em>.modulebuildrc"
  export PERL_MM_OPT="INSTALL_BASE=$HOME/perl5"

Doing

 $ unset PERL_MM_OPT

before compiling (from SRPMS) made compilation pass this stage,
and finally succeed.

I guess that perl/Makefile (or rather the file that generates it)
should unset PERL_MM_OPT, or use INSTALL_BASE as DESTDIR rather
than fiddling with PREFIX.

But I am not a Perl hacker
------------------------------------------------------------
perl, v5.8.6
ExtUtils::MakeMaker 6.54 (local)
ExtUtils::MakeMaker 6.17 (global)

export MODULEBUILDRC="$HOME<em>/perl5/</em>.modulebuildrc"
export PERL_MM_OPT="INSTALL_BASE=$HOME/perl5"
--
Jakub Narebski
Poland
ShadeHawk on #git</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pamag.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pamag.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pamag.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pamag.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pamag.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pamag.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pamag.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pamag.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pamag.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pamag.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pamag.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pamag.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pamag.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pamag.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pamag.wordpress.com&amp;blog=11710908&amp;post=37&amp;subd=pamag&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pamag.wordpress.com/2009/12/30/perl-locallib-problems-with-some-makefiles-eg-git-manual-installtion/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c06bb1e87c664eb288bc39c491cb161d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pamag</media:title>
		</media:content>
	</item>
		<item>
		<title>MYSQL devel files in ubuntu and installing perl DBD::mysql</title>
		<link>http://pamag.wordpress.com/2009/12/29/mysql-devel-files-in-ubuntu-and-installing-perl-dbdmysql/</link>
		<comments>http://pamag.wordpress.com/2009/12/29/mysql-devel-files-in-ubuntu-and-installing-perl-dbdmysql/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 23:46:34 +0000</pubDate>
		<dc:creator>Pablo Marín-García</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[perl_dbi]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://marinp.blogs.uv.es/?p=44</guid>
		<description><![CDATA[I am using the fantastic local::lib with ubuntu 9.04. That is great but then I am managing all my perl modules with CPAN, including the hard-to-install-ones like DBI and GD. This are easy to install with &#8216;aptitude&#8217; PROBLEMS: A- where is myql_config script? DBD::mysql use it for finding where you have all the mysql things [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pamag.wordpress.com&amp;blog=11710908&amp;post=44&amp;subd=pamag&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am using the fantastic local::lib with ubuntu 9.04. That is great but then I am managing all my perl modules with CPAN,<br />
including the hard-to-install-ones like DBI and GD. This are easy to install with &#8216;aptitude&#8217;</p>
<p>PROBLEMS:<br />
A- where is myql_config script? DBD::mysql use it for finding where you have all the mysql things<br />
B- where is now the mysql-devel package?</p>
<p>A) Not found until solved B.</p>
<p>mysql_config is not installed until you install the mysql-devel !!!</p>
<p>linux:~/.cpan/build/DBD-mysql-4.013-tjvDzy$ mysql_config<br />
Usage: /usr/bin/mysql_config [OPTIONS]<br />
Options:<br />
&#8211;cflags         [-I/usr/include/mysql  -DBIG_JOINS=1 -fPIC -fno-strict-aliasing]<br />
&#8211;include        [-I/usr/include/mysql]<br />
&#8211;libs           [-Wl,-Bsymbolic-functions -rdynamic -L/usr/lib/mysql -lmysqlclient]<br />
&#8211;libs_r         [-Wl,-Bsymbolic-functions -rdynamic -L/usr/lib/mysql -lmysqlclient_r]<br />
&#8211;socket         [/var/run/mysqld/mysqld.sock]<br />
&#8211;port           [0]<br />
&#8211;version        [5.0.75]<br />
&#8211;libmysqld-libs [-Wl,-Bsymbolic-functions -rdynamic -L/usr/lib/mysql -lmysqld -lwrap -lrt]</p>
<p>B) The msyql devel is no longer in ubuntu (at least with this name)</p>
<p>linux:~/.cpan/build/DBD-mysql-4.013-tjvDzy$ sudo aptitude search mysql | grep devel<br />
p   liblua5.1-sql-mysql-dev         &#8211; luasql development files for the lua langu<br />
p   libmysql++-dev                  &#8211; MySQL C++ library bindings (development)<br />
p   libmysqlclient15-dev            &#8211; MySQL database development files<br />
p   libmysqlclient16-dev            &#8211; MySQL database development files</p>
<p>Seems that now is called  libmysqlclient15-dev</p>
<p>Searching in the web:<br />
<a href="http://ubuntuforums.org/showthread.php?t=556317">http://ubuntuforums.org/showthread.php?t=556317</a><br />
a lot of people have had the same problem and they say that &#8216; libmysql++-dev&#8217; works ok</p>
<p>What I was not able to find is what is the difference between libmysqlclient15-dev and libmysqlclient16-dev. I have mysql-5.0 installed but in the repostiroty there is also the 5.1. Are the libmysqlcientxx-devel specific for each msyql version?</p>
<p># installing the libmysql++-dev<br />
&gt; sudo aptitude install libmysql++-dev<br />
The following NEW packages will be installed:<br />
libmysql++-dev libmysql++3{a} libmysqlclient15-dev{a}</p>
<p>==intalled devel files ==</p>
<p>== Try to install DBD::mysql with CPAN==</p>
<p>cpan[12]&gt; install DBD::mysql</p>
<p>&#8216;/home/pablo/localperl/bin/perl Makefile.PL&#8217; returned status 512, won&#8217;t make<br />
Running make test<br />
Make had some problems, won&#8217;t test<br />
Running make install<br />
Make had some problems, won&#8217;t install</p>
<p>* try it manually<br />
<br /><span style="font-family:courier new,monospace;">pablo@pmg-linux:~/.cpan/build/DBD-mysql-4.013-2mMMny$ <strong>perl Makefile.PL</strong></span></p>
<p><span style="font-family:courier new,monospace;">PLEASE NOTE:</span></p>
<p><span style="font-family:courier new,monospace;">For &#8216;make test&#8217; to run properly, you must ensure that the </span><br /><span style="font-family:courier new,monospace;">database user &#8216;pablo&#8217; can connect to your MySQL server </span><br /><span style="font-family:courier new,monospace;">and has the proper privileges that these tests require such </span><br /><span style="font-family:courier new,monospace;">as &#8216;drop table&#8217;, &#8216;create table&#8217;, &#8216;drop procedure&#8217;, &#8216;create procedure&#8217;</span><br /><span style="font-family:courier new,monospace;">as well as others. </span></p>
<p><span style="font-family:courier new,monospace;">mysql&gt; grant all privileges on test.* to &#8216;pablo&#8217;@'localhost&#8217; identified by &#8216;s3kr1t&#8217;;</span></p>
<p><span style="font-family:courier new,monospace;">You can also optionally set the user to run &#8216;make test&#8217; with:</span></p>
<p><span style="font-family:courier new,monospace;">perl Makefile.pl &#8211;testuser=username</span></p>
<p><span style="font-family:courier new,monospace;">I will use the following settings for compiling and testing:</span></p>
<p><span style="font-family:courier new,monospace;"> cflags        (mysql_config) = -I/usr/include/mysql  -DBIG_JOINS=1 -fPIC -fno-strict-aliasing</span><br /><span style="font-family:courier new,monospace;"> embedded      (mysql_config) = </span><br /><span style="font-family:courier new,monospace;"> libs          (mysql_config) = -Wl,-Bsymbolic-functions -rdynamic -L/usr/lib/mysql -lmysqlclient</span><br /><span style="font-family:courier new,monospace;"> mysql_config  (guessed     ) = mysql_config</span><br /><span style="font-family:courier new,monospace;"> nocatchstderr (default     ) = 0</span><br /><span style="font-family:courier new,monospace;"> nofoundrows   (default     ) = 0</span><br /><span style="font-family:courier new,monospace;"> ssl           (guessed     ) = 0</span><br /><span style="font-family:courier new,monospace;"> testdb        (default     ) = test</span><br /><span style="font-family:courier new,monospace;"> testhost      (default     ) = </span><br /><span style="font-family:courier new,monospace;"> testpassword  (default     ) = </span><br /><span style="font-family:courier new,monospace;"> testsocket    (default     ) = </span><br /><span style="font-family:courier new,monospace;"> testuser      (guessed     ) = pablo</span></p>
<p><span style="font-family:courier new,monospace;">To change these settings, see &#8216;perl Makefile.PL &#8211;help&#8217; and</span></p>
<p># Before installing, it would be good to have a test database and give rights to the my user:<br />
<span style="font-family:courier new,monospace;">$ mysql -u root -p</span><br /><span style="font-family:courier new,monospace;">mysql&gt; <span style="font-family:courier new,monospace;">grant all privileges on test.* to &#8216;pablo&#8217;@'localhost&#8217;;</span><br />mysql&gt; create database test;<br />
$ cd ~/.cpan/build/DBD-mysql-4.013-2mMMny<br />
$ </span><span style="font-family:courier new,monospace;">perl Makefile.PL</p>
<p>$ make</p>
<p>$ make test<br />
All tests successful.<br />
Files=36, Tests=745, 15 wallclock secs ( 0.24 usr  0.97 sys +  1.47 cusr  7.16 csys =  9.84 CPU)<br />
Result: PASS</p>
<p>$ make install</p>
<p>&#8212;-</p>
<p>After installing it manually I did the installation again from CPAN with the CPAN shell into my local-lib and it worked ok! Well I was expecting it to warn me that was already installed but it was installed again instead.<br />
</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pamag.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pamag.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pamag.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pamag.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pamag.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pamag.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pamag.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pamag.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pamag.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pamag.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pamag.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pamag.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pamag.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pamag.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pamag.wordpress.com&amp;blog=11710908&amp;post=44&amp;subd=pamag&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pamag.wordpress.com/2009/12/29/mysql-devel-files-in-ubuntu-and-installing-perl-dbdmysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c06bb1e87c664eb288bc39c491cb161d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pamag</media:title>
		</media:content>
	</item>
	</channel>
</rss>
