Search Results: "eric"

29 July 2007

Alastair McKinstry: Detecting life on terrestrial exoplanets

DARWIN proposal to ESA
Thanks to Centauri Dreams for the pointer to the ESA DARWIN proposal now here (high-resolution version also here). DARWIN is a space mission to detect the presence of life on other planets by spectroscopy: looking for biomarkers such as the presence of Ozone, water and methane together on terrestrial-sized planets. These are groups of gases that collectively would imply the presence of life. Unfortunately it appears that DARWIN is slipping: its not currently hardware-funded, and has a planned launch-date of 2020, having slipped from 2012. This is when NASAs alternative Terrestrial Planet Finder and Space Interferometry Mission have been defunded indefinitely. At the same time, the French COROT mission has just announced its first month-long series light-curves. COROT hunts for Earth-sized planets: it's a small space telescope that stares at the same patch of sky for long periods, looking for changes in the amount of light from stars that indicate a planet passing in front of a star. It has been much more successful than expected, having already announced its first exoplanet detection in April. NASA is also launching a similar mission, Kepler, in 2008. So we face the prospect that any day now we may know of Earth-sized planets in a Habitable zone, and yet be over a decade from determining if they could contain life. So do we have any other tricks up our sleeves? Other possibilities include the James Webb Space Telescope, the successor to the Hubble. With a launch planned in 2013, it would be able to determine some atmospheric features found in COROT detections, but would be too expensive to do the planet-hunting Darwin could do. Perhaps this could be imroved with occulters such as UMBRAS (thanks to enzo). Other novel detection missions include the Voyager Interstellar Mission (via), reusing exisiting 'end-of-life' spacecraft as telescopes. And finally, could ground-based telescopes do it? tests have just started on a new 10M telescope in the Canaries that could help; in terms of larger scopes, colleagues of mine in NUI Galway have been collaborating on the design of Euro50,a proposed 50 M telescope. Together with new techniques such as spectral deconvolution (via via) may help. Tags ,

28 July 2007

Martin-Éric Racine: Dear lazy Fluendo

Surely there must be a way of using gstreamer0.10-fluendo-mp3 to produce MP3 files using Sound-Juicer, so that I can listen to my favorite albums on my Sony-Ericsson phone while commuting to work via the Helsinki-Tallinn ferry, but how?

Martin-Éric Racine: Localisation beyond language packs

In my previous post, I briefly mentioned my K750i Sony-Ericsson mobile phone. I received it as a birthday gift this year, to replace my aging but trustworthy Nokia 3210 and, as with any multifunctional digital device, there was a learning curve during the adoption period. While some features were gladly and swiftly taken into use, some of the handset's usability issues became my pet peeve and, among them, the localization pack wins the jackpot. First, let's make one thing clear: I fully understand that memory constraints prevent manufacturers from including support for every language known to man, so a handset can only be loaded with a limited set of languages for the User Interface and for T9 predictive text input dictionaries. My issue is with the concept of grouping languages by linguistic families or continental areas, when compiling the localization packs for those handsets. In this particular case, I had a choice between the Baltic or Nordic packs. The former has UI language support for Estonian, Latvian, Lithuanian, Polish, Russian and Ukrainian, while the later has support for Finnish and the Scandinavian languages; English is also included in both cases. T9 support is a strangely mixed bag: the Baltic pack only includes predictive input for the Slavic languages, while the Nordic pack supports all the languages of its UI. What's my problem with the above language combinations? For starters, I'm in Finland. We don't interact with Danes or Icelanders outside very occasional pan-Nordic meetings and that mostly concerns politicians. Meanwhile, average Finns travel for work and play to Estonia and Russia on a fairly regular basis, which makes sense, since they are neighboring countries. However, available language packs don't take this into account. How should this be resolved? Either language packs are produced with specific countries in mind, rather than generic geographic areas, or the users should be allowed to freely mix and match among all available languages and get the result flashed into their handset at purchase time. The K750i language pack for Finland should therefore include: Finnish, Swedish, Estonian, Russian, English and Norwegian (essentially the current Nordic language pack, but with Danish and Icelandic replaced with Estonian and Russian). Then again, this only covers official state languages. Sam dialects, anyone? I guess not, because we'd soon be exceeding the handset's capacity. Hmm... Thus, the only real solution is to allow people to freely mix and match UI and T9 languages of their choice at purchase time. As a bonus, this would allow me to drop Norwegian and replace it with Joual... ... c lisse, French and finally have a language pack that I can truly find useful. I can easily picture a Transylvanian engineer working in Finland wanting to get Romanian support or a Kurdish immigrant preferring Turkish support instead. Sony-Ericsson, how about it?

