Tuesday, September 30, 2014

Starting a new Project

If you love to code even when you are at home you probably have start with an idea for programming something. I have a little flow chart I made which describes my home programming workflow.

If I am programming something for fun and I don't finish within the first month usually I have another big idea and lose interest, for a bit, and start something else. Sometimes I switch up the technologies, but this is my current fallback technologies.  In Windows sometimes I'll switch it up and go for Node.JS. I've also mixed things up and added a Rails project for fun.

End of Carl.BurksBrand.com

After years of paying for a private domain name I realized I wasn't getting much value for my investment.  For several years searching for Carl Burks would take you to my site at carl.burksbrand.com. It will probably take me a few months to get back to the number one spot, but I am sure that I will. Carl Burks isn't that common of a name and there are other pages which utilize the keywords. For example IMDB also lists two different "Carl Burks" and actors seem to be serious about optimization. Have you ever noticed how rappers will drop their own name in a song? It is a serious marketing strategy.  It also reminds me of the Seinfeld episode "The Chicken Roaster" not to spoil it, but if you haven't seen it by now George does a leave behind to keep in touch. Getting to number one is pretty much about brand recognition.

Shellshock

After upgrading all my VM's and computers which are *nix based they release some more updates. I guess I'll have to start over. It is great they are able to patch the problem so quickly after it became a known issue.

Saturday, April 12, 2014

Lenovo Fail

Since I stopped using Apple products a while back I've been a Lenovo consumer. Today they lost me. The wireless card supplied with the laptop doesn't work well with 64 bit OS's. After researching this issue I wanted to change the card. I opened up one of my old Thinkpads and removed the mini PCI wirelesscard and plugged it in. Guess what happened next? The machine refused to boot "Unauthorized Network card". Lenovo uses whitelists. I didn't unauthorize this. I will no longer recommend any lenovo products. 

Thursday, March 6, 2014

Ability Scores in Bash

#!/bin/bash

for run in {1..6};do for run in {1..5};do shuf -i 1-6 -n 1; done | sort -r | head -n 3 | paste -s -d + | bc; done;

Monday, February 17, 2014

Image Management

Depending on your camera most of the file names do not add value the real information is in the exif tags on the pictures.

Sometimes you just want to name the pictures by taken date:


exiv2 -r '%Y%m%d-%H%M%S' rename *.JPG

Tuesday, February 11, 2014

Counting calories with a few commands

Lets say you like to use the Linux shell for totaling up your calories. Maybe you've got a file something like this:

590<tab>soft beef tacos
290<tab>fish sandwich
380<tab>fries

You could manually calculate these or... you could use some nifty Linux programs. First lets get those numbers away from the rest of the file.

cat 20140211.calories | cut -f 1

gives you:

590
290
380

cut uses <tab> as the default delimiter and we want the first field.

Now you've got the numbers but they are not in a usable math expression so you can use "paste"

cat 20140211.calories | cut -f 1 | paste -s -d+

gives you:

590+290+380

now you just need to total it all up with "bc"


ExplainShell.com can give a complete break down:

cut -f 1 | paste -s -d+ | bc