Posts Tagged ‘xml’

Customize the Google country-specific search in Firefox

Perhaps you have noticed that by default google.com redirects you to a country-specific version of google based on your IP. This is extremely noticeable when you are travelling or using a proxy. We will see two solutions to the problem.

The first solution is to type http://www.google.com/ncr in your address bar. This sets a cookie in your browser, which on the other hand tells google not to redirect you. This solution however is not the best, since you completely disable the country-specific search and if you delete your browser cookies you will have to repeat the procedure.

Note: This solution is not Firefox-specific and can be implemented with every browser.

The second solution is a bit more elegant, as it allows you to use multiple country-specific versions of google search, it is not cookie based and it doesn’t change the default behavior of google.com.

The second solution utilizes the Firefox search bar:

By default all searches made from the search bar use google.com, however it can be extended to support multiple country-specific google flavors. Let’s show how we can modify it to use google.de as well.

Of course you may ask “What is the point of that? I can always type google.de in my browser”. True, but by extending the search bar, you can finally have a uniform way for doing searches, which makes searches a lot easier.

But let’s see how we can extend the Firefox search bar. Navigate to the searchplugins subdirectory of the Firefox directory (usually C:\Program Files\Mozilla Firefox\searchplugins). You can see several xml files there:

Copy the google.xml file to google.de.xml. Move google.de.xml to the Firefox profile folder\searchplugins (C:\Users\<your username>\AppData\Roaming\Mozilla\Firefox\Profiles\<your Firefox profile name>\searchplugins on Windows 7)

Now change google.de.xml in such way.

Old:

New:

You can see that we have changed the ShortName, the template argument of the second URL tag and the SearchForm.

Restart Firefox and now you can see Google.DE in your search options:

VN:F [1.9.18_1163]
Rating: 1.0/10 (1 vote cast)

Install and configure heartbeat version 2

The following tutorial will explain how to install and configure heartbeat version 2. The Heartbeat program is one of the core components of the Linux-HA (High-Availability Linux) project

The installation is pretty simple and straight forward process. For the purposes of this tutorial we have used RedHat Enterprise Linux 4.

Dependency package is: libnet-1.0.2-2.2.el4.rf.i386.rpm

or
wget http://download.opensuse.org/repositories/server:/ha-clustering/RHEL_4/i386/libnet-1.1.2.1-1.1.i386.rpm – for RHEL4

wget http://download.opensuse.org/repositories/server:/ha-clustering/RHEL_4/src/libnet-1.1.2.1-1.1.src.rpm

Install and configure HEARTBEAT – 2.1.3


mkdir /usr/local/src/packs
cd /usr/local/src/packs/
wget http://linux-ha.org/download/heartbeat-2.1.3.tar.gz
tar –zxvf heartbeat-2.1.3.tar.gz
cd heartbeat-2.1.3
./ConfigureMe configure
make
make install
groupadd haclient
useradd -g haclient haclient

Use just 1 white space between parameters in haresources

In case of fail with reason user id hacluster not configured add

groupadd hacluster
useradd -g hacluster hacluster

Check in : /etc/passwd that :
1. pegasus:x:66:65:tog-pegasus OpenPegasus WBEM/CIM services:/var/lib/Pegasus:/sbin/nologin
2. hacluster:x:17:65::/home/hacluster:/sbin/nologin
3. haclient:x:500:65::/home/haclient:/bin/bash

and in : /etc/group that :

1. pegasus:x:66:
2. haclient:x:65
3. hacluster:x:500: Read the rest of this entry »

VN:F [1.9.18_1163]
Rating: 1.0/10 (11 votes cast)

HTML Photo Gallery Tutorial

How to create a flash photo gallery and output with HTML code for website? This tutorial will not teach you how to program HTML or XML to make html photo gallery but introduce how to make it in a simple way! Read the rest of this entry »

VN:F [1.9.18_1163]
Rating: 0.0/10 (10 votes cast)