Search Results: "edd"

18 February 2006

David Moreno Garza: For those who care about abrotman

Thanks to the fifty persons that signed the petition regarding abrotman coming to DebConf6! Unfortunately, the guys at Petiton Online temporarily disabled the petition due to anonymous postage, which I had already certified and didn’t get a reply (the bastards).In spite of abrotman’s undecision, here is, for everybody’s joy, a picture of him at a wedding party:

cakebutt

Yay!

David Welton: Maximizers, Satisficers and Programming Languages

Whilst ambling around on the web after seeing a post on reddit.com that piqued my curiousity, I happened on some work discussing "maximizers and satisficers", which, put crudely, says that there are two kinds of people. Those who, out of a group of options want the best one - maximizers - and those who just want something that will work - satisficers. Anyone who has been around programming languages more than, say, a week, will instantly recognize the above theme in the endless discussions of "which programming language is best?", or more generally, which "X" is best? I'd be willing to bet that programmers, and especially open source programmers, tend towards the 'maximizers' end of the spectrum - I don't want just any old X, I want the best one, dammit! Sometimes, this can be a good thing, as it leads us to continuously seek to improve things we come into contact with, or try new approaches, it can also be detrimental if your goal is simply to accomplish some task, rather than spending too much time fretting about finding the perfect tools to accomplish the task with. This also has ramifications for people designing or dealing with programming languages. One of the papers (the original?) on the subject (here), actually deals with the fact that maximizers, in their search for perfection tend to be less happy. Where satisficers are happy because they've got something that works, and they can go on to something else, maximizers have lots of room for "fear, uncertainty, and doubt" about their choices. In some instances, actually reducing people's choices makes them happier. Python's "one good way to do it" makes everyone happy, because both maximizers and satisficers know that they're doing things right, and don't have room to worry. Another example that I know well from my involvement in the Tcl community is "object systems for Tcl". For those who don't know Tcl well, it's an extremely flexible, extensible language, both in the language itself and in terms of its C API. So flexible, in fact, that you can write an OO system in Tcl itself, which has been done, or in C, which has also been done several times, leading to a proliferation of OO systems, and a never-ending stream of questions on the newsgroup about which is the best one? Perl's "there's more than one way to do it", despite apparently providing and pushing choice, may actually work well because it encourages people to be satisficers and use whatever works. I'm sure everyone can think of examples where too much choice causes doubts and hesitation. I think the lesson to be learned is that while it's important to encourage experimentation in order to explore possible solutions to problems, at a certain point it makes sense to consolidate and provide one or two recommended ways of doing something. That's not always possible (Linux distributions, for instance), and squashing competing ideas too early might cause friction with people generating innovation, so it can be difficult to accomplish, but I believe it's an important social aspect of software creation to keep in mind.

16 February 2006

Norbert Tretkowski: Embedded World

I visited the Embedded World in Nuremberg with a colleague today. We saw a few interested things (e.g. picotux, the smallest Linux computer in the world), and had some nice talks, but all in all it wasn't that interesting.

15 February 2006

Edd Dumbill: XTech schedule coming soon

The selections for XTech are now almost complete. Over the weekend I drafted the schedule, which is under review right now by the programme committee. Every year I say how hard a job this is because of the high standard of the submissions, and every year it seems to get harder. This year I found it almost heartbreaking to have to exclude some talks. Number crunching To illustrate, here are some statistics about the proposals and their selection. We received 177 submissions. Each of these abstracts were peer reviewed by at least 4 or 5 reviewers, from a panel of nearly 90 reviewers. From the graded results I shortlisted 105 proposals. From that 105 I have had to fill 68 schedule slots, which meant about a third of the shortlisted proposals had to be excluded. Almost every single one of these would have been a great talk. They were so good, in fact, that I'm working on some ideas for adding to the schedule. Notifications to accepted speakers will be sent at the beginning of next week. Rejection notices will follow a little while later. We don't want to send these out until we're sure we've done everything we can to accommodate as many quality presentations as possible. I am enormously grateful to everyone who submitted a proposal. I can't wait to get the acceptance notices sent out so we can publish the schedule. I can however reveal some early news about pre-conference tutorials. We'll have day-long tutorials on: Ruby on Rails; XSLT 2.0, XPath 2.0 & XQuery; and a Web 2.0 tech bootcamp. Also there'll be half-day tutorials on microformats, and XForms & XHTML 2.0. Finally, it's worth noting that registration is now open. Also, if you work for somebody who would be interested in sponsoring the conference, do get in touch.