John Goerzen: OSCon and Portland Wrap-Up

I really enjoyed OSCon. This was the first conference I've been to in years where I've felt a bit sad that it's over. I met a lot of interesting people, enjoyed most of the talks I attended (and especially this morning's keynotes), and also enjoyed Portland. I recommend OSCon. Last year, I went to Usenix ATC. Compared to Usenix, OSCon had more talks that were relevant to things I'm interested in, more people that I met with similar interests, more people that I knew online and met in person, and a more broad program. The one criticism I would level at OSCon is that it has a disproportionately high number of web-related talks.

On to other items...

Portland

Probably the friendliest "big city" I've ever seen. Everyone from cab drivers to bus drivers seems to go out of their way to be helpful and friendly. Somewhat different from, say, Chicago or Los Angeles.

The climate is very nice and the transit system is excellent as well. While it doesn't move as fast as below-ground systems, since it has to work within traffic, one nice thing for visitors is that you actually get to see the city and see potential places to stop. Last year, we went from Boston to Cambridge on the T, but you don't see much except a whole lot of concrete along the way.

The Japanese Gardens are wonderful and deserve a visit.

Compared to Indianapolis, where we lived for awhile, Portland has some nicer parks, and a better transit system. I think that Indianapolis had a nicer walking path. Portland had a lot of friendly people, including many that worked for TriMet. MAX was very nice, with frequent departures. The TriMet system had scattered electronic signs about the MAX lines, streetcar stops, and even some bus stops I think. These listed how many minutes until the next departure in each direction, and were very helpful. Stations were announced audibly and on signs on-board. There was helpful information at stops and platforms.

Indianapolis has a really quite awful transit system, which consists of, let's see, regular buses and small buses. These run infrequently, are known for not being on-time, and a former co-worker had trouble with them just not showing up at times. They also all seemed to run between downtown and the outskirts. So if you wanted to go from one area towards the outskirts to another area there, you'd have to go towards downtown and back out.

Because of all this, I never rode IndyGo, and wouldn't ever encourage visitors to. TriMet was very different, and if I lived in Portland, I'd want to live close to MAX.

Hotel

The DoubleTree Lloyd Center is a nice, friendly hotel. Everyone here has noticed that the elevators inexplicably stop on the 2nd floor every time they go down, but other than that, we have had no real problems (other than some water dripping onto the desk when we first were here, but maintenance fixed that). It's annoying that they charge for in-room Internet access, but that is unfortunately typical for hotels of this class.

The room is also a bit small, but has worked out OK. The hotel is very close to a MAX stop, and fairly close to the Lloyd Center mall, which is convenient. The staff is very friendly and helpful as well, especially the concierge staff, which are great and helping visitors find their way around the city and the transit system.

They give you cookies on check-in, but Terah was disappointed that they didn't offer any without nuts.

Restaurants

I had opportunities to eat with various people from OSCon, some Portland area people, and of course, Terah and Jacob.

Portland has some good restaurants, and a few more iffy ones...

The Multnomah Grill in our hotel was one of the iffy ones. I had the ribs, which were not at all good. The prices were about in line with other Portland restaurants, which is too bad because the food wasn't. Because of all that, I just couldn't bring myself to try the other restaurant in the hotel, Eduardo's Mexican/American Cantina.

I had heard about Jake's Famous Crawfish from a passenger on the train. It was also listed on the OSCon wiki restaurants page. It's a historic century-old restaurant, with excellent seafood. I had parmesean-crusted Alaskan Halibut, which was very good.

I also went to the Newport Seafood Grill, which is within walking distance of the hotel, just on the other side of the Lloyd Center mall. It was also good; I had a tuna dish served rare, with a sauce that complimented it well.

Blossoming Lotus Cafe is a vegan cafe in the Pearl District. I hadn't ever been to one of those before. It was OK, but not all that great.

