Skip to content

Facebook Causes Firefox To Lag And Hang

They say this problem already occurs in the previous versions of firefox but I started having this prob since later versions of firefox (3.5+) to fix this:

  1. Enter “about:config” in the address bar
  2. Find the entry “javascript.options.jit.content”
  3. Change it from true to false by double clicking on it.
  4. Restart the browser.

Some say that the problem seems to be the native-code compilation that Firefox recently added/enabled for JavaScript, under the name TraceMonkey but I still don’t know why this occurs in the early versions of firefox as I said above.

Categories: Guides, Tweaks, facebook, firefox.

Tags: , , , , ,

Restoring One Click Highlight All In Firefox Browser Running Under Ubuntu

When you’re used to using a Windows and just migrated recently into Linux – Ubuntu in particular, you’ll probably find a lot of changes and one of those is this one click highlight feature in firefox’s address bar. By default, one-click highlight all is not enabled in Ubuntu. So, to restore it:

Type the below code in your firefox’s address bar:

about:config

Then click:

I'll be careful, I promise..

Copy the code below and paste in the filter box

browser.urlbar.clickSelectsAll

Double-click on it to enable the feature again.

That’s it!
You need to restart your browser.

Categories: Guides, Tweaks, firefox, linux, ubuntu.

Tags: , ,

Fixing Overlap Issue About Wibiya Toolbar and Embedded Flash Videos

And so I request for an invitation about using the beta version of Wibiya toolbar and lucky enough to get one. However, flash videos embedded in my site seem to overlap Wibiya’s toolbar (see image below) which looks pretty messed up.

wibiya

So to fix it, you have to these elements in your video code:

Add the below code directly after your opening “object” tag.

code

then add this code within your “embed”tag.

code2

now your overall code should look like this:

code3

This works under IE6+, Firefox 2+, Safari, Chrome and Opera.

Note: Wibliya states that this is only a temporary workaround and an auto update fix will soon be available.

Categories: Guides, Wibiya, firefox.

Tags: , ,

Reinstalling Grub On Ubuntu After Windows Messed UP Your MBR

HOW TO: Reinstall GRUB Boot Loader

If you already have an Ubuntu installed or any other Linux distros installed and you want to install Windows with it so you’ll have a dual boot machine, your HD’s MBR will be messed up by the Windows XP’s setup. This is best and easiest way about reinstalling your Grub on Ubuntu is this:

  1. Boot your computer up using a Live Ubuntu cd or USB.
  2. When you reach your desktop, fire up your terminal window and type:
  3. grub
  4. Followed by:
  5. root (hd0,0)

    or whatever the setup of your hard disk + partition
    (if in case its in the first hard disk and in the first
    partition, i.e. /dev/sda1 | then the example above would work)

  6. When you’re pretty sure about your hard drive and partition number, you can then type the following:
    setup (hd0)
  7. When it’s done, type quit to exit:
    quit
  8. Now that you’re done, all you have to do is to reboot to see if it works.

Categories: grub, linux, ubuntu.

Tags: , , ,

Solving Facebook Pidgin Plugin Error: Dependency is not satisfiable: libjson-glib-1.0-0 (>= 0.7.6)

I downloaded a .deb package of Facebook plugin for Pidgin so I can be online anytime without having to open facebook homepage but when I try to install the deb package, it gives me this

Error: Dependency is not satisfiable: libjson-glib-1.0-0 (>= 0.7.6)

It happens when the libjson-glib-1.0-0 is not currently installed or the version is below 0.7.6. To solve it, you have to download and install the newest version of libjson-glib-1.0-0 which is available here: libjson-glib-1.0-0 there are a lot of versions available there so you have to be carefull in choosing the right one depending on your machine’s architechture.

In my case, I am using Ubuntu 9.04 Jaunty jackalope i386 architechture and this one works for me.

After installing libjson-glib-1.0-0 you can now install the facebook chat plugin for pidgin .deb file or you can also configure it by yourself.

Thats it! Now you can chat with your facebook friends without opening a browser.

Categories: Pidgin, facebook, libjson-glib-1.0-0, linux, ubuntu.

