vanutsteen.nl => nerds only » development http://v3.vanutsteen.nl A blog on rails, php, computing, my bass guitar and stuff Thu, 20 Sep 2012 06:26:30 +0000 en-US hourly 1 http://wordpress.org/?v=3.5 How to repair an SQLite database http://v3.vanutsteen.nl/2012/09/17/how-to-repair-an-sqlite-database/ http://v3.vanutsteen.nl/2012/09/17/how-to-repair-an-sqlite-database/#comments Mon, 17 Sep 2012 06:14:48 +0000 LeonB http://www.vanutsteen.nl/?p=803 echo ".dump" | sqlite3 old.db | sqlite3 new.db

Explanation: pipe “.dump” to sqlite and use that output (the dump itself) to fill the new.db database.

]]>
http://v3.vanutsteen.nl/2012/09/17/how-to-repair-an-sqlite-database/feed/ 0
Cleaning up Git http://v3.vanutsteen.nl/2012/09/15/cleaning-up-git/ http://v3.vanutsteen.nl/2012/09/15/cleaning-up-git/#comments Sat, 15 Sep 2012 13:13:21 +0000 LeonB http://www.vanutsteen.nl/?p=801 I had this huge git repository (1.9 gigabyte) and I couldn’t discover WHY is was SO big. After reading up on some git cleaning et cetera I did a `git gc`. I went from 1.9g to 12mb (megabytes yes). Unbelievable…

git-gc – Cleanup unnecessary files and optimize the local repository

]]>
http://v3.vanutsteen.nl/2012/09/15/cleaning-up-git/feed/ 0
Git: an easy way to change authors name http://v3.vanutsteen.nl/2012/07/16/git-an-easy-way-to-change-authors-name/ http://v3.vanutsteen.nl/2012/07/16/git-an-easy-way-to-change-authors-name/#comments Mon, 16 Jul 2012 16:25:27 +0000 LeonB http://www.vanutsteen.nl/?p=741 git filter-branch --commit-filter 'if [ "$GIT_AUTHOR_NAME" = "LeonB" ]; then export GIT_AUTHOR_NAME="Leon Bogaert"; export GIT_AUTHOR_EMAIL=leon@tim-online.nl;

After this is done you can do:

git push -f

It says some scary things like:

# Your branch and 'origin/v3' have diverged,
# and have 75 and 75 different commits each, respectively.

But you can Ignore those.

]]>
http://v3.vanutsteen.nl/2012/07/16/git-an-easy-way-to-change-authors-name/feed/ 0
motorrijweer.nl http://v3.vanutsteen.nl/2012/03/16/motorrijweer-nl/ http://v3.vanutsteen.nl/2012/03/16/motorrijweer-nl/#comments Fri, 16 Mar 2012 18:28:59 +0000 LeonB http://www.vanutsteen.nl/?p=659 Ik heb de eerste versie van motorrijweer.nl live gezet! ‘t Is nog vrij basis maar je kunt wel al voor een paar regio’s het motorweer/motorrijweer opvragen. Op naar de volgende versies!

Motorrijweer / motorweer

]]>
http://v3.vanutsteen.nl/2012/03/16/motorrijweer-nl/feed/ 0
Removing the password from an (open) ssl key http://v3.vanutsteen.nl/2012/02/22/removing-the-password-from-an-open-ssl-key/ http://v3.vanutsteen.nl/2012/02/22/removing-the-password-from-an-open-ssl-key/#comments Wed, 22 Feb 2012 09:40:24 +0000 LeonB http://www.vanutsteen.nl/?p=645 openssl rsa -in www_silverpower_nl.key -out www_silverpower_nl.key.unencrypted ]]> http://v3.vanutsteen.nl/2012/02/22/removing-the-password-from-an-open-ssl-key/feed/ 0 dump a Varien_Db_Select / Zend_Db_Select query http://v3.vanutsteen.nl/2012/02/13/dump-a-varien_db_select-zend_db_select-query/ http://v3.vanutsteen.nl/2012/02/13/dump-a-varien_db_select-zend_db_select-query/#comments Mon, 13 Feb 2012 09:26:06 +0000 LeonB http://www.vanutsteen.nl/?p=630 $query = $adapter->getProfiler()->getLastQueryProfile()->getQuery(); //print last executed query foreach ($adapter->getProfiler()->getLastQueryProfile()->getQueryParams() as $k => $v) { $query = $query = str_replace($k, "'{$v}'", $query); } var_dump($query);

