About Me

Cap'n Intrepid is wacky (when he's not serious), and highly intelligent (when he's not dumb) and has an astounding talent of pointing out the painfully obvious.

View my complete profile

Navigate!

Previously, on Intrepidity

Archives

Blogity Blogs

Feed Me

Legal Mumbo Jumbo

Creative Commons License
This blog is licensed under a Creative Commons License.

Terms of Service

Privacy

Miscellaneous

eXTReMe Tracker

Technorati
Technorati Profile

Photobucket.com image hosting and photo sharing

Zooomr
Search

Looking for something? Browse the archives above or try a Google search:

Web Intrepidity

 
Sunday, July 16, 2006
 
High Class Japanese Meal


For a moment, I thought they were being funny by billing their customers in Japanese Yen (in which case the meal is a steal). In the end, we just decided they wanted to drown us in steamed eggs... all 513 servings.

Apparently, even their own staff is shocked enough to start scribbling on the receipt.

Posted by The Facetious Cap'n Intrepid at 8:54 PM | 4 comments |

Saturday, July 08, 2006
 
New Toy!
Intrepidette got me a new digicam (thanks a mil again, hon), and I've been happily testing it out around the house. Some shots (reduced to 25% of original resolution):

The neatest part of my room. Dark patches on the wall are the reminders of my embarassing youth (ER diagrams on the wall?? Total geekdom.).

With 6x optical zoom. No graininess. Excellent anti-shake as well!


Macro mode... gets all the dust motes as well. Shouldn't have used flash here, but it was on auto.

Night mode on a tripod. Can't tell without a more vibrant night scene, but looks great as well.

Vivid mode. Nice contrast and balance.


I so need to get some outdoor shots.

Posted by The Facetious Cap'n Intrepid at 9:54 PM | 6 comments |

 
4 Days to Convocation



The mother of all cliches: uni students jumping as if they were Super Mario incarnates.



Guess someone wanted to show SMU that they don't have market dominance in jumping graduates.

This may come across as conceited, but convocation feels a bit anticlimatic. In self-defense, I don't think anyone out there cares much about the degree we get. Not going to help you meet your milestones, get that last spot on that damn bus, find that elusive bug or smite dead the annoying people you meet. Pretty insignficant in the larger scheme of things, all in all.

The only part I'm excited about is meeting old friends and having a drawn out ranting session regarding the sweetness of working life. Of course, taking 1 day off from work (during the midweek drag, no less) doesn't exactly hurt too.

Posted by The Facetious Cap'n Intrepid at 9:15 PM | 0 comments |

Wednesday, July 05, 2006
 
Struts, Tiles and Unretrievable Mappings
If:

a) You are using Apache Struts and Tiles

b) You have multiple Struts configuration scripts like so:
...
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/conf/struts-default.xml</param-value>
</init-param>
<init-param>
<param-name>config/module1</param-name>
<param-value>/WEB-INF/conf/struts-module1.xml</param-value>
</init-param>
<init-param>
<param-name>config/module2</param-name>
<param-value>/WEB-INF/conf/struts-module2.xml</param-value>
</init-param>
...

3) You use
<html:form action="/someAction">
...
</html:form>

4) And you get a "javax.servlet.ServletException: Cannot retrieve mapping for action '/someAction' at [insert a massive stack trace] " error

Then:

5a) Check your web.xml file to see if the configuration resources in (2) are declared properly

5b) Check your struts-config-xx.xml file to see if you've mapped "/someAction" correctly

5c) Check your tiles-def-xx.xml to see if you've defined the tiles and the put values correctly

5d) Replace:
<html:form>

with the basic:
<form action="/module1/someAction.do">

to confirm that the action is working

6) As a last resort, remove the moduled implementation of the configuration scripts like so:

...
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/conf/struts-default.xml</param-value>,
<param-value>/WEB-INF/conf/struts-module1.xml</param-value>,
<param-value>/WEB-INF/conf/struts-module2.xml</param-value>
</init-param>
...


7) Check to see if this solves the error in (4). If it does, remove all context references (module1, module2 etc) from your actions.

This took me the better part of two working days to figure out, so maybe this will help some frustrated soul out there. If you know a better solution, bully for you. I shall stick to my comma-delimited lists, thank you very much.

Posted by The Facetious Cap'n Intrepid at 8:57 PM | 2 comments |

Copyright © Zhang Wenjie
Design adapted from Blogfrocks