<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>C on Noetic Nought</title>
    <link>https://punchagan.muse-amuse.in/tags/c/</link>
    <description>Recent content in C on Noetic Nought</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <copyright>© 2006-2026 CC-BY-SA-4.0</copyright>
    <lastBuildDate>Mon, 04 Aug 2014 16:10:41 -0400</lastBuildDate>
    <atom:link href="https://punchagan.muse-amuse.in/tags/c/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Recurse Center, 2014-08-03</title>
      <link>https://punchagan.muse-amuse.in/recurse-center/recurse-center-2014-08-03/</link>
      <pubDate>Mon, 04 Aug 2014 16:10:41 -0400</pubDate>
      <guid>https://punchagan.muse-amuse.in/recurse-center/recurse-center-2014-08-03/</guid>
      <description>&lt;h2 id=&#34;friday&#34;&gt;Friday&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;On Friday, I didn&amp;rsquo;t do the exercises that everyone else doing job prep were&#xA;doing.  I wanted to continue writing C code, and continued to work on the&#xA;&lt;code&gt;bencode&lt;/code&gt; parser in C.  I barely was able to finish adding support for lists.&lt;/li&gt;&#xA;&lt;li&gt;I got comfortable using Valgrind, in the process of debugging a stupidity of&#xA;not using &lt;code&gt;realloc&lt;/code&gt; correctly.&lt;/li&gt;&#xA;&lt;li&gt;What I was able to write with Python in an hour or so, I have been writing&#xA;for about a day, in C, and haven&amp;rsquo;t yet finished it!  It definitely doesn&amp;rsquo;t&#xA;help that my C is very rusty&amp;hellip;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;saturday-and-sunday&#34;&gt;Saturday &amp;amp; Sunday&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I didn&amp;rsquo;t work much, and went around New York with Madhu.  We went to quite&#xA;a few places around here, the highlight being, the view of Manhattan&amp;rsquo;s&#xA;skyline from the Staten Island Ferry.&lt;/li&gt;&#xA;&lt;li&gt;NYC&amp;rsquo;s library also had an interesting exhibhition on the history of&#xA;America, just before and during WW-I.&lt;/li&gt;&#xA;&lt;li&gt;On Sunday, I tried out Mary TTS on the raspberry pi, and it is simply&#xA;unusable.&lt;/li&gt;&#xA;&lt;li&gt;I then, started writing a simple wrapper around Google&amp;rsquo;s tts that is used&#xA;by Google translate.&lt;/li&gt;&#xA;&lt;li&gt;The TTS part is more or less working right now, the next step would be to&#xA;deploy it on the RaspberryPi and start using it as a radio, to see what my&#xA;needs are like. Hooking it up to &lt;a href=&#34;https://github.com/jasperproject/jasper-client&#34;&gt;Jasper client&lt;/a&gt; seems like a good idea,&#xA;right now&amp;hellip; though I&amp;rsquo;m not sure if it would work very well, with the pi&amp;rsquo;s&#xA;audio output drowning out the voice commands.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;</description>
    </item>
    <item>
      <title>Recurse Center, 2014-07-31</title>
      <link>https://punchagan.muse-amuse.in/recurse-center/recurse-center-2014-07-31/</link>
      <pubDate>Fri, 01 Aug 2014 10:38:57 -0400</pubDate>
      <guid>https://punchagan.muse-amuse.in/recurse-center/recurse-center-2014-07-31/</guid>
      <description>&lt;ul&gt;&#xA;&lt;li&gt;I continued with doing the initial parts of the book, and didn&amp;rsquo;t pair with&#xA;Stephanie today.&lt;/li&gt;&#xA;&lt;li&gt;I gave a super-short presentation, introducing people to &lt;code&gt;pdb&lt;/code&gt;, IPython&amp;rsquo;s&#xA;&lt;code&gt;tracer&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;I just started writing a Bencoding parser in C, but I&amp;rsquo;m having trouble&#xA;thinking about all the memory allocations and stuff.  It feels so&#xA;nostalgic! :P&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;</description>
    </item>
    <item>
      <title>Recurse Center, 2014-07-30</title>
      <link>https://punchagan.muse-amuse.in/recurse-center/recurse-center-2014-07-30/</link>
      <pubDate>Thu, 31 Jul 2014 08:40:16 -0400</pubDate>
      <guid>https://punchagan.muse-amuse.in/recurse-center/recurse-center-2014-07-30/</guid>
      <description>&lt;h2 id=&#34;re--learning-c&#34;&gt;(Re) Learning C&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Stephanie and I worked through the Networking chapter of the book.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;We faced some issues with writing 0 bytes to memory, since most of the code&#xA;was dealing with strings. I still haven&amp;rsquo;t figured out how to do this,&#xA;correctly.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;</description>
    </item>
    <item>
      <title>Recurse Center, 2014-07-29</title>
      <link>https://punchagan.muse-amuse.in/recurse-center/recurse-center-2014-07-29/</link>
      <pubDate>Tue, 29 Jul 2014 11:20:24 -0400</pubDate>
      <guid>https://punchagan.muse-amuse.in/recurse-center/recurse-center-2014-07-29/</guid>
      <description>&lt;h2 id=&#34;hacking-learning-by-breaking-stuff&#34;&gt;Hacking: learning by breaking stuff&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Post lunch, I started pairing with Stephanie on the exercises in the &lt;a href=&#34;http://www.nostarch.com/hacking2.htm&#34;&gt;Hacking&lt;/a&gt;&#xA;book, and that turned out to be super fun!&lt;/li&gt;&#xA;&lt;li&gt;We got through the chapter on exploitation, which focussed on stack&#xA;overflows, heap overflows, overflows in function pointers, and string&#xA;formatting exploits.  It acted as more than a gentle refresher for C, and was&#xA;super fun!&lt;/li&gt;&#xA;&lt;li&gt;Running the examples on a 64bit system, added an additional amount of&#xA;thinking required, and was good, IMO.&lt;/li&gt;&#xA;&lt;li&gt;I hadn&amp;rsquo;t worked along with Stephanie on the material in the first two&#xA;chapters.  So, I went back home and tried to catch up, but couldn&amp;rsquo;t get all&#xA;of it done.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;miscellaneous&#34;&gt;Miscellaneous&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I spent part of the morning wrapping up the install script for the raspberry&#xA;project, and cleaning up the repository.  &lt;a href=&#34;https://github.com/kbeyer/RPi-LED-SpectrumAnalyzer&#34;&gt;It looks reasonable now&lt;/a&gt;, and I&#xA;think I&amp;rsquo;m done with it until the end of HackerSchool.&lt;/li&gt;&#xA;&lt;li&gt;I also tried to look for &amp;ldquo;easy&amp;rdquo; python issues that would involve me writing&#xA;some C code, but didn&amp;rsquo;t really find anything other than documentation&amp;hellip; I&#xA;guess, I should pick a module and look for bugs in it, instead.&lt;/li&gt;&#xA;&lt;li&gt;Also, while chatting with a friend, I had to explain that I don&amp;rsquo;t mention the&#xA;last names of people or link to them, for privacy reasons.  Hacker School is&#xA;particularly careful about not divulging information about who are at Hacker&#xA;School each batch, and I want to keep that tradition.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;</description>
    </item>
    <item>
      <title>Recurse Center, 2014-07-28</title>
      <link>https://punchagan.muse-amuse.in/recurse-center/recurse-center-2014-07-28/</link>
      <pubDate>Mon, 28 Jul 2014 22:23:39 -0400</pubDate>
      <guid>https://punchagan.muse-amuse.in/recurse-center/recurse-center-2014-07-28/</guid>
      <description>&lt;ul&gt;&#xA;&lt;li&gt;There seemed to be excitement in the space to have Jessica around.  We had&#xA;coffee with her, and I chatted with her briefly. She encouraged me to try and&#xA;send a patch to CPython, that involved debugging and fixing some C issues.&lt;/li&gt;&#xA;&lt;li&gt;I spent some time with Tom, while he tried to get &lt;code&gt;cinspect&lt;/code&gt; working for him,&#xA;and it seemed like having the developer next to you, helped.  As always.  We&#xA;didn&amp;rsquo;t make any fixes to the code, but it worked.&lt;/li&gt;&#xA;&lt;li&gt;I spent the afternoon, adding tests for a simple issue, to see how patches are sent.&lt;/li&gt;&#xA;&lt;li&gt;Later, I paired with Sophia for an hour to refactor the vcs code. It&amp;rsquo;s&#xA;beginning to look much better than what it used to, and I like that.&lt;/li&gt;&#xA;&lt;li&gt;Jessica&amp;rsquo;s talk on buffer overflows was enlightening and entertaining. It was&#xA;very similar to a talk that Max gave on one of the thursdays, but it was&#xA;exciting nevertheless.&lt;/li&gt;&#xA;&lt;li&gt;After the talk, I am inspired to try and work through the Hacking: Art of&#xA;exploitation, at some point. I&amp;rsquo;m beginning to feel like time at HackerSchool&#xA;running out!&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;</description>
    </item>
  </channel>
</rss>
