•October 25, 2013 • Leave a Comment
I am a huge fan of git subtree. This is a fairly new feature of git, so not all of the information on it is easy for me to remember how to use. I’m going to post here how I use it. The official README is here.
Also good information here.
Enable git subtree on Ubuntu
Git subtree is installed by default on Ubuntu 13.04 and 13.10, but it is not enabled. To enable it:
sudo chmod +x /usr/share/doc/git/contrib/subtree/git-subtree.sh
sudo ln -s /usr/share/doc/git/contrib/subtree/git-subtree.sh /usr/lib/git-core/git-subtree
Add a subtree
This command must be run from the git root directory.
git subtree add -P <prefix> <refspec> --squash
<prefix> = From the current location, list the path and directory name that you would like to clone into.
<refspec> = Te .git location. For a github repo, this will be firstname.lastname@example.org:account-name/repo-name.git
The squash option squashes logs. Leave it off if you want full log listings in your subtree.
Add your subtree repo to git’s references
Doing this will make pulling and pushing easier, you can just use your ref-name instead of having to go get the refspec again.
git remote add -f ref-name email@example.com:account-name/repo-name.git
Update your subtree
git fetch ref-name branch-name
git subtree pull --prefix <prefix> ref-name branch-name --squash
git subtree push --prefix <prefix> ref-name branch-name
•August 23, 2013 • Leave a Comment
Sometimes when I’m initially developing, I end up with a TON of migrations before I’m ready to push to anything live. If you’re at a point where you’re willing to dump and recreate, this can come in very handy.
# Remove the old migrations stuff
git rm -r migrations
git commit -m ‘Removed South migrations for the reset’
# Tell South to reset it’s database migrations for that app
./manage.py migrate –delete-ghost-migrations
./manage.py convert_to_south $appname
./manage.py schemamigration $appname –init
./manage.py migrate $appname
Enjoy your shiny new database!
•July 15, 2013 • Leave a Comment
We’re pleased to announce that we are making the LadyCoders job training videos available to everyone. These videos were initially meant to help out women in technology, but most of the information in them will be helpful to just about anyone.
Included in the videos is information on how to whiteboard, preparing for your interview, legal information about contracts, a Q&A session with recruiters, the difference between 1099 and w4 employees, and when it’s appropriate to talk about issues such as disabilities and special needs.
Guest speakers in these sessions include Jon Callas, Mike Reinhardt, Lonnye Bower, and Shannon Anderson.
Here’s the torrent link at Kickass Torrents.
You can also download the torrent link directly from Dropbox.
Released under Creative Commons CC BY-NC.txt
If you want to support this effort and help the cause of mentorship in teech, you can learn more at HackThePeople.org, ask questions at @tarah and @tanglisha, and support diversity in technology.
•March 22, 2013 • Leave a Comment
I attended PyCon this year with LadyCoders. I had such a wonderful time! Because I was at our booth during most of the talks, I sadly missed a lot that I wanted to go to. They are available online, but going and sitting there in person is an experience that I’m sad I had to miss.
I did manage to make it to two talks, the closing ceremony, and some of the lightning talks that came after the closing ceremony. One of the talks was on MongoDB. I find myself more and more interested in this NoSQL database. While I don’t think it will do a better job than a SQL database would at what SQL handles best, I’m excited to find places in which it can do a better job at things that are painful in SQL.
As always, I love lightning talks. I saw Python 3 run on an Atari emulator, and then two lightning talks later I heard a shout when the base code of Python 3 was patched to fix a bug discovered in that presentation. Oh, how I adore this community!
I heard a talk from a teacher working to get rid of grading in high school, and instead work with schools to make high school goal driven. I think this is a great idea to work on as a possible way to improve the current state of schools. Stop the mockery of being held back a grade, and just have everyone move forward as they’re able.
I also heard from what appeared to be the reincarnation of Billy Mays about Python Anywhere – a Python cli that you can run in your browser. The joy and energy that went into this talk was absolutely amazing, I think the talk made every single person in the room happy.
So, there you have it. I got to experience very few talks, but the ones I did were awesome. I encourage everyone to try to attend next year, even if that means having to learn French
•August 9, 2012 • Leave a Comment
I had such an amazing time at Defcon!
My friend Tarah of thecowgirlcoder.com and I went together. We ended up teaming up with the Psychoholics for the Mystery Challenge, and we won! I got to learn to write code for an Arduino and programmed our Tom Servo. I also performed a crimp with some of my team members.
Despite all this excitement, I did manage to sit in on some fabulous talks. I have a lot more interest in security than I used to, though I still feel that the amount of information that needs to be addressed is pretty daunting.
I’d like to thank the Psychoholics for being so welcoming, and LostboY for putting together such a ridiculously fun game to play. The experience would not have been the same without your efforts, and they are very much appreciated
•July 1, 2012 • Leave a Comment
I keep getting notices of errors and warnings for depreciated calls in plugins. I’m creating a resource here for the fixes for these niggling little things that are driving me so crazy.
has_cap was called with an argument that is deprecated
The correction for this error is to adjust the call to an appropriate user role. I’ll update the following table as I run into things.