Category Archives: Unix

Large Text File Viewer

Have you ever felt frustrated when you just want to look at the content of a large text file but it takes forever for Notepad or Word to open it? This program was designed for viewing large (>1GB) text files. It uses little memory and is able to open a gigabyte file instantly. Background file… Read More »

Dynamic Footer Copyright Year using php

So let’s say your current footer looks something like this… <p id=”footer”>copyright © 2014 by Haneef Puttur, Inc</p> To put that copyright year on auto-pilot, simply drop this bit of code in there and sit back and relax. <p id=”footer”>copyright © <?php echo date(‘Y’); ?> by Haneef Puttur, Inc</p> If your copyright is a range of years,… Read More »

Creating Widget Space in WordPress

About Widgets: WordPress widgets are plug-able items that enhance the features of a site. One can think of wordpress widget as a cassette that needs to be inserted into an available slot so that it performs it’s functions accordingly. Here slot refers to the the widgetized areas that are available according to the nature of the… Read More »

Solution for PHP Mail Sending as Junk Characters for Arabic or Unicode Characters

Problem     Problem : Character Encoding Not set in header field of PHP Mail. Solution : headerFields = array( “From: {$visitor_email}”, “MIME-Version: 1.0”, “Content-Type: text/html;charset=utf-8” ); $mail_sent = mail($client_email, $title, $message, implode(“\r\n”, $headerFields)); If its ASP server , please use following command objCDO.BodyPart.Charset = “utf-8” .

How to install gcc on Citrix XEN Server

By default, XenServer enables only Citrix yum repository. For example, to examine all enabled repositories on XenServer, run the following. $ sudo yum repolist enabled Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile repo id repo name status citrix XenServer 5.6.100 updates enabled: 0 However, the default Citrix yum repository is void of any… Read More »

How to start, stop, or restart networking service under UNIX

How to start, stop, or restart networking service under HP-UX, OpenBSD, AIX and other Unix like operating systems? You can use the following commands as per your UNIX operating systems. HP-UX Unix start / stop / restart networking service # /sbin/init.d/net stop # /sbin/init.d/net start # /sbin/init.d/hostname start IBM AIX Unix start / stop /… Read More »

Install XAMPP 1.8.1 to Centos 6.4

Step1 : Download xampp 1.8   wget   Step 2: Extract the downloaded archive file to /opt:   tar xvfz xampp-linux-1.8.1.tar.gz -C /opt   Step 3 : Start XAMPP   /opt/lampp/lampp start     Step 4: Setup security   /opt/lampp/lampp security     Step 5: /opt/lampp/lampp restart     Step 6: Now access xampp… Read More »

Solution for owncloud external drive permission error

Error : Can’t create data directory (/mnt/data/owncloud/data/) You can usually fix this by giving the webserver write access to the ownCloud directory ‘/var/www/html/owncloud’ (in a terminal, use the command ‘chown -R www-data:www-data /path/to/your/owncloud/install/data’     Check SELINUX   Change enforcing to disabled.     .