Tutorials
Golang : Send data to /dev/null a.k.a blackhole with ioutil.Discard
In Unix/Linux system administration, there are times when the system administrator needs to reduce the size of a file to….... read more
Golang : How to run your code only once with sync.Once object
Problem :
You have a function that will load a resource such as reading configuration data from an external file….... read more
Golang : Read a file into an array or slice example
Ok, got a junior developer that wants to know how to read a text file content line by line into….... read more
Golang : Add ASCII art to command line application launching process
Problem : You worked hard on creating your application and you want add some ASCII art to prettify the launching….... read more
Golang : A program that contain another program and executes it during run-time
For this tutorial, what we are trying to achieve here is to write a program that contains another mini program….... read more
MariaDB/MySQL : How to get version information
Putting this here for my own future reference. Recently I need to move some databases to a new MariaDB server….... read more
Golang : Launching your executable inside a console under Linux
Problem: You want to launch your executable under a terminal window after clicking on an icon. Why you want to….... read more
Golang : Convert an executable file into []byte example
This small utility program will read an executable file(or just any file) and convert the content into a []byte
slice.….... read more
Golang : Calculate how many weeks left to go in a given year
Here is a simple tutorial on how to calculate the number of weeks in a given year and figure out….... read more
Java : Get FX sentiment from website example
A quick Java implementation of my previous Golang tutorial on how to "scrape" FX(forex) sentiment data from a web….... read more
Java : Generate multiplication table example
Putting this here for my own future reference. A simple Java multiplication table generator that I used to teach my….... read more
Java : Human readable password generator
Below is a Java version of my previous tutorial on how to generate human readable password. Basically, what this Java….... read more
Golang : Generate multiplication table from an integer example
My son is 6 years old now and it is about the right time to expose him to some basic….... read more
Java : Random alphabets, alpha-numeric or numbers only string generator
A simple Java function to generate random string based on given parameter - alpha
, alphanum
and numeric
. Depending on the….... read more
Golang : Get FX sentiment from website example
Just a quick and simple tutorial. Got a friend that asked me on how to get FX(Forex) sentiment data by….... read more
Golang : Accessing dataframe-go element by row, column and name example
Dataframe-go is similar to Python's pandas
package and it is used for statistics and data manipulation inside a Go program.….... read more
Golang : Gonum standard normal random numbers example
Putting this simple example here for my own future reference. Just another way of generating random numbers beside using math/rand
.….... read more
Golang : Detect words using using consecutive letters in a given string
Got an interesting question asked by a member of Go Programming Language Facebook group. He is asking how to….... read more