Ruby installation version 1.8.7 & 1.9.1 on win32 platforms with rubyinstaller

Posted by superuser Fri, 26 Feb 2010 08:41:00 GMT

Luis Lavena and the rubyinstaller group have made 2 very reliable versions of Ruby programming language for Windows platforms.

Unlike the old ruby installer, the 1.8.7 and 1.9.1 versions have been compiled with the MinGW compiler(v. 3.4.5) toolset. Easy installing for Windows is essential for the future of Ruby in the programming jungle, and RubyInstaller works perfectly good.

This article should be intended as a minimal guide to install both Ruby 1.8.7 and Ruby 1.9.1 on win32 platforms.

  • Uninstall any previous installed Ruby version and remove the relative folders (for ex. C:\Ruby and/or C:\Ruby19 )
  • Install Ruby 1.8.7-p249
    • Accept the license (if you agree, of course)
    • Select the destination path of your installation. (i use the default C:\Ruby). Below, in the same window
    • Check the box Ruby executables to your PATH (IMPORTANT!) and “Associate .rb and .rbw files with this Ruby installation”
  • Finish the installation

Ruby 1.8 is succesfully installed!

Now it’s time to install Ruby 1.9 .

  • Install Ruby 1.9.1-p378
    • Accept the license
    • Select the destination path of your installation. (i use the default C:\Ruby19). Below, in the same window
    • DO NOT select anything . Leave both check boxs unchecked.
  • Finish the installation

Ruby 1.9 is succesfully installed!

To run Ruby 1.9 binaries you have to use absolute paths. C:\Ruby19\bin\whatever. That’s not so pretty!
To resolve this, i use an easy and smart method found on some discussions at the rubyinstaller google group.

The idea is to put some .bat (windows) scripts in the bin directory of the Ruby 1.8 installation to call internally the Ruby 1.9 binaries. In this way you do not have to add the Ruby 1.9 directory in your PATH env. variable. For my needs this work perfectly good.

In detail:

  • Download Ruby-Bat.rar . Unrar it. Move the five included .bat files (gem19.bat, irb19.bat, rake19.bat, ri19.bat, ruby19.bat) in your ruby-1.8 (not 1.9) installation directory (in my case this is C:\Ruby\bin).
    That’s all.

Open your command prompt and execute :

C:>irb19 
C:>gem19 install rack
C:>ri19 array
C:>rake19 -h

It works!

If you want to know more, open with your favorite editor for example rake19.bat to see what’s inside:

@echo off 
setlocal 
set PATH=C:\Ruby19\bin;%WINDIR%\system32;%WINDIR% 
ruby.exe -S rake %* 
endlocal 

If you need to make a custom ruby(v-1.9) binary just change the filename, substitute `rake` and save it in your ruby-1.8 (not 1.9) installation directory ( C:\Ruby\bin ). Not a perfect solution, but it just works as it should.

Posted in ,  | Tags , , ,  | no comments

my working environment preferences

Posted by superuser Thu, 31 Dec 2009 12:25:00 GMT

This is a collection of my working environment preferences including nearly everything: OS, Window Manager, Software, Editors, Mailserver, …

The idea for the creation of this list has been adopted from a Pistos’ gist

Environment

Software, Desktop

Software, Server

Programming

Posted in , ,  | Tags  | no comments

Πριν το 2009 η έκδοση του Firefox για κινητές συσκευές [ FENNEC ]

Posted by superuser Wed, 23 Dec 2009 07:35:00 GMT

Λίγο πριν το τέλος του έτους 2009 και δια στόματος του Jay Sullivan της οικογένειας Mozilla ανακοινώθηκε
πως σε λίγες ημέρες θα κυκλοφορήσει η έκδοση του δημοφιλέστερου παγκοσμίως φυλλομετρητή Firefox για κινητές συσκευές. Το όνομα αυτού θα είναι FENNEC και όπως αναφέρεται έχει ήδη δοκιμαστεί επιτυχώς στο Nokia N900 και σε άλλα “έξυπνα” κινητά. Αρχικά ο Fennec θα παίξει σε κινητές συσκευές με λειτουργικό Windows Mobile ή Android, και φυσικά όχι σε iPhone διότι η Apple επιτρέπει τη χρήση browser που βασίζονται μόνο στο Webkit, όπως ο Safari. Επομένως ο Safari δεν απειλείται, αντίθετα με τον Opera mini που θα πρέπει να αντιμετωπίσει το νεόφερτο Fennec (Firefox).
Η καινοτομία που συνοδεύει την έκδοση του Fennec είναι η δυνατότητα συγχρονισμού μεταξύ desktop και κινητής συσκευής. Δηλαδή θα επιτρέπει στον χρήστη να έχει στην κινητή συσκευή του, τα ίδια δεδομένα / σελίδες που χρησιμοποιούσε στο desktop ή το φορητό του. Πέρα απ’αυτό ο Fennec θα είναι ο πρώτος browser κινητής συσκευής που θα φέρει ενσωματωμένες μικρές εφαρμογές, δηλαδή extensions . Περισσότερες πληροφορίες για τα extensions του Fennec δείτε εδώ και επισκεφτείτε αυτή τη συλλογή.

