Geekpedia Programming Tutorials






Code Code Archive

1 2 3 4 5 6 7 8 9 10 11 12 »
(171 code snippets in 18 pages)
RSS Feed RSS Feed     KlipFolio Klip Klip     Add to Google    Add to My Yahoo!    Subscribe in NewsGator Online    Add To Windows Live    Subscribe with Bloglines   
ASP

-----
No votes

Sep 26th 2008
by Andrew Pociu

Prevent Web Browser Caching

How to make use of HTTP headers to control the caching of Web pages in ASP and IIS, known to work with Internet Explorer.

Ruby

-----
No votes

Sep 26th 2008
by Andrew Pociu

Convert Pixels To Centimeters

A Ruby function that can be easily adapted to work with any language, because it uses a simple division and multiplication to calculate the number of centimeters in the given pixel size.

PHP

-----
No votes

Sep 25th 2008
by Andrew Pociu

Get The Current Season

Get the current season based on the United States calendar of seasons and the clock of the PHP server.

Ruby

-----
No votes

Sep 24th 2008
by Andrew Pociu

Format Number As Currency

Add the commas that separate digits in large numbers using this FormatCurrency function for Ruby.

C#

**---
2 from 1 votes

Sep 23rd 2008
by Andrew Pociu

Get Letters Of The Alphabet

Get the alphabet by looping through the ASCII values 65 to 90, which correspond to uppercase A through Z.

JavaScript

-----
No votes

Sep 22nd 2008
by Andrew Pociu

Trim Leading And Trailing Spaces

Trim the whitespaces at the beginning and end of a string using while loops instead of regular expressions.

PHP

-----
No votes

Sep 21st 2008
by Andrew Pociu

Convert JPEG Image To Grayscale

Convert a JPEG to a grayscale JPEG using PHP and the IMG_FILTER_GRAYSCALE type of filter.

VB.NET

*****
5 from 1 votes

Sep 20th 2008
by Andrew Pociu

Count Words In String

A simple code snippet for counting the number of words in a string, the words being separated by a space.

C#

-----
No votes

Sep 20th 2008
by Andrew Pociu

Escape Unsafe XML Characters

Before introducing data into XML clients, be it within tags or attributes of tags, it's important to escape all illegal XML characters that might break the validity of the XML. This can be easily done in C# using the Escape method.

MySQL

*****
5 from 1 votes

Sep 20th 2008
by Andrew Pociu

MySQL Table With 50 US States

MySQL query for creating a table with the 50 US and their abbreviation.

Filter Source Code
Programming Language:
Rating:


Advertisement


Other Resources
1 2 3 4 5 6 7 8 9 10 11 12 »
(171 code snippets in 18 pages)
Latest Tech Bargains

Advertisement

Free Magazine Subscriptions

Today's Pictures

Today's Video

Other Resources

Latest Download

Latest Icons