<?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"
	>
<channel>
	<title>Comments for jcinacio.com</title>
	<atom:link href="http://www.jcinacio.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jcinacio.com</link>
	<description>Technology, Software, Linux and System Administration</description>
	<pubDate>Sat, 04 Jul 2009 18:32:32 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>Comment on PHP &#8220;__toString&#8221; magic method: not so magic before 5.2.0 by Anonymous</title>
		<link>http://www.jcinacio.com/2007/04/19/phps-__tostring-magic-method-not-so-magic-before-520/#comment-7677</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 15 Jan 2009 23:44:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.jcinacio.com/2007/04/19/phps-__tostring-magic-method-not-so-magic-before-520/#comment-7677</guid>
		<description>Just be use you're using the right types in the right places, in ALL code you write.

Typcasting should work here and is the right thing to do, change:

$B-&#62;add( $A );

to

$B-&#62;add( (string) $A );


If php was a typed language and you could define add() like this:

public function add(string $content)

then you would not need to explicitly cast objects as above.

relying on the php team of developers to get things right first time always leads to issues so make your code as exact as possible.</description>
		<content:encoded><![CDATA[<p>Just be use you&#8217;re using the right types in the right places, in ALL code you write.</p>
<p>Typcasting should work here and is the right thing to do, change:</p>
<p>$B-&gt;add( $A );</p>
<p>to</p>
<p>$B-&gt;add( (string) $A );</p>
<p>If php was a typed language and you could define add() like this:</p>
<p>public function add(string $content)</p>
<p>then you would not need to explicitly cast objects as above.</p>
<p>relying on the php team of developers to get things right first time always leads to issues so make your code as exact as possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on VMware Image - Ubuntu JeOS 8.04 (Hardy Heron) by New Ubuntu VMware appliance &#124; jcinacio.com</title>
		<link>http://www.jcinacio.com/projects/vmware-ubuntujeos-804/#comment-3940</link>
		<dc:creator>New Ubuntu VMware appliance &#124; jcinacio.com</dc:creator>
		<pubDate>Tue, 06 May 2008 02:37:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.jcinacio.com/projects/vmware-ubuntujeos-804/#comment-3940</guid>
		<description>[...] details and download link here Share [...]</description>
		<content:encoded><![CDATA[<p>[...] details and download link here Share [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP &#8220;__toString&#8221; magic method: not so magic before 5.2.0 by Amaroq</title>
		<link>http://www.jcinacio.com/2007/04/19/phps-__tostring-magic-method-not-so-magic-before-520/#comment-3603</link>
		<dc:creator>Amaroq</dc:creator>
		<pubDate>Fri, 21 Mar 2008 14:20:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.jcinacio.com/2007/04/19/phps-__tostring-magic-method-not-so-magic-before-520/#comment-3603</guid>
		<description>I came across this same problem. I made an image gallery with thumbnail generation and caching, and thoroughly tested it on my personal apache with PHP 5.2.3. Uploaded it to a friend's webspace on her college's server, then had to go visit some family for a week. I come back and find out that instead of displaying thumbnails that link to fullviews, it's displaying object IDs linking to their respective fullviews. I replaced all instances of $obj that were in echoes or in other strings with $obj-&#62;__toString(), and everything worked perfect.

Had I read this sooner, I would've known I didn't need to alter the actual echoes. Just the other strings.</description>
		<content:encoded><![CDATA[<p>I came across this same problem. I made an image gallery with thumbnail generation and caching, and thoroughly tested it on my personal apache with PHP 5.2.3. Uploaded it to a friend&#8217;s webspace on her college&#8217;s server, then had to go visit some family for a week. I come back and find out that instead of displaying thumbnails that link to fullviews, it&#8217;s displaying object IDs linking to their respective fullviews. I replaced all instances of $obj that were in echoes or in other strings with $obj-&gt;__toString(), and everything worked perfect.</p>
<p>Had I read this sooner, I would&#8217;ve known I didn&#8217;t need to alter the actual echoes. Just the other strings.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ubuntu 7.10 (Gutsy Gibbon) released, new VM image by admin</title>
		<link>http://www.jcinacio.com/2007/10/19/ubuntu-710-gutsy-gibbon-released-new-vm-image/#comment-1498</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 16 Nov 2007 16:04:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.jcinacio.com/2007/10/19/ubuntu-710-gutsy-gibbon-released-new-vm-image/#comment-1498</guid>
		<description>The default 'server' kernel does not support your cpu (bug reported at https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/151942
).

Try booting the VM in another PC, then something like:
apt-get update
apt-get install linux-generic

this will install the 'generic' version of the kernel (that you can select as default) to boot on your laptop.

Hope that helps.</description>
		<content:encoded><![CDATA[<p>The default &#8217;server&#8217; kernel does not support your cpu (bug reported at <a href="https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/151942" rel="nofollow">https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/151942</a><br />
).</p>
<p>Try booting the VM in another PC, then something like:<br />
apt-get update<br />
apt-get install linux-generic</p>
<p>this will install the &#8216;generic&#8217; version of the kernel (that you can select as default) to boot on your laptop.</p>
<p>Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ubuntu 7.10 (Gutsy Gibbon) released, new VM image by TheOne</title>
		<link>http://www.jcinacio.com/2007/10/19/ubuntu-710-gutsy-gibbon-released-new-vm-image/#comment-1467</link>
		<dc:creator>TheOne</dc:creator>
		<pubDate>Wed, 14 Nov 2007 16:50:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.jcinacio.com/2007/10/19/ubuntu-710-gutsy-gibbon-released-new-vm-image/#comment-1467</guid>
		<description>When i try to boot it says "Panic: CPU too old for this kernel". Any solution for this? I am running this on my laptop it has a Intel Pentium M Processor 1.5Ghz</description>
		<content:encoded><![CDATA[<p>When i try to boot it says &#8220;Panic: CPU too old for this kernel&#8221;. Any solution for this? I am running this on my laptop it has a Intel Pentium M Processor 1.5Ghz</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!--sc-->

<!--end-->
