Time Out’s 101 Films of the Decade

November 28, 2009 by prof3ta

Time Out has just released the list of the 101 films of the decade. Browse the list and run to see the ones you’re still missing… :)

Here’s reported the top ten:

  1. In the Mood for Love (2000)
  2. Hidden (2005)
  3. Spirited Away (2001)
  4. There Will Be Blood (2007)
  5. The lives of the Others (2006)
  6. The Assassination of Jesse James by the Coward Robert Ford (2007)
  7. Talk to Her (2002)
  8. Far From Heaven (2002)
  9. No Country for Old Men (2007)
  10. Ten (2002, Iran/Fr)

Just as a note, the only Italian movie included in the list (31st place) is The Son’s Room (2001, It/Fr), directed by Nanni Moretti.

The full list of the 101 films of the decade is available here.

Erlang Certification Survey

November 9, 2009 by prof3ta

Erlang Logo

Erlang Training and Consulting Ltd in conjunction with the University of Kent intends to launch a pilot version of an e-certification platform for Erlang in the near future.

To assist in this process, we have launched a survey on Erlang Certification. The objective of the study is to better understand the expectations of users, in order to ensure a well-focused product.

We would appreciate a few minutes of your time in completing this survey. To take the survey, please go to:

http://surveys.erlang-consulting.com/index.php?sid=21265&lang=en

The results of the survey will be shared with third parties, in publications and as part of research into Certification. When doing so, all results will be completely anonymised and any individual-identifying information removed.

Thank you for your time and cooperation.

Php from Command Line

October 17, 2009 by prof3ta

A really simple, still useful tip for php developers.

It is possible to execute a php command directly from the command line by doing the following:

php -r 'COMMAND'

For example:

php -r 'echo substr("hello world", 6);'

Enjoy!

New “Joomla! Picasa” and “Joomla! Flickr”

October 17, 2009 by prof3ta

Hello people,

a couple of years ago I wrote a beta version of the two Joomla! components “Joomla! Picasa” and “Joomla! Flickr”. In the past two years, the two packages have been downloaded and tried more than 70.000 times, generating lot of interest and discussions, even in their early stage of development.

I’m now going to completely rewrite them, to keep them competitive in the growing market of Joomla! extensions. The two components are obviously going to be completely free and open source.

Before I start developing again, I’d like you all to discuss with me the features that you would like to be implemented and what you DON’T want to be included in the packages. I will then start two fresh open source projects for them and all contribution will be welcome.

Ready for a new version of the two photogallery? Start proposing, adding comments to this post, then…

Essential Free Software for Mac

October 17, 2009 by prof3ta

This is a list of essential free software for Mac, according to the author (ongoing process):

  • Growl
  • uTorrent
  • Emacs
  • Skype
  • Firefox
  • Inkscape
  • VLC
  • Spotify
  • OpenOffice
  • iScrobbler
  • Dropdown
  • Evernote

Feel free to comment / add your favourite software (FREE, not already included in Mac OS X).

Erlang Quickcheck Design Patterns – Black Box

October 7, 2009 by prof3ta

Name
Black Box

Also Known As
ETS Driven Testing

Intent
When writing Quickcheck unit tests for an Erlang application, it usually happens that you require to stub some external application, since you’re not interested in System Tests, but you want to test your application as a mere black box.

Motivation
You want complete control on the results provided by your stubs, so that you can successfully check the properties you need for your application.

Sample Code

In your quickcheck module, just define in your state the results you need, together with their default value:

-record(state, {stub_result = true}).

Define the initial state as follows:

initial_state() ->
    init.

initial_state_data() ->
    #state{}.

In your property, create an ETS table containing the results (don’t forget to delete it after running the tests) and call the run_commands function by passing an extra parameter:

prop_commands() ->
    ?FORALL({Cmds, State}, custom_commands(),
            ?TRAPEXIT(begin
                          results = ets:new(results, [named_table, set, public]),
                          ets:insert(results, {stub_result, State#state.stub_result}),
                          {H,S,Res} = eqc_fsm:run_commands(?MODULE, Cmds, [{var, stub_result}]),
                          true = ets:delete(results),
                          ...

The custom_commands function is the place where you set the list of available results:

custom_commands() ->
    ?LET(State,
         #state{stub_result = oneof([true, false])},
         {more_commands(100, eqc_fsm:commands(?MODULE, {init, State})), State}).

You can check the result in your postconditions, as follows:

postcondition(_From, _To, S, {call, _, _, _}, R) ->
    S#state.stub_result == R.

Obviously, your stubs need to contain something like:

stubbed_function() ->
    ets:lookup_element(results, stub_result, 2).

Consequences
Your tests will be able to cover a bigger number of code lines (lemmings).

Thanks
Thanks to Master Magnus Henoch for his help.

London Design Festival

September 23, 2009 by prof3ta

I spent a lovely weekend in London, enjoying the Open House Weekend and the Design Festival.
Here are some of the photos I took.

The Arc

Mercurial – Gnome Keyring Integration

September 16, 2009 by prof3ta

I don’t know about you, but I was really bored about inserting my password again and again when pulling hg based projects.

Since I’m using Gnome, I decided to check if it was possible to integrate Mercurial with the Gnome Keyring.

Guess what:

http://bitbucket.org/ebo/hggnome-keyring/changeset/4f8cbce98fe6/

Just download the extension and install it, by adding the following line under [extensions] in your .hgrc file:

hggnome-keyring = [PATH_TO_EXTENSION]/hggnome-keyring.py

When pulling from a hg repo, the system will prompt you for the password just for the first time :)

Mercurial – Verbose Pull

September 16, 2009 by prof3ta

Are you pulling from a Mercurial repository and it’s taking too long?

Do you want to know which files are being pulled into your local machine?

Did you try hg --verbose pull and it didn’t help?

Then, try the following:

hg --debug -v pull

Cheers.

Notting Hill Carnival 2009

September 3, 2009 by prof3ta

I finally managed to upload some of the photos I took during the London Notting Hill Carnival 2009.

Here they are.