[25] Results

Golang : Example of how to detect which type of script a word belongs to

golang arabic-thai-devanagari unicode-in script-type

In one of my projects, I need to detect if a word that cannot be translated is of Arabic or….... read more

Python : Find out the variable type and determine the type with simple test

python variable-type type-function

Couple of ways to determine or find out the type of a variable or object in Python. Listing down the….... read more

Golang : Go as a script or running go with shebang/hashbang style

golang linux unix shebang hashbang shell-script

One of the job scope of Unix/Linux system administrator is to write shell scripts to accomplish certain task. However, there….... read more

Which content-type(MIME type) to use for JSON data

javascript jquery header content-type mime-type

Problem :

Your program sitting in your web server is pumping out JSON data. You need to set the correct….... read more

Golang : Launching your executable inside a console under Linux

golang console terminal linux shell-script

Problem: You want to launch your executable under a terminal window after clicking on an icon. Why you want to….... read more

Golang : How to check variable or object type during runtime?

golang object-variable-type kind type-of reflect

Problem :

You need to determine the type of data your program is getting from the user input or the….... read more

Golang : Get login name from environment and prompt for password

golang password os-get-environment two-factor script-authentication


You want to write a Golang script(short program for administrating server, etc) that grab the current user's login name,….... read more

Golang : Convert(cast) string to uint8 type and back to string

golang string uint8 type-cast

Problem :

You have a variable of type string and you want to convert/type cast it to uint8 type.

Solution….... read more