<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0" xmlns:blogChannel="http://backend.userland.com/blogChannelModule">

<channel>
<title>null program comments</title>
<link>http://nullprogram.com</link>
<description>null program comments</description>
<language>en</language>
<pubDate>Thu Mar 11 21:09:33 2010</pubDate>
<lastBuildDate>Fri Mar 12 02:24:42 2010</lastBuildDate>

<item>
<title>BLANKENSHIPJOLENE34 (Unsharp Masking)</title>
<description>&lt;p>
It is known that cash makes us disembarrass. But what to do if one has no money? The one way is to receive the &lt;a href="http://lowest-rate-loans.com/topics/credit-loans" rel="nofollow">credit loans&lt;/a> or student loan. &lt;/p></description>
<guid isPermaLink="true">http://nullprogram.com/comments/sharpen</guid>
<pubDate>Thu Mar 11 21:09:33 2010</pubDate>
</item>

<item>
<title>Chris Wellons (Elisp Running Time Macro)</title>
<description>&lt;p>
I&#39;ve realized that this function could be a lot shorter, cleaner, and more correct just by using &lt;code>float-time&lt;/code>. So I fixed it. Enjoy!
&lt;/p></description>
<guid isPermaLink="true">http://nullprogram.com/comments/lisp-time</guid>
<pubDate>Mon Mar  8 20:43:50 2010</pubDate>
</item>

<item>
<title>Gavin Black (Function Pointers are Special)</title>
<description>&lt;p>
Finally something to replace giving printouts of Whitespace programs to interviewees and asking them to debug it :-D&lt;/p></description>
<guid isPermaLink="true">http://nullprogram.com/comments/func-pointers</guid>
<pubDate>Thu Feb 18 19:22:10 2010</pubDate>
</item>

<item>
<title>Chris Wellons (Wisp Lisp)</title>
<description>&lt;p>
Hmmm, that can only mean that something is passing a size of 0 to &lt;code>realloc()&lt;/code> at some point. It returned &lt;code>NULL&lt;/code> and it was thought to be an error.
&lt;/p>&lt;p>
That&#39;s the kind of stuff I&#39;m working on ironing out right now. The number of defined functions will expand once I have the core pretty solid. I look forward to the point where I&#39;m just adding interesting language features, exposing interesting library interfaces, and optimizing things.
&lt;/p>&lt;p>
I&#39;m also nearing the point where I can start benchmarking its performance. Right now it seems to be on par with non-compiled Emacs lisp. However, I have the advantage of much fewer language features.
&lt;/p></description>
<guid isPermaLink="true">http://nullprogram.com/comments/wisp</guid>
<pubDate>Mon Jan 25 11:54:53 2010</pubDate>
</item>

<item>
<title>Gavin Black (Wisp Lisp)</title>
<description>&lt;p>
Seems to be working for me, I just tried a few little programs (fibonacci, hello world, etc.)  &lt;br />
It can crash pretty spectacularly if you try something that&#39;s not defined though.  &lt;br />
For example I tried using &quot;or&quot; and got: &lt;br />
  &quot;error: fatal: out of memory: Success&quot;
&lt;/p>&lt;p>

&lt;/p></description>
<guid isPermaLink="true">http://nullprogram.com/comments/wisp</guid>
<pubDate>Mon Jan 25 06:39:25 2010</pubDate>
</item>

<item>
<title>Ozgur (SWF Decompression Perl One-liner)</title>
<description>&lt;p>
For completeness sake, let me also add the &quot;php one liner&quot; version of this tip here:
&lt;/p>&lt;p>
php -r &quot;print(gzuncompress(substr(file_get_contents($argv[1]), 8)));&quot; swf_original.swf &gt; swf_decompressed.swf
&lt;/p>&lt;p>
Disclaimers:
- Tried this on Windows version of php 5.2.6 (I know some command line parameters/syntax are different b/w Linux, and Windows)
- Assumes &quot;zlib&quot; module is &quot;compiled in&quot; which was the case in my binary distribution.
&lt;/p>&lt;p>
BTW, the reasons I tried this were:
- As I said in my first comment, you may have certain tools (php) but not others (perl)
- When I tried the original perl one-liner for a particular flash file, [I think] the Perl ZLib module choked, and did not produce any output (I had version 1.34 from 30 January 2005 - newer versions might fare better).
&lt;/p>&lt;p>
 Özgür
