Search Results: "sto"

10 April 2008

Biella Coleman: Joe Reagle s Dissertation

Wikipedia, though increasingly becoming an everyday fixture for many in the Wired World, means a lot of different things to different people. If you want to take a fascinating look into what one person, Joe Reagle has written about this unwieldy project, community and encyclopedia, take a look here. He recently defended his dissertation and I have read it through and through a couple of times. It has some great insights about the significance and culture of Wikipedia by laying bare its cultural dynamics as well as putting it in historical context with similar encyclopedic endeavors.

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

    Christian Perrier: News from the lenny l10n NMU campaign

    The lenny l10n NMU campaign is now running for about two months now. The objectives of this campaign are tackling pending po-debconf l10n bugs. The process is the following: Of course, when the maintainer wants to upload him herself, I immediately stop any action....but I still watch what happens and I nag her him in case nothing happens. In short, you can escape from my trap once I got you! Status as of now: A few utterly outdated and obsolete packages have also been removed fro mthe archive. All this helped the statistics for many languages to raise up. However, thanks to the effort of many maintainers who invest a lot of energy in emptying down the bottle we're filling up, the top languages statistics don't really move (new debconf templates, modified ones, etc.) With the lenny release becoming closer, I expect package maintainers to calm down now and leave us the opportunity to completee our l10n work without moving the target away when we reach it. The closer the release, the more aggressive l10n NMUs will be. Even for recent bug reports. Those translation issues are the easiest ones to fix, so please fix them. Please also note that I'll very happily sponsor any non DD upload which just fixes l10n issues.

    Neil Williams: emdebian-tools 0.9.4 uploaded to Emdebian

    Where, oh, where do I start with this one??
    $ parsechangelog   wc
    97 644 4793

    97 lines, 644 words just for the changes in this version and some quite important and far-reaching. I have to try and summarise somewhere, so:
    1. dpkg-dev (>1.14.17) support

    2. New debconf question to identify the targetsuite

    3. Drop-in lintian support for cross-built Emdebian packages

    4. emchain support for a uClibc toolchain built on a glibc/gcc toolchain

    5. Require a genuine Debian environment for building

    Some detail from the changelog
    emdebian-tools (0.9.4) unstable; urgency=low

    For the full list, see the changelog and emdebian manpages.

    Joey Hess: drives--

    Spent much of this afternoon reducing the number of hard drives I have to keep running. Every computer in the office, except my laptop, is now running from flash or network, and has no moving parts. Nice milestone. Kinda spooky tho. The server closet still has a few dozen drives in it, but one less than yesterday, and only three run full time.

    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.

    David Welton: Google App Engine as Ford?

    A passing thought: Would it be fair to compare Google's App Engine to Ford's assembly line, in a roundabout sort of way? Ford's mass produced cars put cars within reach of many more people, and over time, put paid to the many custom car producers who didn't adapt. Google's App Engine is a way for people to easily scale their web applications in a way that wasn't possible until now. No fiddling with EC2 images, or hosting, or a bunch of other stuff that, for the time being will still drive people to want to control their own infrastructure, but the prospect of very cheap hosting and very easy scaling is potentially something that will change things significantly.

    Lars Wirzenius: Toy Story 3 is coming

    Just when Debian thought it was running out of release names... IMDb lists Toy Story 3. There's no list of characters yet and the movie will only come out in 2010, but if Debian wants to continue using Toy Story characters for release names, it will have some more in about two years. (I wouldn't mind another naming scheme, myself, since I don't like the way Disney does business and stomps on freedoms.)

    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

    Adrian von Bidder: Mercurial

    After my moderately successful attempts at learning git, I have now tackled Mercurial and found it easy to understand and use. I can't quite see where git is better, so I guess I'll stick with hg now. Output so far is a script I call hgdebuild, which I'll probably package when it's a bit less rough around the edges (yes, I know about hg-buildpackage, but I didn't really like it, and it appears to be orphaned at the moment anyway). Also, with Mercurial, I very easily could address the main problem I've always had with distributed revision control systems: With Subversion, it's easy to work on different computers, and backing up my home directory has become less critical (an important aspect on my Laptop). Both of these are not true when suddenly .hg in my working dir is the backing store.
    $ cat ~/.hgrc
    [hooks]
    commit.push = [ -f .hg/dopush ] \
        && ping -w 1 -c 2 -q -i .2 mygitserver.example.com >/dev/null 2>/dev/null \
        && hg push \
          true
    
    (Probably this problem has been solved before. Comments welcome.) Comments: From the person with madduck in his email address: Bzr checkouts, or a similar Git hook.

    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?

    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!

    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 :)

    Kartik Mistry: 45 days


    * I was hell tired from useless promotional calls and SMS from Vodaphone from last 30 days (I got my new number on 6th March), So, I tried their Do Not Disturb form and submitted it. Also, did SMS to toll-free number. And, I got this email after one confirmation email: “We would like to inform you that we have updated the number under DND option and the promotional SMS/calls will be stopped on your Vodafone number 9xxxxxxxxx within 45 days.” OMG, 45 Days!!!

    7 April 2008

    Miriam Ruiz: Dunning-Kruger effect

    People who have little knowledge tend to think that they know more than they do, while others who have much more knowledge tend to think that they know less. That’s what Justin Kruger and David Dunning (both of Cornell University) demonstrated in a series of experiments they carried out. Incompetent individuals tend to overestimate their own level of skill, fail to recognize genuine skill in others and fail to recognize the extremity of their inadequacy. If they can be trained to substantially improve their own skill level, these individuals can recognize and acknowledge their own previous lack of skill. In one of their investigations, they discovered that 98% of university professors believed they were above the average, while that is obviously impossible statistically. Bright students, far above the others, considered themselves below their real skills, standard students saw themselves as above the average, while real bad ones were fully convinced of being among the best. In fact, the worse the person was, the most their conviction was that they were right. Even more, the most incompetent ones were incapable of realising the superiority of others, and they tended to think that the answers of the tests were the wrong ones, and not themselves. “Ignorance more frequently begets confidence than does knowledge”, quoting Charles Darwin. Most of the people react to this study with a smile, thinking about the incompetent people they know and how well this study describes them. It should be noted that everyone is incompetent about many things, and this effect affects all of us. How can a person realize that they’re wrong? The lesson that comes out of the study is that it’s really hard to find out, according to Dunning. His recommendation is not to trust just one’s own thoughts, but to ask for other’s opinions, especially before taking important decisions. Nobody should ever stop trying to improve and to learn, because it’s really difficult to know when to do it.

    Russell Coker: Links April 2008

  • Interesting Rolling Stone article about the US government encouraging idiot “terrorists” [2].
  • Cory Doctorow predicts a poor future for hardware e-book readers [3]. For my personal use a laptop is better for reading. In most cases when I’m going to do some reading I’m likely to want to write notes or be in a situation where I need my laptop for other purposes. So a laptop plus an e-book reader would be more weight and more battery problems than having just a laptop.
  • On page 2 of this article about what might happen if the source code to Windows was released freely [4] I am quoted. One thing I should note is that I have nothing against OpenSolaris, it’s merely one large project for which I could inspect the source if I didn’t have legal advice to the contrary. The situation of OpenSolaris may have changed in recent times, but I have not felt the need to seek further legal advice as there seems no real benefit in viewing the source. There is no shortage of GPL source that I would like to read if I had the time…
  • Location Independent - a blog about working from no fixed address and how to live on the move [5]. Should be of interest to all the people who seem fascinated by my living in hotels for ~18 months.
  • Martin Luther King Jr’s letter from a Birmingham jail [6]. Inspirational and it is also relevant when considering the positions that churches take today on moral issues. I found the link from The Reid Report blog [7] which is an interesting analysis of US politics.
  • Scientific American has an article about high altitude destroying brain cells [8], apparently this can happen even when there is no noticable injury and it is permanent. It seems that it would be a good idea to try and locate conferences to minimise air travel by delegates and speakers…

  • Julien Danjou: awesome: from 2 to 3

    Last week I sent a mail about the upcoming developement strategy for awesome. Long story short; we begin to work on awesome 3, dropping Xlib in favor of XCB, bringing out the first window manager using this bindings (if you do not count the demo one in the source repository ;-)). Thanks to the amazing grunt work of Arnaud Fontaine, we already have a working version of awesome using XCB, and it works very very well. Better API, better code, and even faster code. That is awesome. awesome 2.3-rc1 was released this morning so we'll begin shortly to work on the 3 branch and merge it into the master one.

    6 April 2008

    Ben Armstrong: Install Debian on your Eee PC over wireless

    Installing Debian on your Eee PC is even easier now, as the option to install over wireless is now present in our custom debian-installer image. Also, the new installer automates installation of many more things than prior releases, so wireless, acpi hotkeys and suspend all ‘just work’ out of the box. Two barriers remain to including wireless support for the Eee in Debian main. The first is the lack of wireless support in the official d-i installer. The second is the dependency on the non-free madwifi driver. I have no illusions about this being ready for Lenny, but I hope in Lenny + 1 this will be realized. The good news is that Nick Kossifidis is working on getting support for the Eee into ath5k. For patches, see: http://kernel.org/pub/linux/kernel/people/mickflemm. I have created a stub page FreeYourEee in our wiki about making a completely DFSG free install of Debian on the Eee. I encourage anyone going this route to contribute.

    Next.

    Previous.