Marco Borromeo
  • a software developer :)
    Theme by Peter Vidani for Tumblr
  • Authlogic and Rails3?

    Yes we can.

    Add to your Gemfile

    gem “authlogic”, :git => “git://github.com/odorcicd/authlogic.git”, :branch => “rails3”

    Install the gem with

    bundle install

    … and start generating as follows

    rails generate authlogic:session user_session

    I think that Rails Plugins needs some UI improvements…
    I can’t search for text that Google finds, because it could be into some hidden div (like comments).

  • [HOW-TO] Install Gitosis on a Dreamhost shared account

    As requested, i’m going to explain how to install Gitosis on Dreamhost (i assume you are Git fan, and you know something about Gitosis). Requirements: a Dreamhost (shared hosting) dedicated user with SSH access. (create it using Dreamhost control panel). I created an user called “gitdemo” for this tutorial. Let’s start connecting to your user account and check Git version:

    lussuria:~ marco$ ssh gitdemo@marcoborromeo.com gitdemo@marcoborromeo.com’s password: <…> [moran]$ git —version git version 1.5.6.5

    Update Git to latest stable version:

    [moran]$ cd && mkdir src && cd src [moran]$ wget http://kernel.org/pub/software/scm/git/git-1.6.1.3.tar.gz [moran]$ tar xzf git-1.6.1.3.tar.gz && cd git-1.6.1.3 [moran]$ ./configure —prefix=$HOME NO_MMAP=1 [moran]$ make && make install

    Install Gitosis

    [moran]$ cd && cd src [moran]$ git clone git://eagain.net/gitosis.git [moran]$ cd gitosis/ [moran]$ mkdir -p $HOME/lib/python2.4/site-packages [moran]$ export PYTHONPATH=$HOME/lib/python2.4/site-packages [moran]$ python setup.py install —prefix=$HOME [moran]$ cd

    Setup some environment variables:

    [moran]$ cd [moran]$ echo “export PYTHONPATH=$HOME/lib/python2.4/site-packages/” » .bashrc [moran]$ echo “export PYTHONPATH=$HOME/lib/python2.4/site-packages/” » .bash_profile [moran]$ echo “export PATH=$HOME/bin:$PATH” » .bashrc [moran]$ echo “export PATH=$HOME/bin:$PATH” » .bash_profile [moran]$ . ~/.bash_profile

    You have now installed Git and Gitosis on your Dreamhost shared hosting account. To finish installation of Gitosis, create a temporary directory, copy into there you public key, and initialize Gitosis

    [moran]$ cd && mkdir tmp <copy/paste your public key into tmp/id_rsa.pub> [moran]$ gitosis-init < tmp/id_rsa.pub

    PLEASE NOTE: Gitosis, by default, closes you out from SSH access; to re-gain access to your user account used to host Gitosis, reconnect to Dreamhost server with an other user account, and become the Gitosis user using “su” command. LOOKING FOR DREAMHOST PROMO CODES? Get a $30.00 discount for yearly registrations and $15.00 for monthly ones using “DHGITOSISpromo code!

  • ops, another blog, yes

    Hi all, fellow ex and new readers! As first good 2009 proposal, i decided to restart blogging… but not in Italian this time! (at least, not only in Italian…) I never had a not Italian blog, so please don’t hate me if my written English is not so good: i’ll improve it (with your help, i whish!) Have a nice 2009!

  • CAP Italiani per iPhone

    Un piccolo post per una piccola applicazione :) E’ da oggi disponibile sull’App Store di Apple l’applicazione “CAP Italiani”: un database di CAP italiani, con una funzione di geolocalizzazione per individuare il CAP della località in cui siamo. Al momento l’applicazione non supporta i CAP di zona, che saranno però inseriti nella versione 1.1 di prossima uscita. Per chi è interessato all’applicazione (in vendita a 0,79€) può trovarla all’indirizzo http://bit.ly/YOL9T (attenzione, verrà aperto iTunes). A presto con la versione 1.1!

  • 2008 review

    • Left Yahoo! to work for a startup, Mobango (hey, we are hiring!)
    • Learned a lot about scalability and cloud computing
    • Improved my Ruby on Rails skills, developing personal projects during spare time
    • Learned fundamentals of Erlang
    • Started loving document-oriented databases
    • Used Google App Engine, and i found it a great platform (still too young however)
    • Became a fan of Amazon Web Services (ec2/s3/simpledb/SQS), GitHub, Sandy (put offline some week ago :()
    • I got me an Apple iPhone, and i find it great! I learned to code for it, obviously
    • 3 of my friends bought a MacBook, and i helped them during the switch from a PC
    • Found “Extreme programming” and “Agile software development” very interesting and productive
    • My grandma passed away, and this is a sad story
    • Continuously looked for a new house, sounds like i found it
    • Fallen in love with Team Fortress 2 (Spy FTW)
    • Put myself on diet, and i lost 20Kg
    • Things-to-do overload has been a constant
    • Got in touch with cool and skilled people
    • Made a huge culture about entrepreneurship, startups, foundings, business plans
    A good year, after all.