I found this useful bit of code today for an ABA check validation algorithm. After realizing that aba routing numbers don’t use the same LUHN10 check that creditcards do, I searched and found that it is a similar but different algorithm. Hope somebody finds it useful.
Today I finally downloaded Google’s Firefox Blogger Web Comments extension. The plugin searches the web for blogger articles relevant to your current browser location. Though it is not perfect, it often comes up with very relevent results. Though this is certainly a cool toy for random perusal of the internet, I am not yet sure it will prove very useful for targeted searches for information. I’ve found the pages it suggests to be convenient distractions from what my original search intent may have been. However, that being said, it certainly is fun and worth checking out.
Today, I found a useful tip about my newly aquired 2005 Toyota Corolla. Dave’s BLOG: Hacking my Camry (sort of) is an article that explains how to turn off the MAINT REQD light when the mainenance people forget to. The manual and all of the docs I found say that this light only comes on when the car thinks it is due for an oil change. So, if the oil change shop forgets to reset it , it will come on an warn about nothing. The solution:
- Turn key to Acc
- Hold odometer push-button in
- Turn key to On
- Watch the odometer reading turn to dashes
- Watch the dashes slowly disappear
- When the dashes all go away, and turn to zeroes, release the odometer button
Hope somebody finds this useful…thanks dave.
I was recently working on a project where I had written some javascript code to manipulate and submit a form. It called the standard javascript form.onsubmit() function. It worked just fine on my test pages but when I paired it with the code the html designer had created.
Suddently, I kept getting this error: "form.submit is not a function". Now, I’ve been coding long enough to know that every form has a submit function. So, what could have gone wrong? It took me a while but I soon realized that the html designer had named the submit button ‘submit’. This overwrote the submit function and made submit an element instead.
The moral of the story: Never name form elements (or really any element for that matter) a javascript keyword, its just asking for trouble.