Showing entries 231 to 233
« 10 Newer Entries
Displaying posts with tag: code (reset)
$5,701,201 worth of eZ publish code?

I just ran David Wheeler’s SLOCCount tool on a copy of eZ publish 3.7.3.

SLOCCount is:

a set of tools for counting physical Source Lines of Code (SLOC) in a large number of languages of a potentially large set of programs.

–from http://www.dwheeler.com/sloccount/

The tool generated a bunch of interesting stats, including an estimated cost to develop the eZ publish codebase: $5,701,201 USD.

Of course, it is always good to take stats with a grain of salt - as the saying goes, “There are lies, damn lies and statistics.” These stats would be most interesting if we could compare the output of SLOCCount with records of what we actually did.

eZ …

[Read more]
LiveJournal patch

Have you used your tag browser yet?

http://cjcollier.livejournal.com/tag/

It's neat. But there are a couple of things I'd like to see put into it. I'd like to see a redirect to /tag in the case of a single tag argument, and I'd like to see multiple tag arguments handled.

Whee. Should only be a modification to a WHERE statement in conjunction with splitting the cgi query string up in a manageable way.

So. I talked to Junior, and he pointed me at the right places to twiddle in order to get the change into the codebase.



Probably the best plan of action:

cgi-bin/ljfeed.pl
Pass "tagids" arrayref of tag ids to LJ::get_recent_items call

cgi-bin/Apache/LiveJournal.pm
Whatever code path does the call to generate feeds, make it respect a "?tag=foo" GET …

[Read more]
Lucene and the Art of Full Text Searching

I am not a huge fan of Java (though I have come to like it) and certainly not a big believer in hype, so it has taken me some time to investigate Lucene.

Once upon a time I needed to search the details of approximately 2-3 million “documents” (call it 2GB of data), serving up the results many times a second. MSSQL’s fulltext search was simply laughable with this relatively small load; many queries would not even return at all (unless one wished to wait for hours, and one did not), so MySQL was tried instead.

While it was a lot better than MSSQL’s, this is unfortunately much like observing that having a concrete block slammed repeatedly into your face is a lot better than being dead. True but useless. Neither of them scaled very well, so growth prospects were dim.

So today (years afterward), on a whim, I decided to try Lucene in this environment and see what it could do. I very crudely indexed …

[Read more]
Showing entries 231 to 233
« 10 Newer Entries