Archive for the 'FireFox' Category

mount WebDav in Ubuntu/Linux from FireFox

Gallery_mount_with_webDavOn a standard photo Gallery, you can select to mount Gallery on your desktop with a WebDAV client. I searched for an easy solution to mount webdav from the browser but was not able to find any scripts doing so with only one click. See the first picture to see how you find the link on a Gallery 2.0.

Here is the simple script: (Read more for an advanced script)

#!/bin/sh
 
DAVURL=`cat "$1" | grep ":url" | egrep -o "http[^< \"]+"`
DIR=`echo $DAVURL | egrep -o "[a-zA-Z0-9\.]" |xargs | sed s/\ //gi`
MOUNTPATH="/media/webdav.$DIR"
 
gksu -- mkdir $MOUNTPATH
gksu -- mount.davfs -onoaskauth $DAVURL $MOUNTPOINT
nautilus $MOUNTPOINT

Continue reading ‘mount WebDav in Ubuntu/Linux from FireFox’

Firefox 3.0 crashed and would not start up again

I’m using Firefox 3.0b5.. and suddenly it crashed on me.. Guess that’s in it self is no surprise.. But this time, it would not start up again when i clicked on the icon again.. I guess a reboot of my Ubuntu would have fixed the problem…

But here is how I temp-fixed it
Continue reading ‘Firefox 3.0 crashed and would not start up again’

Building Liferea 1.5.3 from tar.gz

When installing Liferea 1.5.3 from the tar.gz file, I ran into these problems, and here is a solution if you’re running Ubuntu. Here is how I managed to install all needed libs to get liferea 1.5.3 compiling. This is how ./configure become:

liferea 1.5.3
 
Build Mozilla Plugin............ : yes (firefox)
Build XulRunner Plugin.......... : yes
Build WebKit Plugin............. : no
Build GtkHTML Plugin............ : yes
 
Build libnotify Plugin.......... : yes
Build LUA scripting Plugin ..... : yes
 
Use X Session Management........ : yes
Use DBUS........................ : yes
Use NetworkManager.............. : yes
AVAHI Support................... : yes
 
Liferea will be installed in /usr/bin.
 
configure complete, now type 'make'

Continue reading ‘Building Liferea 1.5.3 from tar.gz’

Make a VCARD file of your Facebook friends

This script is OLD. It does not work on the new facebook

A hot tip to get a VCARD file of your facebook friends.

Go to http://www.facebook.com/mobile/?phonebook and paste this javascript in the URL:

javascript: var s=""; for each(person in document.getElementsByClassName("info")) { if(person.firstChild) { s+="BEGIN:VCARD<br>VERSION:3.0<br>"; var fullname = person.firstChild.firstChild.innerHTML.split(" "); var firstname = fullname[0]; var surname = fullname[1]; s+="N:"+surname+";"+firstname+";;;<br>"; s+="FN:"+firstname+" "+surname+"<br>"; var phone=person.childNodes[1].innerHTML; var phonenumber = phone.substring(0,phone.search("<span")).replace(/\./g,"-"); if(phone.search("<span>M</span>") != -1) { s+="TEL;type=CELL;type=pref:"+phonenumber+"<br>"; } else if(phone.search("<span>L</span>") != -1) {    s+="TEL;type=HOME;type=pref:"+phonenumber+"<br>";  } if(person.childNodes[2]) { phone=person.childNodes[2].innerHTML; phonenumber = phone.substring(0,phone.search("<span")).replace(/\./g,"-"); if(phone.search("<span>M</span>") != -1) { s+="TEL;type=CELL;type=pref:"+phonenumber+"<br>"; } else if(phone.search("<span>L</span>") != -1) { s+="TEL;type=HOME;type=pref:"+phonenumber+"<br>";  }   }   s+="END:VCARD<br>"; } } document.write(s);

Firefox 3.0 beta 5 on Ubuntu 8.04

After upgrading to the new Ubuntu 8.04 LTS, I’ve got some minor problems with my browser.

I guess that problems I’m experiencing now is going to be better later.

Look at the list of plugins/extensions I have, few of them are ready for the 3.0 version of Firefox:
Continue reading ‘Firefox 3.0 beta 5 on Ubuntu 8.04′

liferea-add-feed – Start Liferea if it is not running to add RSS feed

The bash script /usr/bin/liferea-add-feed is adding the url you send as an argument to your list of rss feeds in Liferea. If liferea is not running it will tell you “Liferea is not running! You need to start it first.” but if you did like me, the url is passed from firefox to the liferea-add-feed -script without you seeing that anything goes wrong. To avoid this, I changed the liferea-add-feed script so it makes sure that liferea is running before trying to add the RSS feed.
Continue reading ‘liferea-add-feed – Start Liferea if it is not running to add RSS feed’

All-in-One Gestures

All-in-One Gestures (firefox plugin) makes firefox feel more like Opera.

And it is very customizable. Look at the settings:

all_in_one_gestures4.png all_in_one_gestures2.png all_in_one_gestures3.png all_in_one_gestures4.png

Problems with extra vertical space after forms

I was irritated by the extra vertical space after forms in tables.But that was before I did a search on Google and found this article:
Problems with extra vertical space after forms
To prevent extra spacing below a form, it is usually sufficient to set the form element’s bottom margin to zero, e.g.
[html]

[/html]
However, for older browsers, additional methods might be needed. Continue reading ‘Problems with extra vertical space after forms’

Moving wordpress database, converting between UTF8 and ISO-8859-1

Yes, I was downgrading because of moving a database from a newer MySQL to a older one. I’ve got problems with some characters in the database. Some UTF8-converting stuff. Well, I don’t think this is the best way, but it worked. Continue reading ‘Moving wordpress database, converting between UTF8 and ISO-8859-1′