Friday, December 7, 2007

service initialization gui application

/usr/bin/system-config-services (may not work) or
usr/sbin/serviceconf

Thursday, December 6, 2007

To use the maven grails plugin
First create a project (or see how to generate a pom for an existing grails project)
mvn -DgrailsHome=d:\install\groovy\grails-1.0-RC1\ grails:create-app
Then cd to the directory containing the new project and create a pom
mvn -DgroupId=com.summitbid grails:create-pom
There's no longer a run-app target for the mvn plugin but you can test it with:
mvn grails:test-app

Monday, November 19, 2007

LIRC notes

Trying to get LIRC to work on RH Fedora 6 at home.

Compiled 0.8.3 using 0x3f8 irq4 which is com1

[root@localhost lirc-0.8.2]# ls -la /dev/lirc*
srw-rw-rw- 1 root root 0 Nov 18 14:58 /dev/lircd

/bin/setserial /dev/ttyS0 uart none
[root@localhost lirc-0.8.2]# /sbin/modprobe lirc_serial

/sbin/lsmod | grep lirc
[root@localhost lirc-0.8.2]# ls -la /dev/lirc*
crw------- 1 root root 61, 0 Nov 19 06:42 /dev/lirc0
srw-rw-rw- 1 root root 0 Nov 18 14:58 /dev/lircd

start another xterm and watch log
tail -f /var/log/lirc.log

Wednesday, November 14, 2007

Wed evening ride report

Wednesday Evening Deer Creek Ride Report

I managed to get tires on trail by 5:20 last night but due to trailhead confusion I started the ride without my expected riding buddies. They started at the lower lot off of Deer Creek and the Lockheed Martin turn of (I guess). I was on my way down after my second lap when I met them coming up and decided to go back up and ride another lap with them. Never did see Sandan or GotDirt.

I rode up the main trail and did three laps (clockwise) around Red Mesa loop before blasting back down. There were very few people when I started but by the end of the third lap there were quite a few people on the trail heading both up and down. The temperature was perfectly cool up top in the shade, and I was having so much fun ripping down the Red Mesa backstretch, I wanted to keep doing laps. The trail is awesome traction wise but "The Wall" is wicked as usual. Didn't ride Plymouth Mt. Trail on the way down since I spent so much time up top.

Unlike on Tuesday's 6:AM Dakota Ridge ride, it was nice to be able to tailgate party for a bit afterwards. I met some guys with plenty of Blue Moon and patio chairs to ralax in.

The temperature is supposed to push 100 by the weekend. Anyone up for a nice early morning ride (at altitude and/or in the shade) somewhere?

Ride Report

Sunday Morning Three Sisters Ride Report

Andy and I made it to the lower lot by about 7:30AM or so and were riding just before 8. The weather was perfect and this early, it wasn't hot yet.

We started across the road up Evergreen Mtn trail east, did the loop up top around Evergreen Mt. and blasted down Evergreen Mt. trail west, dodging bikers, hikers and dogs about every 100 feet.

We crossed the road again at the upper lot and climbed up to the top of the Sisters trail. On the climb up to the Sisters I stalled out on the first relatively easy switchback but then cleaned every remaining tricky rocky obstacle the rest of the way.

After catching our breath at the top we talked about all the injuries from the next section (down the Sisters). Andy told me about Seth Walen's broken collar bone and I reminded him of my nose wheelie off the cliff/lacerated leg incident and his helmet/rock impact crash a couple years back. Despite those lingering memories we rode down pretty fast (Andy did anyway) and then at the bottom we decided to take the Dedisse trail down to the river and back.

The climb up to the the top was a fast zig zaggy obstacle course that was a ton of fun. The descent to the river was a fast obstacle course of other bikers and what I swear was a swarm of Africanized Killer bees. I nearly crashed at high speed while swatting the meanest nastiest one as he stung me on the chest. The guy behind me (who happened to be a pharmacist) advised me to get down to the lake "before you go into anaphalactic shock" because he said he was fresh out of whatever the stuff is that you use to counteract bee stings.

Since I am apparenly not in mortal danger of bee sting poison, I survived the trip down to the river and then the (painful, and now pretty hot) climb back up to the top and to the car.

After talking Andy into having a post ride beer, "Geez, it's not even 10:AM!", I was surprised and kinda disappointed to see that my bee sting was hardly noticible. As other cars streamed into the parking lot we chilled with our beers, counted how many people asked us if we were leaving and talked about Andy's sweet Ace Hardware emblazened Jeep Rubicon that we rode up in.

