tag:blogger.com,1999:blog-33031824772711754632024-03-14T15:09:39.055+13:00Got Ravings?Dr Foobariohttp://www.blogger.com/profile/17261969811711468642noreply@blogger.comBlogger25125tag:blogger.com,1999:blog-3303182477271175463.post-39903496140029438752011-09-15T22:48:00.000+12:002019-01-06T01:54:00.685+13:00Introducing Whitespace2.0.vim!This is a raving that I wrote some months ago now while I was working a different job in a different country. I should point out that I liked the guys I was working with and they, generally speaking, were not retards...
The guys I'm working with are fucking geniuses and I fucking love them! I've been doing some maintenance on their PHP apps at work, and their coding standards are so Dr Foobariohttp://www.blogger.com/profile/17261969811711468642noreply@blogger.com9tag:blogger.com,1999:blog-3303182477271175463.post-22853072257743445432010-10-12T01:08:00.007+13:002010-10-12T10:32:55.608+13:00Colorizing and autopaging svn diffs and other commandsI can't remember the last time I jacked off to black and white pornography.
Can you?
OF COURSE YOU CANT! Color is fucking awesome! No one yanks their crank to black and white shit anymore.
Once you've tasted color, you can never go back.
This brings us to the subject of version control. Over the last few years I've been spoiled by git, but have recently switched jobs and been using svn Dr Foobariohttp://www.blogger.com/profile/17261969811711468642noreply@blogger.com3tag:blogger.com,1999:blog-3303182477271175463.post-31292088949204094882010-07-13T00:22:00.007+12:002010-07-16T10:20:40.170+12:00Vim pr0n: Sample NERD tree pluginsI'm a lazy wank, and additionally: a bastard.
Which brings us nicely to our next point: The NERD tree API. In version 4.0 I added an API to allow people to add functionality to the NERD tree in the form of plugins.
I did this because I was getting tired of politely telling people where to ram requests for features that I either A. Would never personally use and therefore would probably do a Dr Foobariohttp://www.blogger.com/profile/17261969811711468642noreply@blogger.com4tag:blogger.com,1999:blog-3303182477271175463.post-64834955539577134182010-06-28T20:56:00.003+12:002010-06-29T14:32:29.524+12:00Hacking line numbers into embedded gistsGithub has the only corporate mascot in existence that I fantasize about touching inappropriately.
When github unveiled their gist service in 2008, I went into my room, jumped up on my bed, ripped all the playboy posters off the ceiling and taped up a giant portrait of the octocat.
But HOT DAYYUMN is github's lack of line numbers on their embedded gists pissing me off! I've been trying to Dr Foobariohttp://www.blogger.com/profile/17261969811711468642noreply@blogger.com2tag:blogger.com,1999:blog-3303182477271175463.post-33203781389306802002010-06-21T12:13:00.007+12:002015-12-03T00:36:26.515+13:00The best of Lardcore Volume ThreeThe other day I was rummaging around looking through the old junk on my hard drive. You know what I'm talking about. Those nostalgic moments when you rediscover some old game you spent ages getting to compile but never really played, or several incrementing versions of the JVM you saved over a period of time, or some long lost porn, or some filthy hacks to download porn, or some hentai that was Dr Foobariohttp://www.blogger.com/profile/17261969811711468642noreply@blogger.com2tag:blogger.com,1999:blog-3303182477271175463.post-80197813826094608332010-05-08T21:50:00.013+12:002010-05-08T23:52:13.655+12:00How csplit turned my software into hardwareI'm typing this text with my penis.
This is made possible largely due to the erection inducing side-effects of csplit — a program I'd never used until today.
Story time!
Once upon a time in a far distant land, there was a handsome, charming, young prince who had never known true love... Meanwhile, somewhere else, I was sitting at my desk, scratching my head, wondering how the cunting Dr Foobariohttp://www.blogger.com/profile/17261969811711468642noreply@blogger.com0tag:blogger.com,1999:blog-3303182477271175463.post-90504580993478626272009-12-19T01:44:00.001+13:002011-09-17T01:09:43.491+12:00Hacking IE6 With Sass MixinsJust recently I was raging against Internet Explorer 6 and the hacks that are required to overcome its shitty css support when it occurred to me that Sass mixins could be used to abstract away some of these hacks.
Read this raving if you use sass and rage against having to support IE6.
Bill Gates is way more awesome than Hampton Catlin (at sucking)
Good morning class, let us begin today's Dr Foobariohttp://www.blogger.com/profile/17261969811711468642noreply@blogger.com0tag:blogger.com,1999:blog-3303182477271175463.post-40860559604981797932009-10-20T20:40:00.003+13:002009-10-20T20:47:43.133+13:00Mainframe molestation with lookseeThis morning when I walked into the server room, I must have looked real serious, because our mainframe took one look at me and ran for its fucking life! I took off after it, bolting across the office and down the back steps before I caught up with the bastard in the car park, trying to steal a scooter off some school kid. I slapped that bitch down, lifted its rear end up into the air, plugged myDr Foobariohttp://www.blogger.com/profile/17261969811711468642noreply@blogger.com0tag:blogger.com,1999:blog-3303182477271175463.post-23212707316861433952009-09-27T17:21:00.000+13:002009-09-27T17:22:52.064+13:00Vim pr0n: ignorecase failsFuck The Machine, lately the only thing I've been raging against is the ignorecase option.In practice, the only use for ignorecase is to make vims regular expressions case insensitive when searching. However, for some reason, it also affects the == operator. Check this shit out::set noignorecase:echo "foo" == "FOO"0:set ignorecase:echo "foo" == "FOO"1What the fuck!? Good job team, you just made =Dr Foobariohttp://www.blogger.com/profile/17261969811711468642noreply@blogger.com0tag:blogger.com,1999:blog-3303182477271175463.post-90535011250644055502009-07-06T14:22:00.002+12:002009-07-06T22:23:27.282+12:00Vim pr0n: Combating long linesThe other day my boss found me locked in the server room, naked and bathing myself with dish washing liquid and toilet water. When he asked what in the flying fuck I was playing at, I told him my soul was filthy and corrupt from all the long lines I'd been committing. In reply he told me I'd better sack up and write some vimscript hacks to keep my long lines under control. So that's what I did. Dr Foobariohttp://www.blogger.com/profile/17261969811711468642noreply@blogger.com4tag:blogger.com,1999:blog-3303182477271175463.post-50279047814337535832009-06-21T22:03:00.006+12:002009-07-25T11:54:28.654+12:00Vim pr0n: Syntax checking on the goA couple of days ago I was in the office, hacking the mainframe with The Great Halorgium. We got to talking about our current vim setup when he told me that it would be awesome if the statusline displayed a warning flag for buffers with syntax errors.By the end of the day we'd written a couple of ftplugins to do just that for ruby and eruby. Read this raving to find out how.Note: although we haveDr Foobariohttp://www.blogger.com/profile/17261969811711468642noreply@blogger.com3tag:blogger.com,1999:blog-3303182477271175463.post-86581284935491662642009-02-03T13:13:00.005+13:002009-02-05T14:08:40.788+13:00Vim pr0n: Jamis Buck must dieSometimes I see something online that makes me rage so hard I long for a nail gun and a sack of adorably cute kittens. Lately I've been seeing assloads of vimrc files with this in them:map <leader>d :execute 'NERDTreeToggle ' . getcwd()<CR>Awww, isn't that cute? BUT ITS WRONG!!!1It all comes from this blog post. OMFG Jamis Buck, I will find you, and I will fuck you. Then I'm gonna Dr Foobariohttp://www.blogger.com/profile/17261969811711468642noreply@blogger.com7tag:blogger.com,1999:blog-3303182477271175463.post-88916082756365412412008-12-16T13:36:00.004+13:002008-12-16T20:17:20.546+13:00Got Kombat?Once upon a time me and my cousins were milling about the backyard eating grass and sniffing each other crotches when, for some reason, we started taking photos.As usual, we eventually sought out props to photograph with. As usual, we ended up getting one of my huge fuck off knives, then a mattock, then a sword, and finally a chainsaw.Afterward, I chose my 4 favourite shots and brought out the Dr Foobariohttp://www.blogger.com/profile/17261969811711468642noreply@blogger.com1tag:blogger.com,1999:blog-3303182477271175463.post-14497385225974609162008-11-26T13:38:00.007+13:002009-07-07T23:29:12.135+12:00select count(*) as omg_wtf from postgres;This morning I discovered something that made me want to jump up on my desk and drop the f-bomb in my office with heart and soul. It was as though I'd just been sucker punched by a circus midget then fisted by his exceptionally well trained elephant as I doubled over in pain.Let me tell you a story.Once upon a time this morning, I was trying to figure out why the fuck one of our servers had gone Dr Foobariohttp://www.blogger.com/profile/17261969811711468642noreply@blogger.com1tag:blogger.com,1999:blog-3303182477271175463.post-89418777974135010382008-10-31T20:47:00.007+13:002009-06-21T22:14:26.680+12:00Vim pr0n: Statusline flags for bundy whitespaceLately I've been working on some projects with indenting so screwed you could print the source code out and wank with it and not be able to tell the difference. It's as though the author couldn't decide whether to use tabs or spaces, so they flipped a coin every time they began a new source file, and evidently the coin landed on its fucking edge more often than not since there are a fair number Dr Foobariohttp://www.blogger.com/profile/17261969811711468642noreply@blogger.com4tag:blogger.com,1999:blog-3303182477271175463.post-9807823154459428752008-10-27T13:27:00.008+13:002009-06-21T22:14:26.680+12:00Vim pr0n: conditional statusline highlightingI have a fair amount of info on my statusline, and have often thought it would be nice if certain parts of it could be highlighted under certain conditions. For example, I have &fileencoding displayed, but I only really care about it if its not "utf-8". In that case I would like it to be highlighted using the "error" highlight group so that I'll be sure to notice it.If you too have jacked offDr Foobariohttp://www.blogger.com/profile/17261969811711468642noreply@blogger.com2tag:blogger.com,1999:blog-3303182477271175463.post-48344079835141155442008-10-05T21:06:00.005+13:002008-10-06T22:53:23.434+13:00git add --patch gives me an erectionOne of the reasons I tossed out my playboys and husslers in favour of the git man pages is git add --patch (or git add -p)To say something like git add -p is the fucking bomb, I wish it was a pony so I could ride it around the backyard and pet it and feed it straw all day long would be the understatement of the new millenium.If you use git and aren't familiar with git add -p, then take off your Dr Foobariohttp://www.blogger.com/profile/17261969811711468642noreply@blogger.com2tag:blogger.com,1999:blog-3303182477271175463.post-3569872372088583572008-09-06T12:55:00.011+12:002008-09-06T23:07:57.792+12:00Vim pr0n: Creating named marksA few days ago in #vim, someone asked if it is possible to create "named marks" with vim, i.e. marking a location with a name instead of a letter or number. The answer is no, but it was an interesting idea, so I turned down my pornography and wrote a script to do it.When writing the code, I used prototype based OO — mainly to provide a more complex example for my previous raving.Marks in Dr Foobariohttp://www.blogger.com/profile/17261969811711468642noreply@blogger.com3tag:blogger.com,1999:blog-3303182477271175463.post-56996830710319226852008-09-03T21:14:00.016+12:002008-10-10T13:49:00.003+13:00Vim pr0n: Implementing prototype based objectsWhen vim 7 came along with support for lists (arrays) and dictionaries (hashes), nerds were delirious with joy. On the day it was released, geeks everywhere ripped off their pants and cartwheeled up and down their office aisles, their junk flapping freely in the air con. It was a great day to be alive.It was also a great day to be blind.One of the cool things about having dictionaries is that we Dr Foobariohttp://www.blogger.com/profile/17261969811711468642noreply@blogger.com4tag:blogger.com,1999:blog-3303182477271175463.post-49238189086407090152008-08-30T21:03:00.012+12:002009-06-21T22:14:26.680+12:00Vim pr0n: Making statuslines that ownMany of vim's default options smoke boner hard enough to turn a man inside out. One such option is 'statusline'. By default this option is blank, causing the statusline to display only the tail of the filename for the current buffer. Most people like much more detailed information to be displayed. For example, check out my current statusline: set statusline=%t[%{strlen(&fenc)?&Dr Foobariohttp://www.blogger.com/profile/17261969811711468642noreply@blogger.com11tag:blogger.com,1999:blog-3303182477271175463.post-27690057043054575772008-08-13T20:07:00.009+12:002008-08-13T22:38:04.312+12:00Vim pr0n: A simple template engineI frequently hang out in #vim on freenode. It's a funny place to be in sometimes. People come and go, asking all kinds of random questions, but occasionally someone will ask an interesting question that requires vimscript hacks. Its times like these where, if you listen closely, you can hear the collective *click* of all available nerds simultaneously pausing their pornography. This is closely Dr Foobariohttp://www.blogger.com/profile/17261969811711468642noreply@blogger.com2tag:blogger.com,1999:blog-3303182477271175463.post-81910576405068467942008-07-27T13:57:00.005+12:002008-07-27T14:31:24.732+12:00The truth about New Zealanders and sheepEvery now and then on MSN, IRC, or in a game, it comes up that I'm from New Zealand. In almost all cases people will make the same jokes and ask the same boneheaded questions. I feel I must set matters straight once and for all — for the good of my country.Yes.All New Zealanders do in fact fuck sheep.On a daily basis.In New Zealand we shag sheep as though the apocalypse will probably arrive Dr Foobariohttp://www.blogger.com/profile/17261969811711468642noreply@blogger.com7tag:blogger.com,1999:blog-3303182477271175463.post-72350349310622038802008-07-22T13:00:00.007+12:002008-08-31T13:30:36.222+12:00The windows copying commands suck giant spicy bonerI really love using windows. Its almost as pleasant as having your balls severed, liquefied in acid then pumped intravenously back into your body. Trying to use the terminal is fucking great! Its only marginally less pleasant than having feral cats surgically implanted into your scrotum. The copying commands in said terminal are brilliant! Using them is not quite as pleasant as having flaming Dr Foobariohttp://www.blogger.com/profile/17261969811711468642noreply@blogger.com1tag:blogger.com,1999:blog-3303182477271175463.post-2840372255240296492008-07-16T13:29:00.005+12:002008-07-23T22:01:55.394+12:00Vim pr0n: Visual search mappingsI've always maintained that, if you're looking to jack off to the vim help pages, a good place to start is at :help * or :help #. That shit is guaranteed to please. Strangely, vim has no baked-in visual mode equivalents to these mappings i.e. there is no mapping to search for other occurrences of the currently selected text. This is kind of gay, but it's also a blessing when you're in mob Dr Foobariohttp://www.blogger.com/profile/17261969811711468642noreply@blogger.com0tag:blogger.com,1999:blog-3303182477271175463.post-61570708276107977032008-07-13T22:23:00.018+12:002008-07-14T19:26:57.874+12:00git commit --amend gives me an erectionSometimes at work, I find out something that is so fucking awesome I just have to tell someone. Unfortunately, there usually is no one at work to tell since no one would understand my ravings. At times like these the best I can do is check left, then right, then quietly jack off under my desk.Needless to say, when I discovered the --amend flag for git commit, my righty was down my pants in a Dr Foobariohttp://www.blogger.com/profile/17261969811711468642noreply@blogger.com0