L-EXP

Most viewed Feeds


      view feed content What's New in Edge Rails: Dynamic Scope Methods (Best Ruby on Rails Blogs )   [35 views, last view 4 d and 9 h ago]
This feature is scheduled for: Rails v2.3/3.0

For quite some time now you??ve been able to perform simple queries using dynamic find_all_by_xx_and_yy methods:

1 2 Article.find_by_published_and_user_id(true, 1) #=> "SELECT * FROM articles WHERE published = 1 AND user_id = 1"

These dynamic finders provide an easy way to quickly encapsulate non-reused query conditions (for commonly used query logic you should consider using named scopes). The downside, however, is that you can??t chain query conditions when using these dynamic finders.

With the recent addition of dynamic scopes, however, you now have a way to both quickly specify query logic and chain further conditions. The naming works in the same manner as dynamic finders and the chaining works in the same fashion as conventional named scopes:

1 2 Article.scoped_by_published_and_user_id(true, 1).find(:all, :limit => 5) #=> "SELECT * FROM articles WHERE published = 1 AND user_id = 1 LIMIT 5"

Note how you can hang further chainable query methods off the dynamic scope here? You could also have preceded the dynamic scope with another scope, or even another dynamic scope:

1 2 Article.scoped_by_published(true).scoped_by_user_id(1) #=> "SELECT * FROM articles WHERE published = 1 AND user_id = 1"

This is really just another tool to put in your toolbox based on the powerful named_scope functionality of ActiveRecord.

tags: ruby, rubyonrails



Ryan's Scraps Blog - Best Ruby on Rails Blogs
View original post|Add to del.icio.us|more than one year ago | Share

      view feed content New MindMapper Professional USB Edition lets you take your maps everywhere (Mind-mapping software)   [6 views, last view 4 d and 9 h ago]

SimTech, the developers of MindMapper, will release a new USB Edition of their flagship mind mapping program later this week. I've had a chance to play around with it for the last month, and I'm mighty impressed with how well it works.

