[91] Results

PHP : Proper way to get UTF-8 character or string length

php mb-strlen utf8 string-length

Problem :

Was trying to get a length of an unicode(UTF-8) character with PHP. Trouble is, PHP echoes back 3,….... read more

Golang : Find the length of big.Int variable example

golang big-integer length

There is a chance that you will ever need to get the length of big.Int variable and below is a….... read more

Golang : Check if password length meet the requirement

golang password length

Problem :

You need to check the password's length entered by users. How to do that in Golang?

Solution :

.... read more

Golang : Get download file size

golang download-size filename-from-url content-length

Part of a good user experience is to let your users know in advance what are the next expected actions….... read more

Golang : Calculate entire request body length during run time

golang content-length request-header entire-request-body


You are trying to figure out what to fill into the number_of_bytes_in_entire_request_body field when making a http.NewRequest(). You need….... read more

Golang : How to check for empty array string or string?

golang string check-empty-string string-array

Sometimes that most obvious thing can be the hardest to remember. Putting this down as a note for myself and….... read more

Golang : How to get quoted string into another string?

golang quoted-string appendquote string

Problem :

You have a string and you want to join it with another string which is quoted. Somehow, you….... read more

Java : Random alphabets, alpha-numeric or numbers only string generator

java random string alphanumeric

A simple Java function to generate random string based on given parameter - alpha, alphanum and numeric. Depending on the….... read more