python: what’s the difference between pythonbrew and virtualenv?

Pythonbrew is akin to Ruby’s rvm: It’s a shell function that allows you to: Build one or more complete self-contained versions of Python, each stored locally under your home directory. You can build multiple versions of Python this way. Switch between the versions of Python easily. The Pythons you build are completely isolated from each … Read more

rails server fails to start with mysql2 using rvm & ruby 1.9.2-p0 on OSX 10.6.5

The problem comes from the mysql2 gem missing the dynamic library from MySQL. A cleaner solution than install_name_tool … would need to update your DYLD_LIBRARY_PATH to add MySQL libs to it. To do so, update your ~/.bash_profile to add the MySQL library folder : export DYLD_LIBRARY_PATH=”/usr/local/mysql/lib:$DYLD_LIBRARY_PATH” Note: You might want to update the MySQL location … Read more

RVM, where is Ruby 3.0.0?

If you have not updated rvm do that first RVM Upgrading rvm get stable # or rvm get master # for even newer versions not in stable 3.0.0 in this case To see all available rubies run rvm list remote all # or rvm list known # as pointed out in the comments you should … Read more

Should I check in `.ruby-gemset` and/or `.ruby-version`?

For standard projects Check in .ruby-version if your project depends on a ruby like ruby-2.0.0. Check in .ruby-gemset only if your team agreed on it. Add .rvmrc to .gitignore so anyone can override .ruby-* files settings with .rvmrc. For gems Check in .ruby-version with ruby-1.8.7 only if your project still targets ruby 1.8.7, otherwise check … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)