Pretty good way to check if a number is a power of two or not.
Adding a Default ListItem in a Databound Listbox in ASP.NET is an article in which the author discusses about adding items to the listbox web control of ASP.NET. The author shows how to add the items using the Insert method as well as explains how...
Adding a DropDownList to an Editable DataGrid is an ASP.NET article that contains more information about the datagrid and how to add a dropdown list box in the datagrid. You can copy and paste the code given in this tutorial on your web based...
Adding a search facility to your website is a web based article through which users can get idea about how to generate indexing services in the users website. Here author deals with how the users can search file from the IIS and in users disk...
Guess a number game is a fun game written in perl script. This script asks you to set a maximum number for the random number. You are given four chances to play. The script reports if the guessed number is higher or lower than your guess, the...
convert a number to a string representation that is more easily parsed by humans.
It supports inserting thousands separators and converting to IEC or SI units.
Functions that checks if a number is odd or even.
(This is a little bit more complicated than using "mod(x, 2)" if you want error handling for certain cases.)
The function can handle double, single, and integer...
A function to convert a number to a more readable format by adding thousands separators.
This very simple function lets you choose the thousands separator character and the number of decimal spaces to return. Any character (including...
User Points User Picture awards points for adding a user picture to one's profile. It requires the User Points module and profile picture support to be enabled. The number of points and category are defined in the User Points settings.
This program calculates the number of flushes in a number of deals of a poker hand. You can tell it to deal say 10,000 hands and see how many were flushes. This is basically my first Python program.
Python has a number of nice methods to handle 'for' loops. However, the situation often arises where you have a large number of nested loops. Using this solution reduces the number of loops to one.
Many times I needed to check if a string represented a number or not. This is a very short recipe that uses Python int() function to do the check, instead of looping on the single characters.
This is a Number-puzzle game in which the elements on the screen should be sorted in ascending order (top to bottom)using arrow-keys.
1. THINK OF A NUMBER BETWEEN 1 TO 63.
2. CPU SHOWS SOME TABLES WHERE U NEED TO TELL WHEATHER UR NUMBER IS THERE OR NOT.
3. FINALLY CPU IDENTIFIES UR NUMBER
this matlab code will executes that the whole numbers on a number plate of a car can be segmented,just by modifying the available code using or operation in the labelling
% Choosse randomly a number (num) of elements from a vector [ini:fin]
% Randomly change the position of the vector. in pairs of twos
% ini: Beginning of the vector
adding a 2nd order filter we can plot variation in frequency due to the faults or disturbances.
This function turns a number into an ordinal string, ie 1 becomes 'first', 2 becomes 'second'. After 'twentieth', the number is used with the appropriate 'st, 'nd', 'rd', or 'th'. Useful for instructionary dialog boxes, etc.
This plugin allows you to add a category cloud widget to your sidebar in a similar way to adding a tag cloud. You can select the minimum- and maximum- font sizes, the minimum number of posts in a category to show and which catgories to include or...
This plugin makes it simple to manage a slideshow with WordPress by adding a custom post type for slides. The slideshow is powered by jQuery Cycle and has over twenty transition styles to choose from.
The slides are managed as featured...