<rss version="2.0">
<channel>
<title>Memecode</title><description>Software and Coding</description>
<language>en-us</language>
<link>http://www.memecode.com/news.php</link>
<copyright>Copyright 2013, Matthew Allen</copyright>
<pubDate>Sun, 03 Mar 2013 02:33:57 +1100</pubDate>
<lastBuildDate>Sun, 03 Mar 2013 02:33:57 +1100</lastBuildDate>
<item>
<title>LED Ring Working Prototype</title>
<link>http://www.memecode.com/news.php?id=885&amp;comments=1</link>
<description>Here is my LED ring from the previous post working in real 
hardware:&lt;p&gt;

&lt;iframe width=&quot;560&quot; height=&quot;315&quot; 
src=&quot;http://www.youtube.com/embed/GCyx82I0yiY&quot; frameborder=&quot;0&quot; 
allowfullscreen&gt;&lt;/iframe&gt;</description>
<guid isPermaLink="true">http://www.memecode.com/news.php?id=885</guid>
<pubDate>Sun, 03 Mar 2013 02:33:57 +1100</pubDate>
</item>
<item>
<title>RGB LED ring PCB</title>
<link>http://www.memecode.com/news.php?id=875&amp;comments=1</link>
<description>I've been working towards my own RGB LED ring PCB:
&lt;p&gt;
&lt;iframe width=&quot;560&quot; height=&quot;315&quot; 
src=&quot;http://www.youtube.com/embed/weWLvYwtVtQ&quot; frameborder=&quot;0&quot; 
allowfullscreen&gt;&lt;/iframe&gt;</description>
<guid isPermaLink="true">http://www.memecode.com/news.php?id=875</guid>
<pubDate>Fri, 25 Jan 2013 00:45:32 +1100</pubDate>
</item>
<item>
<title>Intel HD4000 has no DVI output</title>
<link>http://www.memecode.com/news.php?id=865&amp;comments=1</link>
<description>Symptoms: Windows 7 boots up, shows the splash and then the 
monitor goes to sleep.&lt;br&gt;
&lt;br&gt;
Problem: The DVI display is not detected, however there is 
output available on the HDMI port.&lt;br&gt;
&lt;br&gt;
Solution: Unplug and re-plug the DVI port.&lt;br&gt;
&lt;br&gt;
(omg indeed)</description>
<guid isPermaLink="true">http://www.memecode.com/news.php?id=865</guid>
<pubDate>Tue, 15 Jan 2013 07:27:53 +1100</pubDate>
</item>
<item>
<title>Python's .py Windows Association</title>
<link>http://www.memecode.com/news.php?id=855&amp;comments=1</link>
<description>Posting for future reference:&lt;br&gt;
&lt;a href='http://stackoverflow.com/questions/2640971/windows-is-not-passing-command-line-arguments-to-python-programs-executed-from-t'&gt;Windows is not passing command line arguments to Python programs executed from the shell&lt;/a&gt;.
&lt;p&gt;
This solved my problem with passing arguments to python scripts without invoking the python binary first.</description>
<guid isPermaLink="true">http://www.memecode.com/news.php?id=855</guid>
<pubDate>Fri, 12 Oct 2012 01:36:38 +1100</pubDate>
</item>
<item>
<title>Converting audio samples to dB and back</title>
<link>http://www.memecode.com/news.php?id=845&amp;comments=1</link>
<description>I've been writing a tool to normalize lots of audio files at once, as well as convert between various loss-less formats (particularly FLAC and WAV). In doing that I needed a way of converting between the raw audio sample maximum and dB. So I present to you my C functions for doing so:
&lt;pre&gt;double LinearToDb(int32 linear, int bitDepth)
{
    uint32 MaxLinear = (1 &lt;&lt; (bitDepth - 1)) - 1;
    uint32 ab = linear &gt;= 0 ? linear : -linear;
    return log10((double)ab / MaxLinear) * 20.0;
}

int32 DbToLinear(double dB, int bitDepth)
{
    uint32 MaxLinear = (1 &lt;&lt; (bitDepth - 1)) - 1;
    double d = pow(10, dB / 20);
    return d * MaxLinear;
}&lt;/pre&gt;

