### What's new in Rails 4.1 - Coherence Blog

new feature in Rails 4.1. check it out!

### ActionView::Helpers::NumberHelper

and also, if you want to format your data to percentage, currency or even to human size (I don’t recall such feature in cakePHP), well here’s the place.

### The Developer Corner: Lower Case, Upper Case and Capitalize in Ruby

it’s a small note on using lower case, upper case and capitalize in ruby

### Rails 4 TurboLinks and jQuery Dynamic Links Not Playing Nice - Stack Overflow

and so on my journey to Rails 4 has brought me to issue with jQuery and TurboLinks. Basically, when the page first load, it loads my datepicker script. Then once I do the update, the same page won’t load my datepicker anymore. A refresh action seems to clear the page and load my datepicker script.

Well, it turns out that having TurboLinks installed, will speed up your page, but it also caused conflict with jQuery. (I think, refresh action seems to clear the cache somehow).

Well, the solution is not that hard, instead of using jQuery(document).ready ... change it to jQuery(document).on 'page:load', -> will fix the issue

… the end

I see you reposted an article about installing RoR on Centos 5.6. I'm trying to follow the steps but have an issue with the gcc configure step. It gives me few warnings and then "configure: error: invalid variable name: —prefix'". Any ideas to get past that?

hi there

maybe it could be from copy&paste? try to type in the command (and yes i know it’s painful). btw, i can’t seems to find the re-post link.

i think it should be ” --prefix ” with two ” - ” (single dash), instead of ” —prefix “ with long dash.

please let me know if you managed to install it or need more help.

thanks

So, we have some old server running on obsolete PHP version which happens to be PHP5.2. There’s some issue with application running and we need to fix it. I just recently upgraded my PHP to 5.4 since 5.3 also marked as archived by PHP.net.

Since I’m using AWS AMI, so google has point me to this site (http://forums.fedoraforum.org/showthread.php?t=240556) on how to downgrade my PHP5 installed.

Everything when ok when suddenly my configure command issue me “cannot find libmysqlclient" error. It turns out that, you need to specify the libdir variable, so by doing "ldconfig -v | grep mysql”. So I will add “—with-libdir=lib64”. Remember to remove “/usr" from the given path and if you are using 32bit, it should be in "lib" directory (if not mistaken).

./configure --with-apxs2=/usr/sbin/apxs --with-mysql=/usr/local --with-libdir=lib64

So, configure action when well until it give me another error. This one is related to PHP need to be patched. Since, Im using 5.2.17, this site (http://www.litespeedtech.com/support/forum/showpost.php?p=74000&postcount=8)

wget https://mail.gnome.org/archives/xml/2012-August/txtbgxGXAvz4N.txtpatch -p0 -b < txtbgxGXAvz4N.txt make make install

So, by patching the PHP, it helps me finished the installation. Finally, you need to chown /var/www/html so that you can upload files here and you’re DONE!

sudo chown -R ec2-user /var/www/html

### osx - Can't get Phusion Passenger working with Mac OS X Mountain Lion and Apache - Stack Overflow

future reference… it seems easy when it’s working… nonetheless good to have it tumblr-ed in my account.

### sudo: can't open /private/etc/sudoers:...: Apple Support Communities

In case you having this issue where terminal is complaining about sudoers, there two ways of doing it, depends on your OS (Lion or Mountain Lion).

One suggested to do re-install (backup first of course). The one that I followed is to do with login as root. First you’ll need to enable root login via Directory Utilities. Here’s the steps:

1. Open System Preferences
2. Go to Users & Groups
5. Click on Network Account Server: (Join or Edit)
6. Click on ‘Open Directory Utilitiy…’ button
9. Logout and login back as ‘root’ user
10. Go to Terminal app, type in ‘chmod g+x /’
11. Logout and login back as ‘yourself’
12. Open Terminal app, and you should be able to do sudo

thanks to Joshua Brown1 and others

### Setup and Configure SMTP Server on Windows Server 2008 R2

basically, most of windows components can be added/removed using Server Management Console. Will take sometimes on 600+MB memory

### windows - How to set the env variable for PHP? - Stack Overflow

in short, just type in

SET PATH=%PATH%;C:\path\to\php`

hopes that help!