<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>CodingExperiments.Com - Latest Comments in General</title><link>http://codingexperiments.disqus.com/</link><description>CodingExperiments.com is a site where I can (obviously) experiment with various demonstrations of code.</description><language>en</language><lastBuildDate>Thu, 28 Aug 2008 04:44:36 -0000</lastBuildDate><item><title>Re: Integer-&gt;String conversion in C/C++</title><link>http://codingexperiments.com/archives/324#comment-1889478</link><description>Instead of 48, you could also hard code it as '0' (zero in single quotes), which will evaluate to 48 when compiled, but will be portable if compiled in some other character set, which is good in C.&lt;br&gt;&lt;br&gt;Would you mind if I added this to my website of C tricks with citation? &lt;a href="http://ctips.pbwiki.com/"&gt;http://ctips.pbwiki.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;As for the leading zeros, I've used a recursive function where it'll keep calling itself with n/10 until n==0, then add each digit to the next char in the array, index of which is returned back down the call stack.  But by then, sprintf would probably be just as good, but you get the idea...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kenneth Finnegan</dc:creator><pubDate>Thu, 28 Aug 2008 04:44:36 -0000</pubDate></item><item><title>Re: Integer-&gt;String conversion in C/C++</title><link>http://codingexperiments.com/archives/324#comment-1881527</link><description>Honestly?  I wasn't aware of sprintf/snprintf when I wrote this.  Quite the embarrassing oversight on my part.  But ah well; you're right, it probably did speed up the loop I used it in a bit (although I'm not sure if the net difference would be significant).  Plus I got a lot of fun out of designing this algorithm.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">i80and</dc:creator><pubDate>Thu, 28 Aug 2008 01:46:19 -0000</pubDate></item><item><title>Re: Integer-&gt;String conversion in C/C++</title><link>http://codingexperiments.com/archives/324#comment-1880905</link><description>I take it the stdio functions (sprintf/snprintf/etc) were not acceptable? Certainly sprintf is a considerably more heavyweight function than the loop you've defined.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DGentry</dc:creator><pubDate>Thu, 28 Aug 2008 00:49:42 -0000</pubDate></item><item><title>Re: &amp;#8220;Never Gonna Give You Up&amp;#8221; Lyrics Adjusted for Programming Twist</title><link>http://codingexperiments.com/archives/320#comment-1875340</link><description>(see above)&lt;br&gt;&lt;br&gt;Although I do want to see a youtube video of this so I can Rick Roll some people who will get it ;)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sidsavara</dc:creator><pubDate>Wed, 27 Aug 2008 17:55:00 -0000</pubDate></item><item><title>Re: &amp;#8220;Never Gonna Give You Up&amp;#8221; Lyrics Adjusted for Programming Twist</title><link>http://codingexperiments.com/archives/320#comment-1869551</link><description>/facepalm</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Haggis</dc:creator><pubDate>Wed, 27 Aug 2008 15:56:30 -0000</pubDate></item><item><title>Re: &amp;#8220;Never Gonna Give You Up&amp;#8221; Lyrics Adjusted for Programming Twist</title><link>http://codingexperiments.com/archives/320#comment-1869465</link><description>LOLOLOL</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Detect</dc:creator><pubDate>Wed, 27 Aug 2008 15:48:56 -0000</pubDate></item><item><title>Re: How to Avoid Some of the Problems in Writing a Working Recommendation Engine</title><link>http://codingexperiments.com/archives/313#comment-1848318</link><description>There's some good analysis of music recommendation engines on the Duke Listens blog at &lt;a href="http://blogs.sun.com/plamere/"&gt;http://blogs.sun.com/plamere/&lt;/a&gt;. It's well worth searching out his analyses of the last.fm engine for some good detail.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">andymurd</dc:creator><pubDate>Tue, 26 Aug 2008 09:15:32 -0000</pubDate></item><item><title>Re: Debunking Myths That Say Linux Won&amp;#8217;t Reach the Desktop</title><link>http://codingexperiments.com/archives/301#comment-1787343</link><description>Wise words. Most Linux users don't want Windows-like marketshare because diversity is better for security (although Linux is very secure).&lt;br&gt;&lt;br&gt;I also know that you were talking about more than just marketshare, and Linux already has had massive success in many areas.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">possible248</dc:creator><pubDate>Sun, 24 Aug 2008 00:00:35 -0000</pubDate></item><item><title>Re: My Experiences With (K)Ubuntu Hardy Heron Beta</title><link>http://codingexperiments.com/archives/67#comment-1787247</link><description>KGNOME, Ha!&lt;br&gt;&lt;br&gt;I'm not sure why I used Metacity instead of Kwin when I got KDE kinda-working. I was probably tired or something.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">possible248</dc:creator><pubDate>Sat, 23 Aug 2008 23:46:57 -0000</pubDate></item><item><title>Re: Debunking Myths That Say Linux Won&amp;#8217;t Reach the Desktop</title><link>http://codingexperiments.com/archives/301#comment-1782178</link><description>Linux will never succeed like Windows.  Linux will succeed like Linux.  In my opinion Myth #4 should be recategorized.   It's not a myth at all, it's a lie.  Nice debunking though,  thanks.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Richard Chapman</dc:creator><pubDate>Sat, 23 Aug 2008 22:28:19 -0000</pubDate></item><item><title>Re: My Experiences With (K)Ubuntu Hardy Heron Beta</title><link>http://codingexperiments.com/archives/67#comment-1780865</link><description>Ha ! You just started a WHOLE NEW Window Manager !!! &lt;br&gt;"KGNOME" I whould call it that :0)&lt;br&gt;It should end the war between K.D.E. and Gnome users !!!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rockrol913</dc:creator><pubDate>Sat, 23 Aug 2008 20:34:55 -0000</pubDate></item><item><title>Re: Debunking Myths That Say Linux Won&amp;#8217;t Reach the Desktop</title><link>http://codingexperiments.com/archives/301#comment-1705917</link><description>agreed. most hardware companies won't release linux drivers, so new hardware tends to go unsupported under linux for several months before someone manages to knowck together a properly working driver. even intel graphics cards (and intel even releases their own linux drivers) don't have good linux drivers the moment they're released.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">42gems</dc:creator><pubDate>Wed, 20 Aug 2008 21:38:21 -0000</pubDate></item><item><title>Re: Debunking Myths That Say Linux Won&amp;#8217;t Reach the Desktop</title><link>http://codingexperiments.com/archives/301#comment-1686478</link><description>Excellent response to Myth 1. Some choices can work in the favor of the user, such as choosing Xubuntu or Fluxbuntu for older computers. But there are choices that the user doesn't care about, such as which type of package management system to select. Having multiple package management systems isn't a bad thing, because it allows innovation. But usually, non-technical mainstream users won't feel the need to spend a lot of time thinking about which package management system to use.&lt;br&gt;&lt;br&gt;In your response to myth 5, you are correct that Windows is more likely to need an Internet connection or driver installation CD for new hardware, due to Linux supporting more hardware out of the box. The problem is hardware manufacturers are more likely to distribute driver install CDs for Windows than release a spec or create a Linux driver. Like another comment author said, this is mostly apparent with the newest hardware on the market that hasn't had the chance to be supported by the community.&lt;br&gt;&lt;br&gt;Thanks for writing such a detailed comment.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">possible248</dc:creator><pubDate>Wed, 20 Aug 2008 13:10:50 -0000</pubDate></item><item><title>Re: Debunking Myths That Say Linux Won&amp;#8217;t Reach the Desktop</title><link>http://codingexperiments.com/archives/301#comment-1685478</link><description>If could add my 2 pennies worth&lt;br&gt;&lt;br&gt;Myth1: The issue isn't specifically choice, having 6 Vista versions caused confusion because esentially people couldn't see the differences between what is essentially the same looking thing. With Linux, this is a slightly different ituation, as your getting a lot more choice for your buck. and you are right, some hand holding is required to get the right distro.&lt;br&gt;&lt;br&gt;However the underlying fact is, Windows doesn't offer you choice, something i don't think the community uses to its advantage. With Windows you get windows, with Linux, you get KDE, Gnome, XCFE etc, there are a multitude of tools to achive the same goal, and as all people work a different way, some will have preferred tools.. how can this be a bad thing?&lt;br&gt;&lt;br&gt;Myth2: I love this one, people won't use linux because its different.. er Apple? Isn't that different, people use that.. as long as there is a mouse, a web browser, an email client, and an IM, people are in the most happy, hence why these Webbooks are doing so well, its not the OS, its the tools which make the difference.&lt;br&gt;&lt;br&gt;Myth3, as you pointed out, Novell, Redhat and Sun are HUGE companies. as are Google, amazon, Tivo.. just because you can't see it, doesn't mean its not being used.. people don't actually realise how often they use Linux powered systems..&lt;br&gt;&lt;br&gt;Myth5: I ask you to install a Logitech Quick cam on windows without an Internet connection or install CD, then on Ubuntu, once you've done that, try an HP PSC.. now tell me that Windows has superior Driver support..</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave Field</dc:creator><pubDate>Wed, 20 Aug 2008 10:11:07 -0000</pubDate></item><item><title>Re: Debunking Myths That Say Linux Won&amp;#8217;t Reach the Desktop</title><link>http://codingexperiments.com/archives/301#comment-1658300</link><description>Interesting point on the "new hardware" issue. Of course, not &lt;i&gt;all&lt;/i&gt; new hardware will work on Microsoft Windows, but you are correct in saying that more newly released hardware will work on Windows compared to Linux.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">possible248</dc:creator><pubDate>Wed, 20 Aug 2008 02:10:20 -0000</pubDate></item><item><title>Re: Debunking Myths That Say Linux Won&amp;#8217;t Reach the Desktop</title><link>http://codingexperiments.com/archives/301#comment-1658036</link><description>Interesting thoughts, but in the vast majority of cases, it takes more time to test a lot of distros than just to go with one distro. Users also only want to put minimal effort in installing and configuring their operating system. As there is already a lot of work, such as moving files, that need to be done when switching to a new operating system, it is not best for the user to have to do even more work in order to find out which distro is right for him or her.&lt;br&gt;&lt;br&gt;I agree that specialty distros are important, but I believe mainstream users generally will want a distro with large software repositories, a friendly community to help with issues, and a very user friendly administration interface. Plenty of specialty distros do not have those three things.&lt;br&gt;&lt;br&gt;Solutions you mentioned, such as virtualization and clever multi-boot are things that would be good for users that are having a problems specific to a certain distribution.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">possible248</dc:creator><pubDate>Wed, 20 Aug 2008 01:50:50 -0000</pubDate></item><item><title>Re: Debunking Myths That Say Linux Won&amp;#8217;t Reach the Desktop</title><link>http://codingexperiments.com/archives/301#comment-1657391</link><description>The hardware myth continues to be perceived that way and is still somewhat of a valid problem because NEW hardware will always work with Windows out of the box, whereas although Linux may, for the sake of argument, support every single video card ever created from six months ago on backwards, a video card released since then, bought at the store and brought home may not work at all until some subsequent kernel release, leaving the user with the idea of poor hardware support.&lt;br&gt;&lt;br&gt;A huge argument in response to this is usually "well they should research the hardware before buying it!" Why? They don't have to when using Windows, and that's what's setting their expectations, typically.&lt;br&gt;&lt;br&gt;This is improving as hardware makers are becoming more receptive to Linux and ensuring that their devices work in Linux, but is probably a large part of why that myth continues to be propagated.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dennis Fisher</dc:creator><pubDate>Wed, 20 Aug 2008 00:43:42 -0000</pubDate></item><item><title>Re: Debunking Myths That Say Linux Won&amp;#8217;t Reach the Desktop</title><link>http://codingexperiments.com/archives/301#comment-1657345</link><description>Users don't have to have choices narrowed down. What they need is simplicity in usage. Virtualization, clever multi-boot, and similar approaches offer the potential to try out many distros. Specialty distros should play a very important and large role in the market place of the future. Allowing for many distros to be spun by users is very valuable as well (and should be an attraction to Linux). The main obstacle to this development is that the tools and technology to tie all of that together seamlessly have not yet been developed nearly as much as they could. Standardization will also have to keep advancing. A distro is a presentation. I see a point in time when there will be more unique distros than there will be PCs to host them. How many distros have you made?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jose_X</dc:creator><pubDate>Wed, 20 Aug 2008 00:39:38 -0000</pubDate></item><item><title>Re: Debunking Myths That Say Linux Won&amp;#8217;t Reach the Desktop</title><link>http://codingexperiments.com/archives/301#comment-1643680</link><description>Excellent point. Linux is already well onto its way to reaching mainstream desktop users. Also, thanks for pointing out that tidbit involving the motherboards.&lt;br&gt;&lt;br&gt;Cheers.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">possible248</dc:creator><pubDate>Tue, 19 Aug 2008 16:33:58 -0000</pubDate></item><item><title>Re: Debunking Myths That Say Linux Won&amp;#8217;t Reach the Desktop</title><link>http://codingexperiments.com/archives/301#comment-1643330</link><description>I would emphasize that adoption is not a problem. ASUS will sell 5m units of the eePC most with Linux installed. Motherboards are coming out that can cold boot into mail and a browser using Linux under the hood. The end user is not aware of it but that is what is happening -- even if Windows is whatis loaded on the hard drive.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">JohnMc</dc:creator><pubDate>Tue, 19 Aug 2008 16:23:52 -0000</pubDate></item><item><title>Re: A Look at Kwippy And an Interview with Kwippy&amp;#8217;s CEO</title><link>http://codingexperiments.com/archives/177#comment-1586068</link><description>Would love a kwippy invite: inbox at a83 dot se</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">a83</dc:creator><pubDate>Mon, 18 Aug 2008 09:49:19 -0000</pubDate></item><item><title>Re: What Twitter Taught Me on How to Build a Web Application</title><link>http://codingexperiments.com/archives/247#comment-1583900</link><description>Perhaps Twitter has solved some SMS-related issue, but I haven't met any people that have found that Twitter's SMS features have solved a problem.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">possible248</dc:creator><pubDate>Mon, 18 Aug 2008 03:39:03 -0000</pubDate></item><item><title>Re: CodingExperiments Had a Painful Fail Today</title><link>http://codingexperiments.com/archives/282#comment-1583858</link><description>Unfortunately, I'm not very good at writing funny blog posts.&lt;br&gt;Thanks for thinking that I was being funny rather than forgetful.&lt;br&gt;&lt;br&gt;Cheers. :D</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">possible248</dc:creator><pubDate>Mon, 18 Aug 2008 03:34:04 -0000</pubDate></item><item><title>Re: CodingExperiments Had a Painful Fail Today</title><link>http://codingexperiments.com/archives/282#comment-1575247</link><description>Hehe I read it in via RSS as well and since I am new to CodingExperiments, I thought it was just some sort of inside joke - like, maybe he doesn't always post the images, and that's his way of saying "Look, there's an image here that shows this, you get it right?"</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sidsavara</dc:creator><pubDate>Sun, 17 Aug 2008 20:35:56 -0000</pubDate></item><item><title>Re: What Twitter Taught Me on How to Build a Web Application</title><link>http://codingexperiments.com/archives/247#comment-1486195</link><description>I'm not sure twitter solved a problem to begin with.  It created it's own need.  I agree with this:&lt;br&gt;&lt;br&gt;"Create something that nobody needed before, but now that you have showed them, they want it."&lt;br&gt;&lt;br&gt;If you took twitter away from me, I wouldn't realize I wanted it =). But not that it's there, I use it.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sidsavara</dc:creator><pubDate>Fri, 15 Aug 2008 22:45:00 -0000</pubDate></item></channel></rss>