Avant de se lancer, rien de tel que revoir le partitionnement, car après, c'est un peu plus dur.
$ passwd
Ouvrir une nouvelle fenêtre SSH et tester le nouveau mot de passe.
#!/bin/sh | |
set -e | |
if [ ! "`id -u`" -eq 0 ]; then | |
echo "Must be root !" | |
exit 0 | |
fi | |
MYSQLUSER=root |
#! /bin/sh | |
SRC_DB_NAME='source db name' | |
SRC_DB_USER='source db user name' | |
SRC_DB_PWD='source db password' | |
DEST_DB_NAME='destination db name' | |
DEST_DB_USER='destination db user name' | |
DEST_DB_PWD='destination db password' | |
PARENT_DIR="/tmp" |
#!/bin/sh | |
# | |
# redis - this script starts and stops the redis-server daemon | |
# | |
# chkconfig: - 85 15 | |
# description: Redis is a persistent key-value database | |
# processname: redis-server | |
# config: /etc/redis/redis.conf | |
# config: /etc/sysconfig/redis | |
# pidfile: /var/run/redis.pid |
[04-08-2010 06h24] [Début Session Tchat] [Service choisi: Technique] | |
[06h24] Assistance: Mme/M. XXX, bienvenue sur le Tchat de Free, vous êtes actuellement connecté(e) sur le salon Technique. | |
Votre adresse email de contact: XXXXXX | |
Votre numéro de téléphone mobile de contact: XXXXXX | |
Notez que vous pouvez à tout moment modifier vos éléments de contact (mail + mobile) depuis votre interface de gestion, à la rubrique "Mon Abonnement". | |
[06h24] Moi: Bonjour | |
[06h24] Assistance: Bonjour, |
In my effort for porting the geokit-rails plugin to Rails 3, I've found that it would really benefit a full rewrite of the query composition parts.
My work can be followed here : http://github.com/jlecour/geokit-rails/ (make sure to look at the gem branch until it is merged into master) Any help is welcome.
The current version, compatible with Rails 2, has 2 main methods (find
and count
) and some utility methods, that are making some changes to the select/conditions/limit/order/… parts of the options hash passed to ActiveRecord and then call the super
related method on the model's class.
With ActiveRecord 3 and its scope approche, I think we don't need to mess with the hash anymore if we use the power of scopes. I would be cleaner, more chainable and reusable, …
That said, we have to consider the kind of additions Geokit makes to a typical query. As a brief summary, here is how it works.
def self.native_id_to_int(native_id) | |
alpha = "-ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" | |
res = "" | |
i = 0 | |
native_id.split(//).each do |c| | |
if ((i+=1) <= 4) && alpha.include?(c.to_s) | |
index = alpha.index(c) + 10 | |
res += index.to_s | |
else | |
res += c |
L'équipe technique d'Autrement (Timothée Barray, Christophe Moins et Jérémy Lecour) s'amuse (enfin travaille) avec plein de technos différentes pour produire ses sites web (http://chambresapart.fr/, http://hotelhotel.com/, …) et ses applications mobiles (Apple iOS et Android). Pour ça on manipule des langages aussi variés que Ruby (et Rails), PHP (et Symfony), Objective-C, Java et Javascript, on utilise des bases de données SQL et NOSQL, on fait du design en HTML/CSS, …
Nous recherchons 1 ou 2 stagiaires à qui nous proposons de participer pendant quelques mois à la mise en place, la maintenance et l'évolution de technologies et composants stables/éprouvés autant que chercher du côté d'éléments émergents/innovants pour utiliser au mieux les outils disponibles.
Plus concrè
→ export CDPATH=~:~/Sites | |
→ rvm install rbx | |
rbx-1.1.0-20100923 installing #dependencies | |
rbx-1.1.0-20100923 #downloading (rubinius-1.1.0-20100923.tar.gz), this may take a while depending on your connection... | |
rbx-1.1.0-20100923 - #extracting | |
rbx-1.1.0-20100923 - #configuring | |
rbx-1.1.0-20100923 - #compiling | |
Error running '/Users/jlecour/.rvm/wrappers/ruby-1.8.7-p302/rake install', please check /Users/jlecour/.rvm/log/rbx-1.1.0-20100923/rake.error.log | |
There has been an error while running '/Users/jlecour/.rvm/wrappers/ruby-1.8.7-p302/ruby ./configure --prefix=/Users/jlecour/.rvm/rubies/rbx-1.1.0-20100923 --skip-system'. |
→ rvm info | |
ree-1.8.7-2010.02@global: | |
system: | |
uname: "Darwin Solaris.local 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386" | |
bash: "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)" | |
zsh: "/bin/zsh => zsh 4.3.9 (i386-apple-darwin10.0)" | |
rvm: |