Tags: , , ,

Sharing Files from Ubuntu Linux to Windows and Vice Versa Through Samba

If you have a multiple Operating Systems running in one network and you want to share files from linux to windows or vice versa, you have to install Samba under linux in order for you to create a peer to peer connection between them. To do so, following these instructions:

Install Samba on your linux maching by pasting the following command in your terminal:

sudo apt-get install samba

Configuring Samba:

1. Stop Samba first…

sudo /etc/init.d/samba stop

2. Open Samba config:

sudo /etc/init.d/samba stop

3. Replace all the contents with the following:

[DDET click to copy the code]

[global]
; General server settings
netbios name = your_netbios_name
server string =
workgroup = YOUR_WORKGROUP
announce version = 5.0
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192

passdb backend = tdbsam
security = user
null passwords = true
username map = /etc/samba/smbusers
name resolve order = hosts wins bcast

wins support = no

printing = CUPS
printcap name = CUPS

syslog = 1
syslog only = yes

; NOTE: If you need access to the user home directories uncomment the
; lines below and adjust the settings to your hearts content.
;[homes]
;valid users = %S
;create mode = 0600
;directory mode = 0755
;browseable = no
;read only = no
;veto files = /*.{*}/.*/mail/bin/

; NOTE: Only needed if you run samba as a primary domain controller.
; Not needed as this config doesn't cover that matter.
;[netlogon]
;path = /var/lib/samba/netlogon
;admin users = Administrator
;valid users = %U
;read only = no

; NOTE: Again - only needed if you're running a primary domain controller.
;[Profiles]
;path = /var/lib/samba/profiles
;valid users = %U
;create mode = 0600
;directory mode = 0700
;writeable = yes
;browseable = no

; NOTE: Inside this place you may build a printer driver repository for
; Windows - I'll cover this topic in another HOWTO.
[print$]
path = /var/lib/samba/printers
browseable = yes
guest ok = yes
read only = yes
write list = root
create mask = 0664
directory mask = 0775

[printers]
path = /tmp
printable = yes
guest ok = yes
browseable = no

; Uncomment if you need to share your CD-/DVD-ROM Drive
;[DVD-ROM Drive]
;path = /media/cdrom
;browseable = yes
;read only = yes
;guest ok = yes

[MyFiles]
path = /home/samba/
browseable = yes
read only = no
guest ok = no
create mask = 0644
directory mask = 0755
force user = your_username
force group = your_username

[/DDET]
Remember to replace the all those written in BOLD.

  1. netbios name = you can use any betbios name here but to avoid confusion, it’s better to choose the same name you configured upon installation.
  2. WORKGROUP = replace this with your windows machine’s workgroup (something like MSHOME or WORKGROUP).
  3. path = the path of the folder you want to share

If you want to make a folder that you want to share, type the following command in the terminal:

sudo mkdir /home/samba

The above code will make a directory in your home folder named ‘samba’. Because we are going to share it with other users (windows and linux), make sure to change its permission to writeable:

sudo chmod 0777 /home/samba

4.  force user and force group = this should be your username.

Editing the Samba config is now done. Make sure to save it before closing.

Now you have to start samba again:

sudo /etc/init.d/samba start

Time to add users:

sudo useradd -s /bin/true desired_name
sudo smbpasswd -L -a desired_name
sudo smbpasswd -L -e desired_name

Replace desired_name with your choosen username.
*first command will add another user
*second will set a password for that user
*third will enabled the newly created user

*Note that if you want to add your own username, you just have to type the second and third command.

Everything should be ok now.

To the folder you share in Windows:

  1. Right click my computer
  2. Select map network drive
  3. Type in the \\ip of your linux\MyFiles
       ex: \\192.168.0.123\MyFiles

4.  Enter username and password.

Done :D

*source: UbuntuForums

Categories: .htaccess, Samba, Windows.

Tags: ,

Installing Medibuntu Repository, Playing Encrypted DVDs, and Installing w32codecs

If you are new to Ubuntu, you might want to install Medibuntu Repository. So you can install some packages needed to play encrypted DVDs, and w32codecs.