Across the street was Sweet Masterpiece, a chocolate and coffee house. Excellent chocolate made in-house, all sorts of desserts, and good coffee.

Rock Bottom in downtown has some surprisingly good food options. I was there with a group of local and OSCon Haskellers, and it was a little bit hard to follow conversation all the time due to the background noise, but that's to be expected in this sort of place. I'm not into beer, but those that were enjoyed their selection, I think.

I also went to a couple of chains: Quizno's and Ben and Jerry's. Both were about what you'd expect from those chains. Good ice cream of course at Ben & Jerry's.

OSCon provided breakfast and lunch free to paid attendees. Breakfast consisted of a selection of various fruits, slightly stale pastries, and bagels. On the tutorial days, lunch was pre-made boxed lunch. For what it was, it was OK. On Wednesday and Thursday, lunch was served hot in buffet lines. They had chicken both days, which looked identical. I had tried it Wednesday so knew not to bother Thursday. Wednesday they also had salmon with cranberries, which was good. Their salads, breads, etc. were OK.

Oregon Convention Center

This is where OSCon was held. A very nice, but incredibly huge, building. They say it covers the equivalent of 13 square city blocks, and if you look on a map, you can see that it is indeed quite large. There was a lot of walking to get to everything, even though OSCon took up only one part of this huge place. Restrooms in particular were not in very convenient locations to just about anything. But it was a nice place and I wouldn't mind being there again next year.

25 July 2007

Martin F. Krafft: They could be onto something

The Neue Z rcher Zeitung relayed today the warning by the US American TSA (travel security agency) that terrorists may be practicing attacks on airplanes (in German) (sic), because the USA has recently found loads of highly suspicious substances all over the place. I love the warning, which states that they could be practicing attacks. They could also be tanning on the beach somewhere and laughing their ass off at the idiots in Washington. And the rest of the world, who have not enough guts to stand up against the crap emerging from the White House but instead just shamble along like brainless ducklings. Some have claimed that the terrorists have already won because nothing is as it used to be, and fear and chaos are spreading. I agree. I'll also claim that they're highly successful recruiters: after all, the governments of the Excited States of America and most of the European nations who like to grease up to Washington have long joined their ranks and are now themselves terrorising their people. Yet, if you ask them, they'll deny it. Brilliant recruiters. NP: Dominici: O3 A Trilogy - Part 2

24 July 2007

Alastair McKinstry: Quote of the Day

"It is unlikely that Xoce is larger than Xatm , because the ocean initially exists below the atmosphere". From Enhanced atmospheric loss on protoplanets at the giant impact phase in the presence of oceans, Genda et. al, Nature, 2005. Tags ,

Eric Warmenhoven: Let me explain

I’ve been thinking about what I’m able to write about TiVo without upsetting anyone, and so I’ve been doing a bit of research about what’s already been written. Surprisingly, a lot. So I decided that there really wasn’t a whole lot that I could say that isn’t already somewhere else on the web, and figured I’d just add in some technical explanations to questions that are likely to come up. For example, the remote that we will ship has the thumbs buttons, but the Comcast remote [pdf] doesn’t. If you compare the remotes closely (there’s a picture of the TiVo remote in the article linked above), you’ll see the Comcast remote has two buttons that the TiVo remote doesn’t: Page Up and Page Down. There you go. The TiVo UI uses Channel Up/Channel Down as Page Up/Page Down in lists, so we don’t need separate Page Up/Page Down buttons, and use them for Thumbs buttons instead. Also, to confirm what was written in that article linked to above, we really did rewrite our software in Java. Sort of. As the article states, we run on top of TVWorks’ TV Navigator middleware. It’s not a full OCAP implementation, but rather an implementation of OnRamp To OCAP, which is (from Informitv) not a precursor but “a subset of OCAP so that applications will be forward-compatible with the full OCAP specification.” In other words, we didn’t write the OCAP layer, nor the OS. And the Java-based software so far only runs on the Motorola hardware.

23 July 2007

Michal Čihař: Gammu test version 1.12.91

I just released new version of Gammu. This release brings lots of changes in AT phones driver, so please report any regressions from previous releases! Also experimental support for notes over OBEX has been added, but I din't have phone to actually test these, so again testing is very welcome! Full list of changes:

19 July 2007

Erich Schubert: Fun with spiders

