We took the subway to St. Lawrence Market today looking for a nice piece of fish.  Apparently if you go later on Saturdays you can finagle a better price from the vendors because they are closed Sunday and Monday. We paid full price but couldn’t be happier, this is what we got :

B.C. Organic Salmon Fillet
Organic B.C. Salmon FIllet

We were impressed with the price of fish though we should have paid closer attention as we weren’t looking for organic but somehow ended up with this beautiful ($30 / 1.77 LB) B.C. salmon fillet (16.99 per pound).  Atlantic and Sushi grade salmon sell for 10.99 / 12.99 per pound respectively which is reasonable in comparison to the fish market on Danforth.  We plan to enjoy this with some long grain rice and snow peas.

I am looking forward to our next visit when we have more time to explore – definitely a great experience.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • YahooMyWeb
  • Google Bookmarks
  • Yahoo! Buzz
  • TwitThis
  • Live
  • LinkedIn
  • Pownce
  • MySpace

I subscribed to TekSavvy internet services before moving into my new apartment, not knowing how much they actually kicked ass! (Un)fortunately our super switched apts half way through the month after having my dry loop set up in the old apartment leaving us with a leeched wifi connection that was sketchy at best.

Today was pure shit so I decided to hit the subway and grab some KFC and find some alligator clips to mess with our demarkation box in our “bunker” (temporary apartment until ours is painted).

Got some clips and went one by one down the trunk until I found a loop with battery and 411 service – thank god no one heard me on their phone!  Here’s a pic demonstrating tonights madness :

IMG_2030

For some ridiculous reason I started from the bottom of the trunk… anyway the third last available selection happened to carry a DSL signal – Woohoo!  Anyway I am celebrating my accomplishment with rum and a mess of downloads – hope you all enjoy your night, cheers!

PS : I am now enjoying  unlimited bandwidth (avec MLPPP) at about 760 KB/s via usenet – Rod stewart playing all night!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • YahooMyWeb
  • Google Bookmarks
  • Yahoo! Buzz
  • TwitThis
  • Live
  • LinkedIn
  • Pownce
  • MySpace

It gets very repetitive writing forms for clients – that’s why I decided to take the last hour to write this piece of fine code.

It takes whatever title you give a form object and creates a copy / paste dump for your view, controller and Javascript.  It doesn’t handle checkboxes or select boxes – but that is because I find the form is not the time killer; it’s the Javascript and validation.  The nice part is that most of the heavy lifting is done for you – plus you do not have to worry about spelling mistakes or silly syntax stuff because it is all duped in the script.

I’d like to pop this up on a subdomain after making it pretty – please comment if you think you will find this little app useful.

PS. During the recording I noticed a small error in the code – no need to comment, it is fixed now.  The json_encoded array was returning a value that would not display in the error fields due to a mismatch in the name.

UPDATE : Check Out the Application Here!

I have fully tested the generated code and it works great, here’s a video demonstrating how to use “FormTorch”.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • YahooMyWeb
  • Google Bookmarks
  • Yahoo! Buzz
  • TwitThis
  • Live
  • LinkedIn
  • Pownce
  • MySpace

At least once a week I am approached with a rewrite or modification to someone else’s code.  I decided to take on the most recent mod for a friend and am not enjoying it one bit.  It is getting harder and harder for me to take on new projects because of garbage like this :

Bad Code

What the hell kind of form validation is that?!

My question is how does this pass company standards?  How are people getting away writing this rubbish and being paid top dollar over someone who codes to standards and follows MVC.

I am definitely no PHP guru – but for god sakes start writing maintainable code people!

If you are wondering what inspired this rant – take a gander at this gimmicky product… I need a drink.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • YahooMyWeb
  • Google Bookmarks
  • Yahoo! Buzz
  • TwitThis
  • Live
  • LinkedIn
  • Pownce
  • MySpace

Being woken up several times throughout the night from anonymous calls is not fun.  Here is a screencast (shot with my shiny new MacBook) that explains how to delimit these annoying calls while still being able to route incoming SIP calls from Gizmo and IPKall to their appropriate destinations.

Here is the code I used to allow IPKall incoming SIP connections :


[ipkall]
disallow=all
host=66.54.140.46
context=from-trunk
insecure=port,invite
qualify=yes
type=peer
dtmfmode=rfc2833
allow=ulaw
nat=no

[ipkall2]
disallow=all
host=66.54.140.47
context=from-trunk
insecure=port,invite
qualify=yes
type=peer
dtmfmode=rfc2833
allow=ulaw
nat=no

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • YahooMyWeb
  • Google Bookmarks
  • Yahoo! Buzz
  • TwitThis
  • Live
  • LinkedIn
  • Pownce
  • MySpace