LeastUsedFeature


Internet Explorer to die in September 2011
February 9, 2011, 8:58 pm
Filed under: Uncategorized

According to my (very) approximate extrapolation of StatCounter’s data, that is the date when IE6 will be gone.

IE7 is only “due” in over a year, around March 2012.

Let’s say we’re already very lucky that these two curves are steadily going down, maybe because of the help of the many giants who have made the move we’d all wish we would do.

With both browsers being out of support by Microsoft, we can even think this drop will go faster.

Now back to actually debug the 4 different versions of IE that I my employer requires me to support.



jsperanto
July 27, 2010, 5:45 pm
Filed under: Uncategorized

jsperanto is my first open source javascript lib. It help you with translations and has handy support for interpolation, pluralization and what I call nested-lookup (a dictionary entry can reuse another entry). Read more about it on the github page.

It just been reviewed by DailyJS, who said that it “seems like a pretty solid project”.

Je me bombe le torse en ce moment 🙂



The joy of beta software
December 11, 2009, 7:53 pm
Filed under: 1 | Tags:



Did you mean Gmail is second class
September 1, 2009, 9:56 pm
Filed under: 1

Untitled

As you can see Google low profile bookmark product now have “Did you mean” feature while high profile, high use GMail doesn’t. What’s the logic here?



Quebec people googling for google ?
August 10, 2009, 2:07 pm
Filed under: 1

Yes “google” is the 6th most used search term on Google.
Picture 31
I don’t get it. Or maybe there is tons of peoples not getting what Google is. Now say thanks to Google insights for search for knowing that.



Prayer to jQuery, the holy library
May 15, 2009, 3:30 am
Filed under: 1

You sure know about jQuery. The fantastically fast, concise, performant and hype-er-ously popular javascript library. and I forgot to say the word: magic.

Even though its way better that peace on earth, its gotta have some delta with the previously known perfection : Prototype.
And that delta gotta have some part that sometimes makes the balance go positive on the prototype’s side. That’s for sure. Its in the universe’s own definition.

Prototype’s $ takes elements or an id directly and it doesn’t care.

jQuery badly request the # for ids, following the CSS religion.

But I want to be able to pass around ids, HTMLelements (as the w3c specified them some 10 years ago) or extended element (be it a jQuery object or prototype’s Element) and not bothering more about that than to dollarsign-it to be sure it stands at the same level as me, the highest level of course! You would not want to talk to those others people that are *lower* than you, it just feels disgusting, especially in my oh-so ever-clean, zen and pure javascript code.

Mmmh that felt so good. But I guess, I  just don’t still fully get the (new)holy library.

Here’s the prayer : Oh lordy API that turns the dirty DOM into cleverness, Hear my pain by making your Christ the Dollar-sign be more inclusive by treating strings without clothes just as equals as their sharply dressed brothers, the selectors.

update: and yeah, make sure to make it fast cause I’m gonna call it all the time for all and nothing. But I’m already convinced that you do care about speed



Can’t know the price before buying ?
April 23, 2009, 2:06 am
Filed under: 1

Apple evil, please tell me why ?

apple evil

How handy. How about being usable from the just-before-buying step. All the other stores are doing it (com-pu-ting taxes & rebates) but not Apple. They where really fast and strong about saving my credit card number but don’t ask for a Grand total without actually buying the thing. I guess that’s thinking differently.

That makes me imagine UX geniuses being hold hostage by dark  suits with no face.



WiiAsk… and they Answer?
March 25, 2009, 5:16 pm
Filed under: 1

Nintendo listening to its customer? That’s new! (reputation quand tu nous tiens)

Still, they are far from using something like GetSatisfaction or UserVoice

…but this update is sure the only one so far to get me that *exited*. Bah the reality is:  Support for games on SD was desperately needed to the point to ask for a Wii 2.0 already (OK only as long its friendly with wii games and wii-wares and wii-virtual-console and those other Rock Band 2 things I bought and will buy). I’m telling you, the thing only has 512mb onboard. That is, with my scientific calcul, only 13 games like the magnifique World of goo.

Anyways this good news is only to learn about an old bad one. No SDHC.  There is these day when the Wii sure feels like the console of the last deceny. As soon as you start looking under the hood or that you hook up the graphic to your big TV its “back to the future” time.

Don’t get me wrong, I love my Wii more that any other shooting and sporting console. But Nintendo could push all this splendid innovation so much higher. Many investors are or were betting on this. Users are still fantasizing about all the possibilities, like :

  • Support for two Wii Balance Board would allow for snowboard, skate, or butt competition with your friend.
  • The games in Wii fit are so enjoyable but so short lived, even my dad has gone though them in an hour.
  • The Wiimote itself could live a second life as a pointer for the living room PC
  • The Wifi is just starting to be used, imagine Wii sport but online!

Video game consoles : love that you know will die. (and you invest in it)

UPDATE : If the  guys over HomeBrew Channel can do SDHC (amazing!) I’m sure Nintendo should be able to.

