Mod de resetare contor “InSP”: 1. Se intrerupe contactul motorului, cheia va fi pe pozitia “O” 2. Se apasa butonul de resetare si se tine apasat (este butonul de la reset – aducere la zero – km realizati zilnic) 3. Se stabileste contactul motor, tinandu-se totodata cateva secunde si butonul reset km apasat 4. Dupa […]
Monthly Archives: January 2011
How to install Rails 3.0 and Ruby 1.9.2 on Ubuntu
Install RVM 1.0.1 First be sure to do a quick update before you get started. sudo apt-get update Next install curl and git so we can pull down ruby via rvm sudo apt-get install curl git-core Now that you’re all set up, install RVM itself. This is done via a shell script which you can […]
Export to Excel in Rails: to_xls Plugin
This gem transform an Array into a excel file using the spreadsheet gem. Usage @users = User.all @users.to_xls @users.to_xls(:headers => false) @users.to_xls(:columns => [:name, :role]) @users.to_xls(:columns => [:name, {:company => [:name, :address]}]) @users.to_xls(:columns => [:name, {:company => [:name, :address]}], :headers => [:name, :company, :address]) In order to send a file from the controller, you can […]
WordPress Post-Install Setup on Dreamhost
Once you’ve completed your installation of WordPress, login to the admin panel and from the Settings-> General tab, you’ll need to set your WordPress address to the folder you installed WordPress (without the trailing slash) and set the Blog address to your blog’s root address (without the trailing slash). In a text or HTML editor, open […]