<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Craig&apos;s Stuff</title>
    <link rel="alternate" type="text/html" href="http://www.enc.com.au/sees-blog/" />
    <link rel="self" type="application/atom+xml" href="http://www.enc.com.au/sees-blog/atom.xml" />
    <id>tag:www.enc.com.au,2010-01-01:/sees-blog//1</id>
    <updated>2010-07-12T12:58:58Z</updated>
    <subtitle>Just a bunch of posts that do not to seem to fit anywhere else on the internet.</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.34-en</generator>

<entry>
    <title>Manually calculating process times</title>
    <link rel="alternate" type="text/html" href="http://www.enc.com.au/sees-blog/2010/07/manually-calculating-process-times.html" />
    <id>tag:www.enc.com.au,2010:/sees-blog//1.29</id>

    <published>2010-07-12T12:06:18Z</published>
    <updated>2010-07-12T12:58:58Z</updated>

    <summary>Most of the time you can trust the times you see in programs such as ps and top within Linux, but there are those other times where you just want to check what is going on.First up, if you&apos;re using...</summary>
    <author>
        <name>Craig</name>
        
    </author>
    
        <category term="Software" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="linux" label="Linux" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="procfs" label="Procfs" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.enc.com.au/sees-blog/">
        <![CDATA[Most of the time you can trust the times you see in programs such as ps and top within <a class="zem_slink" href="http://en.wikipedia.org/wiki/Linux" title="Linux" rel="wikipedia">Linux</a>, but there are those other times where you just want to check what is going on.<br /><br />First up, if you're using a <a class="zem_slink" href="http://www.freebsd.org/" title="FreeBSD" rel="homepage">FreeBSD</a> system and the procps Linux tools, you're out of luck because a lot of the procfs is broken.&nbsp; You're almost guaranteed to get wierd results.<br /><br /><b><font style="font-size: 1.25em;">Jiffies and Hertz</font></b><br />The first thing to find is your jiffies.&nbsp; This is the number of clock ticks per second.&nbsp; There are two main ways of doing it.<br /><br />The first, and more difficult way is to add up the cpu numbers in /proc/stat, divide it by the first number in /proc/uptime and divide it by the number of cpus.<br /><br />My cpu line in /proc/stat looks like:<br /><blockquote>cpu&nbsp; 1267430 145826 552700 137029699 905086 8295 17885 0 0<br /></blockquote><br />and my /proc/uptime is:<br /><blockquote>695317.99 1370303.58<br /></blockquote><br />I've got 2 cpus on this system so the calculation is:<br /><br /><blockquote>(1267430&nbsp; + 145826 + 552700 + 137029699 + 905086 + 8295&nbsp; + 17885 + 0 + 0 )&nbsp; / 695317.99 / 2<br /></blockquote>which equals 100.<br /><br />The second way is to use getconf, with the command "getconf CLK_TCK" which again on this system gives you 100.<br /><br />We call this value "Hertz" and is usually 100 or 1024 though for some architectures it is other values.<br /><br /><b><font style="font-size: 1.25em;">Start Time</font></b><br />For each process the procfs has the start time, but it is expressed as the number of jiffes since the computer was booted.&nbsp; If we want to know the real "wall clock" time a process is started we have to start with number of seconds since epoch (for example using the time() function) subtract the number of seconds since the computer was booted and add the process start time from procfs.<br /><br />The seconds since boot is the first value in /proc/uptime:<br /><blockquote><b>696141.85</b> 1371857.53<br /></blockquote><br />The 22nd item in a procfs PID stat file is the number of jiffes since boot when the process started. We have to divide it by Hertz to calculate the number of seconds.<br />27139 (bash) S 11942 27139 27139 34821 5200 4202496 5500 25537 0 14 40 16 18 15 20 0 1 0 <b>69446639</b> 23433216 1378 18446744073709551615 4194304 5082140 14073724008 6512 140737240085456 140127945249678 0 65536 3686404 1266761467 0 0 0 17 1 0 0 0 0 0<br /><br />To get the start time, take the current time, subtract the boot time and add the process start time.<br /><blockquote>perl -e '$nowstr = localtime(time() - 696141.85 + 69446639 / 100); print $nowstr, "\n";<br /></blockquote><blockquote>Mon Jul 12 22:20:07 2010<br /></blockquote><br />Unless you are very quick, you will have to take a few seconds off because the time() function will be now, while the values from the proc files will be a few seconds earlier as it takes time for you to cut and paste.<br /><br /><br />

<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=a0668666-23da-4ec4-bee6-48b25fd463c3" /><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div><div style="background: transparent url(chrome://dogears/skin/dogears-bg.png) no-repeat scroll left top; left: 4px; top: 749px; width: 32px; height: 21px; padding-top: 14px; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; color: rgb(0, 0, 0); z-index: 55555; cursor: default; position: absolute; font-family: sans-serif; font-size: 14px; font-weight: bold; text-align: center; opacity: 0.8;" class="dogear-y5" id="dogear-y5-1">1</div>]]>
        
    </content>
</entry>

<entry>
    <title>Book: Do Androids Dream of Electric Sheep?</title>
    <link rel="alternate" type="text/html" href="http://www.enc.com.au/sees-blog/2010/06/book-do-androids-dream-of-electric-sheep.html" />
    <id>tag:www.enc.com.au,2010:/sees-blog//1.27</id>

    <published>2010-06-22T10:32:52Z</published>
    <updated>2010-06-22T10:56:13Z</updated>

    <summary>Actually they&apos;re more interested in freedom, to be no longer slaves to humans. I don&apos;t think it&apos;s any spoiler to mention that an electric sheep does appear in the book.This is a classic science fiction story of a dark not-so-distant...</summary>
    <author>
        <name>Craig</name>
        
    </author>
    
        <category term="Books" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="bladerunner" label="Blade Runner" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="doandroidsdreamofelectricsheep" label="Do Androids Dream of Electric Sheep?" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="literature" label="Literature" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="philipkdick" label="Philip K. Dick" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.enc.com.au/sees-blog/">
        <![CDATA[Actually they're more interested in freedom, to be no longer slaves to humans. I don't think it's any spoiler to mention that an <a class="zem_slink" href="http://www.electricsheep.org/" title="Electric Sheep" rel="homepage">electric sheep</a> does appear in the book.<br /><br />This is a classic <a class="zem_slink" href="http://en.wikipedia.org/wiki/Science_fiction" title="Science fiction" rel="wikipedia">science fiction</a> story of a dark not-so-distant future.&nbsp; In fact given that it's over 40 years old it could be set in some alternate now.&nbsp; Some disaster has occurred and many have either left earth or died.&nbsp; Some andriods, or andys have escaped and bounty hunters are after them.<br /><br />You may not know the book by its correct title, but you may of heard the movie that is based upon it, called <a class="zem_slink" href="http://www.imdb.com/title/tt0083658/" title="Blade Runner" rel="imdb">Blade Runner</a>.&nbsp; Like most movies based on books, it takes some of the concepts and ideas of the book but in my opinion is a pale imitation.<br /><br />I'm glad I read this book. It hasn't aged that much and it's very though provoking.&nbsp; Sci-Fi often uses some alternate reality to put a mirror up to what happens in the real world and this book is no exception.<br /><br />

And a token link to <a class="autolink" href="http://www.debian.org/">Debian</a>, if you want you own electric sheep you can install the screensaver <a href="http://packages.debian.org/sid/electricsheep">electricsheep</a> package which draw pretty <a class="zem_slink" href="http://en.wikipedia.org/wiki/Fractal" title="Fractal" rel="wikipedia">fractals</a> on your screen.<br /><br /><fieldset class="zemanta-related"><legend class="zemanta-related-title">Related articles by Zemanta</legend><ul class="zemanta-article-ul"><li class="zemanta-article-ul-li"><a href="http://www.huffingtonpost.com/2010/04/30/philip-k-dick-journals-to_n_558358.html">Philip K. Dick Journals To Be Published In 2011</a> (huffingtonpost.com)</li><li class="zemanta-article-ul-li"><a href="http://kottke.org/10/03/philip-k-dick-on-blade-runner">Philip K. Dick on Blade Runner</a> (kottke.org)</li></ul></fieldset>

<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=8d151aeb-ad69-49b9-a06d-46f84791cf7c" /><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>]]>
        
    </content>
</entry>

<entry>
    <title>Helping Free Software: Translations</title>
    <link rel="alternate" type="text/html" href="http://www.enc.com.au/sees-blog/2010/06/helping-free-software-translations.html" />
    <id>tag:www.enc.com.au,2010:/sees-blog//1.26</id>

    <published>2010-06-20T03:32:13Z</published>
    <updated>2010-06-20T04:04:27Z</updated>

    <summary>Well the latest version of PSmisc is almost finished, so I pushed the tar archive up to the spot for the translators, waiting for the updates before it gets released.It reminded me that perhaps a lot of people don&apos;t know...</summary>
    <author>
        <name>Craig</name>
        
    </author>
    
        <category term="Software" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="debian" label="Debian" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="multiplelanguage" label="Multiple Language" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.enc.com.au/sees-blog/">
        <![CDATA[Well the latest version of <a href="http://psmisc.sf.net/">PSmisc</a> is almost finished, so I pushed the <a class="zem_slink" href="http://www.gnu.org/software/tar/" title="Tar (file format)" rel="homepage">tar archive</a> up to the spot for the translators, waiting for the updates before it gets released.<br /><br />It reminded me that perhaps a lot of people don't know how their programs get translated. Perhaps there are some that could even contribute.&nbsp; The nice thing about the translation systems is that you don't need to know programming to help.<br /><br /><a class="autolink" href="http://psmisc.sourceforge.net/ ">PSmisc</a> uses the <a href="http://translationproject.org/">translation project</a> as its method.&nbsp; The program itself uses gettext for the translation part which makes a single text file called a POT file.&nbsp; A translator takes this text file and makes a po file, such as it.po for the Italian translation and then translates, which basically means editing the file, reading each first line of a set and writing the translation on the second line.<br /><br />For the programmer, once it is setup it is pretty simple to use, just mark your translatable lines and follow some simple rules, mainly about not embedding too much in a string.&nbsp; I've used this system for years for quite a few of my programs and there is little added work for me.<br /><br />Unfortunately,&nbsp; translating is hard work and should be a long-term commitment.&nbsp; Having a look at the translation project's Translation Matrix and you can see that some languages do suffer, though there are some very good results there too.&nbsp; Particular kudos goes to the <a href="http://translationproject.org/team/vi.html">Vietnamese group</a> which I think is just Clytie who does a marvellous job and is often the first translation file I get.<br /><br />For the <a class="zem_slink" href="http://www.debian.org/" title="Debian" rel="homepage">Debian</a> project, there are many places where translations can occur.&nbsp; There doesn't seem to be a centralised place for this, but some of the places they use translation work are:<br /><ul><li><a href="http://www.debian.org/devel/website/translating">Translating The Debian website</a></li><li><a href="http://www.debian.org/international/l10n/ddtp">Debian Description Translation Project</a></li><li><a class="autolink" href="http://www.debian.org/">Debian</a> <a href="http://www.debian.org/international/l10n/">debconf</a> (configuration questions when you install packages)</li><li><a href="http://wiki.debian.org/ProjectNews/HowToContribute#TranslatingtheDebianProjectNews">Translating Debian News</a></li></ul><br />

<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=c01b8c80-0eb7-40fe-95de-d49bbb00ae0b" /><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>]]>
        
    </content>
</entry>

<entry>
    <title>Australian Internet Censorship and Data Retention</title>
    <link rel="alternate" type="text/html" href="http://www.enc.com.au/sees-blog/2010/06/australian-internet-censorship-and-data-retention.html" />
    <id>tag:www.enc.com.au,2010:/sees-blog//1.25</id>

    <published>2010-06-15T10:52:48Z</published>
    <updated>2010-06-15T11:30:15Z</updated>

    <summary><![CDATA[Just going on how they treat matters regarding the internet, it seems that the current Australian government is trying to beat the previous government's poor record.&nbsp; Where the previous government seemed to think the internet a scary and unimportant thing...]]></summary>
    <author>
        <name>Craig</name>
        
    </author>
    
        <category term="Civil Liberties" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="censorship" label="Censorship" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="contentfiltering" label="Content Filtering" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.enc.com.au/sees-blog/">
        <![CDATA[Just going on how they treat matters regarding the internet, it seems that the current <a class="zem_slink" href="http://en.wikipedia.org/wiki/Government_of_Australia" title="Government of Australia" rel="wikipedia">Australian government</a> is trying to beat the previous government's poor record.&nbsp; Where the previous government seemed to think the internet a scary and unimportant thing that they didn't really understand and therefore ignored it, the current government seems to be trying to do something, but like a lot of other things they do, do something badly.<br /><br /><b><font style="font-size: 1.25em;">Internet Filtering</font></b><br />One of their bright ideas is to censor the internet, by putting some rather large filters right in the middle of all the ISPs.&nbsp; Supposedly this is going to protect the children, though other than some mad ranting by Senator Conroy he hasn't said which children or how.<br /><br />The clearest information is that it will block Refused Content or RC rated information.&nbsp; The problem with this is there is no clear definition what this is.&nbsp; With no clear boundary you can get what is "scope creep".&nbsp; Bit by bit, each group with their own agenda will try to get whatever they don't like banned.&nbsp; Some will fail, but others will get their little set of demons onto the list.<br /><br />From "<a class="zem_slink" href="http://en.wikipedia.org/wiki/Children_Overboard_Affair" title="Children Overboard Affair" rel="wikipedia">children overboard</a>" to the <a href="http://www.theregister.co.uk/2010/05/19/wikileaks_passport/">strange siezure of the wikileaks founder's passport</a> when he returned to Australia, you can never trust the government fully. As the filter list will be a closed list, who is to say if it is right a particular webpage or website should be banned?&nbsp; Books or films that are banned are known, you can find out what they are and why.&nbsp; A proper discussion and review can then be undertaken.&nbsp; By contrast, you won't even know something is banned unless you try to visit it.<br /><br />I've personally seen the "<a class="zem_slink" href="http://en.wikipedia.org/wiki/Golden_Shield_Project" title="Golden Shield Project" rel="wikipedia">great firewall of china</a>".&nbsp; What is filtered is often arbitary, though anything that is embarassing to the government is filtered.&nbsp; It slows a lot of sites down and makes others look strange.&nbsp; Do you really what to live in a country where the government decides what ideas should be seen?&nbsp; Or even a country that places like China can point to and say they are doing the same thing, so its all ok?<br /><br /><b><font style="font-size: 1.25em;">Data Retention</font></b><br />The next bright idea by the government is to make ISPs keep 10 years of internet browsing history of all their users.&nbsp; This would be like tapping everyone's phone, just in case you did something wrong in the next 10 years.<br /><br />There hasn't been much detail about this proposal but let's assume for a moment that it keeps URLs.&nbsp; Now of course most people's internet addresses move around, so you will also need to keep some sort of log of which account used what address for the same time.<br /><br />The URLs will tell the government which websites you have visited, but URLs also tell them which pages you visited.&nbsp; You can also often assume which pages you read and which you didn't because of the time between this viewed page and the next.<br /><br />Search engine queries are also encoded into a url. Google searches usually have something at the end of the url which is what you were searching for.&nbsp; There is also a chain of visited pages, so someone looking at a log could see your search, you go to a site, perhaps you then visit a banking or paypal site (have you bought something now?)<br /><br />Even if you think you have nothing to worry about what the government might do with this information, including future governments, this information has to sit somewhere.&nbsp; Data sitting around for 10 years has 10 years time of being stolen or copied.&nbsp; Perhaps some activists obtain this log and publish a list of names of people who visited a particular website.<br /><br />There is current laws for lawful interception.&nbsp; This is where the police or another security agency goes to the court and says a particular person has done certain bad things and asks if they can intercept their internet traffic.&nbsp; It's the same rules if they want to tap your phone.&nbsp; Except for "fishing trips" where police just randomly look at information from anyone hoping to trip up on something, what is this system going to be used for?<br /><br /><b><font style="font-size: 1.25em;">What can you do?</font></b><br />If you're not happy about either, or both, of these new proposals, it is time to do something about it. Visit the website <a href="http://openinternet.com.au/">Open Internet Website</a> for what you can do.&nbsp; One of the things is to <br /><div><a href="http://www.timetotellmum.com/">t</a><a href="http://www.timetotellmum.com/">ell you mum about internet censorship</a> which has a funny message from comedian Akmahl Saleh that also has an important side.<br /><br />Most of important of all, don't let these proposals become law because of apathy!<br /><br /></div><fieldset class="zemanta-related"><legend class="zemanta-related-title">Related articles by Zemanta</legend><ul class="zemanta-article-ul"><li class="zemanta-article-ul-li"><a href="http://spectrum.ieee.org/telecom/internet/censorship-down-under">Censorship Down Under</a> (spectrum.ieee.org)</li><li class="zemanta-article-ul-li"><a href="http://r.zemanta.com/?u=http%3A//abcnews.go.com/International/wireStory%3Fid%3D10852133&amp;a=19157928&amp;rid=939cd59a-fc3e-4204-bc82-d05a6f9d48aa&amp;e=9933240042dab67ab2d7f24f4a265fbd">China Says Will Keep Blocking Online Content</a> (abcnews.go.com)</li><li class="zemanta-article-ul-li"><a href="http://www.inquisitr.com/75203/australian-censorship-minister-claims-people-under-attack-from-spams-through-the-portal/">Australian Censorship Minister Claims People Under Attack From "Spams Through The Portal"</a> (inquisitr.com)</li><li class="zemanta-article-ul-li"><a href="http://yro.slashdot.org/story/10/06/11/0645249/Australian-Govt-Seeks-To-Record-Citizens-Web-Histories">Australian Gov't Seeks To Record Citizens' Web Histories</a> (yro.slashdot.org)</li></ul></fieldset>

<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=939cd59a-fc3e-4204-bc82-d05a6f9d48aa" /><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>]]>
        
    </content>
</entry>

<entry>
    <title>Does your program use gethostbyname() ?</title>
    <link rel="alternate" type="text/html" href="http://www.enc.com.au/sees-blog/2010/06/does-your-program-use-gethostbyname.html" />
    <id>tag:www.enc.com.au,2010:/sees-blog//1.24</id>

    <published>2010-06-13T04:30:32Z</published>
    <updated>2010-06-13T04:46:07Z</updated>

    <summary><![CDATA[There has been some discussion on the Debian IPv6 list about how the function gethostbyname() has changed.&nbsp; The manual page says this function is obsolete and with good reason.A new feature of the function is that if a hostname has...]]></summary>
    <author>
        <name>Craig</name>
        
    </author>
    
        <category term="Software" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="ipv6" label="IPv6" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.enc.com.au/sees-blog/">
        <![CDATA[There has been some discussion on the <a href="http://lists.debian.org/debian-ipv6/2010/05/msg00000.html">Debian IPv6 list</a> about how the function gethostbyname() has changed.&nbsp; The manual page says this function is obsolete and with good reason.<br /><br />A new feature of the function is that if a hostname has both <a class="zem_slink" href="http://en.wikipedia.org/wiki/IPv4" title="IPv4" rel="wikipedia">IPv4</a> and IPv6 entries then the order of the return values is not predefined.&nbsp; In fact it used to be you'd get the IPv4 addresses first, then the IPv6.&nbsp; That has now changed and with the more recent <a class="zem_slink" href="http://www.gnu.org/software/libc" title="GNU C Library" rel="homepage">glibc</a> you will get an IPv6 address first.&nbsp; Quite often old code doesn't even check the address family or the size of address structure but just copies the relevant 4 bytes.&nbsp; You then get the first part of an 16-byte IPv6 address wedged into a 4-byte IPv4 address structure which basically means you get a mess.<br /><br />The fix is pretty simple by changing the system call from gethostbyname() and using getaddrinfo() instead.&nbsp; If you only want the IPv4 addresses, perhaps because other parts of the code have not been checked or changed, then set the hints variable to return only IPv4 addresses.<br /><br />If one of your packages is starting to play up and unable to connect to certain remote places and is instead trying to get to some "random" address, have a quick check for gethostbyname(). A quick grep across the source code may save a lot of debugging time.<br /><br />&nbsp;<br /><br /><br /><br /><br />

<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=4b1d46cf-74d1-42fb-804d-2d90a64d5092" /><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>]]>
        
    </content>
</entry>

<entry>
    <title>JFFNMS 0.8.5  released</title>
    <link rel="alternate" type="text/html" href="http://www.enc.com.au/sees-blog/2010/05/jffnms-085-released.html" />
    <id>tag:www.enc.com.au,2010:/sees-blog//1.23</id>

    <published>2010-05-09T10:40:28Z</published>
    <updated>2010-05-09T10:45:01Z</updated>

    <summary><![CDATA[After my usual battle with PHP and database exports, jffnms 0.8.5 is now released. This program is a network management system written in PHP.&nbsp; The worst part about the whole maintaining process for it would have to be is the...]]></summary>
    <author>
        <name>Craig</name>
        
    </author>
    
        <category term="Software" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="php" label="PHP" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.enc.com.au/sees-blog/">
        <![CDATA[After my usual battle with <a class="zem_slink" href="http://www.php.net/" title="PHP" rel="homepage">PHP</a> and database exports, <a class="autolink" href="http://www.jffnms.org/">jffnms</a> 0.8.5 is now released. This program is a network management system written in PHP.&nbsp; The worst part about the whole maintaining process for it would have to be is the release.<br /><br />Why is it so difficult to track changes within a database and PHP code? You don't get that nice compile-time versus run-time error problems and the database is just diabolical to keep up to date with what you have changed.&nbsp; Someone needs to invent a git for database states!<br /><br />Looking around other PHP based programs, I don't think anyone else has solved this issue. Well, its out there, enjoy it or not and if you have comments about the program let me know.<br />

<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=4c734494-33f4-43dc-8949-9157e42a0ceb" /><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>]]>
        
    </content>
</entry>

<entry>
    <title>VMware at last</title>
    <link rel="alternate" type="text/html" href="http://www.enc.com.au/sees-blog/2010/03/vmware-at-last.html" />
    <id>tag:www.enc.com.au,2010:/sees-blog//1.22</id>

    <published>2010-03-12T10:56:06Z</published>
    <updated>2010-03-12T11:09:04Z</updated>

    <summary><![CDATA[Well I suppose its a bit heretical running something such as VMware, but its an important piece of software at my workplace, it also allows me to run some important VMKs or modules.&nbsp; But at first it just wouldn't compile.And...]]></summary>
    <author>
        <name>Craig</name>
        
    </author>
    
        <category term="Software" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="java" label="Java" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="vmware" label="VMware" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.enc.com.au/sees-blog/">
        <![CDATA[Well I suppose its a bit heretical running something such as <a class="zem_slink" href="http://www.vmware.com/" title="VMware" rel="homepage">VMware</a>, but its an important piece of software at my workplace, it also allows me to run some important VMKs or modules.&nbsp; But at first it just wouldn't compile.<br /><br />And then I found this wonderful blog about <a href="http://radu.cotescu.com/2009/10/30/how-to-install-vmware-server-2-0-x-on-ubuntu-9-10-karmic-koala/">Installing VMware on Ubuntu</a> and it worked wonderfully. The author patched the code and it all installed nicely.<br /><br />The next problem was one of the services would not start. Port 8308 would refuse to work and when I went to the management screen and said Service Unavailable.&nbsp; I tracked this down to the <a class="zem_slink" href="http://java.sun.com/" title="Java (programming language)" rel="homepage">Java</a> program dying at socket binding time.<br /><br />The absolute first thing you should check if you are having TCP/IP problems with Java is the sysctl path net.ipv6.bindv6only which you can check with<br />sysctl net.ipv6.bindv6only.<br /><br />If it is 1, it might mean bad Java code network problems. And in fact this time it was the problem, changing it to 0 and the Java daemon started and stayed running and all was good.<br /><br />Incidently if you use the Cisco <a class="zem_slink" href="http://en.wikipedia.org/wiki/Cisco_ASA" title="Cisco ASA" rel="wikipedia">ASA</a> firewall Java client and it dies, use this trick for it too.&nbsp; On <a class="autolink" href="http://www.debian.org/">Debian</a> systems, edit the file /etc/sysctl.d/bindv6only and set that option to 0.&nbsp; I don't think its the fault of the key, but bad Java code (but is there anything but bad Java code?)<br />

<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=6618bda8-36b5-4de0-b98b-f434bdc6106c" /><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>]]>
        
    </content>
</entry>

<entry>
    <title>dh-make updated to 0.52 and its remaining bugs</title>
    <link rel="alternate" type="text/html" href="http://www.enc.com.au/sees-blog/2010/03/dh-make-updated-to-052-and-its-remaining-bugs.html" />
    <id>tag:www.enc.com.au,2010:/sees-blog//1.21</id>

    <published>2010-03-08T02:49:19Z</published>
    <updated>2010-03-08T03:07:00Z</updated>

    <summary><![CDATA[I've made a quick release of dh-make, now up to 0.52.&nbsp; Besides a minor dh_make.1 manual page fix this release will put the right value in the debian/source/format file.&nbsp; 0.51 will make it a native source package no matter what...]]></summary>
    <author>
        <name>Craig</name>
        
    </author>
    
        <category term="Software" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="characterencoding" label="Character encoding" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="debian" label="Debian" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="utf8" label="UTF-8" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.enc.com.au/sees-blog/">
        <![CDATA[I've made a quick release of dh-make, now up to 0.52.&nbsp; Besides a minor dh_make.1 manual page fix this release will put the right value in the debian/source/format file.&nbsp; 0.51 will make it a native source package no matter what flags you use.<br /><br />If you get weird <a class="zem_slink" href="http://lintian.debian.org/" title="Lintian" rel="homepage">lintian</a> errors about native source formats and version numbers wrong on your brand-new <a class="autolink" href="http://www.debian.org/">Debian</a> package you just made, you might of been bitten by this bug.<br /><br />That leaves a few bugs left, there are two I need help with:<br /><ul><li>Bug <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=328692">328692</a> - If you have a plan ASCII name like me, then your name looks fine in the dh-make generated man pages. This bug requires converting names that aren't plain ASCII (e.g. that use <a class="zem_slink" href="http://en.wikipedia.org/wiki/UTF-8" title="UTF-8" rel="wikipedia">UTF-8</a>) into something groff understands. Someone suggested decomposed unicode but unicode and groff are pretty much a black art to me, let alone combining them.</li><li>Bug <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=533117">533117</a> - This one is all about making dh-make make your python packages.&nbsp; You'll need to understand the new <a class="zem_slink" href="http://en.wikipedia.org/wiki/Debhelper" title="Debhelper" rel="wikipedia">debhelper</a> v7 rules files.&nbsp; Again, python is not something I use so the bug is stuck here.<br /></li></ul><fieldset class="zemanta-related"><legend class="zemanta-related-title">Related articles by Zemanta</legend><ul class="zemanta-article-ul"><li class="zemanta-article-ul-li"><a href="http://research.swtch.com/2010/03/utf-8-bits-bytes-and-benefits.html">UTF-8: Bits, Bytes, and Benefits</a> (research.swtch.com)</li></ul></fieldset>

<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=71ad507b-0e45-409d-8460-8a619682e5e6" /><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>]]>
        
    </content>
</entry>

<entry>
    <title>Gjay Updated</title>
    <link rel="alternate" type="text/html" href="http://www.enc.com.au/sees-blog/2010/03/gjay-updated.html" />
    <id>tag:www.enc.com.au,2010:/sees-blog//1.20</id>

    <published>2010-03-07T11:05:40Z</published>
    <updated>2010-03-07T11:09:42Z</updated>

    <summary><![CDATA[After a long time of testing and just plain other non-software writing stuff, I'm happy to announce Gjay 0.3.0 is released.&nbsp; This is my first release of Chuck Groom's code and hopefully it will work for you too.The Debian packages...]]></summary>
    <author>
        <name>Craig</name>
        
    </author>
    
        <category term="Software" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="debian" label="Debian" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="mp3" label="MP3" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.enc.com.au/sees-blog/">
        <![CDATA[After a long time of testing and just plain other non-software writing stuff, I'm happy to announce <a class="autolink" href="http://gjay.sourceforge.net/">Gjay</a> 0.3.0 is released.&nbsp; This is my first release of Chuck Groom's code and hopefully it will work for you too.<br /><br />The <a class="zem_slink" href="http://www.debian.org/" title="Debian" rel="homepage">Debian</a> packages will be out shortly after some building and testing.&nbsp; If you have a 64-bit computer it now works with 64 bits fine (ie on my amd64).<br /><br />It still needs some work, I'd like it to interact with more than audacious as the sound player. Also if you know how to in one of the sound libraries stream wav, ogg or mp3 files correctly I'd like to hear from you.&nbsp; Currently <a class="autolink" href="http://gjay.sourceforge.net/">gjay</a> just uses the same old fork to mpg321 method, but idealy I'd like it to use the libraries directly.<br /><br />

<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=f1528ab1-64b1-4ba6-8f07-a49219217279" /><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>]]>
        
    </content>
</entry>

<entry>
    <title>procps: Third time lucky</title>
    <link rel="alternate" type="text/html" href="http://www.enc.com.au/sees-blog/2010/02/procps-third-time-lucky.html" />
    <id>tag:www.enc.com.au,2010:/sees-blog//1.19</id>

    <published>2010-02-02T11:41:00Z</published>
    <updated>2010-02-02T12:10:37Z</updated>

    <summary>OK, ok, i got a chroot and pbuilder now. So that should, I hope stop any more FTBFS bugs about missing depdendencies.procps got uploaded that fixes some important bugs, but mainly they were small fiddly things. About the most significant...</summary>
    <author>
        <name>Craig</name>
        
    </author>
    
        <category term="Software" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="debian" label="Debian" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="linux" label="Linux" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.enc.com.au/sees-blog/">
        <![CDATA[OK, ok, i got a chroot and <a class="zem_slink" href="http://en.wikipedia.org/wiki/Debian_build_toolchain" title="Debian build toolchain" rel="wikipedia">pbuilder</a> now. So that should, I hope stop any more <a class="zem_slink" href="http://en.wikipedia.org/wiki/FTBFS" title="FTBFS" rel="wikipedia">FTBFS</a> bugs about missing depdendencies.<br /><br />procps got uploaded that fixes some important bugs, but mainly they were small fiddly things. About the most significant enhancement was pmap now has a real working -x flag.&nbsp; It looks a lot like some of the other pmap programs out there and shows the RSS and Dirty bytes per map. Let me know if its useful or not.<br /><br />However there still is 48 bugs in the package, so if you're feeling game wander over to <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=no&amp;src=procps">procps bug page</a> and have a look around, but here are some more interesting ones, such as why would a process start time be earlier than the boot time? Bug <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=408879">408879</a> has this problem<br /><br />Now, a nice can of worms is in a Linux system, what is free memory?&nbsp; What should the "free" program report?&nbsp; Currently free just reports what it sees in <a class="zem_slink" href="http://en.wikipedia.org/wiki/Procfs" title="Procfs" rel="wikipedia">/proc</a>, but in Bug <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565518">565518</a> should the slab count be taken out?&nbsp; I certainly won't be making any <a class="zem_slink" href="http://www.debian.org/" title="Debian" rel="homepage">Debian</a>-specific changes here as you could get different numbers depending on your distribution, or even worse the age of you <a class="autolink" href="http://www.debian.org/">Debian</a> system.<br /><br />procps is also my first attempt at using <a href="https://honk.sigxcpu.org/piki/projects/git-buildpackage/">git-buildpackage</a> which I found very helpful. There was one problem with it and that is how it works with the quilt patch program. If the quilt patches are applied, git doesn't know this and says all the files have changed. I know its how these two programs are supposed to work but its a little annoying.<br />

<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=49ee7ec1-0a2c-4eaa-ab52-3ae97bb49191" /><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>]]>
        
    </content>
</entry>

<entry>
    <title>The Great Australian Internet Firewall</title>
    <link rel="alternate" type="text/html" href="http://www.enc.com.au/sees-blog/2010/01/the-great-australian-internet-firewall.html" />
    <id>tag:www.enc.com.au,2010:/sees-blog//1.18</id>

    <published>2010-01-28T23:49:54Z</published>
    <updated>2010-01-29T00:24:15Z</updated>

    <summary><![CDATA[Some what belatedly (hey I'm travelling!)&nbsp; I've changed the layout of my main website http://www.enc.com.au/ so it now has black panels and a little pop-up.&nbsp; It's all in the name of T he Great Australian Internet Blackout which is a...]]></summary>
    <author>
        <name>Craig</name>
        
    </author>
    
        <category term="Civil Liberties" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="contentfiltering" label="Content Filtering" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="greataustralianinternetblackout" label="Great Australian Internet Blackout" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.enc.com.au/sees-blog/">
        <![CDATA[Some what belatedly (hey I'm travelling!)&nbsp; I've changed the layout of my main website http://www.enc.com.au/ so it now has black panels and a little pop-up.&nbsp; It's all in the name of <a href="http://www.internetblackout.com.au/">T he Great Australian Internet Blackout</a> which is a protest about the upcoming Australian Governments <a class="zem_slink" href="http://en.wikipedia.org/wiki/Content-control_software" title="Content-control software" rel="wikipedia">Internet Filtering</a>.<br /><br />As per usual with this sort of thing, the proposed solution will not even meet its rather vague goals, unless you count filtering a 1000 or so websites a "goal".&nbsp; While the numbers vary, the best estimates is its way over 100 to 200 million websites. So that 1000 is 0.0005, or 1 in 200,000.<br /><br />The filter is alternatively going to filter reported <a class="zem_slink" href="http://en.wikipedia.org/wiki/Office_of_Film_and_Literature_Classification_%28Australia%29" title="Office of Film and Literature Classification (Australia)" rel="wikipedia">refused classification</a> material or perhaps "other stuff"; they'll get back to you on the second one. For the first it works that somone finds a website of sufficient level of classification, reports it to the government and it gets filtered.&nbsp; And how many times have you come across RC websites, just by wandering around? That's not R rated websites, its not porn, its not even reasonably exotic porn, but stuff that's downright nasty.<br /><br />The government, as per usual, has come out with the tired old protect the children rant. The filter doesn't stop spam, it doesn't stop weirdos on facebook or MSN chatting up your teenage daughter or son, it filters websites that, unless you or your child is REAL unlucky you will never see; ever.<br /><br />So why am I against it? Surely filtering RC level websites is great right? And to be honest if that is all this ever was going to be, it's still a complete waste of my (and if you are an Australian Internet user) your money, but once the filtering is in, there is going to be a line outside the relevant ministers door to filter anything else anyone wants to filter, for example:<br /><ul><li>Games that are available outside Australia, if they have not been classified here then they shouldn't be available here</li><li>Torrent trackers, because the industry would no doubt tell the government that the only thing they're good for is illegal download of movies or music</li><li>Websites about certain topics that some people would rather not be seen, there is a large mountain of stuff that fits in here depending which crank has their own barrow to push</li></ul>This sort of filtering while initially seeming ok, will get worse, much much worse.&nbsp; There is not a real strong push from the general public about filtering RC websites, most people see and hate spam much more.&nbsp; If you are an Australian citizen I ask you to visit the <a href="http://www.internetblackout.com.au/">The Great Australian Internet Firewall</a>&nbsp; website and write to your local member of parliament.<br /><br /><fieldset class="zemanta-related"><legend class="zemanta-related-title">Related articles by Zemanta</legend><ul class="zemanta-article-ul"><li class="zemanta-article-ul-li"><a href="http://arstechnica.com/tech-policy/news/2009/06/australian-net-filter-to-block-video-games-too.ars">Australian 'Net filter to block video games, too</a> (arstechnica.com)</li></ul></fieldset>

<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=b9e6f0c3-7a4d-47da-87f0-521834f0b222" /><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>]]>
        
    </content>
</entry>

<entry>
    <title>Manilla, Git and Gjay</title>
    <link rel="alternate" type="text/html" href="http://www.enc.com.au/sees-blog/2010/01/manilla-git-and-gjay.html" />
    <id>tag:www.enc.com.au,2010:/sees-blog//1.17</id>

    <published>2010-01-27T23:30:21Z</published>
    <updated>2010-01-27T23:57:46Z</updated>

    <summary><![CDATA[Work doesn't often send to me places as great as Manilla in the Philippines, but here I am.&nbsp; It's a reasonably modern place and to me feels more like America than Asia in so many ways, posssibly because of its...]]></summary>
    <author>
        <name>Craig</name>
        
    </author>
    
        <category term="Life" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Software" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="debian" label="Debian" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="gjay" label="gjay" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.enc.com.au/sees-blog/">
        <![CDATA[Work doesn't often send to me places as great as Manilla in the <a class="zem_slink" href="http://maps.google.com/maps?ll=14.5833333333,121.0&amp;spn=10.0,10.0&amp;q=14.5833333333,121.0%20%28Philippines%29&amp;t=h" title="Philippines" rel="geolocation">Philippines</a>, but here I am.&nbsp; It's a reasonably modern place and to me feels more like America than Asia in so many ways, posssibly because of its history.&nbsp; One thing is for sure, noone follows road rules here.&nbsp; Red lights are a suggestion and a zebra crossing is just some painted lines that you do need to stop at.<br /><br />As for food, it's not that different, in fact this sad lot is about what was different:<br /><ul><li>McSpaghetti - Was supposedly sugar coated spaghetti but actually was very tame, my son would of loved it.</li><li>Wow Steak from KFC - Neither Wow nor Steak, like a big chicken nugget with gravy and rice</li><li><a class="zem_slink" href="http://en.wikipedia.org/wiki/Halo-halo" title="Halo-halo" rel="wikipedia">Halo Halo</a> - A dessert drink which was sugared or preserved fruit, milk and ice.</li></ul>Generally though the food has been pretty good but nothing I could get at home.<br /><br />Good news about <a class="autolink" href="http://gjay.sourceforge.net/">Gjay</a>, the previous maintainer said it was ok for <a class="zem_slink" href="http://sourceforge.net/" title="SourceForge" rel="homepage">SourceForge</a> to hand over the control of the program to me so I've set it up in git and started working on it.&nbsp; Most of the work was getting the code up-to-date to the later gtk APIs and making it work with audacious instead of xmms.&nbsp; It's almost ready for (re)initial release and there is even an <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565578">ITP</a> ready to go.<br /><br />Git is a rather interesting and new (for me at least) version control system.&nbsp; I've been using cvs for more years than I'd care to think about and svn but while it is a bit different as you'd expect I haven't had it get in my way.&nbsp; In fact I've been so impressed with Git I have put a few other projects into it, mainly with the collab maintence <a class="zem_slink" href="http://www.debian.org/" title="Debian" rel="homepage">Debian</a> project for a few of my packages.<br /><br />

<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=15b3f697-de22-4a89-8249-1b4a22a8bcf3" /><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>]]>
        
    </content>
</entry>

<entry>
    <title>Happy new RC</title>
    <link rel="alternate" type="text/html" href="http://www.enc.com.au/sees-blog/2010/01/happy-new-rc.html" />
    <id>tag:www.enc.com.au,2010:/sees-blog//1.5</id>

    <published>2010-01-01T06:48:53Z</published>
    <updated>2010-01-01T13:12:58Z</updated>

    <summary><![CDATA[It's the late afternoon of the first day of 2010 here, though I suppose its still 2009 for someone for a little while.After a lot of waiting, JFFNMS release candidate 1 for 0.8.5 got uploaded to sourceforge.&nbsp; This release is...]]></summary>
    <author>
        <name>Craig</name>
        
    </author>
    
        <category term="Software" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="debian" label="Debian" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="programming" label="Programming" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.enc.com.au/sees-blog/">
        <![CDATA[It's the late afternoon of the first day of 2010 here, though I suppose its still 2009 for someone for a little while.<br /><br />After a lot of waiting, <a class="autolink" href="http://www.jffnms.org/">JFFNMS</a> release candidate 1 for 0.8.5 got uploaded to <a class="autolink" href="http://sourceforge.net/">sourceforge</a>.&nbsp; This release is mainly about fixing some database release bugs 0.8.4 had and they're all caused by the fact that working with PHP and database to release code is plain awful.<br /><br />The problem is tracking changes in your database. So version 1 has 3 tables and 60 rows, version 2 has 4 tables and 90 rows, but what changed?&nbsp; Everything I've seen so far is a bit of a hack or is real fiddly.&nbsp; <a class="autolink" href="http://www.jffnms.org/">JFFNMS</a> release process is both which is why I'll go and release several versions of C code or <a class="autolink" href="http://www.debian.org/">Debian</a> packages before trying to crack that nut again.<br /><br />If you are wondering what JFFNMS is, its a Network Management System. It makes graphs and red/green icons depending on the status of your routers and servers. Written in PHP and web based and of course licensed under the <a class="autolink" href="http://www.gnu.org/licenses/gpl.html">GPL</a><br /> 

<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=04e87c23-5e8e-4e37-b1e5-616687d986fd" /><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>]]>
        
    </content>
</entry>

<entry>
    <title>Updated: psmisc, gw6c and gjay</title>
    <link rel="alternate" type="text/html" href="http://www.enc.com.au/sees-blog/2009/12/updated-psmisc-gw6c-and-gjay.html" />
    <id>tag:www.enc.com.au,2009:/sees-blog//1.4</id>

    <published>2009-12-29T07:30:46Z</published>
    <updated>2009-12-29T11:52:33Z</updated>

    <summary><![CDATA[Time away from work and its been either raining or hot. So I've updated and released some software.&nbsp; It always seems to happen there is a lot of Free Software development during the breaks.psmisc got a bunch of updates, including...]]></summary>
    <author>
        <name>Craig</name>
        
    </author>
    
    <category term="computerprogramming" label="Computer programming" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="debian" label="Debian" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="freesoftware" label="Free Software" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.enc.com.au/sees-blog/">
        <![CDATA[Time away from work and its been either raining or hot. So I've updated and released some software.&nbsp; It always seems to happen there is a lot of Free Software development during the breaks.<br /><br /><a href="http://psmisc.sourceforge.net/">psmisc</a> got a bunch of updates, including a new program called prtstat which formats the stat file in the procfs for a pid in (hopefully) a nice way.&nbsp; No sooner had I released the latest update when a bug report came in. It seems fuser -m -k is a little too happy about killing itself. The <a href="http://psmisc.cvs.sourceforge.net/viewvc/psmisc/psmisc/src/fuser.c?r1=1.62&amp;r2=1.63">fix is in the CVS</a> but anoying I missed that.<br /><br />Next up was the <a href="http://packages.debian.org/gw6c">Debian gw6c package</a>. I was asked why it didn't get moved from unstable to testing.&nbsp; The problem is that while Linux has iproute, kfreebsd does not so the lack of a dependency was stopping it transitioning.&nbsp; To make matters worse the freebsd template was missing from their package.&nbsp; After some deb-substvars evilness to fix the dependencies and some dh_install overrides in the debian/rules file it should all be happy when its finished.<br /><br />Finally, I miss having good random playlists. I'm too lazy to make them myself so I use some random thing which often gives me rubbish.&nbsp; A program called <a href="http://gjay.sourceforge.net/">Gjay</a> used to be in the <a class="autolink" href="http://www.debian.org/">Debian</a> archive but got removed, mainly because the upstream stopped supporting it.&nbsp; I can write C (the programming language its written in) and I wanted to use it, so I fixed it.&nbsp; My version is 64-bit clean, so it works on my amd64 and it works with <a href="http://audacious-media-player.org/">audacious</a> not the old xmms which is great.&nbsp; More importantly, it compiles, it runs and it even works properly.<br />I'm just wondering if I want to release it out to the wider world or not.<br />]]>
        
    </content>
</entry>

<entry>
    <title>Why clocks don&apos;t work in PNG</title>
    <link rel="alternate" type="text/html" href="http://www.enc.com.au/sees-blog/2009/12/why-clocks-don.html" />
    <id>tag:www.enc.com.au,2009:/sees-blog//1.3</id>

    <published>2009-12-19T06:53:48Z</published>
    <updated>2009-12-29T11:53:04Z</updated>

    <summary><![CDATA[One of the good things, or perhaps the worst thing (it depends on where and when) about my job is I travel a bit.&nbsp; One of the more interesting places (again in both good and bad ways) was Port Moresby,...]]></summary>
    <author>
        <name>Craig</name>
        
    </author>
    
    
    <content type="html" xml:lang="en-US" xml:base="http://www.enc.com.au/sees-blog/">
        <![CDATA[One of the good things, or perhaps the worst thing (it depends on where
and when) about my job is I travel a bit.&nbsp; One of the more interesting
places (again in both good and bad ways) was <a class="zem_slink" href="http://maps.google.com/maps?ll=-9.41666666667,147.283333333&amp;spn=1.0,1.0&amp;q=-9.41666666667,147.283333333%20%28Port%20Moresby%29&amp;t=h" title="Port Moresby" rel="geolocation">Port Moresby</a>,
<a class="zem_slink" href="http://maps.google.com/maps?ll=-9.5,147.116666667&amp;spn=10.0,10.0&amp;q=-9.5,147.116666667%20%28Papua%20New%20Guinea%29&amp;t=h" title="Papua New Guinea" rel="geolocation">Papua New Guinea</a>. Lots of stuff doesn't work too well over there. It's
hard to get experience maintenance staff, its hard to get the right
parts over there and probably the hardest part is paying for it.&nbsp; <br /><br />I
was always surprised the clocks never work right. They are either
horribly fast or slow.&nbsp; At first I thought the hotel had just not set
it right, so I set it to the right time. But the next morning it was
out again. What the hell was going on?<br /><br />Most alarm clocks work
off the power. In both Australia and PNG this is 50Hz, so the clock
rectifies the <a class="zem_slink" href="http://en.wikipedia.org/wiki/AC_power" title="AC power" rel="wikipedia">AC power</a> coming in to get 50 pulses a second. Count 50
pulses and you have a second, do this 60 times and tick over a minute.<br /><br />We
take for granted that the frquency of power is right on 50Hz, but
talking with the students who were doing power engineering it is
actually quite hard to do. It's like having a car with the same revs no
matter if you are going up or down a hill.<br /><br />Anyhow, if you need
to wake up the right time in PNG, use the alarm clock on your phone.
Otherwise you may be jumping out of bed at 5am thinking you are running
late, then wondering where the sun went. <br />]]>
        
    </content>
</entry>

</feed>
