BlogSphere
Keep up to date with your favourite Rails bloggers in context.
by
Jack Dempsey | 1 day ago |
Read more
Recently I've been working on getting some stories written for
www.recollectr.com and given that I just added in MerbAuth support, I thought now would be a good time to dive back into the previously paused process.
If you're interested in using webrat for merb_stories, you'll want to get the fork that supports merb from here:
http://github.com/gwynm/webrat/tree/master
I'd previously had some stories working with webrat and edge merb, but it looked like the upgrade to using MerbAuth in slice form broke some things. After some investigation I realized that the namespacing that's used in merb-slices was slightly different than what the merb supported fork of webrat was happy with...gwynm's fork adds a cookies= method to Application as follows:
class Application < Merb::Controller
def cookies=(newcookies)
@_cookies = newcookies
end
end
This is fine except with MerbAuth, we have MerbAuth::Application, and as such things were busted a bit. So, doing the same for MerbAuth::Application fixed things right up:
module MerbAuth
class Application < Merb::Controller
def cookies=(newcookies)
@_cookies = newcookies
end
end
end
Thing is, this doesn't exactly belong in MerbAuth as its specific to webrat....and it doesn't exactly belong in webrat as its going to be an issue to any merb-slice. So for the time being I have this in my app code, and things work nicely. I'll probably write a little more and maybe give some examples for general webrat and merb_stories usage, but til then hope this helps anyone else trying all three of these great components.
by
Theodore Nguyen-Cao | 1 day ago |
Read more
Gah, why would you want to run both? Well, Firebug is the suck in Firefox 3. I’ve been doing a lot of javascript/ajax development lately.
When using Firefox 3 and the Firebug console, I get the following error occasionally:
commandLine.evaluate FAILS: [Exception... "Security Manager vetoed action" nsresult: "0x80570027 (NS_ERROR_XPC_SECURITY_MANAGER_VETO)" location: "JS frame :: chrome://firebug/content/commandLine.js :: :: [...]
by
Daniel Hammond | 1 day ago |
Read more
“Luck is where preparation meets opportunity.”
by
Michael Lang | 1 day ago |
Read more
Let me start out by saying that I am finally beginning to understand a bit about that magical Ruby block notion and how implementing methods through block passing can really empower you as a Ruby developer. Thanks to, a most excellent Ruby tutorial, I am definitely feeling a good bit more empowered about getting [...]
by
Marcos Ricardo | 1 day ago |
Read more
Since I decide to get into this “Ruby on Web framework”, I need to go into some pre-learning tasks, about the Web it self, about Web applications, about this “Ruby on Web framework” community and so on. First of all, if I will write about this framework and my process on learning it, I will need to use its logo a lot on my posts and any other material I produce in the process. Soon I
by
Dan Benjamin | 1 day ago |
Read more
It’s a fact that silence, like the kind created by our sealed, insulated dwellings, is an unnatural condition with harmful side-effects. Sounds like white noise can be immensely helpful in creating positive background noise in an otherwise silent home or office. White noise is also useful in masking the unwanted noise from a noisy workplace or hotel. Babies and small children also benefit immensely from white noise, as the sounds they heard for 9 months in the womb are suddenly absent in the outside world.
SimplyNoise is a straight-forward browser app that creates user-adjustable white noise. Just move the slider to adjust the volume. New features, like “improved white noise” and downloadable MP3’s are on the way soon.
If you’d prefer a native application, check out Noise, a Mac OS X application that you can use to generate white or pink noise.
And if you want a real-life sound machine, the HoMedics SS-2000 isn’t bad for $20.
by
Steve Dalton | 1 day ago |
Read more

About 30-40 people turned up to Bar Camp Gold Coast on a rainy Saturday at Griffith Uni (perfect weather for staying inside and talking tech). I was really encouraged by the quality of the people that attended... I always knew these people existed on the Gold Coast and I will now double my efforts to get more stuff like this happening on the coast.
Anyway - I'll blog about this in more detail later, but here are some of the things that we did.
- Mobile Coffee Guy - very popular. Thankyou Kerry - I will definitely use you again. I'll find your website and post here.
- Pizza - Eagle Boys were ok. But were pretty late and pizza was a little cold....
- Hardware giveaway.... got rid of a lot of my stuff. Hands shot up pretty quickly - so obviously people obviously wanted this stuff! Lots of other people brought stuff to give too.
- Apress Book/Tshirt giveaway - didn't know how to give these away in the end (best presentation was too hard to judge) so we did a door prize instead.
- Internet - Griffith Uni installed an AP especially for us, and we had use of the uni internet. Seemed pretty fast - although annoying to keep getting the login page after a time away
- Group photo - thanks DJ for getting this together.. good idea
- Linux area - we kept a little area with some Linux magazines, distros and flyers on and the GCLUG people seemed to gather around there and talk to people about Linux, seemed to work well.
- Tshirts - good number of shirts (I think we printed 38) - they nearly all went, and it was nice to see Linux on everyone's backs too (including some MS people :)). Thanks to Custom Tees for those.
- After drinks... we got about 10 people there.... Parkwood Tavern was pretty ok, had a good outdoor area - with heaters!
read more
by
Javier Vidal Postigo | 1 day ago |
Read more
Si utilizamos subversion como software de control de versiones, cada vez que creemos un nuevo proyecto rails, habrá una serie de tareas que tendremos que llevar a cabo.
Supongamos que el repositorio está creado y accesible en la URL:
http://svn.misite.com/miproyecto
Lo primero que tendremos que hacer, siguiendo las buenas prácticas del control de versiones con subversion, es crear [...]
by
javier ramirez | 1 day ago |
Read more
Inauguro una nueva serie en el blog. Como sabéis, me gusta participar en las listas de correo para aprender de los gurús, y para echar una mano cuando puedo a la gente que tiene dudas.
De vez en cuando respondo a mensajes en las listas de correo que me parecen dudas genéricas. Otras veces contesto [...]
by
Dan Higham | 1 day ago |
Read more
danhigham: Think of killer apps for twitter.... hmmm!
by
Alexander Muse | 1 day ago |
Read more
Mike Arrington is suggesting, “Think Before you Voicemail.” I have to agree. Quit leaving me voice messages. If you need me to call you, just email, text me or IM me. I have consolidated all of voicemail into one box, but even then it takes FOREVER to listen to the 30-50 messages I get in [...]
by
Heungseok Do | 1 day ago |
Read more
딸내미 피아노 연주 ㅋㅋ(딸내미 피아노)2008-07-05 12:49:03
미용실 갔다오면 어색해(미용실에서 me2photo)2008-07-05 16:12:41 
이 글은 꽃띠앙님의 2008년 7월 5일의 미투데이 내용입니다.
<!-- end of daily_digest -->
by
Cameron Walters | 1 day ago |
Read more
batter blaster breakfast at my place with @
shawnbot, @
rk, @
aprilini and more
by
Venu | 1 day ago |
Read more
I am reading this very interesting book “A User’s Guide to the Brain” by John J Ratey. It is very enlightening when it comes to understanding human behavior. I wanted to share some of those with you. Here is one:
The primary receptor for pain called ‘nociceptor’ responds to stimulation such as intense pressure, extreme temperatures [...]
by
John Yerhot | 1 day ago |
Read more
Why don’t I listen to people? Jen and I just sat through The Happening. Yes, it does suck just as much as every other M Night Shamalama dig dong movie since the Sixth Sense.
How he managed to make Mark Wahlberg and John Leguizamo completely suck beyond belief is beyond me. I’m not even sure why [...]
by
James Britt | 1 day ago |
Read more
I’ve noticed an increase in the use of folks adding a leading ’@’ character to user names (and even real names) in threaded discussion boards, mailing lists, and E-mail.
I don’t think any of the uses I’ve seen were meant to aid any sort of automated text processing; it appears to be a bad habit that perhaps makes sense on Twitter, but is merely line noise elsewhere.
Please consider: No Twitter Litter.
by
Nolan Eakins | 1 day ago |
Read more

shared an item on
Google Reader
by
Ry Dahl | 1 day ago |
Read more
ets, Erlang Term Storage, is great. It a simple memory hash for "very large quantities of data" on which more complex database systems are built (
Mnesia, for example). The man page says, lookup, insertion, and removal are constant time operations.
I
just reimplemented the back-end for my Caching Server to use ets and I'm very happy with the results. Code is simpler and the system is responding more quickly.
I must say - I'm extremely happy with Erlang so far.
by
Andy Croll | 1 day ago |
Read more
Another Hulk movie, with another ‘serious’ actor drawn to Marvel’s giant green Jekyll and Hyde – this time Ed Norton. He’s the best thing about the film, although it’s also briskly directed in the first half of the film – a tense chase through the favelas followed by Hulk smashing from the shadows of a the Brazillian bottle factory.
It struggles in the same way as the Ang Lee Hulk film, the Hulk just doesn’t seem to work that well on screen. The most interesting bits of the film are the Bruce Banner sections, once the giant green Hulk appears the film gets much less exciting. It’s not rubbish, but it’s not that good either.
by
Daniel lv | 1 day ago |
Read more
作者:
lgn21st
链接:
http://lgn21st.javaeye.com/blog/211963
发表时间: 2008年07月06日
声明:本文系JavaEye网站发布的原创博客文章,未经作者书面许可,严禁任何网站转载本文,否则必将追究法律责任!
Mac下面除了用虚拟文件夹系统安装应用程序外,还提供了ports来帮助你安装其他应用程序,跟
BSD中的ports道理一样,将
macports的使用方法记录在这里以备查:
安装macports
到这里下载最新的macports的Mac OS X Package(.pkg)安装包,安装过程没有什么特别,就像安装其他应用软件一样,需要注意的是一些系统需求一定要提前安装.
将/opt/local/bin和/opt/local/sbin添加到$PATH搜索路径中
原本port有个sync的功能,不过这个sync事实上是selfupdate的一部分,所以强烈建议用selfupdate来更新ports索引
sudo port selfupdate
搜索索引中的软件
port search app_name
安装新软件
sudo port install app_name
卸载软件
sudo port uninstall app_name
查看outdated的软件以及版本
port outdated
升级outdated的软件
sudo port upgrade outdated
本文的讨论也很精彩,浏览讨论>>
JavaEye推荐
by
Elomar França | 1 day ago |
Read more
Quer dizer que você acha que sabe como fazer uma tabela? Claro, você conhece as tags table, tr, td e th, você tem até os atributos rowspan e colspan no seu bolso. Você pode mesmo fazer uma mesinha pra café de madeira compensada, mas você não quer saber como construir uma daquelas mesas de jantar [...]
by
Corey Ehmke | 1 day ago |
Read more
It’s taken almost a year of on-again, off-again effort, but my book is finally ready for the world! For those of you who do not know, last year I took my grandmother to Poland to visit her childhood home. She had not been back since World War II. I kept a journal and took nearly [...]
by
Justin Williams | 1 day ago |
Read more
Thursday, July 3rd, I found a black dog in the soccer fields off Vann Avenue on the East Side of Evansville. When I got to her, it was just as I thought: worn out, a little hurt, dehydrated, and hungry. My sister and I took her to Parkdale Animal Hospital, who was great and did [...]
by
Ryan L. Cross | 1 day ago |
Read more
Checking out themattinator.com. Looks like Why the Lucky Stuff had something to do with it. Great concept.
by
Alexander Muse | 1 day ago |
Read more
Last month I bought a life-size Incredible Hulk statue from Marvel (i.e. the ones you have seen in the theaters). I was finally able to pick up the statue, with Chris’ help. OMG it is VERY hard to get a 8′6″x6′6″x6′6″ statue out of a theater and into an office building (don’t try [...]
by
Mando Escamilla | 1 day ago |
Read more
Slowly realizing that Merb + Datamapper leads to a sad and sleepy Mando. Back to ActiveRecord for now :).
by
Marcel Molina Jr | 1 day ago |
Read more
“
The only important rule is that all sexual climaxes must be simulated, not real.
”
by
Dan Croak | 1 day ago |
Read more
Looking for a part-time volunteering position in the Boston area where I can contribute my technology expertise, I did some research on Idealist. These are the three most promising I could find:
- Help build the Citizens Market PHP web app - Citizens Market is a nonprofit developing a user-generated database to gather reliable information on the social and environmental performance of companies. The database will be free, transparent and accessible online.
- All-purpose technical volunteer at Haley House - Haley House is a food and housing provider in the South End. They’re looking for an Apple-oriented, all-purpose technical person with web development experience.
- Webmaster for the Jewish-Muslim Relations Center - A few hours a month, make updates and changes to their website. Organization works nationally to move relations between Muslims and Jews beyond political conflict.
by
João Paulo Lins | 1 day ago |
Read more
<object height="355" width="425" style="margin:0px"><param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc=iiesol-1215270510567222-8" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><embed allowfullscreen="true" type="application/x-shockwave-flash" src="http://static.slideshare.net/swf/ssplayer2.swf?doc=iiesol-1215270510567222-8" allowscriptaccess="always" height="355" width="425"></embed></object>
Essa semana participei do II ESOL que aconteceu no CEFET-PE. Foi a minha primeira paticipação em um evento de software livre. Tentei passar um pouco do mundo Ruby e Rails com o intuito de consquistar alguns adeptos e fortalecer a nossa comunidade local. A palestra foi nos moldes do DHH. Fiz uma breve introdução ao Ruby e um hands on com Rails para mostrar as facilidades de utilizar o framework.
O evento estava muito bom e só tenho a agradecer ao pessoal da organização pelo apoio e atenção que me deram durante todo tempo que estive por lá.
O código da aplicação para quem quizer brincar.
by
João Paulo Lins | 1 day ago |
Read more
<object height="355" width="425" style="margin:0px"><param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc=iiesol-1215270510567222-8" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><embed allowfullscreen="true" type="application/x-shockwave-flash" src="http://static.slideshare.net/swf/ssplayer2.swf?doc=iiesol-1215270510567222-8" allowscriptaccess="always" height="355" width="425"></embed></object>
Essa semana participei do II ESOL que aconteceu no CEFET-PE. Foi a minha primeira paticipa????o em um evento de software livre. Tentei passar um pouco do mundo Ruby e Rails com o intuito de consquistar alguns adeptos e fortalecer a nossa comunidade local. A palestra foi nos moldes do DHH. Fiz uma breve introdu????o ao Ruby e um hands on com Rails para mostrar as facilidades de utilizar o framework.
O evento estava muito bom e s?? tenho a agradecer ao pessoal da organiza????o pelo apoio e aten????o que me deram durante todo tempo que estive por l??.
O c??digo da aplica????o para quem quizer brincar.
by
Ezwan Aizat bin Abdullah Faiz | 1 day ago |
Read more
aizatto: His Happy Destiny.
by
Ezwan Aizat bin Abdullah Faiz | 1 day ago |
Read more
aizatto: "'Love' is that condition in which the happiness of another person is essential to your own."
by
Marcos Abel | 1 day ago |
Read more
El título ha quedado un poco largo, pero eso es exactamente lo que acabo de hacer hace un rato, y como me parece algo interesante, voy a explicar brevemente cómo conseguirlo.
La base del proceso es PXE, que para definirlo en pocas palabras viene a ser un "modo de arrancar un ordenador" utilizando para ello únicamente el interfáz de red. Como podéis ver en el enlace a la wikipedia, PXE es básicamente una mezcla de DHCP y TFTP.
Paso 1: el ordenador ha de ser capaz de arrancar desde la red
Para poder instalar nuestro sistema utilizando esta tática, es necesario que éste sea capaz de hacer el boot desde un dispositivo de red. La mayoría de los PCs soportan esta característica, por lo que no debería de ser un requisito difícil de satisfacer. Una vez que nos aseguremos de que el PC "sabe arrancar desde la red", ya solo nos falta instalar un servidor que le responda adecuadamente a sus peticiones.
Paso 2: instalar el servidor
En este caso, el ordenador que va a servir los ficheros de arranque es un humilde PC con windows ya instalado, por lo que la herramienta que utilizaremos es TFTPD32. Esta herramienta es una de esas pequeñas joyas que a cambio de muy pocos KB son capaces de hacer un montón de cosas, como podéis observar en la página del autor.
Una vez descargado el programa, ponerlo a funcionar es tan simple como crear una carpeta, digamos que c:\tftp y copiar en ella el fichero tftpd32.exe. Lo ejecutamos y ya tenemos el servidor andando. Así de fácil.
Paso 3: descargarse la imagen de ubuntu peparada para estas labores
El siguiente paso será descargarse la imagen de ubuntu lista para ser servida utilizando PXE. Para conseguir este objetivo tendremos que descargarnos la carpeta ubuntu-installer que podremos encontrar en el respositorio de ubuntu. En mi caso particular, esta carpeta podía descargarse de:
ftp://archive.ubuntu.com/ubuntu/dists/hardy/main/installer-i386/current/images
Paso 4: configurar el servidor
Una vez descargada esta carpeta, deberemos de copiarla en c:\tftp. Además, debemos de asegurarnos de:
- copiar a c:\tftp la carpeta pxelinux.cfg desde ubuntu-installer/i386/
- copiar a c:\tftp el fichero pxelinux.0 desde ubuntu-installer/i386/
Ahora ya podemos configurar el tftpd32. En la pestaña DHCP, deberemos poner 'pxelinux.0' en el campo boot file y deberemos rellenar el resto de valores ajustándose a la realidad de nuestra red. Es importante que el valor del campo 'IP pool starting address' sea una IP válida en nuestra red y que se refiera a un rango de IPs no utilizado en la misma. Una vez cubiertos todos los campos, pulsamos save y ya tenemos nuestro servidor configurado. Así de fácil,
Paso 5: arrancar el pc que queremos instalar
Con nuestro servidor perfectamente configurado, ya podemos arrancar el pc en el que queremos instalar ubuntu. Si todo va bien y los cables están bien enchufados, podremos ver que comienzan a aparecer entradas en la pestaña 'Log viewer' de tftpd32. Se establece la comunicación entre el PC que arranca utilizando PXE y nuestro servidor. Al cabo de unos instantes, el PC que está tratando de arrancar acaba recibiendo por TFTP la imagen de instalación basada en red de ubuntu. A partir de ahi sólo nos queda continuar con una instalación basada en red de lo más normal, (lenta), y aburrida.
by
Michael Nordmeyer | 1 day ago |
Read more
Auch bei den iPhone-Tarifen können Tarifoption geschaltet werden, die durchaus Sinn machen.
Ich benutze nach dem erneuten Defekt des mit Abstand besten mir bekannten DECT-Funktelefons (gleicher Fehler bei neuem Telefon – Serienfehler?) kein Festnetz-Telefon zu Hause mehr. Daher nutzen mir die Inklusiv-Minuten bei den iPhone-Verträgen nur bedingt etwas, da ich doch mal das eine oder andere [...]
by
Michael Nordmeyer | 1 day ago |
Read more
Letzten Herbst wollte ich mir ein iPhone zulegen, hatte aber ein Problem, welches Manuel auch gerade nervt: ein alter noch laufender Vertrag und eine Mobilnummer, die meiner Meinung nach mit Gold nicht aufzuwiegen ist: eine identische Festnetz und Mobilnummer mit einfach wunderbarer Telefon-Nummer. Also, was nun?
Das Wesentliche: Du kannst Deine alte Nummer später übernehmen. Voraussetzung: [...]
by
Rui Su | 1 day ago |
Read more
最早听说这些记忆碎片是在反波对老六的一个采访里,但是在LCD上读这些精彩的青春碎片,实在让我提不起兴趣,前一段逛光合作用发现这些碎片已经凑一块成书了,想都不想,暖住(老六名...
by
Brent Sordyl | 1 day ago |
Read more
Internet Explorer 7, the replacement, was released nearly two years ago in 2006
by
Daniel lv | 1 day ago |
Read more
作者:
lgn21st
链接:
http://lgn21st.javaeye.com/blog/211949
发表时间: 2008年07月05日
声明:本文系JavaEye网站发布的原创博客文章,未经作者书面许可,严禁任何网站转载本文,否则必将追究法律责任!
自打换了MacBook以后,安装前端web服务器不在像Ubuntu上那么简单,一个apt-get就轻松搞定,不过最新的Leopard自带了Apache,虽然我不喜欢Apache,不过因为是最容易得到且内置,并且一个非常有前途的项目
Passenger(mod_rails)也开始
支持Leopard内建的Apache了,所以决定用这一套组合来作开发.
关于Leopard内建的Apache请看
这里
安装Passenger的步骤非常简单:
# 安装gems
sudo gem install passenger
# 安装apache module并配置
sudo passenger-install-apache2-module
配置过程中会根据当前系统环境自动生成apache的配置参考信息,根据这个来修改位于/etc/apache2/httpd.conf
比如,在配置文件尾部添加入下几行
LoadModule passenger_module /Library/Ruby/Gems/1.8/gems/passenger-2.0.1/ext/apache2/mod_passenger.so
PassengerRoot /Library/Ruby/Gems/1.8/gems/passenger-2.0.1
PassengerRuby /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
# Turned on Name Based VirtualHosts
NameVirtualHost *
<Directory "/Users/daniel/projects/">
Order allow,deny
Allow from all
</Directory>
<VirtualHost *:80>
ServerName project1.local
DocumentRoot /Users/daniel/projects/project1/trunk/public
RailsEnv development
</VirtualHost>
然后修改/etc/hosts,添加下面这行,将project1.local映射为本机地址即可
127.0.0.1 project1.local
打开浏览器,直接访问地址http://project1.local/即可看到rails应用程序了,不用额外启动mongrel或者其他rails的continer并占用一个console的tab了,并且Apache对静态资源进行缓存,页面速度明显快了不少...
重新启动rails应用程序的方法是touch(创建)一个名为'restart.txt'的文本文件在项目的tmp目录下即可
touch tmp/restart.txt
========== 控制Apache的内存消耗 ==========
在Apache的配置文件中添加入下两行,可以有效的控制Apache的内存消耗:
RailsMaxPoolSize 3 # Never spawn more than three processes
RailsPoolIdleTime 180 # Despawn a process when it has been idle for 180 seconds
本文的讨论也很精彩,浏览讨论>>
JavaEye推荐
by
Brent Sordyl | 1 day ago |
Read more
one popular request: securing application communications via, for example, SSL and HTTPS.
by
Brent Sordyl | 1 day ago |
Read more
The BEA Weblogic Server Java application server "becomes Oracle's strategic J2EE container," Kurian said. It has been integrated with Oracle technologies like Oracle TopLink for Java persistence and Oracle Coherence grid capabilities.
by
Carlos Eduardo G. Franco | 1 day ago |
Read more
Pessoal,
Estamos abrindo uma linha de descontos especiais para empresas e equipes de mais de duas pessoas que estão afim de fazer o curso de Flex + Vídeo da e-Genial.
Se você tem interesse em conhecer e criar aplicações web multimídias não deixe de entrar em contato conosco, monte sua equipe e solicite mais informações sobre grandes [...]
Tell us what you think of the new BlogSphere feature. We are continually looking to improve and update the
functionality based on your feedback.