26 Jun 2014
Making small binaries with Py2Exe. Can be a bit tricky, there are few steps needed.
One of the trickiest parts is building the dll exclude list, and module exclude. A bunch of modules get included by default which will push up the size of the executable.
A few tricks about doing this. Don't build an all in one executable till you get this resolved. Once you build it, you can take a look inside the zip file and figure out which modules are currently included. Going over the list there are a few you can exclude, depending on if you need it or not you can exclude Unicode which will save a fair bit of room.
Executable built with py2exe have a nice side effect of being almost free artefacts and hard to disassemble. Which is a nice side effect at least for certain purposes.
20 Jun 2014
A few month back there was a kickstarter for a nice premium mini arcade cabinet. Having backed the project I received my PiCade Maxi, the larger of the two versions made sporting a nice 13" display.
Below are a few photos from the build. It when together fairly easily, taking about 2h to put together.
The only real thing to note is that the arcade buttons don't feel nearly as nice as some of the others ones I have, and I will need to swap those out in the future.
Pirate, Monkeys! and a mountain of parts!
Back off the PiCade putting in the filling.
The finished product! Running PiPlay (aka PiMame)
10 Jun 2014
Go is a newer programming language from Google. Being a compiled, yet highly multithreaded centrio language, yet fast to develop in. It compiles down to an exe, and can easily make system call to windows dll via the syscall and unsafe modules.
Having compiled a simple hello world, the size of the executables becomes a concern.
So what can we do about that?
All the following is compiled with go1.3rc1
go build hello.go -> 1,955,328 bytes
So stock compile, no extra options, no packer or anything sort of the baseline.
go build -ldflags "-s" hello.go -> 1,425,408 bytes
Now with a linker flag set to strip, we can shave off over 400kb! Not bad at all.
Packing the "stripped" one with mpress we can get down to 302,592 bytes. So about 295kb not bad at all.
26 May 2014
After some adjustments to reduce the amount of material and to make it fit better, the cubical I'm currently on is now one of the thinner walled ones, with a wall thickness of around 1.5" rather then 2.5" of the older cubicals.
Have yet to print it. Use at your own risk.
Feedback or improvements welcome.
21 May 2014
List of gear for a weekend getaway of motocamping.
Best way to think of it is, ultralight backpacking, on two wheels. Keep gear to a minimal, you have access to most of what you could ever want at almost any gas station.
- Bungee Cord
- Cargo Net
- Ear plugs
- Motorcycle pants
- Visor cleaner
- Spare keys
- Tire path kit
- Leatherman tool
- Padded shorts
- Poly pro/silk underwear
- Swim suit
- Tennis shoes/Sandals
- Cellphone charger
- Solar charger/batterie
- Sena headset
- Bug repellent
- Cable ties
- Freezer bags
- Duct tape
- Extra batteries
- First aid
- Space blanket
- Sleeping pad
- Sleeping bag
- Camp stove
- Water bottle
- Trash bag
- Drink mix
- Coffee powder
- Freeze dried meals