13 February 2006

Simon Richter: Embedded World

So, it has been mostly decided that I'm going to be at the Embedded World expo tomorrow. If anyone is there too, drop me a line.

11 February 2006

Ross Burton: ZeroConf Bookmarks in Epiphany

Yesterday I noticed that Epiphany in Ubuntu (and probably Debian too) is now build with Zeroconf support, which means it will detect any web sites exported over Zeroconf and add them to the bookmarks. This totally rocks, as instead of having a number of bookmarks for various administration pages on my machines, the machines can export them over Zeroconf and when I am at home and those machines are on, they'll appear magically. The first step to having Zeroconf enlightenment is to ensure avahi-daemon is installed on all machines. It doesn't matter if there are some machines that it cannot be installed on (i.e. router running embedded software), as other machines can publish their name and services on their behalf. The first service I published is the web-based admin pages for my printer. The printer is connected to a small server called Melchett (a Buffalo LinkStation) which is running CUPS. By creating /etc/avahi/services/cups.service on Melchett with the following contents, the web site is published:
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
  <name>Epson Stylus Photo R220 Admin</name>
  <service>
    <type>_http._tcp</type>
    <port>631</port>
    <txt-record>path=/printers/epson-stylus-photo-r220</txt-record>
  </service>
</service-group>
Each .service file in /etc/avahi/services defines a group of services. A group has a name, and a set of services. Each service has a number of properties:
Type
Specifies what the type of the service is (_http._tcp is HTTP over TCP). There is a canonical list of types available. This is a required element.
Port
What port the service is listening on. This is a required element, there is no default port 80 for _http._tcp services.
Text Record
This sets arbitary key-value pairs, which are interpreted on a per-service manner. For _http._tcp services the valid keys are u (username), p (password) and path.
There are also domain-name and host-name properties, but these are not used in this service description as the service is on the local machine. In summary, you can see that I have specified that there is a web page accessible via HTTP on this machine, available on port 631 at the path /printers/epson-stylus-photo-r220. When other machines search the network for web pages they'll find this service entry (with the hostname properties filled in by Avahi), and generate the URL http://melchett.local:631/printers/epson-stylus-photo-r220 A quick pop into Epiphany shows that this is indeed the case, there is now a Local Sites category in the bookmarks containing Epson Stylus Photo R220 Admin. There is one other thing I need to explain: how to publish services on behalf of other machines. Until this afternoon this required something to run avahi-publish-address to give the machine a Zeroconf name, but this afternnon Trent committed static name mapping to Avahi. When this is in a released version, I'll continue this article.

8 February 2006

Joe Wreschnig: An Open Letter: Notification of copyright infringement to Abaakouk Mehdi

