Skip to main content

John Horner

Sydney, Australia

Web developer

Jun
17
asked How to parse CSV with an invalid first line in node-csv
Mar
20
awarded Famous Question
2023
Jul
13
awarded Yearling
Jul
13
awarded Yearling
Jul
13
awarded Yearling
Jun
20
awarded Notable Question
Mar
13
answered Unable to connect to db after passing arguments. Getting error as Invalid argument values
Feb
27
awarded Autobiographer
Jan
9
awarded Teacher
Jan
5
comment Why does slices.Delete() in golang copy the next element?
So there are two steps (three?) where the first is to remove the element(s), the second is to move everything which needs to move left the right number of steps, and then it returns an array with the shorter slice of the original slice. And it won't warn you that you're using it with its return value being discarded.
Jan
5
accepted Why does slices.Delete() in golang copy the next element?
Jan
5
asked Why does slices.Delete() in golang copy the next element?
2022
Nov
15
awarded Popular Question
Sep
22
awarded Nice Answer
Aug
18
comment Why would a local git repo be more ahead of remote after a pull than before?
Thanks for that @torek, the version on my server is indeed quite old (1.8.3.x which is from 2012). I'm pretty sure you're right about git fetch origin <branch> but I don't understand about the "failed to update the remote-tracking name" part. The name was always "master".
Aug
15
asked Why would a local git repo be more ahead of remote after a pull than before?
Aug
10
comment Can you access a python dictionary key's value from a function in that dictionary?
Thanks, marked as accepted answer. I notice we don't actually need kwargs in this example.
Aug
10
accepted Can you access a python dictionary key's value from a function in that dictionary?
Aug
9
awarded Critic
Aug
8
asked Can you access a python dictionary key's value from a function in that dictionary?
1 2 3 4 5