Archive for the 'English' Category

Nested Namespace in Rails 2.0

Apr 13 2008 Published by under English,Ruby

$> mate config/routes.rb

map.namespace :admin do |admin|
  admin.resources :user
end

$> rake routes

admin_user_index GET    /admin/user
  {:controller=>'admin/user', :action=>'index'}
......

$> mate config/routes.rb

map.namespace :admin do |admin|
  admin.namespace :user do |user|
    user.resources :profile
  end
end

$> rake routes

admin_user_profile_index GET    /admin/user/profile
  {:controller=>'admin/user/profile', :action=>'index'}
......

No responses yet

links for 2008-03-31

Mar 31 2008 Published by under English

No responses yet

Introducing the Google AJAX Translation WordPress Plugin

Mar 21 2008 Published by under English,WordPress

UPDATE:

Please see this page for the new version: Google AJAX Translation 0.2.0

Google just released a new API yesterday: Google AJAX Language API.

AJAX Language API is built on top of Google Translate, it current supports 13 languages and 29 translation pairs. It is new but it is already very powerful. If you want to know more about how to use it on your website, please see Google AJAX Language API Document for more details.

We in Savvica want to use this cool technology in our awesome website: LearnHub.com. In the middle of doing this today, I was thinking about to enable this feature on my blog too. :)

So, here we go, the Google AJAX Translation WordPress Plugin is arrived.

Please download from here:

http://wordpress.org/extend/plugins/google-ajax-translation/

Installation is very simple:

  1. Download the plugin archive and expand it
  2. Put the ‘ajaxtranslate.php’ file into your wp-content/plugins/ directory, or put the ‘ajaxtranslation’ folder into your wp-content/plugins/ directory.
  3. Go to the Plugins page in your WordPress Administration area and click ‘Activate’ for Google AJAX Translation.
  4. Have fun with your blog readers.
  5. Please see my blog as an example

Couple things still need to know:

  • Google Ajax Translate only allow 500 characters right now (March 2008)
  • So this plugin only supports translating the first 500 characters of your blog comments
  • In the current version(0.1), I only enable comment translation by default. There are two reasons for this:
    • Most of your posts are more than 500 characters, but most of your blog comments aren’t
    • Google will translate characters inside of html tags, which will mess your blog for sure
  • If you still want to use it with your post too, please comment out line 79 in ajatranslation.php
  • This is just an initial release, lots of feature will be added in. Please stay tuned.

If you want to do some changes and glad to share with all of us, please feel free to comment here or send me email @ libin.pan at gmail dot com.

I hope you will like it.

Want to know more?

59 responses so far

First day in LearnHub

Mar 17 2008 Published by under English,Ruby

Today is the day!

It’s my first day in LearnHub. Pretty exciting! Time to have fun with Ruby on Rails fulltime!

Here is our development team at March 17, 2008:

Want to know more?

No responses yet

How to create a working Facebook Application in a minute?

Mar 11 2008 Published by under English,Facebook

http://learnhub.com/lesson/videos/36-one-minute-facebook-application

I’ve created my first video lesson on LearnHub.com.

This video is 1 minute and 5 seconds long. The first minute shows how to create a Facebook Application, followed by 5 seconds showing the app in action!

Credits:

ScreenFlow 1.1 from Vara Software

Music is cut from Jazz in GarageBand

Application is on: http://apps.facebook.com/learnhubdemo/

Planning on the next one: 5 minutes Facebook Application by RFacebook and HAML. Stay tuned, please. :D

read more | digg story

5 responses so far

LearnHub.com – Community learning

Mar 04 2008 Published by under English,Toronto

Savvica Inc announced today the public launch of their e-learning destination, LearnHub.com.

Pretty exciting news for me. Why I am so excited? Well, here is a little secret:

I will start to work for Savvica as a Ruby or Rails developer in less than two weeks. :)

What is LearnHub.com?

http://learnhub.com/about

LearnHub is for people who love learning and sharing knowledge with others. It is a set of tools that make learning online fun and engaging, and teaching online easy and effective.

Why should you care?

  • If you want to learn something:

LearnHub not only helps you learn, but it helps you connect with other students and teachers. A comprehensive reputation system, authority, helps you find reputable teachers, who you can trust.

  • If you want to share something:

Communities offer a showcase for your content, and a way to attract attention to your courses and tutoring. Courses allow you to sell your expertise. Tutoring allows you to sell your time. If you’re an expert teacher, LearnHub is the place to go to put up your content and let students find you.

By all means, LearnHub.com will become a new community for all of us, one of a kind community for learning and sharing.

People come to LearnHub.com everyday, but not the same people when they come out.

Want to know more?

7 responses so far

Democamp Toronto, Flex and Air, Haxies

Feb 25 2008 Published by under Apple,English,Mac,Toronto

1. Democamp Toronto 17