Another code snippit for Google to index.</description>
<guid isPermaLink="true">http://www.memecode.com/news.php?id=845</guid>
<pubDate>Thu, 26 Apr 2012 19:28:43 +1000</pubDate>
</item>
<item>
<title>XCode: error from debugger: the program being debugged is not being run.</title>
<link>http://www.memecode.com/news.php?id=835&amp;comments=1</link>
<description>If you are getting this in your XCode run log:
&lt;pre&gt;Running...
No executable file specified.
Use the &quot;file&quot; or &quot;exec-file&quot; command.
No executable file specified.
Use the &quot;file&quot; or &quot;exec-file&quot; command.
The program being debugged is not being run.
The program being debugged is not being run.&lt;/pre&gt;

After copying a project and renaming everything... then you missed the 
&quot;executable name&quot; on the target. Click your Target, and &quot;Get Info&quot;, then click 
the Properties tab, and rename the Executable to the same name as the 
Product Name in the Build settings.</description>
<guid isPermaLink="true">http://www.memecode.com/news.php?id=835</guid>
<pubDate>Sun, 15 Apr 2012 07:55:57 +1000</pubDate>
</item>
<item>
<title>DeleteFile failure on long paths.</title>
<link>http://www.memecode.com/news.php?id=825&amp;comments=1</link>
<description>Symptom: &lt;a href=&quot;http://msdn.microsoft.com/en-
us/library/windows/desktop/aa363915(v=vs.85).aspx&quot;&gt;DeleteFile&lt;/a&gt; fails with ERROR_PATH_NOT_FOUND (3) when passed a path with a length greater than 260 characters.
&lt;p/&gt;
This manifested for me when I copied a Windows XP home folder to a backup drive. The &quot;Temporary Internet File&quot; folder contains a lot of files with very long names. When you put those in a sub-folder with a long name, the total path length of those files tips over the 260 character 
limit. At that point Windows Explorer just fails to do anything useful on those files. In my case I just want to delete them. So I was poking around with i.File in an attempt to work out why these files can't be deleted. Turns out DeleteFile simply fails with super long paths.
&lt;p/&gt;
The way around this is to share the drive with the long paths on it. Then map a drive to a deep sub-folder to reduce the file's path length to under 260 characters. THEN delete it using traditional methods.</description>
<guid isPermaLink="true">http://www.memecode.com/news.php?id=825</guid>
<pubDate>Fri, 09 Mar 2012 07:10:42 +1100</pubDate>
</item>
<item>
<title>Mac OS X Software Update fails to update installed application.</title>
<link>http://www.memecode.com/news.php?id=815&amp;comments=1</link>
<description>I've just managed to &quot;fix&quot; an issue that I was seeing on 10.6 where Software 
Update would not update Logic Express. According to Software Update, Logic 
wasn't even installed, however the app was there in /Applications and would 
run fine.&lt;br&gt;
&lt;br&gt;
It seems that getting Software Update to re-scan that app is as simple as 
renaming the app. I changed the name of Logic Express from &quot;Logic Express 
9.0.1&quot; to just &quot;Logic Express&quot;, ran Software Update again and the latest 
release for Logic magically appeared. Hmmm.&lt;br&gt;
&lt;br&gt;
So the next time Software Update is ignoring your installed apps you know 
what to do!</description>
<guid isPermaLink="true">http://www.memecode.com/news.php?id=815</guid>
<pubDate>Tue, 21 Feb 2012 07:02:00 +1100</pubDate>
</item>
<item>
<title>iconv v1.9.1 win32/win64</title>
<link>http://www.memecode.com/news.php?id=805&amp;comments=1</link>
<description>I've posted a source and binaries zip of iconv for win32 and 
win64 on the &lt;a href=&quot;libs.php&quot;&gt;Libraries&lt;/a&gt; page.</description>
<guid isPermaLink="true">http://www.memecode.com/news.php?id=805</guid>
<pubDate>Sat, 12 Nov 2011 12:24:28 +1100</pubDate>
</item>
<item>
<title>Axefx Foot Controller</title>
<link>http://www.memecode.com/news.php?id=795&amp;comments=1</link>
<description>After some months of work I've finally got my Axefx foot controller kit up for &lt;a href=&quot;http://www.memecode.com/hw/mc1&quot;&gt;sale&lt;/a&gt;. I've updated the index page to have both software and hardware sections... because apparently I do hardware too now :)</description>
<guid isPermaLink="true">http://www.memecode.com/news.php?id=795</guid>
<pubDate>Wed, 22 Jun 2011 05:59:43 +1000</pubDate>
</item>
</channel>
</rss>
