<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>segfault.in</title>
	
	<link>http://segfault.in</link>
	<description>core dumped</description>
	<lastBuildDate>Thu, 02 Sep 2010 10:59:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/segfaultblog" /><feedburner:info uri="segfaultblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>segfaultblog</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>How to set CPU affinity for a process in FreeBSD</title>
		<link>http://feedproxy.google.com/~r/segfaultblog/~3/2JRDyxdITio/</link>
		<comments>http://segfault.in/2010/09/how-to-set-cpu-affinity-for-a-process-in-freebsd/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 10:59:06 +0000</pubDate>
		<dc:creator>segfault</dc:creator>
				<category><![CDATA[FREEBSD]]></category>
		<category><![CDATA[HOW-TOS]]></category>
		<category><![CDATA[affinity]]></category>
		<category><![CDATA[cpu]]></category>
		<category><![CDATA[process]]></category>

		<guid isPermaLink="false">http://segfault.in/?p=1191</guid>
		
		<wfw:commentRss>http://segfault.in/2010/09/how-to-set-cpu-affinity-for-a-process-in-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<description>Processor affinity means, on a multi-CPU machine, the process(es)run only on  dedicated set of CPUs.  In other words processes are bound to isolated (subset) of the CPUs. This feature can be usedduring performance benchmarking, and also while deploying an application.
To get the CPU model and...
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/U1BxydTOW19pYNQRNf5gJ611OKk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/U1BxydTOW19pYNQRNf5gJ611OKk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/U1BxydTOW19pYNQRNf5gJ611OKk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/U1BxydTOW19pYNQRNf5gJ611OKk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/segfaultblog/~4/2JRDyxdITio" height="1" width="1"/&gt;</description><feedburner:origLink>http://segfault.in/2010/09/how-to-set-cpu-affinity-for-a-process-in-freebsd/</feedburner:origLink></item>
		<item>
		<title>Data Compression and Archiving Using Python</title>
		<link>http://feedproxy.google.com/~r/segfaultblog/~3/pC6zRaZcPas/</link>
		<comments>http://segfault.in/2010/08/data-compression-and-archiving-using-python/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 19:09:25 +0000</pubDate>
		<dc:creator>segfault</dc:creator>
				<category><![CDATA[PYTHON]]></category>
		<category><![CDATA[archives]]></category>
		<category><![CDATA[bzip]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[tar]]></category>

		<guid isPermaLink="false">http://segfault.in/?p=1180</guid>
		
		<wfw:commentRss>http://segfault.in/2010/08/data-compression-and-archiving-using-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<description>bzip2 compression
bzip2 is a freely available, patent free (see below), high-quality data compressor. It typically compresses files to within 10% to 15% of the best available techniques (the PPM family of statistical compressors), whilst being around twice as fast at compression and six times...
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/TwX373arUTgAxFnXuBCKVMuCMNc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/TwX373arUTgAxFnXuBCKVMuCMNc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/TwX373arUTgAxFnXuBCKVMuCMNc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/TwX373arUTgAxFnXuBCKVMuCMNc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/segfaultblog/~4/pC6zRaZcPas" height="1" width="1"/&gt;</description><feedburner:origLink>http://segfault.in/2010/08/data-compression-and-archiving-using-python/</feedburner:origLink></item>
		<item>
		<title>Playing With Python And Gmail – Part 2</title>
		<link>http://feedproxy.google.com/~r/segfaultblog/~3/NwPfioK5_sY/</link>
		<comments>http://segfault.in/2010/08/playing-with-python-and-gmail-part-2/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 09:25:29 +0000</pubDate>
		<dc:creator>segfault</dc:creator>
				<category><![CDATA[PYTHON]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[imaplib]]></category>

		<guid isPermaLink="false">http://segfault.in/?p=1128</guid>
		
		<wfw:commentRss>http://segfault.in/2010/08/playing-with-python-and-gmail-part-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<description>This is the second part of the article series &amp;#8216;Playing With Python And Gmail&amp;#8217;. If you didn&amp;#8217;t read the first part I would recomend you to read it.
