Vista event: Helsinki

Vista is released now, for everybody ( and for only 300€).

800x600-dscf2893.jpg

On the big Kamppi square, in Helsinki’s downtown, a Vista show takes place, like in almost everey capital.

3 days before the openning, building in progress:

800x600-dscf2883.jpg
800x600-dscf2877.jpg

So, I waited 3 long day…. hard, this gig is sposorized by, Elisa (Finnish provider), Xbox, LG, a chips brand, Coca-Cola, HP, Samsung etc…

Show must go on:

800x600-dscf2888.jpg

Chips coke and coat-room for free, teens will enjoy.

LG’s ultra-small laptop:

800x600-dscf2885.jpg

Star Wreck: In the Pirkinning,

800x600-dscf2887.jpg800x600-dscf28901.jpg

take the control of the ship and win a picture, made in real time with a green screen:

800x600-dscf2889.jpg800x600-dscf2894.jpg

This parody is a free finnish movie, http://www.starwreck.com/ (free means than you can click on this lick and download it 🙂 also available in english )

Some Creative products:

800x600-dscf2897.jpg

Samsung:

800x600-dscf2903.jpg

Mp3 player, bluetooth headset and ultra slim cell-phone (9mm)

Elisa show:

Real-time video
800x600-dscf2908.jpg

With a lot of convincing arguments:

800x600-dscf2898.jpg

Just to suscribe on their Digibox Canal+.

800x600-dscf2900.jpg

Xbox games:

800x600-dscf2884.jpg

And the best Momo Jacky Car by Microsoft:

800x600-dscf2911.jpg800x600-dscf2912.jpg800x600-dscf2910.jpg

To conclude, I saw only one presentation of Vista with the fancy Aero interface, wich seems cheap compared to Beryl/Compiz/Xgl.

Thx for the Coke and chips.

Mind mapping / brain storming collaboratif

Un superbe outil que voilà : Thinkature

Il permet de travailler à plusieurs, en direct, en mode web 2.0 sur l’élaboration d’un shéma, d’un projet, d’une architecture. Il offre entre autres la possibilité de chatter en texte ou en audio,  d’avoir un mode stylo main libre, d’insérer des images, des boites, des connecteurs. Réalisation superbe, tout est sauvegardé automatiquement, à découvrir d’urgence.

Thinkature-example

Salaire des patrons français dans le secteur IT

Les dirigeants français les mieux payés
dans le secteur des technologies de l’information
Rang
Société
Dirigeant
Salaire annuel*
1
Atos Origin
Bernard Bourigeaud
2 881 576 €
2
Cap Gemini
Paul Hermelin
1 638 000 €
3
Dassault Systèmes
Bernard Charlès
1 262 500 €
4
Business Objects
Bernard Liautaud
1 115 413 €
5
Bull
Didier Lamouche
946 655 €
6
Cegid
Jean-Michel Aulas
765 000 €
7
Cegedim
Jean-Claude Labrune
662 616 €
8
Altran
Christophe Aulnette
593 050 €
9
GFI Informatique
Jacques Tordjman
547 181 €
10
Steria
François Enaud
415 606 €
* Sur l’exercice fiscal 2005

Petit exercice : 2 881 576 / 12 =  240131.30 Euros / mois

Même si on parle surement ici de brut, qu’est-ce qu’on peut bien faire avec plus de 200 000 Euros par mois ?

source

Phrase du jour: Pascal Nègre PDG Universal Music France

« Je ne sais pas si vous avez une voiture, mais si vous avez une voiture, elle roule soit à l’essence, soit au gazole , eh bien votre moteur n’est pas interopérable. Vous pouvez pas mettre du gazole dans un moteur à essence. »

No comment, source

MAJ : à lire absolument, le grand jeu Pascal Nègre sur le forum de Ratiatum : http://www.ratiatum.com/forum/index.php?showtopic=70491

