|
21-40 of 1853
Previous
Next |
|
Convert Hashtable Keys or Values into an ArrayList
by Deepak Choudhari
The key is to use the ArrayList constructor that takes an ICollection.
|
|
Simple Script to Run Java Applications on Linux and Windows
by Bea Petrovicova
This simple script lets you run a Java application on both Linux and Windows.
|
|
Create a Generic List at Run Time
by Srinath MS
This tip shows you how to create a generic list of a specified type at run time.
|
|
Using the OneWay Web Service Attribute
by Srinath MS
When you call a void web service method, apply the OneWay attribute to avoid having the calling thread wait for a response.
|
|
Displaying Embedded Newline Characters from ASP.NET Resource Files
by Deepankar Sinha
Embedded newline (\n) characters don't display properly in the browser, but a simple character-replace operation does the trick.
|
|
Algorithm to Switch Between RGB and HSB Color Values
by Duc Nguyen
Changing between RGB and HSB color values is easy using this algorithm.
|
|
Create an XML File or XmlDocument Directly from a StringBuilder
by Julio Henriquez
Creating an XML file (or XmlDocument object) using a StringBuilder is easier than working directly with the System.Xml.XmlDocument Class.
|
|
Be Careful of Negative Array Indices
by Akash Aggarwal
Negative array indices can cause unexpected behavior when porting an application from 32 to 64 bits.
|
|
Build a Custom Formatter for a Java.util.logging Logger
by Leonard Anghel
See how to develop a custom log formatter and customize the formatter for your logging needs.
|
|
Handling Null Session and Request Variables
by Jarzebowski Mark
In ASP.NET, if you try to use a session or request variable before it has been set, you'll get an error.
|
|
Create a New Event Using AWTEventMulticaster
by Anghel Leonard
This code showa how to create a new event using AWTEventMulticaster.
|
|
Obtain the Local Absolute Path of a Class File
by
This tip shows how to obtain the local absolute path of a class file containing the specified class name, as prescribed by the current classpath.
|
|
Use GetBetween to Parse a String Between Two Strings
by Zachary Edwards
This tips shows how to use GetBetween to parse a String between two strings.
|
|
Using a Built-In Shortcut to Add Properties to a Class
by Bill Harmon
After declaring your class, suppose you want to add individual element properties to that class. This process has been simplified in Visual Studio when working in C#.
|
|
Truncate a Path String
by Srinath MS
Currently, there is no .NET class that provides this functionality. The workaround is to use the Windows Shell function (PathCompactPathEx).
|
|
Trimming Items in a String Array
by Arsalan Tamiz
When you use a For Each loop to iterate through a String Array and perform some action with each item, the change doesn't affect the String Array itself.
|
|
Changing the Style of a String in JavaScript
by Deepak Choudhari
JavaScript's String object provides funtions that change the style of the text while it displays in the UI.
|
|
Encode and Decode URLs Using UTF-8
by Leonard Anghel
This tip shows you how to encode and decode your URLs using the UTF-8 character encoding.
|
|
Create XML from an Array
by Cindy Rodriguez
Passing arrays as arguments to stored procedures is not currently possible in SQL Server, but you can use XML to accomplish this.
|
|
Make an Immutable Class
by Devesh Gote
The code in this tip shows how to make an immutable class.
|
|
21-40 of 1853
Previous
Next |