Search Results: "eric"

22 September 2007

David Welton: Erlang

As someone who tries to read a lot about my field, I feel I have my "ear to the ground", so to speak. And right now, I'm picking up a lot of hype-rumblings about the Erlang programming language. I have a little bit of experience with it, having used it briefly about 3 years, and having made a few minor contributions. Why are people interested in it? Picking up new programming languages is fun for some people, but in general, unless it's something backed by millions of dollars of marketing and development (Java, C#/.Net) there needs to be a 'killer feature' to drive adoption. Tk and Tcl, ease of developing simple dynamic web content with PHP, Rails and Ruby, and so on. Erlang, in many people's eyes:
  1. gets concurrency right, or at least is a big improvement over existing models (threads).
  2. Makes distributed computing easier and does it naturally.
  3. Is a solid base on which to construct reliable applications.
That appears to be enough to have nudged Erlang into a position where it has a chance at the big time. While I would highly encourage people to learn a bit of Erlang, and to seriously consider its use for the type of systems for which it was created, I have some doubts about it becoming that widespread. Please read the following as the thoughts of a critical mind, and keep in mind that it's far easier to zero in on defects than it is to create something from scratch, so do not misconstrue my writing as being "against" Erlang (I do use it, enjoy it, and recommend learning it!), but as an honest appraisal colored by my own view of the world, which might not be like yours. To begin with the superficial, its syntax is a bit odd. For a professional programmer, that shouldn't present much of an obstacle, and indeed isn't after a few days of using it, but there are a few things that I do find a bit annoying despite being used to the syntax, first and foremost being the use of . and , to separate lines of code, rather than a newline, or ; (which is used elsewhere). They're like little mouse droppings - hard to spot, and they get in your way when you swap out bits of code here and there. The last line of a function must end with a ., but other lines are separated with commas, so when you're cutting and pasting lines from here to there, you end up having to recheck the line endings each time. Erlang is a functional programming language. Once again, someone with a wide exposure to many programming styles will not find this difficult after a week or so of practice, to wrap your mind around a different way of thinking. However, I have some doubts as to whether a functional language will be able to bring on board the numbers necessary to be widely adopted (see Scaling Down). One of the benefits of wider adoption is, indeed, having a wider set of libraries - it's a "positive network externality" in terms of economics. Other people have written about the relative lack of Erlang libraries to do various things, but it's actually not one of the things I'm worried about - it's something that will take care of itself if the language grows in popularity. After being spoiled by Ruby's gems, what I really miss, though, is a nice, simple, easy distribution mechanism. Related to making it easier for J Q Programmer to adopt, the error messages are at times not the most helpful I've seen in the computing industry:
Error in process <0.29.0> with exit value:
 undef,[ shell_default,sfdsf,[] , erl_eval,do_apply,5 , shell,exprs,6 , shell,eval_loop,3 ] 
In English, that means that I tried to execute the function sfdsf(), which doesn't exist. It seems that there ought to be a way to keep the nice, computer parseable error messages, and add in something that humans would find just a bit easier. Other people have already covered the problems with Erlang's strings, so I won't belabor the point. Suffice it to say that, in my opinion, is_list([foo, bar, baz]) and is_list("hello") should probably not both be true. Which brings us to another issue. Erlang is a language used in big, reliable systems like telephony switches. That's not the sort of environment where you want to break things, so I doubt that Erlang will ever see big changes that introduce incompatibilities, like Python has recently done. This one is a tradeoff - stable, reliable and backwards compatible is simply not compatible with rapid development of the language - it's a zero-sum game, you want more of one, you get less of the other. Related, is the "open sourceness" of the language. It is open source, which for me is very nearly a prerequisite for dedicating my time to a language, but Ericsson appears to maintain firm control over it. This is another thing that's both good and bad. Having the backing of a large corporation means that developers are paid to work on and enhance Erlang, which is beneficial to everyone. On the other hand, as some people say, open source is just the start, open development is important too. Random thought: I bet Erlang would make a nice Apache project, but I'm sure the bureaucracy involved would be a nightmare. In terms of the language itself, beyond the syntax, it feels a little bit too verbose. Perhaps not as much as Java (that would be difficult, wouldn't it)... maybe I'm just used to Ruby, which is about as concise as I'm comfortable with while still being readable. Sometimes, though, there is a little bit more 'repeat yourself' than I would like to see. For instance, in this implementation of string_join (something else that ought to be in the standard library, but still isn't), it's necessary to create the same function, with different arity, simply to work around the fact that it's not possible to say the default separator should be " ":
string_join(Items) ->
    string_join(Items, " ").
string_join(Items, Sep) ->
    lists:flatten(lists:reverse(string_join1(Items, Sep, []))).
Which is a lot more typing than string_join(Items, Sep=" "). This is pure opinion, and very subjective, but Erlang to me feels like it falls more in the "systems programming language" category than "scripting language". It's a bit more verbose, it needs to be compiled to run it, modules need to have an entry point... it's not as suitable to quick throwaways as Ruby, Tcl or Python. Of course, it is certainly higher level than C, and leaner than Java, but still falls an the other side of an admittedly fuzzy line in my head. Its command line options reinforce that. Whereas "scripting" languages do the obvious thing first:
ruby foo/bar.rb
Erlang is a little bit more complex:
erl -noshell -pa foo/ -run bar
A minor detail, once you get used to it, but still, I prefer the "do the obvious thing first, and let the user have some say in the matter if they want to do something else" approach to systems design. One of the wonderful things about Ruby on Rails, is that it uses Ruby throughout, templates included. Without getting into the merits of using templates vs other systems, my own opinion is that Rails gets them right, and demonstrates the flexibility of Ruby by using it as the language for the templates, rather than inventing some other solution. I don't see the same flexibility in Erlang, which is unfortunate, as it blows Ruby out of the water in terms of being a very solid solution to deploy on a server (no fiddling with proxies and load balancers and single threaded mini-servers + hot code replacement = nice). Of course, there are lots of good things about Erlang, as mentioned at the beginning of this article - concurrency and distribution, but also language features like pattern matching that are a lot of fun to use, a pleasant syntax for dealing with binary data, list comprehensions, first class functions, tail recursion, and lots of other goodies. However, if I had to try and predict the future, I could easily imagine another language grabbing some of Erlang's good ideas and running with them, perhaps being more "conventional" in other respects - this isn't uncommon in the languages field, as we've seen with things like Lisp and Smalltalk. On the other hand, one of the reasons I *am* quite happy with Erlang is that it is most certainly not a proof of concept - it is a very practical language that excels at solving certain classes of problem, and does so in many commercial settings. If you're the kind of person who enjoys new things, check it out!

Theodore Ts'o: How to properly support writers/artists?

Russell Coker, commenting on my last blog, and apparently after exploring some of the links stemming from the SFWA kerfuflle, apparently stumbled on a post from former SFWA VP Howard V. Hendrix, where he took the amazing position (for a SF writer) that he hated the using the internet, and that people who posted their stories on the web for free download were web-scabs, has taken the position that since such comments were an attack on our (Open Source Developer’s) community, that he would resolve “to not buy any more Sci-Fi books until I have read all the freely available books that I want to read”. Obviously, that’s his choice, but while I don’t have much respect for SFWA the organization, and certainly not for their choice in past and current vice presidents, there’s another side of the story here. First of all, Dr. Hendrix comments are not the official position of the SFWA, and there are many others who are SFWA members who would very strongly disagree with both the attitudes of Dr. Hendrix as well as the ham-handed DMCA pseudo-invocation by Dr. Burt. In addition, to quote Rick Cook:
The first thing you ve got to understand about the Science Fiction and Fantasy Writers of America is that it isn t. Like the Holy Roman Empire, which in Voltaire s phrase was neither holy, Roman nor an empire, SFWA is not an organization of science fiction and fantasy writers. While some of the leading SF and Fantasy writers belong, the vast majority of the members are people who barely meet SFWA s extremely lax publication requirements. They are not professional SF or Fantasy writers in any meaningful sense of the term and many of them haven t published a word of either science fiction or fantasy in years.
Secondly, there are plenty of Science Fiction writers that do really understand this issue quite well. In addition Rick Cook, whom I recommended in my last post, another example of a Science Function writer who has penned a very cogent series of articles about copyright, science fiction, and the business issues of being a SFF writer is Eric Flint. I strongly recommend his series, “Salvos Against Big Brother”,which includes a back-to-the basics examination of copyright quoting and reprinting two speeches by British Parliamentarian Thomas McCauley in 1841. Definitely worth a read, and again a demonstration that there exists Science Fiction authors that aren’t stuck in the dark ages; few (at least it is to be hoped) are like Dr. Hendrix. Eric Flint is also a senior editor for Baen Books (read more about the founder, Jim Baen here). Baen makes all of its titles available in e-book form without DRM, and many of its authors have agreed to make their books available completely free of charge. Eric Flint does so for all or most of his books shortly after they are published in mass-market paperback form; others only make a few of their books available, typically the first or second books in a series (in the hopes you will buy the rest of their books) — a wise strategy, as he explains in one of his Salvos Against Big Brother columns. More importantly, I strongly believe that if we enjoy an artist’s works, we should support the artist. That’s why I’ve directly reached out and given money to musicians, authors, and Debian release engineers. (Yes, that last was controversial, but to me and personal ethics, it’s all of the same piece.) Is patronage the right way to support musicians? Well, it’s one way, and I’ve always been fond of the “distributed patronage” model where we use the Internet to allow a large number of people to each contribute to support an artist’s work. The Big Meow is a good example how it might work. (By the way, to people who are wondering what is happening with The Big Meow — I have very recently pinged Diane, and she’s working on it. Between health and family emergencies, the last 12 months have thrown a lot of delays into her writing schedule.) Are there other models other than patronage that might work? Well, there is the traditional one — just buying the author’s books. But what if we don’t want a dead-tree copy and just want to be able to read it on our Irex Iliad, and the book wasn’t published by Baen Books, or one of the few enlightened publishers who make non-DRM’d eBooks available? That’s a harder question. Personally, I don’t find “Copyright Theft” immoral per se. Illegal, yes, but immoral only if I haven’t done something to materially support the author. If I’ve purchased a new copy of a book, and the eBook version isn’t available via legal means, I don’t believe it is immoral to download it from a site like scribd so I can read it on my laptop. Of course, that brings up other questions, such as what if the book is out of print (because the publisher don’t think it’s commercially viable to reissue the books), the author is dead, and the widow needs money? Lots of hard questions, and no good answers…. But in any case, I think it is the right thing to do to support those authors we care about as we can, and boyotting all SFF books isn’t necessarily appropriate or helpful.

19 September 2007

Neil Williams: gpe-cash developments

If anyone was wondering why I've been quiet / claiming to be busy for the last week or so:
gpe-cash finally has a stable "main window" that supports creating new accounts along with the transactions and splits necessary to support an opening balance in the gnucash objects.
Current SVN requires current QOF CVS, accessible via the respective SourceForge repositories. gpe-cash is nowhere near release right now - the actual balances don't show up for one thing and I still need to write the window that will allow the creation of transactions within the accounts - but one step at a time. I'll see about some screenshots eventually but the gpe-cash main window is quite similar to that of gpe-expenses.
The main side-effect of all this is a much improved SQLite backend for QOF that is closer to being able to properly support double-entry financial data.
Note this does not mean that GnuCash itself will be able to use the QOF SQLite backend - the GnuCash currency/commodity handling is incompatible with QOF so gpe-cash uses the currency handling from gpe-expenses which in turn came from pilot-qof and the range of currencies supported by the Palm Expenses applet. The currencies are directly equivalent to the respective GnuCash currencies but not all GnuCash currencies are supported by pilot-qof, gpe-expenses or gpe-cash. The biggest change in gpe-cash is that this conversion is now working so that the gnucash code sees a gnucash currency when actually it is handling a pilot-qof currency.
gpe-cash is GPL-3+ and single-user (== single-file or single-book) as well as single-currency. Adding multi-currency support is possible but not a priority.
Once gpe-cash is closer to release, the codebase will be able to support gpe-invoice using the GnuCash business objects which will interface with gpe-cash to create invoices from other GPE data and store the payments and charges in gpe-cash.
If multi-currency support can be achieved, it would be possible to create "gpe-shares" as a different add-on to gpe-cash, although that is only theoretical at this stage.
The SQL-type query support inherent in QOF, together with perl support for the XML backend data via libxml-qofqsf-perl and XSL support for same XML backend via datafreedom-qsfxsl should make report generation trivial. I may also be able to add QOF support to the still experimental quicklist. I also plan to include support for import/export from all the datafreedom packages with HomeBank data which is returning to a NEW queue near you quite soon . . .
Overall, I'm getting closer to having a full range of individual applications that achieve a long term goal - the breakup of GnuCash source code into small, individual tools in the Unix tradition, all built on SQL-type queries, multiple backends and generic data handling. (See data-freedom.) Down with bloat!
:-)
<rant>
It's about time users had free financial data as well as merely free financial software. The lack of data interchange between existing free software "financial solutions" is a scandal, IMNSHO.
The rest of the "Office" dataset have a range of file formats and a range of filters. Financial data relies on the horribly broken QIF file that was never designed to be a standard and OFX where support is horribly patchy and doesn't provide data interchange between programs on the same machine.
</rant>