Connecting Bluetooth device: Ubuntu

I own a “cheap-o-dongle-microtune” usb of course who look like that: (but with rubber tape around)

And a Nokia with the bluetooth feature.

First, plug the dongle…. easy and os-independant.

Add/remove > Bluetooth File Sharing or sudo apt-get install gnome-bluetooth obexserver bluez-utils bluez-passkey-gnome

And, OOOoooo, left clic to any file, send:

bluetooth1.png

It’s working, with a nice GUI.

I’ve some troubles to send multiples files, so, I made this send-bluetooth.gz, extract to the ~/.gnome2/nautilus-script/ folder (left-click menu).
bluetooth3.png

Now you can use your cellphone as a storage device.

bluetooth2.png

And even download new wallpapers.

bluetooth4.png

If you encounter strange problems, here is a complete How-to.

Once again, Ubuntu / Linu Rocks, since for the same dongle, used with Windows Xp, need some illegal/cracked Widecom/Microtune drivers.

(you can check once plugged, that it is detected with $ lsusb and you should have a line like:

Bus 001 Device 006: ID 0f4d:1000 Microtune, Inc. Bluetooth Dongle

I already imagine yours complains:”Yea but it’s only a one-way connectivity”

Actualy, no:

Send via bluetooth any file from your phone to your pc, and, a nice screen appear:

bluetooth5.png

Here we go, enjoy.

DIRKON – THE PAPER CAMERA

Vous pouvez dire, en voyant des appareil photo basic, ” il est en bois ton appareil”, et grace a ce manifique article, désormais vous pouvez répondre: ” non il est en papier”

Faisant des photos comme ca?:

Tout de suite je vous sent déja jalou, car vous n’avez qu’un pauvre D400.

Donc, voila la source, avec le pdf prêt a imprimer.

Comme ca, ca vous fait un truc de plus en carton après le dragon.

Rails, Paginator et has_many associations

Par défaut, le mélange de ces 3 ingrédients ne fonctionne pas sous Rails.

La solution est là :

I dove into RoR Pagination yesterday (ActionController::Pagination), and while it’s great for paginating all data in a model, it really sucks for paginating data from an activerecord association (and by really sucks I mean doesn’t support).

Here’s the problem. Say I have a user who has a collection of photos:


class User < ActiveRecord::Base
has_many :photos, :conditions => 'photos.is_deleted = false', :order => 'photos.created_at DESC'

end

I want to have the ability to feed the user’s photos to the paginator. Unfortunately, the paginate function simply takes a collection id, and will not accept a set of data (an association, in this case). So, if I want to paginate photos on a user, I have to do this:


@photo_pages, @photos = paginate :photos,
:conditions => ["photos.user_id=? AND is_deleted = false", @user.id],
:order => "photos.created_at DESC"

What a mess. Now i’ve lost the benefits of my association, since I have to define the association as part of the pagination rules. Very suprised Rails handles things this way, as it seems to violate the basic DRY principles. Anyways, I only had to write code like this a few times to realize how much of a pain in the ass it is, and I created a “paginate_association” method to help me out.


def paginate_association(object, assoc_name, find_options = {}, per_page = 10)
page = (params[:page] || 1).to_i

item_count = object.send(assoc_name.to_s + '_count')
offset = (page-1)*per_page

@items = object.send(assoc_name).find(:all, {:offset => offset, :limit => per_page}.merge(find_options))
@item_pages = Paginator.new self, item_count, per_page, page

return @item_pages, @items
end

I added this to my ApplicationController (application.rb), and now I can paginate assocations til the cows come home.


@photo_pages, @photos = paginate_association @user, :photos, :order => 'created_at'

This helper uses the Rails Pagination stuff, so you can easily use paginate or paginate_association with the same view. Great!

You can also pass additional “find” arguments, such as :order, :include, :join, etc…

Hopefully this is as useful for you as it’s been for me!

source