chuckcode
  • Contact
  • Posts
  • Posts
  • Self

Posts

accumulated cruft

Output from the chuckcode generative model

October 24, 2015

Getting to know Git

“git - the stupid content tracker”

– git manual page

Git has taken over source code control. Linus has a convincing set of reasons about why you should use it and the world has been converted. There is a good intro guide for simple git workflows but I found a little insight into how git models the versions helps me to understand the various git commands and workflows.

Under the hood git is a directed graph of source code tree versions. The different versions of the source code tree are each stored as a tree of the cryptographic SHA-1 hashes of the individual contents of the files and then combined into one summary hash of the entire source code tree. The SHA-1 keys for individual files map to blobs which are the compressed contents of the file. In theory there could be a collision of the hashes but it is extremely extremely unlikely and provides a convenient key for git to keep track of the tree.

read more
May 3, 2010

HDF5 File Format for data

Keep moving right along if you’re not a total geek as we’re going to get a little to geeky even for most geeks. I’m going to get excited about file i/o libraries and one in particular called HDF5. 99.99% of the time people don’t worry about file formats and files except when they don’t automatically open with the correct application in their web browser.

For us coders though file formats and file i/o in general almost always becomes a pain point as we store more and more data. Almost always an application starts off with some very simple data formats that somebody whips up quickly as needed and things are fine until success hits and all of a sudden your simple data assumptions are blown as your application has to scale up by an order or magnitude or two. There are a number of libraries to help with serializing object type data clike protobuf and cap’n proto but for large numeric matrix type data the choices are somewhat more sparse. Some of the key features that never seem that important at the start but that crop up over time are:

read more
September 12, 2009

Tuna Fishing

The tuna were running of the coast of southern California and JG gave me the call “It’s on, we’re leaving tomorrow night - you in?” Next thing I know I’m 60 miles off the coast with a huge fish running me around the boat. The fish were biting huge and the day was epic

Chuck & JG

It is all becoming a hazy now as if it couldn’t have been real. Jumping on a boat at 9pm, sleeping with 30 guys in the bunk room overnight and waking up in the middle of no where to the biggest fish I’ve ever caught. I was still quite hazy from 5 hours of sleep in a strange bunk that rocked all night long when reality hit hard in the form of 29 guys all yelling that there was a tuna strike. Mass confusion followed as we all got our rods, pulled out a live sardine out of the bait tanks, put it on our hooks and tossed them overboard. As I was marveling in confusion and huslte the real insanity hit in the form of a 12+ pound tuna on my line. First it hit so hard that the rod almost flew out of my hands, then it decided to go all the way around the back of the boat causing me to go over, under or around just about every other person fishing. To make it even more fun about 5 of them had fish hooked as well and we were all scrambling to get around each other while fighting the fish frantically. It was probably just a few minutes but it felt like it had been forever when I finally landed my first tuna. The school had passed us by at that point and the atmosphere on the deck returned to one of hopeful anticipation that we’d see more tuna soon.

read more
August 31, 2009

Asset Allocation Investing

Can you believe that super safe US Treasuries have out performed the S&P over the past 12 years? After a year of panic in the financial markets I decided that it is time for a back to basics investing approach so I can spend more time surfing and less time watching CNBC… We’ve now had more than a year of insanity in the financial markets. After losing substantial amounts in my retirement accounts and spending waaaay too much time reading and watching the financial news I decided that I needed a new investing approach. Some realizations include that bonds have outperformed stocks and that we’re not hearing about entire classes of assets from news sources like CNBC

read more
  • ««
  • «
  • 1
  • 2
  • »
  • »»
© chuckcode 2025