Embedding Custom cross-browser font for the website

Here is simple and easy method to embed cross-browser fonts for your website.

For this purpose you need to convert the commonly used .ttf font file to 3 other formats like .woff, .eot, .svg

TrueType – A format designed to look good on-screen ; recommended particularly for Windows browsers.

EOT – You need this format if you want to target Internet Explorer. IE will not use any other format. Our EOT’s would be considered ‘lite’ since they are neither compressed nor domain-restricted.

SVG – This is an XML format supported by some browsers including the iPhone and iPad.

15 Best Firefox extensions for web developers and web designers

Firefox is getting is popularity day by day and mainly it’s due to the availability of various awesome extensions.

Here are some of the best Firefox extensions for web developers and designers.

1. Firebug :

Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page.

Firebug 1.5 requires Firefox 3.5 or higher.

2. FireFTP :

FireFTP is a free, secure, cross-platform FTP client for Mozilla Firefox which provides easy and intuitive access to FTP servers.

Boyfriend 5.0 to Husband 1.0

Dear Tech Support,

Last year I upgraded from Boyfriend 5.0 to Husband 1.0 and noticed that the new program began making unexpected changes to the accounting software; severely limiting access to wardrobe, flower and jewelry applications that operated flawlessly under Boyfriend 5.0. No mention of this phenomenon was included in the product brochure.

In addition, Husband 1.0 uninstalls many other valuable programs such as DinnerDancing 7.5, CruiseShip 2.3, and OperaNight 6.1 and installs new, undesirable programs such as PokerNight 1.3, SaturdayFootball 5.0, Golf 2.4 and ClutterEverywhere 4.5. Conversation 8.0 no longer runs, and invariably crashes the system. Under no circumstances will it run DiaperChanging 14.1 or HouseCleaning 2.6. I’ve tried running Nagging 5.3 to fix Husband 1.0, but this is all purpose utility is of limited effectiveness. Can you help, please!!!!

Sending mail from Localhost in XAMPP WAMPP using PHP

During Web Development in Windows environment, we use XAMPP/WAMP or some other local web server environment to test the code. In many cases includes the sending of mail, so it’s lazy job to upload the file in the server and test. In this case we can set the SMTP (Simple Mail Transfer Protocol) in our local server located in php.ini file.

In case of XAMPP, edit the file located in \xampp\php\php.ini

When  the SMTP is not set, error like this is displayed:

Warning: mail() [function.mail]: Failed to connect to mailserver at “localhost” port 25, verify your “SMTP” and “smtp_port” setting in php.ini or use ini_set() in C:\xampp\htdocs\testmail.php  on line 10

Running PHP file automatically using Cron Jobs

What is Cron Job/CronTab?

A cron job is a process that is automatically run in the background of the system at whatever time you set it to run. This can be each day, each hour of every day, upto 1 minute of every hour of every day.

The cron daemon provides the ability for a system administrator to automate the routine running of scripts, tasks or any other server function on a regular basis. It is commonly used to automate system maintenance or administration. For example: to check if the server is down at certain times, to send newsletter at every weekends, to clean invalid data from database everyday etc.

URL rewriting using htaccess

.htaccess rewrite are enabled by using the Apache module mod_rewrite, which is one of the most powerful Apache modules and features available. It helps to manipulate the links such that we  can transform  very long URL’s into short, cute URLs, transform dynamic URL’s like index.php?page=news, news.php?id=10  into SEO friendly and clean format, redirect missing pages, prevent hot-linking, perform automatic language translation, Deny/Allow certain IP/IP Range and many more.

To use this feature mod_rewrite needs to enabled, for e.g.  in xampp:

Go to the xampp/Apache/conf/httpd.conf   – search for mod_rewrite and you will get the line:

#LoadModule rewrite_module modules/mod_rewrite.so

Powered by WordPress

Page optimized by WP Minify WordPress Plugin