Ivan Porto Carrero

IO(thoughts) flatMap (_.propagandize)

03

Apr
2007

Preview Handler Pack Updated

I’m happy to let you know that Tatham Oddie and I have updated the preview handler pack he wrote a while ago. This pack now supports ruby, erb and rjs.

Tatham added javascript support to the pack. And I took care of the ruby side.

Thanks again to Tatham for creating the extension.

Support for ruby :

Support for javascript:

You can read all about it here :

First release of the handler pack:

http://blog.tatham.oddie.com.au/2006/12/20/vista-and-office-2007-preview-handler-pack-released/

 

Update

http://blog.tatham.oddie.com.au/2007/04/04/ruby-and-jscript-support-added-to-preview-handler-pack/

05

Mar
2007

Quantum Computers Commercially Available

I personally think this is really big.

D-Wave Systems is the world’s first and only source of quantum computing for commercial application. We believe quantum technology in concert with classical, digital processors, can and will represent broad and significant advancements in the application of computer science.

In February 2007, D-Wave unveiled and demonstrated this technology publicly for the first time. The company plans to deliver field-deployable systems in 2008.

http://www.dwavesys.com

04

Mar
2007

Outlook 2007 Apparently Understands Markdown

I was writing an email to a client today explaining them what markdown is and some simple examples. To my surprise outlook understood what I was typing and formatted everything accordingly.

It might be just a subset of markdown, I haven’t investigated it deeply, but cool anyway.

For example a bulleted list is
* item 1
* item 2
* item 3

To put something in bold this will be in bold and this will be italic

22

Feb
2007

Installing Base4 on Windows Vista With UAC Turned On

Windows vista introduces the wonderful concept of User Account Control, which also exists on linux and should make your computer more safe.

Anyway I decided to let the UAC turned on and want to work through the extra clicks etc.

Today I needed Base4 again and when I tried to install the program it would go until it was almost complete and then it would come up with error 2869

the easy way around this was to create a .cmd file in the with the following line : msiexec /i “C:\Users\ivan\Downloads\SourceSetup-2.2.0.91.msi”

and execute that cmd file by right clicking it and chosing run as administrator

17

Feb
2007

Bring on the Quantum Please

I got this link sent to me recently. I’ve recently become interested in quantum physics but haven’t had the time to start digging deeper into the subject, yet. Anyway if you have some time on your hands you can read the article. I found it quite interesting.

Some interesting passages would be :

If the only tool you have is a hammer, you will see every problem as a nail.

According to a recent Scientific American article, “a 40-bit quantum computer could re-create in little more than, say, 100 steps, a quantum system that would take a classical computer, having a trillion bits, years to simulate.”

I can’t wait until these things become a closer reallity :)

16

Feb
2007

Congratulations to Alex
    [Alex James](http://www.base4.net) became a father again. :D  

13

Feb
2007

Intentional Programming

This is a great read. It’s a really long article but i found it really interesting and continued it to the end (which is very very rare in my case)

It’s about Charles Simonyi and what he has been up to in his carreer plus his plans for the future.

Charles Simonyi–Microsoft’s former chief architect, the tutelary genius behind its most famous applications, the inventor of the method of writing code that the company’s programmers have used for 25 years, and now the proponent of an ambitious project to reprogram software

http://www.technologyreview.com/Infotech/18047

07

Jan
2007

Received My New Laptop Today

After a couple of days delay, because the transporter company couldn’t find where i lived, I have received my new Dell M90 laptop.

I’m hoping that one will be faster than the M70 that i have now.

The first thing i notice is that the 17” screen is bigger than the 17” on the old one.

The colors also seem brighter.. White is white as opposed to broken white on my old one.. I can’t tell anything about the speed yet. As I’m currently doing a clean install of windows vista x64 on it.

It’s a 64-bit dual core laptop which didn’t allow me to get bluetooth onboard.

The setup will be :
vista
office 2007
visual studio 2005 SP1
Sql 2005 SP2(CTP)
Ruby in steel
Radrails (for some reason i can’t let go of visual studio but ruby in steel is far from perfect)
Resharper 2005
Testdriven.net
Ghostdoc
Photoshop CS2
Tortoise SVN + Ankh svn + subversion (different environment, each with it’s own requirements.)
Base4
Castle
Windows live writer

Hopefully  now I won’t have to wait so long anymore for actions to complete.

03

Jan
2007

Getting Started With Rails… The Rocky Way

Over the last couple of weeks I’ve been getting into ruby on rails.

I won’t get in to why I’m not using castle instead of rails.  I don’t think there is a big difference between the 2 except that one is done with a static, compiled language and one is done with a dynamic language.

It’s no secret that the syntax of ruby is a lot prettier than the syntax of C# let’s say.

Currently i want to use it to write applications and these applications need to integrate with existing asp.net applications. That made it a pretty interesting journey.

I took the long road of course of first looking if there is something better out there, based on a dynamic language but i couldn’t really find anything. For a while there I thought that pylons would be a valid replacement.  Of course there is django but I really don’t want a heavily glorified CMS but something in rails style.  Something that generates some base things which are pretty boring to write and then let me do the customizing.  That being said it turns out that ruby on rails seems the best option for the moment if you want results quickly. And we all know we want results quickly :)

