Stream Database Photo as ASPX page...





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

5
Date Submitted Fri. Sep. 8th, 2006 7:05 PM
Revision 1
Helper jbplou
Tags net | VB.NET
Comments 0 comments
Returns a string collection of IP addresses for a passed in domain name.
3
Date Submitted Sat. Sep. 9th, 2006 11:10 AM
Revision 1
Helper jbplou
Tags Exception | VB.NET
Comments 1 comments
This function returns a stack trace for an exception with all inner exceptions include unless the count of inner exceptions goes over 50. A stack overflow can occur if there is no upper limit for inner exceptions to read from.

Makes use of stringbuilder to build return string in order to yield higher performance.
4
Date Submitted Sat. Sep. 9th, 2006 9:22 PM
Revision 1
Helper jbplou
Tags String | VB.NET
Comments 2 comments
This function provides the reverse of a string. It is constructed using string builder because strings in .NET are immutable, while stringbuilders are not. Therefore large strings could be slow to reverse if a regular string was used for the working value that is returned.
5
Date Submitted Mon. Sep. 18th, 2006 6:59 PM
Revision 1
Helper jbplou
Tags VB.NET
Comments 0 comments
Counting for loop in VB.NET. Looks easy because it is, but I saw one submitted for PHP.
9
Date Submitted Thu. Jan. 4th, 2007 4:22 AM
Revision 1
Beginner jimmah
Tags DataGrid | forms | VB.NET | windows
Comments 3 comments
The easiest way to give columns in a DataGrid the look you want is to use a DataGridTableStyle and to add a GridColumnStyle for each column in the grid.
-3
Date Submitted Thu. Feb. 23rd, 2006 9:57 AM
Revision 3
Helper jpinkham
Tags Java | JDBC | lightweight | orm | SQL
Comments 1 comments
I actually like SQL. So, things like Hibernate with it's own query language don't quite fit my style. But, I don't want to code the same catch SQLException conn.close over and over either. So, I came up with this.

The idea is you extend SQLCommand (usually anonymously) override getSql(), and call execute() to get a list of whatever objects you are selecting - all the cleanup stuff is taken care of. It also handles nullable attributes more intuitively using ResultSetWrapper and PreparedStatementWrapper so that in your overridden getRow(ResultSetWrapper rs) method, you can call getInt on a nullable column and have it return null - what a concept! Also I like java.util.Date for my dates, so the wrappers convert to/from java.sql.Timestamp.

Right now I've only bothered with some basic types - it should be pretty clear how to add more if you need em.

See what ya'll think.

Oh, it uses JDK 1.5 Generics, but stripping that away would be pretty easy if you wanted 1.2 compliance.
4
Date Submitted Mon. Nov. 13th, 2006 8:58 AM
Revision 1
Beginner Mattkins
Tags SQL | VBSCRIPT
Comments 6 comments
This is a quick and dirty function for preventing SQL Injection, the function is designed to clean any variable that will be concatenated into an SQL query. Apostrophes and Double-Quotes are changed to entities in order to ensure that encoding does not become an issue when the content is pulled back into a page. I'm looking for criticism here, I want to know if this is secure or not.
7
Date Submitted Thu. Sep. 21st, 2006 6:47 AM
Revision 1
Scripter Pio
Tags System.Drawing.Color | VB.NET
Comments 3 comments
Have you ever tried to use Color.Blue.ToString and gotten undesired results?
Or have you ever tried to save a color to an INI and not be able to reproduce it the next time around?

The methods below will help you in your conquest of converting the Color structure to HTML (#FF0000) and back to a Color structure again.
6
Date Submitted Thu. Sep. 21st, 2006 7:07 AM
Revision 1
Scripter Pio
Tags filesize | System.IO | VB.NET
Comments 1 comments
An all in one function that formats a given file's Size from bytes to gB.
4
Date Submitted Thu. Sep. 21st, 2006 7:30 AM
Revision 1
Scripter Pio
Tags ArrayList | System.IO | VB.NET
Comments 3 comments
Loading and Saving an ArrayList to/from any given path.