It was a great ride. Check out the attached jpeg of the route.
__________________
Ride dangerously. Take chances.

Monday, October 29, 2007

Chapter 9 broken

Couldn't get the getSuggestions stuff to work. Moving on.

Also find that the delete function from the list view is broken. When you click on delete of some bookmark in the list view you get the confirmation message and the a 403 message. "Internal Error". Chased it for awhile but didn't figure it out. Moving on.

DGTG chap 9

suggestTag throwing exceptions
bookmark is null

Thursday, October 25, 2007

Definitive guide to Grails

Chapter 7.
Confusing because the example code doesn't match the text. The example code downloaded has no domain classes!! At all!! WTF?


I also created the Secure controller. No domain class.

The UserController needs only login and handleLogin actions according to the book.

Chap 7 p 167 says we set up constraints in the user class. See chap 4 page 82.

Review constraints chapter 4.

Need to review the file upload stuff at the end of ch 7.

Friday, October 19, 2007

working through DGTG (Grails book)

Just finished chapter 5 scaffolding. page 110. Generated controllers and views for Tag and Bookmark domain classes.

Start chapter 6. Testing
had to search because grails create-test-suite is deprecated. Search of grails liste yeilded that I should use:
grails create-unit-test
and
grails create-integration-test

Had to delete all files in integration dir because the collided with new test.

Cut and pasted the code from GINA pages 126, 127, 128 into BookmarksTests.groovy and the tests ran but all failed.

Base Directory: d:\src\workspace-Grails\bookmarks
Environment set to test
Note: No plugin scripts found
Running script d:\install\groovy\grails-0.6\scripts\TestApp.groovy
Compiling 1 source files to D:\src\workspace-Grails\bookmarks\test\classes
-------------------------------------------------------
Running 6 Unit Tests...
Running test BookmarkTests...
testBadUrl...FAILURE
testListAction...FAILURE
testListActionPaginate...FAILURE
testUpdateNotFound...FAILURE
testUpdateSuccess...FAILURE
testUpdateFailure...FAILURE
Unit Tests Completed in 750ms ...
-------------------------------------------------------
No tests found in test/integration to execute ...
[junitreport] Transform time: 1156ms
Tests failed: 6 errors, 0 failures, 0 compilation errors. View reports in d:\src\workspace-Grails\bookmarks/test/reports

Note: the code from the downloaded source did not compile I think because it ref's a User object that doesn't yet exist.

Trying to get tests to work, I upgraded to grails-1.0-RC1. Did an grails upgrade:
Running script d:\install\groovy\grails-1.0-RC1\scripts\TestApp.groovy
Application expects grails version [0.6], but GRAILS_HOME is version [1.0-RC1] - use the correct Grails version or run 'grails upgrade' if this Grails version is newer than the version your application expects.
d:\src\workspace-Grails\bookmarks>grails upgrade
grails upgrade

Welcome to Grails 1.0-RC1 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: d:\install\groovy\grails-1.0-RC1

Base Directory: d:\src\workspace-Grails\bookmarks
Environment set to development
Note: No plugin scripts found
Running script d:\install\groovy\grails-1.0-RC1\scripts\Upgrade.groovy
Overriding previous definition of reference to groovyJarSet
NOTE: Your application currently expects grails version [0.6], this target will upgrade it to Grails 1.0-RC1 ...

WARNING: This target will upgrade an older Grails application to 1.0-RC1.
However, tag libraries provided by earlier versions of Grails found in grails-app/taglib will be removed.
The target will not, however, delete tag libraries developed by yourself.
Are you sure you want to continue?
(y,n)
y
[copy] Copying 2 files to D:\src\workspace-Grails\bookmarks
[copy] Copying 1 file to D:\src\workspace-Grails\bookmarks
[copy] Copying 1 file to D:\src\workspace-Grails\bookmarks
[copy] Copying 1 file to D:\src\workspace-Grails\bookmarks
[copy] Copying 1 file to D:\src\workspace-Grails\bookmarks\web-app\WEB-INF
[copy] Copying 1 file to D:\src\workspace-Grails\bookmarks\web-app\WEB-INF
[copy] Copying 5 files to D:\src\workspace-Grails\bookmarks\web-app\WEB-INF\tld
[propertyfile] Updating property file: D:\src\workspace-Grails\bookmarks\application.properties
Please make sure you view the README for important information about changes to your source code. ...
Project upgraded