To install Medibuntu Repository, paste the following code in the terminal:

sudo wget http://www.medibuntu.org/sources.list.d/`lsb_release -cs`
.list --output-document=/etc/apt/sources.list.d/medibuntu.list
&& sudo apt-get -q update && sudo apt-get --yes -q --allow-
unauthenticated install medibuntu-keyring && sudo apt-get -q update

Please note that the above code will also intall Medibuntu’s key into your keyring which is neede to authenticate the Medibuntu packages.

Now to play encrypted DVDs, you have to install the libdvdcss2 package. libdvdcss is a simple library designed for accessing DVDs like a block device without having to bother about the decryption. Read more about libdvdcss here.

To install the package paste the following command in your terminal:

sudo apt-get install libdvdcss2

And if you want to play some formats  Windows formats, Real, and Apple Quicktime which do not have native codecs under Linux, you have to install the w32codecs to do so, type the following code (for 32bit machine):

sudo apt-get install w32codecs

or if you’re running on amd64 architecture, you will have to paste the below code in you terminal:

sudo apt-get install w64codecs

If you have more question or looking for a codecs which does not included here for some reason, you might want to visit Medibuntu’s official website by clicking here.

Categories: Guides, Medibuntu Repository, libdvdcss, linux, ubuntu, w32codecs.

Tags: , , , , , ,

Anne Frank Surfaces Video in Youtube

Anne Frank Surfaces – The only known video footage of famous diarist and Holocaust victim Anne Frank was uploaded onto the Internet – Youtube to be exact by the Anne Frank House.


Anna Frank can be seen at the 9 seconds mark in the clip leaning out of a second-storey window to get a better look at the bride and groom. The Guardian reports that the scene was filmed on July 22, 1941 and was provided to the museum by the couple in the 1990s. The family was discovered in 1944 and Anne died in a Nazi concentration camp in 1945.

Otto Frank, Anne’s father recieved the 5 second version of the video by the married couple in the 1950s. That is after Anne Frank’s diary became widely known.

Annemarie Bekker of the Anne Frank House said:

The footage is very moving and very unique because these are the only moving images of Anne Frank. The museum has had the footage for some time, but thought YouTube would be a good platform to show the film and the other films about her life. It’s another way to bring the life of Anne Frank to the attention of younger people, and all people worldwide.

The Anne Frank House contacted the husband and wife who are still alive and living in Netherlands in around 1990s and provided the longer version of the video.

Categories: Anne Frank.

Tags: , , ,

PHP Redirection Script

If in case you have moved your old blog into a new one and you don’t certainly want all the traffic from there to get wasted, you might want this simple PHP redirection script. All you have to do is to redirect all you visitors into you new site address. Another reason for this is when you’re participating in an affiliate program like I do, you can make a simple and visitor-friendly affiliate link instead of pasting the actual nasty-looking hop link.

  • The best thing about this is that users are redirected quickly and seamlessly without them having click on another link.
  • Because this is a very simple PHP script, this works on all browsers.
  • When the user clicked the ‘back’ button, they’ll then see the last viewed page instead of the redirection page.

Here’s how to do it:

1. Make a PHP page by copying the code below but be sure to change the url of your new site.

[code lang="php"]   [/code]

2. Make sure that you remove all the text inside your page other than the PHP script or else it won’t work.

Want to see it in action?

Click the link below and you’ll notice that you’ll be redirected to my main site without clicking any more links.

http://gonkyouka.com/blog

That’s it!

If you have a question about it, feel free to leave a comment.

Thanks!

Categories: Guides, PHP, Tweaks, wordpress.

Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype:

Because I now used wordpress as the platform for my sites and blogs, I installed Google (XML) sitemap generator plugin but in some way I got this error: Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype:

So after googling, here’s what i did:

add the addtype directive in your .htaccess file. To do so, copy the line below and add it in you .htaccess file.

AddType application/xml .xsl

If in case you dont have an .htaccess file, try creating one by making a new file in your root directory with the name .htaccess

Categories: .htaccess, wordpress.

Tags: ,