Ruby out of the Rails - Nitro and Og

The Ruby language, started to grow inside the enterprises and to be “the topic” in many blogs after the Rails framework showed up, but Rails is not the only option for developing web applications with Ruby, there are other frameworks, and one of “the others” is called “Nitro Framework“, thsi one has almost the same age as Rails but it has a lot less documentation and AFAIK a lot less users too.

This post is about my first 30 minutes with Nitro.

One of the better things about rails, and one of the things that you can not do with Nitro is just to change a class while the server is running, and see the change after a refresh in the browser window, but I’ll talk about these problems later …

The Nitro framework, goes through a path different from Rails, while Rails tell you where to put your models, where to put your controllers, where to put your views, …

What I think is a great feature, since when you start working in a new project you already know where every thing is, Nitro let you put your stuff just where you want it to be.

What is a nice feature too, but if I want to put things where I want them to be, I’ll use Java as I’m doing for the last 5 years :D

Nitro is almost a two framework in one, with Nitro you can develop MVC style applications like Rails, but you can write page oriented applications like in PHP or ASP too, and the best thing is that you can mix the two styles too, of course it will increase the complexity of your application, but it can make it a lot easier to work too, you can write what you need using the easier way to accomplish that task.
To start playing with Nitro just run the following commands:

  • gem install -y nitro (this one will install Nitro and all its dependencies)
  • gen app rocketpower (now let’s create a Nitro application called “rocketpower”m I know they tell you in the home page that it is not rocket science but the name is fun :D)
  • cd rocketpower
  • ruby run.rb (I needed to edit the file for it to work, just open it in any editor and add “require ‘rubygems’” in the second line)
  • point your browser to http://locahost:9000

Every thing ready, you are running your first Nitro application!

Until now, I think that nitro is more complicated than Rails, probably the lack of documentation contributed a lot to this, the terrible examples have their share in this responsibility too, but Nitro has some cool things too.

If you want to create a page based application, you just need to create some “.xhtml” files and place your Ruby code between <?r and ?>, or if you just want to display some string, do it just like in any Ruby String, placing your code between #{ … }.

Since nitro does not have a fixed directory structure, you need to “require” some of your Ruby files from inside the “run.rb” code, I think that this is the cause of the lack of automatic reloading of your code.

Nitro uses Og for persistence, and Og does not need your persistent objects to extend any class, it will persist any object that uses any of it’s “property definition helpers”, itlooks for an automatic created method called “serializable_attributes”, I think it is more the “ruby way”, since it uses “Duck Typing” instead of hierarchy.

Nitro does not have any thing like “migrations”, at least I did not find it yet, and I really like Rails Migrations.

I found the source code for Nitro and Og easier to read and understand than the Rails code, but the code for the Rails applications is a lot cleaner and easier to read.

One thing that I found cool about nitro is that they use the explicit parameters for almost all methods, when rails use hashes for almost every thing, both approaches have advantages …

The example I wanted to write for this post will be published another time, because I need to study a little more about Nitro and Og to develop any thing that I’m not ashamed of publishing.

They do not follow a standard directory structure even in the sample applications, in some of them the code is in the source directory, in others it is in the app directory, the only standard is that the public things (style sheets, images, …) are in a directory called public.

For now, they (Nitro and Og) looks like they need more work, they stopped in time for a while, and the development restarted now with the “Rails Boom“.

Nitro has some cool things, but at least for now, I’ll use Rails for my projects (at least the ones that aren’t in Java) :D

Portuguese version Here.

If you enjoyed this post, make sure you subscribe to my RSS feed!

Looking for that new app for your Symbian phone? try looking at Symbian-Review.com

There is a new kid on the block :D
This new site is all about reviews and software tips for your Symbian smart phone.
Take a look at http://www.symbian-review.com/
Probably you will find what you need …

If you enjoyed this post, make sure you subscribe to my RSS feed!

Use your S60/Symbian phone to solve your memory problems

I just found this great piece of software called TotalRecall ™, that records all calls in or out from my N80.
Ok, and why this title for this post?
Well, because I always forget the name of the attendant I was talking when I call any 0800*** number …
I forget the time of the meeting I have just scheduled by phone.

and things like that.
So this software is really helping me out.
(OK, I think that this capability should be built-in the phone, I do not know who was the “great” engineer that created a phone sound recorder that cannot record a phone call, does it sound as stupid for you as it sounds to me?)

