Zeldman hooks us up with another cool web tool, WebSiteOptimization.com.
Andrew B. King, author of Speed Up Your Site: Web Site Optimization (New Riders: 2003) and founder of Webreference.com, announces a free new service for web designers. Submit your URL to the Web Page Analyzer
and it will tally the weight of your markup, images, CSS and JavaScript,
then offer advice on how to improve your download and display time.
Here are my results - looks like I have too much HTML. I think I'll cut my displayed number of posts from 20 to 10.
A friend hooked me up today with some knowledge I didn't have. He told me about Gentoo Linux, which, according to him, is 3-4 times faster than any current Linux distribution! Wow - that's a LOT faster. This might mean that my 300 MHz, 256 MB (RAM) machine is usable again. Here's some snippets from our IM conversation.
You build from the command line through lynx, then update your kernel through a tool called 'emerge'. Want cvs? type 'emerge cvs'. Want jboss, type 'emerge jboss'. Basically, you emerge what you want and ignore all the rest of the stuff you typically get in a pre-canned, pre-built linux os.
...
works great on intel, sun, powerpc and the mac.
...
no more rpms and tar balls. just emerge. Each week, if I want to update all the apps I have emerged on my machine, I type, as root, two commands "emerge sync" (updates my portage tree), then, "emerge -u world". This says, look at all the apps I've emerged, and update them. Emerge then finds the tar balls, pulls them down, unpacks, compiles into the kernel and goes onto the next one. Want OpenOffice? 'emerge openoffice' (this takes about 8 hours to compile).
Sounds very cool - has anyone tried it?
A few days ago I was trying to hook DBUnit into my test process so that my database would contain the same data before my JUnit tests are run. I had some issues getting it to work and later found that there was a bug in DBUnit's ant task. Basically, it was not allowing me to disable batch statements. Anyway, it's been fixed in CVS and now my JUnit tests (all run through a common test-module task) depend on a "db-load" task. Pretty cool and awful easy to configure. I'll be updating struts-resume/appfuse in the next few days to contain this slick trick. In the meantime, here's my db-load target. The file sample-data.xml
is also built using Ant via DBUnit's "export" task.
<target name="db-load" description="Loads database from exported DBUnit file">
<property name="operation" value="CLEAN_INSERT"/>
<property name="file" value="metadata/sql/sample-data.xml"/>
<dbunit driver="${hibernate.connection.driver_class}"
supportBatchStatement="false"
url="${hibernate.connection.url}"
userid="${hibernate.connection.username}"
password="${hibernate.connection.password}"
schema="${hibernate.connection.schema}">
<operation type="${operation}" src="${file}" format="xml"/>
</dbunit>
</target>
I ran into an interesting issue this morning - maybe one of you will have a solution. I can get the height of a browser window using screen.availHeight
in Mozilla/IE, just fine, but when there's an <iframe> on the page, Mozilla pukes. For more information, please see this complete explanation and demo.
Update: Boy am I an idiot - my <iframe> was named "screen" causing conflicts when referring to screen.availHeight
. Oh well, I love easy solutions!