<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.1.3" -->
<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/"
	>

<channel>
	<title>The Genoc Library</title>
	<link>http://www.genoc.net</link>
	<description>an itoctopus project</description>
	<pubDate>Wed, 26 Jan 2011 20:51:44 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.3</generator>
	<language>en</language>
			<item>
		<title>How to Import a SQL file into MySQL on Windows</title>
		<link>http://www.genoc.net/how-to-import-a-sql-file-into-mysql-on-windows</link>
		<comments>http://www.genoc.net/how-to-import-a-sql-file-into-mysql-on-windows#comments</comments>
		<pubDate>Wed, 26 Jan 2011 20:50:43 +0000</pubDate>
		<dc:creator>Fadi El-Eter</dc:creator>
		
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.genoc.net/how-to-import-a-sql-file-into-mysql-on-windows</guid>
		<description><![CDATA[This is a small code snippet on how to import a SQL file into MySQL on Windows.
- First change to the MySQL Directory
- Now change into the bin directory
- Now run this command:
mysql -u USERNAME -pPASSWORD -h localhost DATABASENAME &#60; c:\\DIR1\\DIR2\\DATA.SQL
I capitalized all the potential variables above (so USERNAME is your username to mysql). Pay [...]]]></description>
			<content:encoded><![CDATA[<p>This is a small code snippet on how to import a SQL file into MySQL on Windows.</p>
<p>- First change to the MySQL Directory<br />
- Now change into the bin directory<br />
- Now run this command:<br />
<em>mysql -u USERNAME -pPASSWORD -h localhost DATABASENAME &lt; c:\\DIR1\\DIR2\\DATA.SQL</em></p>
<p>I capitalized all the potential variables above (so USERNAME is your username to mysql). Pay attention to the letter &#8220;p&#8221; before the password. So if your username is <em>testuser</em>, and your password is <em>12345</em>, and your database is called <em>testdb</em>, then the command will be:</p>
<p><em>mysql -u testuser -p12345 -h localhost testdb &lt; c:\\DIR1\\DIR2\\DATA.SQL</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.genoc.net/how-to-import-a-sql-file-into-mysql-on-windows/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Match Only Word in MySQL</title>
		<link>http://www.genoc.net/match-only-word-in-mysql</link>
		<comments>http://www.genoc.net/match-only-word-in-mysql#comments</comments>
		<pubDate>Mon, 03 Jan 2011 18:59:07 +0000</pubDate>
		<dc:creator>Fadi El-Eter</dc:creator>
		
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.genoc.net/match-only-word-in-mysql</guid>
		<description><![CDATA[Sometimes you want to search for a specific word in a MySQL VARCHAR or TEXT field. For example, let&#8217;s say you have a field called description in a table called mytable, and you want to search for the word car in the description field. Now if you use this query: SELECT description FROM mytable WHERE [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you want to search for a specific word in a MySQL VARCHAR or TEXT field. For example, let&#8217;s say you have a field called <em>description</em> in a table called <em>mytable</em>, and you want to search for the word <em>car </em>in the description field. Now if you use this query: <em>SELECT description FROM mytable WHERE description LIKE &#8216;%car%&#8217;; </em>you will get not only the list of descriptions with the word car, but also those with the words care, careless, card, caring, carpenter, etc&#8230; If you want only the word <em>car</em>, then you can use the following advanced query (it has regular expressions): <em>SELECT description FROM mytable WHERE description REGEXP &#8216;[[:&lt;:]](car)[[:&gt;:]]&#8217;</em><br />
The above query will return results with the word car only. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.genoc.net/match-only-word-in-mysql/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to Load a Tab Delimited CSV Into MySQL on Windows</title>
		<link>http://www.genoc.net/how-to-load-a-tab-delimited-csv-into-mysql-on-windows</link>
		<comments>http://www.genoc.net/how-to-load-a-tab-delimited-csv-into-mysql-on-windows#comments</comments>
		<pubDate>Mon, 03 Jan 2011 16:46:19 +0000</pubDate>
		<dc:creator>Fadi El-Eter</dc:creator>
		
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.genoc.net/how-to-load-a-tab-delimited-csv-into-mysql-on-windows</guid>
		<description><![CDATA[I know it&#8217;s been so long I have written on this website, but it&#8217;s just that I didn&#8217;t have any time. Anyway, here&#8217;s a little snippet I would like to share with you, how to load a tab delimited CSV into MySQL on Windows. Here&#8217;s a step by step guide:
Running MySQL in the Console
- Click [...]]]></description>
			<content:encoded><![CDATA[<p>I know it&#8217;s been so long I have written on this website, but it&#8217;s just that I didn&#8217;t have any time. Anyway, here&#8217;s a little snippet I would like to share with you, how to load a tab delimited CSV into MySQL on Windows. Here&#8217;s a step by step guide:</p>
<p><strong>Running MySQL in the Console</strong></p>
<p>- Click on Start, and then type <em>cmd </em>into the textbox where it says &#8220;Start Search&#8221;. This will open up the black console.<br />
- In the console, go to to the directory where MySQL is installed, for me this is how I go there: <em>cd c:\Software\MySQL </em>(for most people MySQL is installed under the <em>Program Files</em> directory)<br />
- Now change to the bin directory under MySQL: <em>cd bin</em><br />
- Now type the following command to run MySQL: <em>mysql -u root -p</em><br />
- You will be prompted for the root password, enter it. (Note, you can also connect using another user by just changing the username in the above step).<br />
- Now you are connected to MySQL.</p>
<p><strong>Selecting the Database</strong></p>
<p>- While you are connected to MySQL, type: <em>use databasename; </em>(where databasename is the name of the database you wish to use).</p>
<p><strong>Loading the Tab Delimited CSV</strong></p>
<p>- Now type the following command:</p>
<p><em>LOAD DATA LOCAL INFILE &#8216;c:\\testdata.txt&#8217; INTO TABLE testtable FIELDS TERMINATED BY &#8216;\t&#8217; LINES TERMINATED BY &#8216;\n&#8217; (`field1`, `field2`, `field3`);</em></p>
<p>The table testtable has to exist in the database testdatabase, and has to have the fields &#8220;field1&#8243;, &#8220;field2&#8243;, &#8220;field3&#8243;. Note that in Windows, you add a double backward slash &#8220;\\&#8221; in your path (so for example, if the csv file is located under <em>c:\myfiles\test.txt</em>, your path will be <em>c:\\myfiles\\test.txt </em>.</p>
<p>- The data now is loaded into the table, where each row in the file becomes a row in the table, and each column in that row fills in a field (for example, the first column of the first row goes to field1, the second column of the first row goes to field2, etc&#8230;). When the data is loaded, you will see a similar message:</p>
<p><em> Query OK, 69 rows affected, 267 warnings (0.03 sec)<br />
Records: 69  Deleted: 0  Skipped: 0  Warnings: 198<br />
</em></p>
<p>- To show the warnings, just type: <em>show warnings;</em></p>
<p>That&#8217;s it!</p>
<p>If you want to load a comma separated (delimited) file (a CSV), just change the above command that loads the data to:</p>
<p><em>LOAD DATA LOCAL INFILE &#8216;c:\\testdata.txt&#8217; INTO TABLE testtable FIELDS  TERMINATED BY &#8216;,&#8217; LINES TERMINATED BY &#8216;\n&#8217; (`field1`, `field2`,  `field3`);</em></p>
<p>Hope this helps someone!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.genoc.net/how-to-load-a-tab-delimited-csv-into-mysql-on-windows/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to Remove the Unwanted p Tag that Wordpress Adds?</title>
		<link>http://www.genoc.net/how-to-remove-the-unwanted-tag-that-wordpress-adds</link>
		<comments>http://www.genoc.net/how-to-remove-the-unwanted-tag-that-wordpress-adds#comments</comments>
		<pubDate>Mon, 07 Sep 2009 13:49:10 +0000</pubDate>
		<dc:creator>Fadi El-Eter</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.genoc.net/how-to-remove-the-unwanted-tag-that-wordpress-adds</guid>
		<description><![CDATA[Wordpress has this annoying habit of adding &#60;p&#62; tags to your post. Most of the times you don&#8217;t care, but sometimes it breaks your HTML and makes it non-compliant with W3C. Some have written a component just to handle this, the solution is very simple:
If you want to remove the &#60;p&#62; tag that is added [...]]]></description>
			<content:encoded><![CDATA[<p>Wordpress has this annoying habit of adding &lt;p&gt; tags to your post. Most of the times you don&#8217;t care, but sometimes it breaks your HTML and makes it non-compliant with W3C. Some have written a component just to handle this, the solution is very simple:</p>
<p>If you want to remove the &lt;p&gt; tag that is added automatically, then all you need to do is to edit the file <em>default-filters.php</em> in the <em>wp-includes</em> directory. Search for this line:</p>
<p><em>add_filter(&#8217;the_content&#8217;, &#8216;wpautop&#8217;); </em></p>
<p>and comment it out by adding // in the start of the line (sorry I have to explain this for non-programmers), so ultimately the line will be:</p>
<p><em>//add_filter(&#8217;the_content&#8217;, &#8216;wpautop&#8217;);</em></p>
<p>Save the file and upload it. There you go, no more of these annoying &lt;p&gt; tags!</p>
<p>This method has one disadvantage, is that when you upgrade Wordpress you have to redo the above, still, it can take you only 1 minute.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.genoc.net/how-to-remove-the-unwanted-tag-that-wordpress-adds/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Eter RSS</title>
		<link>http://www.genoc.net/eter-rss</link>
		<comments>http://www.genoc.net/eter-rss#comments</comments>
		<pubDate>Wed, 25 Jul 2007 03:26:13 +0000</pubDate>
		<dc:creator>Fadi El-Eter</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://www.genoc.net/eter-rss</guid>
		<description><![CDATA[Eter RSS is a WordPress RSS reader. Eter RSS allows WordPress powered sites to seamlessly integrate RSS feeds from other sites.
Specifications

Powerful infrastructure: Eter RSS uses lastRSS, known for its stability and its huge userbase.
Total control over your RSS feeds: Ability to change the settings for all your feeds and to overwrite these settings on a [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Eter RSS</strong> is a <em>WordPress</em> RSS reader. <strong>Eter RSS</strong> allows <em>WordPress</em> powered sites to seamlessly integrate RSS feeds from other sites.</p>
<h3>Specifications</h3>
<ul>
<li>Powerful infrastructure: <strong>Eter RSS</strong> uses <a href="http://lastrss.webdot.cz/" target="_blank">lastRSS</a>, known for its stability and its huge userbase.</li>
<li>Total control over your RSS feeds: Ability to change the settings for all your feeds and to overwrite these settings on a feed-by-feed basis.</li>
<li>Filtering: Ability to filter RSS entries containing unwanted words/sentences.</li>
<li>Clean RSS data: No more seeing the &amp; (ampersand) as &amp;.</li>
<li>User friendly interface: You will feel in control of your application.</li>
<li>Limit the # of RSS entries being displayed: You can set the maximum # of RSS entries to be displayed per RSS feed either globally or on a feed-by-feed basis.</li>
<li>Caching: <strong>Eter RSS</strong> allows you to cache your RSS results for faster access. Caching can happen every 30 minutes or every week, your choice. Caching can be completely turned off.</li>
<li>Absolutely free: Free to use, free to modify, it&#8217;s a free world!</li>
<li>&#8230;and more!</li>
</ul>
<h3>Requirements</h3>
<ul>
<li><em>WordPress</em> 2.0+ (older <em>WordPress</em> versions may work)</li>
<li>PHP 4+</li>
<li>Writable directory anywhere in your website for caching (Eter RSS will attempt to create such directory, but will not complain if it can&#8217;t, it just won&#8217;t cache).</li>
</ul>
<h3>Installation</h3>
<ul>
<li>Extract the zip file and upload the directory Eter RSS to your plugins directory. (usually <strong><code>wp-content/plugins</code></strong> under your home directory).</li>
<li>Login as administrator to your <em>WordPress</em> application, and then click on Plugins.</li>
<li>Click on Activate next to <strong>Eter RSS.</strong></li>
<li>Click on Options, and then click on <strong>Eter RSS</strong>, and follow the instructions.</li>
</ul>
<h3>Quick Start</h3>
<p>Eter RSS is quite easy to use. After saving your options here, go to any Post or Page and add the following: <strong><code>&lt;!--eter-rss:url::the_rss_url--&gt;</code></strong>  For example, if you want to display Yahoo&#8217;s Oddly Enough RSS, just add the following (in code mode): <strong><code>&lt;!--eter-rss:url::http://rss.news.yahoo.com/rss/oddlyenough--&gt;</code></strong></p>
<h3>Advanced</h3>
<p>You may want to override the global options set above with specific options for a certain URL:</p>
<ul>
<li>To override the &#8220;Maximum Entries Per RSS&#8221; option, use the &#8220;maximum&#8221; keyword followed by the number of maximum entries you want to show, for example <strong><code>&lt;!--eter-rss:url::http://rss.news.yahoo.com/rss/oddlyenough|<br />
maximum::5--&gt;</code></strong> (no line break between the pipe | and maximum) will only display the latest 5 RSS entries from Yahoo&#8217;s Oddly Enough.</li>
<li>To override the &#8220;Filter Entries With Keywords&#8221; option, use the &#8220;filter&#8221; keyword followed by your filter strings, separaterd by commas, for example <strong><code>&lt;!--eter-rss:url::http://rss.news.yahoo.com/rss/oddlyenough|<br />
filter::curtain,small table,door--&gt;</code></strong> will only display the RSS entries not having &#8220;curtain&#8221;, &#8220;small table&#8221;, or &#8220;door&#8221; in either the subject or the description. Note that entries containing &#8220;table&#8221; but not containing &#8220;small table&#8221; or &#8220;curtain&#8221; or &#8220;door&#8221; will still show. Note that entries containing &#8220;SMall taBLE&#8221; will not show; comparison is case insensitive.</li>
<li>To override the &#8220;Show RSS Title&#8221; option, use the &#8220;title&#8221; keyword followed by &#8220;yes&#8221; or &#8220;no&#8221;, for example <strong><code>&lt;!--eter-rss:url::http://rss.news.yahoo.com/rss/oddlyenough|<br />
title::no--&gt;</code></strong> will not display the RSS title.</li>
<li>To override the &#8220;Popup Links in New Window&#8221; option, use the &#8220;popup&#8221; keyword followed by &#8220;yes&#8221; or &#8220;no&#8221;, for example <strong><code>&lt;!--eter-rss:url::http://rss.news.yahoo.com/rss/oddlyenough|<br />
popup::no--&gt;</code></strong>. This code will make the RSS links open in the same window.</li>
<li>You may mix your options using the pipe (|), for example <strong><code>&lt;!--eter-rss:url::http://rss.news.yahoo.com/rss/oddlyenough|<br />
maximum::5|popup::no|filter::curtain,small table,door|title::no--&gt;</code></strong> will display a maximum of 5 RSS entries where the links open in the same window, where the entries having &#8220;curtain&#8221;, &#8220;small table&#8221;, and &#8220;door&#8221; will not be shown, and where the title of the RSS will not be displayed. Note that there&#8217;s no special order when writing your options.</li>
</ul>
<p align="center"><strong><a href="http://www.genoc.net/wp-content/uploads/2007/07/wp-eter-rss.zip" title="Eter RSS">Download Eter RSS Now!</a></strong></p>
<p align="center">Check the demo at <a href="http://www.genoc.net/eter-rss-demo/">http://www.genoc.net/eter-rss-demo/</a></p>
<p>I would definitely appreciate your comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.genoc.net/eter-rss/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