I dida diff from the previous version in svn and the only difference was the application.properties file specified the newer version of grails despite the copy messages above...?

grails test app went ok. Lot's more messsages:
d:\src\workspace-Grails\bookmarks>grails test-app
grails test-app

Welcome to Grails 1.0-RC1 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: d:\install\groovy\grails-1.0-RC1

Base Directory: d:\src\workspace-Grails\bookmarks
Environment set to test
Note: No plugin scripts found
Running script d:\install\groovy\grails-1.0-RC1\scripts\TestApp.groovy
[mkdir] Created dir: C:\Documents and Settings\Ed Young\.grails\1.0-RC1\projects\bookmarks\classes
Compiling 10 source files to C:\Documents and Settings\Ed Young\.grails\1.0-RC1\projects\bookmarks\classes
[copy] Copying 1 file to D:\src\workspace-Grails\bookmarks\web-app\WEB-INF\grails-app\i18n
[copy] Copying 1 file to C:\Documents and Settings\Ed Young\.grails\1.0-RC1\projects\bookmarks\classes
[copy] Copying 1 file to C:\Documents and Settings\Ed Young\.grails\1.0-RC1\projects\bookmarks\classes
[0] plugins.DefaultGrailsPluginManager Attempting to load [0] user defined plugins
[0] plugins.DefaultGrailsPluginManager Grails plug-in [core] with version [1.0-RC1] loaded successfully
[0] plugins.DefaultGrailsPluginManager Grails plug-in [servlets] with version [1.0-RC1] loaded successfully
[0] plugins.DefaultGrailsPluginManager Grails plug-in [filters] with version [0.1] loaded successfully
[0] plugins.DefaultGrailsPluginManager Grails plug-in [codecs] with version [1.0-RC1] loaded successfully
[0] plugins.DefaultGrailsPluginManager Grails plug-in [dataSource] with version [1.0-RC1] loaded successfully
[0] plugins.DefaultGrailsPluginManager Grails plug-in [i18n] with version [1.0-RC1] loaded successfully
[0] plugins.DefaultGrailsPluginManager Grails plug-in [urlMappings] with version [1.0-RC1] loaded successfully
[0] plugins.DefaultGrailsPluginManager Grails plug-in [controllers] with version [1.0-RC1] loaded successfully
[0] plugins.DefaultGrailsPluginManager Grails plug-in [logging] with version [1.0-RC1] loaded successfully
[0] plugins.DefaultGrailsPluginManager Grails plug-in [hibernate] with version [1.0-RC1] loaded successfully
[0] plugins.DefaultGrailsPluginManager Grails plug-in [domainClass] with version [1.0-RC1] loaded successfully
[0] plugins.DefaultGrailsPluginManager Grails plug-in [converters] with version [1.0-RC1] loaded successfully
[0] plugins.DefaultGrailsPluginManager Grails plug-in [scaffolding] with version [1.0-RC1] loaded successfully
[0] plugins.DefaultGrailsPluginManager Grails plug-in [webFlow] with version [1.0-RC1] loaded successfully
[0] plugins.DefaultGrailsPluginManager Grails plug-in [services] with version [1.0-RC1] loaded successfully
[copy] Copying 1 file to C:\Documents and Settings\Ed Young\.grails\1.0-RC1\projects\bookmarks
[1953] plugins.DefaultGrailsPluginManager Attempting to load [0] user defined plugins
[1953] plugins.DefaultGrailsPluginManager Grails plug-in [core] with version [1.0-RC1] loaded successfully
[1953] plugins.DefaultGrailsPluginManager Grails plug-in [servlets] with version [1.0-RC1] loaded successfully
[1953] plugins.DefaultGrailsPluginManager Grails plug-in [filters] with version [0.1] loaded successfully
[1953] plugins.DefaultGrailsPluginManager Grails plug-in [codecs] with version [1.0-RC1] loaded successfully
[1953] plugins.DefaultGrailsPluginManager Grails plug-in [dataSource] with version [1.0-RC1] loaded successfully
[1953] plugins.DefaultGrailsPluginManager Grails plug-in [i18n] with version [1.0-RC1] loaded successfully
[1953] plugins.DefaultGrailsPluginManager Grails plug-in [urlMappings] with version [1.0-RC1] loaded successfully
[1953] plugins.DefaultGrailsPluginManager Grails plug-in [controllers] with version [1.0-RC1] loaded successfully
[1953] plugins.DefaultGrailsPluginManager Grails plug-in [logging] with version [1.0-RC1] loaded successfully
[1953] plugins.DefaultGrailsPluginManager Grails plug-in [hibernate] with version [1.0-RC1] loaded successfully
[1953] plugins.DefaultGrailsPluginManager Grails plug-in [domainClass] with version [1.0-RC1] loaded successfully
[1953] plugins.DefaultGrailsPluginManager Grails plug-in [converters] with version [1.0-RC1] loaded successfully
[1953] plugins.DefaultGrailsPluginManager Grails plug-in [scaffolding] with version [1.0-RC1] loaded successfully
[1953] plugins.DefaultGrailsPluginManager Grails plug-in [webFlow] with version [1.0-RC1] loaded successfully
[1953] plugins.DefaultGrailsPluginManager Grails plug-in [services] with version [1.0-RC1] loaded successfully
[2125] util.GrailsUtil [WARNING] Property [url] of domain class Bookmark has type [java.net.URL] and doesn't support constraint [url]. This constraint will not be checked during validation.
-------------------------------------------------------
Running 1 Unit Test...
Running test BookmarkTests...
testSortBookmarks...SUCCESS
Unit Tests Completed in 203ms ...
-------------------------------------------------------
No tests found in test/integration to execute ...
[junitreport] Transform time: 1297ms
Tests passed. View reports in d:\src\workspace-Grails\bookmarks/test/reports

