Tutorials
Python : Convert(cast) bytes to string example
Problem :
You want to convert or type cast bytes variable to type string variables in Python. How to do….... read more
Chrome : ERR_INSECURE_RESPONSE and allow Chrome browser to load insecure content
There are times when you try to access some web pages such as pages with SSL/https/secured/encrypted pages but with some….... read more
Python : Convert(cast) string to bytes example
Problem :
You have couple of string variables in Python and you want to convert or type cast the string….... read more
Mac OSX : Get a process/daemon status information
Problem :
You need to get status information about a process or daemon running on Mac OS X environment to….... read more
Golang : Get escape characters \u form from unicode characters
Problem :
You want to get the escape characters (\u form) from unicode characters(utf-8). How to do that?
Solution :
….... read morePython : Print unicode escape characters and string
Couple of examples on how to print unicode string in Python. Nothing fancy, but it helps to explore the ways….... read more
Golang : How to print rune, unicode, utf-8 and non-ASCII CJK(Chinese/Japanese/Korean) characters?
Problem :
You want to print rune, unicode or CJK(Chinese/Japanese/Korean) characters with Golang, but you are getting funny result. How….... read more
Golang : How to check variable or object type during runtime?
Problem :
You need to determine the type of data your program is getting from the user input or the….... read more
Golang : Get today's weekday name and calculate target day distance example
Let's calculate how long it will take to reach Friday from today using switch evaluation. The code sample below will….... read more
Python : Fix SyntaxError: Non-ASCII character in file, but no encoding declared
Don't really know why Python couldn't handle non-ASCII characters in the source code well by default. Encounter a syntax error….... read more
Python : Delay with time.sleep() function example
It has been a while since I look at Python code. Need to read up a legacy code left by….... read more
Linux/Unix : Commands that you need to be careful about
Many people got caught up by the "startup" bugs and are learning how to develop their own web application or….... read more
Mac OSX : Get disk partitions' size, type and name
Something when wrong with my Mac today and I need to find out all the disk partitions information on my….... read more
CodeIgniter/PHP : Create directory if does not exist example
Problem :
How to check if a directory exist or not? If not, how to create a directory?
NOTE :
….... read moreJavaScript/JQuery : Redirect page examples
Notes for future references on how to redirect pages with JavaScript or JQuery. Sometimes, the simplest task is the hardest….... read more
Golang : List all packages and search for certain package
Problem :
You need to find out if a server has the packages that you need to run or compile….... read more
MariaDB/MySQL : Form select statement or search query with Chinese characters
Continue from the previous tutorial on how to handle non-ASCII characters in URL. Just a note on how….... read more
Golang : Generate 403 Forbidden to protect a page or prevent indexing by search engine
Got a question from a Golang newbie. He is asking how to protect certain directory or page from being accessed….... read more