poniedziałek, 25 października 2010

Get browser's window size with javascript

Today I've noticed that our beloved Internet Explorer does not interpret document.body.scrollWidth and it doesn't support window.innerHeight. To get browser's window width and height into variables windowWidth and windowHeight you can use some code like

if (window.innerHeight != undefined){
// normal browsers
var windowHeight = window.innerHeight;
var windowWidth = document.body.scrollWidth;
} else {
// ie .. "do different .. "
var windowHeight = document.documentElement.clientHeight;
var windowWidth = document.documentElement.clientWidth;
}

Pidgin freezes on new messages

I had a little problem with Pidgin .. often getting a new message caused Pidgin to freeze .. unfortunately not only Pidgin (but also some other running apps :/). This issue is caused by system notification bubbles and can be permanently fixed by removing the pidgin-libnotify package. Simply run

sudo apt-get remove pidgin-libnotify

in a terminal or use synaptic to get rid of it. After restarting Pidgin everything should be fine :-).

sobota, 23 października 2010

Hp deskjet 3650 driver issues .. 1158: ?

I've been recently trying to install drivers for hp deskjet 3650 under windows xp. I've downloaded an exe file from hp (3600_enu_win2k_xp.exe) and while trying to install it i've got the funniest error message ever



What the hell?

Ehh .. googling showed that installing requires passing "/L1033" parameter to the installer.