(no, not the animals, but web crawlers!)For a pet project of mine, I've recently been spidering the web a bit myself. So far, I've processed over 100.000 websites. The machine doing the spidering is an old K6-450, so it's not particularly fast...My spider is downloading the web pages HTML, and eventually some framesets (but at most 1 level deep). It's using text contents, image 'alt' attributes, title and some meta tags. The text contents are tokenized and stemmed.This results in some fun numbers: Each of the web pages I'm spidering has about 6.4 categories assigned to it. I'll be using this training set to train an AI to classify web sites.(I've also started a web page for the project, but it's still pretty much empty so far, not worth looking.)

18 July 2007

Romain Francoise: NewVC: Emacs VC with changesets

Eric S. Raymond has apparently begun work on a new version of Emacs' built-in version control (VC) mode which addresses one of VC's historical shortcomings: its file-centric model. VC was originally designed for RCS, which tracks each file individually.

"NewVC" now has the basic infrastructure to manipulate changesets for backends that support them (Subversion, Arch, Bazaar, Mercurial); there's no UI yet but it looks promising... This change was long overdue, committing several files in one go is a must-have nowadays even with less advanced tools like CVS and having a common framework can only be good. Over the years, a number of more advanced interfaces like PCL-CVS and psvn.el have been developed to compensate for VC's defects, all with subtly different keybindings, which makes for a rather annoying experience.

I bet the folks over at DVC aren't too pleased though, since NewVC will probably make DVC mostly irrelevant.

Michal Čihař: Hidden Gammu feature - hints

