string (35,835)


arrays Unloading a ByteArray using Actionscript 3

arrays Unloading a ByteArray using Actionscript 3

How do I forcefully unload a ByteArray from memory using ActionScript 3? I have tried the following:// First non-working solution byteArray.length=0; byteArray=new ByteArray();// Second non-wor…


Decoding T-SQL CAST in C#/VB.NET

Recently our site has been deluged with the resurgence of the Asprox botnet SQL injection attack. Without going into details, the attack attempts to execute SQL code by encoding the T-SQL commands in…


c# How do I print an HTML document from a web service?

I want to print HTML from a C# web service. The web browser control is overkill, and does not function well in a service environment, nor does it function well on a system with very tight security co…


c# Floating Point Number parsing: Is there a Catch All algorithm?

One of the fun parts of multi-cultural programming is number formats. Americans use 10,000.50 Germans use 10.000,50 French use 10 000,50 My first approach would be to take the string, parse it back…


Generate list of all possible permutations of a string

How would I go about generating a list of all possible permutations of a string between x and y characters in length, containing a variable list of characters. Any language would work, but it should b…


c# Robust Random Number Generation

I'm looking for a performant, reasonably robust RNG using no special hardware. It can use mathematical methods(Mersenne Twister, etc), it can "collect entropy" from the machine, whatever. On Linux/et…



Format string to title case

How do I format a string to title case?…


c# Get a new object instance from a Type

One may not always know the Type of an object at compile-time, but may need to create an instance of the Type. How do you get a new object instance from a Type?…


String literals and escape characters in postgresql

Attempting to insert an escape character into a table results in a warning. For example: create table EscapeTest(text varchar(50)); insert into EscapeTest(text) values('This is the first part \n…


Regex: To pull out a sub-string between two tags in a string

I have a file in the following format: Data Data Data[Start] Data I want[End] Data I'd like to grab the Data I want from between the[Start] and[End] tags using a Regex. Can anyone show me how th…




how from java array convert example with get python javascript