Tactical Technical Strike

Musings, Thoughts, Notes, & a brain dump of what I come across

Managing, Updating PRs on GitHub

Posted on | December 28, 2016 | No Comments

If you maintain anĀ open source project, you’ve probably experienced having to manage out of date forks/PRs that you don’t have write access to. Luckily, there’s a trick to that:

 

## updating forks/prs locally
git pull origin gh-pages
git fetch origin pull/{}/head:pr-{}
git checkout pr-{}
git pull origin pull/{}/head
git merge gh-pages
git checkout gh-pages
git merge pr-{}
git push origin gh-pages

Hurricane Irene rails Rodanthe

Posted on | September 2, 2011 | No Comments

Just an amazing image to come out of the flooding, destruction, and devastation in the Outer Banks. Important reminder than weather destruction has real world consequences.

Getting my webapp on

Posted on | December 16, 2010 | No Comments

World,
I’m looking to create an “enterprise-y” web app. You know, basic web2.0 stuff. Hand-written Javascript. Included Libraries and frameworks. CSS and Style-Reset Files. Tools to document, test, and minify. You know, the things that try to make a basic web app a little more “grown-up,” mature, and better for the end-user.

So, how do I do this? Where do I even start?

Heck, I’m not even sure how to best layout my project. I consider everything that I’m writing to be source code, but is that true? Is CSS really a source file (even though it is being edited and under source control, or is it more like a properties/config file)? If I can’t even layout my folder structure, I can’t even start. Where and what to do?

Once I get by that, I can imagine using Maven (or something similar) to bring the external tools, dependencies, and processes into my web-app, as well as correctly organizing and managing my files. Sounds fine, but Maven doesn’t seem to have as much traction outside of JAVA (shocker: A tool for JAVA that’s hard to work without JAVA). So is there a better way? It looks like the community has made attempts at Maven plugins for Javascript tools and wrappers, but is the community really strong around them?

Help me!

To go public… or not.

Posted on | December 14, 2010 | No Comments

So, i’m sitting at a crossroads: What to do with my twitter account? Currently it’s a place where I can pontificate and joke with my close friends and followers. Everyone loves a party line! However, why talk on the Internet if you are not looking to attract an audience?

I realized the other day when I advertised my favorite WebDev Advent Calendar [24ways.org] on twitter. No one who follows me cares! So what good is pontificating, complaining, and educating the masses if the masses can’t see. So, with that, i’m off to decide what to do with my twitter account. Do I just open it up and hope I don’t say anything stupid (no “posion” incidents)? Do I create another account to keep my professional life different from my personal life?

In reality, I want both of my lives to be the same. You get me all the time, good or bad. But once it goes out, it’s tough bringing it back. So I take a pause and debate.

Any thoughts?

Virtualbox: Mounting shared folders in a Linux guest

Posted on | May 13, 2010 | No Comments

Mounting and sharing drives between a host OS and a guest OS is dirt simple on Windows. You use the virtual box Shared Folders control (Devices Menu > Shared folders) to map a host location to a shared name, and then you just surf around the Network Places explorer to the VboxShared section, and viola!, the host filesystem is right there. But of course, nothing is ever as easy in Linux.

Well, I searched around more than once to finally figure this out and get it right, so that’s a clue to me to write it down somewhere (and then close the browser tab). Main tricks:

  • You need to use the VBOX file system
  • Like other *Nix mounting, make sure you have a mount point already created

So, what did I do? Well, here it is.

1. Create the shared folder using the typical Virtual Box Shared Folder process. Note the share name (listed in the folder name field), i’ll refer to this as {shared-name}).
2. Create a location within the guest to mount the share to (I’ll refer to this location as {mount-name}:

> cd /mnt
> mkdir {folder-name}
> mount -t vboxsf {shared-name} /mnt/{mount-name} //This command will likely need to be run as root (or via sudo if possible)

And there you go! You now have a mounted folder (in /mnt/{folder name}) that points to the folder you shared within the virtual box infrastructure. Yeah, you could go ahead and share the host OS’s folder via normal network techniques and using samba to get back to it, but that isn’t portable in the same way that Virtual Machines are meant to be. Hopefully this will get your virtual box shares working on Linux guest OSes.

**NOTE: The file system used for mounting is the vboxsf, not the vboxfs. Don’t ask me why…***

References:
[1] VirtualBox Shared Folders : Discussion of the different techniques and whether you need to use the vbox file system

keep looking »
  • Links, feeds, and all the other info that I need to be fully self-indulgent, shared, and organized. These links and widgets are subject to change.