Friday
20
Jan 2006

Back, and Thanks

(10:40 am) Tags: [Life]

I am back. Thanks for all those who wished me while in my absence.

Popularity: 80%

Comments: (2)
Tuesday
17
Jan 2006

Family Emergency

(12:21 pm) Tags: [General]

I’m heading to the hospital now, hope to be online again soon.

Popularity: 76%

Comments: (5)
Tuesday
10
Jan 2006

FeedLounge announces pricing

(12:27 am) Tags: [Projects, FeedLounge]

We have announced the pricing for FeedLounge. Comments welcome.

Popularity: 72%

Comments: (0)
Sunday
8
Jan 2006

FeedValidator does the smart thing now

(10:26 am) Tags: [Software, FeedLounge]

The older version of feedvalidator that I was using automatically imported timeoutsocket, whether it used it or not. This was borking SSL feeds (such as gmail) from working. I have it fixed locally, and the next update of FeedLounge should have the fixes.

And of course, FeedLounge will stop crying about the Atom 1.0 namespaces, which is a good thing, since our feedparser was already updated to support them.

Oh, and the obligatory error in Python for Google to find:
ssl() argument 1 must be _socket.socket, not _socketobject

Popularity: 72%

Comments: (0)
Saturday
7
Jan 2006

Strip predicates from an XPath expression in Java

(11:12 am) Tags: [Software, How do I...]

Fairy simple, and I even tested it for you ;)

private String stripPredicatesFromXPath(String xpath) {
if (xpath == null) {
return xpath;
}
Pattern pattern = Pattern.compile("\\x5B[^\\x5B\\x5D]*\\x5D");
Matcher matcher = pattern.matcher(xpath);
String result = matcher.replaceAll("");
return result;
}

Popularity: 74%

Comments: (0)
Wednesday
4
Jan 2006

Install memcached on Linux (CentOS 4.2)

(12:36 am) Tags: [Software, How do I..., Sysadmin]

curl -O http://www.monkey.org/~provos/libevent-1.1a.tar.gz
tar zxf libevent-1.1a.tar.gz
cd libevent-1.1a
./configure
make
make install
cd ..
mv libevent-1.1a.tar.gz ../installed/
curl -O http://www.danga.com/memcached/dist/memcached-1.1.12.tar.gz
tar zxf memcached-1.1.12.tar.gz
cd memcached-1.1.12
./configure
make
make install
mv memcached-1.1.12.tar.gz ../installed

Then add /usr/local/lib to LD_LIBRARY_PATH in your .bash_profile
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH

Then test:
memcached -m 512 -u nobody -vv

Popularity: 88%

Comments: (5)
Monday
2
Jan 2006

DESCRIBE equivalent for Postgres

(4:11 pm) Tags: [Software]

psql -U username -d databasename

While in psql, just type:

\d+ tablename

Popularity: 100%

Comments: (3)
Sunday
1
Jan 2006

Standing on the shoulders of giants

(12:21 pm) Tags: [General]

Free and Open Source software has allowed me personally to build some wonderful things in my life, and that is the main reason for my contributions back.

Off the top of my head, in developing FeedLounge, we have used:

I want to thank all of these projects, and also all of the ones that I have used and not mentioned. May 2006 bring even more great software to the development desktops and laptops of the world.

Popularity: 69%

Comments: (1)