Below are the top ranked snippets.

ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

« Previous 1 2 3 4 5 6 7 8 9  ...  55 56 Next »
6
Date Submitted Thu. Oct. 5th, 2006 9:56 AM
Revision 1
Beginner bjcogdill
Tags CSharp
Comments 0 comments
If anyone has tried using the .NET Graphics API, they know that replacing pixel colors takes a long time to complete. I did some research and found a good source. This code will adjust the color to greyscale by Binary.
The page is http://www.navicosoft.com/software_articles/softwares_articles_index.html for more information. It is under Basic Image Processing in the list of articles.
10
Date Submitted Thu. Aug. 3rd, 2006 11:54 AM
Revision 1
Helper bobbyrward
Tags boost | CPlusPlus | preprocessor | shared_ptr
Comments 0 comments
template function to create a boost::shared_ptr in the form

boost::shared_ptr classPtr = new_ptr(Arg1, Arg2);

You can also make new_ptr_access a friend of className and make the constructor and destructor private.

This keeps the end user from:

Creating an instance manually on the heap
Creating an instance manually on the stack
Deleting a shared_ptr manually using "delete get()"
6
Date Submitted Thu. Aug. 3rd, 2006 12:10 PM
Revision 1
Helper bobbyrward
Tags boost | CPlusPlus | Format | printf
Comments 0 comments
boost::format gives you the ablility to safely use printf like formatting as well as positional format specifiers ala .NET.
8
Date Submitted Wed. Aug. 9th, 2006 6:12 AM
Revision 1
Helper bobbyrward
Tags C | conversion | CPlusPlus | hexadecimal
Comments 3 comments
Converts a string representation of a number with any base(binary, octal, decimal, hexadecimal, up to base 36) to a long int.
4
Date Submitted Wed. Sep. 6th, 2006 11:07 AM
Revision 1
Beginner boris137
Tags "File" | "Java"
Comments 4 comments
This is enhanced version of java.util.Properties that:

Preserves order of Properties read from file if LinkedHashMap used.
Preserves comments in header and scattered throughout file.

It's by no means perfect, but a good start for anyone that once the above features.
7
Date Submitted Thu. Sep. 14th, 2006 12:12 AM
Revision 1
Beginner Bouvillon
Tags ASP | Data
Comments 0 comments
This code will show you how to encrypt user passwords with md5 algorithm and how to start using encrypted passwords if you already have users' database ready. The md5.asp you can download from my site http://www.webcheatsheet.com/asp/md5_encrypt_passwords.php
12
Date Submitted Fri. Oct. 6th, 2006 9:25 AM
Revision 1
Helper BrandonReese
Tags PHP | phpcode
Comments 4 comments
This is a class for generating HTML tables. It's kind of rough, but I thought somebody might want to do something with it.
8
Date Submitted Fri. Oct. 6th, 2006 2:42 PM
Revision 1
Helper BrandonReese
Tags "swear filter" | JavaScript | xanga
Comments 1 comments
This is a swear filter script I wrote for my xanga blog. I don't know if it has any application anywhere else. This will replace the swear words listed in the array with the character defined in blank_char. This isn't perfect but it works pretty well.
6
Date Submitted Thu. Oct. 26th, 2006 6:59 PM
Revision 1
Helper brendo
Tags forms | JavaScript | message | textarea
Comments 3 comments
This snippet also you to limit the input in a form field to a specified number of characters. It displays a counter so users can see how many characters they have left, and once they reach the limit the field just trims the length to your limit.

The following is a snippet from what I used when I implemented a tagboard to my site. Further revisions could/should read the LIMIT from the maxlength attribute
4
Date Submitted Tue. Oct. 24th, 2006 12:12 PM
Revision 1
Helper bright
Tags Delphi | http | Hyperlink | Internet | Link
Comments 2 comments
This bit of code will open up the http link in a new browser window. The link should be passed to the variable "HTML_File" as a string (as shown below).
« Previous 1 2 3 4 5 6 7 8 9  ...  55 56 Next »