fork the system!

Using Git to patch drupal modules

As a Drupal Developer, I often find myself needing to submit patches back to drupal.org. One easy way to do this is to use git. Because git is a distributed version control, it can just be used locally. This is perfect for making a quick patch.

Here is how I go about doing it. I enter the module dir (this is one of the nice things that I do not have to worry about getting it from cvs). then I init git and add the files i need (or all for good measure) and do a commit

git init && git add * && git commit -m "start"

grep history (gp)

I wrote a little bash function to help me find past commands that I have run. It just greps history and comes back with unique entries. I am sure there is a better way to do it (that has been done already) but this is my way.

function gh ()
{
  old="bob"
  history |sed -e 's/^ *[0-9]* //' | grep $1 |sort | while read line; do
    if [ "$line" != "$old" ]; then
      echo $line
    fi 
    old=$line
  done
  }

after putting this in my .bashrc

I can now do things like
>gh cd
and it will list all of the directories into which i have changed

Created Drupal Module for Parsing all fields of RSS

I wrote the FeedAPI exhaustive parser for a phase2 project. The other parser in the drupal feedAPI, only parsed the core atom and RSS fields leaving alot of data behind. The FeedAPI Exhaustive Parser, goes and gets the rest and makes it available to rest of drupal.

First Blog post for phase2

I made my first post on my new company (Phase2technology) today, kind of neat to be posting from elsewhere on the web (with someone editing your content!).

http://www.agileapproach.com/blog-entry/baby-steps-distributed-social-web

Tag Heterarchical Tree

Off and on I have been playing around with the idea of a heterarchy tree for navigating through content, and I want to talk some more about it.

A heterarchy is a system of organization replete with overlap, multiplicity, mixed ascendancy, and/or divergent-but-coexistent patterns of relation (wikipedia)

Adding captcha

Sorry all, but I am adding a captcha. I have received about 20 spam comments each of the last 3 nights. They are in Chinese (I think) so I don't know what they are saying, hopefully it is not a cry for freedom that is going un-answered.

Awesome is awesome!

I started my new job today, and worked all day on my little laptop (fujitsu P1610) with its 9in screen, and enough was enough, I had a 20in 1600x1200 monitor in the other room and wanted to use it, so tonight I went and had some fun with xrandr, and had my self a two headed display, only problem was that my window manager wmii saw it as one large display. Now wmii is a titled window manager so it is very problematic when it does not know when one screen starts and ends (I mean for petes sake I HAD to scale the window to fit the screen).

Intro to client side crypto

So some time back Jason told me that he was going to build a client side encryption app, with all of the encypting and decripting happening with java script, you would never we sending data across the net open. As a bonus it would be store encypted, so if someone had access to your server they would still not have access to your data. well he never built it.

Syndicate content