jwesonga

Nairobi, Kenya

I enjoy writing code

Dec
31
awarded Notable Question
Nov
23
awarded Nice Question
Oct
26
awarded Popular Question
Oct
6
comment Golang: convert text dump to CSV
Worth pointing out that is that: {'a50': 15.5, 'a95': 14.5, 'a99': 21.5} is invalid JSON, I would need the strings to be enclosed in double quotes, otherwise the json.UnMarshal throws an invalid character error.
Oct
5
asked Golang: convert text dump to CSV
Aug
17
awarded Famous Question
Jul
8
asked Golang: declaring maps and slices with iota values
Jun
15
awarded Peer Pressure
May
26
revised App Engine: Upload and parse CSV with 10,000 rows and 48 columns
added info about indexing one column
May
26
comment App Engine: Upload and parse CSV with 10,000 rows and 48 columns
Seems like it would be more like 20,000 writes based on your input: - 2 writes * 10,000 rows
May
26
asked App Engine: Upload and parse CSV with 10,000 rows and 48 columns
May
6
accepted Golang: Read non valid JSON from text file
May
5
comment Golang: Read non valid JSON from text file
Not sure how it would work with the sample text I've provided..care to share?
May
5
comment Golang: Read non valid JSON from text file
Is there a way to do the above when u have multiple id values but you're only interested in the ones contained in the "port" section?
May
5
comment Golang: Read non valid JSON from text file
cool..thanks..what I actually now need is way to extract id values from only one section..
May
5
comment Golang: Read non valid JSON from text file
thanks for the contrib...I'm not a fan of "magic numbers" which is what I see in your code, what does "state=1, state=2, state = 0" mean? makes it quite hard for someone to look at the code and figure out what it's doing or not doing..
May
5
comment Golang: Read non valid JSON from text file
The text file in question has multiple id values, but I'm only interested in the ones in the port section
May
5
revised Golang: Read non valid JSON from text file
added 215 characters in body
May
5
asked Golang: Read non valid JSON from text file
Apr
22
awarded Yearling
1 2 3 4 5