<?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 on: Lua Cairo Bindings for Conky 1.7.2+&#8230;Getting Started</title>
	<atom:link href="http://blog.conky.be/2009/09/28/lua-cairo-bindings-getting-started/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.conky.be/2009/09/28/lua-cairo-bindings-getting-started/</link>
	<description>The Official Blog for Conky, a Lightweight System Monitor</description>
	<lastBuildDate>Tue, 19 Jul 2011 09:09:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: grundygreen</title>
		<link>http://blog.conky.be/2009/09/28/lua-cairo-bindings-getting-started/comment-page-1/#comment-760</link>
		<dc:creator>grundygreen</dc:creator>
		<pubDate>Mon, 27 Jun 2011 19:15:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.conky.be/?p=67#comment-760</guid>
		<description>links broken on both rings &amp; air clock</description>
		<content:encoded><![CDATA[<p>links broken on both rings &amp; air clock</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GrundyGreen</title>
		<link>http://blog.conky.be/2009/09/28/lua-cairo-bindings-getting-started/comment-page-1/#comment-630</link>
		<dc:creator>GrundyGreen</dc:creator>
		<pubDate>Thu, 14 Apr 2011 18:20:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.conky.be/?p=67#comment-630</guid>
		<description>Air Clock and Rings link have gone bad.
http://conky.linux-hardcore.com/?page_id=2780

http://conky.linux-hardcore.com/?page_id=2800</description>
		<content:encoded><![CDATA[<p>Air Clock and Rings link have gone bad.<br />
<a href="http://conky.linux-hardcore.com/?page_id=2780" rel="nofollow">http://conky.linux-hardcore.com/?page_id=2780</a></p>
<p><a href="http://conky.linux-hardcore.com/?page_id=2800" rel="nofollow">http://conky.linux-hardcore.com/?page_id=2800</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lisonator</title>
		<link>http://blog.conky.be/2009/09/28/lua-cairo-bindings-getting-started/comment-page-1/#comment-431</link>
		<dc:creator>lisonator</dc:creator>
		<pubDate>Sat, 11 Sep 2010 23:36:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.conky.be/?p=67#comment-431</guid>
		<description>Okey... I will post here some tips how to avoid memory leaks...
1. Use local variables or remember to &#039;=nil&#039; every non local variable before main function finishes (main function - function called from conky).
2. Try to declare functions inside main function scope. Remember to keep it local so the garbage collector will take care of it when it becomes unreachable. I have no idea how conky handles global functions. Perhaps to handle them properly it needs the &#039;conky_&#039; prefix like &#039;function conky_round_rect()&#039;.
3. When using cairo struktures remember to free resources using cairo_destroy, or cairo_pattern_destroy functions (lack of the second one creates memory leak in &#039;Air clock&#039;)</description>
		<content:encoded><![CDATA[<p>Okey&#8230; I will post here some tips how to avoid memory leaks&#8230;<br />
1. Use local variables or remember to &#8216;=nil&#8217; every non local variable before main function finishes (main function &#8211; function called from conky).<br />
2. Try to declare functions inside main function scope. Remember to keep it local so the garbage collector will take care of it when it becomes unreachable. I have no idea how conky handles global functions. Perhaps to handle them properly it needs the &#8216;conky_&#8217; prefix like &#8216;function conky_round_rect()&#8217;.<br />
3. When using cairo struktures remember to free resources using cairo_destroy, or cairo_pattern_destroy functions (lack of the second one creates memory leak in &#8216;Air clock&#8217;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lisonator</title>
		<link>http://blog.conky.be/2009/09/28/lua-cairo-bindings-getting-started/comment-page-1/#comment-430</link>
		<dc:creator>lisonator</dc:creator>
		<pubDate>Tue, 07 Sep 2010 23:09:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.conky.be/?p=67#comment-430</guid>
		<description>Hello londonali!

I was playing with your lua examples for few hours and encountered a little memory leak (about 1MB / 15min). My conky is constantly consuming more resources when displaying ring meters or air clock. 

I am using scripts downloaded from :
http://conkyhardcore.com/beginners/how-did-he-do-that/by-londonali1010/conky-widgets-for-conky-1-7-2/

Have you reported that issue?

PS. Without lua / cairo bindings the memory consumption is constant.

I&#039;ll try to look into it, but didn&#039;t write anything in lua before. Anyway... rings are great! :)</description>
		<content:encoded><![CDATA[<p>Hello londonali!</p>
<p>I was playing with your lua examples for few hours and encountered a little memory leak (about 1MB / 15min). My conky is constantly consuming more resources when displaying ring meters or air clock. </p>
<p>I am using scripts downloaded from :<br />
<a href="http://conkyhardcore.com/beginners/how-did-he-do-that/by-londonali1010/conky-widgets-for-conky-1-7-2/" rel="nofollow">http://conkyhardcore.com/beginners/how-did-he-do-that/by-londonali1010/conky-widgets-for-conky-1-7-2/</a></p>
<p>Have you reported that issue?</p>
<p>PS. Without lua / cairo bindings the memory consumption is constant.</p>
<p>I&#8217;ll try to look into it, but didn&#8217;t write anything in lua before. Anyway&#8230; rings are great! <img src='http://blog.conky.be/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: londonali1010</title>
		<link>http://blog.conky.be/2009/09/28/lua-cairo-bindings-getting-started/comment-page-1/#comment-311</link>
		<dc:creator>londonali1010</dc:creator>
		<pubDate>Thu, 04 Feb 2010 22:33:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.conky.be/?p=67#comment-311</guid>
		<description>@mrpeachy: Imlib2 isn&#039;t that much different from Cairo, just different function names! If you&#039;ve got the current Karmic conky-all package, it will have Imlib2 bindings for Lua already compiled.  If you compile from source, you need enable it in the configure stage.

As for the code, you can get started here: http://blog.conky.be/2009/11/04/feature-feature-imlib2-cairo-bindings-for-lua/

Good luck!</description>
		<content:encoded><![CDATA[<p>@mrpeachy: Imlib2 isn&#8217;t that much different from Cairo, just different function names! If you&#8217;ve got the current Karmic conky-all package, it will have Imlib2 bindings for Lua already compiled.  If you compile from source, you need enable it in the configure stage.</p>
<p>As for the code, you can get started here: <a href="http://blog.conky.be/2009/11/04/feature-feature-imlib2-cairo-bindings-for-lua/" rel="nofollow">http://blog.conky.be/2009/11/04/feature-feature-imlib2-cairo-bindings-for-lua/</a></p>
<p>Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mrpeachy</title>
		<link>http://blog.conky.be/2009/09/28/lua-cairo-bindings-getting-started/comment-page-1/#comment-310</link>
		<dc:creator>mrpeachy</dc:creator>
		<pubDate>Thu, 04 Feb 2010 20:17:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.conky.be/?p=67#comment-310</guid>
		<description>thanks londonali1010! 
i took a look at imlib2 but i couldn&#039;t get it working.
do you have to have lua-imlib2  http://luaforge.net/projects/lua-imlib2/?
or is the ability to use imlib2 already present in lua 5.1?
do you have an example script uising imlib2?
thanks</description>
		<content:encoded><![CDATA[<p>thanks londonali1010!<br />
i took a look at imlib2 but i couldn&#8217;t get it working.<br />
do you have to have lua-imlib2  <a href="http://luaforge.net/projects/lua-imlib2/?" rel="nofollow">http://luaforge.net/projects/lua-imlib2/?</a><br />
or is the ability to use imlib2 already present in lua 5.1?<br />
do you have an example script uising imlib2?<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: londonali1010</title>
		<link>http://blog.conky.be/2009/09/28/lua-cairo-bindings-getting-started/comment-page-1/#comment-309</link>
		<dc:creator>londonali1010</dc:creator>
		<pubDate>Thu, 04 Feb 2010 19:19:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.conky.be/?p=67#comment-309</guid>
		<description>@mrpeachy: Looking great!  Lua/Cairo (and Lua/Imlib2) isn&#039;t tough to get a grip on once you get started, as you seem to be finding! You should be sure and enter our Conky of the Month Competition...See the main blog page for details :)</description>
		<content:encoded><![CDATA[<p>@mrpeachy: Looking great!  Lua/Cairo (and Lua/Imlib2) isn&#8217;t tough to get a grip on once you get started, as you seem to be finding! You should be sure and enter our Conky of the Month Competition&#8230;See the main blog page for details <img src='http://blog.conky.be/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mrpeachy</title>
		<link>http://blog.conky.be/2009/09/28/lua-cairo-bindings-getting-started/comment-page-1/#comment-308</link>
		<dc:creator>mrpeachy</dc:creator>
		<pubDate>Thu, 04 Feb 2010 18:07:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.conky.be/?p=67#comment-308</guid>
		<description>and after a bit more tinkering...
http://omploader.org/vM2Z6bA][img]http://omploader.org/tM2Z6bA

now i just need a good idea to work on</description>
		<content:encoded><![CDATA[<p>and after a bit more tinkering&#8230;<br />
<a href="http://omploader.org/vM2Z6bAimghttp://omploader.org/tM2Z6bA" rel="nofollow">http://omploader.org/vM2Z6bAimghttp://omploader.org/tM2Z6bA</a></p>
<p>now i just need a good idea to work on</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mrpeachy</title>
		<link>http://blog.conky.be/2009/09/28/lua-cairo-bindings-getting-started/comment-page-1/#comment-307</link>
		<dc:creator>mrpeachy</dc:creator>
		<pubDate>Thu, 04 Feb 2010 18:02:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.conky.be/?p=67#comment-307</guid>
		<description>Well i must have been doing something wrong...
I&#039;ve been tinkering with conky for a while now and posting my ideas on the crunchbanglinux conky config forum 
But recently it became clear that my ambitions regarding conky were limited using the native commands in conky also.  This page was one of the first i came across when i wanted to start using lua (I have no programming background so i was starting from scratch).  I&#039;ve been looking through your lua scripts londonali1010, trying to decipher what they did and then trying to apply the bits i understood myself.
http://omploader.org/vM2R0cQ][img]http://omploader.org/tM2R0cQ</description>
		<content:encoded><![CDATA[<p>Well i must have been doing something wrong&#8230;<br />
I&#8217;ve been tinkering with conky for a while now and posting my ideas on the crunchbanglinux conky config forum<br />
But recently it became clear that my ambitions regarding conky were limited using the native commands in conky also.  This page was one of the first i came across when i wanted to start using lua (I have no programming background so i was starting from scratch).  I&#8217;ve been looking through your lua scripts londonali1010, trying to decipher what they did and then trying to apply the bits i understood myself.<br />
<a href="http://omploader.org/vM2R0cQimghttp://omploader.org/tM2R0cQ" rel="nofollow">http://omploader.org/vM2R0cQimghttp://omploader.org/tM2R0cQ</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: londonali1010</title>
		<link>http://blog.conky.be/2009/09/28/lua-cairo-bindings-getting-started/comment-page-1/#comment-286</link>
		<dc:creator>londonali1010</dc:creator>
		<pubDate>Sun, 24 Jan 2010 20:11:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.conky.be/?p=67#comment-286</guid>
		<description>@Vlad: yeah, I know about that problem!  But with the current rings script, that&#039;s the best I have seen.  Otherwise, it will only ever point directly at the hour, and it&#039;ll be very confusing around the turn of the hour.  The better solution would be to write a separate script for a clock!

Thanks for your interest, and I&#039;m glad to see you&#039;ve been able to use some of the new features :)</description>
		<content:encoded><![CDATA[<p>@Vlad: yeah, I know about that problem!  But with the current rings script, that&#8217;s the best I have seen.  Otherwise, it will only ever point directly at the hour, and it&#8217;ll be very confusing around the turn of the hour.  The better solution would be to write a separate script for a clock!</p>
<p>Thanks for your interest, and I&#8217;m glad to see you&#8217;ve been able to use some of the new features <img src='http://blog.conky.be/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

