[12] Results

Golang : Generate 403 Forbidden to protect a page or prevent indexing by search engine

golang 403-forbidden no-index curl http-status-code

Got a question from a Golang newbie. He is asking how to protect certain directory or page from being accessed….... read more


Fix sudo yum hang problem with no output or error messages

yum hangs no-error-messages

Encounter a weird error this morning while trying to execute sudo yum update command. Yum just hangs there and no….... read more


Golang : Create zip/ePub file without compression(use Store algorithm)

golang zip epub no-compression

Problem :

You need to create zip file without compression. i.e just use the Store algorithm. For example, you are….... read more


Golang : Calculate US Dollar Index (DXY)

golang forex-trading us-dollar-index dxy

Below is a code example on how to calculate the US dollar index based on a basket of other related….... read more


Golang : Remove characters from string example

golang strip-charactersindex-rune strings map

Problem:

You have a string and you want to remove certain characters from the string base on a set of….... read more


Golang : Skip or discard items of non-interest when iterating example

golang read-file skip-iterable-item strings-index

Problem:

You want to skip or discard items of non-interest when iterating. For example, skipping the commented lines with #.... read more


Golang : Handling Yes No Quit query input

golang keyboard-input yes-no-quit-prompt get-char

The following is a simple program that will accept a single key answer from the console without the user hitting….... read more


Golang : Qt Yes No and Quit message box example

golang Qt yes-no-button message-box dialog-box

A quick tutorial on how to create simple dialog box and message box with Yes, No and Quit buttons. Pretty….... read more


Advertisement