[39] Results

Golang : Display list of countries and ISO codes

golang json-unmarshal-to-map countries-name iso

The code example below will download the JSON formatted data from http://country.io/names.json and unmarshal the data to display a list….... read more


Golang : cannot assign type int to value (type uint8) in range error

golang cannot-assign-type error

Sometimes, we tend to overlook a small part of for--loop just because we use it frequently and expect the compiler….... read more


Golang : Get missing location after unmarshal binary and gob decode time.

golang time location unmarshal-binary gob-decode

Problem :

You loaded some time based data, found out that the time is missing location data and somehow screw….... read more


CodeIgniter : "Fatal error: Cannot use object of type stdClass as array" message

codeigniter fatal-error stdClass object

There are times when the error message returned by the interpreter or compiler just don't make sense. Today I encountered….... read more


Facebook : How to force facebook to scrape latest URL link data?

facebook object-debugger scrape-url

Problem :

When you try to put URL link on a Facebook input boxes and Facebook will automatically scrape a….... read more


Javascript : Access JSON data example

javascript json

Problem:

You have a JSON string such as below and you want to access the data individually via Javascript. How….... read more


PHP : Count number of JSON items/objects

php json

Recently I need to paginate the search result returned by ElasticSearch. To paginate the result with standard CodeIgniter paginate helper....….... read more


Golang : Gorilla web tool kit schema example

golang schema data-map-to-object gorilla

This is an example on how to use Gorilla web tool kit Schema package. The Schema package is….... read more


Advertisement