&lt;/p></description>
<guid isPermaLink="true">http://nullprogram.com/comments/decswf</guid>
<pubDate>Mon Dec 28 23:27:37 2009</pubDate>
</item>

<item>
<title>Chris Wellons (SWF Decompression Perl One-liner)</title>
<description>&lt;p>
Ah, I see. I didn&#39;t notice it before. Thanks for pointing it out. Glad you found your way to the non-damaged version!
&lt;/p></description>
<guid isPermaLink="true">http://nullprogram.com/comments/decswf</guid>
<pubDate>Wed Dec 23 17:21:40 2009</pubDate>
</item>

<item>
<title>Ozgur (SWF Decompression Perl One-liner)</title>
<description>&lt;p>
This is a pretty neat trick, especially if one (has Perl already available and) doesn&#39;t want to (or even can&#39;t in a particular set up) install utilities to this job.
&lt;/p>&lt;p>
I found your page from the comment you posted on that Java program&#39;s page initially. The problem there however was that the less-than/greater-than symbols were lost in that page&#39;s comment system (as HTML tag delimiters I guess), and the one-liner displayed there doesn&#39;t work &quot;as is&quot; of course. You may want to drop another comment there so that your neat one-liner there doesn&#39;t frustrate people who can&#39;t fix it right away! :)
&lt;/p>&lt;p>
Thanks,
&lt;/p>&lt;p>
 Ozgur&lt;/p></description>
<guid isPermaLink="true">http://nullprogram.com/comments/decswf</guid>
<pubDate>Tue Dec 22 12:58:33 2009</pubDate>
</item>

<item>
<title>Gavin Black (Game of Life in Java)</title>
<description>&lt;p>
Another way to do it, instead of classes, would have been through something similar to Wolfram automata definitions, and have the rules correspond to count. 
&lt;/p>&lt;p>
For example basic Conway Automata could be done by representing the new state as the array:&lt;br />
[0, 0, 0, 1, 0, 0, 0, 0, 0,&lt;br />
 0, 0, 1, 1, 0, 0, 0, 0, 0 ]&lt;br />
&lt;/p>&lt;p>
Similarly the growth one could be:&lt;br />
[0, 0, 0, 1, 0, 0, 0, 0, 0&lt;br />
 0, 0, 2, 2, 0, 0, 0, 0, 0,&lt;br />
 1, 1, 3, 3, 1, 1, 1, 1, 1, &lt;br />
 2, 2, 3, 3, 2, 2, 2, 2, 2 ]&lt;br />
&lt;/p>&lt;p>
Then:&lt;br />
 let s = current_state&lt;br />
 let n = alive_neighbors&lt;br />
 =&gt; new_state = set[ s*8 +n ];&lt;br />
&lt;/p>&lt;p>
The only nice thing about this is you can dynamically modify how they behave without writing new code for each cell type.  This is how the &lt;a href="http://devrand.org/show_item.html?item=106&amp;page=Project" rel="nofollow">Wolfram Automata&lt;/a> I toyed with a while back worked, it modified the ruleset based on the Fast Fourier Transform averages of the audio.&lt;/p></description>
<guid isPermaLink="true">http://nullprogram.com/comments/game-of-life-java</guid>
<pubDate>Tue Dec 15 11:10:13 2009</pubDate>
</item>

