Daglees

Syndicate content

Development

Rails 3.0: It's ready!

Rails 3.0 is officially out after two years of development.

It's looking awesome, details on what's new are at http://weblog.rubyonrails.org/2010/8/29/rails-3-0-it-s-done

My personal favorite in this release is that it brought true agnosticism for all components of the framework (see http://github.com/rails/jquery-ujs for a good example).

Happy coding!

Drupal-based Cinema Guide!

I've been working on an online Cinema guide that has the Arab world as its primary target audience for the last few weeks. It's basically a Drupal-based multisite (using Domain Access to manage the databases). Going to release a case study on that once the project is done.

So I was reading my feeds this morning as usual and I find this, which lead me to this. This is one of the first sites providing this sort of functionality done on Drupal. And it's Brazilian. :D

Refilmagem is a Drupal-based website with movie showtimes available for several Brazilian towns, designed by Zee (would love to lay my hands on their themes ;))

The website is located at http://refilmagem.com.br (it seems to redirect you to São Paulo if you're outside Brazil).

Good job everyone involved in this.

Mostre um block apenas para usuários do IE 6

O código seguinte é bem simples, vai no corpo da condição (PHP) da visibilidade do bloco. Se o usuário estiver usando IE inferior a versão 7, esse block será visível a ele(a).


The following code displays a block only to users running Internet Explorer versions less than 7. It should go in the Page specific visibility settings for the block.

<?php
    $browser = $_SERVER['HTTP_USER_AGENT'];

    //running internet explorer
    if($msie = strpos($browser, "MSIE"))
    {
        //version number
        $ver = substr($browser, $msie + 5, 3);

Powered by Drupal, an open source content management system