Search Results: "mak"

10 April 2008

Russell Coker: Vegie Cars

I’ve read a lot about running Diesel vehicles on plant oil, but one thing that was never clear was why some people claim that you need special chemical additives. The article about converting vehicles to vegetable oil on the VegieCars.com [1] site explains all this. It seems that if you want to produce fuel which can be used in unmodified vehicles then you need to add a mixture of methanol caustic soda. This is going to be difficult, dangerous, have some expense, and probably not be that good for the environment. The other option (which they recommend) is to modify the vehicle to accept straight vegetable oil. This means pre-heating the oil before it enters the engine (to lower it’s viscosity and make it vaporise more easily) and to filter the oil to remove solid objects and water. A possibility is to have two separate fuel tanks so that you can switch between plant oil and petroleum based Diesel fuel. This is an option if driving in a cold climate (probably not an issue in Australia apart from a few mountains) and if you are concerned about the quality of your plant oil (a bad batch could clog the filters and force you to use petroleum based fuel). They also have an interesting cost-comparison page to show you how much money you might save by using plant oil [2]. Their site is very interesting and has some good technical information, even if you never plan to drive a Diesel vehicle it’s worth reading if you are interested in cars.

Russell Coker: Football Cards and Free Kittens

My cousin Greg Coker has created an eBay auction for Football cards with the proceeds going to a charity that protects animal welfare (I can’t remember the name - I’ll update this post later). He also has a bunch of other eBay auctions of football cards going which are not for charity. The charity auction is held in association with SEN (Sports Entertainment Network - a sports talk-back AM radio station) [1]. This afternoon Greg was interviewed on SEN about football cards in general. He gave a good talk, he could probably do some professional radio work if he was interested. Greg’s cards are from the VFL (Victorian Football League) before it became the AFL (Australian Football League) [2]. The cards used to be sold in “milk bars” (small stores that sold a variety of junk food and some essential food items including milk - most such stores are closed now as they have been replaced by petrol stations and supermarkets) and each pack of ~5 cards had some crewing gum included (which Greg often discarded because he didn’t like it - he should have given it to me, I was not so fussy). The back side of the cards had a jigsaw picture which I have never seen anyone complete (I expect that Greg has assembled at least one jigsaw as he has some sets). Probably the way the cards were collected, traded, etc is very similar to sports based cards from other countries (such as baseball cards in the US). On the animal front, I’ve had a mother cat and four kittens move into the shed in my back-yard. The mother cat has no collar and is not known by anyone in the area so she appears to have been dumped by her owner when she got pregnant. There are four kittens, one is ginger, one is black, and two are mottled part black and part ginger. They are all healthy and friendly and the kittens are all really cute. The kittens have become used to being patted and handled by humans so it will be easy to make them household pets. If an owner is not found for them then they will probably all end up being put to sleep (unfortunately I can’t keep them so I’ll have to deliver them to the local council). If anyone in Melbourne, Australia wants some free cats then I would be happy to deliver them. I’ll supply as many cats as desired. I can’t give away the mother until the kittens have been given away, so if you want the mother cat (dark coloured) then you may have to wait for a while. Judging by the date that I first noticed them (when they were walking around, had their eyes open, and ate solid food) the kittens would have to be at least 7 weeks old. It’s recommended that kittens not be given away before they are 8 weeks old and given that it will probably take a week to organise anything I expect that anyone who reads I don’t think that there is any risk of giving them away too early. Please let me know by email or a comment if you are in the vicinity of Melbourne, Australia and want a new pet (or several new pets).

Kyle McMartin: meme me harder


[kyle@phobos ~]$ history awk ‘ a[$2]++ END for(i in a) print a[i] ” ” i ’ sort -rn head
151 ls
126 cd
107 vi
104 screen
104 git
68 cvs
49 make
39 sudo
39 ogg123
28 ssh

Steve Kemp: I burn, I pine, I perish.