Now going to do run-app:

d:\src\workspace-Grails\bookmarks>grails run-app -Dserver.port=9090
grails run-app -Dserver.port=9090

Welcome to Grails 1.0-RC1 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: d:\install\groovy\grails-1.0-RC1

Base Directory: d:\src\workspace-Grails\bookmarks
Environment set to development
Note: No plugin scripts found
Running script d:\install\groovy\grails-1.0-RC1\scripts\RunApp.groovy
[0] plugins.DefaultGrailsPluginManager Attempting to load [0] user defined plugins
[0] plugins.DefaultGrailsPluginManager Grails plug-in [core] with version [1.0-RC1] loaded successfully
[0] plugins.DefaultGrailsPluginManager Grails plug-in [servlets] with version [1.0-RC1] loaded successfully
[0] plugins.DefaultGrailsPluginManager Grails plug-in [filters] with version [0.1] loaded successfully
[0] plugins.DefaultGrailsPluginManager Grails plug-in [dataSource] with version [1.0-RC1] loaded successfully
[0] plugins.DefaultGrailsPluginManager Grails plug-in [logging] with version [1.0-RC1] loaded successfully
[0] plugins.DefaultGrailsPluginManager Grails plug-in [i18n] with version [1.0-RC1] loaded successfully
[0] plugins.DefaultGrailsPluginManager Grails plug-in [codecs] with version [1.0-RC1] loaded successfully
[0] plugins.DefaultGrailsPluginManager Grails plug-in [urlMappings] with version [1.0-RC1] loaded successfully
[0] plugins.DefaultGrailsPluginManager Grails plug-in [controllers] with version [1.0-RC1] loaded successfully
[0] plugins.DefaultGrailsPluginManager Grails plug-in [hibernate] with version [1.0-RC1] loaded successfully
[0] plugins.DefaultGrailsPluginManager Grails plug-in [services] with version [1.0-RC1] loaded successfully
[0] plugins.DefaultGrailsPluginManager Grails plug-in [domainClass] with version [1.0-RC1] loaded successfully
[0] plugins.DefaultGrailsPluginManager Grails plug-in [scaffolding] with version [1.0-RC1] loaded successfully
[0] plugins.DefaultGrailsPluginManager Grails plug-in [webFlow] with version [1.0-RC1] loaded successfully
[0] plugins.DefaultGrailsPluginManager Grails plug-in [converters] with version [1.0-RC1] loaded successfully
Running Grails application..
2007-10-20 08:07:31.583::INFO: Logging to STDERR via org.mortbay.log.StdErrLog
2007-10-20 08:07:31.661::INFO: jetty-6.1.4
2007-10-20 08:07:32.395:/bookmarks:INFO: Set web app root system property: 'bookmarks' = [D:\src\workspace-Grails\bookmarks\web-app\]
2007-10-20 08:07:32.395:/bookmarks:INFO: Initializing Log4J from [D:\src\workspace-Grails\bookmarks\web-app\WEB-INF\classes\log4j.properties]
2007-10-20 08:07:32.395:/bookmarks:INFO: Initializing Spring root WebApplicationContext
[3265] util.GrailsUtil [WARNING] Property [url] of domain class Bookmark has type [java.net.URL] and doesn't support constraint [url]. This constraint will not be checked during validation.
[6594] hibernate.ConfigurableLocalSessionFactoryBean Building new Hibernate SessionFactory
[7515] mvc.GrailsUrlHandlerMapping Neither 'urlMap' nor 'mappings' set on SimpleUrlHandlerMapping
[9062] filters.FiltersGrailsPlugin reloadFilters
[9094] util.GrailsUtil [WARNING] Property [url] of domain class Bookmark has type [java.net.URL] and doesn't support constraint [url]. This constraint will not be checked during validation.
[9094] commons.GrailsConfigUtils [GrailsContextLoader] Grails application loaded.
2007-10-20 08:07:39.422:/bookmarks:INFO: Initializing Spring FrameworkServlet 'grails'
[9250] servlet.GrailsDispatcherServlet FrameworkServlet 'grails': initialization started
[9328] servlet.GrailsDispatcherServlet Using MultipartResolver [org.springframework.web.multipart.commons.CommonsMultipartResolver@52f9b2]
[9328] servlet.GrailsDispatcherServlet FrameworkServlet 'grails': initialization completed in 78 ms
2007-10-20 08:07:39.531::INFO: Started SelectChannelConnector@0.0.0.0:9090
Server running. Browse to http://localhost:9090/bookmarks
2007-10-20 08:08:06.000:/bookmarks:INFO: GSP servlet initialized
[41578] view.GrailsViewResolver View caching is SWITCHED OFF -- DEVELOPMENT SETTING ONLY: This can severely impair performance
[47156] view.GrailsViewResolver View caching is SWITCHED OFF -- DEVELOPMENT SETTING ONLY: This can severely impair performance
[60890] view.GrailsViewResolver View caching is SWITCHED OFF -- DEVELOPMENT SETTING ONLY: This can severely impair performance
[62984] view.GrailsViewResolver View caching is SWITCHED OFF -- DEVELOPMENT SETTING ONLY: This can severely impair performance