A more complete example:


$adapter = Mage::getSingleton('core/resource')->getConnection('core_write');
$adapter->getProfiler()->setEnabled(true); //enable profiler

// Do database stuff

$number = 10;
$profiles = $adapter->getProfiler()->getQueryProfiles();
$profiles = array_slice($profiles, count($profiles)-$number, $number);

foreach ($profiles as $profile) {
$query = $profile->getQuery(); //print last executed query
foreach ($profile->getQueryParams() as $k => $v) {
$query = $query = str_replace($k, "'{$v}'", $query);
$query = preg_replace('/\?/', $v, $query);
}
var_dump($query);
}

]]>
http://v3.vanutsteen.nl/2012/02/13/dump-a-varien_db_select-zend_db_select-query/feed/ 0
git add -u http://v3.vanutsteen.nl/2012/01/21/git-add-u/ http://v3.vanutsteen.nl/2012/01/21/git-add-u/#comments Sat, 21 Jan 2012 18:40:54 +0000 LeonB http://www.vanutsteen.nl/?p=593 This is a nice one:

git add -u

This only adds already commited files to a new commit. And leaves files not in the git repository alone.

]]>
http://v3.vanutsteen.nl/2012/01/21/git-add-u/feed/ 0
Sublime Text 2 http://v3.vanutsteen.nl/2011/10/26/sublime-text-2/ http://v3.vanutsteen.nl/2011/10/26/sublime-text-2/#comments Wed, 26 Oct 2011 21:36:30 +0000 LeonB http://www.vanutsteen.nl/?p=562 I installed sublime text on my Ubuntu 11.10 box but I had some troubled loading external python modules:

loaded 937 snippets
>>> import distutils
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named distutils

This is how I solved it:

Edited ~/.local/share/applications/sublime.desktop
Especially this line:

Exec="/home/leon/Software/bin/sublime" %U

/home/leon/Software/bin/sublime contains this:

#!/bin/bash
cd /usr/lib/python2.7
/home/leon/Software/SublimeText2/sublime_text

Then I installed some excellent plugins:

]]>
http://v3.vanutsteen.nl/2011/10/26/sublime-text-2/feed/ 0
Nice: github resumé http://v3.vanutsteen.nl/2011/02/08/nice-github-resume/ http://v3.vanutsteen.nl/2011/02/08/nice-github-resume/#comments Tue, 08 Feb 2011 11:40:43 +0000 LeonB http://www.vanutsteen.nl/?p=509 Generate your own Github resumé

]]>
http://v3.vanutsteen.nl/2011/02/08/nice-github-resume/feed/ 0
Removing packages marked rc http://v3.vanutsteen.nl/2010/10/18/removing-packages-marked-rc/ http://v3.vanutsteen.nl/2010/10/18/removing-packages-marked-rc/#comments Mon, 18 Oct 2010 12:42:52 +0000 LeonB http://www.vanutsteen.nl/?p=493 I got an error when building the 2.32 version for ubuntu. Some packages once where installed but got removed. But they still had the status rc.

So I purged them with the help of this blog.

I compiled evolution with the help of a Makefile that I downloaded.

I had to add the “maverick” distro and install some additional packages such as:

  • gobject-introspection
  • autopoint
  • libgdata-dev

I removed the evolution-exchange plugin.

The master branch of gweather required gtk3 so I changed that to: gnome-2.30 (or something)
I had to apply a patch to solve a build error.

Bottom of this post: http://www.mail-archive.com/evolution-hackers@gnome.org/msg03863.html

http://www.mail-archive.com/evolution-list@gnome.org/msg15575.html
]]>
http://v3.vanutsteen.nl/2010/10/18/removing-packages-marked-rc/feed/ 0
Zend_db http://v3.vanutsteen.nl/2010/09/26/zend_db/ http://v3.vanutsteen.nl/2010/09/26/zend_db/#comments Sun, 26 Sep 2010 21:31:02 +0000 LeonB http://www.vanutsteen.nl/?p=494 Zend Framework logoThe last few days I’ve been spending my time on creating a website with Zend Framework. A lot of it I liked but the Zend_db stuff is is a complicated piece of crap. I’ve worked with a lot of ORM’s and db api’s but the Zend_db stuff is really the most awfull I’ve had till now.

