Blog

Aug
10
by gmosx.myopenid.com in Community, Fri, 10 Aug 2007 09:49:08 GMT

After almost a year in the making we are putting the finishing touches the the new Nitro and Og release, version 0.50.0. This new release embodies a great collection of new features to totally change the way you write Web and/or Database applications in Ruby.

If you would like to try the pre-release code just pull from the official Nitro repository:

$ darcs get --partial http://repo.nitroproject.org

The next step would be to run the example blog application:

$ cd example/blog
$ vi conf/debug # configure as needed
$ nitro

Browse the blog example source code for a first glimpse at the wonderful world of Nitro.


Jun
5
by gmosx.myopenid.com in Announcements, Tue, 05 Jun 2007 20:48:22 GMT

I am pleased to officially announce a new resource for Nitro and Og developers. Nitro Planet (powered by the brand new phidz.com service) aggregates Nitro and Og related content from many sources. As always, I would like to hear your suggestions and/or bug reports.


May
20
by gmosx.myopenid.com in Features, Sun, 20 May 2007 19:00:26 GMT

I have successfully used Nitro for years, yet I am still amazed at the flexibility and (dare I say) pure magic of the system. Consider the brand new compiler filter pipeline (available in the repository version). It allows you to customize the (ahead of time) compilation of your view templates to actual ruby code that will interpolate dynamic data to render the actual HTML files at run time. Using custom filters you can provide a host of special FX, like markup macros, code morphers and so much more.

Some days ago, I read about a new feature of the Rails asset helper. In short it allows you to easily distribute requests for static assets (CSS, javascript, images, etc) across a range of “pseudo” domains as suggested in this great web page performance optimization article. However, to use this Rails version you have to replace the standard tags with asset helper method calls like #image_tag throughout your template files. Not nice…

I decided to re-implement this functionality using a Nitro filter. The result is called the AssetFilter. As it is enabled in the default pipeline for the HTML format the only thing you have to set to make it work is the assets host:

AssetFilter.host = "http://s%d.mysite.com" 

That’s it. If you start your application you will see that all your static image requests in the template files are “distributed” to 4 asset hosts:

s0.mysite.com
s1.mysite.com
s2.mysite.com
s3.mysite.com

for example code like this in your template:

<img src=”/media/logo.png” />

is converted to:

<img src=”http://s0.mysite.com/media/logo.png” />

Of course each asset is always redirected to the same asset domain to support in browser caching. Moreover, everything is pre-compiled so there is no runtime penalty. So, tell me, is this magic or not?


May
14
by gmosx.myopenid.com in Real World, Mon, 14 May 2007 09:46:23 GMT

Dear devs, I would like to present to you a cool, new Nitro-powered site:



Joyerz.com is updated daily with a selection of the best photos uploaded by members of Joy.gr, the most popular Greek social network site. Joyerz is intended for a global audience. So, go on, check this site and come back every day to enjoy new photos of beautiful greek people.

Moreover, sign-in using OpenID to vote for the best photos, add comments and organize your favourites.


Apr
15
by gmosx.myopenid.com in Features, Sun, 15 Apr 2007 22:56:02 GMT

In a previous post I promised to discuss a few of the groundbreaking new features of Nitro. Today, I will talk about automatic REST support in the repository version of Nitro.

The brand new dispatcher intelligently handles RESTful URIs according to the following scheme:

Read more
Apr
11
by gmosx.myopenid.com in Features, Wed, 11 Apr 2007 06:29:08 GMT

The repository version of Nitro contains an overwhelming amount of new, impressive features. Most of these features are the result of completely rewriting substantial portions of the code base and will change the way you write Nitro applications. We will present a lot of these innovative features in this blog. But some times, even small things can bring a smile to your face. As they say, the God is in the details.

Read more
Apr
5
by gmosx.myopenid.com in Community, Thu, 05 Apr 2007 08:06:54 GMT

Arguably, the most serious barrier of entry for new Nitro and Og developers is the lack of documentation and tutorials. We have recognised this shortcoming, and our response is the new NitroProject.org site. However this site is in its very early phase of construction and as such it does not provide everything we have planned, yet.

Read more
Apr
4
by gmosx.myopenid.com in Announcements, Wed, 04 Apr 2007 08:15:50 GMT

Welcome to the new version of the official Nitro/Og blog!

This blog (along with the rest of the site) should be considered and alpha version. The features and the graphics will be updated in the near future but it is released now in the spirit of “release early, release often”.

This blog will be the definitive source of Nitro and Og related announcements from now on. Moreover, you will be able to find (and hopefully enjoy) some nice hands-on articles with tricks and tips on effectively using Nitro and Og. To make this blog a true success I would expect some nice postings from other members of the community. Let’s share our knowledge (and love) on Nitro.

As always, please report any problems and bugs. This blog (and the rest of the site) is not tested on IE. Please use a standards compliant browser.


Subscribe to the blog feed