Wednesday, 16 April 2008

Found in System.Uri in the .NET lib

Protected Overridable Sub CheckSecurity()
Member of: System.Uri
Calling this method has no effect.

Wonder how many no-effect-methods is needed to run windows. and if all their CheckSecurity methods have no effect.

Sunday, 6 April 2008

Reading rails 1.2 while learning rails 2.0

Learning rails 2.0 from a book about rails 1.2.6 keeps you awake, cause there are things that does not do exactly what it is described in the book.

depot>rails depot

Generates lots of code. Now to setup the database open the database.yml file in depot\config\ and correct it to match your database:

# SQLite version 3.x
# gem install sqlite3-ruby (not necessary on OS X Leopard)
adapter: mysql
database: depot_development
user: userNam
password: pass
adapter: mysql
database: depot_test
user: userNam
password: pass

adapter: mysql
database: depot_production
user: userNam
password: pass

then make use of the rake tool, to create the databases:

rake db:create:all

then to make the product scaffolding do the following:

depot>ruby script/generate scaffold Product title:string description:text image_url:string

And now its possible to start the server (ruby script/server) and create a product. following this url:


Tuesday, 1 April 2008

Greetings from RubyFools in Copenhagen

The first RubyFools ever is placed at the IT university of Copenhagen. The buildings have just been build, and everything is nice beautiful, straightlined and very grey and Danish.

Dave Thomas gave the introduction keynote, where he talked about why he is a ruby fool. As it is custom, the keynote didn't really introduce anything, but was just a nice relaxed talk about the things that Dave likes about the language.

Listing to the talk, it seems to me ( even if it makes me sound old) like history is repeating it self. Some of the things that Dave points out as the new good things about Ruby is also some of the arguments for leaving C++ and go to Java:

.- multi paradigm language,
-.- OOP, prototype based, almost functional
.- expressiveness
-.- lots of ways to say the samething

After listing these things he went on to say the it was imperfect, and said that was a good things, things "Perfection is the enemy of all creation" (He was very convincing and I agree with him on this point)

Then followed some notes about how much Ruby and the community had grown.

always remember

-- pictures will be added when I can --