When you connect Gammu to phone, it does several checks on phone (I'm currently talking especially about AT based connections). Some of these checks might result in suggestions on improvements in configuration either in code or configuration. However they are a bit hidden - you need to enable debug log to actually see them. One of those hints might allow Gammu to do much more with your phone:
HINT: Please consider adding F_OBEX to your phone capabilities in common/gsmphones.c
F_OBEX will tell Gammu, that phone can be switched to OBEX mode, which might provide access to more features than generic AT mode. The word might is important here, because for some phones OBEX does not bring anything new and using it only hides some AT functionality. This is also reason, why switch is not done automatically and you must change sources to do this. I'd gladly accept patches, if you have successfully tested F_OBEX with your phone!

15 July 2007

Eric Dorland: git'ing it on

A hot topic this past DebConf7 was git. I've bought into the hype, so I decided to take the plunge and move my Subversion repositories to it. A lot of people seem to be willing to part with their history when making the move, but I'm some what irrationally attached to it.

Most of my Debian packages are in one big SVN repo, which used to be one big CVS repo (I used cvs2svn to move). So I decided to pull apart each source package into its own git repository. I started with git svn clone like so:

$ git svn clone -A authors --trunk=trunk/libclass-makemethods-perl \
  --branches=branches/libclass-makemethods-perl/upstream \
  --tags=tags/libclass-makemethods-perl --no-metadata \
  file:///home/svn/debian libclass-makemethods-perl


And this gives a git repo that can track an SVN repo. But I want to go all the way, no turning back. So I made a little script to clean up this repo called clean-git-svn:

#!/bin/sh -e
tags= git branch -r   egrep 'tags/[^@]+$' 
echo "$tags"   perl -ne \
  'chomp($_); my $head = $_; s,\s+tags,debian,g; print "git tag $_ $head^\n"'
for i in $tags ; do echo "git branch -r -d $i"; done
upstream_tags= git branch -r   egrep ' +[0-9][^@]+$' 
echo "$upstream_tags"   perl -ne \
  'chomp($_); s,\s+,,g; print "git tag upstream/$_ $_^\n"'
for i in $upstream_tags ; do echo "git branch -r -d $i"; done
echo "git branch upstream current"
echo "git branch -r -d current"
echo "git branch -r -d trunk"


This will output a bunch of git commands that will make this a more "gitified" repo. I make no guarantees this will work, you should probably hand check your history with gitk to make sure this won't screw anything up. If your the part you're converting also came up from CVS, you'll probably have a bit of a mess on your hands that will need more manual cleanup. gitk is really an amazing visualization tool and can help a lot here. Once you're satisfied just pipe it into /bin/sh. Since git svn mostly can't track where you merged in your SVN repo, make sure you merge the upstream branch into master as soon as you can. It will save you a lot of conflicts later, trust me.

One thing I miss from svn is svn export. Does an equivalent command exist in git? You would think there would be an option you could pass to git clone to do this but I can't seem to find anything.

14 July 2007

Robert Collins: 14 Jul 2007

So we're here in sunny Vilnius sprinting on bzr. I thought I'd write up some of what we've achieved. On Thursday Wouter got most of the nested-trees branch merged up with bzr.dev, but about 500 tests failing ;). Jelmer has introduced a new parameter to the sprout api call on BzrDir called 'limit_to_revisions' which if supplied is a set of revisions which forms a strict limit on the amount of data to be fetched. This is intended to be the API by which the desire for limiting history - to achieve shallow branches/history horizons - is communicated at the 'bzr branch' or 'bzr checkout' stage. This API is tested so everything passes, but nothing chooses to implement it yet. I was hacking on commit (somewhat indirectly) by working on the repository-wide indexing logic we will require if we wish to move to a more free-form database with semi-arbitrary keys mapping to opaque data (at the lowest level). I got a core GraphIndex up at this point. Once complete this should drop the amount of I/O we perform during commit by half. There was some other hacking going on too - Tim Hatch did some tweaks to bzr-hg, Jelmer some bzr-svn, and so on. On Friday we carried on on the same basic targets: Wouter fixed the 500+ failing tests so now its only in the 5-10 range, and has been debugging them one by one since. Jelmer implemented the limit_to_revisions parameter all the way down to the knit level, for non-delta compressed knits (e.g. revisions.knit), which made knit1 repositories support the parameter and got the 'supports' branches of the interface tests being executed. I developed CombinedGraphIndex, and have sent the low level Index stuff up for review, and followed that up by implementing a KnitIndex implementation that layers on the GraphIndex API to allow the use of .knit files without .kndx. This new index API allows us to switch out the indexing code and format much more easily than previously - the knit index logic is decoupled from the generic indexing facilities. It also allows us to record arbitrary-parent compression chains. Finally Jelmer implemented the wishlist item for bzr-gtk of a notification area widget that can be used to enable bzr-avahi watching, and share commits with the local LAN/get notified of commits on the local LAN. Today is the last day of the sprint, and I hope that we'll get the nested tree branch passing all tests, the limit_to_revisions parameter causing delta-compressed knits to only copy data outside the listed parameters to the first full text, and have an experimental repository format that uses the new index layer for at least a couple of its knits (e.g. revisions and inventory, or revisions and signatures).

13 July 2007

Steve Kemp: We all have earned a lightness

Films One of the very few good things about my partner being away to the US for the next six weeks is that I can catch up on watching films which she doesn't like! Every weekend we go out and spend 10-15 pounds on 2-3 second-hand DVDs from local stores. That gives us something new to watch every week, and is a fun way to spend a day shopping together, in amongst doing other things.This has meant I've watched an awful lot of (awful!) films I'd never have previously considered, but I've also found a few gems I'm glad I got to see. The down-side is that we don't often watch films we've already got, since we don't have the time to do so. Anyway tonight is Aliens & Battle Royale.. Source Scanning A little more progress on that this week, another local root attack, a symlink attack against the Amaya browser and a potential root attack against evms. The EVMS bug is frustrating because the code is contained in a plugin which appears to never get built. I've tried searching the web for more details, but unfortunately I couldn't find anything. So in the interest of demonstration here's how you should not write code which runs as root:
        if(system("lsrsrc -axd IBM.PeerNode > /tmp/rsct_node_info") == -1) 
                LOG_ERROR("ERROR:get_nodes_info() fails ");
         
        
Why is this bad? Because it users a static filename /tmp/rsct_node_info - and that could be a symlink. Consider what happens if a local user were to run:
skx@vain:~$ ln -s /etc/passwd /tmp/rsct_node_info
The EVMS plugin would happily trash the /etc/passwd file, rendering the system broken... If this works on other distros that I couldn't spot don't tell anybody; it'll be our little secret ;) X.org Today I rebooted, to make sure that purging EVMS hadn't screwed with my initrd - and found errors relating to failure to load "keyboard" driver(s). Turns out you need to change:
Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "keyboard"
        Option          "CoreKeyboard"
TO:
Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "kbd"
        Option          "CoreKeyboard"
That took a fair bit of head-scratching.

Wouter Verhelst: Traffic Shaping

Erich Schubert blogs about traffic shaping, and shows how you can do some basic traffic shaping using a rather long example. I'm sure that example works, but mine is slightly less complex: tc qdisc add dev eth1 root tbf rate 212kbit burst 1540 latency 50ms This is actually a literal example in the Linux Advanced Router and Traffic Control-HOWTO, and it works for me. Linux has a reasonably good default prioritizing and queueing already, and using the tbf filter doesn't replace them, whereas the detailed sfq example that Erich gave does. I'm doing this on my router (on the outgoing interface), not my laptop, which is also a rather important bit. Of course, it working for me doesn't necessarily mean that it'll work for you too. But you might just want to try it...

12 July 2007

Julien Valroff: New mobile phone: Sony Ericsson K750i

K750i I have just received my new mobile phone: a Sony Ericsson K750i which I have chosen mainly for its price and multimedia features, but also because it has an internal modem, accessible via both bluetooth and irda. So far, I was already able to connect to the internet in GSM, will try GPRS tomorrow as I need to change my SIM card. libbtctl and gnome-bluetooth 0.9.0 were also released today. Updated packages have been uploaded to my unofficial repository (please read carefully the release announcement which explains these packages have been deprecated). I have also tried wammu for the first time, it will help me update my address book.

Erich Schubert: Shaping your traffic for improved performance

Sometimes, putting up an arbitrary limit for your network connection can actually improve the performance.A typical setup will look like this: your computer is connected via 54-100 mBit to a router, which has a DSL line of let's say 2 mBit downstream and 192 kBit upstream (and then tons of other links).When you overload one of these connections, performance can go down a lot.The simples case how this can happen is when you upload data. 192 kBit are the weakest link here, and rather easy to fill up.What happens then is that your computer will start sending out data at his full link speed, until the buffers at the router are full and it starts dropping packets. TCP/IP will then adopt and - lacking 'ACK' packets - slow down sending data. It will likely still keep the send-buffer of the router full.Now if the router isn't very smart, it just keeps a first-in-first-out buffer. As long as you have just this single upload, you don't need to care. But if you have other connections, like a download, you do care.For your download to run at full speed, the sender needs to get those ACK packets from you. They're basically a "got your data, send more" kind of message. Really tiny packets, but essential for signaling.A simple trick you can use now is to limit your bandwith at the sending computer already. Since you're going to limit it just to the next link anyway it doesn't mean it will actually be getting much slower. But your network stack is smarter than the router's (probably). It can send out these ACK packets at a higher priority, so you end up with a better download-and-upload performance.If you know your network connection speed, just use it. Otherwise you can still measure it or guess it. I'm always going for 95% of the speed I see. You might want to limit it a bit more if you are sharing the connection with others.Now enough theory, here's what I use:
IFACE=wifi0
# setup ingress filtering
/sbin/tc qdisc add dev $IFACE handle ffff: ingress
# local network is unrestricted
/sbin/tc filter add dev $IFACE parent ffff: protocol ip \
  prio 10 u32 match ip src 192.168.2.0/24 \
  police conform-exceed ok/ok flowid :1
# incoming internet traffic is limited.
/sbin/tc filter add dev $IFACE parent ffff: protocol ip \
  prio 50 u32 match ip src 0.0.0.0/0 police \
  rate 1500kbit  burst 10k drop flowid :2
# outgoing traffic
/sbin/tc qdisc add dev $IFACE root handle 1: htb default 30
# local network is unrestricted
/sbin/tc class add dev $IFACE parent 1: classid 1:10 htb \
  rate 54mbit burst 15k
/sbin/tc qdisc add dev $IFACE parent 1:10 handle 10: sfq perturb 10
/sbin/tc filter add dev $IFACE parent 1:0 protocol ip \
  prio 10 u32 match ip dst 192.168.2.0/24 flowid 1:10
# internet traffic is limited.
/sbin/tc class add dev $IFACE parent 1: classid 1:20 htb \
  rate 160kbit ceil 196kbit burst 15k
/sbin/tc qdisc add dev $IFACE parent 1:20 handle 20: sfq perturb 10
/sbin/tc filter add dev $IFACE parent 1:0 protocol ip \
  prio 50 u32 match ip src 0.0.0.0/0 flowid 1:20
Long example, I know. The main reason is that I'm not limiting traffic to local computers. Furthermore, I'm also limiting my incoming traffic to use up at most 1.5 mbit of the 2 mbit connection, so my housemates will be able to use the internet as well (Debian mirrors send data fast - fast enough to kick them out of any online game they might be playing...).There is one important detail hidden in there: sfq. This stands for "stochastic fair queueing". It tells the network stack to basically send "one packet for each connection in turn". This way, the small packets needed for download or interactive SSH sessions will get out quickly even when doing a larger upload.It works great for me - I'm having a good download rate, using the 160 kBit upload limit completely (I don't want to completely fill up the 192k upload link either) and I'm actually writing this blog entry remotely via SSH. The lag when writing is okay, probably around 300ms. Without shaping, this wouldn't work this well.(And no: just using 'sfq' for your outgoing traffic is not enough, since the key scheduling is happening at the weakest link. So you have to limit your traffic shaping setup to be just below the actual weakest link.)

