Pages

Thursday, May 21, 2015

git is like owning a tiger that lives in your code

git is like owning a tiger that lives in your code

OK so your really cool and you have decided to git your way into this century.  gone are the ways of the central repository where some human you never met is faced with merging your code.  lets not get to far here because those systems are way too popular still, and for good reason.

git written during one of Linus Torvalds all yearsers and concretely codifies the crap developers have been going through for ever and ever.  yes you have code and it is important but oh hey it doesn't fit into the current picture of the Thursday build.  watch the videos and grasp why and you will fail if you haven't seen an all night merge marathon in place.  kind of heart breaking when at the last minute life and death choices are made.

so whatever you learned to clone a git and now you want to make changes.  oh crap when I made changes they got wiped out when a 'git pull'...  let me see you learned to issue these commands via a command prompt?  or maybe they were forged in the ide your using.  your still in trouble as the files you were working on are now gone.

fast forward to git hell, OK make that 'git status'.  trying to glean where you are in relationship to a git repository somewhere else is difficult.  first there is trust that the remote is a friend and has brushed their teeth and combed their hair just like you expect your mother to do for you each day.  nope it a trial.

don't leave a vacuum behind you.

* things happen fast with git so remember that before you do some wild west action just copy your folder somewhere else.
* next understand where your repository thinks it came from.  did you clone it, init it, branch it etc.
* finally golden rule it: One should treat others as one would like others to treat oneself.

Friday, May 1, 2015

Ubuntu 14 Android Studio setup notes


Setting up Android Studio on Ubuntu requires many extra packages. Here are some notes on setting up the latest versions. Special note that you want a CPU that supports the android emulator. I used an AMD with graphics support.

-------------------
#requires java 7

sudo apt-get install default-jdk

#getting the packages

mkdir Android

cd Android

wget http://dl.google.com/android/android-sdk_r24.0.2-linux.tgz

tar -xvzf android-sdk_r24.0.2-linux.tgz

wget https://dl.google.com/dl/android/studio/ide-zips/1.1.0/android-studio-ide-135.1740770-linux.zip

unzip android-studio-ide-135.1740770-linux.zip

#add $PATH to end of  ~/.bashrc file

export PATH=$PATH:~/Android/android-studio/bin

#required packages 

sudo dpkg --add-architecture i386
sudo apt-get update

sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386

#setup the KVM (virtual machine)

#verify kvm is funtional before running android studio setup.

#http://sharadchhetri.com/2014/10/09/install-kvm-kernel-based-virtual-machine-ubuntu-14-04-lts-desktop/

#https://help.ubuntu.com/community/KVM/Installation

sudo apt-get install qemu-kvm libvirt-bin bridge-utils
sudo apt-get install virt-manager
sudo apt-get install qemu-system

#logout or reboot

#start studio by opening termainal and run studio.sh

#update the sdk and add emulators


https://gist.github.com/anonymous/d305c68ea5d182a20f06#file-android_studio_on_ubuntu

Friday, July 11, 2014

Trommel rock separator

Trommel are very handy when you have very rocky soil.  A good instructables here Trommel.







Monday, January 27, 2014

DIY PVC-IKEA Treadmill Desk - Again

Wanted to make another desk and needed to simplify the construction.  This desk uses all 1.5 inch PVC tube and fittings and only requires cutting the tubes.

Went back to Ikea with some of the PVC parts and re-though the connections.  The metal table legs fit perfectly into the 1.5 inch PVC pipe. 

To tighten the connection between the table leg and the PVC make a vertical cut at the end of the pipe and push a coupling down.  The coupling will apply pressure and jamb the PVC against the metal leg.  

The angle brace is 1 inch PVC with a elbow connection.  Drilled a hole in the elbow and used a drywall screw to fasten the main brace bar.  Drywall screws where also used on the other two locations. 

IKEA:

Table top: LINNMON  $16
Legs:  LINNMON/ ADILS   4 @ $3.5 per leg

PVC:

2@ 10 foot 1.5 inch PVC40
4@ 1.5 inch coupling
4@ 1.5 inch elbow
2@ 1.5 inch tee

Odds and ends:

3@ 2 inch drywall screws.

PVC angle brace could be 3/4 inch tube with a single elbow connection.

