Uncategorized

You are currently browsing the archive for the Uncategorized category.

Because when I see a good link, my main pleasure is to send it to as many friends as possible on IM, here is a simple jabber bot I could use to also save these links to my delicious account:

Download from github.com

It uses jabber-bot and rdelicious gem for ruby, you just need to configure the config.yml with your jabber and delicious login information and maje it run with:

ruby delicious-bot.rb

The bot will connect to the master jabber you’ve configured in the config.yml, and you just need to send him the bookmark command:

bookmark url description

You can add your commands easily inside the bot, and fork the project from Github.com:

Delicious-bot project on github.com

We are going to use our own openid server for various projects, it was fairly easy to install at then end.

Because sources are diffused on the net, here is a all-in-one package you’ll just need to put on your webhost to start your server:

Download package

Update: OpenId-Server now on Github.com

Configuration

In the package, you need to edit some configuration in web/config.php:

/**
 * The administrator's email address.  You may leave this empty if you
 * wish.  If empty, the "Contact (email address)" message will not
 * appear on every page footer.
 */
define('SITE_ADMIN_EMAIL', "admin@example.com");

/**
 * Set these values for administrative access.  This account will be
 * able to create and remove accounts from the auth backend.  This
 * username will not be permitted to use an OpenID.  The password MUST
 * be an MD5 hexadecimal hash of the password you want to use.
 * Example:
 *
 * define('ADMIN_PASSWORD_MD5', '21232f297a57a5a743894a0e4a801fc3');
 *
 */
define('ADMIN_USERNAME', 'admin');
define('ADMIN_PASSWORD_MD5', '');

Visit this page to transform your password in MD5 hash

/**
 * Storage backend to use.  Currently the only choice is "MYSQL".  See
 * storage.php for storage backend implementations.  Parameters for
 * connecting to the storage backend.  See storage.php if you want to
 * create your own backend.
 */
define('STORAGE_BACKEND', 'MYSQL');
global $storage_parameters;
$storage_parameters = array('username' => 'openid',
                            'password' => '',
                            'database' => 'php_openid_server',
                            'hostspec' => 'localhost');

There are more options you can change in config.php, feel free to experiment :)

Link to HTTP server

You need to tell to your server to access OpenID server in the ‘web‘ directory.
Here is how it works on my webhost:

ln -sf ~/openid/web/ ~/public_html/openid/

Now you can access my OpenID server on http://openid.alexgirard.com

Here is the video made by David from the rushes of our weekend with Mercedes in Asturias to meet Maki, a new Indianos.

Everything was perfect: cider bars, local food, hiking in the mountain, asturian connection y dulce alegria!

PS: estoy pensando en español cuando quierre escribir algo, probablemente vais a ver un cambio de idioma en los proximas semanas :)

This is the bash history to install and run Gitorious on a Ubuntu server (you need ruby-dev, rails, mongrel and git-core installed to continue).

Some pitfalls:

  • Texpow is not installing because of Onigurama, so download it and build it from sources
  • Problem: “cannot open shared object file: No such file or directory - /usr/lib/ruby/gems/1.8/gems/oniguruma-1.1.0/lib/oregexp.so“. Solution: sudo ldconfig
git clone git://gitorious.org/gitorious/mainline.git  gitorious
cd gitorious
sudo apt-get install libopenssl-ruby1.8
sudo gem install mime-types textpow -y
cp config/gitorious.sample.yml config/gitorious.yml; nano config/gitorious.yml
nano config/database.yml
rake db:migrate
mongrel_rails start

Then open your browser to http://localhost:3000

During the rewritting of Feevy.com with Merb, I’m discovering RSpec, a framework to be sure your code behave nicely.

Follow and join Feevy rewrite on Gitorious

Instead of normal test-units, you describe how your app/model should behave, which give a more-human conversation when you read your test:

  it "should create a feed from website http://blog.feevy.com" do

    feed = Feed.new :website => "http://blog.feevy.com"

    feed.valid?(:save).should == true

    feed.link.should == "http://blog.feevy.com/feed/"
    feed.website.should == "http://blog.feevy.com"
    feed.title.should == "Feevy Blog"

  end

To re-initialize your database between each test:

  before(:each) do
      Feed.delete_all
  end

Next step: writing Feevy stories

