<?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>HowToBSD &#187; Development</title>
	<atom:link href="http://howtobsd.com/cat/development/feed" rel="self" type="application/rss+xml" />
	<link>http://howtobsd.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 11 Feb 2014 11:21:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>1030 &#8211; Got error -1 from storage engine</title>
		<link>http://howtobsd.com/development/1030-got-error-1-from-storage-engine.html</link>
		<comments>http://howtobsd.com/development/1030-got-error-1-from-storage-engine.html#comments</comments>
		<pubDate>Sun, 13 Nov 2011 23:39:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[problems & solutions]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=524</guid>
		<description><![CDATA[I am using on one project InnoDB type of tables. There is very important have actual data. So I am actively using foreign keys for tables linking. And once I came across problem when tried to delete from table (`group`) which linked by foreign key with another table (`subgroup`) which linked by foreign key with [...]]]></description>
				<content:encoded><![CDATA[<p>I am using on one project InnoDB type of tables. There is very important have actual data. So I am actively using foreign keys for tables linking. And once I came across problem when tried to delete from table (`group`) which linked by foreign key with another table (`subgroup`) which linked by foreign key with another table (`item`).<br />
This is error shown by phpmyadmin:<br />
<code>Error<br />
SQL query:<br />
DELETE FROM `fancypets`.`groups` WHERE `groups`.`group_id` =1<br />
MySQL said: Documentation<br />
#1030 - Got error -1 from storage engine </code></p>
<p>this error a got through mysql command line:</p>
<p><code>mysql> delete from groups where `group_id`=4;<br />
ERROR 1030 (HY000): Got error -1 from storage engine</code></p>
<p>It is mysql&#8217;s error log:</p>
<p><code>Cannot delete/update rows with cascading foreign key constraints that exceed max depth of 250</code><br />
If you use 5.1.51- Just update your mysql-server version.<br />
This is bug of mysql-server-5.1.51 &#8211; after:<br />
<code>#portupgrade mysql-server</code></p>
<p>problem disappeared.</p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/development/1030-got-error-1-from-storage-engine.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Batch convert files using iconv</title>
		<link>http://howtobsd.com/development/batch-convert-files-using-iconv.html</link>
		<comments>http://howtobsd.com/development/batch-convert-files-using-iconv.html#comments</comments>
		<pubDate>Sat, 10 Sep 2011 20:47:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=429</guid>
		<description><![CDATA[Converting file from KOI8-R to utf-8: #iconv -f KOI8-R -t utf-8 originalfile > newfile You can change KOIR-8 and utf-8 to yours. Batch converting files from folder: #mkdir new; for a in $(find . -name "*.php"); do iconv -f KOI8-R -t utf-8 &#60;"$a" &#62;new/"$a" ; done It will make &#8220;new&#8221; directory with converted files.]]></description>
				<content:encoded><![CDATA[<p>Converting  file from KOI8-R to utf-8:<br />
<code>#iconv -f KOI8-R -t utf-8 originalfile > newfile</code><br />
You can change KOIR-8 and utf-8 to yours. </p>
<p><strong>Batch converting files from folder</strong>:</p>
<p><code>#mkdir new; for a in $(find . -name "*.php");  do iconv  -f KOI8-R -t utf-8 &lt;"$a" &gt;new/"$a" ; done</code></p>
<p>It will make &#8220;new&#8221; directory with converted files.</p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/development/batch-convert-files-using-iconv.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysqldump on FreeBSD</title>
		<link>http://howtobsd.com/software/mysqldump-on-freebsd.html</link>
		<comments>http://howtobsd.com/software/mysqldump-on-freebsd.html#comments</comments>
		<pubDate>Tue, 05 Jul 2011 16:32:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=400</guid>
		<description><![CDATA[Just a few notes about mysqldump. Create dump of mysql base: # mysqldump -uDBUSER -pPASSWORD DBNAME > filename.sql or # mysqldump --user=username --password=password DBNAME > filename.sql if you need to make dump of a few databases you can use parametr -B (or –databases): mysqldump -uDBUSER -pPASSWORD -B DBNAME1 DBNAME2 > filename.sql Make dump of the [...]]]></description>
				<content:encoded><![CDATA[<p>Just a few notes about mysqldump. </p>
<p>Create dump of mysql base:</p>
<p><code># mysqldump -uDBUSER -pPASSWORD DBNAME > filename.sql</code></p>
<p>or<br />
<code># mysqldump --user=username --password=password DBNAME > filename.sql</code> </p>
<p>if you need to make dump of a few databases you can use parametr -B (or –databases):</p>
<p><code>mysqldump -uDBUSER -pPASSWORD -B DBNAME1 DBNAME2  > filename.sql</code></p>
<p>Make dump of the all Databases on host:<br />
<code>mysqldump -uDBUSER -pPASSWORD -A  > filename.sql</code></p>
<p>If you need only dump structure of database (without data):</p>
<p><code>mysqldump -uDBUSER -pPASSWORD --no-data DBNAME > filename.sql</code></p>
<p>If you want to make limited by records mysqldump, next command especially for you (It was really cool command when I need dump and then move test copy of project with enormous mysql database):</p>
<p><code> mysqldump -uDBUSER  -pPASSWORD --where="true limit 100" DBNAME > filename.sql  </code></p>
<p>this command will dump your database with defined amount records in each table. </p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/software/mysqldump-on-freebsd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perl: Premature end of script headers</title>
		<link>http://howtobsd.com/development/perl-premature-end-of-script-headers.html</link>
		<comments>http://howtobsd.com/development/perl-premature-end-of-script-headers.html#comments</comments>
		<pubDate>Wed, 29 Jun 2011 12:52:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[problems & solutions]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=391</guid>
		<description><![CDATA[Internal Server Error 500 This error appeared when I tried run IPN script for paypal. httpd-error logs: Perl: Premature end of script headers A long time I have tried to fix it by sending headers like: print "Content-type: text/plain\n\n"; но безуспешно. The problem was just in DOS newline format. Just need change format from DOS/WIN [...]]]></description>
				<content:encoded><![CDATA[<p>Internal Server Error 500<br />
This error appeared when I tried run IPN script for paypal.<br />
httpd-error logs:</p>
<p><code>Perl: Premature end of script headers </code></p>
<p>A long time I have tried to fix it by sending headers like:</p>
<p><code>print "Content-type: text/plain\n\n";</code> но безуспешно.</p>
<p>The problem was just  in DOS newline format.  Just need change format from DOS/WIN (CR/LF) to Unix (LF). </p>
<p>I hope it will help somebody else.</p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/development/perl-premature-end-of-script-headers.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
