Archive for November, 2008
Thursday, November 27th, 2008
What a day yesterday was. Supposedly if you do the whole jQuery no conflict stuff it will be able to play ball with Protoype.js, not true. I wanted to retrieve the value of the currently selected option in a select box with jQuery but for some reason all that monkey patching going on in Prototype just tripped it up.... Read More
Tags: Javascript, jquery, lightwindow, prototype js, symfony
Posted in Javascript, jQuery | No Comments »
Sunday, November 23rd, 2008
Because of all the recent problems with Flash uploading I just opted for uploading in an IFRAME. The IFRAME will reload itself when the upload is finished. When this happens it will trigger a jQuery JavaScript that will update a DIV in the document that contains the frame. It’s really easy, the below example is from a Symfony project so we can’t use the $ sign because it will conflict with the prototype library.... Read More
Tags: Javascript, jquery, symfony, upload
Posted in Javascript, jQuery | No Comments »
Thursday, November 20th, 2008
The other day I needed something to check which version of flash player a user has. It’s all connected to the new problems with uploading that were introduced in Flash player version 10. For some reason the solution we are using needs to know if the player is of version 10 or lower in order to act accordingly. For some reason this will solve a problem with IE6 having a player version lower than 10, don’t ask me why, I’m not the one implementing this. My only mission was to detect version.... Read More
Tags: flash, Javascript
Posted in Javascript | No Comments »
Friday, November 14th, 2008
Update: I just had to install the whole stack again, now apart from the gems the following is needed:
1.) Mysql drivers/libs/dev files, beats me which ones, I just installed them all in synaptic.
2.) OpenSSL libs/dev files, installed them too via synaptic.... Read More
Tags: ActiveRecord, RoR, Ruby, Ruby on Rails, scaffolding
Posted in Ruby, Ruby on Rails | No Comments »
Wednesday, November 12th, 2008
I’m writing in the middle of the jungle, using a GPRS modem on Linux, read on and you’ll understand why that’s such a massive milestone. Up until now there has been only one single reason why I’ve still used Windows, my Salomon modem wouldn’t work on Linux.... Read More
Tags: DTAC, GPRS, intrepid, Linux, Salomon, ubuntu
Posted in Linux | No Comments »
Wednesday, November 12th, 2008
I’ve just taken a look at how a rich interface for creating invitations could be created with jQuery UI’s draggables and resizables.... Read More
Tags: css, draggables, html, jquery, jquery ui, resizables
Posted in HTML + CSS, Javascript, jQuery | No Comments »
Monday, November 10th, 2008
Followed by “AJAX in Java alone! JavaScript coding not required. Try it.” states an Adsense ad. ... Read More
Tags: Java, Javascript
Posted in Java, Javascript | No Comments »
Sunday, November 9th, 2008
Did you ever wonder how Warren Buffet managed to get that rich? Pure luck my friend, the man was born with perfect timing, one year after the stock market crash of 1929, at the beginning of the great depression.... Read More
Tags: hpricot, json, Ruby, scraping
Posted in Ruby | No Comments »
Sunday, November 9th, 2008
I’ve just experienced one of the strangest problems ever. A PHP project was probably copied from a Swedish Windows machine to a Linux server, set to handle Swedish somehow. From the server it was then downloaded to a Mac that was probably running Swedish too, and from the Mac to my strictly English Windows installation running Wamp and XAMPP.... Read More
Tags: character conversion, fileutils, find, iconv, Ruby
Posted in Ruby | No Comments »
Sunday, November 2nd, 2008
I just had to convert a lot of xls files to csv, too many to even contemplating doing it manually. I started looking for a solution and found a positive evaluation of PHP-ExcelReader.... Read More
Tags: conversion, csv, date manipulation, excel, PHP, xls
Posted in PHP | No Comments »