Read the latest web development and design tips at Fred Wu's new blog! :-)
Poke me on GitHub

Rails, jQuery, Dating, etc

Here’s a few things you might be interested in from the past few weeks. :-)

[Rails] Inherited Resources Views Now Supports Rails 2.x

I have just pushed a commit that added Rails 2.x compatibility to Inherited Resources Views. Please give it a spin! :-)

Reinvigorate – Realtime Website Traffic Analysis

It isn’t the first time realtime website traffic analysis has been introduced. Reinvigorate is one of the services that provides realtime traffic tracking and analysis.

Poke me on Github! :D

I have just added a Github ribbon to my blog (look at the top left corner!). Please feel free to poke me! :D

[Rails] Releasing Inherited Resources Views – DRY Your View Files

Using Inherited Resources is an excellent way to reduce the amount of repetition in your controllers. But what about views? A lot of times resources share the same views, so why not DRY ‘em up using Inherited Resources Views!

[jQuery] Releasing Inline Confirmation, Confirm Actions Done Right

In a web app, it is very common to have actions that destroy (delete/remove) data. These actions, if you don’t already know, should always map to POST methods. On top of that, because these actions are destructive, the UI should always ask the user for confirmation…

I’m Now a Ruby on Rails Contributor

I am extremely happy that my patch was accepted, so I am now one of the 1600 odd people who have contributed to the Rails project! :D

[PHP] Releasing KThrottler, A Kohana Module for Throttling Actions

Similarly to Action Throttler for Rails, KThrottler is an easy to use Kohana module to quickly throttle application actions based on configurable duration and limit.

#whatdatingislike What Dating Is Like

Dating girls is like calling a callback function without knowing the accepted arguments. Random exceptions would throw right in your face.

Dating girls is like running prerelease ruby gems. Things might not be compatible, there might be memory leaks and other weirdnesses…

[Rails] Introducing Datamappify – ActiveRecord Without DB Migrations

ActiveRecord is without doubt the de facto ORM library for Rails and many Ruby web frameworks. Many developers however, do not like database migrations and prefer to use DSL for data mapping. Datamappify is created with the sole purpose of getting rid of the DB migration headaches…

  • Digg
  • DZone
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Twitter

Related posts

Tags: , , ,

Fuck GPL!

http://fuckgpl.com/

  • Digg
  • DZone
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Twitter

Related posts

Tags: , , , ,

What You Might Have Missed, Again :-)

Here are some of the posts you might be interested in from my Tumblr blog.

[jQuery] Endless Scroll Updated, Now Works with Any DOM Elements

jQuery Endless Scroll has now been updated to work with any DOM elements, not just $(document) …

[Rails] Releasing Action Throttler, A Rails Plugin for Throttling Actions

Sometimes we would want to throttle certain application actions. For instance, a user should only be allowed to send x amount of emails to other members of the site in order to reduce the spam risk …

A Whole World of Difference: Phusion Passenger Apache to Nginx, Ruby Enterprise Edition 1.8.6 to 1.8.7

Yesterday we have launched the new design of Creattica. It runs well during the testing and staging phase, unfortunately the server quickly became overloaded and unresponsive after the relaunch was made public …

[Rails] Use App_Config For Your Application Specific Configuration

A simple Google search will reveal that there are a number of different App_Config plugins for Rails. After comparing them side by side, I have decided to use the one by Christopher J. Bottaro …

[Rails Tip] Model Attributes Not Updating? `reset_column_information` To the Rescue!

So you were wondering why some of your model attributes weren’t updating properly? Well, it is perhaps because the db schema has changed but the changed schema has not been passed onto ActiveRecord, as is often the case in DB migration …

[jQuery Tip] Traverse/Parse HTML String

When you are getting an HTML string from an external source (e.g. from an AJAX get result) and you want to rip out a certain part of the HTML source, you need to make sure that the ‘certain part’ is not at the top level of the HTML source …

[Rails Tip] DataMapper M:M Association Bug and Workaround

It was confirmed that DataMapper is incorrectly setting table names in SQL JOINs …

[Rails Tip] DataMapper Timestamps Bug and Workaround

It has been confirmed by DataMapper’s core developer Martin Gamsjaeger (snusnu) that it is a bug …

[Rails Tip] Run Specs Faster!

If you are using rake spec to run the specs. Try using spec spec instead! It avoids doing some preliminary tasks and therefore is quicker to execute …

[Rails] Run Queued Tasks Using ‘delayed_job’, Now With Intervals!

If you don’t already know, ‘delayed_job’ is a database based asynchronously priority queue system extracted from Shopify …

  • Digg
  • DZone
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Twitter

Related posts

Tags: ,

What You Might Have Missed

Below is a list of the posts that might interest you:

[Rails Tip] Making i18n Forms, the Easy Way

Web applications normally have many forms. Building forms is always a mind-boggling task because it involves repetition and chaos. A shortcut is to use …

Advanced Search Query on GitHub

Did you know, you can perform advanced search queries on GitHub? For example …

[Rails] Use HAML templates with Devise

If you are a Rails developers, chances are you have heard of, or are using either Devise or HAML in your projects. And if you’re like me who uses both, then surely you’d wish these two worked together …

Use the ‘textmate’ Command to Quickly Install Bundle Files

Initially developed by Yehuda Katz, the Textmate gem is an extremely handy tool for installing and managing your Textmate bundle files. The tool works very well, for the most part…

  • Digg
  • DZone
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Twitter

Related posts

Tags: ,

Fred on Tumblr

I usually lag behind on social networking stuff. For instance I started using Twitter only a couple of months ago.

Today, I decided to set up a Tumblr blog in the hope that I would post more regularly.

There were quite a few times where I found Twitter’s 140 characters limit very limiting (duh), yet the thoughts did not necessarily warrant a full blog post here. Tumblr therefore seems to be a perfect fit. ;)

My Tumblr blog is located at fredwu.me. Please drop by. :)

  • Digg
  • DZone
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Twitter

Related posts

Tags: ,

Vanilla Forums 2.0

I am still alive and kicking, despite not having published any posts lately. ;-)

I have started to contribute to Vanilla Forums 2.0, if you’re curious, you can check out my fork here.

Gotta love open source. :-)

  • Digg
  • DZone
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Twitter

Related posts

Tags: , , ,