Update: The Listen website has been temporarily taken down, and Abaakouk Mehdi is in the process of fixing the copyright notices. I am very grateful for this. In my mind, this issue is finished; we’ll soon see a new release of Listen, with intact copyright notices, and everyone wins. Also, so people don’t take my opinion as anything other than solely mine - Eduardo Gonzalez and Michael Urman, the other Quod Libet developers who had their copyrights infringed, have also commented on the issue with slightly different views. (But first second, a brief open letter to people who leave anonymous comments calling me an ass: The only tool free software developers have to defend themselves is their copyright. Copyright infringement is not a “minor problem” but the single largest mistake you can make when writing free software. When you take my work, and strip my name from it, and plasters yours all over it, I have every legal and ethical right to be as pissed about it as I want. I love it when people use my code. I see no reason to love it when people misrepresent my code. Without the ability to pursue copyright infringement, I might as well be writing public domain code, and in that case, I might as well be getting paid for helping software hoarders, and screw you all. Abaakouk screwed up, really badly, but you guys who don’t want me to enforce my license are a real threat to free software.) Dear Abaakouk Mehdi, author of “Listen, just listen,” Your program is ugly. But beyond that, it’s infringing upon my copyright and that of my friends. Your mmkey support, on-screen display, config.py, stock.py, much of your utils.py, and probably more but because I’m already angry enough I’m going to stop looking, is taken directly from my audio player, Quod Libet. Normally, that’s fine. It’s free software. Enjoy the source. You didn’t credit any of our work on the website. That’s fine; it just makes you an asshole, albeit a law-abiding one. But you had to go one step further and rip off most of the copyright notices. You also licensed all the code under “GNU GPL v2 or later”. You can’t do that. Quod Libet’s source is released under the GNU GPL, version 2. My one consolation is your complete incompetence. I mean, it’s really obvious from your screenshots that you ripped off our OSD, and you even left in the horrendous Python style guideline violations that we’ve since fixed. You copied and didn’t use a lot of our utility functions (and you didn’t copy and reimplemented improperly a few others). You left in half my comments, but then translated some docstrings. And to cap it off, you authenticate yourself to leoslyrics.com as auth=QuodLibet. Remove my code from your release, until you can learn how to properly, and legally, credit people.

7 February 2006

Edd Dumbill: Scripting for the Semantic Web

I have the honour of having been asked to be on the programme committee for the 2nd Workshop on Scripting for the Semantic Web. Whereas a lot of semantic web conferences are heavily academic, this workshop mixes the learned approach with real world deployment experience and sharp-end grassroots semweb hacking. The topics the workshop seeks to cover are close to my heart and represent the place where a lot of discovery and experimental deployment of the semantic web is taking place. So, you should consider submitting a paper to this workshop if you're doing serious implementation work around RDF, wikis, syndication, FOAF and related topics. I was a little flattered to see DOAP in the list of buzzwords in the call for participation too! The workshop also includes the Scripting Challenge, where an iPod nano is up for grabs for "the most innovative small scripting application or mashup. The application must be implemented using a scripting language and Semantic Web technologies. It should access, visualize or combine information from different sources in new unforeseen ways." You can find the call for participation online at semanticscripting.org. The workshop itself will be held on June 11 in Budva, Montenegro--the day before the 3rd European Semantic Web Conference.

Erich Schubert: Let there be light!

I redecorated my (physical) desktop today. I still need some more posters, too much empty wall. But it's nice to lean back and have some colorful stuff to look at. Workplace photograph But do you know what's best? My laptop is back from repair. I have backlight again! Though I think they used a too short light tube, it feels somewhat darker on the left and right. But the laptop is old anyway. And the old tubes used to have a reddish tint there... I love having my 15" 1600x1200 screen back. ;-)

Clint Adams: Allison

She called him because she had had a big fight with her boyfriend and asked if she could stay with him if she needed to. He told her that she could. He cleaned his place like a man possessed. No one had ever seen him that driven before and no one would see it ever again. When she made up with her boyfriend and decided to stay at home, the embers of hope within him died. Normally he dated women who were contrary. They liked to fight with him and he liked to whimper and whine. There was a great deal of manipulative behavior on both sides, and a lot of emotion and intensity. He did not fight or squabble with her, but he loved her deeply. She got married shortly before he did. He married a girl with whom there was almost no passion at all. Some people cried at that wedding.

6 February 2006

Edd Dumbill: Places I'll be: Carson Summit, XTech, RailsConf