I really, really don’t want to work with it ever again and I regret that I chose ZF for this particular project just because of the db layer.

]]>
http://v3.vanutsteen.nl/2010/09/26/zend_db/feed/ 0
Nice guide to upgrading magento http://v3.vanutsteen.nl/2010/08/06/nice-guide-to-upgrading-magento/ http://v3.vanutsteen.nl/2010/08/06/nice-guide-to-upgrading-magento/#comments Fri, 06 Aug 2010 08:15:50 +0000 LeonB http://www.vanutsteen.nl/?p=486 http://www.nicksays.co.uk/2010/03/fool-proof-magento-upgrades/

./pear upgrade --force magento-core/Mage_All_Latest
]]>
http://v3.vanutsteen.nl/2010/08/06/nice-guide-to-upgrading-magento/feed/ 0
python libindicate http://v3.vanutsteen.nl/2009/10/19/python-libindicate/ http://v3.vanutsteen.nl/2009/10/19/python-libindicate/#comments Mon, 19 Oct 2009 20:18:53 +0000 LeonB http://www.vanutsteen.nl/?p=421 I saw that there are python bindings for libindicate. They’re called “python-indicate“.

There’s also a wiki about this new feature from Ubuntu. I thought about creating a plugin for weechat that uses this library. Especially because the notify-plugins is useless if you’re away and somebody mentions you on irc. Libindicate would be perfect for this. First have to find out how the behaviour of the applet would be.

[update]
I asked my question on the libindicate launchpad so I’m very curious about the answer(s).
[/update]

messaging-menu-karmic ubuntu 9.10 libindicate

]]>
http://v3.vanutsteen.nl/2009/10/19/python-libindicate/feed/ 0
Choosing a new editor: Emacs vs. Vim http://v3.vanutsteen.nl/2009/10/15/choosing-a-new-editor-emacs-vs-vim/ http://v3.vanutsteen.nl/2009/10/15/choosing-a-new-editor-emacs-vs-vim/#comments Thu, 15 Oct 2009 07:27:49 +0000 LeonB http://www.vanutsteen.nl/?p=393 For php I use Zend Studio for Linux. We have a license at work for it and it is in my opinion the best editor for php. It’s relatively fast and you can use it to quickfix php over an ftp connection.

For Ruby I use netbeans. I would also like to use it for php but it doesn’t allow to quicly open a file via ftp/scp or whatever. And it can sometimes be sloooooowwww. I’ve  seen netbeans used on a Windows platform and there it is much faster.

When I right-click on a project in netbeans for the first time, it takes 5 seconds (not lying!) to render the popup-menu. Come onm take forever!

And because I was now developing with Python I decided to try a new editor. Something more hardcore and lighter. Something nerdy :) So ofcourse I only have two decent options: Vim & Emacs.

I already had try them with Ruby. But I found good Ruby (& Rails) support rather lacking by both of them. I believe that the python comminity is more hardcore and therefore are using more arcane editors :) And maybe because they aren’t afraid to hack away in another language than their own (lisp, vimscript).

I think I have been comparing the two editors for nearly two weeks now. I have spent hours and hours comparing, trying and browsing for blog posts about the two. At the end, I really didn’t know which one to choose. I really suck at deciding something :) So I made a little list of what I find to be strong points of each editor:

VIM:

  • Better syntax highlighting/theming supprt (wombat ftw!!)
  • Faster/smaller
  • No weird handling of new buffers like with emacsclient
  • No daemon like: emacs –daemon
  • Better python integration
  • Easier to make extensions
  • Preview of docstrings when using omni completion

EMACS:

  • Better python-mode
  • No commandmode/normalmode
  • Directory browser/editor
  • Debugger (better integration with external tools)
  • easier to begin
  • Everyting is a buffer™

And now I have chosen to be the editor with which I am going to work is…… (drum roll please) …….:

Gedit!

No, it’s (g)Vim :)

And while writing this article I was looking for a WordPress/blog plugin for Vim and Emacs. At a glance it looked like the wordpress plugin for Emacs was a little bit better. So already I was doubting my decision… So it could be that I switch editor in the next few months :) But I’m first going to really use gvim to see if it fits with my workflow and is really useable for me.

