Search Results: "edd"

3 June 2006

Jonathan McDowell: Hello? Is there a problem with the line?

My E3 is currently sitting running KPhone/Pi under OPIE. Annoyingly I currently have to have a USB mouse attached due to lack of a suitable pointing device on the E3, but I'm sure that's solvable in time. More disappointing is the fact that it doesn't really work. :( I can successfully SIP register with my local Asterisk instance, and dial voicemail successfully. I only hear a fragment of the "Chameleon mail" prompt and attempting to send DTMF to choose a mailbox doesn't work either - I don't know if this is because I leave it too late or if they don't get sent at all. OpenEmbedded doesn't have any other OPIE based SIP or IAX clients, nor anything text mode that I can see. I found ZiaxPhone but it seems to be closed source so I can't rebuild it. Guess I'll have to find a text mode client and try to work out if it's KPhone, the audio driver or the E3 not being fast enough that's the problem.

1 June 2006

David Pashley: Tidying Up

A few hours ago I got stressed about the lack of leg room under my desk and ended up spending the next few tidying and moving all of my computers to under the next desk. I also made the mistake of starting to remove keys from my keyboard to clean something sticky and found myself surrounded by keys and a keyless keyboard. It's now nice and shiny, which is more than can be said for the rest of the flat, which is now overrun with all the crap that was around my desk. Another thing that could do with a tidy up is Eddie, my Java liberal feed parsing library. After the initial coding sprint, I've had time to sit back and look at the design of the library and clean up any thing that sticks out. As mentioned in a previous entry, one of the things that has bothered me is that when ever you need to call an object method, you need to be certain that the object is not null. The means you end up with code like:
if (string != null && strong.equals("string"))  
This quickly becomes tiresome and the test for null distracts from the meaning of the code. Fortunately I was reminded of an improvement for string objects. Ideally, we should all be writing comparison conditionals like rvalue == lvalue. (an rvalue mostly is an expresion you can't assign to). The most common rvalue is a literal value like a string constant. The advantage of getting into the habit of writing code like this is that you'll discover at compile time when you accidentally write = rather than ==. Because you can't assign to an rvalue, the compiler will complain. What makes this interesting from a java string point of view is that you can call methods on string literals. Comparing a variable to a string literal, rather than calling .equals() on a variable is that the string literal is not going to be null, so you can remove the test for null and simplify the code:
if("string".equals(string))  
I know it's not everyone's cup of tea, but I prefer it to testing for null every time I look at a string. The other thing is that I've been reading Hardcore Java by Robert Simmons at work. Considering I've only got a few pages in so far. I've received a surprisingly large number of ideas to improve my code. The one that sticks in my head is using assert for doing post and pre conditions on your functions. Using asserts have number of advantages over throwing exceptions, including the fact they get optimised away when you do a production release. In Eddie, during a <feed> element I determine the version of Atom that we are parsing. This had a number of nested if/else if/else blocks. At the end of the function, I wanted to make sure I had set the version string to something, so had the following code:
if (!this.feed.has("format"))  
   throw new SAXParseException("Failed to detect Atom format", this.locator);
 
However, using assertions I can write this as
assert(this.feed.has("format")) : "Failed to detect Atom format";
I highly recommend the Hardcore java book if you want to improve your java programming. It includes sections on the new features of Java 1.5 and using collections. I've made a couple of other cleanups including going through member variable access specifiers to make sure they are right and making several public methods and variables and making them priavte. I also have a couple of ideas about refactoring some of the code to clean it up. Redesigning and refactoring code is almost more fun than writing it in the first place. You get to be in competition with yourself, challenging yourself to write better code and end up with cleaner code in the process. A couple of things I want to do in the near future is use a profiler and code coverage tools. If anyone has recommendations for either of these tools that integrates nicely with eclipse, I'd love to know.

31 May 2006

David Pashley: Eddie RSS and Atom Feed Parser

I'd like to announce the initial release of Eddie, a feed parser library written in Java. It's taken me over 100 hours, but it now correctly parses 90% of the FeedParser unit tests, including all the rss and atom tests. It's GPLed, with an exception allowing you to use it in any open sourced program. Get it at my website. Need to add documentation and character set and encoding support. Also need to separate the testing infrastructure from the rest of the code. This is the first time I've done any java programming in anger, and I have to say I'm surprised to discover I quite like it. In many ways it seems a very quick language to program in. It seems almost like programming in a scripting language, but stronger typed. This is probably due to not having to worry about memory management. Certainly I don't think I could have written this quite so quickly in C++. Having said that, there are a couple things that I don't like about Java. Everything is a pointer. This is useful at times, but it means that every time you want to call a method on an object you have to test whether it is null or you run the risk of getting the dreaded NullPointerException. Java also doesn't have keywords for and, or and not. I know not everyone likes these, but I keep finding myself trying to use them. I'm sure there are other things I hated, but I can't remember them now. I think I'll end up doing more java programming in the future.

29 May 2006

Dirk Eddelbuettel: Quantian HOWTO on running / installing inside a VMWare Player virtual disk

Based on the detailed notes by Simon Blomberg which he sent me by email, I added a reasonably detailed HOWTO on running Quantian via the VMWare Player. I had intially blogged about this here and here, but never expanded on this. The HOWTO shows how to create a virtual disk using the qemu-img command from qemu, how to add such a disk image to simple the VMWare Player configuration file, and howto install into that disk, and later boot from it, inside a VMWare Player session. All of this should actually work for just about any bootable iso with an installer, not just those that are based on Knoppix. Feedback welcome!

Dirk Eddelbuettel: Bike The Drive 2006

Yesterday was the annual Bike The Drive in Chicago. The very scenic Lakeshore Drive, also known as LSD, gets blocked for four or five hours until 10:00am, and almost 20,000 cyclists take advantage of it for doing 15 to 30 miles from Grant Park down to Hyde Park, and up all the way to Bryn Mawr. Couldn't have asked for a nicer day as all of a sudden summer has broken out here with temperatures of over 90 degrees fahrenheit. It's really stunning to have the sunlight gleaming over the lake, to see the city skyline in bright sunlight, and to be surrounded by nothing but bikes. A nice outing, highly recommended. We then took the afternoon off and baked at the neighborhood pool.

27 May 2006

Dirk Eddelbuettel: JPM Chase Corporate Challenge 2006

Yesterday was the 2006 edition of the JP Morgan Chase Corp. Challenge -- in its 30th year overall, and for the 25th time in Chicago. 19000 runners, and I didn't pay attention to securing a good starting spot, so I spend one mile running around slower runners and walkers. Hand-stopped finishing time of 23:09 (about 6:37 min/mile), a minute slower than last year's rather decent time, but still better than 2004, 2003, and 2002.

24 May 2006

Wouter Verhelst: Duck with whisky

One of the classic recepies that get forwarded by mail over and over again to me is the following. It's usually in Dutch, but I've translated it: Get yourself a duck of about 1.5 to 2kg, and two large bottles of Scottish whisky, bacon strips and a bottle of olive oil.
Put the bacon around the duck, and treat the inside with pepper and salt.
Preheat the oven for 10 minutes at 180 degrees Celcius.
Fill a large glass with whisky.
Drink the whisky while the oven is preheating.
Put the duck on a fireproof platter and fill out a second glass of whisky.
Drink out the second glass of whisky and put the duck in the oven.
After 20 minutes, put the oven to 200 degrees celsius and vill 2 glazzes of whisky.
Drink out the glazzes and pick ub the piecez of the first glazz
Fill anozzer half glazz and drinkit.
After halven our, open the ovven to cheq the duck.
Fetch the burninjury oindmend in the bathrthroom and pud it on the ubber zide of the lef thand.
Vill anozzer two glazzez of whiskey.
Open the ovven after the first glazz izz embdy and biggub the bladder.
Pud the oindmend on the inner zide o the righdhand.
Biggub the dug.
Biggub the dug again and use a towel to rrremovve the oindmend from the dug.
Degreaze th hand with visky and biggub the oindmend dube whisj is laying onthe ground.
Clean ub the brokan glazz and put the dug bag in the ovven.
Pig ub the dug and open the ovve firs.
Open the segond boddle of bisk and pud id straight ub again.
Get ub from the fllloorr and puz the bagon under ve cabined.
Geddub again and siddown aniwey.
Pud the boddle on the flooj.
Dring fromve boddle since the glazzez are borken or unreadjable.
Switch ovv the ovven, gloze your eyez, and ffffall over. No, I didn't try it. But it might sound like something nice for a DebConf in Edinburgh...

23 May 2006

Edd Dumbill: So, you missed XTech?

If you missed being at XTech 2006, no need to worry, there's some great coverage out on various blogs right now.Suw Charman has some detailed transcripts of sessions she attended. Find them via the "related entries" bit of her XTech wrap-up post. I'd not had the pleasure of meeting Suw before last week, and I was enormously happy that she came to speak at the conference and contributed so generously in her blogging.(I also had a very interesting conversation with Suw about venues in London, which is all I'll say for now, but watch this space for news of a plot I'm cooking up for later this year.) Thomas Vander Wal has also written about his XTech experiences. It thrills me to bits that we were able to challenge and stimulate established web experts and newcomers alike.I'm really grateful to everybody who has blogged about XTech. It really improves the experience for everyone, and reaches out to those who were unable to attend. Through Planet XTech we were all able to get instant feedback and reflection on the conference. I've tried to read every word that has been written, good and bad, and will fold what I've learned into the planning for next year's event. And now is not the time to rest. XTech 2007 will be held in Paris, in May 2007. I will very shortly be announcing the theme and confirming exact dates and venue.

22 May 2006

Edd Dumbill: Give me books, twice

Two books have recently been published that I want to read.The first of these I took delivery of instantly in PDF form, and a paper copy will make its way to me in due course so I have it as a handy reference.The second of these is going to take 12-14 days from Amazon (5-7 days if ordered through O'Reilly's UK distributor Wiley).
There's been a lot of talk on David Heinemeier Hansson's blog about PDF publishing, but to me it's simply a way of getting me the information I need quickly. Normally, I want the paper copy too.Another small but significant benefit is that PDFs weigh very little! Having just taught a Rails tutorial at XTech, I can vouch that there was no way we wanted to carry around 30+ copies of the Rails book on the offchance attendees wanted to buy it. Whereas some publishers have experimented with certain product lines available only as PDFs, I can't quite shake the feeling they're offering an inferior product in which they are not confident enough to commit to paper.My suggestion is that PDF and print is not an "either/or" choice, but an "and/or".

21 May 2006

Edd Dumbill: Better subpixel rendering on Linux

The move to better subpixel rendering in X windows continues. Tobias Wolf kindly pointed out to me these new patches from David Turner. Turner says "it's rather delicious" and I'm inclined to agree.
Applied to libXft and Cairo, they remove a lot of the ugly colour fringing from subpixel rendered fonts under Linux.David posts a screenshot, which looks great on my screen (if you have a CRT or different pixel ordering, it may look horrible for you -- the disadvantage of subpixel and screenshots!)Update: Tobias mentions another patch, which is needed to get best results. 

Edd Dumbill: Emacs hate mail

Regular readers will know I'm keen on getting good-looking fonts in Emacs under Linux. And so are a lot of other people, judging by how popular my Emacs/Xft posts have been. I have found out this is enough to drive some people to me sending nastygrams.
To: Edd Dumbill
Subject: whoareyou I don't know who you are, but... Emacs is a programmers editor. Sure, scalable fonts would be good for GNUEmacs, but they are not a necessity. If you want the wysiwyg experience, try XEmacs, I don't like XEmacs, but you are welcome to try it. I have used GNU/Emacs for the last 12 years as a code editor.  I like it just fine, and that is an understatement.  Leave it alone.

Evan Prodromou: 2 Prairial CCXIV

The wedding yesterday was fantastic. All three of us had a super-great time; the whole process was a cool mix of casual and formal, family and friends. Jeff and Anne-Marie know a lot of great people, and we got to meet most of them.

20 May 2006

Evan Prodromou: 1 Prairial CCXIV

It's the first day of Prairial -- dedicated to luzerne (wp:alfalfa) -- and I'm in wt:Mont-Tremblant for the wedding of friends Anne-Marie and Jeff. We got a late start last night, and we didn't get into the rental until 9PM. By then, we were too exhausted to do anything but order pizza and beer for delivery and crash out.

19 May 2006

Evan Prodromou: 30 Flor al CCXIV

We're off to Jeff and Anne-Marie's wedding this afternoon, but there's tons to do before we leave. We have 100 wine glasses and 100 water glasses that we're bringing to the event, which are left over from our wedding in 2004... and haven't been washed since. Blech!

18 May 2006

Edd Dumbill: Live from XTech

Well, it's finally arrived and here I am in the middle of it all.
Rails fun

The week kicked off with Matt and I teaching our tutorial on Ruby on Rails. It was the first time we've taught on that topic, so we were interested to hear the opinions of the attendees. We embarked on a fast-paced day-long tour of Rails features, with a large amount of live coding on screen.The aim was to give attendees an understanding of Rails as an environment for developing web applications, to let them see how fun it was to code (especially tests) and provide a bucket full of jumping off points for them to pursue their own investigations. With six or seven deployed Rails applications between us, we're in a good position to talk as real-world developers.
I think we pretty much succeeded. During the day we saw many places to improve the material and the flow, but the concept was sound. Teaching together meant we gave each other energy, humour and support. From the feedback, everybody was kept entertained and engaged as well as educated. Folks went away with the slides and the source code for the application we developed over the day. We thought about making our own course notes, but really there's nothing better than the Pragmatic Rails book, so there didn't seem much point in duplicating that effort.
We'd certainly like to do it again, and we're interested in visiting companies interested in Rails to bring their developer teams up to speed: we've already heard from one company attending the conference about that. So do get in touch if that interests you.KeynotesPaul Graham kicked off the conference with a provocative keynote comparing the conditions in the EU and US, and their suitability for stimulating startup companies. This has already sparked off a lot of discussion on the web, which is great to see. I'm really grateful to Paul for travelling a long distance to speak to us.We also heard from Jeffrey McManus of Yahoo! (I can never write "Yahoo!'s Jeffrey McManus" because the consequent train-wreck of punctuation upsets me). He shared the remarkable number of APIs and places where Yahoo! lets developers hook into their data and services. There's so much in there, I resolved to put some serious time aside to investigate what I could make use of.
CoverageThe site I set up for last year's conference, Planet XTech, is doing a great job aggregating blog coverage of XTech again this year. It's a great way for people here, and those following from a distance, to keep up with what's going on. Some folks are blogging really detailed notes, which is fantastic for the talks I've not been able to get to.Next yearIn a couple of weeks' time, I'll start thinking about next year's conference. I'll try to pull together what we've learned this year to make XTech even better. One thing we know already is that this year is our last in Amsterdam. We've been here three years and had a lot of fun. Next year, we're heading to Paris, which will be wonderful.Please do write to me with any comments and suggestions about XTech. One idea I'm playing with is the idea of a smaller related event later in the year, focused on educating people about web technologies.

Ted Walther: Report from Debconf, Day Four

Day trip. Six busses full of Debian developers, maintainers, and supporters toured the area around Oaxtepec today. We clambered over several Mexican pyramids and a ruined mountain-top city. Walking in the main entrance I immediately felt that it was very familiar. I identified the pool where they purified themselves before entering the complex, and several altars. Some of the things the archaelogists called "altars" looked more like bed platforms. I told the guide maybe they were both; ancient religions were known for their homosexual sex rites. Then we saw the palace of Cortes in the city of Morelos. It is a very swank city, fun to walk around and shop. We got back at 10pm, tired but satisfied. Bought a t-shirt that says "100% GUAPO". The Hispanic contingent at Debconf went wild. They may give me some photos to post soon. Lisp redux. Kevin Mark read my summary of Peter van Eyndes presentation yesterday, and sent in this email:
Hi Ted, you seem to be having fun at Debconf! Saw your post about a book by Peter Seibel. Strangely enough I attended a meeting at lispnyc with him this week. They shot video which hopefully you can see. Checkout http://www.lispnyc.org/home.clp cheers, Kev
Well, thanks Kev! At lunch yesterday, a fellow developer, whose name I forget, told me that OCAML is far superior to Haskell in terms of performance because it is "statically typed at compile time" or something. I thought that was a characteristic of Haskell as well. I mentioned the benchmarks that Haskell is currently winning, and he brushed this aside. Which may be appropriate; optimizing for benchmarks isn't the same as optimizing for the general case. Food. We had lunch yesterday at a restaurant. I hate zucchini, but their zuchini stuffed with quesa (cheese) was delicious. I haven't found birria (shredded goat meat) in the market here yet, but the restaurant had some. At the end of the meal a vendor came into the restaurant with some crisp, deep fried confection called "churros", coiled like a big hose. Its cross section looks like a five point star. For P10 the vendor broke off four pieces, 5 inches long. Knut shared his with me; it was like a donut, only crunchy. John Sokol. John Sokol, part of the original 386BSD team, arrived late Tuesday night. Carrying 80 pounds of luggage, he not only took the Metro, but he walked up the mile longer hill from the resort entrance to the conference. The Metro is nice, but it has a lot of stairs. I was tired after traversing it; I could not have walked up the hill if I tried afterward. He brought a VOIP phone with him, but it gives an error saying his account has been compromised. It is probably looking at his Mexican IP address and blocking it. So John and I have no way of phoning the outside world.

17 May 2006

Ross Burton: OpenedHand World Domination Progressing Well

The plans for World Domination by OpenedHand are going well. So well infact that we need more help: we're hiring an Embedded Linux System Engineer and a Technical Project Manager. For more details, see the OpenedHand Jobs page. NP: Always Beating, L'Onomatopeur

Jonathan McDowell: Silver vs White Gold vs Platinum

So I need to get a wedding ring. Given I hope to wear it for the next 50+ years and that I've worn a ring in the past I figured something more interesting than a plain band would be nice. Many years ago Kathy bought me a silver Celtic style ring I was fond of, but unfortunately I lost it a while ago, which was upsetting, so I thought it would be nice to get a wedding ring that was similar to the lost ring. However. I don't like gold. So the logical choice seemed to be white gold. Until a jeweller told me that it was plated which would wear over time and require replating every few years. Which is a bit offputting. Anyone any experience of this? I've seen mention of getting it replated with a thicker than normal coating, which makes it less likely to require regular updating? The other options seem to be silver or platinum. Does anyone have silver wedding rings? Does it last well enough? It's a lot cheaper; is that the only reason why they're not common or is there something more fundemental? Platinum is more expensive than white gold, but that's not a huge issue for the last ring I plan to wear. Is it harder to work though, making it less likely that I'll find what I want? I found a ring at Ortak that I like, but no platinum option and I'd want to see it before buying, so online is out. Can anyone suggest a decent jeweller to talk to in Norwich? I've had a look around but not seen anything matching what I want. Alternatively I guess I can look in London.

Ted Walther: Report from Debconf, Day Three, Part II

X Window security. Wandered outside the hack lab to sip a drink and cool down. There I saw Keith Packard and Bdale Garbee. Quickly introduced myself to them both, then asked Keith what his take was on the recent OpenBSD complaints that X11 is insecure by design [1] [2]. Keith said he wasn't going to respond to those complaints, because DRI/DRM already provides what Theo de Raadt says he wants in the way of kernel control over dma and register access on video cards. Many X11 video drivers are not yet converted over to doing things the DRI/DRM way, and so Theo is correct that X11 has huge security holes. But they are not permanent; the future is already arriving. Although DRI/DRM is positioned as a 3d technology, it is intended that even 2d drivers in the future will conform themselves to its API. Keith also said that OpenBSD's representative on the X11 team is easy to work with and cooperates well with the team, so there is hope that if OpenBSD turns its attention to X11 support, everyone will soon benefit from the comprehensive security audit. Although the DRI/DRM design solves the security problems, it is a bitch to implement. Mode switching alone is so finicky and is so tied into both the video hardware and x11 server optimizations, that it has never successfully been implemented in the kernel. Keith said he supported the idea of isolating the mode switching code out into a small, privilege separated userland utility. There were many other things said, which sounded positive, but without the aid of a tape recorder, I can't remember them. Putting packages out of main. Learnt a trick today, courtesy of Phil Hands and Ralph Amissah. If you want to upload a package into a part of the distribution other than main, you alter the Section: field of the debian/control file in your package. Suppose your package fits into the text section, because you use it to process text. Maybe you reimplemented awk. If you put Section: text the package will go into the text portion of the main repository. If your version of awk depends on a library that is in the non-free section, you would put it in the contrib section. So you would put this in your debian/control file: Section: contrib/text and Bob's your uncle. Politics. I find myself doing vastly more politics at this conference than coding, although I am getting some of that done too. When people are deep inside their own worlds, it takes a lot of work to bridge between the worlds. So far it seems like time well invested. Embedded. If anyone needs any embedded work done, Wookey is your guy. Send him an email with a proposal.
  1. 2006-05-11 22:00:04 Re: security bug in x86 hardware (thanks to X WIndows)
  2. 2006-05-13 20:07:35 Re: security bug in x86 hardware (thanks to X WIndows)

15 May 2006

Junichi Uekawa: wookey, BOF on embedded Debian.

scratchbox 2, crossbuild.

Next.

Previous.