Bits N Tricks

A platform to contribute to the best of our knowledge so someone else can be benefited.

How to check if Windows 7, Vista, XP or Server 2003 is 32-bit or 64-bit (x86 or x64) version? 12Mar, 2010

How to check if Windows 7, Vista, XP or Server 2003 is 32-bit or 64-bit (x86 or x64) version?

Windows Vista Method 1 Click Start, then click on Run or Start Search. Type msinfo32.exe and then press Enter key. In “System Information”, review the value for the System Type item: For 32-bit editions of Windows, the value of the System Type item is x86-based PC. For 64-bit editions of Windows, the value of the System Type item is x64-based PC. Method 2 Click Start, type system in the “Start Search” box, and then click system in the “Programs” list. The operating system appears as follows: For a 64-bit version operating system: 64-bit Operating System appears for the “System type” under “System”. For a 32-bit version operating system: 32-bit Operating System appears for the “System type” under “System”. Method 3…

Posted in: Windows
How to convert HTML to PDF using PHP 5 18Feb, 2010

How to convert HTML to PDF using PHP 5

There are many tools on the internet that allow you to convert files of various formats to PDF – but sometimes you need to make such conversions using your code. In this article, we’ll specifically discuss how to convert an HTML file or content to a PDF file using PHP 5. For the task at hand, we’ll be using Dompdf – a CSS2.1 compliant HTML layout and rendering engine written in PHP. It is a style-driven renderer – it will download and read external stylesheets, inline style tags, and the style attributes of individual HTML elements. It also supports most presentational HTML attributes. Installation Download the latest stable version of Dompdf, additionally you can also download the detailed documentation if…

Posted in: HTML, PDF, PHP
How to develop a website in Hindi 17Feb, 2010

How to develop a website in Hindi

You can develop a website in Hindi – or any other language – by embedding custom dynamic fonts. Although, embedding custom fonts has always been a painful experience for web developers and designers, but the latest trends in web design brought the idea back to life with new techniques. In this article you’ll find the modern techniques that may help you with the topic at hand, however, one must note that no particular technique is perfectly compatible with every browser and each has its pros and cons. SIFR sIFR (Scalable Inman Flash Replacement) is a technique that replaces text elements on screen with Flash equivalents. Needless to say that website visitors must have Adobe Flash Player installed to see the…

Posted in: CSS, Fonts, HTML
How to include one HTML file inside another 12Feb, 2010

How to include one HTML file inside another

Including an HTML file inside another HTML file can be achieved using Apache’s SSI (Server Side Include). In this article, we’ll stick to the topic only and for further details on usage and scope of SSI you may refer to this article. Configuring your server to permit SSI To permit SSI on your server, you must have mod_include installed and enabled. Generally, this should be installed in Apache by default. Additionally, you must have the following directive either in your httpd.conf file, or in a .htaccess file: Options +Includes Not just any file is parsed for SSI directives. You have to tell Apache which files should be parsed. There are the following two ways to do this: You can tell…

Posted in: HTML
Installing and Configuring Mantis Bug Tracker 09Jan, 2010

Installing and Configuring Mantis Bug Tracker

Step by step instructions on installing and configuring Mantis on your system: Installing Mantis Download latest version of mantis from http://www.mantisbt.org/download.php. The first thing to do is to unzip the downloaded file, keeping the directory structure intact. The next step is to move that Mantis root directory to “c:inetpubwwwrootmantis” (assuming that the root directory of your http server is “c:inetpubwwwroot”). The last thing to do to make sure that you have a minimal installation working is to copy the file mantis/root/mantis/config_inc.php.sample to mantis/root/mantis/config_inc.php First Mantis Test Point your browser to http://localhost/mantis/admin/check.php or http://localhost/mantis/root/mantis/admin/check.php You should get a diagnostics page that shows colored boxes, with all of them green, except for the first one. You should have red ( BAD )…

Posted in: Bug Tracker