The conference season starts again. Here are a few pointers to places where I'll be over the next few months. Carson Summit on the Future of Web Apps I'm really impressed with the group of folks that Ryan Carson's got together for this event. The emphasis on "lessons learned" is important to me, so I look forward to hearing more. There's also a great connection in the topic with an article I wrote in October 1999, XML Inter-Application Protocols, in which I rave about applications moving to the web, the need for open standards, and the important role of XML in that through RSS and web services. All the stuff we're still just figuring out how to use! 7 February 2006, London. XTech 2006 Being the conference chair I'm biased on this one, but it's safe to say that it's going to be an amazing event. Keynotes from Paul Graham, Amazon's Jeff Barr and Yahoo's Jeffrey McManus. Paper reviewing has just ended so next week we hope to publish a provisional conference schedule. 16-19 May 2006, Amsterdam. RailsConf Very excited to be going to the first ever Rails conference. I submitted a proposal, about which I've not yet heard. Being one of 80 such proposals, it looks like the competition's tough, but I'll be there whether speaking or not. Though I'm arriving on June 21, I'm not booked in for the Rails Guidebook day, so I'm open to suggestions as to activities for June 22. 22-25 June 2006, Chicago.

3 February 2006

Lars Wirzenius: Rant: Secrets of Successful Programmers

The Seven Secrets of Successful Programmers article was on reddit today. I found it to be simplistic enough to be inane. Also not particularly good advice in all parts. For example, the article says that "[m]ost compilers will strip the comments from the executable program". Strictly speakig this is true: there is probably one or two compilers out there that retain comments in the binary code they put out. They're so rare, though, that it is quite utterly pointless to say anything about it. Anyone who needs to be told that comments don't impact performance or executable code size needs a course in basic programming, not secrets about being successful. "A good indication that you have got the level of comment right: could someone understand what your program does if all but the comments were removed?" I disagree with this: better advice would be "could someone understand the code if you remove all the comments?" It's the code that gets executed and so it is the code that should be used to communicate and not comments, except when code can't be made clear enough. For example: if you write a wrapper around malloc to check that it succeeds, a comment explaining why it is acceptable to just kill the application on failure would be good, and very hard to express with code. "In particular any code branch (an IF..THEN...ELSE construction) and any code repetition (a WHILE...END WHILE construction) should be indented so that it is easy to see where they start and end." Gee, that surely is a big secret that only successful programmers know about. "Expect the unexpected and deal with it. Before you open a file, make sure that the file is present." That's not a good way to deal with it. It's a race condition just waiting to blow in your face. The correct way is to attempt opening a file and then deal with an error if it failed. "Name your variables to aid readability. - - - The key is to be consistent and to be as informative as possible." Packing as much information as possible into a variable name can be a hindrance to readability. Too many people read advice like this given in well-meaning but misguided articles and then go on to name loop variables nElementIndex. The loop gets more readable if you name your loop variable just plain i. The loop variable is not significant enough to warrant all the attention from a reader that a long name requires. A short name in this context makes it much faster and easier to glance at the loop and see what it is doing. Obviously names with scopes longer than a (fairly short) loop need to be more descriptive. Here's my seven secrets of being a successful programmer.
  1. Learn to worship the goddess of simplicity. KISS a lot. This is much harder than it seems: it's more difficult to be simple and good than to be complicated and adequate. Simplicity starts with the specification of the program or system, and needs to permeate the design, and the implementation, at every step.
  2. Pick good tools, and learn them well. You need to know many tools, and know them well, or you'll waste time on doing unecessary things. Tools include software programs, books, algorithms, data structures, and mental models. Learn editors, programming languages, Unix command line tools, and so on. Learn at least three different paradigms for programming.
  3. Learn how to learn and keep on learning. New stuff is invented daily, and you need to keep up with it, or you'll end up as useless as a COBOL programmer doing a web shop.
  4. Develop debugging muscles. This is perhaps the hardest thing to learn, since no-body seems to be teaching it. You'll be spending most of your time doing it.
  5. Learn how to do testing well. Unit tests, test driven development, black-box testing, integration testing, regression testing, test automation, ... There's lots of ways of reducing the likelyhood that code escapes your hands with bugs still in it. It will inevitably happen, but if you know what you do, you can be better than most everyone else. The industry standard for commercial, proprietary code seems to be around 20 to 30 bugs per thousand lines of code; the Linux kernel has less than 1, and is known as a cesspool of bug-infested muck, so surely you can do better?
  6. Learn to write prose well. Then write a lot. If you can't write a README, a manual page, or the specification for your next work project, who's going to know about your great programming?
  7. Oh, you need to learn how to program well as well, and that isn't so easy either. Knowing how to program well merely isn't enough to be a successful programmer.