11 July 2007

Joey Hess: saved my atari programs

I got a SIO2PC cable for my atari, hooked it up to a linux box, and used the atarisio tools to rip a few of my old BASIC disks. Now I can load them in the atari800 emulator, and will hopefully never lose this early code -- cuz it's in subversion now. The first disk I rescued ("finished programs disk 1") has a nice little menu on it with lots of games and stuff I'd put together. menu.png video.png jump.png I've always been proud of the "vidio" game, which is the first game shown above. It'd give Pong a run for its money in simplicity, and has gameplay I still enjoy (for up to 5 minutes at a time). You're the green dot, which is flying from left to right. Each time it reaches the right side of the screen, it wraps back to the left -- but leaves a blue wall behind. Crash into the wall and you lose a life. Sometimes other dots appear that you can pick up to get new lives. This sounds easy, but it's not, mostly because the Atari joystick (or my code for reading it) is not very precise, so it's hard to line up to exactly the right place on the screen to go through a small hole in the wall. In contrast to that piece on innovation, the "jump" game is a pretty generic platformer, jump over the water and shoot the enemy that's crawling along the ceiling. It's also a bit buggy. jump2.png code.png code2.png I took a look at the code, but the bug on line 200 isn't very obvious, whatever it is. This is how everyone's old code looks to them after 20 years ... right?
Update: Some more games I found.. tetris.png My version of Tetris for the Atari. It looks a lot better on a real TV tube. Two fun things in writing this were that I couldn't figure out how to program it to rotate the blocks on the fly -- so I just wrote out data with every possible rotation for every block. Also, Atari BASIC lacks arrays, so it uses strings for storing the game state. fatso2.png fatso4.png
(Colors are ok in 1st screenshot, but messed up in second.) Fatso's adventure had the best graphics I did on the Atari. It remapped parts of the the character set and used ATASCII characters as sprites. Ok, it's kind of a Lode Runner clone, but only the kind you write after having seen Lode Runner for 2 minutes. Looks kinda like it, but I don't think Lode Runner had spiders that dropped exploding eggs that broke all the rungs in the ladders..
Update 2: Disk images are nice, but regular files are nicer. I was able to explode files out of the disk images only with difficulty. I ended up using wine to run a windows program called Total Commander. It has a plugin that allows .atr disk images to be unpacked. To view the BASIC files, they have to be detokenized. I found a perl script to do that, that can be used on the fly of anything suspected of being a BASIC program. All the stuff is in my subversion repository.