A little review of the software …
Features

  • Record in AMR format
  • Unlimited recording length
  • Record to the internal memory or external memory card
  • No Beep While Recording
  • Intuitively named clips

  • What could be better?
    I have only two suggestions for them (in priority order):

    1. enable the recording in MP3 instead of AMR
    2. put the date and time of the call in the name of the sound file, besides the contact name.

    The second thing I liked most was the price, it is just U$10 (at the time I’m writing this post).
    So, take a look at their online store

    If you enjoyed this post, make sure you subscribe to my RSS feed!

    Open Source to the Bones!!

    No, I do not have one of these, and unfortunately I do not have money to change my N80 for any thing else for now (do not miss understand me, I like a lot my N80) …

    But think about it, wouldn’t it be great to have an OpenMoko :D?
    The cell phone is spectacular!
    take a look at the hardware specifications …

    • 120.7 x 62 x 18.5 (mm)
    • 2.8″ VGA (480×640) TFT Screen
    • Samsung s3c2410 SoC
    • Global Locate AGPS chip
    • Ti GPRS (2.5G not EDGE)
    • Unpowered USB 1.1
    • Touchscreen
    • micro-sd slot
    • 2.5mm audio jack
    • 2 buttons
    • 1200 mAh battery (charged over USB)
    • 128 MB SDRAM
    • 64 MB NAND Flash
    • Bluetooth 2.0

    Besides even the hardware is “open”, you can go to the site, get all the specifications and build your own if you want :D

    I think this one, makes the iPhone, the last “big hipe”, looks like obsolete :D

    I hope that it comes to brazil next year (here we have a delay problem with almost all the new stuff :( ).
    They have plans to make this toy available world wide before the end of this year, but for now, if you want to develop software for one of this, you can buy one, just checkout their website.

    They just published a press release, take a look at it and tell me what do you think about this new toy :D

    If you enjoyed this post, make sure you subscribe to my RSS feed!

    Windows Live Messenger for S60v3

    I just found in the Darla Mack weblog a very good Windows Live Messenger Client for my N80,
    it has almost the same “Look And Feel” that the desktop client has.
    take a look at this screenshots …

    It does not have many customization options, nor it has all the features of AgileMessenger, but it is free, works very well and looks great :D

    I do not know who is the original developer, but thanks for them, for the great app.
    PS.: thanks to Darla too for hosting the app.

    If you enjoyed this post, make sure you subscribe to my RSS feed!

    YAPAIP (Yet Another Post About iPhone)

    Ok, I know that every one else has already wrote a post about the new buzz Apple iPhone.
    yes, we have to tell Apple iPhone because there is already other iPhone around there …
    but the purpose of this post is to talk about what I think about it, even if I have never touched it before …
    I just loved the design of that thing, but I can not like very much a smart phone with a closed platform, and Steve Jobs told that just Apple would be able to create new apps for it.
    But if I forget this little thing, the iPhone seems to be a great toy, with a very low battery time :D

    unfortunately I do not think it will be in Brazilian’s market untill 2009 :(

    If you enjoyed this post, make sure you subscribe to my RSS feed!

    N80 One Week Review

    N80 in the box
    this is the N80 just after I open the box. As you can see, yo get a hand full of accessories with your new N80:

    • a stereo ear phone with a microphone, you can use it to listen to your local FM radio stations, change the volume and radio station, listen to your MP3, and start/stop/answer phone calls using the voice commands interface
    • one adapter that enables you to use your preferred standard stereo ear phone
    • one charger
    • one charger adapter, that enables you to use the older Nokia chargers
    • one USB data cable, to sync, transfer data and music, … with your computer
    • one CD with the Nokia PC Synch and Nokia LifeBlog
    • one MiniSD card of 512MB

    My first impression was that the phone is, let`s say, “sexy”, but just a little too big.
    but After I turned it on I just had good surprises …

    What I liked about the phone (in no particular order):

    • Big screen with a good resolution
    • 2 cameras, the main with 3MP, and the second VGA
    • The Wi-Fi connection was perfect and very easy with my access point at home
    • the ear phones are very good
    • the voice recognition for the contacts is perfect, and recognizes the names you write for the contact, there is no need to record a “name” for each contact you want to call using the voice command
    • The built-in PIM is just perfect
    • the Synchronization app (PC Sync) is perfect, and synchronized even the pictures for the contacts with outlook in our desktop.
    • The build-in Web Browser is a lot better than the “Pocket IE” from windows mobile smart phones.
    • The Visual Radio app is just great
    • The Logs app that ships with the phone is almost perfect, it keeps track of all made and received calls, started data connections (packet and wi-fi), all these with start time, duration, and data traffic for the data connections.

    What I did not liked about the phone (in no particular order):

    • The “PopPort” connector does not have a button to release the connected device, and it looks a little too fragile.
    • The Music Manager from PC Sync is a too hard to use if you have lots of MP3 in your computer.
    • It does not comes with any kind of case.
    • The build-in alarm clock only allows one alarm to be configured (yes, I have problems waking up every morning).

    here are two pictures of the phone:

    21122006064 21122006065

    After this first impression, I started to make the phone useful for me, and not just for my operator.

    Connected the data cable to my computer with PC Sync already installed, and tried to Sync the phone with my Outlook to get my contacts and schedule on the phone
    , but the Sync does not started in the first try, I had to figure out that I need to go to the phone, set a user and password in the Sync configuration and set the same one in the PC, after the first 5 minutes of rage I liked this feature :D

    After that it was time to test the camera, and the time was perfect, party at night :D
    A few pictures later, the main camera on the phone is great, the only problem is that the “led flash” is not as good as the ones from the Sony cameras, but for daylight pictures it works well. Night pictures get a little dark.

    time to go online, configured my access point at home to allow connections from the N80 MAC, and started surfing, the web browser is just great, the only TIP here is remember to configure your browser to ask what connection to use, otherwise your operator may have already configured it to use always its data connection.

    Other TIP for your online experience is looking at Shozu , that I talked about in the last post.

    Other thing you should care about is the battery life time, is you use your phone just to make phone calls it will last for about a week, but I think no one that spends money with a Series 60 phone will use it just for making phone calls.
    if you use a lot the Wi-Fi connection, your battery will last for about 4 or 5 hours.
    if you love some music, and use the N80 as a MP3 player (I use it a lot), your battery will last for about 1 and a half day, but it is just if you turn on the Music Player at 8h and turn it off at 20h as I do.
    if you use the Radio application, your battery will last for about 4 days.
    access to the memory card consumes a lot of battery, but much less than the blue-tooth or the Wi-Fi connections.

    There is a built-in app called Director that allows you to create videos from pictures in your phone or card memory, the videos are really great, you should take a look at them.

    After you have it all working, one tip is to get an account at Mobical , you can sync your calendar, contacts and notes with their server using SyncML and have all your data online when you need it. Mobical will send all the configuration to your phone using SMS and you will not need to do any think manually.

    and the last thing is the built-in e-mail client, that is integrated into the SMS client, and the MMS client …
    All this integration is good, because you can receive an e-mail and send it as MMS, or receive a SMS message and forward it to your friend e-mail address, but it is a little bit confusing too, and the e-mail server configuration is a little hard to find, but once you find it, it is just perfect.

    After that, if you receive an e-mail with a word or excel attachment, you can read it with the Quick office application suite, directly in your phone.

    Talking about the Quick Office, I could not open any of the PowerPoint presentations I testes with it, but all the Word and excel docs worked perfectly.

    I`m with this N80 for about a week now, and these are my first impressions, I still have some questions, and if you know the answers I`ll thank you a lot!

    Is there any financial application for Symbian? I want to be able to enter in it all the data when I`m away from home, and the principal thing, is that I want to be able to import this data into a desktop application when I`m home.
    Is there any Skype client for the N80?
    Is there a place to buy a case for my phone?

    Thanks for any comments …

    If you enjoyed this post, make sure you subscribe to my RSS feed!

    Shozu rocks


    Shozu rocks
    Originally uploaded by urubatan.

    Shozu is a great combination of Software and Online-Service that enhances a lot the online experience of any smart phone …
    They have support for many SP models and the N80 is one of them (OK, all Symbian and S60 are supported too).

    The main idea behind this software is that it makes really transparent the upload of your pictures, videos and music to many of the respectives online services …
    and the greatest feature is that is lets you configure what connections it can use to upload your content to the internet.
    in my case I have set it up to use only my home and work Wi-Fi connections, that way I`ll not have to pay the over rated data plan from my operator to upload this content …

    one simple use of it:
    I take a picture (like the one shown here) from my phone`s camera, and it ask`s me if I want to upload it to Flickr, I say yes and start looking for the next picture to take …
    in the background Shozu tests if any of the connections is available and if it is, it connects and upload the picture, if it is not, it will wait until one of the configured connections is available to upload it (when I get home for example).

    ShoZu has support for Flickr, Youtube, Blogger, E-mail, FTP, Easy Share, and much more …

    Besides that, it has also support to save your contacts online, but this feature I do not use, because I already use the Mobical service for that (other time I`ll write about it).

    If you want to be really online, take a try with it, but I think it will be a lot better if your Smart Phone has a Wi-Fi connection, or if you have a good data plan within your operator …

    Do you know any other online service/software combination that is worth to know?
    Which online services do you use with your Symbian phone?

    If you enjoyed this post, make sure you subscribe to my RSS feed!

    Some links to other Symbian sites

    While I have not finished my review of the N80, I`ll start posting here just some links to other Symbian sites, I hope they an be usefull for others that are starting in this smartphone world too …

    Sites about the Symbian OS or Series 60 specific.
    All About Symbian Series 60 section
    Symbian OS
    Series 60
    My-Symbian
    Symbian One
    S60 tips
    Symbian Freak
    N80 Geek

    Themes or Application Downloads
    Mobile Themes
    Mobile9
    Series60v3.com
    Symbian OS 9.1 Applications

    Whell, this is the initial list of links, I hope they help some one …

    If you enjoyed this post, make sure you subscribe to my RSS feed!