So here's the hard part, if you start writing about people and relationships you have to continue, otherwise people who do follow will make assumptions, or not be aware of any potential gaffes they are about to make. I've written in the past about some stuff which I now wish I hadn't because this post is suprisngly hard to compose.
I'm now single, and living alone.
No fiance, no partner, and no kitten. The next time I write about friends I'll make sure it is for local people only. Unless I get carried away, in which case I should be stopped. ObQuote: The Taming of the shrew; via 10 Things I hate about you.

Bdale Garbee: Paperless no more!

Quite some time back, I wrote about my disappointment that Ampad had ceased manufacturing their Quad Ruled Steno Books, which I use to make notes to myself on just about everything. Several of my friends in Europe responded that similar pads in A5 size were commonly available in retail stores, and I quite happily bought a few on a trip to Germany. Then, one of my colleagues at work had some nice notebooks made up for a customer event with grid paper and suitable logos on the cover that I grabbed a few of and have used quite happily. Sometime in the intervening years, Ampad started producing these pads again, but with a different product number, 42036. I stumbled over some at a local office supply store and bought a big pile... others have noticed too, and sent me email about it, which is why I'm taking the time to write this... Yes, I'm much happier now!

Ian Wienand: Tips and tricks for your E3 Visa

Having recently been through the process, I've managed to come out the other-side with some some advice for anyone taking this on.
  • If anything really stuffs up you'll have to enter the US immigration services, which is no fun. If this happens to you in the Bay Area go straight to the San Francisco office; the San Jose office doesn't have deferred inspections so you'll probably just have to go there anyway.
  • Your dependent on the E3D Visa will need to fill out an I-765 work authorisation form. This will take up to 3 months to process; you can find out the approximate queue time here. The form doesn't appear to have been updated for E3D; I would strongly recommend getting a lawyer to file it for you so you don't stuff it up. Budget about $400. After this has been processed, the dependent will then need to file for a SSN before they can be paid.
  • Tax is a black-art. In California expect to pay something like 20-25% federal, 10% state and up to 7% more for Medicare and social security. Expect another $80/month for health insurance.
  • You can get a bank account without a SSN easily. A good way to transfer money is OzForex, but watch out for fees on the US side (you may have to do wire-transfers which cost about $10 a go, though some banks have bill-pay). The country still runs on cheques for some reason.
  • You can rent without a SSN, but it will cost you. Budget for 2 months extra rent as deposits and paying ahead.
  • A car lease is probably a good way to go. Finance will usually look at your visa and only give you a two-year loan, and with no credit that will be at a very high interest rate. In California you can get a 2 year lease on a base model new car (sticker price ~$17,000) drive-away for a down-payment of about $2500 and then $250/month plus taxes. Insurance will be about $120/month on-top of that. The beauty is you just give it back when you go home. For long holiday trips SUV rental may contribute to global warming, but is a very comfortable way to see the country.
  • In California you'll need to book in for a driving test to get a license; you can't do this in a rental car but some local driving schools offer a short introduction course and then let you use their car for the test.
  • If you're living in temporary accommodation without great facilities Dream Dinners is a good way to easily get some meals together.
  • In the Bay Area, Yelp is an awesome resource.
  • Comcast make Telstra look like a well-run, efficient and customer focused organisation!
  • Feel free to drop me a line if you're thinking of taking an opportunity and have any questions.

    9 April 2008

    Anthony Towns: Select and Python Generators

    One of the loveliest things about Unix is the select() function (or its replacement, poll()), and the way it lets a single thread handle a host of concurrent tasks efficiently by just using file descriptors as work queues. Unfortunately, it can be a nuisance to use – you end up having to structure your program as a state machine around the select() invocation, rather than the actual procedure you want to have happen. You can avoid that by not using select() and instead just having a separate thread/process for every task you want to do – but that creates a bunch of tedious overhead for the OS (and admin) to worry about. But magically making state machines is what Python’s generators are all about; so for my little pet project that involves forking a bunch of subprocesses to do the interesting computational work my python program wants done, I thought I’d see if I could use that to make my code more obvious. What I want to achieve is to have a bunch of subprocesses accepting some setup data, then a bunch of two byte ids, terminated by two bytes of 0xFF, and for each of the two byte inputs to output a line of text giving the calculation result. For the time being at least, I want the IO to be asynchronous: so I’ll give it as many inputs as I can, rather than waiting for the result before sending the next input. So basically, I want to write something like:
    
    def send_inputs(f, s, n):
    	f.write(s) # write setup data
    	for i in xrange(n):
    		f.write(struct.pack("!H", i))
    	f.write(struct.pack("!H", 0xFFFF))
    def read_output(f):
    	for line in f:
    		if is_interesting(line):
    			print line
    
    Except of course, that doesn’t work directly because writing some data or reading a line can block, and when it does, I want it to be doing something else (reading instead of writing or vice-versa, or paying attention to another process). Generators are the way to do that in Python, with the “yield” keyword passing control flow and some information back somewhere else, so adopting the theory that: (a) I’ll only resume from a “yield” when it’s okay to write some more data, (b) if I “yield None” there’s probably no point coming back to me unless you’ve got some more data for me to read, and (c) I’ll provide a single parameter which is an iterator that will give me input when it’s available and None when it’s not, I can code the above as:
    
    def send_inputs(_):
    	# s, n declared in enclosing scope
    	yield s
    	for i in xrange(n):
    		yield struct.pack("!H", i))
    	yield struct.pack("!H", 0xFFFF)
    def read_output(f):
    	for line in f:
    		if line is None: yield None; continue
    		if is_interesting(line):
    			print line
    
    There’s a few complications there. For one, I could be yielding more data than can actually be written, so I might want to buffer there to avoid blocking. (I haven’t bothered; just as I haven’t worried about “print” possibly blocking) Likewise, I might only receive part of a line, or I might receive more than one line at once, and afaics a buffer there is unavoidable. If I were doing fixed size reads (instead of line at a time), that might be different. So far, the above seems pretty pleasant to me – those functions describe what I want to have happen in a nice procedural manner (almost as if they had a thread all to themselves) with the only extra bit the “None, None, continue” line, which I’m willing to accept in order not to use threads. Making that actually function does need a little grunging around, but happily we can hide that away in a module – so my API looks like:
    
    p = subprocess.Popen(["./helper"], stdin=PIPE, stdout=PIPE, close_fds=True)
    comm = communicate.Communication()
    comm.add(send_inputs, p.stdin, None)
    comm.add(read_output, None, p.stdout, communicate.ByLine())
    comm.communicate()
    
    The comm.add() function takes a generator function, an output fd (ie, the subprocess’s stdin), an input fd (the subprocess’s output), and an (optional) iterator. The generator gets created when communication starts, with the iterator passed as the argument. The iterator needs to have an “add” function (which gets given the bytes received), a “waiting” function, which returns True or False depending on whether it can provide any more input for the generator, and a “finish” function that gets called once EOF is hit on the input. (Actually, it doesn’t strictly need to be an iterator, though it’s convenient for the generator if it is) The generator functions once “executed” return an object with a next() method that’ll run the function you defined until the next “yield” (in which case next() will return the value yielded), or a “return” is hit (in which case the StopIteration exception is raised). So what we then want to do to have this all work then, is this: (a) do a select() on all the files we’ve been given; (b) for the ones we can read from, read them and add() to the corresponding iterators; (c) for the generators that don’t have an output file, or whose output file we can write to, invoke next() until either: they raise StopIteration, they yield a value for us to output, or they yield None and their iterator reports that it’s waiting. Add in some code to ensure that reads from the file descriptors don’t block, and you get:
    
    def communicate(self):
        readable, writable = [], []
        for g,o,i,iter in self.coroutines:
            if i is not None:
                fcntl.fcntl(i, fcntl.F_SETFL, 
                            fcntl.fcntl(i, fcntl.F_GETFL)   os.O_NONBLOCK)
                readable.append(i)
            if o is not None:
                writable.append(o)
        
        while readable != [] or writable != []:
            read, write, exc = select.select(readable, writable, [])
            for g,o,i,iter in self.coroutines:
                if i in read:
                    x = i.read()
                    if x == "": # eof
                        iter.finish()
                        readable.remove(i)
                    else:
                        iter.add(x)
                if o is None or o in write:
                    x = None
                    try:
                        while x is None and not iter.waiting():
                            x = g.next()
                        if x is not None:
                            o.write(x)
                    except StopIteration:
                        if o is not None:
                            writable.remove(o)
        return
    
    You can break it by: (a) yielding more than you can write without blocking (it’ll block rather than buffer, and you might get a deadlock), (b) yielding a value from a generator that doesn’t have a file associated with it (None.write(x) won’t work), (c) having generators that don’t actually yield, and (d) probably some other ways. And it would’ve been nice if I could have somehow moved the “yield None” into the iterator so that it was implicit in the “for line in f”, rather than explicit. But even so, I quite like it.

    Ingo Juergensmann: Buildd.Net updated

    Spring is upcoming, the trees are getting greener and everything is new and shiny - and so is Buildd.Net as well!

    After a long time of being based on static html files, it's now based on a CMS that makes changes and additions more easy and offers other useful stuff. Next to come is some sort of SVN or git repositry...

    So, be invited to visit and participate on Buildd.Net!

    Philipp Kern: Livejournal Leaking Posts

    Now, could someone please make Livejournal stop leaking posts you can't read? There is a German proverb "Was ich nicht wei , macht mich nicht hei ." (roughly translated to "what I don't know doesn't make me curious"). kthxbye

    Philipp Kern: Livejournal Leaking Posts

    Now, could someone please make Livejournal stop leaking posts you can't read? There is a German proverb "Was ich nicht wei , macht mich nicht hei ." (roughly translated to "what I don't know doesn't make me curious"). kthxbye

    Holger Levsen: random bits

    Instructions how to use etchanhalf kernels are available too, please report problems to the mailinglist mentioned there.

    I still have oldworld powerpc hardware to give away, if someone wants to have those for testing the new snd-powermac driver or whatever, please contact me. Appearantly my mail didn't make it to the powerpc list when I originally sent it, so I've just resend it.

    Today I will switch the second PCs of my parents to Debian etch. They seem to like it and "Gnome is not really different than Windows" ;-)

    8 April 2008

    Russell Coker: Olympics and Politics

    The latest news related to the Beijing Olympic games is that Kevin Rudd (our Prime Minister) has said “It is absolutely clear that there are human rights abuses in Tibet. That’s clear-cut; we need to be upfront and absolutely straight about what’s going on,” - stating the obvious really. If that was all that happened then it wouldn’t be particularly interesting. The paper version of “The Age” quotes George Bush as seconding Kevin Rudd’s statement. I believe that this is quite significant. Bush is well known for being stupid, the fact that he is now following the example of someone else who is doing good things is a very positive thing for the world. When John Howard was our Prime Minister we had an idiot (Howard) following an even bigger idiot (Bush) and the result was not good. Kevan Gosper (an Australian IOC board member) said “They just take their hate out on whatever the issues are at the time, and that hate against the host country is being taken out on our torch“. People who are totally corrupt sometimes seem confused when other people are motivated by moral principles, maybe we have a culture clash between the corrupt IOC board and the attitudes of most people in the rest of the world (I can’t think of any other way to map Kevan’s statement to reality). Mr Rudd has confirmed that Chinese “security guards” (soldiers) will not be permitted to operate in Australia to protect the Olympic torch from protesters, but the “security guards” have been operating in the UK. I read about this on the web site of The Age, but I won’t link to them because they have a lot of broken links with the following explanation - I am not going to link to sites that are so transient in nature (linking to The Age would lower the quality of my blog). Incidentally does anyone know of a news service in Australia that has reliable pages which stay online? We could not find the page you requested. This is often because older content has been removed from our site. In most cases you can still find the item via our archive service, News Store, where you can buy articles for a small fee. It also has the following text which indicates that the most visible problem is probably transient, but the fact that they deliberately break links is unacceptable to me: If you reached this page from a link on our site, please contact the webmaster (choose Technical faults) and tell us the address of the faulty page and the address shown for this page. The MSN article about the meeting between Bush and Rudd also had an interesting quote from Nancy Pelosi (speaker of the house in the US congress) [1]. She said “As I said in India last week where I met with His Holiness the Dalai Lama, if freedom-loving people throughout the world do not speak out against China’s oppression in Tibet, we have lost our moral authority to speak out on behalf of human rights anywhere in the world” and that the IOC made a mistake in awarding the games to China. Pelosi is not known for being left-wing (the US Democratic party is centrist/right by the standards of most democracies) so it’s interesting to see her take a stand on this issue. Erich Schubert has written about this, he points out that the Olympics are not about sports [2]. Well of course the Olympics are about money, drugs, and sports-science! I’m not sure that I agree with Schubert and Pelosi, the Chinese Olympics has focussed a lot of international attention on what China is doing - this has to be good for human rights. The Olympic games are a white elephant, running them costs a huge amount of money and there is no evidence that they actually make money for the host country once the opportunity costs are taken into account. Maybe we should give the Olympics to Zimbabwe or the Sudan next?

    Biella Coleman: Digital Kriegspiel Creator Under Fire From Dead Marxist

    IP, as a field of law, sometimes strikes as one unbelievably large and profitable game of make believe and this case, concerning a digital adaptation of chess-like game, a dead (famous) Marxist, his estate, and widow, makes this “game” all the more absurd (but somewhat entertaining, as all games should be)

    Lars Wirzenius: Remember to uncomment

    A week ago or so I fiddled with my mirroring script. To make the fiddling go faster, I commented out the actual calls to debmirror, so I could concentrate on testing the other stuff I was adding. I forgot to uncomment. My mirror hasn't updated since. Oops. Moral of the story: when fiddling something, make sure you notice if forgot to re-enable stuff you disable temporarily. In this case, I should've used "echo" instead of ":" to comment things out. Had I done that, cron would've told me nothing was beinge executed.

    Kartik Mistry: Tips: Travelling in BMTC


    * Wake up early, catch bus in early morning. Avoid rush-hour traffic. * If you can’t wake up early, you will have crowded bus, go inside with hard try and look for person who has next bus stop to get seat. You need to study hard to become master in this - if person is moving his/her bag, keeping mobile/pen/paper in pocket, go nearby and wait he/she stand up and grab the place! * Make sure that you are not standing near door, crazy drivers shuts it suddenly and chance of injury is high. * Do not seat on seats reserved for ladies :P (either marked red or written on it). * Still, if you can’t find place, play ‘frozen-bubble’ or finish pending calls and wait for your stop! And, yes. Don’t assume that ’same bus number’ will reach you at ’same place’. The bus number on BMTC is volatile. And, please don’t ask ‘How to travel at evening’, I have left it upon your luck!

    Erich Schubert: Licensing software

    If you are writing free software, choose your license appropriately. This can make a big difference with respect to adoption of your software.I'll just show you an excerpt from a Debian changelog:
    * DFSG version of Mono 1.9
      + Deleted the mcs/class/System.Web.Extensions/ directory as
        mcs/class/System.Web.Extensions/System.Web.Script.Serialization/JSON/*.cs
        is licensed under Creative Commons Attribution 2.5 which is not
        DFSG-free.
    
    Debian policy doesn't allow us to include Creative Commons Attribution 2.5 in the main Debian archive, since that license doesn't meet the Debian Free Software Guidelines, which are part of our social contract. Therefore we must and will remove such code.debian-legal summary for "main" Creative Commons licensesCreative Commons is aware of these issues:
    Creative Commons recommends and uses free and open source licenses for software.
    And then they suggest to use GPL. While there is a link in the right side menu to the Creative Commons page on licensing Software, they IMHO don't make this obvious enough. Their license chooser should include a central link "if you intend to license software, read this".Creative Commons even includes "wrappers" for common licenses: CC GPL, CC LGPL, CC BSDSo if you like Creative Commons because of this pretty "commons deed" human-understandable version of the license they offer, just use these wrappers. The "legal code" links will actually take you to the GNU or Opensource.org license pages.I'm not aware of a good reason to use an opensource license other than GPL, LGPL or 3-clause BSD, depending on how you want to allow your opensource code to be used in combination with non-free software. If you are contributing to a bigger project, choosing the same license as the main project is although a very good idea.

    Kartik Mistry: Late report: fossmeet@NITC, Calicut


    * With uncertainty principle playing in full form with me, I decided to go to Fossmeet@NITC. But, came to know that there is no bus tickets available! What to do? I called up dear tuxmaniac aka Aanjhan and he suggested me to go by taxi. wow. Pretty expensive it will be, I thought. What ever, we decided to go with burning (hip) pockets and the journey was terrible. I did such long travel (7 hours) in taxi after long time. Anyway, we reached at NITC around 6 AM. The Keralian atmosphere was excellent and I felt similar humidity like Mumbai and that made me a bit sad. Ah. The event was already kicked off the day before and I attended Praveen’s talk on openid while figuring out that wifi is not working for us (proxy and they didn’t care to let us know password etc). So, we headed towards lab and enjoyed some Internet while seating in ‘Foss for school children’ workshop. Lunch was ok, but I enjoyed talking with different people and it was nice talk with Ani Peter about current localization work from Redhat. These guys simply rocks! Got my conference tshirt before ‘Medium’ size is out-of-stock. We were eagerly waiting for our dear Pradeepto, and voila, he came and started his talk! I was attending his talk first time (always missed due to some or other reasons..). Excellent and interactive. No slides. /me need to learn something from this fellow! We were 100% tired at evening. So, first we changed to better ‘room’. Thanks to NITC co-coordinators who did quick action for this (Why we requested for changing room? Answer: The previous room had only one power-supply plug! and we want to do hacking at night!). We then headed towards ‘Malabar Palace’. Excellent South Indian food and beer. The next day — I was suppose to give talk on ‘Contributing to Debian’ but by some magic, the talk was disappeared from schedule. Sad. Anyway, we (me, tuxmaniac and pradeepto) gave live talk on ‘How to contribute to free software’. We used SVN, Bugzilla, Wiki, SF.Net and other tools (IRC!) to show how students can use these in college projects and make it much better and how it can lead to Free Software development. I did svn commit for KDE Gujarati (Idea stoled from Rusty’s talk at Foss.in/2007). We then decided to leave the place. The return trip was amazing. Pookat lake and Mysore Palace. Amazing places. We had nice dinner and Kamat Hotel and I bought one wood penguin too (Total number of Penguin toys=4, Now). I learned that Calicut is also known as Kozikode :)

    6 April 2008

    Mike Hommey: WebKit on the rocks

    I’m preparing a new upload for WebKit, which will be targetted at unstable. It is much easier to deal with than Gecko, fortunately, so it won’t take several months to get something in shape. The main “difficulties” here is that I’m dropping the Qt WebKit package, since this will be provided along Qt, and the upstream build system for the Gtk port switched from qmake to autotools, which is not a really bad thing ; so, nothing impossible. Note that switching to autotools also means using libtool, which means no way to use -Wl,–as-needed anymore :-/. Yes, libtool, by trying to be smart, puts it almost at the last position in the arguments list, making it useless. ACID3 in new GtkLauncher

    Romain Francoise: Shared links for 2008-04-06

    Matthew Garrett

    Now that I've got a little more time on my hands, I've updated and done some bugfixing on my patch to quirk ICH devices over from PIIX-compatibility mode to AHCI mode. It turns out that ICH8 is a little different to ICH7, and needs an extra bit to be set. Without that being done, the AHCI BAR would still be programmed as i/o ports. Interpreting this as mmio space let to unsurprising crashes. With a bit of luck, this should also fix the "My CD drive is no longer there" issue - you'll still need to load ata_piix in order to access it, but make sure you do it after ahci has bound to the sata controller.

    Patch against 2.6.24 is here - let me know if it works for you.

    (Context: AHCI provides support for various features that the PIIX compatible mode doesn't, including link-level power saving. This is potentially beneficial for mobile users)

    Next.

    Previous.