Archive for June, 2009

Simple HTTP server in Python

Monday, June 29th, 2009

Reading blog comments about Meiga out there, I’ve found one particularly interesting. Python has an embedded HTTP server that can serve the current directory from a given port. It can be instanced for port 8282 simply issuing this command:

  python -m SimpleHTTPServer 8282

The funny thing is that… it works on the N810 also!

More info about SimpleHTTPServer here.

Meiga 0.2.0 released + talk at Guadec ES

Friday, June 19th, 2009

A new version of the Meiga tool has been released. The new features in this version are:

  • File and share ordering
  • Port from libglade to GtkBuilder. Special thanks to Javier Jardón (torkiano) for his contribution.
  • Log showing in gui
  • Automatic refresh
  • Fixed bug: forbid empty or /rss share names
  • Spanish and galician translations

It can be downloaded from the project main page.

Meiga screenshot (log)

Moreover, the talk about Meiga presented for Guadec ES has been accepted. Don’t miss it if you’re going to take part in Guadec/GuadecES/aKademy and feel curious about this new tool.

Curiosities about parameters and variable declarations in Javascript

Monday, June 15th, 2009
  1. <html>
  2. <body>
  3.  
  4. <script type="application/javascript;version=1.7">
  5.  
  6. function f1(parameter) {
  7.  alert(parameter);
  8. }
  9.  
  10. function f2(parameter) {
  11.  alert(parameter);
  12.  let parameter = "value";
  13. }
  14.  
  15. f1("hello");
  16. f2("hello");
  17.  
  18. </script>
  19.  
  20. </body>
  21. </html>

Continuing with the “Curiosities” serie, today I bring another one: Javascript doesn’t take too well the definition of a variable with the same name as a function parameter. If you do this, the parameter is lost.

Copy the code to a local file and try it yourself… Surprisingly, the second alert will print “undefined”.

Meiga 0.1.0 released

Wednesday, June 3rd, 2009

As presented on my last post, I’ve been working in Meiga, a lightweight content sharing tool for the desktop.

What you could find these days in the git repository was a beta. I’ve been working last days in the final details and now it’s ready to be released. Here it is:


http://meiga.igalia.com

There you will find packages for Ubuntu Hardy, Intrepid and Jaunty, as well as a link to the source code.

I hope you to enjoy it as much as I’ve enjoyed writing it. Of course, comments and improvement suggestions for next versions are welcome. :)