<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments for Autarchy of the Private Cave</title> <atom:link href="http://bogdan.org.ua/comments/feed" rel="self" type="application/rss+xml" /><link>http://bogdan.org.ua</link> <description>Tiny bits of bioinformatics, [web-]programming etc</description> <lastBuildDate>Sat, 19 May 2012 15:27:39 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>Comment on My blog is now no-www Class B by Kris Clouser</title><link>http://bogdan.org.ua/2007/03/23/my-blog-is-now-no-www-class-b.html#comment-140410</link> <dc:creator>Kris Clouser</dc:creator> <pubDate>Sat, 19 May 2012 15:27:39 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2007/03/23/my-blog-is-now-no-www-class-b.html#comment-140410</guid> <description>Thx for information.</description> <content:encoded><![CDATA[<p>Thx for information.</p> ]]></content:encoded> </item> <item><title>Comment on How to truncate git history (sample script included) by Sean Flanigan</title><link>http://bogdan.org.ua/2011/03/28/how-to-truncate-git-history-sample-script-included.html#comment-140080</link> <dc:creator>Sean Flanigan</dc:creator> <pubDate>Fri, 04 May 2012 05:30:18 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=1481#comment-140080</guid> <description>Thanks for the script!
Git 1.7.1 doesn&#039;t support &quot;checkout --orphan&quot;, so I found I had to replace
git checkout --orphan temp $1
with
git checkout $1
git symbolic-ref HEAD refs/heads/temp
which may or may not be correct, but it /seems/ to work.</description> <content:encoded><![CDATA[<p>Thanks for the script!</p><p>Git 1.7.1 doesn&#8217;t support &#8220;checkout &#8211;orphan&#8221;, so I found I had to replace<br
/> git checkout &#8211;orphan temp $1<br
/> with<br
/> git checkout $1<br
/> git symbolic-ref HEAD refs/heads/temp</p><p>which may or may not be correct, but it /seems/ to work.</p> ]]></content:encoded> </item> <item><title>Comment on gitosis: how to add new repository by Bogdan</title><link>http://bogdan.org.ua/2009/02/20/gitosis-how-to-add-new-repository.html#comment-140068</link> <dc:creator>Bogdan</dc:creator> <pubDate>Tue, 01 May 2012 14:38:36 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=606#comment-140068</guid> <description>Right, this is what I&#039;ve used in half of the commands. Should have probably used in all commands, but &#039;;&#039; is one symbol faster to type than &#039;&amp;&amp;&#039; :) Still a valid point, thanks.</description> <content:encoded><![CDATA[<p>Right, this is what I&#8217;ve used in half of the commands. Should have probably used in all commands, but &#8216;;&#8217; is one symbol faster to type than &#8216;&#038;&#038;&#8217; <img
src='http://bogdan.org.ua/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Still a valid point, thanks.</p> ]]></content:encoded> </item> <item><title>Comment on gitosis: how to add new repository by Damian</title><link>http://bogdan.org.ua/2009/02/20/gitosis-how-to-add-new-repository.html#comment-140060</link> <dc:creator>Damian</dc:creator> <pubDate>Mon, 30 Apr 2012 20:20:39 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=606#comment-140060</guid> <description>To concatenate commands and avoid possible mistakes replace ; with &amp;&amp;
Thanks!</description> <content:encoded><![CDATA[<p>To concatenate commands and avoid possible mistakes replace ; with &amp;&amp;</p><p>Thanks!</p> ]]></content:encoded> </item> <item><title>Comment on How to remotely convert live 1xHDD/LVM Linux server to 2xHDD RAID1/LVM (GRUB2, GPT) by Naresh V</title><link>http://bogdan.org.ua/2011/05/17/how-to-remotely-convert-live-hdd-lvm-linux-server-to-raid1-grub2-gpt.html#comment-140057</link> <dc:creator>Naresh V</dc:creator> <pubDate>Mon, 30 Apr 2012 10:58:18 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=1593#comment-140057</guid> <description>Very impressed with what pvmove does. The whole LVM2 + MDRAID stack impressed me after I followed your guide.
Thanks!</description> <content:encoded><![CDATA[<p>Very impressed with what pvmove does. The whole LVM2 + MDRAID stack impressed me after I followed your guide.</p><p>Thanks!</p> ]]></content:encoded> </item> <item><title>Comment on Python: iterate (and read) all files in a directory (folder) by Pim</title><link>http://bogdan.org.ua/2007/08/12/python-iterate-and-read-all-files-in-a-directory-folder.html#comment-140010</link> <dc:creator>Pim</dc:creator> <pubDate>Tue, 24 Apr 2012 06:52:18 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/2007/08/12/python-iterate-and-read-all-files-in-a-directory-folder.html#comment-140010</guid> <description>@adam
This should work:
if filename[0] == &#039;.&#039;: # if the first character is a dot
continue           # skip the file</description> <content:encoded><![CDATA[<p>@adam</p><p>This should work:</p><p>if filename[0] == &#8216;.&#8217;: # if the first character is a dot<br
/> continue           # skip the file</p> ]]></content:encoded> </item> <item><title>Comment on gitosis: how to add new repository by 將目前的 git 專案放到遠端主機上 &#171; 傑克達與瑞兒絲的大小事</title><link>http://bogdan.org.ua/2009/02/20/gitosis-how-to-add-new-repository.html#comment-139966</link> <dc:creator>將目前的 git 專案放到遠端主機上 &#171; 傑克達與瑞兒絲的大小事</dc:creator> <pubDate>Wed, 18 Apr 2012 08:29:07 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=606#comment-139966</guid> <description>[...] 注意： 這項操作需要先在 git server 的 gitosis 裏正確設定存取權限，不然一定會出現 access denied 而無法正確將本地端資料放到遠端，可參考這篇說明 [...]</description> <content:encoded><![CDATA[<p>[...] 注意： 這項操作需要先在 git server 的 gitosis 裏正確設定存取權限，不然一定會出現 access denied 而無法正確將本地端資料放到遠端，可參考這篇說明 [...]</p> ]]></content:encoded> </item> <item><title>Comment on Python: iterate (and read) all files in a directory (folder) by VS</title><link>http://bogdan.org.ua/2007/08/12/python-iterate-and-read-all-files-in-a-directory-folder.html#comment-139951</link> <dc:creator>VS</dc:creator> <pubDate>Mon, 16 Apr 2012 11:51:56 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/2007/08/12/python-iterate-and-read-all-files-in-a-directory-folder.html#comment-139951</guid> <description>Hey i want to change the file path dynamically. Eg: &quot;/cygdrive/d/Python_Study/Snehal/xyz/1.xml&quot;
here xyz may be anything like default, config etc.. i want to read this path depending on xyz value. How can i do that???</description> <content:encoded><![CDATA[<p>Hey i want to change the file path dynamically. Eg: &#8220;/cygdrive/d/Python_Study/Snehal/xyz/1.xml&#8221;<br
/> here xyz may be anything like default, config etc.. i want to read this path depending on xyz value. How can i do that???</p> ]]></content:encoded> </item> <item><title>Comment on How to fix &#8220;MySQL server has gone away&#8221; (error 2006) by André</title><link>http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html#comment-139764</link> <dc:creator>André</dc:creator> <pubDate>Thu, 12 Apr 2012 05:02:14 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=464#comment-139764</guid> <description>Very much cool this tip!!
It works so good to me!!
Thanks so much!!!</description> <content:encoded><![CDATA[<p>Very much cool this tip!!<br
/> It works so good to me!!<br
/> Thanks so much!!!</p> ]]></content:encoded> </item> <item><title>Comment on Python: iterate (and read) all files in a directory (folder) by Bogdan</title><link>http://bogdan.org.ua/2007/08/12/python-iterate-and-read-all-files-in-a-directory-folder.html#comment-139760</link> <dc:creator>Bogdan</dc:creator> <pubDate>Wed, 11 Apr 2012 21:40:23 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/2007/08/12/python-iterate-and-read-all-files-in-a-directory-folder.html#comment-139760</guid> <description>I guess fdupes could be compiled/run in cygwin.
There are tons of similar programs for windows, and some are even good enough, but I&#039;m not up-to-date on that software - so cannot advise.
You could write the required python script by, e.g., first creating two dicts of {filename: filesize}, and then comparing them to find identical filesizes (and yield the two filenames). This is a suboptimal approach, but that probably doesn&#039;t matter for low numbers of files; for higher numbers, you would want a different approach. (One more suboptimal idea, but slightly better, would be to populate the 1st dict with {size:name}, and then iterate over the files in the 2nd dir, checking for &quot;size in dict&quot;.)</description> <content:encoded><![CDATA[<p>I guess fdupes could be compiled/run in cygwin.</p><p>There are tons of similar programs for windows, and some are even good enough, but I&#8217;m not up-to-date on that software &#8211; so cannot advise.</p><p>You could write the required python script by, e.g., first creating two dicts of {filename: filesize}, and then comparing them to find identical filesizes (and yield the two filenames). This is a suboptimal approach, but that probably doesn&#8217;t matter for low numbers of files; for higher numbers, you would want a different approach. (One more suboptimal idea, but slightly better, would be to populate the 1st dict with {size:name}, and then iterate over the files in the 2nd dir, checking for &#8220;size in dict&#8221;.)</p> ]]></content:encoded> </item> <item><title>Comment on Python: iterate (and read) all files in a directory (folder) by Paal</title><link>http://bogdan.org.ua/2007/08/12/python-iterate-and-read-all-files-in-a-directory-folder.html#comment-139758</link> <dc:creator>Paal</dc:creator> <pubDate>Wed, 11 Apr 2012 11:41:59 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/2007/08/12/python-iterate-and-read-all-files-in-a-directory-folder.html#comment-139758</guid> <description>@Bogdan, Yeah, but I&#039;m on a windows platform at work. Know of any similar program for windows? Or a python script</description> <content:encoded><![CDATA[<p>@Bogdan, Yeah, but I&#8217;m on a windows platform at work. Know of any similar program for windows? Or a python script</p> ]]></content:encoded> </item> <item><title>Comment on Python: iterate (and read) all files in a directory (folder) by Bogdan</title><link>http://bogdan.org.ua/2007/08/12/python-iterate-and-read-all-files-in-a-directory-folder.html#comment-139750</link> <dc:creator>Bogdan</dc:creator> <pubDate>Tue, 10 Apr 2012 18:00:07 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/2007/08/12/python-iterate-and-read-all-files-in-a-directory-folder.html#comment-139750</guid> <description>@Vaishu, you could wrap the conversion to float() into a try..except block, and thus separate purely-numeric values from alphanumeric.
@Paal, you could use a program like &#039;fdupes&#039;, which does exactly what you want - de-duplicates the contents of two arbitrary directories.</description> <content:encoded><![CDATA[<p>@Vaishu, you could wrap the conversion to float() into a try..except block, and thus separate purely-numeric values from alphanumeric.</p><p>@Paal, you could use a program like &#8216;fdupes&#8217;, which does exactly what you want &#8211; de-duplicates the contents of two arbitrary directories.</p> ]]></content:encoded> </item> <item><title>Comment on Python: iterate (and read) all files in a directory (folder) by Paal</title><link>http://bogdan.org.ua/2007/08/12/python-iterate-and-read-all-files-in-a-directory-folder.html#comment-139748</link> <dc:creator>Paal</dc:creator> <pubDate>Tue, 10 Apr 2012 13:08:21 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/2007/08/12/python-iterate-and-read-all-files-in-a-directory-folder.html#comment-139748</guid> <description>Hey, I&#039;m having a different problem.
I have two or more folders with lots of files in them. Both folders contain some files that are exactly the same, but the files have different names. I want to use a python script to matches files in these two folders by size. Cause When the size of the file is the same, I think it&#039;s a high enough possibillity that the files are the same.
The best script would merge these to folders together and delete duplicates, based on name or size, or name and size.
Anyone who know how to write one of these scripts?
That would be really helpfull!
sorry bout my bad english.</description> <content:encoded><![CDATA[<p>Hey, I&#8217;m having a different problem.<br
/> I have two or more folders with lots of files in them. Both folders contain some files that are exactly the same, but the files have different names. I want to use a python script to matches files in these two folders by size. Cause When the size of the file is the same, I think it&#8217;s a high enough possibillity that the files are the same.<br
/> The best script would merge these to folders together and delete duplicates, based on name or size, or name and size.</p><p>Anyone who know how to write one of these scripts?</p><p>That would be really helpfull!</p><p>sorry bout my bad english.</p> ]]></content:encoded> </item> <item><title>Comment on Python: iterate (and read) all files in a directory (folder) by vaishu</title><link>http://bogdan.org.ua/2007/08/12/python-iterate-and-read-all-files-in-a-directory-folder.html#comment-139716</link> <dc:creator>vaishu</dc:creator> <pubDate>Wed, 04 Apr 2012 11:29:08 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/2007/08/12/python-iterate-and-read-all-files-in-a-directory-folder.html#comment-139716</guid> <description>sorry,
contents of seq.txt is
9.45
9SEQ
6.346
4CGF
2.5632
3RES
8.1452
2HAB
and i want results of only floating points,
i.e)
2.5632
6.346
8.1452
9.45</description> <content:encoded><![CDATA[<p>sorry,<br
/> contents of seq.txt is<br
/> 9.45<br
/> 9SEQ<br
/> 6.346<br
/> 4CGF<br
/> 2.5632<br
/> 3RES<br
/> 8.1452<br
/> 2HAB<br
/> and i want results of only floating points,<br
/> i.e)<br
/> 2.5632<br
/> 6.346<br
/> 8.1452<br
/> 9.45</p> ]]></content:encoded> </item> <item><title>Comment on Python: iterate (and read) all files in a directory (folder) by vaishu</title><link>http://bogdan.org.ua/2007/08/12/python-iterate-and-read-all-files-in-a-directory-folder.html#comment-139701</link> <dc:creator>vaishu</dc:creator> <pubDate>Mon, 02 Apr 2012 06:13:10 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/2007/08/12/python-iterate-and-read-all-files-in-a-directory-folder.html#comment-139701</guid> <description>hELLO,
Python Comments used for arranging floating points in ascending order
For ex..,
In Drive=C:/ Folder=r Textfile=seq.txt
Contents of seq.txt=
9.45
6.346
2.5632
8.1452
My aim is i want result as
2.5632
6.346
8.1452
9.45
what python code should be used for such type of process</description> <content:encoded><![CDATA[<p>hELLO,<br
/> Python Comments used for arranging floating points in ascending order<br
/> For ex..,<br
/> In Drive=C:/ Folder=r Textfile=seq.txt<br
/> Contents of seq.txt=<br
/> 9.45<br
/> 6.346<br
/> 2.5632<br
/> 8.1452<br
/> My aim is i want result as<br
/> 2.5632<br
/> 6.346<br
/> 8.1452<br
/> 9.45<br
/> what python code should be used for such type of process</p> ]]></content:encoded> </item> <item><title>Comment on How to fix &#8220;MySQL server has gone away&#8221; (error 2006) by Bogdan</title><link>http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html#comment-139657</link> <dc:creator>Bogdan</dc:creator> <pubDate>Fri, 30 Mar 2012 22:11:35 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=464#comment-139657</guid> <description>@Badera, did you restart the MySQL server after changing configuration?
Also, just before attempting the import, try
&lt;blockquote&gt;set session max_allowed_packet=128000000;&lt;/blockquote&gt;
from within the mysql-client session (or just add this statement at the very top of the SQL file you are importing). I have no idea if this statement still works in current versions of MySQL - please post if it does [not].</description> <content:encoded><![CDATA[<p>@Badera, did you restart the MySQL server after changing configuration?</p><p>Also, just before attempting the import, try</p><blockquote><p>set session max_allowed_packet=128000000;</p></blockquote><p>from within the mysql-client session (or just add this statement at the very top of the SQL file you are importing). I have no idea if this statement still works in current versions of MySQL &#8211; please post if it does [not].</p> ]]></content:encoded> </item> <item><title>Comment on How to fix &#8220;MySQL server has gone away&#8221; (error 2006) by badera</title><link>http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html#comment-139649</link> <dc:creator>badera</dc:creator> <pubDate>Fri, 30 Mar 2012 10:36:16 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=464#comment-139649</guid> <description>-.-
It IS definitely Error 2006 (HY000).</description> <content:encoded><![CDATA[<p>-.-<br
/> It IS definitely Error 2006 (HY000).</p> ]]></content:encoded> </item> <item><title>Comment on How to fix &#8220;MySQL server has gone away&#8221; (error 2006) by SKS</title><link>http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html#comment-139616</link> <dc:creator>SKS</dc:creator> <pubDate>Wed, 28 Mar 2012 08:54:12 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=464#comment-139616</guid> <description>Hi Guys,
When i try reconnecting after 5mins sleep/idle to mysql db from remote host it&#039;s lossing it connection with the following error.
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id: 19068867
Current database: *** NONE ***</description> <content:encoded><![CDATA[<p>Hi Guys,</p><p>When i try reconnecting after 5mins sleep/idle to mysql db from remote host it&#8217;s lossing it connection with the following error.</p><p>ERROR 2006 (HY000): MySQL server has gone away<br
/> No connection. Trying to reconnect&#8230;<br
/> Connection id: 19068867<br
/> Current database: *** NONE ***</p> ]]></content:encoded> </item> <item><title>Comment on Python: iterate (and read) all files in a directory (folder) by vaishu</title><link>http://bogdan.org.ua/2007/08/12/python-iterate-and-read-all-files-in-a-directory-folder.html#comment-139558</link> <dc:creator>vaishu</dc:creator> <pubDate>Mon, 26 Mar 2012 04:48:32 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/2007/08/12/python-iterate-and-read-all-files-in-a-directory-folder.html#comment-139558</guid> <description>Hello sir,
Thank you very much to Bogdan and Adam.</description> <content:encoded><![CDATA[<p>Hello sir,<br
/> Thank you very much to Bogdan and Adam.</p> ]]></content:encoded> </item> <item><title>Comment on Compiled linux ffmpeg binary for Gallery2: download by Bogdan</title><link>http://bogdan.org.ua/2007/06/28/compiled-linux-ffmpeg-binary-for-gallery2-download.html#comment-139551</link> <dc:creator>Bogdan</dc:creator> <pubDate>Sun, 25 Mar 2012 21:48:08 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/2007/06/28/compiled-linux-ffmpeg-binary-for-gallery2-download.html#comment-139551</guid> <description>@Adam, you probably need an approach similar to http://bogdan.org.ua/2008/03/12/instructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html (but for your library instead of libmp3lame).</description> <content:encoded><![CDATA[<p>@Adam, you probably need an approach similar to <a
href="http://bogdan.org.ua/2008/03/12/instructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html" rel="nofollow">http://bogdan.org.ua/2008/03/12/instructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html</a> (but for your library instead of libmp3lame).</p> ]]></content:encoded> </item> </channel> </rss>