Erich Schubert: DRI not working?

DRI (3D acceleration) stopped working for me. The reason is simple (as revealed by looking at the Xserver log file): it was missing the DRI library for my graphics card.So if 3D acceleration isn't working for you anymore, try this:
aptitude install libgl1-mesa-dri
This package includes the library required for DRI on my Intel 915 graphics board. Not sure how it got lost, though. Maybe I purged it when trying to remove "unneded" packages from my system (in order to free up some space)... I tend to try to uninstall everything I don't think I need.P.S. Looks like you can now but ATI/AMD graphics again, given that they're releasing specifications for their chips - reliable opensource drivers on the horizon!I've fought both the Nvidia and old ATI driver hell - not having to do that was one of the main reasons why I wanted Intel graphics. Now ATI/AMD is back on my radar.

18 September 2007

Roland Mas: Revamping tags

Apparently it's desirable to be able to filter this blog according to language as well as according to subject. So I've decided to kill the geek-fr and geek-en tags I had, and replace them with the generic geek tag. I also created fr and en tags, one of which should be present on all articles. To preserve the existing RSS feeds, geek-fr and geek-en have been redefined as simply the intersection of geek and fr or en, thanks to Ikiwiki. I could also create a photo-fr feed and so on, but so far I don't think it's warranted.

