Tue, 19 Sep 2006
Damn IE JS event behaviour
I've wrote some application in Rails, using prototype/scriptaculous javascript library. It works great in FF, but in IE it has some fails...

I've had following code:

<%= check_box "adsl_cpe_chk", "yes", {:onChange => "if (this.checked) { Element.show('adsl_cpe');} else { Element.hide('adsl_cpe');}"}%>
  <select name="adsl[cpe]" id="adsl_cpe" style="display:none">
    <%= options_from_collection_for_select @data_devices, :code, :name%>
  </select>
and if I clicked (set) checkbox, the select field was still hidden - until I clicked somewhere else - with IE only. I've discovered, if I replace onChange with onClick, it works ok. A few hours of trying everything are gone :(


(posted at 13:40 | filed under programming | link)    (comments | add new)
Sun, 17 Sep 2006
Piracy is killing the movie industry

Anti-piracy campaign by kalahari.net


(posted at 21:09 | filed under | link)    (comments | add new)
Wed, 13 Sep 2006
Retrieving user login/pass from HTTP_AUTH*

I'm using this to get login information from mod_ldap_auth - user is authenticated against Microsoft's Active Directory (AD)

def getAuthenticated
  if request.env['HTTP_AUTHORIZATION'] then
    authdata = request.env['HTTP_AUTHORIZATION'].to_s.split
    user,pass = Base64.decode64(authdata[1]).split(':')[0..1]
    [ user, pass ]
  else
    [ "", "" ]
  end
end


(posted at 11:14 | filed under programming/rails | link)    (comments | add new)
Tue, 12 Sep 2006
Chcete se poradne nasrat?

Tak pak si staci precist nasledujici clanek "Pohoda v socialni siti". (Czech only, sorry)


(posted at 18:33 | filed under | link)    (comments | add new)
... :)

:))


(posted at 18:20 | filed under | link)    (comments | add new)
Mon, 11 Sep 2006
Got new phone
I've signed an appendix to my agreement with mobile operator so I've got a chance to select and purchase some mobile phones for a discounted price. I've selected SonyEricsson K800i and Nokia 6131 (for wife). Both are fine, nice looking, filled with a lot of functionality, but... I'm a bit disappointed with K800i, eg:

- when store number with *31#+420..., caller is not indentified (when removed +420, it's OK)
- received/called number - when one number calls multiple times a day, only the last one is displayed :(
- SMS writing - when selecting number, I'm unable to change the number (eg. remove *31#) easily

Now testing N6131, seems to be fine - except speaker located at right - the sound is going direct to the hand (if you hold the mobile phone in your right hand)


(posted at 11:09 | filed under | link)    (comments | add new)
Mon, 04 Sep 2006
Victoria & Michael etc for free :)
A bunch of free things were released during last few days. So, download free Victoria & Michal models from daz3d. Follow "Customers who bought Victoria 3.0 Base also purchased:" table to download more models for free.

(posted at 11:05 | filed under | link)    (comments | add new)