Dirk Eddelbuettel: RGtk2 packages available

Michael Lawrence announced the release of RGtk2 yesterday on both r-packages and r-sig-gui. This follows his impressive presentation at DSC 2005 and finally makes the code available. RGtk2 is, as the name suggests, an update of the older RGtk package (that I'd been maintaining in Debian as r-omegahat-rgtk) to the 'newer' version 2 of Gtk (aka The GIMP Toolkit). It provides Gtk goodies for the amazing R language and environment many of us dig for its use in statistical computing, visualization, data analysis, estimation and more. RGtk2 is quite an achievement. The source package is huge at 1.9mb, the resulting Debian package even huger at 5.3mb, and it all seems to work fine based on some initial tests of running the demos. Based on the two source packages, I created two packages of RGtk2 (as r-omegahat-rgtk2) and the Cairo device (as r-omegahat-cairodevice) which you can fetch from here. Not sure if I feel the urge to maintain them, but if someone else wants to step forward, let me know. Sources and diffs are in the same directory. Feedback welcome. Update: By the way, what do we need to build with gtkmozembed? I didn't find a proper Build-Depends: for this.

2 February 2006

Philipp Kern: Licenses

Licenses are just too nice... Especially if you put special clauses in the context of the application they apply to. SUN states the following in a code example for the Java Micro Edition.
You acknowledge that this software is not designed, licensed or intended
for use in the design, construction, operation or maintenance of any
nuclear facility.
Now consider that the Java Micro Edition usually runs on mobile phones. Well, yes it’s for embedded devices too, but I found it in a GUI example. If I imagine to control a nuclear power plant by just using my phone in the bus, using a nice little Java application... What a threat I would be.

1 February 2006

Ross Burton: War On Abstract Concepts

From today's Snowmail (Jon Snow is my personal hero by the way):
We must also though note that in a poll today, almost half of Americans said they would approve of a war with Iran tomorrow.
Oh dear God, Really, I'm lost for words. An expanded article will follow when I stop thinking "but...". NP: Best Of, Otis Redding

31 January 2006

Edd Dumbill: GObject subclassing in Ruby

Thanks to everybody who wrote in with suggestions following on from my initial Ruby GNOME investigations yesterday. After talking at cross purposes for some time in a bug report with a Ruby GNOME developer, I was pointed to a good example of how to do what I wanted: subclassing a GObject in Ruby. This is something that the Mono Gtk# bindings do so well, I'd forgotten the required mechanics. Here's a simple subclass of button. I've highlighted the required magic in bold.
class MyButton < Gtk::Button
attr_accessor :hitcount
# tell the GLib object system this is a new type
type_register

def initialize(text)
super("label" => text)
self.hitcount = 0
end

# rather than overriding 'clicked', we must
# override the signal_do_clicked method
def signal_do_clicked(*args)
self.hitcount+=1
super
end
end
The type_register call registers the new class with the GLib type system (something the Mono bindings do for you automatically).  The second key was knowing the name of the default signal handler, which turns out to be of the form signal_do_signalname. So, to follow up yesterday, I hadn't found a bug, merely a gap in the documentation. Thanks to Masao Mutoh for taking the time to answer my questions. For comparison, here's the same implementation in Gtk#. There are pros and cons of both languages. Ruby's succinct attr_accessor is balanced by the neat GObject-aware subclassing and the constructor inheritance of C#.
class MyButton : Button  
private int hitcount;

public MyButton (string text) : base (text)

hitcount = 0;


protected override void OnClicked ()

hitcount++;
base.OnClicked ();


public int HitCount
get

return hitcount;

set

hitcount = value;


30 January 2006

Edd Dumbill: Beginnings with Ruby GNOME

A while back I started porting the GTK examples from Mono: A Developer's Notebook to IronPython and Boo, the results of which are available in my Subversion repository. Although I've not finished that task yet, I thought I'd investigate the state of the Ruby GNOME bindings by porting those same examples. They have the advantage of increasing gently in complexity. Before I go on, you can find the work in progress posted in the ruby-gnome/monodn branch of my Subversion repository. Now for a few observations. At the basic level, Ruby GNOME has a lot in common with all the other GNOME bindings out there. One distinguishing feature however is signal handlers, which take a Ruby closure as an argument. Look at this handler for closing the window, for example:
w = Gtk::Window.new("My Window")
w.signal_connect("delete_event") Gtk.main_quit
This is fine for simple handlers. Developers wanting to reuse handlers might wish to specify a method here to use. The best way of doing this I've found is:
def my_handler(but)
   ...
end

button.signal_connect("changed", &method(:my_handler))
This involves a little bit more magic, as you can see. I've also run into an unexpected barrier with subclassing and the class default signal handler. The subclassing example from the Mono Notebook shows an example of overriding the clicked method of a Button. In C# this looks like this:
class MyButton : Button  
...
protected override void OnClicked ()

  hitcount++;
  base.OnClicked ();
In Ruby I would write this:
class MyButton < Gtk::Button
...
def clicked
  self.hitcount += 1
  super
end
However, when you click the button it's clear the overridden method isn't being called. I've filed a bug with what I think is the underlying problem. In this instance, I worked round it by adding a signal handler in the constructor:
self.signal_connect("clicked")    b  b.hitcount += 1  
At the moment it feels like I'm writing rather C-like Ruby, rather than it being idiomatic. But then again, I am porting examples from C# in as literal manner as possible, in order to facilitate comparison.

29 January 2006

Jonathan McDowell: I'm becoming a wedding bore

Kathy and I went out for dinner last night at Tootsies with Becca, Dave, Eli, J, Kaz and Will. It was a good night (even if the girls beat us at Cranium), but I found myself having to stop talking about weddings - I could see J and Kaz starting to glaze over early in the evening. This a frightening event. Is this how people become baby bores? Anyway. Kathy and I managed to look at a couple of potential venues yesterday and have another one arranged for next Sunday, and a few more to ring this week to hopefully see next weekend. It's all still very scary.

Dirk Eddelbuettel: BHL, as reviewed by the NY Times

Having lived in France for a few years in the early nineties, it was hard not to notice BHL. Also called Bernhard-Henry L vy. In France, if you are somebody, you get called by your initials. BHL, the philosopher turned into a media-savvy writer and journalist was just about everywhere. Even I ended buying one of his tomes. [For those unaware of the cult of BHL, compare the very lengthy and admiring French Wikipedia article with the disclaimer-sporting short and sceptical English counterpart, or even, for completeness, the barely existing German one.] Well, fast-forward a dozen years and who marches onto Jon Stewart's stage at the Daily Show this Wednesday: Bingo, BHL himself. In the usual uniform: suit, spotless white shirt, perfect hair, though less of it than in the days. In rather passable English he gets to plug his new book on travelling the States. Of course, it's tough to be French and to write about the US as de Tocqueville is the inevitable comparison... So tough that the comparison has to turn into a take-down somewhere. Today's NY Times has a review of said book that is so highly entertaining that I cannot help but recommend it most highly, even if you never heard of BHL before. If the Times is this vitriolic, I can't even begin to imagine what a review in the WSJ would do to the poor man...

27 January 2006

Edd Dumbill: Score: 5, Little Hope for Humanity

Oh dear. Almost every time something I write gets Slashdotted, this happens: Screenshot of Slashdot people rude about my name Is it perhaps time for a nom de plume? Any suggestions welcome. I've been thinking of something with two initials and a surname. Like I.M. Sirius.
Then again, I've had the name I have for some years now, and it at least has the benefit of mapping unambiguously to me when Googled.

Next.

Previous.