This time we will see how to fetch mails from Gmail using Python.
Reading Mails
The IMAP4.fetch method fetch (parts of) messages....
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/qQnWkklVYhm_gAq3nVUtAEZAq_4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/qQnWkklVYhm_gAq3nVUtAEZAq_4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/qQnWkklVYhm_gAq3nVUtAEZAq_4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/qQnWkklVYhm_gAq3nVUtAEZAq_4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/segfaultblog/~4/NwPfioK5_sY" height="1" width="1"/&gt;</description><feedburner:origLink>http://segfault.in/2010/08/playing-with-python-and-gmail-part-2/</feedburner:origLink></item>
		<item>
		<title>Playing With Python And Gmail – Part 1</title>
		<link>http://feedproxy.google.com/~r/segfaultblog/~3/4df35xO2x0E/</link>
		<comments>http://segfault.in/2010/07/playing-with-python-and-gmail-part-1/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 11:05:04 +0000</pubDate>
		<dc:creator>segfault</dc:creator>
				<category><![CDATA[PYTHON]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[ilb]]></category>

		<guid isPermaLink="false">http://segfault.in/?p=1050</guid>
		
		<wfw:commentRss>http://segfault.in/2010/07/playing-with-python-and-gmail-part-1/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<description>In addition to its web interface Google also provides access via IMAP. The python imaplib module defines three classes, IMAP4, IMAP4_SSL and IMAP4_stream, which encapsulate a connection to an IMAP4 server and implement a large subset of the IMAP4rev1 client protocol as defined in RFC 2060.
The...
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/z_scLHdbxGisxtDNctNaV2XsbfI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/z_scLHdbxGisxtDNctNaV2XsbfI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/z_scLHdbxGisxtDNctNaV2XsbfI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/z_scLHdbxGisxtDNctNaV2XsbfI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/segfaultblog/~4/4df35xO2x0E" height="1" width="1"/&gt;</description><feedburner:origLink>http://segfault.in/2010/07/playing-with-python-and-gmail-part-1/</feedburner:origLink></item>
		<item>
		<title>FreeBSD Get CPU &amp; Memory Information</title>
		<link>http://feedproxy.google.com/~r/segfaultblog/~3/1JNzJ3_ddNg/</link>
		<comments>http://segfault.in/2010/07/freebsd-get-cpu-memory-information/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 13:50:29 +0000</pubDate>
		<dc:creator>segfault</dc:creator>
				<category><![CDATA[FREEBSD]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[cpu]]></category>
		<category><![CDATA[memory]]></category>

		<guid isPermaLink="false">http://segfault.in/?p=1014</guid>
		
		<wfw:commentRss>http://segfault.in/2010/07/freebsd-get-cpu-memory-information/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<description>To get information about CPU and Memory under FreeBSD use the following commands:
Getting CPU information:
From dmesg:

$ dmesg &amp;#124; grep CPU

Or

$ grep CPU /var/run/dmesg.boot &amp;#124; less

Using sysctl:
CPU model:

$ sysctl hw.model

CPU clock rate:

$ sysctl hw.clockrate

No of cpus:

