Remove Character String Snippets

The IsFileInUse Delphi function will return true if the file is locked for exclusive access. False is returned if the file does not exist. Code "flow": Two things need to be checked here: A) Is the file a READ-ONLY file? and B) Is the file in use? The main point of the excercise is to check the files attributes for the READ-ONLY flag...

C++ source code for standard ASCII table generator

Source code for Validate Longitudinal Redundancy Checksum

Code example using PHP to add/ remove nodes from an XML file

Tries to make out of the given string a xhtml-compatible string, that means that the return-string could be wrapped within a xml.

11 October, 2011   

In the same way you often need to format data being sent from Flash, you sometimes need to format data being received. This function takes a string and removes all spaces from it. Here we use the split method of the String class to split the string into an Array and then call the join method of the Array class to convert it back to a string....

01 March, 2011   

Function that generates random passwords.

13 October, 2015   

This function removes all duplicated lines of the given text file.

19 April, 2015   

Merges two strings in a way that a pattern like ABABAB will be the result.

05 March, 2017   

To add a "space" to the dock in OS X, open up and enter this. Enter it as many times as you want spaces. Error on too many, they are easy to remove. by Chris Coyier

This code will break a string of words up along the spaces and do a mySQL search for each of the words in the string.

This code will break a string of words up along the spaces and do a mySQL search for each of the words in the string.

This allows you to do String.random_alphanumeric(num) to get a random string that is num characters long. Useful for generating random identifier keys.

15 March, 2015   

How to automize versioning by modifying a line in the AssemblyInfo file.

Passing in a simple string of text converting it to lowercase and replacing all the spaces with a dash

17 July, 2013   

This one creates a back of the current workbook.

The .NET Framework doesn't support automatic detection of character encoding in the default file I/O methods. This is a quick function that returns True in the specified file is Unicode.

18 September, 2013   

If you don’t need human readable string, then use this function instead, which will create a random string you can use for user id’s etc.

01 October, 2014   

PHP example code for secure link conversion

Very useful Java code snippets for Java developers - Converting Strings to int and int to String