The entire MindMapper 2008 Professional program - not a stripped down version - comes on a 2 GB USB key, which is partitioned to allow you to store your mind maps and other key files on it. When you plug it into a Windows PC, MindMapper starts up automatically, and displays a dialog box with the following choices:

  • Start MindMapper
  • Open USB folder
  • Browse tips (opens a web page on the USB key, with tutorials for the program's many features)
  • Minimize (to Windows' system tray)

Patrick Koh from SimTech says the USB Edition contains a few extra capabilities that enable it to work better from the USB key, such as being able recover from accidental formatting or file deletion from the USB drive. Also, the first time you insert the storage device into your computer, you can select from localized versions of MindMapper in English, German and Dutch. The USB version of MindMapper is protected; it cannot copied or loaded onto your computer. It must always be launched via the USB key. When you unplug it, MindMapper exits automatically after saving your data.

I asked him what motivated his team to develop this version of MindMapper?

"The idea came from many sources. Road warriors wanting to use MindMapper when they were away from their laptops. Corporate employees who wanted to use MindMapper in a conference room. Also from people who didn??t like the process of registration and activating the software. Then we noticed some security companies were using USB keys to launch their software to repair infected PCs. So we took this idea and found a way to launch MindMapper when you just plugged in the USB key."

Who is the USB Edition designed for?

"Our initial target segment were the road warriors. But we think it will also appeal to many people in the corporate environment. Even regular workers can copy their work on the USB, take it home, and work on MindMapper at home and have all their data accessible in the USB drive. This concept of portable software and install-free, instant-on software will be attractive to many people."

I used the program on both my work and home PCs, and it ran without incident. My work laptop is packed with mind mapping software, because I evaluate so much of it for this blog. But my home PC, which is quite old and has limited memory and hard drive space left, doesn't have any mind mapping software installed. So it was quite nice to be able to start a map at work, then take it home, plug in the USB key and continue working.

Kudos to SimTech for exploring this idea and developing this program. It's definitely one of those "why didn't anyone think of this before now?" kind of products!

SimTech says the list price of MindMapper 2008 USB Edition will be US$179.95, but they plan to run a promotion when the program launches at only US$149.95. As soon as SimTech launches their USB Edition web page, I will post the link here. But in the meantime, you heard it here first, folks!


[Software ]
The Mind Mapping Weblog - Mind-mapping software
View original post|Add to del.icio.us|more than one year ago | Share

      view feed content BiteSMS 3.1 Crackeado / Full / Gratis (Blogs sobre el iPhone)   [51 views, last view 4 d and 9 h ago]

Seguramente la mayoría de vosotros ya conoceis esta magnifica aplicación, con multitud de opciones y mejoras considerables a la aplicación de sms por defecto del iPhone

1.- Instala la aplicación desde Cydia.

2.- Descarga el crack y ponlo en los siguientes sitios del iPhone via SSH

biteSMS -> /Applications/biteSMS.app/
biteSMSsb.dylib -> /Library/MobileSubstrate/DynamicLibraries/

Para conseguir la licencia Full teneis que:

1.- Abrir el terminal y escribir:

su root

Os perdirá el password que es:

alpine

Luego escribir:

apt-get install sqlite3

sqlite3 /private/var/mobile/Library/biteSMS/biteSMS.db

update licence set activation_token="1111", licence=NULL, licence_type="full";

.exit

Cerrar el terminal y si os dice que vuestra licencia es invalidad ir a
/private/var/mobile/Library/biteSMS/biteSMS.db y borrar el archivo biteSMS.db

Tags: bitesms, crackeado, sms
Articulos Relacionados


[Aplicaciones bitesms crackeado sms ]
EstudioiPhone - Blogs sobre el iPhone
View original post|Add to del.icio.us|11 months ago | Share

      view feed content UltraVNC 1.0.8.2 (Essential software to install on a new Windows PC)   [4 views, last view 4 d and 9 h ago]
languagevalueUltraVNC is a powerful, easy to use and free software that can display the screen of another computer (via internet or network) on your own screen. The program allows you to use your mouse and keyboard to control the other PC remotely. It means that you can work on a remote computer, as if you were sitting in front of it, right from your current lo... typetext/htmlbasehttp://feeds.feedburner.com/filehippo

File Hippo RSS feeds and Update Checker - Essential software to install on a new Windows PC
View original post|Add to del.icio.us|more than one year ago | Share

      view feed content UltraVNC 1.0.8.2 (Tools to keep your windows PC Software Updated)   [4 views, last view 4 d and 9 h ago]
languagevalueUltraVNC is a powerful, easy to use and free software that can display the screen of another computer (via internet or network) on your own screen. The program allows you to use your mouse and keyboard to control the other PC remotely. It means that you can work on a remote computer, as if you were sitting in front of it, right from your current lo... typetext/htmlbasehttp://feeds.feedburner.com/filehippo

File Hippo RSS feeds and Update Checker - Tools to keep your windows PC Software Updated
View original post|Add to del.icio.us|more than one year ago | Share

      view feed content Episode 128: Starling and Workling (Ruby on Rails screencasts and videos)   [2 views, last view 4 d and 9 h ago]
Need to run a task frequently in the background? Starling and Workling is a killer combination for doing just that. See how in this episode.

Railscasts - Free Ruby on Rails Screencasts - Ruby on Rails screencasts and videos
View original post|Add to del.icio.us|more than one year ago | Share

      view feed content Páginas de organismos públicos, hackeadas y enlazando a páginas eróticas (40 blogs a seguir en 2008)   [14 views, last view 4 d and 9 h ago]
languagetypetext/htmlvalue

La página del Consello da Cultura Galega, con Page Rank 7, utiliza estrategias SEO poco recomendables. En el footer de la página tiene numerosos enlaces salientes a páginas de contenido erótico o de contenido poco recomendable.

El site, realizado con Wordpress, posiblemente ha sido hackeado. Y un PR 7 es demasiado atractivo para un Black Hat Seo.

Aquí el detalle de la captura, con los links ocultos:


basehttp://desdemiblog.com/feed
[Estrategias de producto Black Hat Seo Page Rank seo ]
Desde mi blog - Sergio Pérez Conde - 40 blogs a seguir en 2008
View original post|Add to del.icio.us|9 months ago | Share

      view feed content Update: New version for Reach-a-mail & Reach-a-mail Pro for U3 (Portable applications)   [3 views, last view 4 d and 9 h ago]

Reach-a-Mail is a USB based portable email client. From now on, your e-mail will always be with you no matter where you are. All you need is a USB drive to receive and send e-mail from any computer without the need to install any software. You save a lot of time thanks to Reach-a-Mail, as well as keep your e-mail correspondence private leaving nothing in a computer. You will be impressed by the easiness and simplicity of user's interface.

 

You can also try the Reach-a-Mail professional for trial.

 

What??s new?

<!----><o:p> </o:p>

  • CSV import
  • CSV export
  • Plain text mode
  • Printing messages
  • New mail storage
  • Encrypting messages
  • Security improved
  • Interface improved
  • Functionality improved<o:p> </o:p>

System Requirements
- U3 smart drive
- Microsoft Windows 2000 / Windows XP / Windows Vista


[Main Page E-mail Internet ]
U3 brings the power of portable software to your USB flash drive - make it a smart drive! - Portable applications
View original post|Add to del.icio.us|more than one year ago | Share

      view feed content Mail for Exchange 2.5 - This One is Big (Developing Symbian S60 applications)   [15 views, last view 4 d and 9 h ago]
There is a new version of Mail for Exchange available - Mail for Exchange 2.5. Mail for Exchange is the name of Nokia's email client built on Microsoft's ActiveSync technonology. Mail for Exchange provides push synchronization of email and other data between Microsoft Exchange and Nokia devices. The new version of Mail for Exchange is not an [...]
[Mail For Exchange ]
Eseries - Developing Symbian S60 applications
View original post|Add to del.icio.us|more than one year ago | Share

      view feed content Mail List Server Status (Free graphics and design software)   [9 views, last view 4 d and 9 h ago]
Just a short note to advise users the Scribus mail list server is down for maintenance and moving to a new location. We hope to see it back soon.

Scribus - Free graphics and design software
View original post|Add to del.icio.us|more than one year ago | Share

      view feed content Ticket #6934 (enhancement closed): [PATCH] belongs_to association supports before_add and after_add callbacks (Follow the development of Ruby on Rails ( Edge Rails))   [15 views, last view 4 d and 10 h ago]
duplicate:

http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/1564-add-support-for-before-and-after-addremove-callbacks-to-belongs_to-associations


[closedticket ]
Rails Trac - Follow the development of Ruby on Rails ( Edge Rails)
View original post|Add to del.icio.us|more than one year ago | Share

      view feed content Adobe AIR is dead… long live Adobe AIR. (Start developing with Adobe AIR ( Apollo))   [6 views, last view 4 d and 10 h ago]
I’ve read a couple of posts today about Adobe AIR suggesting that the honeymoon period for Adobe AIR is over. Sarah Perez Over at ReadWriteWeb asks “Are you over AIR Applications?” citing AIR apps like TweetDeck, Seesmic and DeskTube as apps that have no good reason to be desktop apps saying “there’s no reason why [...]
[Flash,Flex,Adobe AIR ]
Adobe Air technology - Start developing with Adobe AIR ( Apollo)
View original post|Add to del.icio.us|6 months ago | Share

      view feed content Air 2.0 beta NativeProcess.isSupported gotcha (Start developing with Adobe AIR ( Apollo))   [14 views, last view 4 d and 10 h ago]
If you wanna start playing with new AIR 2.0 there are a couple things you need: 1. Runtime 2. Air 2.0 beta SDK (installed on top of Flex SDK) 3. New app.xml descriptor namespace which is xmlns="http://ns.adobe.com/air/application/2.0beta" But if you want to launch a native app from air, they forgot to mention in the documentation that you need to add [...]
[Flash ]
Adobe Air technology - Start developing with Adobe AIR ( Apollo)
View original post|Add to del.icio.us|82 d ago | Share

      view feed content VMimages not showing up when mounting ISO to CD/DVD in VC 2.5 (1003559) (Virtualization Blogs, resources and news)   [18 views, last view 4 d and 10 h ago]

[Technical Information ]
VMware - The Executive Blog - Virtualization Blogs, resources and news
View original post|Add to del.icio.us|more than one year ago | Share

      view feed content Grails i18n templates plugin 1.0.3 released (Choose a Web developing framework)   [4 views, last view 4 d and 10 h ago]
This simple plugin provides i18n aware scaffolding templates to generate fully internationalizable applications. See http://grails.codehaus.org/I18n+Templates+Plugin for more information.

Grails - Choose a Web developing framework
View original post|Add to del.icio.us|more than one year ago | Share

      view feed content Comment Blocks That Are Easy to Toggle On/Off (Flash, Flex and Air related Blogs)   [2 views, last view 4 d and 11 h ago]
Sometimes when you're coding, you find yourself toggling a block of code on or off by commenting it... it can be handy to know that there's a way to achieve the same thing by setting up your block comments in such a way that they can be enabled or disabled by adding or removing a single "/".
[Flash ]
gskinner.com: gBlog: News and views on Flash, Flex, and ActionScript - Flash, Flex and Air related Blogs
View original post|Add to del.icio.us|15 d and 4 h ago | Share

      view feed content How to use remapCoordinateSystem of SensorManager (Developing with Google Android)   [50 views, last view 4 d and 11 h ago]
Dear all,

I want to transform the coordinate in Camera style. But I
really can't understand how to use remapCoordinateSystem. Is there
any example to help me understand how to use?

Best regards,
Augustin Lu.



Google Android Community - Developing with Google Android
View original post|Add to del.icio.us|8 months ago | Share

      view feed content Hipermediaciones y nuevos medios (40 blogs a seguir en el 2009)   [7 views, last view 4 d and 11 h ago]
languagetypetext/htmlvalue

Entre las dos macbooks, una telecaster, media docena de móviles, un arduino y una bodega de piratería nada despreciable, se hace lugar en casa una incipiente biblioteca de mi vida en Lima, que voy mudando en partes a Buenos Aires cada vez que viajo para diluir el sobrepeso de equipaje en cómodas cuotas.

Después de un verano a pura literatura peruana contemporánea, escrita por jovencitos brillantes como Jeremías Gamboa, Juan Manuel Robles y mi amigo Daniel Titinger; algunas desviaciones saludables hacia Hemingway, un encontronazo barroco con Rachel Cusk y también una reciente sobredosis de Malcolm Gladwell, pasando inesperada y casualmente por teorías de las organizaciones de la mano de Dee Hock, Bernard Girard, Marcus Buckingham y Curt Coffman, las ciberculturas vuelven a ganar terreno.

Primero Stefan Pfänder y Jörg Wagner con La des/comunicación y sus re/medios; Marcelo Urresti y sus Ciberculturas Juveniles; y Nuevos Medios, estrategias de convergencia de Roberto Igarza -los tres gentileza La Crujía-; luego Lo tecnológico y lo imaginario de Daniel H. Cabrera y muy recientemente Hipermediaciones, elementos para una teoría de la comunicación digital interactiva, de Carlos Scolari.

Los libros de Roberto Igarza y de Carlos Scolari son los que quiero recomendar con todo entusiasmo. Ambos tienen la virtud de no dejarse atrapar por la futurología barata, el romanticismo digital ni la melancolía ilustrada, epidemias académicas que en temas de ciberculturas se están llevando al cielo del olvido a tantas cátedras, corrientes de pensamiento y autores.

Nuevos medios, de Igarza, es un mapa de conceptos alrededor de la convergencia de medios, y el de Scolari, Hipermediaciones, -sobre todo la primera parte- un mapa de las teorías y pensadores que desde hace más de veinte años se están encargando de las interacciones digitales. Son dos libros esenciales para profesores y alumnos de materias ligadas a medios online, comunicación y periodismo digital, ciberculturas y afines. Los cuadros y semantogramas que ofrecen ambos autores son tan valiosos como prácticos.

La primera parte -lejos, la mejor - del libro Hipermediaciones constituye una genealogía sin precedentes de autores, teorías, conceptos y aproximaciones a las ciberculturas. Un mapa concreto de elementos para una teoría de la comunicación digital interactiva, que rescata autores a veces olvidados y hace justicia, como pocos, con las ideas de Lev Manovich, probablemente el satélite con señales más afinadas sobre nuevos medios.

Así que si Ustedes son también de dilapidar salario y horas de almuerzo en las librerías, háganse de Nuevos Medios de Roberto Igarza, y de Hipermediaciones de Carlos Scolari.

basehttp://www.amphibia.com.ar/feed/
[Asides Libros ]
Amphibia - 40 blogs a seguir en el 2009
View original post|Add to del.icio.us|9 months ago | Share

      view feed content IETester / Browser Compatibility Check for Internet Explorer Versions from 5.5 to 8 (Tools to inspect and debug web pages from your browser)   [3 views, last view 4 d and 12 h ago]

More than
750,000
download hits.

IETester is free.
To support the project
you can make a donation :

or you can translate it.

IETester is a free WebBrowser that allows you to have the rendering and javascript engines of IE8, IE7 IE 6 and IE5.5 on Windows 7, Vista and XP, as well as the installed IE in the same process.
New in v0.3.5 : IETester now working on Windows 7 !

This is an alpha release, so feel free to post comments/bugs on the IETester forum.
Requirement : Windows 7, Windows Vista or Windows XP with IE7 (Windows XP/IE6 config has some problems and IE8 instance do not work under XP without IE7)

Download IETester v0.3.5 (24MB)
(IETester v0.3.5 zipped intaller for people unable to download .exe files due to proxy limitations)

Known problems and limitations :
  • The Previous/Next buttons are not working properly
  • Focus is not working properly
  • Java applets are not working
  • Flash is not working on IE6 instance in user mode : A solution is to launch IETester as admin user and Flash will work.
  • CSS Filters are not working correctly in user mode : A solution is to launch IETester as admin user and CSS Filters will work.


Companion.JS - Tools to inspect and debug web pages from your browser
View original post|Add to del.icio.us|5 months ago | Share

      view feed content Nuevo método de autenticación en Tractis: VASCO Digipass (Premios revelación web 2007 Yahoo)   [2 views, last view 4 d and 12 h ago]

Hoy anunciamos la incorporación de un nuevo método de autenticación a Tractis: autenticación con VASCO Digipass.

VASCO es una compañía líder a nivel mundial en la provisión de soluciones de autenticación. Digipass es su producto estrella. Se trata de una familia de dispositivos de pequeño tamaño que permiten autenticarse con seguridad en aplicaciones y sitios web.

La ??magia? de los dispositivos Digipass reside en que son capaces de generar ??contraseñas de un solo uso? (?One Time Passwords? o ??OTP?). Es decir, el usuario, en vez de utilizar siempre la misma contraseña, utiliza el dispositivo OTP para que genere una contraseña distinta cada vez que quiere iniciar sesión.

Dado que las contraseñas cambian contínuamente, el riesgo de acceso no autorizado por robo de contraseña disminuye notablemente. Hemos asignado a este método de autenticación un nivel de garantía o ??Tractis Score? de 2 (en comparación con el simple usuario y contraseña que tiene un Tractis Score de 1). Sin embargo, el nivel de garantía real dependerá de las medidas de seguridad adoptadas durante la identificación de la persona a la que se entrega el token y el método de entrega del dispositivo (en persona, por correo, etc).

VASCO tiene alrededor de 8.000 clientes en más de 100 países. De estos, 1.200 son instituciones financieras. Quizás te suene la Paypal Security Key, el Blizzard Authenticator para World of Warcraft o el BBVA Token Plus. En realidad, todos ellos son dispositivos VASCO Digipass.

Configuración de VASCO Digipass en Tractis

Antes de habilitar la autenticación con VASCO Digipass en Tractis, necesitas ponerte en contacto con VASCO para desplegar Digipass en tu empresa y entregar los dispositivos OTPs a tus empleados o clientes.

Una vez tengas Digipass, el administrador de tu cuenta Business en Tractis debe realizar una sencilla configuración:

1. Accede a las Preferencias de tu cuenta Business. En la sección de ??Métodos de Autenticación? marca la casilla para permitir el uso de VASCO Digipass y pulsa el enlace ??Subir DPX? para subir a Tractis el archivo DPX que contiene la información de los token VASCO Digipass de tu empresa.

2. Accede a la lista de Usuarios de tu cuenta Business. Al lado de cada usuario, verás que ha aparecido un enlace que dice ??Asociar token de Vasco??. Púlsalo para asociar a cada usuario el token VASCO Digipass que le corresponda.

Iniciar sesión con VASCO Digipass en Tractis

Una vez el administrador haya realizado la configuración anterior, los usuarios de la cuenta Business podreis iniciar sesión en Tractis de forma fácil y segura con vuestros tokens Digipass. En la pasarela de autenticación de Tractis, selecciona la pestaña de ??Digipass? e introduce tu email. Verás la siguiente pantalla:

Tractis te permite utilizar VASCO Digipass tanto en modo ??solo respuesta? como en modo ??reto-respuesta?. Elige el que prefieras:

  • Modo ??Solo respuesta? (RO): Introduce en Tractis la contraseña que genere tu dispositivo OTP.
  • Modo ??Reto-Respuesta? (CR): Introduce en tu dispositivo OTP el número que te indique Tractis. A partir de ese número (o ??Reto?), tu dispositivo OTP generará una contraseña que deberás introducir en Tractis. Ten en cuenta que no todos los Digipass soportan este modo de funcionamiento.
Palabras finales

Tras la ??Autenticación con Tractis ID? (TS1) y la ??Autenticación con certificado electrónico? (TS4), la ??Autenticación con VASCO Digipass? (TS2) se convierte en el tercer método de autenticación disponible en Tractis y el primero en utilizar tecnología OTP. Nuestra intención es continuar añadiendo métodos de autenticación adicionales y que cada individuo o empresa elija el método que mejor se adapte a sus necesidades.

Queremos agradecer a todo el equipo de VASCO, en especial a Eddy Cormon, Miguel Bueno y Miguel Castro, su soporte durante la integración de la tecnología VASCO Digipass y VACMAN Controller en Tractis.


[Anuncios OTP Seguridad Tractis ]
Tractis - Premios revelación web 2007 Yahoo
View original post|Add to del.icio.us|more than one year ago | Share

      view feed content Luis Delso estudia una demanda… (Top 20 blogs de la Blogosfera según wikio)   [2 views, last view 4 d and 12 h ago]
languagetypetext/htmlvalue

Luis Delso estudia una demanda contra Bárcenas por decirle al juez que él era “el cabrón” de la Gürtel http://lost.in/O4


basehttp://feeds.feedburner.com/escolar
[SMS ]
Escolar.net - Top 20 blogs de la Blogosfera según wikio
View original post|Add to del.icio.us|6 months ago | Share

      view feed content All About Maemo Podcast #1 - Maemo Summit (Resources and news about Nokia N900 and Maemo)   [2 views, last view 4 d and 12 h ago]

We will be publishing the occasional podcast, here, on All About Maemo, talking about the Maemo platform and Maemo devices such as the Nokia N900. In our very first podcast Rafe discusses the Maemo Summit with Steve. Topics include the Qt port to Maemo 5, Maemo 5 UI, Maemo 6 concepts, open source as business model, platform security and much more. You can listen to the podcast by the using the embed in the full story, downloading the MP3 file, or subscribing to the RSS feed in a podcactcher. Read on for more details.



All About Maemo - Resources and news about Nokia N900 and Maemo
View original post|Add to del.icio.us|3 months ago | Share

      view feed content ESX 4.0 install issues (VMware virtualization: products, resources, news and information)   [44 views, last view 4 d and 12 h ago]

Ok, so I've prepared serveral options, one of them is to use use boot disk as shown here:

http://blog.laspina.ca/ubiquitous/creating-usb-based-boot-media-for-esx-4-installs

with a different syslinux.cfg

default menu.c32
prompt 0
timeout 9000
menu title ESX 4 Install usb

label Default
kernel vmlinuz
append initrd=initrd.img ks=usb vmkopts=debugLogToSerial:1 mem=512Mb

will that work with all the files copied over to usb as perscribed in the blog article?

then I will go in and check the cable, atm the JMB363 is set to IDE mode, there are serveral other modes that I can set it to, one is raid but I'll avoid that

and of course I will reburn another image with imgburn set at the slowest speed possible and see if that helps.

any other suggestions? since the mahcine is a test machine from my gaming maching so each test better be batched so I don't need to change it ver often (I hope I dont nuke the SATA drive plugs lol....)



VMware communities - VMware virtualization: products, resources, news and information
View original post|Add to del.icio.us|6 months ago | Share

      view feed content Cluster 3.0 in Practice: Dynamic Provisioning with MOAB and XCAT at RMSC (Linux resources and news)   [3 views, last view 4 d and 12 h ago]
This technical presentation will focus on the promises and perils of building a dynamic infrastructure for a true HPC cloud environment. As a case study, the Rocky Mountain Supercomputing Centers, Inc. (RMSC) offers a Supercomputing Platforms as a Service (SPaaS) model for Cloud Computing. The challenge facing RMSC is to provide a range of standard software packages and HPC services to their clients in a robust and automated fashion. These services require a flexible infrastructure as clients have a wide range of needs.
[Webinars Today's HPC Clusters RSS ]
Linux Magazine - Linux resources and news
View original post|Add to del.icio.us|3 months ago | Share

      view feed content Passenger with nginx on Mac OS X (Ruby on Rails sample projects to learn from)   [13 views, last view 4 d and 12 h ago]
languagetypetext/htmlvalue

Setting up nginx with Passenger support turns out to be fairly easy.

Start by making sure you have the most recent version of Passenger, then install the nginx module. This will actually install and compile nginx with the Passenger module enabled, which is handy. Choose the recommended/default options when the installer prompts you.

sudo gem update passenger sudo passenger-install-nginx-module

Then, open up the nginx config file:

mate /opt/nginx/conf/nginx.conf

Add the following line to the top of the file:

daemon off;

This will prevent the "502 Bad Gateway" error you may see otherwise. I'm not sure why this is necessary, but I read about it here, and it seems to do the trick. nginx specifies that this should only be used for development, though.

Next, find the http { block, which should start around line 15 or so. You'll want to add a server { block within the http { block for each of your Rails/Rack applications, like so:

server { listen 80; server_name eldorado.local; root /Users/trevorturk/Code/eldorado/public; passenger_enabled on; rails_env development; }

You'll need an entry in your hosts file if you don't already have one. Simply open up the file:

mate /etc/hosts

...and add lines for each of the apps you plan to run, like so:

127.0.0.1 eldorado.local

Now, we can set up a launchd item, so that nginx will start up automatically after a system reboot. Create a new plist file by opening it up in TextMate:

mate /System/Library/LaunchDaemons/nginx.plist

...and paste the following code in, which was kindly provided for us by this helpful person:

Then, run the following command to load it:

launchctl load -F /System/Library/LaunchDaemons/nginx.plist

Now, you can reboot your system and make sure it's all working as expected by visiting http://eldorado.local, or whatever address you've configured your application to be on.

I believe this nginx installation will override the existing Apache installation you may have running. This doesn't bother me, so I opened up my System Preferences -> Sharing prefpane and unchecked the Web Sharing box, so Apache is no longer running. If you have any ideas about how to keep both services running cooperatively, please do let me know.

Update: Here are some additionally configuration options I'm using, which I cobbled together from various sources after Googling for things like "nginx, rails, gzip, expires" and such. Their powers combined, and I seem to have a YSlow-approved setup.

Just above your server { block, around line 40, add the following:

gzip on; gzip_buffers 16 8k; gzip_disable "MSIE [1-6]\."; gzip_proxied any; gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;

That should cover gzip well enough.

Then, amend the aforementioned server { block to include some far future expires goodness that takes advantage of the Rails asset_tag helpers:

server { listen 80; server_name eldorado.local; root /Users/trevorturk/Code/eldorado/public; passenger_enabled on; rails_env development; location ~* \.(ico|css|js|gif|jp?g|png)(\?[0-9]+)?$ { expires max; break; } }

These two configuartion tweeks are, I believe, the rough equivalent of the technique previously discussed on this blog for Apache.

Of course, any additional suggestions, comments, or insights you may have would be most welcome. I'm new to this whole nginx thing, but I'm enjoying it so far.

Update: Here's an easy way to reload nginx, if you need to make a change to your conf. Make sure to have the following in your /opt/nginx/conf/nginx.conf file:

pid /var/run/nginx.pid;

Then, you can make an alias for the reload task in your ~/.bash_profile:

alias nr='sudo kill -HUP `cat /var/run/nginx.pid`'

In case you're interested, you can check out my full nginx.conf file for local development here:

http://gist.github.com/191331

basehttp://feeds.feedburner.com/almosteffortless
[Ruby/Rails ]
El Dorado - A Rails Community web application - Ruby on Rails sample projects to learn from
View original post|Add to del.icio.us|4 months ago | Share