First awesome Iphone app!

Posted by admin on November 08, 2009

iphone_hw

I know …

CSS sur une ligne avec Textmate

Posted by admin on October 09, 2009

Depuis un moment je n’ecris plus le code CSS de facon traditionnelle mais sur une seule ligne (voir les screenshots), je trouve que c’est beaucoup plus facile de s’y retrouver du fait que les fichiers ne fassent plus 500 lignes, et surtout du fait que il soit possible d’indenter l’ecriture des sous classes / divs.

Avant :

multiple_lines

Apres :

single_line

De plus il existe un plugin Textmate qui permet de convertir vos css en mode ‘1 line style’ en 1 click, c’est dispo sur le site de Dan Rubin :

http://superfluousbanter.org/archives/2008/08/regex-patterns-for-single-line-css/ (le permalink du post).

Et pour le plugin Textmate,c’est ici :

http://superfluousbanter.org/downloads/2008-08/Format-CSS-Single-line.tmMacro.zip

Ensuite si vous avez Textmate, il suffit d’ouvrir le fichier et il sera installe automatiquement dans vos bundles.

I'm waiting for you my friend …

Posted by admin on July 04, 2009

picture-1

I will enjoy the 7 hours battery during the flight back to Paris. I’m thinking of starting an Iphone apps in the plane ..

Edit : I finally got it after 1 month late …

Install Ruby on Rails using MAMP

Posted by admin on June 02, 2009

I just installed ruby on rails, following the official tutorial http://hivelogic.com/articles/view/ruby-rails-mongrel-mysql-osx (MacOSX 10.4),  so everything works except that for me I had to update my .bash_profile and not .bash_login.


mate ~/.bash_profile

Then copy paste (I remove the MySQL path because the plan is to use MySQL of MAMP)


export PATH="/usr/local/bin:/usr/local/sbin:$PATH"

The rest of the tutorial is fine, keep going with the official tutorial until the MySQL part.

If for the MySQL configuration you are encountering this error :


sudo gem install mysql -- --with-mysql-config=/Applications/MAMP/Library
Building native extensions.  This could take a while...
ERROR:  Error installing mysql:
        ERROR: Failed to build gem native extension.

You are in the same situation I was, then I found this solution http://boonedocks.net/mike/archives/175-MAMP-and-the-Ruby-MySQL-Gem.html the beginning worked well until I had to compile …
I resume the steps to make it worked, first download the source code of MAMP (this suppose that you already have MAMP 1.7.2 installed properly), then unzip the source code, untar the MySQL archive and compile the libraries for the Gem :


$ tar -xzvf mysql-5.0.41.tar.gz
 ./configure --with-unix-socket-path=/Applications/MAMP/tmp/mysql/mysql.sock --without-server --prefix=/Applications/MAMP/Library

This where I encountered another problem, I had this error :


./configure --with-unix-socket-path=/Applications/MAMP/tmp/mysql/mysql.sock --without-server --prefix=/Applications/MAMP/Library
checking build system type... i686-apple-darwin8.11.1
checking host system type... i686-apple-darwin8.11.1
checking target system type... i686-apple-darwin8.11.1
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking "character sets"... default: latin1, collation: latin1_swedish_ci; compiled in: latin1 latin1 utf8
checking whether to compile national Unicode collations... yes
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... (cached) yes
checking for gawk... (cached) awk
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

This one was simple, check which compiler version you are using, If you are using gcc 3.3 (like me) you must switch to the version 4.0, if you don’t have it you can grab it on the mac osx installation cd.


 sudo gcc_select 4.0
Default compiler has been set to:
gcc version 4.0.1 (Apple Computer, Inc. build 5370)

And then just follow the end of the tutorial and anything should work like a charm

ror_install

Mac world 1

Posted by admin on October 19, 2007

mac missouri

Impressionant non ? En tout cas c’est pas comme ça en Australie le bon vieux PC est encore largement majoritaire. On a pas de blonde comme au premier rang non plus d’ailleurs …

Pas dans nos cours en tout cas, c’est sure si j’avais fais RMIT Fashion au lieu de IT Business, bref …

Sur ce, je retourne à mes 4 assessments à finir pour demain soir, ainsi qu’une présentation de 45 minutes à préparer pour Samedi … laaarge.

via mac.blorge.com

Tips mac : shortcuts

Posted by admin on August 12, 2007

“[" = shift +alt + 5

"]” = shift + alt + )

“\” = shift + alt + :

“}” = alt + )

“{” = alt + (

Tips mac : faire un screenshot

Posted by admin on July 30, 2007

Pour faire un screenshot sur mac :
pomme+shift+4 : permet de selectionner la zone que vous voulez “screenshooter”
pomme+shift+4+barre d’espace+clic : pour capturer une fenêtre complete
pomme+shift+3 : pour screeshooter l’ecran complet
L’image est placée sur le bureau au format PNG.

enjoy