Category Archives: Code

The Power of the Mind, sometimes mine.

Initialize max value with Ruby on Rails ActiveRecord, automagically, from fat controller to smart model

Problem :
you have a Object, lets call it “Item” with a “Display Order” Field, (called display_order, a integer) with controls the order which item are displayed.
When the item is created you could have the field blank and expect the user to know the right place to put it, but a better default is to always [...]

Also posted in Ruby and Rails | 1 Comment

Adding a “loading” image to (just about) any form on submit, with jQquery

under the category of the simplest thing that will actual work, I wanted to have one of those nice animate swilling icons running after the user hit the submit button so they knew that something was really happening.
The core code to this is very simple, using jQuery, just have a hidden image tag [...]

Also posted in Ajax, JavaScript, css | 1 Comment

Quick links as of June 4th 2010

May 28
Jeffery To’s Show Short Link GreaseMonkey Script displays an existing short link for the current page (in the bottom left corner of the window), taking advantage of the short link microFormat. Flickr, YouTube, TechCrunch and all WordPress blogs already use the rel=”shortlink” mircoFormat. Nice!

Clarify Your Story Excerpt is a set of questions will [...]

Also posted in GreaseMonkey, Startup, Web | 1 Comment

Building a Cascading Drop Down Selection List for Ruby on Rails with jQuery Ajax

A frequent need in building web site application is to have users select one value and then, based on that value, select another value. Real world needs for related values might be : Select a Country and then State or Province; Select a Car Manufacture and then a Car Model. Generically it’s about [...]

Also posted in Ajax, JavaScript, Ruby and Rails | 4 Comments

Mesh10 : five years of Meshing in Toronto

This was the week for MESH and MESH U,which is a Toronto based conference which looks at “The Web” and how it is affecting the media, marketing, business and society as a whole. Mesh is in its 5th year and Mesh U (which is a more focused one for the on design, development and [...]

Also posted in Media, Open Source, Social Networking, Toronto, Web | Tagged , | Leave a comment

Quick links as of May 21th 2010

May 15th:
at Smashing Magazine comes a revisit of _why: Tale of a Post-Modern Genius, the sad tale of “Why the Lucky Stiff”, who made many vibrant and colourful contributions to the community, before deleting his online existence last August. The article is a great review of the whole arc and some useful links. [...]

Also posted in Canada, Culture | Leave a comment

Another episode of “It’s Charlie’s Stross’s fiction, we are just living in it” : Will Wall Street require Python?

Saw “Will Wall Street require Python? | ITworld”, on the Hot Links website and thought “interesting”, and then I read the description !
“Charles Stross was right. “with Release 33-9117, the SEC is considering substitution of Python or another programming language for legal English as a basis for some of its regulations.”
I remembered the use [...]

Also posted in Sci Fi, Written | Tagged | 1 Comment

Social Networking for Small Businesses

This is the result of a couple of conversations I’ve had with small shop keepers. They may use some web technologies outside of their business for personal use : ebay, facebook, email, a few e-commerce sites. They may a iPod or smart phone. They may have a one page website for the [...]

Also posted in Business, Social Networking, Web | 6 Comments

Toronto DemoCamp 26, still going strong with noodles, Lean Marketing and 5 Demos.

Last night was the 26th DemoCamp in Toronto, and the 3rd held at Ryerson University’s Ted Rogers School of Management with a crowd of ~300 or so. We had a Key Note by April Dunford and Demos by Kobo Books, Status.net, OpenApps, TeamSave, SWIX. and food. kick ass!!

Also posted in DemoCamp, Social Networking, Startup, Toronto | 2 Comments

IE 6 Death Watch gets a Funeral Service and at least a few more Nails in it’s coffin

Part 2.
Six Months ago I declared One Year to Go on the IE 6 Deathwatch
In the beginning of this year it was disclosed that Google (as well as and 20+ other companies) had been the victim of Chinese cyber attack, attackers called the operation “Aurora” . Microsoft had admitted that Explorer was used [...]

Also posted in Web | Leave a comment
  • Follow

  • Archives (since 2003)

  • Categories

  • Recent Posts

  • Twitter Updates

    Error: Twitter did not respond. Please wait a few minutes and refresh this page.

  • del.icio.us links

  • Flickr

    Hanging Gardens of KensingtonHanging Gardens of KensingtonMore Chocolate CakeMore Chocolate Cake
  •  

    September 2010
    M T W T F S S
    « Aug    
     12345
    6789101112
    13141516171819
    20212223242526
    27282930  
  • Spam Blocked