string

Using multiline string variables in JavaScript

Javascript logo

Javascript never had good ways to use multiline strings before ES6 had appeared. In ES6 you can use template literals – strings delimited by backticks instead of quotes, single or double. But what to do if you can not use ES6 possibilities? Read more»

TypeScipt / Javascript

Open specific tab on page load with JQuery UI

jQuery logo

I made a simple HTML page with JQuery UI tabs. But the customer asked to give URLs for each tab. I was a bit surprised with it, because I remember only how to make default tab on page load. You can do it with the syntax like this: $(“#tabs”).tabs( { selected: x  });  where ‘x’ […] Read more»

TypeScipt / Javascript

StreamWriter – how not to clear existing text

StreamWriter has some options of usage. You can as add new text to an existing text in file, so and to clean existing text and add a new one. Read more»

.Net & C#

C#. How to convert double value to 3 digit group format string

Source: a lot of money values returned from SQL as strings. For example, “1500312.32”, “2382938.12”, “283727361.10” etc. The task: display money values in format “1 500 312.32”, “2 382 938.12”, “283 727 361.10”, etc. Read more»

.Net & C#

C#. Join (merge) some text files into one

The task. We have 3 separated text files, for example, web server logs. For more comfortable analyze we want to join them into one file. Below my simple solution for this task in C#. The main steps of script are: Read more»

.Net & C#

C#. How to join in string array of int

We have array of int and want to write it to a variable or to show on display. It’s not so easy to do in one string as you can think at first. Below I wrote one of  ways to do it. Read more»

.Net & C#

Popular Posts