Ran it and it seemed to work.

tests fail because of the error that it can't cast String to URL.

Moving on to Ch 7.

Sunday, September 30, 2007

getting started with grails comments take 2

It's sunday and I'm working on chap 7 section "Adding Interceptors" THis is the section to get the user authorization part working. I just added the
def beforeInterceptor = [action:this.&auth,
except:['search']]

to the RaceController class, so things are kinda broken, but I've been saving state to svn as I go.

Going to go play with aidan.

Saturday, September 29, 2007

getting started with grails comments

in chapter 6 getting dynamic the
findAllByCityLikeAndStateLike.


Does not seem to work. Will try using the next section method which uses hibernate.

Hibernate method works well.
section Introduction the Hibernate Criteria Builder

Got the search working completely and tagged the end of ch 6/start of ch7 start-CHAP-7

Started working on registration stuff in ch 7 start but it doesn't work yet. Am taking the kids mini golfing!

Saturday, July 7, 2007

  • get wallet.
  • get lumber
    -1x2 x 8 foot or so for deck.
    -another anchor.
    -check out latice
    -heat register for bathroom.

Friday, July 6, 2007

get hosting company for Bills web site

ask dave

Friday July 6th

Today I submitted code for review:
DSMCCMessageHeader
SDBMessage
SDBInitRequest

  • drop off the kids.
  • get lumber
    -1x2 x 8 foot or so for deck.
    -another anchor.
    -check out latice
    -heat register for bathroom.
  • go to Compass picnic at 6
  • get wallet.

Now that I have this new blog, I need to search mtbr and old emails to repost or otherwise save old stuff I've written.
look for stuff in
  • mtbr
  • xeric computer's outlook Express
  • gmail

Thursday, July 5, 2007

Have a head cold

Yesterday was July 4th and a day off. I spent it working in the backyard cleaning up the patio. Then we went to the neighbors house to do bbq. Shot off fireworks and went home.

Today I woke with a cold. Definitely full of mucous today. Nasty.

Got code ready to merge. thought it was just cleanup, but there was lots of fixes, changes to do.

Kids and me got a haircut.

Arlene just left to go pick up our exchange student from France. Will be here for 3 weeks. Her name is Judith.