$ sysctl...
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ulT4tZEgr9dlq68jlruW5m-k-jU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ulT4tZEgr9dlq68jlruW5m-k-jU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ulT4tZEgr9dlq68jlruW5m-k-jU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ulT4tZEgr9dlq68jlruW5m-k-jU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/segfaultblog/~4/1JNzJ3_ddNg" height="1" width="1"/&gt;</description><feedburner:origLink>http://segfault.in/2010/07/freebsd-get-cpu-memory-information/</feedburner:origLink></item>
		<item>
		<title>Catch Invisible Friends On GTalk The Python Way</title>
		<link>http://feedproxy.google.com/~r/segfaultblog/~3/m8mEbhONPsw/</link>
		<comments>http://segfault.in/2010/07/reveal-invisible-mode-friends-in-your-gtalk-buddy-list/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 14:21:26 +0000</pubDate>
		<dc:creator>segfault</dc:creator>
				<category><![CDATA[PROGRAMMING]]></category>
		<category><![CDATA[PYTHON]]></category>
		<category><![CDATA[chat]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[gtalk]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://segfault.in/?p=979</guid>
		
		<wfw:commentRss>http://segfault.in/2010/07/reveal-invisible-mode-friends-in-your-gtalk-buddy-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<description>Ever wanted to know that someone is really offline or has just gone invisible in GTalk? Here is a small trick. The bellow peace of python code get the list of invisible users from your GTalk buddy list. It uses XMPP module for python. You can install this module in Ubuntu/Debian via apt. It also...
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/AxNgqMiOTuFtj3DkFDf-ElH0A4I/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/AxNgqMiOTuFtj3DkFDf-ElH0A4I/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/AxNgqMiOTuFtj3DkFDf-ElH0A4I/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/AxNgqMiOTuFtj3DkFDf-ElH0A4I/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/segfaultblog/~4/m8mEbhONPsw" height="1" width="1"/&gt;</description><feedburner:origLink>http://segfault.in/2010/07/reveal-invisible-mode-friends-in-your-gtalk-buddy-list/</feedburner:origLink></item>
		<item>
		<title>Check Your IMAP Quota Using Python Imaplib</title>
		<link>http://feedproxy.google.com/~r/segfaultblog/~3/oWUYnmIXtbY/</link>
		<comments>http://segfault.in/2010/07/check-your-imap-quota-using-python-imaplib/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 12:35:18 +0000</pubDate>
		<dc:creator>segfault</dc:creator>
				<category><![CDATA[PROGRAMMING]]></category>
		<category><![CDATA[PYTHON]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[imaplib]]></category>

		<guid isPermaLink="false">http://segfault.in/?p=964</guid>
		
		<wfw:commentRss>http://segfault.in/2010/07/check-your-imap-quota-using-python-imaplib/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<description>The python-imaplib module defines three classes, IMAP4, IMAP4_SSL and IMAP4_stream, which encapsulate a connection to an IMAP4 server and implement a large subset of the IMAP4rev1 client protocol as defined in RFC 2060.
Here&amp;#8217;s a code sample that returns your gmail quota details.

import...
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/M5PvwpRRRhx5crPQU9oXSPhoG_4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/M5PvwpRRRhx5crPQU9oXSPhoG_4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/M5PvwpRRRhx5crPQU9oXSPhoG_4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/M5PvwpRRRhx5crPQU9oXSPhoG_4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/segfaultblog/~4/oWUYnmIXtbY" height="1" width="1"/&gt;</description><feedburner:origLink>http://segfault.in/2010/07/check-your-imap-quota-using-python-imaplib/</feedburner:origLink></item>
		<item>
		<title>Parsing HTML table in Python with BeautifulSoup</title>
		<link>http://feedproxy.google.com/~r/segfaultblog/~3/iELjxqLbKMg/</link>
		<comments>http://segfault.in/2010/07/parsing-html-table-in-python-with-beautifulsoup/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 07:16:24 +0000</pubDate>
		<dc:creator>segfault</dc:creator>
				<category><![CDATA[PROGRAMMING]]></category>
		<category><![CDATA[PYTHON]]></category>
		<category><![CDATA[beautifulsoup]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[parsing]]></category>

		<guid isPermaLink="false">http://segfault.in/?p=950</guid>
		
		<wfw:commentRss>http://segfault.in/2010/07/parsing-html-table-in-python-with-beautifulsoup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<description>Beautiful Soup is an HTML/XML parser for Python that can turn even invalid markup into a parse tree. It provides simple, idiomatic ways of navigating, searching, and modifying the parse tree.
Here&amp;#8217;s some code demonstrating how to extract data from HTML tables using Beautiful Soup.
Include...
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/OJx1OCWzv5PTEVkk1JCSYQrX9Og/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/OJx1OCWzv5PTEVkk1JCSYQrX9Og/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/OJx1OCWzv5PTEVkk1JCSYQrX9Og/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/OJx1OCWzv5PTEVkk1JCSYQrX9Og/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/segfaultblog/~4/iELjxqLbKMg" height="1" width="1"/&gt;</description><feedburner:origLink>http://segfault.in/2010/07/parsing-html-table-in-python-with-beautifulsoup/</feedburner:origLink></item>
		<item>
		<title>PDF Manipulations And Conversions From Linux Command Prompt</title>
		<link>http://feedproxy.google.com/~r/segfaultblog/~3/rKqRT0VpXgI/</link>
		<comments>http://segfault.in/2010/07/pdf-manipulations-and-conversions-from-linux-command-prompt/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 15:38:06 +0000</pubDate>
		<dc:creator>segfault</dc:creator>
				<category><![CDATA[HOW-TOS]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://segfault.in/?p=357</guid>
		
		<wfw:commentRss>http://segfault.in/2010/07/pdf-manipulations-and-conversions-from-linux-command-prompt/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<description>If PDF is electronic paper, then pdftk is an electronic staple-remover, hole-punch, binder, secret-decoder-ring, and  X-Ray-glasses.  Pdftk is a simple tool for doing everyday things with PDF documents. Pdftk allows you to manipulate PDF easily and freely. It does not require Acrobat, and it runs...
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ckYZ1aAWaQqfM4qjg6Qv3YIKR_g/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ckYZ1aAWaQqfM4qjg6Qv3YIKR_g/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ckYZ1aAWaQqfM4qjg6Qv3YIKR_g/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ckYZ1aAWaQqfM4qjg6Qv3YIKR_g/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/segfaultblog/~4/rKqRT0VpXgI" height="1" width="1"/&gt;</description><feedburner:origLink>http://segfault.in/2010/07/pdf-manipulations-and-conversions-from-linux-command-prompt/</feedburner:origLink></item>
		<item>
		<title>Recording and copying system configuration in Debian/Ubuntu</title>
		<link>http://feedproxy.google.com/~r/segfaultblog/~3/20XxnkZapVA/</link>
		<comments>http://segfault.in/2010/07/recording-and-copying-system-configuration-in-debian-ubuntu/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 13:33:46 +0000</pubDate>
		<dc:creator>segfault</dc:creator>
				<category><![CDATA[DEBIAN/UBUNTU]]></category>
		<category><![CDATA[HOW-TOS]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[debconf]]></category>

		<guid isPermaLink="false">http://segfault.in/?p=881</guid>
		
		<wfw:commentRss>http://segfault.in/2010/07/recording-and-copying-system-configuration-in-debian-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<description>You can make a local copy of the package and debconf selection states using dpkg and debconf-get-selections command. The debconf-get-selections command output the content of current debconf database.
You will require the &amp;#8220;debconf-utils&amp;#8221; packages to do that.
Install debconf-utils:

$...
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/U7Hwus0Cpw4ie-5x0hPIlYkJSHw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/U7Hwus0Cpw4ie-5x0hPIlYkJSHw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/U7Hwus0Cpw4ie-5x0hPIlYkJSHw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/U7Hwus0Cpw4ie-5x0hPIlYkJSHw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/segfaultblog/~4/20XxnkZapVA" height="1" width="1"/&gt;</description><feedburner:origLink>http://segfault.in/2010/07/recording-and-copying-system-configuration-in-debian-ubuntu/</feedburner:origLink></item>
	</channel>
</rss>
