Eclipse and Windows newlines

As mentioned here and here: Set file encoding to UTF-8 and line-endings for new files to Unix, so that text files are saved in a format that is not specific to the Windows OS and most easily shared across heterogeneous developer desktops: Navigate to the Workspace preferences (General:Workspace) Change the Text File Encoding to UTF-8 … Read more

R semicolon delimited a column into rows

Here is a base R solution. Split the PolId field using strplit and for each such split field cbind it with the corresponding Description. This gives a list of matrices which we rbind together. Finally set the column names. out <- do.call(rbind, Map(cbind, strsplit(DF$PolId, “;”), DF$Description)) colnames(out) <- colnames(DF) giving: > out PolId Description [1,] … Read more

Angular JS custom delimiter

You can use $interpolateProvider to change start / end symbols used for AngularJS expressions: var myApp = angular.module(‘myApp’, [], function($interpolateProvider) { $interpolateProvider.startSymbol(‘[[‘); $interpolateProvider.endSymbol(‘]]’); }); and then, in your template: Hello, [[name]] Here is the working jsFiddle: http://jsfiddle.net/Bvc62/3/ Check the documentation on the $interpolate service here: http://docs.angularjs.org/api/ng.$interpolate

Convert Comma Separated column value to rows

try this SELECT A.[id], Split.a.value(‘.’, ‘VARCHAR(100)’) AS String FROM (SELECT [id], CAST (‘<M>’ + REPLACE([string], ‘,’, ‘</M><M>’) + ‘</M>’ AS XML) AS String FROM TableA) AS A CROSS APPLY String.nodes (‘/M’) AS Split(a); refer here http://www.sqljason.com/2010/05/converting-single-comma-separated-row.html

Split a string into an array of strings based on a delimiter

you can use the TStrings.DelimitedText property for split an string check this sample program Project28; {$APPTYPE CONSOLE} uses Classes, SysUtils; procedure Split(Delimiter: Char; Str: string; ListOfStrings: TStrings) ; begin ListOfStrings.Clear; ListOfStrings.Delimiter := Delimiter; ListOfStrings.StrictDelimiter := True; // Requires D2006 or newer. ListOfStrings.DelimitedText := Str; end; var OutPutList: TStringList; begin OutPutList := TStringList.Create; try Split(‘:’, ‘word:doc,txt,docx’, … Read more