<item>
<title>Gavin Black (Iterated Prisoner's Dilemma)</title>
<description>&lt;p>
Very cool! I haven&#39;t looked through your old posts before, looks like there is alot of neat code. After the semester is over I&#39;ll have to try to run some of these :)&lt;/p></description>
<guid isPermaLink="true">http://nullprogram.com/comments/prison</guid>
<pubDate>Sun Dec 13 15:44:23 2009</pubDate>
</item>

<item>
<title>Safy (Linear Spatial Filters with GNU Octave)</title>
<description>&lt;p>
Thnx for the reply
&lt;/p>&lt;p>
i will work on it&lt;/p></description>
<guid isPermaLink="true">http://nullprogram.com/comments/octave-spatial</guid>
<pubDate>Sat Dec 12 19:50:44 2009</pubDate>
</item>

<item>
<title>Chris Wellons (Linear Spatial Filters with GNU Octave)</title>
<description>&lt;p>
Glad you enjoyed it.
&lt;/p>&lt;p>
Octave/Matlab won&#39;t magically pad your array for you when you&#39;re indexing it. You have to check, in your loops, if the index is outside the bounds of the array, and if so, substitute 0 (for zero padding). Or you could modify the array to add the padding beforehand, and only convolve on the middle; the &lt;code>padarray&lt;/code> function I had mentioned can do this for you.
&lt;/p></description>
<guid isPermaLink="true">http://nullprogram.com/comments/octave-spatial</guid>
<pubDate>Sat Dec 12 12:00:31 2009</pubDate>
</item>

<item>
<title>Safy (Linear Spatial Filters with GNU Octave)</title>
<description>&lt;p>
Hello,
&lt;/p>&lt;p>
this is a very nice explanation for applying Mask Filter in spatial domain, 
&lt;/p>&lt;p>
i am making a same program for applying average filter(blur)
but i am using 2 FOR loops to apply the mask pixel by pixel.
i am having a problem in zero padding, i am using 3x3 mask, when the mask tries to convolve outside the boundry of input image then matlab gives error that &quot;Subscript Indices Must Either Be Real Positive Integers Or Logicals&#39;
&lt;/p>&lt;p>
i wuould be very thankfull if u help me with this or send me coding of a working sample program 
&lt;/p>&lt;p>
Regards,
Sh.Safy&lt;/p></description>
<guid isPermaLink="true">http://nullprogram.com/comments/octave-spatial</guid>
<pubDate>Sat Dec 12 09:00:04 2009</pubDate>
</item>

<item>
<title>Gavin Black (Tweaking Emacs for Ant and Java)</title>
<description>&lt;p>
A very similar effect can be achieved with a real editor using &lt;a href="http://www.vim.org/scripts/script.php?script_id=155" rel="nofollow">ant_menu.vim plugin&lt;/a>.  You simply copy it to $VIM_HOME/plugins and then: ,b to build; ,f to find; ,t to build a target; etc. All of which go into a separate buffer on a split screen.  &lt;br />&lt;br />You can run the program using &lt;b>:!whatever_command&lt;/b>.  Or if you want to be fancy and run it in it&#39;s own buffer you could do &lt;b>:e name&lt;/b> then &lt;b>:%!whatever_command&lt;/b>.
&lt;/p>&lt;p>
&lt;/p></description>
<guid isPermaLink="true">http://nullprogram.com/comments/ant-emacs</guid>
<pubDate>Tue Dec  8 04:57:37 2009</pubDate>
</item>

<item>
<title>Chris Wellons (Comments Upgrade with Avatars)</title>
<description>&lt;p>
I actually swiped that image &lt;a href="http://en.wikipedia.org/wiki/File:Spam_with_cans.jpeg" rel="nofollow">right from Wikipedia&lt;/a>, which is indicated, as required, by mousing over the image to see the image&#39;s title attribute. Thanks to the Free licensing Wikipedia uses I can do this without risking some kind of Fair Use/copyright infringement thing.
&lt;/p></description>
<guid isPermaLink="true">http://nullprogram.com/comments/comments-upgrade</guid>
<pubDate>Mon Dec  7 14:23:54 2009</pubDate>
</item>

</channel>
</rss>