Sunday, July 19, 2015

Git Moving Day

Hello again.  Today I moved the code from google to github.  Google made it really easy, they gave me an easy button.  All I had to do was create an account on github and then press the easy button.

I also have a different laptop than I was using before, so I installed the git bash software, configured it and cloned the code repository.  Instead of using the .netrc method of storing the credentials like I did last time, I used the credential helper feature of git.  I must have missed it last time around, why didn't you tell me? 

You just need to configure git to use a credential helper, then the first time you try to push to a host, git asks for and saves the credentials.

This post is just a nice place to remember the git stuffs.

Configure global git user info and default to simple pushes:

$ git config --global user.name "{UserName}"
$ git config --global user.email "{Email}"
$ git config --global push.default simple


See available credential helpers, use wincred:
 
$ git help -a | grep credential-*
  credential          merge-recursive     stage
  credential-store    merge-resolve       stash
  credential-wincred  merge-subtree       status

$ git config --global credential.helper wincred


Clone repo from github to local:
 
$ cd git
$ git clone https://github.com/RealNoArms/no-arms-darts.git


Test commits and pushes, one time credentials entry:

$ mkdir Test
$ cd Test
$ vi test.txt
$ cd ..
$ git add Test
$ git commit -m "Testing github configuration"
[master e968e9f] Testing github configuration
 1 file changed, 2 insertions(+)
 create mode 100644 Test/test.txt
$ git push
Username for 'https://github.com': RealNoArms
Password for 'https://RealNoArms@github.com':
Counting objects: 6, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (4/4), 329 bytes | 0 bytes/s, done.
Total 4 (delta 1), reused 0 (delta 0)
To
https://github.com/RealNoArms/no-arms-darts.git
   c4f0097..e968e9f  master -> master
$ cd Test
$ vi test.txt
$ git commit -a -m "Testing github configuration part2"
$ git push
Counting objects: 8, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (4/4), 326 bytes | 0 bytes/s, done.
Total 4 (delta 1), reused 0 (delta 0)
To
https://github.com/RealNoArms/no-arms-darts.git
   e968e9f..644ca58  master -> master
$ cd ..
$ git rm -r Test
rm 'Test/test.txt'
$ git commit -m "Remove github config test files"
[master 3a98162] Remove github config test files
 1 file changed, 3 deletions(-)
 delete mode 100644 Test/test.txt


OK.  Now maybe I'll try to work on the project some more.

Tuesday, March 17, 2015

If My Parents Didn't Pay My Friends To Be My Friends...

Another paid poster revives this blog.

I'll try to blog a little, you know, like a real blogger.  But I'm not fooling anybody, and I really have to go to the bathroom, so this will be brief -- if we're lucky.

Last I checked, which was many months ago,  the damn dartboard worked.  I think I may have renamed it "Dartboarduino" or something clever like that.  I printed out new stickers for it and hung it on the wall and threw a few darts at it a couple of times.

I wrote a lame python script that had a simple menu and played a basic around-the-world-ish game.  It wasn't very cool, but proved that the thing worked.  I was running it on a raspberry pi to a small led tv and I think some of it was just too much graphics for the poor little pi.  I meant to get back to the software, but never did.

I also meant to rewrite the duino sketch to do different things with the LEDs, but never did.

I also meant to somewhat formalize the api/protocol/messaging thingies, but never did.

Instead, I started to write an Atari Adventure parody in pygame called "Amish Oddyssey" (see how I did that "odd" thing with the word "odyssey"? get it? ha?)   It looked like this the last time I worked on it a couple weeks ago:
Eli carries the scythe to the open doors of the red barn.

Eli Enters the Red Barn to find Schwartzentruber, the black angus, guarding the hand-made basket and assertively mooing to express her anxiety, which is a direct result of Eli's proximity to the basket.

Eli searches for the key to the white barn in the corn maze.

Eli captures the hand-made quilt from under the nose of Yoder, the seemingly disinterested purple hereford.
I thought, "I'll just finish this game real quick-like and then rewrite the dartboard game and then build my theremin and then write my novel and then direct my movie and then move on with my life."

I also recently received a top secret message from google saying that google code hosting is ceasing to be, and I will need to move my code somewhere else, like github.  Which I will do and I will tell all of you paid posters all about it in a new post, and then in 9 months you can comment here with something like, "This is great.  Keep up the great work.  How great is it? Great." and then you can do the same for the 6000 other blogs with no recent activity.

I'll also put my updated python code on github... and probably the code for this Amish Oddyssey travesty (the cows really "moo," so I have that going for me).

Must. Pee. Now.