UPDATE : So they did, I’ve just copied a game to a 8GB SDHC card and played the game from it.



You don’t get to make the news every day
December 12, 2008, 2:33 am
Filed under: 1

Here’s what’s publicly available about my new job. Yes-yes, I’ve got into the glamorous world of advertising though the software development door. Give me two or three months and I’ll be an elite creative just like him

99F is a must see, and completly mandatory for anyone in the same industry.

Staying into glamous, I can now say, just like Lisa: I’m m-apple person! . What iPod-danse-move could I do while holding my porn-ish new mac book. Just watch me! (pic not included, please use the imagination feature that came with your brain)



My tracks to Rails on Windows
November 26, 2008, 8:37 pm
Filed under: 1

You can’t always control your environment. I had to live with windows. And a 10-years-old system that deserve to be called legacy. Here’s how it went to add Rails into the mix

Setup to integrate with

Context matters. The full environment is Windows server 2003 running IIS 6 which is making available some C++ executable through plain CGI. These exe “controllers” are talking to and through MS SQL server 2000-2005.  Yes that’s a web application in C++. So adding Rails to the mix is really bringing happiness into this.

Getting requests to Rails

IIS 6 doesn’t have any built-in way to redirect request to our friend mongrel. There’s an ISAPI filter that helps with this : ISAPI Rewrite 3. It mimicks Apache’s mod_proxy and mod_rewrite. It works well, is easy to setup and its stable, just like advertised as the recommended solution for windows in pragprog’s Deploying Rails application. It was very useful to boot our integration as first but it’s a 99$ commercial application and that was a deal breaker in the long run since the app needed to be deployed on many servers. That and the fact that it was impossible to reach anyone at that company willing to make a bigger deal that their set-in-advance volume discount.

OSS to the rescrue, Apache is available under Windows. So the real mod_proxy won. It ended up with a pretty standard configuration plus these line for the redirection

ProxyPass /legacy_path http://127.0.0.1:8080/legacy_path
ProxyPassReverse /legacy_path http://127.0.0.1:8080/legacy_path
ProxyPass /rails http://127.0.0.1:3000
ProxyPassReverse /rails http://127.0.0.1:3000

This effectively proxy and reverse proxy all request made for anything under /legacy_path to IIS, which is now listening on the 8080 port. All request made to /rails to our mongrel listening on the 3000 port. Luckily the legacy app was already scoped down under a single URL prefix. For the Rails app adding

ActionController::AbstractRequest.relative_url_root = '/rails''

after the Rails::Initializer.run block (inside environment.rb) was sufficient.

Database access

MS SQL server, not the typical first-class citizen in Rails world. The default connection to it was through ODBC. Not the fastest but with integration like this, the path of least resistance is the one to take. So here you go with two gems

gem install activerecord-odbc-adapter
gem install odbc-rails

and a database.yml config (username & password should be removed for windows-based auth)

production:
  adapter: "odbc"
  dsn: "my_dsn_name"
  username: "username"
  password: "password"

Deployment and other integration tidbits

No fancy Capistrano for us, locked-in-windows-user. I needed to deploy the same app on multiple servers often without an internet connection. Freezing Rails did easily solved a good share of it but not all. The other native gems could not be vendored. I finally gathered the needed gems files and the one-click ruby installer. Here’s the shell food that turns them alive along with their dependencies.

install ruby silently
ruby186-26.exe" /S

Install mongrel
gem install gem_plugin-0.2.3.gem --no-ri --no-rdoc
gem install cgi_multipart_eof_fix-2.5.0.gem --no-ri --no-rdoc
gem install mongrel-1.1.5-x86-mswin32-60.gem --no-ri --no-rdoc

Install mongrel service gems
gem install win32-api-1.2.0-x86-mswin32-60.gem --no-ri --no-rdoc
gem install windows-api-0.2.4.gem --no-ri --no-rdoc
gem install windows-pr-0.9.2.gem --no-ri --no-rdoc
gem install win32-service-0.5.2-mswin32.gem --no-ri --no-rdoc
gem install mongrel_service-0.3.4-i386-mswin32.gem --no-ri --no-rdoc

Install ODBC support
gem install activesupport-2.1.0.gem --no-ri --no-rdoc
gem install activerecord-2.1.0.gem --no-ri --no-rdoc
gem install activerecord-odbc-adapter-2.0.gem --no-ri --no-rdoc
gem install odbc-rails-1.5.gem --ignore-dependencies --no-ri --no-rdoc

Install mongrel as a service
mongrel_rails service::install -N "service_name" /
    -p 3000 -e production -c "C:\path\to\rails\app"

set it to auto-start
sc config "service_name" start= auto

Having the database password in a non-clear text manner was requested for more or less rational security reason. This blog post showed me a nice solution. Not what I would call army-level-security but it fulfilled the request. It might also be useful to know that you can <% require some_file%> inside the yummy-yaml as well

I’m sure I’ve missed some details but the big picture is there. Wish it’ll be useful in some way to someone. If it’s the case please “comment-down” (as in the price is right) to bring more humanity here.