9 July 2007

Russell Coker: Buying a Laptop from Another Country

Mary Gardiner has written a lazyweb post asking about how to solve the problem of laptops being more expensive in Australia than in some other countries. She didn’t post contact details or enable comments on her blog, but that’s OK as this information may be useful to other people. Some years ago I was living in The Netherlands and discovered that the cheapest Thinkpads were available by US mail-order (which didn’t support shipping to other countries). As I was attending a US conference (the Colorado Software Summit) anyway I decided to get a Thinkpad at that time. So I found an friend in the US who was attending the same conference who was willing to receive the Thinkpad for me. I arranged to have the Thinkpad delivered to his doorstep (he assured me that he lived in a safe neighbourhood) and a couple of weeks afterwards I met him at the conference and received my nice new Thinkpad! I’m sure that most people who are active on the net can find someone in the US who they would trust to deliver them a package costing >$1000 and finding such a person who attends the same conference as you shouldn’t be too difficult (I’ve done it). Another way I bought a Thinkpad was that I arranged to have a holiday in London at the same time as the wife of an American who ran a computer store. I met his wife at Heathrow airport and made the final cash payment for the Thinkpad that she delivered. I was worried about a police reaction to seeing a cash sale of a parcel in an airport, but there weren’t any problems… In terms of warranties on laptops, the Thinkpad warrantee is world-wide. You can quote a serial number of a Thinkpad when arranging the warranty repair and they will tell you which country it was purchased in, but they always cover you. I’ve had many Thinkpad repairs, I wear out keyboards regularly through constant use, and due to the extensive travel and hard wear often other parts wear out too. It’s been pretty rare for me to have a warranty repair in the country where my Thinkpad was purchased and I’ve never had a receipt available. It’s never been a problem, they know from the serial number whether the warranty is valid and take care of everything. Thinkpad repair (both under IBM and now under Lenovo) also operates when there is no hard drive in the machine. They don’t even ask a question about the lack of a drive, just note that it doesn’t have one. Update: It has been pointed out to me that importing a laptop without paying tax on it is illegal in most places. But of course if you pay the tax then the total cost will probably be about the same as buying it locally.

