<?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>tanhaaiyaaN &#187; Linux</title>
	<atom:link href="http://www.tanhaa.net/index.php/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tanhaa.net</link>
	<description>Notes from the underground!</description>
	<lastBuildDate>Tue, 01 Nov 2011 17:01:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Scribus &#8211; Page Numbering</title>
		<link>http://www.tanhaa.net/index.php/2007/04/02/scribus-page-numbering/</link>
		<comments>http://www.tanhaa.net/index.php/2007/04/02/scribus-page-numbering/#comments</comments>
		<pubDate>Mon, 02 Apr 2007 16:37:31 +0000</pubDate>
		<dc:creator>tanhaa</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[techno-babble]]></category>
		<category><![CDATA[scribus]]></category>

		<guid isPermaLink="false">http://www.tanhaa.net/index.php/2007/04/02/scribus-page-numbering/</guid>
		<description><![CDATA[So I have been working with Scribus for the last few days for a project at work.  Being on Linux, I always look for software that let me do what needs to be done that are opensource, Scribus ended up being the perfect desktop publishing solution that works on Linux. If you are looking for [...]]]></description>
			<content:encoded><![CDATA[<p>So I have been working with Scribus for the last few days for a project at work.  Being on Linux, I always look for software that let me do what needs to be done that are opensource, Scribus ended up being the perfect desktop publishing solution that works on Linux. If you are looking for Desktop publishing solution, Scribus can do the job for you and if I&#8217;m not mistaken, it works on multiple operating systems (including Windows).  Now my advice is that if you are going for Scribus, make sure you go for the latest version, even though it is from their nightly developped version, you are more likely to have better functions, more functions and a stable version if you do that.  I am currently using 1.3.3.6 and I think a better version is out already.  In any case, the post is to help with the page-numbering issue.</p>
<p>So I made my little booklet and realized that my page numbers were showing up wrong, after 10 or so pages, I started getting 1-2-3-4 repeated all over! What&#8217;s wrong? Apparently, you need to tell Scribus that you want more than 10 pages.  So on my master template, where I had put up a # sign to indicate I want the page number to come there, I had to put up ## signs for pages more than 20.  Simple solution, weird behaviour.</p>
<p>Thought I&#8217;d share this with the world.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.tanhaa.net%2Findex.php%2F2007%2F04%2F02%2Fscribus-page-numbering%2F&amp;title=Scribus%20%26%238211%3B%20Page%20Numbering" id="wpa2a_2"><img src="http://www.tanhaa.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.tanhaa.net/index.php/2007/04/02/scribus-page-numbering/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting flv to mpg in Ubuntu</title>
		<link>http://www.tanhaa.net/index.php/2007/03/12/converting-flv-to-mpg-in-ubuntu/</link>
		<comments>http://www.tanhaa.net/index.php/2007/03/12/converting-flv-to-mpg-in-ubuntu/#comments</comments>
		<pubDate>Mon, 12 Mar 2007 20:49:54 +0000</pubDate>
		<dc:creator>tanhaa</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[techno-babble]]></category>
		<category><![CDATA[flash video]]></category>
		<category><![CDATA[FLV]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.tanhaa.net/index.php/2007/03/12/converting-flv-to-mpg-in-ubuntu/</guid>
		<description><![CDATA[In case you ever need to convert one of those flash videos that you find all over the web these days (for example on youtube.com), you can use your linux box very easily to do so. But first, download the .flv (flash video) file from the website. To do that, use &#8220;unplug&#8221; addon for Mozilla [...]]]></description>
			<content:encoded><![CDATA[<p>In case you ever need to convert one of those flash videos that you find all over the web these days (for example on youtube.com), you can use your linux box very easily to do so.  But first, download the .flv (flash video) file from the website. To do that, use &#8220;unplug&#8221; addon for Mozilla firefox (just go to the Firefox addon site and search for &#8220;unplug&#8221;).</p>
<p>The plugin gives you a few choices to download streaming video/audio from a site by giving you (what it assumes) to be the best link to download the media file.</p>
<p>So after you have downloaded the flv file, simply open up the terminal and run this command:</p>
<p>user@server:~$ ffmpeg -i get_video.flv -ab 56 -ar 22050 -b 500 -s 320X240 video.mpg<br />
A great link that gives more information about this process is in my del.icio.us and here it is: http://ubuntuforums.org/showthread.php?p=1656936</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.tanhaa.net%2Findex.php%2F2007%2F03%2F12%2Fconverting-flv-to-mpg-in-ubuntu%2F&amp;title=Converting%20flv%20to%20mpg%20in%20Ubuntu" id="wpa2a_4"><img src="http://www.tanhaa.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.tanhaa.net/index.php/2007/03/12/converting-flv-to-mpg-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>mysql &#8211; matching records</title>
		<link>http://www.tanhaa.net/index.php/2007/03/12/mysql-matching-records/</link>
		<comments>http://www.tanhaa.net/index.php/2007/03/12/mysql-matching-records/#comments</comments>
		<pubDate>Mon, 12 Mar 2007 17:47:33 +0000</pubDate>
		<dc:creator>tanhaa</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[techno-babble]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.tanhaa.net/index.php/2007/03/12/mysql-matching-records/</guid>
		<description><![CDATA[Problem: Find records that match within two tables, TableA and TableB. Solution: Use a simple SELECT statement with a defined WHERE clause Lets assume that TableA and TableB have a field called “Phone” which contains the phone number of the clients and these numbers are obviously stored in a unique index. So what we are [...]]]></description>
			<content:encoded><![CDATA[<p>Problem:<br />
Find records that match within two tables, TableA and TableB.</p>
<p>Solution:</p>
<p>Use a simple SELECT statement with a defined WHERE clause</p>
<p>Lets assume that TableA and TableB have a field called “Phone” which contains the phone number of the clients and these numbers are obviously stored in a unique index.  So what we are going to do is run a simple query to find out which numbers in TableB match TableA.</p>
<p>Assuming you are using linux and you can run this query from the command prompt, this is the way to do it:</p>
<p>user@server:~/ mysql -u USERNAME -p<br />
(the server will ask for your password, enter the password and press Enter)</p>
<p>Now you should be in mysql and the prompt should look different already</p>
<p>mysql> use DATABASENAME<br />
(this command changes the database to the one where you have both the tables)<br />
mysql> select * FROM TableB, TableA WHERE TableB.phone=TableA.phone;</p>
<p>This query will obviously select all fields from TableB and TableA.  If you only wanted to select certain fields (for example &#8220;name&#8221; from TableB and &#8220;name&#8221; from TableA), then the query would change to:</p>
<p>mysql> select TableB.name, TableA.name FROM TableB, TableA WHERE TableB.phone=TableA.phone;</p>
<p>This will give you just the name column from TableB and name column from TableB.</p>
<p>Now what if you wanted to dump the query result into a text file for future use? Here&#8217;s the query:</p>
<p>mysql> SELECT TableB.name, TableA.name FROM TableB, TableA WHERE TableB.phone=TableA.phone INTO OUTFILE ‘/tmp/matchingnames.txt&#8217;;</p>
<p>That should do it.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.tanhaa.net%2Findex.php%2F2007%2F03%2F12%2Fmysql-matching-records%2F&amp;title=mysql%20%26%238211%3B%20matching%20records" id="wpa2a_6"><img src="http://www.tanhaa.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.tanhaa.net/index.php/2007/03/12/mysql-matching-records/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql &#8211; scrubbing files against others</title>
		<link>http://www.tanhaa.net/index.php/2007/03/12/mysql-scrubbing-files-against-others/</link>
		<comments>http://www.tanhaa.net/index.php/2007/03/12/mysql-scrubbing-files-against-others/#comments</comments>
		<pubDate>Mon, 12 Mar 2007 17:31:23 +0000</pubDate>
		<dc:creator>tanhaa</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[techno-babble]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.tanhaa.net/index.php/2007/03/12/mysql-scrubbing-files-against-others/</guid>
		<description><![CDATA[Problem: TableA contains a customer database TableB contains new names that you want to match against your customer database and remove all the names that are already customers. Solution: Use &#8220;LEFT JOIN&#8221; property of mysql to carry out the task. Lets assume that TableA and TableB have a field called &#8220;Phone&#8221; which contains the phone [...]]]></description>
			<content:encoded><![CDATA[<p>Problem:</p>
<p>TableA contains a customer database<br />
TableB contains new names that you want to match against your customer database and remove all the names that are already customers.</p>
<p>Solution:</p>
<p>Use &#8220;LEFT JOIN&#8221; property of mysql to carry out the task.</p>
<p>Lets assume that TableA and TableB have a field called &#8220;Phone&#8221; which contains the phone number of the clients and these numbers are obviously stored in a unique index.  So what we are going to do is run a simple query to find out which numbers in TableB do not exist in TableA.</p>
<p>Assuming you are using linux and you can run this query from the command prompt, this is the way to do it:</p>
<p>user@server:~/ mysql -u USERNAME -p<br />
(the server will ask for your password, enter the password and press Enter)</p>
<p>Now you should be in mysql and the prompt should look different already</p>
<p>mysql> use DATABASENAME<br />
(this command changes the database to the one where you have both the tables)<br />
mysql> select * from TableB LEFT JOIN TableA ON TableB.phone=TableA.phone WHERE TableA.phone IS NULL;</p>
<p>This should show you all the names in TableA that do not have a match in TableB.</p>
<p>Suppose you wanted to dump this file into a .txt file so you could use it elsewhere, the above command would change to:<br />
mysql> SELECT * FROM TableB LEFT JOIN TableA ON TableB.phone=TableA.phone WHERE TableA.phone IS NULL INTO OUTFILE &#8216;/tmp/scrubbedfilename.txt&#8217;;</p>
<p>This will dump the file with the unmatching records from TableA in the /tmp directory of your linux filesystem.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.tanhaa.net%2Findex.php%2F2007%2F03%2F12%2Fmysql-scrubbing-files-against-others%2F&amp;title=mysql%20%26%238211%3B%20scrubbing%20files%20against%20others" id="wpa2a_8"><img src="http://www.tanhaa.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.tanhaa.net/index.php/2007/03/12/mysql-scrubbing-files-against-others/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

