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
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:
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!
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
UltraVNC 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...
UltraVNC 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...
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:


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>
System Requirements
- U3 smart drive
- Microsoft Windows 2000 / Windows XP / Windows Vista
http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/1564-add-support-for-before-and-after-addremove-callbacks-to-belongs_to-associations
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.
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/|
More than |
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 :
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 TractisAntes 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.

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:
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.
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
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.
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....)
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-moduleThen, open up the nginx config file:
mate /opt/nginx/conf/nginx.confAdd 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.localNow, 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.plistNow, 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