2009-10-06

The Case for Open MTA Data: Transparency, Savings, and Easier Riding

Interesting article The Case for Open MTA Data: Transparency, Savings, and Easier Riding by Ben Fried on September 23, 2009 in Streets Blog.
I have heard about similar project in France. I hope they will make the information directly available to developers and not shielded behind clunky applications.

2009-10-04

The Guava library: a Google lesson in API design

When I first read an article about a new library to do String manipulation, I wondered what could be so interesting in there ? Isn't such a basic topic already well addressed in the standard library ?
But since I am a bit concerned in API design and really wanted to know what would justify to create a new library, because the class String looks OK to me, so ... I gave it a look.
No regrets. Indeed the API is clean, consistent and simple to use.
The guava library.
I wouldn't care for trivial String manipulation, but if I have anything just a bit less than trivial, I will definitively use it !
More importantly, I know I have to look more and more to these "praised" project : google collections being next

LinkedIn groups for social networking

I am starting to use LinkedIn and Ning to build some social networking sites. I find the state of these tools a bit lacking. OpenSocial had some big promises. Yet, there are less than 10 applications on LinkedIn and nothing for groups.
LinkedIn made it clear : There are no Applications available for groups.
Ning looks great at first, but it has some strange limitations. For example you cannot rename a post: you have to create a new one, copy the text and delete the old one.
There are good surprises also: the collaboration between Apec and LinkedIn is a big plus.

2009-09-20

Scala and idioms

From the article : Is Scala really more complicated than Java? The same program can be written in Scala with different idioms:

Easy way:

val name = "Dick Wall"
println("""
Happy Birthday to you
Happy Birthday to you
Happy Birthday dear """ + name + """
Happy Birthday do you
""")


Procedural:
for (n <- 1 to 4) {   
print("Happy Birthday")
if (n == 3)
print(" dear XXX")
else
print(" to you")
println
}


Mixed:

(1 to 4).map {
i => "Happy Birthday %s".format(if (i == 3) "Dear XXX" else "To You")
}.foreach println


Functional:

(List.make(4, "Happy birthday ")
zip (List.tabulate(4, {
case 2 => "dear friend"
case _ => "to you"}))
) map (Function.tupled(_+_)) mkString ("\n")


More freedom ? hope Scala will avoid to be like Perl ! Not everybody will be able to maintain a Scala program. But that is also true with Java or anything. The complexity can be everywhere anyway, it is just more or less visible.

Read also: It's not the languages, but their idioms that matter.

2009-09-11

Nice way to describe Kerberos: a Dialogue in Four Scenes

As I needed to refresh my knowledge about Kerberos, I found a nice theater-like Dialogue in Four Scenes. Kerberos is really complex and hard to follow. It is revealing that its authors found theater more efficient than traditional technical docs and schema to explain their ideas.
It remember me of the comics used by Google to describe Chrome. Only it was done in 1988 !!
Also the best theater reference for me is always Ralph König's Lysistrata, his prologue really strikes me.

2009-09-07

MDSD: UML or DSL ?

This blog is a lot about Linux, because I use it as a reminder. I want to remember how I solved some problems or some great applications or short cut.
But it doesn't reflect my main interest that is development, design and creation. My Google Reader Shared post gives a better view of this part.
Also how I shifted my interest from Semantic web to Model Driven Development and DSL.
So I will just notice that I didn't realize how UML and DSL can be antagonist.

Sound and iPod with Awesome Windows Manager

Just a short note about the great Awesome window manager.
There was no sound with some applications. There are 2 programs to know about sound control : alsamixer (command line) and pavucontrol (manage PulseAudio with a simple GTK interface).

For the iPod, I am using RockBox, gtkPod and gpodder. Nothing fancy, but it does the job quickly.

Just have to remember to manually mount the iPod, by adding this in /etc/fstab:
/dev/disk/by-label/IPOD /media/IPOD vfat defaults,umask=000,auto,rw,user 0 0

Also a simple trick to eject the iPod : eject /media/IPOD

Festival de la Cooperative OASIS - 2026

 https://Cooperative-OASIS.org/ Abonnement la revue Passerelle Eco    Papier . Mais les annonces sont dispo:  Revue trimestrielle de l’ Ecov...