The wrt54g router is good fun for all geeks, such a versatile network component with a lot of great feature coming from the open-source scene. Learn about its history if you don’t know yet, it’s one of the greatest GPL success after its use in a commercial product (win-win situation for Linksys and open-source communauty).

I’ve tried most of 3rd-party firmware to customize my router: dd-wrt (best solution for most cases), tomato (great appealing interface), and since yesterday night, openwrt

openwrt

Openwrt is just a command line interface to configure the router, with a linux-type system to manage files and services. With great simplicity comes great power.
But it’s sincerely not a point and click interface. At least, you’ll be forced to understand the concepts under network interfaces, which is why we all want to try these complex tools, and it’s free education for anyone :)
Once your router is stable, the fun begin. Openwrt comes with an itsy package management system, with a lot of software ready to deploy: kismet, ruby, apache…
Then with some easy soldering, you can plug a MMC/SD card on it, then you just need to have some imagination to create some fancy stealth network box!

Paco wanted a wordpress installation with one purpose: test different themes for the same blog.

The idea was nice, but know it’s even more fun with this new plugin: user controls which theme to display on the blog they are reading.

Try it yourself on lasindias.info

Theme viewer

There’re surely some more feature to add before the plugin is complete:

  • Use cookie to keep plugin whil navigating on the blog
  • Add form for admin to add or upload a new theme
  • Fun factor: save last selected theme as the default blog theme, users now control your blog presentation!

Download Theme viewer plugin for Wordpress

Thanks to Dougal Campbell for the original Preview Theme plugin.

It’s already 6 in the morning, I can clearly feel my circadian cycle drifting again in the early hours of the day, but it’s not anymore a desesperate quest for sleep, I’m back to last winter when the quiet nights were the best moment to concentrate and build up.

Enough said, here are 3 important things you’ll have to see during this month, I can’t remember when was the last time I got so much great visual information!

Juno

Totally indie movie, about a 16 years old girl in US, who gets pregnant and decides to give her child. In a refreshing way, that’s the best solution for everybody, they’re all happy about it, and they take the difficulties with some geeky humour, I liked it so much!

Imdb link (Score: 8.4)

The King of California

Same country, same young woman lifetime. After 2 years, she’s getting her father out of a mental institute, she’s made her life alone during this time. Her father is still crazy, and he’s now looking for lost spanish gold buried somewhere in California. Epic quest and crazy relationship.

Imdb link (Score: 7.1)

Enabling innovation in Europe

Metalab

It’s not a movie, it’s the session I’ll remember the most from last summer CCC camp near Berlin. Paul Böhm, a founder of Metalab Vienna, shows new space for innovation actually growing up in Europe.
It particularly made me think about Las Indias, with the same philosophy inside, and in Vienna, they already have their centralized physical world with the metalab, a kind of super-growed hacking house for everybody, that I must go visit in 2008 :)
Session webpage
Video recording (MPEG4)

After a lot of debugging on bbvablogs.com, I needed serious fun to keep it up, and suddently I found the perfect project to remove the dust on my arduino board: a blinking led that would tell us when someone is visiting the website!

BBVA web-blinker

More links about this project:

Just in case you were not secure enough, please don’t look too anxious in airport:

“Travelers at Sea-Tac and dozens of other major airports across America are being scrutinized by teams of TSA behavior-detection officers specially trained to discern the subtlest suspicious behaviors.

TSA officials will not reveal specific behaviors identified by the program — called SPOT (Screening Passengers by Observation Technique) — that are considered indicators of possible terrorist intent.”
– source: seattlepi.com

No wonder which the manual book they used to develop this new kind of screening:

“It was terribly dangerous to let your thoughts wander when you were in any public place or within range of a telescreen. The smallest thing could give you away. A nervous tic, an unconscious look of anxiety, a habit of muttering to yourself — anything that carried with it the suggestion of abnormality, of having something to hide. In any case, to wear an improper expression on your face (to look incredulous when a victory was announced, for example) was itself a punishable offence. There was even a word for it in Newspeak: facecrime, it was called.”
– 1984 by George Orwell

What woud be interesting is to follow the propagation of airport security into real live. Today for example, it’s mandatory to put your name on your luggage when you travel by train (in France at least), is it something coming from airplane security?

« Older entries § Newer entries »