There’s a nasty gcc bug on RedHat (RHEL 6) and CentOS Linux (and related) that gets triggered when you try to build Node.js v0.8.2: pure virtual method called. Solution: Run make install CFLAGS+=-O2 CXXFLAGS+=-O2 instead of just make install. More info: Cannot compile node.js 0.8.2 under CentOS 6.2 “make install”: terminate called without an active… Continue reading Fixing Node.js v0.8.2 Build on Linux
Author: Dan
Mongoose Indexes and RAM Usage
If you’re using Mongoose, you’ve changed your indexes, and you’re wondering why you’ve run out of RAM, go into the Mongo shell and manually drop any indexes you are no longer using. Mongoose has no method for deleting indexes you’re not using any more, so they accumulate, gobbling up RAM. Now that you’ve cleaned out… Continue reading Mongoose Indexes and RAM Usage
How do I add an empty directory to a git repository?
Via Stack Overflow. And, of course, git add the empty directory. So helpful.
A Gotcha Using Node.js + Request In a Daemon
I have a Node.js program running as a daemon on a Linux VPS. Periodically, it polls a list of URLs using <a href="https://github.com/mikeal/request">request</a>. When it first starts, everything runs smoothly. But after running for a while, it starts getting 400 errors, and the longer it runs, the more URLs return 400 errors. I could not… Continue reading A Gotcha Using Node.js + Request In a Daemon
Current Projects
A couple of fun things I’ve been working on to learn some new programming skills, namely node.js and MongoDB. 1. News Bit — Remember Share Your OPML? Me too! 2. Linkblog — A super easy linkblog tool. I plan to open source the linkblog code soon. It also uses a shorturl tool I’m working on… Continue reading Current Projects
Notes On Creating A Multi-user Feed Aggregator
Some time ago, I answered another user’s question on Stack Overflow about database design for a multi-user feed aggregator. I also received an email from a developer asking for additional input, which I shared. But I thought I should put my response here, as well, for posterity’s sake if nothing else. Note that my comments… Continue reading Notes On Creating A Multi-user Feed Aggregator
Yet another XP BSOD solved
Stop 0x00000024 Oy. Grab Windows XP Installation CD. Boot into Recovery Console dir c: // cannot read directory. chkdsk c: /p // 1 errors found Reboot into Recovery Console dir c: // success! fixboot Reboot into Windows // success Woot!
WordPress Update Bash Script
I wrote this script some time ago. It’s been working flawlessly for me, so I thought I’d share it here. It could use some progress messages, I suppose. #!/bin/bash DIR= # Put the file system path to your WordPress installation here. E.g., /var/www/html/blog TMPDIR=$HOME/tmp WPDIR=$TMPDIR/wordpress cd $TMPDIR rm -rf latest.zip ./wordpress # Clean up from… Continue reading WordPress Update Bash Script