<?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 Evan Teran's Blog</title>
	<atom:link href="http://blog.codef00.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.codef00.com</link>
	<description>Just some thoughts from a computer geek</description>
	<lastBuildDate>Thu, 05 Jan 2012 18:32:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on (Not so much) Fun with QSharedPointer by David Pinelo</title>
		<link>http://blog.codef00.com/2011/12/15/not-so-much-fun-with-qsharedpointer/comment-page-1/#comment-7839</link>
		<dc:creator>David Pinelo</dc:creator>
		<pubDate>Thu, 05 Jan 2012 18:32:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codef00.com/?p=174#comment-7839</guid>
		<description>Very interesting post. Sometimes it&#039;s hard to understand memory management when you see a lot of differents options (scope pointer, shared, shared data, parent-child...). A simple practical sample like you write made things clearer.</description>
		<content:encoded><![CDATA[<p>Very interesting post. Sometimes it&#8217;s hard to understand memory management when you see a lot of differents options (scope pointer, shared, shared data, parent-child&#8230;). A simple practical sample like you write made things clearer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on GMP error handling frustrates me by Evan Teran</title>
		<link>http://blog.codef00.com/2011/03/21/gmp-error-handling-frustrates-me/comment-page-1/#comment-7834</link>
		<dc:creator>Evan Teran</dc:creator>
		<pubDate>Mon, 05 Dec 2011 04:39:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codef00.com/?p=147#comment-7834</guid>
		<description>@gmp: that is fantastic information.  I&#039;ll definitely look into rewriting the kcalc code to use the technique you mention. It definitely seems like a nice clean approach to memory allocation errors :-).</description>
		<content:encoded><![CDATA[<p>@gmp: that is fantastic information.  I&#8217;ll definitely look into rewriting the kcalc code to use the technique you mention. It definitely seems like a nice clean approach to memory allocation errors <img src='http://blog.codef00.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on GMP error handling frustrates me by gmp</title>
		<link>http://blog.codef00.com/2011/03/21/gmp-error-handling-frustrates-me/comment-page-1/#comment-7833</link>
		<dc:creator>gmp</dc:creator>
		<pubDate>Tue, 29 Nov 2011 18:18:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codef00.com/?p=147#comment-7833</guid>
		<description>You can use alternate error handling in GMP.  This is from Gmp Manual 5.0.4 chapter 14. So you can redifine a function for example to throw an exception, and it will be ok.

By default GMP uses malloc, realloc and free for memory allocation, and if they fail GMP prints a message to the standard error output and terminates the program.
Alternate functions can be specified, to allocate memory in a different way or to have a different error action on running out of memory.
This feature is available in the Berkeley compatibility library (see Chapter 13 [BSD Compatible Functions], page 84) as well as the main GMP library.
void mp_set_memory_functions (
void *(*alloc_func_ptr ) (size t),
void *(*realloc_func_ptr ) (void *, size t, size t),
void (*free_func_ptr ) (void *, size t))
[Function]
Replace the current allocation functions from the arguments. If an argument is NULL, the corresponding default function is used. These functions will be used for all memory allocation done by GMP, apart from temporary space from alloca if that function is available and GMP is configured to use it.</description>
		<content:encoded><![CDATA[<p>You can use alternate error handling in GMP.  This is from Gmp Manual 5.0.4 chapter 14. So you can redifine a function for example to throw an exception, and it will be ok.</p>
<p>By default GMP uses malloc, realloc and free for memory allocation, and if they fail GMP prints a message to the standard error output and terminates the program.<br />
Alternate functions can be specified, to allocate memory in a different way or to have a different error action on running out of memory.<br />
This feature is available in the Berkeley compatibility library (see Chapter 13 [BSD Compatible Functions], page 84) as well as the main GMP library.<br />
void mp_set_memory_functions (<br />
void *(*alloc_func_ptr ) (size t),<br />
void *(*realloc_func_ptr ) (void *, size t, size t),<br />
void (*free_func_ptr ) (void *, size t))<br />
[Function]<br />
Replace the current allocation functions from the arguments. If an argument is NULL, the corresponding default function is used. These functions will be used for all memory allocation done by GMP, apart from temporary space from alloca if that function is available and GMP is configured to use it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on It Lives! by NEO_2.0</title>
		<link>http://blog.codef00.com/2008/12/05/it-lives/comment-page-1/#comment-7830</link>
		<dc:creator>NEO_2.0</dc:creator>
		<pubDate>Wed, 24 Aug 2011 12:32:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codef00.com/?p=17#comment-7830</guid>
		<description>Hello,

You have code the Best Debugger for Linux thank you!

Greez 

NEO_2.0</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>You have code the Best Debugger for Linux thank you!</p>
<p>Greez </p>
<p>NEO_2.0</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Default Browser on Linux Debacle by &#8220;Default&#8221; Applications Obstacle to Desktop Linux Adoption &#124; Ghodmode Development</title>
		<link>http://blog.codef00.com/2011/02/18/the-default-browser-on-linux-debacle/comment-page-1/#comment-7829</link>
		<dc:creator>&#8220;Default&#8221; Applications Obstacle to Desktop Linux Adoption &#124; Ghodmode Development</dc:creator>
		<pubDate>Wed, 15 Jun 2011 09:23:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codef00.com/?p=84#comment-7829</guid>
		<description>[...] on those XML files, but I did stumble across a functional solution with some help from an article at Evan Teran’s Blog. Setting the default browser using the update-alternatives command (see [...]</description>
		<content:encoded><![CDATA[<p>[...] on those XML files, but I did stumble across a functional solution with some help from an article at Evan Teran’s Blog. Setting the default browser using the update-alternatives command (see [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Combining Qt&#8217;s Signals and Slots with c++0x lamdas by Evan Teran</title>
		<link>http://blog.codef00.com/2011/03/27/combining-qts-signals-and-slots-with-c0x-lamdas/comment-page-1/#comment-7825</link>
		<dc:creator>Evan Teran</dc:creator>
		<pubDate>Tue, 24 May 2011 15:35:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codef00.com/?p=155#comment-7825</guid>
		<description>The object actually *does* get deleted (I&#039;ve tested it by putting cout&#039;s in the destructor). The reason why is that the object is registers itself as a child of the sender. Note this part of my post:

&quot;We make the helper object a child of the some QObject (ideally the sender of the signal), so that it will be automatically deleted when the parent object gets destroyed.&quot;

Granted, the object will live as long as the sender in this case.  So you probably don&#039;t want to make 1000&#039;s of connections with this approach, but if it&#039;s a small number, there is no leak.</description>
		<content:encoded><![CDATA[<p>The object actually *does* get deleted (I&#8217;ve tested it by putting cout&#8217;s in the destructor). The reason why is that the object is registers itself as a child of the sender. Note this part of my post:</p>
<p>&#8220;We make the helper object a child of the some QObject (ideally the sender of the signal), so that it will be automatically deleted when the parent object gets destroyed.&#8221;</p>
<p>Granted, the object will live as long as the sender in this case.  So you probably don&#8217;t want to make 1000&#8242;s of connections with this approach, but if it&#8217;s a small number, there is no leak.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Combining Qt&#8217;s Signals and Slots with c++0x lamdas by Essentia</title>
		<link>http://blog.codef00.com/2011/03/27/combining-qts-signals-and-slots-with-c0x-lamdas/comment-page-1/#comment-7824</link>
		<dc:creator>Essentia</dc:creator>
		<pubDate>Mon, 23 May 2011 17:55:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codef00.com/?p=155#comment-7824</guid>
		<description>This will almost certainly result in a memory leak, making this solution unattractive.</description>
		<content:encoded><![CDATA[<p>This will almost certainly result in a memory leak, making this solution unattractive.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Default Browser on Linux Debacle by Evan Teran</title>
		<link>http://blog.codef00.com/2011/02/18/the-default-browser-on-linux-debacle/comment-page-1/#comment-7822</link>
		<dc:creator>Evan Teran</dc:creator>
		<pubDate>Sun, 24 Apr 2011 17:33:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codef00.com/?p=84#comment-7822</guid>
		<description>@Mike: I think that part of the issue is that I had build my system with both gnome and kde support (both kde and gnome in my gentoo USE flags).

This seemed to be a bit a conflict where some programs would look to the gnome system, some would look to kde. Rebuilding my apps with just the kde USE flag made things a lot less confused.

I&#039;m not sure if I can still reproduce the issue after building it with both USE flags, but if I can, I&#039;ll open a bug.</description>
		<content:encoded><![CDATA[<p>@Mike: I think that part of the issue is that I had build my system with both gnome and kde support (both kde and gnome in my gentoo USE flags).</p>
<p>This seemed to be a bit a conflict where some programs would look to the gnome system, some would look to kde. Rebuilding my apps with just the kde USE flag made things a lot less confused.</p>
<p>I&#8217;m not sure if I can still reproduce the issue after building it with both USE flags, but if I can, I&#8217;ll open a bug.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Default Browser on Linux Debacle by Mike</title>
		<link>http://blog.codef00.com/2011/02/18/the-default-browser-on-linux-debacle/comment-page-1/#comment-7820</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sun, 24 Apr 2011 03:09:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codef00.com/?p=84#comment-7820</guid>
		<description>Hey there, just happened to run across this page.

I&#039;m the original author of xdg-settings, and it looks like you&#039;ve found a bug. It&#039;s not supposed to do that. If you are so inclined, I&#039;d be happy to try and figure out why it&#039;s not working for you, so that we can fix it to do what it&#039;s supposed to on systems like yours.

You can open a bug at &lt;a href=&quot;http://new.crbug.com&quot; rel=&quot;nofollow&quot;&gt;new.crbug.com&lt;/a&gt; or just email me if you&#039;d like.</description>
		<content:encoded><![CDATA[<p>Hey there, just happened to run across this page.</p>
<p>I&#8217;m the original author of xdg-settings, and it looks like you&#8217;ve found a bug. It&#8217;s not supposed to do that. If you are so inclined, I&#8217;d be happy to try and figure out why it&#8217;s not working for you, so that we can fix it to do what it&#8217;s supposed to on systems like yours.</p>
<p>You can open a bug at <a href="http://new.crbug.com" rel="nofollow">new.crbug.com</a> or just email me if you&#8217;d like.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Default Browser on Linux Debacle by Vladimir</title>
		<link>http://blog.codef00.com/2011/02/18/the-default-browser-on-linux-debacle/comment-page-1/#comment-7811</link>
		<dc:creator>Vladimir</dc:creator>
		<pubDate>Mon, 11 Apr 2011 21:32:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codef00.com/?p=84#comment-7811</guid>
		<description>update:
Problem returned after system update... It seams that .desktop file was updated to its default state. Than I found out that problem is not there, but it is in 
&quot;supposed-to-be-default-browser&quot;.desktop I found (also in MimeType line)  part that said something like &lt;code&gt; /usr/lib/&quot;not-default-browser&quot;&lt;/code&gt; 
removed it and problem is gone(again)</description>
		<content:encoded><![CDATA[<p>update:<br />
Problem returned after system update&#8230; It seams that .desktop file was updated to its default state. Than I found out that problem is not there, but it is in<br />
&#8220;supposed-to-be-default-browser&#8221;.desktop I found (also in MimeType line)  part that said something like <code> /usr/lib/"not-default-browser"</code><br />
removed it and problem is gone(again)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