Gustavo R. Montesino: Summer of Code mid-term report

I. Introduction

Today, the mid-term evaluations of the Google Summer of Code starts. It means it's a good for a comprehensive summary of what I've done so far.

For those who don't remember, My GSoC project is the Bug Triaging and Forwarding Tool, whose aim is to help triaging of Debian bug reports. On my proposal, I had included the following timeline:

During the proposals evaluations and the community bounding period, it was pointed to me that there's already a lot of good tools to handle bug reports, so I've changed this a bit and already started to work on BTS-Bugzilla interaction, which seems to be the more novel part of the
tool.

The development has been fragmented in three modules: btsutils, bzutils and bug-triage.

II. btsutils

The btstutils is a python module to interact with the Debian Bug Track System. Currently, it can query the bts by bug number, package, source package, maintainer, submitter and usertag. For each bug, it returns bug number, package, summary, status, severity, submitter and tags. Support for returning usertags is under way.

Ths btsutils can use html or soap to access the bug data, and has also a backend-agnostic module wwith tries the best method and, if that fails, tries the other.

Steffano Zacchiroli has offered me to include the btsutils on the debian-bundle, a bundle of python modules for dealing with Debian infrastrcture. I'm very excited by this idea, and believe that if all or at least some of the Debian tools which interact with BTS end using a standardized module for access, this might end up being the major contribution of my GSoC project for the Debian community.

III. bzutils

The bzutils is similar to the bzutils, but is to interact with bugzillas instead. Currently it can do queries based on GNOME's bugzilla boogle and the more generic boolean charts. The later works (at least) on GNOME, KDE and standard bugzilla (i.e., landfill). For each bug, it returns bug id,
product, component, status, resolution, reporter, assignee, summary, priority and severity.

IV. bug-triage

The bug-triage is the Bug triaging and forwarding tool. It's being developed using python, gtk and glade.

Currently, it can query the BTS using any of the btsutils' supported fields (even though the usertags aren't really accessible through the interface yet). It can also launch one of the returned bug reports in a web browser.

Integration with bugzillas is under development. It already has an interface to establish links between Debian packages and upstream bugzilla's address, product and component. The next steps will be to add an upstream button in the toolbar/menu and make it show the bugs selected through these info, allowing the user to mark the bug as forwarded to one of them.

V. The future

After that, I'll work on these features (in no particular order): filling a new upstream bug using the Debian bug data as a starting point, more advanced filtering options to filter the upstream bugs (such as filtering by words in the bug summary, and maybe through backtraces if available) and more ways to manipulate the BTS through the interface.

To be sincere, it seems this project won't be as advanced as I would like on the end of the GSoC. There are some new, unexpected (and good ^_^) things going on my life, which are taking some of the time I expected to dedicate to GSoC, which means I'll likely keep the current pace until the end of the project (I expected to increase it during July). Even so, I believe the
project is going on a good path, and I hope it'll be very useful for the Debian community.

Next.

Previous.