As cherry on the pie, a nice screenshot of my gvim in action:

Vim with python-mode

[update]
I’ve installed Netneans 6.8m2 and it feels a lot faster than 6.7 but python completion is as bad as in 6.7.
[/update]

[update2]
Found out about Vim’s netrw. So Emacs no longer got “Directory browser/editor” as a strong point.
[/update2]

]]>
http://v3.vanutsteen.nl/2009/10/15/choosing-a-new-editor-emacs-vs-vim/feed/ 2
Rmp -> Pmpd http://v3.vanutsteen.nl/2009/09/24/rmp-pmpd/ http://v3.vanutsteen.nl/2009/09/24/rmp-pmpd/#comments Thu, 24 Sep 2009 05:40:00 +0000 LeonB http://www.vanutsteen.nl/?p=362 monty-pythonI’ve ditched Ruby for my mpd project and started using Python. Not that I like python that much more but the Gstreamer library for python is much more complete. I really wanted gapless playback and the Ruby Gstreamer libray just doesn’t support that. If it does by the time you read this: please let me know :)

The new Pmpd project (looking for a better name) can be found on github. The hardest part so far is having to restructure the sources. Python is not a difficult language to master at all but I’m very picky on how everything fits together. My ruby project felt right on that part. But the python equivelant has some things I just don’t like enough up to now.

]]>
http://v3.vanutsteen.nl/2009/09/24/rmp-pmpd/feed/ 0
Phoogle: a _good_ fixed version http://v3.vanutsteen.nl/2008/11/28/phoogle-a-_good_-fixed-version/ http://v3.vanutsteen.nl/2008/11/28/phoogle-a-_good_-fixed-version/#comments Fri, 28 Nov 2008 09:55:13 +0000 LeonB http://www.vanutsteen.nl/?p=279 Recently phoogle broke because of some Google maps update. The original creators of Phoogle haven’t updated the code (yet). And when searching online for newer, fixed versions all that showed up were crappy hacked Phoogle files by people who don’t know what they’re doing.

So hereby I present to you: a fixed Phoogle files which is hacked decent.

]]>
http://v3.vanutsteen.nl/2008/11/28/phoogle-a-_good_-fixed-version/feed/ 0
Ruby on Rails: custom fields on a per-user basis http://v3.vanutsteen.nl/2008/11/12/ruby-on-rails-custom-fields-on-a-per-user-basis/ http://v3.vanutsteen.nl/2008/11/12/ruby-on-rails-custom-fields-on-a-per-user-basis/#comments Wed, 12 Nov 2008 16:42:01 +0000 LeonB http://www.vanutsteen.nl/?p=259 I’m now developing a flexible car database for a couple of hours per week. Our first customer, a Beemer dealer, has a lot of fancy requests. Well, the hired-in Flash developer has these requests actually.

One of them is that they want to save a field in the database that contains a unique identification number for the secondhand cars they sell. But this number is set-up in a way that is unique to BMW’s. So actually, I didn’t want to add this column to the database, ’cause that will mess up my clean database tables.

But then I came up with the idea to add functionality to the website where users (dealers in this case) can add custom columns to their cars / profiles.

Instead of creating this functionality from scratch, I first wanted to know if there are any plugins that have this functionality already. I found these three:

  1. acts_as_free_form
  2. has-magic-columns
  3. acts_as_customizable

I haven’t decided (yet) which is best.

And if you want to roll your own, here’s a nice article about choosing the best structure for dynamic fields.

I realize that the story above is written in truly horrible English. But I really didn’t have the energy to make something nice of it…

]]>
http://v3.vanutsteen.nl/2008/11/12/ruby-on-rails-custom-fields-on-a-per-user-basis/feed/ 4
Compiling jruby from source in Ubuntu Intrepid Ibex http://v3.vanutsteen.nl/2008/11/05/compiling-jruby-from-source-in-ubuntu-intrepid-ibex/ http://v3.vanutsteen.nl/2008/11/05/compiling-jruby-from-source-in-ubuntu-intrepid-ibex/#comments Wed, 05 Nov 2008 06:34:55 +0000 LeonB http://www.vanutsteen.nl/?p=256
Very easy to do:

sudo aptitude install ant openjdk-6-jdk
cd ~/src
svn co http://svn.codehaus.org/jruby/trunk/jruby/
cd jruby
ant
bin/jruby --version
]]>
http://v3.vanutsteen.nl/2008/11/05/compiling-jruby-from-source-in-ubuntu-intrepid-ibex/feed/ 0
Released github widget http://v3.vanutsteen.nl/2008/10/01/released-github-widget/ http://v3.vanutsteen.nl/2008/10/01/released-github-widget/#comments Wed, 01 Oct 2008 08:32:30 +0000 LeonB http://www.vanutsteen.nl/?p=241 I think you all noticed my fabulous new sidebar widget: My projects :P

It shows all of my github projects. I directly turned it into a plugin for you to enjoy. You can download and read the documentation in the wordpress plugin directory.

]]>
http://v3.vanutsteen.nl/2008/10/01/released-github-widget/feed/ 0
Rails vs. Merb http://v3.vanutsteen.nl/2008/09/24/rails-vs-merb/ http://v3.vanutsteen.nl/2008/09/24/rails-vs-merb/#comments Wed, 24 Sep 2008 21:25:12 +0000 LeonB http://www.vanutsteen.nl/?p=236 This will be a short post: I like merb/datamapper better. It’s cleaner and faster.

But, I have to finish a project this week and merb/datamapper is not just stable yet, has less documentation, less plugins, less helpers and less features.

For example, the “has and belongs to many” association in datamapper isn’t fully implemented (look a the tests). There are some nice backend generators for Rails. And if you have to finish a project in too little time, it’s a quick decision.

I know, I could also make/fix this stuff for merb and datamapper myself and I would love to. But there just isn’t enough time! Aaarghhh…

]]>
http://v3.vanutsteen.nl/2008/09/24/rails-vs-merb/feed/ 0
Deploying, merb, capistrano & passenger http://v3.vanutsteen.nl/2008/09/10/deploying-merb-capistrano-passenger/ http://v3.vanutsteen.nl/2008/09/10/deploying-merb-capistrano-passenger/#comments Wed, 10 Sep 2008 12:38:08 +0000 LeonB http://www.vanutsteen.nl/?p=196 First of all I did a:

capify .

And used this deploy.rb

Then to setup the current, releases, etc. directories:

cap deploy:setup

Then, when I tried to login via ssh with shared key: nothing!
After some searching I found out that capistrano messed up the permissions on the .ssh directory :(

To fix it:

chmod 755 $HOME
chmod 755 $HOME/.ssh
chmod 644 $HOME/.ssh/authorized_keys
]]>
http://v3.vanutsteen.nl/2008/09/10/deploying-merb-capistrano-passenger/feed/ 0
New ticket/issue tracking software http://v3.vanutsteen.nl/2008/07/16/new-ticketissue-tracking-software/ http://v3.vanutsteen.nl/2008/07/16/new-ticketissue-tracking-software/#comments Wed, 16 Jul 2008 21:41:07 +0000 LeonB http://www.vanutsteen.nl/?p=121
I was surfing for some ticketing / project management software and it returned the following result:

Especially Sifter looks really nice! But… it isn’t open source. So too bad. I went with Redmine: open source, ruby on rails and already a nice feature set!

A nice overview of bug/issue tracking systems can be found on wikipedia.

]]>
http://v3.vanutsteen.nl/2008/07/16/new-ticketissue-tracking-software/feed/ 0
Css flash messages http://v3.vanutsteen.nl/2008/07/15/css-flash-messages/ http://v3.vanutsteen.nl/2008/07/15/css-flash-messages/#comments Tue, 15 Jul 2008 20:13:14 +0000 LeonB http://www.vanutsteen.nl/?p=125 I was reading a nice article on Ruby on Rails flesh messages. It linked to an article about styling message boxes with css.

I’m a real sucker for nice message boxes. If you are too: this is a must-read.

]]>
http://v3.vanutsteen.nl/2008/07/15/css-flash-messages/feed/ 0
vpnc with openssl! http://v3.vanutsteen.nl/2008/07/02/vpnc-with-openssl/ http://v3.vanutsteen.nl/2008/07/02/vpnc-with-openssl/#comments Wed, 02 Jul 2008 20:22:20 +0000 LeonB http://www.vanutsteen.nl/?p=96 The default vpnc in Ubuntu comes without openssl support. Bugger… But with these few lines of code this is solved:

sudo apt-get update
sudo apt-get build-dep vpnc
sudo apt-get install libssl-dev
mkdir ~/src/vpnc -p
cd ~/src/vpnc
apt-get source vpnc
cd vpnc-*
dpkg-buildpackage
sudo dpkg -i ../vpnc*.deb

Et voila: vpnc with openssl!

]]>
http://v3.vanutsteen.nl/2008/07/02/vpnc-with-openssl/feed/ 6
Installing ruby 1.8.7 (and guessnet) on Hardy http://v3.vanutsteen.nl/2008/06/29/installing-ruby-187-and-guessnet-on-hardy/ http://v3.vanutsteen.nl/2008/06/29/installing-ruby-187-and-guessnet-on-hardy/#comments Sun, 29 Jun 2008 11:52:04 +0000 LeonB http://www.vanutsteen.nl/?p=111 There were some vulnerabilities in Ruby which are supposedly fixed in ruby 1.8.7. Because of that and because it’s always nice to have the latest, I installed ruby from Ubuntu Intrepid on Hardy Herron.

And while I was doing that I also decided to install guessnet from Intrepid. So I don’t have to compile guessnet anymore.

It involves two steps:

  1. Updating you apt sources
  2. Making sure only ruby and guessnet are going to be installed from the new sources. Not all the packages!

1. Updating your sources

Create /etc/apt/sources.list.d/intrepid.list and copy the following code into it:

deb http://nl.archive.ubuntu.com/ubuntu/ intrepid main restricted multiverse
deb-src http://nl.archive.ubuntu.com/ubuntu/ intrepid main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://nl.archive.ubuntu.com/ubuntu/ intrepid-updates main restricted multiverse
deb-src http://nl.archive.ubuntu.com/ubuntu/ intrepid-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://nl.archive.ubuntu.com/ubuntu/ intrepid universe
deb-src http://nl.archive.ubuntu.com/ubuntu/ intrepid universe
deb http://nl.archive.ubuntu.com/ubuntu/ intrepid-updates universe
deb-src http://nl.archive.ubuntu.com/ubuntu/ intrepid-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://nl.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
# deb-src http://nl.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
deb http://archive.canonical.com/ubuntu intrepid partner
# deb-src http://archive.canonical.com/ubuntu intrepid partner

deb http://security.ubuntu.com/ubuntu intrepid-security main restricted multiverse
deb-src http://security.ubuntu.com/ubuntu intrepid-security main restricted
deb http://security.ubuntu.com/ubuntu intrepid-security universe
deb-src http://security.ubuntu.com/ubuntu intrepid-security universe

2. Apt preferences

If /etc/apt/preferences does not exist, touch it!

Then copy this code into it:

Package: *
Pin: release v=8.10
Pin-Priority: -1
Package: ruby
Pin: release v=8.10
Pin-Priority: 500

Package: ruby1.8
Pin: release v=8.10
Pin-Priority: 500

Package: libruby
Pin: release v=8.10
Pin-Priority: 500

Package: libruby1.8
Pin: release v=8.10
Pin-Priority: 500

Package: rdoc
Pin: release v=8.10
Pin-Priority: 500

Package: rdoc1.8
Pin: release v=8.10
Pin-Priority: 500

Package: ri
Pin: release v=8.10
Pin-Priority: 500

Package: ri1.8
Pin: release v=8.10
Pin-Priority: 500

Package: irb
Pin: release v=8.10
Pin-Priority: 500

Package: irb1.8
Pin: release v=8.10
Pin-Priority: 500

Package: libopenssl-ruby
Pin: release v=8.10
Pin-Priority: 500

Package: libreadline-ruby
Pin: release v=8.10
Pin-Priority: 500

Package: libreadline-ruby1.8
Pin: release v=8.10
Pin-Priority: 500

Package: ruby-dev
Pin: release v=8.10
Pin-Priority: 500

Package: ruby1.8-dev
Pin: release v=8.10
Pin-Priority: 500
Package: guessnet
Pin: release v=8.10
Pin-Priority: 501

That’s all! “Aptitude update” & “aptitude install ruby guessnet” and you are good to go.

I tried using the “Package” keyword with wildcards, but that’s a no-go :(

]]>
http://v3.vanutsteen.nl/2008/06/29/installing-ruby-187-and-guessnet-on-hardy/feed/ 16