Tuesday, September 21, 2004

Tapestry 2

Beautiful, only took me about 10 minutes to figure out the way to do get multiple stylesheets into the Shell component. Here's what what I have working in Border.jwc:

----(begin)----


expression="{assets.ColorPrintStyles, assets.ColorStyles,
assets.Content, assets.FontStyles}"/>





----(end)----

So, now all the pages will have the Border component and inherit the style. Plus, the style is easily managable for the designer at the component level.

Tapestry

Okay, so the Home service with Tapestry is HARD-CODED to resolve a blank URL to a Home.page. Well, the beauty of open-source is that you can modify that to your heart's content. I tried that, spent a couple hours on getting it to work and ended up just overriding the service with a local one (extends org.apache.tapestry.engine.HomeService & )

Next piece I'm working on is modifying a basic Border component to provide only the shell and specific stylesheets. According to the Shell component you can provide many stylesheets to be applied by assigning an array or collection of IAsset. At this point I'm not sure where I should do that. Should it be in the engine that I define my list? I've got the entries as context-assets, can I just provide that as the expression? Gotta figure it out and record it.

Friday, September 17, 2004

JSF or Tapestry?

Heard a bit about Java Server Faces lately and I'm interested in investigating. At work I'm beginning a new project in Tapestry and am looking forward to really delving in.


So in searching out information on JSF, Raible Designs added some insight to the process of creating a JSF app.


Thursday, September 16, 2004

script to find a class in jar files

Thanks to N. Jarvis for the guts of this:


#!/bin/bash


echo -n "Enter class name: "


read -e SEARCHEE


echo Beginning recursive search through jars $PWD for $SEARCHEE


for i in `find . -name "*.jar"`; do echo $i; jar tf $i | grep $SEARCHEE; done


xdiskusage

xdiskusage is a great linux app to graphically mesaure your disk usage. Can be a bit lengthy to generate on a large disk, but it's quite useful to be able to drill down into the directory structure and view the numbers.


Thursday, September 09, 2004

rox-filer key binding

Bothering me that rox-filer default ctrl+n is set to Create New File. So, how to change it to Create New Directory? After scouring Google, #rox, and the mailing list I pieced together the information. You have to have ROX-Session running in order to edit the menu entries. I guess it's assumed in the Help that you do have ROX-Session running.


Of course, it would be nice to just have .roxrc or something equivelant...ROX Faq Keyboard Shortcuts

Wednesday, September 08, 2004

VIM color pain, change search highlight color

Finally found where to change the search highlight color in VIM. This was a great resource:


http://www.vim.org/tips/tip.php?tip_id=14


Simply added the following lines in my .vimrc:


hi Search ctermbg=LightBlue ctermfg=White


map :let &hlsearch=!&hlsearch


More info available in :help hlsearch