Posted in  | Tags , , ,  | no comments

3rd Ruby MeetUp in Athens

Posted by superuser Sat, 05 Dec 2009 17:12:00 GMT

Η ομάδα Rubyst.es με χαρά ανακοινώνει την τρίτη συνάντηση των φίλων της Ruby την Πέμπτη 10 Δεκεμβρίου στις 6 το απόγευμα. Αυτή τη φορά έχουμε την τιμή να φιλοξενούμαστε στο Microsoft Innovation Center σε ένα εξαιρετικό χώρο με πολλή άνετη πρόσβαση για όλους. Θα προσπαθήσουμε να καλύψουμε θέματα για προχωρημένους και αρχάριους ενώ σε αυτή τη συνάντηση θα έχουμε μια ξεχωριστή σύνθεση ομιλητών από βετεράνους της Ruby και του Rails. Αναλυτικά:

Πέρα από τις κυρίως ομιλίες μας θα υπάρχει και μια σειρά μικρών, ολιγόλεπτων παρουσιάσεων και σας προσκαλούμε να παρουσιάσετε και εσείς αν το επιθυμείτε. Η λίστα ως προς το παρόν έχει ως εξής:

Σας περιμένουμε όλους την Πέμπτη 10/12 στις 6 το απόγευμα στο Microsoft Innovation Center (Βασ.Σοφίας 103, στάση Μετρό Μέγαρο Μουσικής)

Περισσότερα Rubyst.es , στην αντίστοιχη mailing list και στο Facebook group

Posted in ,  | Tags , , ,  | no comments

Το τέλος του mininova

Posted by superuser Mon, 30 Nov 2009 05:30:00 GMT

Το mininova δημιουργήθηκε το 2005 από ένα Ολλανδό φοιτητή, και έκτοτε θεωρείται ένας από τους διασημότερους διανομείς αρχείων torrent. Πριν λίγες ημέρες, την 26/11/2009, οι διαχειριστές του mininova προέβησαν σε διαγραφή από τους διακομιστές, όλων των αρχείων torrent που προστατεύονται από πνευματικά δικαιώματα – δλδ copyright. Η απόφαση αυτή, εξηγείται αναλυτικά στην επίσημη ανακοίνωση , είναι επακόλουθο μιας δικαστικής απόφασης δικαστηρίου της Ολλανδίας, η οποία εκτός της απόφασης διαγραφής των φιλοξενούμενων torrent είχε και την επιβολή προστίμου 5.000.000 Ευρώ.

Posted in  | Tags ,  | no comments

Η HP αγοράζει την 3COM

Posted by superuser Sat, 14 Nov 2009 11:53:00 GMT

Η HP θέλει να επιστρέψει δυναμικά στην αγορά των υπηρεσιών IT και των datacenter, και ξεκινάει με την εξαγορά της 3COM, μία από τις μεγαλύτερες εταιρείες στο χώρο των δικτυακών υπηρεσιών. Η εξαγορά έκλεισε στα 2,7 δις δολλάρια. Με αυτόν τον τρόπο η HP θέλει να διευρύνει (βλέπε ProCurve) τη γκάμα των προϊόντων της, και να προσπαθήσει να ανταγωνιστεί τη Cisco που πρόσφατα ξεκίνησε να παρέχει σέρβερ με σκοπό να μειώσει τη φέτα της αγοράς από την HP. Προφανώς η στρατηγική είναι αυτή της παροχής ολοκληρωμένων λύσεων εξοπλισμού για datacenters. Η συμφωνία εξακριβώθηκε κι από τις δύο πλευρές, και αναμένεται να ολοκληρωθεί μέχρι τα μέσα του 2010.

Posted in  | Tags , , ,  | no comments

installing 3.9b1 wmii window manager on FreeBSD

Posted by superuser Fri, 06 Nov 2009 04:37:00 GMT

Yesterday i spent a lot of hours to experiment with wmii window manager in FreeBSD. wmii is a small, dynamic window manager for X11. Offers tiling and classic modes to manage X11 windows, is higlhy scriptable and very well documented.

In FreeBSD ports collection, at the time of this writing, there are available two ports for wmii, the x11-wm/wmii and the newer x11-wm/wmii-devel. x11-wm/wmii port points to the latest stable version of 3..6, but it's reported as deprecated in the official website . On the other side x11-wm/wmii-devel targets to the s20090703 snapshot. In my case i wanted to install the latest recommended (beta) wmii 3.9b1. I have to say that FreeBSD port collection is one of the best packaging system and is updating in a fast and secure way by the ports engineers, but wmii is not the top famous window manager, so it's perfectly normal to not see a beta release here.

I'm not an expert FreeBSD porter but i made small changes on the Makefile of x11-wm/wmii-devel port to update at the latested 3.9b1 and it seems to work fine. You can download here my patch.

Take note that i considered the guidelines from this post, so i removed the dmenu and 9base dependencies of v.3.6 from the Makefile.

Tip for newbies: After applying the changes on wmii-devel's Makefile, do the following

# cd /usr/ports/x11-wm/wmii-devel 
# make makesum

to automatically generate the updated distinfo file of the port, and make install clean as usually

Posted in  | Tags , ,  | no comments