Tools:

Miter box saw is handy to create nice clean cuts.
A cordless drill / screwdriver is handy.
Tape measure.
Level to adjust table finished height.


Wednesday, August 28, 2013

DIY PVC-IKEA Treadmill Desk

DIY PVC-IKEA Treadmill Desk

check out the latest version


Built this treadmill desk for about a hundred bucks.  Gets me up and walking while I work which has been great.

Used 2 and 1.5 in PVC.  The legs extend for height adjustment.  Ikea sells the desk part for 15 bucks and the leg attachments I found in the 1/2 off bin.  Didn't end up needing Ts for the feet and could have just used a 90 degree elbow.  Routing out the 1.5 to 2 in reducer for each leg was difficult and would recommend a sanding brush drill bit to do the job.

A couple months have passed....

Recently I added some http://store.hermanmiller.com/  Flo Monitor Supports.  They are lightweight and easy to attach.


Sunday, March 18, 2012

kombucha

The kombucha is very easy to make.  There are many good instructions on the interweb.

You don't need to buy a mother to start out just a good bottle of kombucha.  These instruction are detail just that.

Links

http://users.bestweb.net/~om/kombucha_balance/



Here is what you need.

2 gallon heritage hill jar.  Like this one from target.  14 bucks.
2 gallon heritage hill jar


Get a bottle of your favorite kombucha from the store.  Get one that is not flavored and in a brown bottle.  http://www.hckombu.com/wp/

Get a black tea like Lipton or PG Tips.  No flavored teas, green etc.  Just plain black tea.  About 6 regular tea bags per 2 gal batch.  Stronger is not better. 

White vinegar.  As this is a starter batch and the Ph won't be high enough from just the bottle of kombucha.

A thin cloth like a dinner napkin or hanky with something to tie it to the lid of the jar.  Use a cord or link together several rubber bands.

A kettle to boil 2 gallons of water in.  Stainless steel is preferable.

2 cups of white granulated sugar.  1 cup per gallon.

Assembly

Bring the two gallons of water to a boil.  Add your tea for 10 min.  Remove tea.  Add sugar and dissolve.  Then put lid on kettle and allow to cool to room temp. 

Pour the sweet tea into glass jar.  Add your entire bottle of kombucha.  1/4 cup of vinegar.  Put cloth over jar opening and bind it so it doesn't slip off or sag into jar.

Wait two weeks.  Keep the jar in a dark warm place.  Don't poke or disturb.  No real action is ever to be seen except for the slow formation of the mother.

Basically you have to keep the finished kombucha in the fridge or it will keep growing.  I decant into glass beer bottles and cap them.  Placing a small piece of candy ginger in the bottle.  Let the bottles stay at room temp for a few days to get some carbonation up before refrigerating. 

Leave some of the kombucha in the jar with the mother.  You will need one cup of the original batch and the mother to make the next batch.  You won't need to use the white vinegar again as the starter has enough acid in it.

https://docs.google.com/open?id=0B9mO9d-frib2V0xoWmZseEVUWS1IWnJFQmdVSFc5Zw

Sunday, December 18, 2011

Kitten tamer II - fast fill beer bottles




This is a 22 oz bottle fast fill device.  Use it to grab and dunk your bottles for cleaning and sanitising.   With it you can pick up a empty bottle,  dunk it, fill it and detach from it.  The primary goal was to shorten the fill time by allowing the air to escape from the bottle.




Construction is done with a simple set of tools and readily available parts from a hardware store.

Parts
  • 8 inches of 1 inch PVC tubing.  Use the 450 psi.
  • 1 end cap for 1 inch PVC
  • 1 inch connector
  • Plastic drinking straw
Tools
  • Fine toothed wood saw.
  • Soldering Iron or wood burn tool.
  • 5/16 drill bit and drill
  • Sharpie
  • Silicon glue
Steps
  • Drill hole in end cap.
  • Glue straw to end cap.  To get the straw to set up nice and perpendicular to the cap use another end cap with a hole to keep it steady.
  • Mark up the 8 inch tube for cut and melt lines.
  • Make cuts to 8 inch tube.
  • Bend tube flanges using iron.
  • Create divots using iron on straight flanges.
  • Cut the water intake slot.