Rails permissions when using passenger fusionSection: Ruby on Rails
 When using passenger fusion for hosting your rails sites, the rails process is owned by the user who owns config/environment.rb

So make sure that user can write to /tmp, /log and /public !

cross-subdomain sessionsSection: Ruby on Rails

If you want your session to be valid across multiple sub-domains, here is how you do it:

 config.action_controller.session = {

   :session_key => 'xxxxxxxxxxxxxxxx',
   :session_domain => 'domain.tdl',
   :secret => 'yyyyyyyyyyy'
}
 
 

 

mysql prefpane and leopardSection: Leopard

 The default mysql prefpane doesn't work with leopard.

Here is one that works:

 

ftp://ftp.mysql.com/pub/mysql/download/gui-tools/MySQL.prefPane-leopardfix.zip

 

rails 2.2.2 & mysql & leopardSection: Ruby on Rails

if you get this error after upgrading to Rails 2.2.2:

 

!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.

You can fix it with:

 

 

sudo env ARCHFLAGS="-arch i386" gem install mysql -- \
  --with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib \
  --with-mysql-include=/usr/local/mysql/include

 

Dotted 1px border in photoshopSection: Photoshop
If you want a 1px dotted border, here is a simple way to do it:

create a check pattern of 2px by 2px. Define it as a pattern.


Now you can use it as pattern of your stroke, like this: (right click your layer, then blending options)

Et voila, a 1px dotted border :).  Note: This only works with a 1 px border.
Sections 
- PHP (1)
- General (2)
- Ruby on Rails Snippet (3)
- Ruby on Rails (13)
- HTML (1)
- Css (1)
- regex (1)
- Photoshop (1)
- Leopard (1)
A little note to Internet Explorer users:
This site is not made for Internet Explorer. Some pages may look like shit. Yes, i could fix it for IE, but no, I'm not gonna do it. Try Opera or Firefox instead!