So the first step in the journey for me was buy the book : Agile development with Rails  after that one I made one more stop at the bookshop and got myself the Ruby cookbook and the Rails cookbook (which still isn’t available according to amazon)

Step number two would be then to actually write some code (some code is the correct term here because I really haven’t written too much code to get something going)

Step number three was then to get it to talk to one of my other applications. And that’s when I got completely lost :) I have this thing about guid primary keys as opposed to ints.  Using guids has a lot of advantages as opposed to using ints. Replication is one of them, the possibilty to do a global lookup (not that I ever did but it’s nice to know that i can :) ), you can impose a kind of inheritance in your database,…   But yes I know they are a bit larger in size, however this doesn’t seem to affect me so much.

Now the philosophy of rails is that you can run your application on any platform with any of the supported database servers. That  implies that there is no support for uniqueidentifier primary key columns in sql server which made me somewhat upset.  Anyway since rails is open source you can teach it what you want by changing the source.  As i’m sure that the database server i’ll use is ms sql server i do want some of those features.  So I went and changed the connection adapter for sql server so it would support most of the sql datatypes and moreover uniqueidentifier columns. 
My solution isn’t as pretty as I would want it to be but the deadline is lurking :) I’ll keep code for a next post.

Ok cool my application is working now on my laptop and on the laptop of the other developer that’s cool let’s show it to the client and stage it somewhere.

Which brings me to step number 4 create a server to run rails on.  Ok what have i got to run websites on … uhm? let’s see ah yes I’ve got a windows 2003 R2 machine with IIS 6 on it.  Well it took me 2 days before i completely abandonned that plan because i can’t get it to work at all. I’m sure other people have succeeded but in my case things really didn’t work out.  Mmmmm, how would i solve this issue ? Aha there is something like linux that will run rails with apache.

I know I can run apache on windows but here we come again to one of my pieves .. http traffic should be served over port 80 not over port 8080, 1024+,… and port 80 is taken by IIS
Cool so i just download ubuntu server and install it and i’ll be on my way or so I thought.
Turns out installing ubuntu is not a point and click experience but it’s a command line type of thing. So now we are 4 days later (i could have done it in 2 but somewhere along the way i changed some security settings without backing up the original files which isn’t a good plan by the way)

Yep ubuntu has got this utility apt-get which will install software for you that’s all fine until you want a working version of ruby ..then that apt-get thing didn’t want to do it.
To run rails, subversion, trac in apache 2.2 you need to download the packages and actually build and install them yourself. which makes all of this a very very lenghty operation and the user experience is less than optimal.  I thought the days of command line things were abandonned somewhere around 1995.

Ok i have apache running let’s get my rails app that talks to sql server using the ADO.rb file onto the linux server and fire it up.  I chose to use mongrel_cluster in combination with apache. Not that I really need it but I figure it’s best to mimic a professional environment than to set up a totally different environment from the optimal one.
Ok so here we go :

rake db:migrate RAILS_ENV=production  

Whoops win32 required errors all over the place. Ah yes I connect over OLEDB which is an ms specific thing and hence not supported on linux. But you can connect over ODBC in linux to the sql server… The even have a page on the rails wiki to get it going.. sadly this page didn’t really do it for me as things still didn’t work. But what did work was this page. I still had some issues but I can’t find the links anymore.

Ok after a lot of tinkering, cursing and an injured pinkyI finally have got my rails app running on linux with my ms sql database.

So now we are about 1 week later and finally everything is running smoothly. If mac os x is built on linux then i don’t really see how they can provide the best user experience. The might have the prettiest interface but installation and management of a windows machine is vastly easier then the experience i got on linux

To top