Democamp Toronto 17 is absolutely another great event again! More than 300 people have attended.

Only want to highlight two here:

  • AskItOnline is a online survey system created by Kaitlyn MacLachlan totally on her own. It is a pretty beautiful and useful application. Kaitlyn wins the best demo prize.
  • Ignite presentation “The State of Wireless in Canada Sucks” from Tom Purves could be the best ignite presentation in the history of Democamp Toronto so far. Well done, Tom!

Joey Devilla had a very detail post on the schedules, please check it out here. I believe he will post some more tonight soon.

Check out the official site of Democamp Toronto too: http://democamp.info/

2. Adobe Flex 3.0 and Air 1.0

Finally, its On – Flex 3.0 and Adobe AIR 1.0 Are Here!

3. Haxies updated! It works on Leopard!

Haxies – Love it or hate it!

In computing, a Haxie is a term which was coined by developer Unsanity to describe their products. It is a blend of “hack” and “Mac OS X”. Unsanity uses it to refer to “hacks” that are specifically designed for use with its Application Enhancer (APE) software. These are typically small interface and functionality tweaks to the system or existing applications by injecting code into programs as they load.

Until yesterday, all the haxies which come from Unsanity or other companies didn’t work on Leopard, all of them. It is a real pain for somebody who loves these little, cute and useful hack tools, such as me.

After several months hard work, the development team in Unsanity finally bring them back to Leopard today: Enthusiastic Trepidation!

Here are some of them what I use all the time:

WindowShade X. It minimizes your windows on desktop, or shades them.

FontCard. It shows a WYSIWYG font menu for your applications.

FruitMenu. It helps you easily access everything from your menu.

Menu Master. It helps you to create shortcut keys for any menu items of any your applications.

Big day today, by all means!

2 responses so far

The best projector standby screen

Feb 23 2008 Published by under English

Sometime life is very frustrating at the beginning of you presentation. You have some awesome slides in your computer, after you connect to a projector, nothing happened. Pull off and plug in again, still nothing happened. Suddenly the room becomes very quite and everybody is looking at you. :D

You may start to look at your laptop keyboard and try to find the magic keys which can help you out. But which one is the right one?

Here is a picture what I have taken at the beginning of a presentation today in PodCamp Toronto. This is the best projector standby screen I have ever seen!

It simply tell you which keys can help you share your screen with projector:

  • Panasonic and NEC laptop uses Fn + F3
  • HP, Sharp and Toshiba laptop uses Fn + F5
  • IBM and Sony laptop uses Fn + F7
  • Dell and Epson laptop uses Fn + F8
  • Fujitsu laptop uses Fn + F10
  • Apple laptop uses F7

Pretty cool!

One response so far

Workaround on Aperture 2.0 Crashes

Feb 23 2008 Published by under Apple,English,Mac,OS X

I am using iPhoto to manage all my pictures as I don’t think I am a photographer or a shutterbug in any way. And iPhoto does have all the features what I really need. So I didn’t pay any attention on Aperture before.

One of my friend was coming to me and asked a question about Aperture 2.0 today. He said he was trying it in another day, but it crashed all the time when he want to export pictures out, even click “Export” preference tab would crash too.

This is really unusual for a software which is came from Apple. :)

Before ask google, I did a quick look on his log file. Interestingly, before crashing there was one line said something about color pickers. So I opened his ~/Library/ColorPickers and found he has installed pretty much every color pickers what I have mentioned in another post – “Choose your right colors on Mac is not easy – My Mac Serial 1“. :D

Simply moving color pickers out really solved the Aperture crashing problem. So it is the issue resource then.

Well, we still need some color pickers, right? I put every color pickers back one by one and found “RCWebColorPicker” is the one who breaks Aperture this time.

Anyway, here are some more information:

No responses yet

XPToronto Workshop: Agile Requirements and Planning Using Stories

Feb 20 2008 Published by under Agile,English,Toronto

What’s XPToronto?

The XPToronto/Agile Users Group is a dedicated community of software development specialists located in the Toronto, Canada area. The members of XPToronto are committed to the acceptance of Agile development methodologies, such as Extreme Programming, Scrum and many others.

We usually have discussion meetings on the third Tuesday of every month, except for the months of July and August when we break for the summer. From “Previous Presentations” page you can find a lot of Agile experts and book authors. Such as:

Yesterday’s meeting is about “Agile Requirements and Planning Using Stories”, presented by Lawrence Ludlow who is current leading the XPToronto community.

Lawrence gave a presentation that he developed in the past to introduce new clients to agile development and how Intelliware approach project scoping and plannin. There was a lot of information and experience sharing.

Anyway, if you missed the workshop, there is one quote from Mr. Ludlow you shouldn’t miss:

How to do Agile planning?

  1. Make it work
  2. Make it right
  3. Make it faster

Want to know more:

One response so far

« Prev - Next »