Eric Warmenhoven: iWant.

Lately I have been wanting to buy a lot of fairly expensive stuff that I don’t really need. It started with the telephoto zoom lens, which I ended up getting, and love. I’m really happy that I got it, especially since Lisa and I will be going on a hot air balloon ride in Napa for our anniversary, and then to the Salinas Air Show the following weekend. Then it was the new TiVo HD. We already have a Series 3, but we’ve occasionally thought that we might like to get a second TiVo for our other TV. Now that it’s been confirmed that Multi-Room Viewing is coming to both the Series3 and TiVo HD soon, there’s even more incentive to get one. Fortunately right now they’re selling them to employees at a discounted price (limit one per employee). And now it’s the iPhone. I can’t explain why I feel compelled to buy this other than iWant. A few of my coworkers have one and they look pretty slick. Plus my current iPod battery can’t hold a charge very long. Plus I like the idea of having an integrated iPod and phone (it’s part of the reason why I got my current phone, the Motorola SLVR L7). Plus it’s roughly the same size as the SLVR and only slightly heavier.

17 September 2007

Russell Coker: Web-Scabs

I have just read an interesting post by Ted Ts’O about copyright protection on the net [1]. Ted is well known as a free software programmer, but it’s slightly less well known that he is an avid Science-Fiction fan. In the Free Software community most people seem to be interested in Sci-Fi, but Ted is more interested than most. Ted’s post concerns the irresponsible actions of the Science Fiction and Fantasy Writers of America [2] (SFWA). To summarise it they issued DMCA [3] take-down notices for any web page that matched a search on the names “Asimov” or “Silverberg“. I don’t approve of the DMCA laws as a collection, but take-down notices are not necessarily bad (I have issued such notices for unauthorised copies of my own work in the past). The problem in this case is that the words in question are extremely common, not only might they be used as the names for other people (authors or characters) but Asimov in particular is a well known term when describing the potential development of intelligent computers that operate robots (see the Three Laws of Robotics [4]), the term “not Asimov Compliant” has been used by Alastair Reynolds in Century Rain to refer to a class of military robots that have no compunction about killing humans. Among the fall-out of the SFWA actions was the removal of a free novel by Cory Doctorow [4]. Incidentally my favourite free to download Cory Doctorow book is Eastern Standard Tribe [5]. craphound.com has Cory’s blog as well as links to other free Sci-Fi that he’s written. Reading the links from Ted’s post took me to a blog entry by the current SFWA vice-president [6] which describes authors such as Cory Doctorow as “webscabs“. This offends me greatly. My work and that of my friends in writing free software could be described in the same way (and in fact is described in a similar way by some software monopolists). Every blogger could have their work described in a similar way by paid journalists. The fact that the SFWA VP is not representing SFWA when writing such comments does little to allay concern about this. It seems to me that people with such ideas are intent on attacking my community, and that it would be wrong of me to give any of them $0.50 by buying one of their books. I resolve to not buy any more Sci-Fi books until I have read all the freely available books that I want to read. After that I will prioritise my book purchases with a significant factor being how well the author gets the concepts of copyright etc. If nothing else an author who can’t understand how copyright (something that is essential to their own livelyhood) interacts with current computer systems will have significant difficulties in predicting how technology and society will develop over the next hundred or thousand years. My problem in reading Sci-Fi books is not in discovering books that are enjoyable and which contain interesting concepts, but in finding time to read them. Thanks to SFWA for giving me an extra criteria to cull the list of books to read.

