Down to This

You get the ankles, and I'll get the wrists.

K-Ching

1578470534

Anyone know what this button does?

Questionably Great Ideas

Sometimes, the pets do something that gives me a (questionably) great idea.

(download)
The original image is available if you want to do your own modifications.

Filed under  //   cat   pets   photoshop  

Howto: Split a git repo and still retain history

At work, we have a project that started out small. As with most of our projects, it started with us learning more interesting and better ways of doing things as we became more familiar with the blocks with which we were building. Recently, the project grew big enough that it had actually become two projects. Unfortunately, they shared the same code repository, since they started as one. After a little bit of time in the office Om Lounge with my abacus, I figured out a fairly simple way to split these two repositories, but still retain the whole development history up until that point.

TL;DR Steps:

  1. Create KEEP and MOVE branches.
  2. Make the appropriate changes in each branch.
  3. Push the MOVE branch into master in the new repository.
  4. Merge the KEEP branch into master.
  5. Delete the MOVE branch.
  6. Repeat for your branches other than master.

(My company uses GitHub, so my examples are using that.)

If you don't have a repo you'd like to split, but would like to follow along, make your self some dummy repos on GitHub and then create some test files. In my example, I'm splitting up repoA. I'm going to keep file1 in repoA and move file2 into a brand new repo, repoB.

First you need to figure out everything we want to keep in repoA. Create a new branch for the files you're keeping. Use git rm and git mv to rearrange the directory, reflecting it's look after the move is complete. Don't worry about deleting files, they all still exist in previous commits. (You did commit everything, right?)

Next, you need to figure out everything that's getting move to repoB. Check out master, so you get your original state back, then create a new branch for the files you're moving. Again, use git rm and git mv to rearrange the directory, reflecting the new repo's look after move is complete.

Now we're going to push the files that are moving, into their new home. Don't worry about setting up remotes, since you'll (hopefully) only be using this remote once. (Nerd note: remotes are just shorthand notation for a git URL, so we can use the URL directly here. Read more here)

Command Anatomy: Splitting a repository 2014 Gist

Now that the moving files are safely moved to their destination, we need to finalize the move by merging the branch of files that are sticking around.

All that's left now, is to push our changes back to the original repository and clean up a bit.

You'll notice that git complains when it tries to delete the branch of files that are moving. It's letting us know that we're removing information from our repo by deleting that branch. We'll have to use -D instead of -d to let it know we really mean it.

That's it! Pretty easy, huh?

Check out my sample repos: repoA and repoB

Also, check out all the gist stuff on one page here: Gist.

On Living in the Future and the Benefits Thereof

Screen_shot_2011-04-23_at_12

Tonight, I connected to the internet, over my Verizon MiFi's 3G connection. I did this from a little over a mile away.

In my quest for inexpensive internet, I am establishing an 802.11a link with my office from my apartment. The distance for this link is around 1.1 miles. Tonight, with very little actual aiming and signal optimization, I was able to get around 45 Mbit of performance out of the link. The hardware I'm using is rated at 300Mbit over  5 miles, so I'm sure with a little bit of work, I can get that speed up to a limit where the bottle neck becomes the wires in my apartment.

Here's to living in the future!

In which Röyksopp wear funny costumes

It's funny how something as simple as a change in location can change your access to things.
Monday morning I walked to work listening to Röyksopp Forever. That gave me the idea to build a playlist of songs where a DJ had either sampled or worked with an orchestra. Eventually I ended up listening to albums from Röyksopp and Jon Hopkins all day while I worked.
Imagine my surprise when Dave popped his head into the office inviting me to see both of them live that night.

Posted April 2, 2011

We Get Letters! (On Mattressi and Their Safe Transport)

Too often I receive a letters from my readers asking how to properly transport a mattress. (Plural: mattressi) As an experienced mattress mover, I have learned by trial and often nearly fatal error, the optimal methods for transporting your mattress.  I offer up to my readers, these three points, painfully learned, so that you may never suffer the need to drive around looking for escaped mattressi.

1) In the most ideal situations, your mattress will fit entirely within the confines of your transport vehicle. (See illustration.) This ensures no rogue gusts of wind or emergency vehicle maneuvers can jeopardize the safety of you, your mattress, nor your fellow drivers, pedestrians, and bikers.  Often, new mattress owners are also sold driver protection systems that keep the driver from harm should the mattress rampage about the inside of the vehicle.  It is these devices that often lead to the necessity for the 2nd point.
2011-03-07_20-23-20_92

2) Should the mattress not fit inside the vehicle, the roof is usually the next logical location. Ratchetting strap systems are needed without exception.  These should be applied in a web-like fashion, stretching from drivers-side bumper to passenger-side. (An average of 6-8 straps are needed for this configuration.) Additionally, two additional straps need to be applied from front to rear. (Ideal total ratchet strap usage: 10 straps.) It should also be noted that without the driver (and optionally passengers) comforting the mattress by holding onto a corner, it will likely try to buck the strapping system and fly away.

3) An additional point about the roof-strapping method of transport is in order.  When the bodywork on the transport vehicle begins to wrinkle, you are close to the appropriate level of tension.  Usually 3-4 more clicks will be sufficient.

Lastly, while not a major point, I feel many consumers are being bilked by dealer undercoating treatments. These are simply not necessary. Your mattress will perform for many years without them.

I hope this information is useful and will put an end to the many angry letters.

Couch, I haz u.

Look I have a couch! Maybe soon I'll have places to put this other crap. And some lights.

(download)

Tea Cookie Case

2011-02-15_13-09-28_280

Anyone know what this says?

SF's Pedowagon

Img_20110206_152338

This makes me wonder if @dorkimoe is moving to the Bay Area, too.