This tutorial assumes that you are a sudoer running Gnome What is .chm Wikipedia says: Microsoft Compiled HTML Help is a proprietary format for online help files, developed by Microsoft and first released in 1997 as a successor to the Microsoft WinHelp format. It was first introduced with the release of Windows 98, and is… Continue reading How to read .chm files in Ubuntu
Generate passwords with JavaScript
The function generatePassword() is a simple yet customizable function that generates a random password string, the default password length is 6, you can override it by calling the function like thisĀ generatePassword(n) where n is the password length. The possible characters are defined within the function with the variable chars
How to style input fields with CSS?
There are situations where you need to style input fields depending on there types. Doing this is wrong: input{ border:solid 1px red; } As you see in the image, the CSS rule has been applied to all input fields
Generate a negative random number using JavaScript
Maths Ok, so you already know how to generate positive rondom numbers but let’s do it again: To generate a random number varying from 0 to 9 we will use this code: var randomN = Math.floor(Math.random()*10) This expression on the right of the “=” produces a random number from 0 to 1 (excluding 1, say… Continue reading Generate a negative random number using JavaScript
What is the best free PhotoShop alternative?
The GIMP is the oldest and surely the best free open source image manipulation program, there are many forums that support it an you can find tutorials very easily. The Gimp is available on UNIX, Windows and Mac OS and can be downloaded for free at http://www.gimp.org/downloads/.
What is email tracking?
E-mail tracking is used by individuals, e-mail marketers, spammers and phishers, to verify that e-mails are actually read by recipients, that email addresses are valid, and that the content of e-mails has made it past spam filters.
On my WordPress theme, How can I find which page is being requested by the visitor?
So you want to know if the visitor is viewing the homepage, a category or a page? WordPress have easy functions for that: is_home() : returns true if the visitor is viewing your blog homepage is_category() : returns true if viewing a category archive is_category(‘3’) : returns true if viewing the archive of the category… Continue reading On my WordPress theme, How can I find which page is being requested by the visitor?
How to check if a number is odd or even with PHP?
In mathematics, one of the definitions of odd and even number is that they can be expressed like this (where n is the number and k is an integer): Odd numbers: n = 2k +1 Even numbers: n = 2k In PHP, we can check a number’s parity by checking the remainider of the division… Continue reading How to check if a number is odd or even with PHP?