Tag: programming
-
Cross Compile Golang on Ubuntu 14.04
So today I needed to cross compile a basic Golang app from linux/amd64 to linux/arm (for android) on my Ubuntu 14.04 box. It is actually kinda easy sudo apt-get install golang-go-linux-arm because I am running the latest 1.3 golang i needed to run an extra step: cd /usr/local/go/src/ sudo GOARCH=arm ./make.bash Once you have that…
-
Golang – struct, make and the case of the missing variable
I made a rookie mistake last night. I forgot an asterisk in my code and it caused me a an hour of confusion! TL;DR – methods on structs in golang need their stuct passed as a pointer if you want to modify it! This works func (f *Foo)SomeFunc() {} This does not! func (f Foo)SomeFunc()…
-
WordPress, WP E-Commerce and the lack of ASYNC AJAX
Now Normally the A in AJAX means Asynchronous, meaning you can have several requests going at once, so it was very confused as to why my AJAX wasn’t. My WordPress plugin is a long running import process and I decided to use AJAX so that I can provide timely feedback to the user as to…
-
Handy Linux Tips: diff recursive compare on folders
Handy dandy tip to compare two project folders to see which files are different.