<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for Mondo Nefasto</title>
	<atom:link href="http://richizo.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://richizo.wordpress.com</link>
	<description>Just another gëëk weblog</description>
	<lastBuildDate>Wed, 01 Apr 2009 05:58:39 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Calling C functions inside Python by Marquish Doranga</title>
		<link>http://richizo.wordpress.com/2009/01/25/calling-c-functions-inside-python/#comment-44</link>
		<dc:creator>Marquish Doranga</dc:creator>
		<pubDate>Wed, 01 Apr 2009 05:58:39 +0000</pubDate>
		<guid isPermaLink="false">http://richizo.wordpress.com/?p=176#comment-44</guid>
		<description>Thanks, 
Great reference,
I picked some difficulties in testing it im my windows and Ubuntu.
Let me explain the problem and Solution to it too.

============**************==============
Error :
 gcc -shared sum.o -o sum.so
/usr/bin/ld: crti.o: No such file: No such file or directory
collect2: ld returned 1 exit status

Error :
cdll.LoadLibrary(&#039;sum.so&#039;)
Traceback (most recent call last):
  File &quot;&quot;, line 1, in 
  File &quot;ctypes/__init__.py&quot;, line 431, in LoadLibrary
  File &quot;ctypes/__init__.py&quot;, line 348, in __init__
OSError: sum.so: cannot open shared object file: No such file or directory
=======***************==========
Solution to those problems 
********==============*****************
For both OS
let&#039;s say myfunction.c
int area_rect(int length, int breadth)
{
 return length*breadth;
}

$ gcc -fPIC -c myfunction.c
$ gcc -shared myfunction.o -o myfunction.so
Note in Ubuntu i had error described in head, so i used
$ ld -shared myfunction.o -o myfunction.so
$ export LD_LIBRARY_PATH=$ # use it in ubuntu to describe the path
In windows, you can add the location in System variable path. Search in web, if you cannot.
Now use python
$python
&gt;&gt;&gt;from ctypes import *
&gt;&gt;&gt;cdll.LoadLibrary(&#039;myfunction.so&#039;)

&gt;&gt;&gt; libc = CDLL(&#039;myfunction.so&#039;)
&gt;&gt;&gt;libc.area_rect(12,34)
Got result ?

Good luck. You did it, enjoy
*************================***************</description>
		<content:encoded><![CDATA[<p>Thanks,<br />
Great reference,<br />
I picked some difficulties in testing it im my windows and Ubuntu.<br />
Let me explain the problem and Solution to it too.</p>
<p>============**************==============<br />
Error :<br />
 gcc -shared sum.o -o sum.so<br />
/usr/bin/ld: crti.o: No such file: No such file or directory<br />
collect2: ld returned 1 exit status</p>
<p>Error :<br />
cdll.LoadLibrary(&#8217;sum.so&#8217;)<br />
Traceback (most recent call last):<br />
  File &#8220;&#8221;, line 1, in<br />
  File &#8220;ctypes/__init__.py&#8221;, line 431, in LoadLibrary<br />
  File &#8220;ctypes/__init__.py&#8221;, line 348, in __init__<br />
OSError: sum.so: cannot open shared object file: No such file or directory<br />
=======***************==========<br />
Solution to those problems<br />
********==============*****************<br />
For both OS<br />
let&#8217;s say myfunction.c<br />
int area_rect(int length, int breadth)<br />
{<br />
 return length*breadth;<br />
}</p>
<p>$ gcc -fPIC -c myfunction.c<br />
$ gcc -shared myfunction.o -o myfunction.so<br />
Note in Ubuntu i had error described in head, so i used<br />
$ ld -shared myfunction.o -o myfunction.so<br />
$ export LD_LIBRARY_PATH=$ # use it in ubuntu to describe the path<br />
In windows, you can add the location in System variable path. Search in web, if you cannot.<br />
Now use python<br />
$python<br />
&gt;&gt;&gt;from ctypes import *<br />
&gt;&gt;&gt;cdll.LoadLibrary(&#8216;myfunction.so&#8217;)</p>
<p>&gt;&gt;&gt; libc = CDLL(&#8216;myfunction.so&#8217;)<br />
&gt;&gt;&gt;libc.area_rect(12,34)<br />
Got result ?</p>
<p>Good luck. You did it, enjoy<br />
*************================***************</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Boosting your Kernel on Gentoo by richizo</title>
		<link>http://richizo.wordpress.com/2009/03/03/boosting-your-kernel-on-gentoo/#comment-42</link>
		<dc:creator>richizo</dc:creator>
		<pubDate>Sun, 15 Mar 2009 23:16:30 +0000</pubDate>
		<guid isPermaLink="false">http://richizo.wordpress.com/?p=226#comment-42</guid>
		<description>Fala Facina!!! =P

A compilação é feita com o compilador ICC, que é da Intel.

Mas quando você compila com o gcc, as flags de compilação do kernel não são lidas do make.conf  =/

Porém, no meu sistema eu compilo com -O3 mesmo, embora, a otimização nem sempre aconteça e os binários ficam muito maiores.</description>
		<content:encoded><![CDATA[<p>Fala Facina!!! =P</p>
<p>A compilação é feita com o compilador ICC, que é da Intel.</p>
<p>Mas quando você compila com o gcc, as flags de compilação do kernel não são lidas do make.conf  =/</p>
<p>Porém, no meu sistema eu compilo com -O3 mesmo, embora, a otimização nem sempre aconteça e os binários ficam muito maiores.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Boosting your Kernel on Gentoo by r0c0</title>
		<link>http://richizo.wordpress.com/2009/03/03/boosting-your-kernel-on-gentoo/#comment-41</link>
		<dc:creator>r0c0</dc:creator>
		<pubDate>Sun, 15 Mar 2009 22:16:51 +0000</pubDate>
		<guid isPermaLink="false">http://richizo.wordpress.com/?p=226#comment-41</guid>
		<description>Você coloca a flag -O3 pra otimização da compilação? Os caras do Gent00 não recomendam, certo? Eu sempre acabo usando o -O2, troco otimização por estabilidade.
falow</description>
		<content:encoded><![CDATA[<p>Você coloca a flag -O3 pra otimização da compilação? Os caras do Gent00 não recomendam, certo? Eu sempre acabo usando o -O2, troco otimização por estabilidade.<br />
falow</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Boosting your Kernel on Gentoo by richizo</title>
		<link>http://richizo.wordpress.com/2009/03/03/boosting-your-kernel-on-gentoo/#comment-38</link>
		<dc:creator>richizo</dc:creator>
		<pubDate>Fri, 06 Mar 2009 21:30:39 +0000</pubDate>
		<guid isPermaLink="false">http://richizo.wordpress.com/?p=226#comment-38</guid>
		<description>Yes, you can use the Linux Benchmark Suite: http://lbs.sourceforge.net/</description>
		<content:encoded><![CDATA[<p>Yes, you can use the Linux Benchmark Suite: <a href="http://lbs.sourceforge.net/" rel="nofollow">http://lbs.sourceforge.net/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Boosting your Kernel on Gentoo by Rob Harris</title>
		<link>http://richizo.wordpress.com/2009/03/03/boosting-your-kernel-on-gentoo/#comment-37</link>
		<dc:creator>Rob Harris</dc:creator>
		<pubDate>Fri, 06 Mar 2009 18:10:36 +0000</pubDate>
		<guid isPermaLink="false">http://richizo.wordpress.com/?p=226#comment-37</guid>
		<description>Awesome news! I&#039;ve been waiting something like this for a long while.

Is there some way to benchmark the performance improvements?
-R</description>
		<content:encoded><![CDATA[<p>Awesome news! I&#8217;ve been waiting something like this for a long while.</p>
<p>Is there some way to benchmark the performance improvements?<br />
-R</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Listing Shared Memory Segments in C by rocco</title>
		<link>http://richizo.wordpress.com/2009/02/11/listing-shared-memory-segments-in-c/#comment-32</link>
		<dc:creator>rocco</dc:creator>
		<pubDate>Sat, 14 Feb 2009 00:14:40 +0000</pubDate>
		<guid isPermaLink="false">http://richizo.wordpress.com/?p=189#comment-32</guid>
		<description>Ta ficando bom em opensolaris hein =p</description>
		<content:encoded><![CDATA[<p>Ta ficando bom em opensolaris hein =p</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Enabling a Marvel Yukon NIC on OpenSolaris by Rita</title>
		<link>http://richizo.wordpress.com/2009/01/11/enabling-a-marvel-yukon-nic-on-opensolaris/#comment-31</link>
		<dc:creator>Rita</dc:creator>
		<pubDate>Tue, 20 Jan 2009 18:58:30 +0000</pubDate>
		<guid isPermaLink="false">http://richizo.wordpress.com/?p=170#comment-31</guid>
		<description>Its a good article. I came across a very recent article that talks about Sony Vaio Flex laptops that use OLED technology and is a foldable screen. To learn more you can use this link below:-

http://www.kanbal.com/index.php?/Electronics/sony-flex-vaio-contrast-the-foldable-laptop.html</description>
		<content:encoded><![CDATA[<p>Its a good article. I came across a very recent article that talks about Sony Vaio Flex laptops that use OLED technology and is a foldable screen. To learn more you can use this link below:-</p>
<p><a href="http://www.kanbal.com/index.php?/Electronics/sony-flex-vaio-contrast-the-foldable-laptop.html" rel="nofollow">http://www.kanbal.com/index.php?/Electronics/sony-flex-vaio-contrast-the-foldable-laptop.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Enabling a Marvel Yukon NIC on OpenSolaris by tor</title>
		<link>http://richizo.wordpress.com/2009/01/11/enabling-a-marvel-yukon-nic-on-opensolaris/#comment-28</link>
		<dc:creator>tor</dc:creator>
		<pubDate>Mon, 12 Jan 2009 14:59:53 +0000</pubDate>
		<guid isPermaLink="false">http://richizo.wordpress.com/?p=170#comment-28</guid>
		<description>=p</description>
		<content:encoded><![CDATA[<p>=p</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Let&#8217;s turn {on&#124;off} TV by Recent Links Tagged With "beautifulsoup" - JabberTags</title>
		<link>http://richizo.wordpress.com/2008/08/01/lets-turn-onoff-tv/#comment-26</link>
		<dc:creator>Recent Links Tagged With "beautifulsoup" - JabberTags</dc:creator>
		<pubDate>Fri, 05 Dec 2008 22:34:54 +0000</pubDate>
		<guid isPermaLink="false">http://richizo.wordpress.com/?p=41#comment-26</guid>
		<description>[...] JadedIllusions27 on Sun 30-11-2008   夏休み 半ば日記 Saved by loevborg on Sat 22-11-2008   Let’s turn {on&#124;off} TV Saved by ebx on Fri 14-11-2008   Farmer’s Market Soup: Summer Edition Saved by omegajs on Sat [...]</description>
		<content:encoded><![CDATA[<p>[...] JadedIllusions27 on Sun 30-11-2008   夏休み 半ば日記 Saved by loevborg on Sat 22-11-2008   Let’s turn {on|off} TV Saved by ebx on Fri 14-11-2008   Farmer’s Market Soup: Summer Edition Saved by omegajs on Sat [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on History in sqlplus by Roko</title>
		<link>http://richizo.wordpress.com/2008/10/18/history-in-sqlplus/#comment-25</link>
		<dc:creator>Roko</dc:creator>
		<pubDate>Fri, 05 Dec 2008 18:28:13 +0000</pubDate>
		<guid isPermaLink="false">http://richizo.wordpress.com/?p=150#comment-25</guid>
		<description>isso aqui ta parado hein!!</description>
		<content:encoded><![CDATA[<p>isso aqui ta parado hein!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