16 September 2007

Theodore Ts'o: Whack the Gopher

I recently came across three very well written and very thoughtful blog postings by Rick Cook (author of the Wiz Zumwalt Wizardry series):
  1. Copyrights, Whack-the-Gopher, and SFWA — Why I Quit
  2. The Economics of Theft: Son of Whack the Gopher
  3. WHACK THE GOPHER III: The Return of the Mutant Grandson
The incident which kicked off these postings was an informal DMCA takedown notice posted by the Vice President of the Science Fiction Writers of America, Dr. Andrew Burt which was created by a process only slightly more sophisticated than using word search for “Asimov” and “Silverberg”. Unfortunately, this takedown notice erroneously included a junior high school teacher’s list of 300+ recommended books (which naturally contained the strings “Issac Asimov” and “Robert Silverberg”, an on-line published science-fiction magazine that referenced the science fiction author Isaac Asimov in a review, and a creative-commons licensed science fiction novel which had been deliberately published on the web for free distribution, and for which the author had explicitly forbidden the SFWA from taking any action on behalf of his books. The entire incident was wonderfully filled with irony — from the fact that an organization of writers who purport to write about what the future might bring given scientific and technological advances could so totally fail to get the Internet or understand that such a campaign might cause them to alienate their readers and fan base, to the the fact that Doctor Andrew Burt, Ph.D. is a professor in computer science at the University of Denver with a research interest in copyright and electronic piracy, could so incompetently foul up a DMCA takedown request and not understand that “grep” might result in false positives that would require human checking (”Andrew? Your alma mater is calling; they would like their degree back…”) One good thing that has come out of this whole mess is that it has been, as junior high school teacher Nick Singer put it, “a teachable moment”, and an opportunity for people to reflect about issues of copyright, the rights of authors, ebooks, and the Internet. This is a hard problem; I very strongly believe that (at the same time) “Art wants to be free; Artists want to be paid” (to use a phrased coined by a friend of mine, Jesse Vincent (blog here), to the point that I’ve been willing to put my money where my mouth is. So far the solutions for achieving this are nowhere near perfect, but they are certainly better than sending out shotgun DMCA takedown requests. In any case, Rick Cook’s thoughts on the subject are a worthy contribution to the subject. He says he’s going to do one more article on his blog proposing an economic solution to this problem; I can’t wait to see what he has to say on the subject.

15 September 2007

Chris Lamb: Why does using all the upstream cause lag?

It’s a common story. A housemate starts torrenting some American television series of dubious artistic quality and/or legality, or perhaps starts calling their girlfriend on some fluffy non-free privacy invading spyware and your SSH sessions start to lag. Why does this happen? When the upstream channels become saturated, data must overflow into the modem’s buffers. This causes TCP acknowledgement (ACK) packets originating from your SSH client to be delayed, resulting in an increase in the overall round trip time. This phenomena is usually worse on cable connections as their modems’ buffers are generally larger. Avoiding the problem can be pretty simple — limiting your upstream bandwidth just below its maximum helps, and some smarter solutions involving prioritising ACK packets work even better. Although these are best achieved at your router, a number of applications have their own limiting features: every BitTorrent client will have one, and other tools such as scp (via the ‘-l‘ option) have them too.

13 September 2007

Kai Hendry: Highly mobile

An antler ! In the past couple of weeks I’ve: Really interesting projects at work. I helped put together a position paper for an OpenAJAX/W3C meeting. It was accepted and now I’m off to San Francisco for the first time for the last week of September! It’ll be my first time in North America on my travels. Btw my employers are hiring! As for Debian work. I am still struggling to a get a stable security update of wordpress in. :/
I made an update to flup, which will hopefully be one of the last. Please consider moving your Web application to modwsgi. I was surprised to see Webconverger in the Linux Format magazine #97, which is great news. There should be big announcements soon concerning Webconverger. Busy, busy, busy! :)

12 September 2007

Erich Schubert: Gnuplot grep

For my diploma thesis (on clustering of high dimensional data, especially correlation clustering, i.e. clustering data by properties such as data correlation) I needed an easy way to filter out data from CSV files as used by gnuplot (actually, they are whitespace-separated).I hacked together a small tool that would allow me to easily 'grep' out certain parts of the datasets. If you know of a similar tool, please send me an email to erich AT debian DOT org.Currently, the tool allows you to do commands such as:
gpgrep "1~5$" "1200"  out/3d-2lin-noise.variances
to select ('grep') all sets where the first column ends with a 5 (regular expression match) and where the first column is less than 199.The tool is still in early development. Syntax may change, and I guess I'll add some more filters. But you get the idea. Focus is on a very compact syntax.A future filter I'm considering would e.g. select 20 random rows (with a fixed seed value, so it's reproduceable!) for sampling and a modulo-match to select e.g. every 7th row.Maybe I'll also add some output processing later, such as averaging values, calculating variances and mean deviations, stripping away columns (but you can do that in Gnuplot already). I don't want to overdo it though - it's just meant as a mini filter you can add to script output visualization. It's not meant to replace a full statistics toolkit.So if you know of a simple tool that can do that already, please tell me.P.S. a few people have pointed out awk. Yes, it can do most of this. One thing I also need, and I'm not sure on how to do that the easiest way in awk is to preserve 'blocking'. That is empty lines. Because the data set
1 1
2 2
1 2 2 1 are two lines with two points each in gnuplot, not one with four points. I guess you could just do a "/^$/ print ", though... hmm... looks like I finally have to learn awk. So far I've always been refusing to learn awk, I was happy with sed, perl and python...

Eddy Petri&#537;or: is easy to let yourself manipulated

There is this guy whose blog I found about a week ago. He does some really nice and funny sketches mostly with issues regarding Bucharest and things he finds out/encounters.

The fact that he is smart to see some of the rudeness happening in Bucharest doesn't help him notice he is manipulated by the press (and himself) and writes:

"La 6 ani de la 11 septembrie 2001, Osama bin Laden a scos capu' din vagauna cu o noua inregistrare video in care da lumii intregi 2 alternative: convertirea la Islam sau moartea!"

Which translates approximately to:

"Six years after September 11, 2001, Osama bin Laden shows his face out from his hiding place and makes a new video in which gives the whole wolrd 2 alternatives: converting to Islam or death!"

(I won't take into discussion the correct translation of the message from Osama, if the message is authentic, if Osama is payed by somebody interested in keeping the conflict open, if Osama's forces are actually active in Iraq, if Bush is Osama himself, if we're actually living in 1984 and Osama is already dead but the American manipulative government is using all sorts of recordings from him to keep people inside a cage and fed them propaganda, &lt; insert your theory/idea here >....)

He links to this article, whose title might make one to think what the guy said is true (according to the article)...

But, if read carefully is clear that there are a few twists (in order of apparition):

So, the conclusion is that it's really easy to fall into the trap of believing what the titles and headlines suggest, rather than what the articles actually say, especially if you keep your head open only to single stream of ideas (I guess you, my dear reader, are smart enough to see what I mean here).


Disclaimer, my analysis might be off, my English sucks, I might be Osama, I might be Bush, I didn't saw the recording, there's a cat on a freezer...

11 September 2007

Benjamin Mako Hill: Serious Limericks

Perhaps you want to both reflect on 9/11 and help demonstrate that limericks can be serious by writing some serious limericks about 9/11?

10 September 2007

Adeodato Sim : An intelligent movie recommendations system, anyone?

I’m looking for a website that can recommend appropriate movies for me to watch, both in the “you will most probably like this one based on your current taste” sense, and in the “it may be interesting for you to explore and give this one a try” one. I have a pretty strong opinion on how it should work: I feed it a long list (as complete as possible) of movies I’ve watched over the years, with timestamps if available, and the system gives me in return a subset of them for me to rate. That is, the system performs an analysis on the input, and determines what additional information it needs in order to form a picture of myself as a movie watcher. And by “rating” I don’t mean just assigning a single numeric score, but expressing opinion on various relevant aspects: how much did you enjoy it? How badly do you want to see similar films? Did you feel uneasy with the level of violence / nudity / other, or rather on the contrary? To name a few. I’m very disappointed that all movie recommendations sites I can find require for me to choose which movies to rate, and just give me a numeric scale to do so. Not only I’m finding it a daunting task deciding what to rate, but I also have the feeling it’ll result in a biased profile, and that a single numeric scale can’t be enough to reflect all the aspects in a person’s movie personality. So far, the most promising site I’ve found is MovieLens, which is developed by a research group at the University of Minnesota. From what I’ve seen it works, but I’m unconvinced that having me decide what to rate will give the best results. So, can somebody comment about the sanity of the model proposed here, and (ideally!) tell me it’s implemented somewhere?

Erich Schubert: Debtags going mainstream

Debtags, a tag-based approach to classifying Debian software packages, has taken another big step forwards.Debtags was included in the relaunch of packages.debian.org, Debians package search and information web server. This means it's now visible to pretty much any Debian user.The experimental packages.debian.net also uses Debtags to recommend 'similar' packages.There are some AI/Datamining projects around Debtags that I'm interested in, but I don't know when I'll find time to work on them.

MJ Ray: Vuelta a Espa a - second week

Eurosport coverage of Vuelta a Espa a at 19 east continues with commentary in English (analogue only) and German. Scheduled times:-
Mon 10.09.2007
16:00-17:30 CET
Tue 11.09.2007
no show (rest day, but MTB coverage at 08:45)
Wed 12.09.2007
16:00-17:30 CET
Thu 13.09.2007
01:00-01:30 (recap?) and 15:45-17:30 CET
Fri 14.09.2007 and Sat 15.09.2007
16:00-17:30 CET
Sun 16.09.2007
18:00-19:00 CET (recorded?)
TVEi are broadcasting in Spanish at 13 and 19 east. You can also see the race on TVEI America, but I don’t know the reception details. Scheduled times:-
Mon 10.09.2007
16:30-18:00 CET
Tue 11.09.2007
no show (rest day)
Wed 12.09.2007 to Sun 16.09.2007
16:40-18:00 CET
I’ll post more times next week. It was good to see a strong Caisse d’Epargne showing, as I predicted, even if it didn’t last long…

7 September 2007

Steve Kemp: Ed il mio bacio sciogliera il silenzio che ti fa mia!

Tonight I mostly installed Centos 5 upon dedicated servers in America, for a guy based in Germany. Sometimes people do pay me for work which is nice - this job paid for a small stirling engine :) Yesterday I mostly implemented a web interface for controlling spam via a proxy server. Several people seemed interested, so I'll explain what I've done: The only part that is missing is the final plugin integration, and some glue to propogate some of the GUI settings to the mail server - since adding a new domain is currently 50% GUI and 50% manual. Each of the plugins supports whitelisting of addresses or domains, and there is a fair amount of logging detail - some is missing which I need to resolve. Once that is done and the code is running upon my live server I'm happy to let people use it if they have a spare/non-critical domain they can expirement with... The next thing to do would be to hook in spam assassin, spambayes, etc, on a per-domain basis with "training" addresses..

6 September 2007

Joey Hess: abram's

This evening I was going to help Megan and Eric work on their new barn, but they weren't around so I redirected over to Abram's falls and hiked down to the big falls. (Picture from here.) Standing under Abram's is the best, most theraputic shower anywhere.

5 September 2007

Gunnar Wolf: Database abstraction, ORMs and RDBMS-agnostic coding

I came across John Wang's posting titled Database Abstraction - code vs infrastructure. In it, he talks about the problems many people face when migrating applications tied to a specific RDBMS to another one. He recommends:
One solution of modern programming is to move database abstraction from the code to the infrastructure using a ORM (Object-Relational Mapper) or Data Mapper. A ORM and Data Mapper abstracts the database for you so you no longer have to do tie db abstraction to each app. Not only does it let you code once for multiple databases it lets your users migrate their data from one database to another. This blog runs Typo which is based on Ruby on Rails and ActiveRecord. I've been contemplating migrating Typo from MySQL to PostgreSQL and I've been told that it would be as simple as exporting the data with YAML, updating the database.yml file and importing the data.
Umh... Thing is, you often want to use your DB as way more than a data store - At least, when using Postgres, I do. There are many things that can be done inside the DB (such as guarding the programmer against his own mistakes by keeping sanity checks which often go beyond just referential integrity. Constraints and triggers. Oh, and of course, user-defined functions and views. Of course, most times you can go by without using several of such tools - but when they would come in handy, you can sorely miss them.
On the other hand, John mentions (right after the previous paragraph):
ActiveRecord is a data mapper and isn't as flexible as a full blown ORM but it gets the job done for the most part. For a full-blown ORM, I think of Perl's DBIx::Class which provides a full OO interface to the RDBMS allowing you to code just once for multiple DBs without limiting you when you want to use some esoteric database-specific SQL
Currently, I'm among the many that have jumped on the Rails bandwagon - And so far, I really like it. But yes, ActiveRecord -although great for some tasks- is way under what I'd like for many actions I've got used to making.
I might be seen as a backwards guy for this, but until before I started with Rails, I prefered not to use full ORMs (not that I tried too hard anyway - Probably starting a project with DBIx::Class would be all it takes for me to become a convert, from what I've read), but to do the SQL myself - Only, of course, keeping well in mind that I should separate front-end from back-end (or using other jargon to say the same, separating cleanly what should be in a Controller and what should be in a Model - Of course, no one in their right mind would put SQL on a template or a View!). It's not so hard as many people seem to think, although mixing syntaxes for two different languages (and even more if you, as I do, like to keep your code under 80 columns) is sometimes dirt-ugly. Still, on to my last bit of rant:
There are PHP frameworks out there like Symfony and Cake but do any of them have stand-alone ORMs? If so, could Drupal move to something like that and solve their maintainership problems once and for all? Drupal is part of the Go PHP5 effort so there should be no issue using PHP 5 OO. Something to think about for the Drupal folks if a PHP ORM is available
Umh... Even if there are some great ORMs in PHP... Choosing an ORM is something you do when you start a project. I doubt the Drupal people can now just decide to move over to using a ORM, as they potentially have hundreds or thousands of points where they have DB interaction. And although for most of them moving over to an ORM should even be automatizable, every ORM has some very special features which make it damn hard to craft several kinds of query.

4 September 2007

Steve Kemp: The temple walls are made of flesh

This week has consisted of fighting registrars and doing a bit of hacking on xen-shell, xen-tools, and the chronicle blog compiler. CJ has done some good work trying to get the code modularised, and I expect between the pair of us we can make things neater and better generally. I've also fixed a couple of bugs relating to the hard-wiring of device names (/dev/sda, /dev/tty1, etc). These devices are replaced in newer versions of Xen which wants to use /dev/xvc0 and /dev/xvd[a-z] instead. There's nothing else happening at the moment; I'm just having a lot of fun laughing at our new kitten sliding around on our polished wooden floor! Chronicle seems to be getting pretty popular which is ironic because it was a quick hack to allow me to post blog entries on a couple of hosted sites - which I've not yet done. Oops. In other news I'm loving the Nintendo DS at the moment, Megan brought me one back from America on her recent trip and I think a day hasn't passed where one or both of us has played less than 30 minutes each. I'm annoyed that Sim City DS only allows us to play with one city - right now it is her turn, and I'll have to wait until she's finished with her creation before I can have a go - because otherwise I'll wipe her city out.. :(

Next.

Previous.