August 18th in Linux/Unix by pbu .

Fix: FreeFontPath: FPE “unix/:7100″ refcount is 2, should be 1; fixing

I was trying to run a Xorg window system and every time in between i was getting this nasty error in between the commandlines. I am running Centos/RedhatEL

FreeFontPath: FPE “unix/:7100″ refcount is 2, should be 1; fixing.

I was also getting this warning while attempting to launch firefox in my server from command line.

FreeFontPath: FPE “unix/:7100″ refcount is 2, should be 1; fixing.
FreeFontPath: FPE “unix/:7100″ refcount is 2, should be 1; fixing.
No fonts found; this probably means that the fontconfig
library is …

August 18th in Linux/Unix by pbu .

Xvfb Problems & Fixes

Xvfb is a virtual frame buffer suitable for headless linux servers having no physical hardware like graphics card or monitor. I was trying to install Xvfb and i have a countless problems with my centos server.

Installing Xvfb

yum install Xvfb

When i try to run the Xvfb to start a virtual frame buffer, i am getting these errors and i just cant fix it!

Xvfb :1 -screen 0 1024x768x24 &

The errors were

Couldn’t open RGB_DB ‘/usr/share/X11/rgb’
error opening security policy file /usr/lib/xserver/SecurityPolicy
Could not init …

August 18th in Linux/Unix by pbu .

how to install KDE X Window System in linux commandline?

If you are struggling to install KDE (KDE desktop environment) an x window system here is a simple commandline.

All you have to do is

yum groupinstall “X Window System” “KDE (K Desktop Environment)”

If you want to install in Debian/Ubuntu

apt-get install kde

Thats it!

August 18th in Linux/Unix by pbu .

How to install Xvnc or VNC Server?

Xvnc or vnc server is a free linux based virtual monitor. Suppose you are running a linux server without monitor and graphics card but you want to render images. so we use virtual environment like vnc or Xvfb.

To install Xvnc

yum install vnc-server

Then

Xvnc -screen 800x600x32 :

August 15th in Javascript by pbu .

Free Markup BBCode Editor in Javascript

blueskin.PNG

Free Markup BBCode Editor in Javascript

A simple homemade and lightweight free to use textarea bbcode markup editor written in javascript. Although not complex it has all the basic bbcode functions like hyperlink, quote and code, list tags. This editor can be used in forums, content management systems (CMS), blog applications and in many other php scripts.

- Fast loading and lightweight
- Works in IE and Firefox
- No popup html window for inserting hyperlinks.
- Easy to integrate
- Works on all major browsers

You …

August 12th in Money & Finance by pbu .

How to find IFSC code for HDFC Bank?

How do i get IFSC Code for HDFC Bank?

If you have opened an account with HDFC bank but you dont know the IFSC code of your bank. IFSC code is a 11 digit code used to interbank electronic clearing in India.

It will be in the format of HDFC0000XXX for your HDFC account.

If you are opening account in paypal or to receive payments through online banking from somebody, you will need it and let the sender know your account …

August 11th in Games by pbu .

Whats special in GTA4?

I have been a fan of GTA (Grand Theft Auto) series for a long long time since GTA2. I just cant keep thinking about GTA 4 and the way new technologies like Mobile phone, Internet were incorporated and played a more substantial role in the game. Kudos to the developers of the game and they deserve every respect of mine.

Niko Bellic comes to America in search of future and the way the relationship of his cousin depicted is …

August 10th in Javascript by pbu .

how to get selected textarea value using javascript

how to get the selected value in textbox and change its value? how to do it in javascript?

This is what i am after. I was working on a bbcode editor and i wanted to get the the selected text in the textarea and wanted to insert bbcode tags in place of them. I needed just very simple javascript code an finally i found a solution working in both IE and Firefox.

// code for IE
var textarea = document.getElementById("textarea");

if (document.selection)
{
textarea.focus();
var …

August 8th in Linux/Unix, PHP Scripts, vBulletin by pbu .

Your password is 180 days old, and has therefore expired

i was getting this message from vbulletin after logging as administrator. I wasnt able to find the setting in vbulletin control panel that would disable this 180 day password, until i finally figured out.

Your password is 180 days old, and has therefore expired.

Please change your password using this page.

To fix this Go to UserGroups > Administrator Group > Edit > Set 180 days password expiry to 0

Thats it!

August 7th in Linux/Unix by pbu .

Install FTP Server for Centos/RHEL

If you are buying a new vps or dedicated server you might install DNS server, LAMP and mail server. But if you want to upload php scripts or html files then ftp is a much for easy uploading or downloading the files in the server.

There are 3 popular open source FTP servers worth considering….

PureFTP (fast)
ProFTP (secure and easy to configure)
VsFTP

You will also need a free FTP client software like Filezilla which is free to download.

I prefer ProFTP as it …