Roger's Brain Dump

March 9, 2010

redcar woe

Filed under: Uncategorized — rogerdpack @ 11:38 pm
*** ERROR in Document controller: <Redcar::AutoPairer::DocumentController>
NoMethodError: undefined method `scope_at’ for com.redcareditor.mate.MateText@190ffa7:Java::ComRedcareditorMate::MateText
E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/redcar-0.3.2dev/plugins/edit_view_swt/lib/edit_view_swt/document.rb:154:in `scope_at’
E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/redcar-0.3.2dev

*** ERROR in Document controller: <Redcar::AutoPairer::DocumentController>NoMethodError: undefined method `scope_at’ for com.redcareditor.mate.MateText@190ffa7:Java::ComRedcareditorMate::MateTextE:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/redcar-0.3.2dev/plugins/edit_view_swt/lib/edit_view_swt/document.rb:154:in `scope_at’E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/redcar-0.3.2dev

meant “you need to upgrade your java-mateview.jar “

git woe

Filed under: Uncategorized — rogerdpack @ 11:30 pm
E:\installs\ruby191p376\lib\ruby\gems\1.9.1\gems\redcar-0.3.2dev>git submodule update vendor\java-mateview
fatal: Needed a single revision
Unable to find current revision in submodule path ‘vendor/java-mateview’
E:\installs\ruby191p376\lib\ruby\gems\1.9.1\gems\redcar-0.3.2dev>rm -rf vendor\java-mateview
E:\installs\ruby191p376\lib\ruby\gems\1.9.1\gems\redcar-0.3.2dev>git submodule init vendor\java-mateview

E:\installs\ruby191p376\lib\ruby\gems\1.9.1\gems\redcar-0.3.2dev>git submodule update vendor\java-mateviewfatal: Needed a single revisionUnable to find current revision in submodule path ‘vendor/java-mateview’
E:\installs\ruby191p376\lib\ruby\gems\1.9.1\gems\redcar-0.3.2dev>rm -rf vendor\java-mateview
E:\installs\ruby191p376\lib\ruby\gems\1.9.1\gems\redcar-0.3.2dev>git submodule init vendor\java-mateview

ruby build woes

Filed under: Uncategorized — rogerdpack @ 9:46 pm
C:\dev\ruby\downloads\ruby_trunk>make
ruby ./tool/generic_erb.rb -c -o known_errors.inc ./template/known_errors.inc.tmpl ./defs/known_errors.def
make: ruby: Command not found
make: *** [known_errors.inc] Error 127
C:\dev\ruby\downloads\ruby_trunk>
C:\dev\ruby\downloads\ruby_trunk>make
ruby -Ks ./tool/insns2vm.rb –srcdir=”.” insns.inc
c:\dev\ruby\downloads\ruby_trunk\ruby.exe: unknown encoding name – Windows-31J (RuntimeError)
make: *** [insns.inc] Error 1

C:\dev\ruby\downloads\ruby_trunk>makeruby ./tool/generic_erb.rb -c -o known_errors.inc ./template/known_errors.inc.tmpl ./defs/known_errors.defmake: ruby: Command not foundmake: *** [known_errors.inc] Error 127

meant “do a fresh checkout this thing doesn’t clean right”

C:\dev\ruby\downloads\ruby_trunk>makeruby -Ks ./tool/insns2vm.rb –srcdir=”.” insns.incc:\dev\ruby\downloads\ruby_trunk\ruby.exe: unknown encoding name – Windows-31J (RuntimeError)make: *** [insns.inc] Error 1

setup correct cacheing with mod rails

Filed under: Uncategorized — rogerdpack @ 2:26 pm

By default mod_rails does “ok” cacheing of static files.

For example for each page the browser will request “has this static file changed?” from apache, apache will say no, and there won’t be a huge slowdown, but there is still some slowdown.

To avoid it, set your static content to never expire (since it doesn’t need to because of the ?timestamp that rails already affixes).

http://zargony.com/2009/01/22/let-browsers-cache-static-files-to-greatly-speed-up-your-site

http://jamescrisp.blogspot.com/2007/04/improve-rails-performance-through.html

March 8, 2010

how to convert doc to doc on mac os x and pptx to ppt

Filed under: Uncategorized — rogerdpack @ 7:48 pm

see http://betterlogic.com/roger/?p=489

enjoy!

mbean woe

Filed under: Uncategorized — rogerdpack @ 7:41 pm
javax.management.AttributeNotFoundException: No such attribute: RequestOverLastMinute

meant "your attribute has to be
RequestOverLastMinute
for the getter
getRequestOverLastMinute

March 5, 2010

junit maven woe

Filed under: Uncategorized — rogerdpack @ 8:08 pm
Testsuite: org.familysearch.digitalarchive.dasstoragecellws.schema.HistoryTrackerTest
Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.094 sec
Testcase: initializationError(org.familysearch.digitalarchive.dasstoragecellws.schema.HistoryTrackerTest):        Caused an ERROR
No runnable methods
java.lang.Exception: No runnable methods
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
Test org.familysearch.digitalarchive.dasstoragecellws.schema.HistoryTrackerTest FAILED
test:
Deleting: b:\TEST-org.familysearch.digitalarchive.dasstoragecellws.schema.HistoryTrackerTest.xml
BUILD SUCCESSFUL (total time: 10 seconds)

Testsuite: org.familysearch.digitalarchive.dasstoragecellws.schema.HistoryTrackerTestTests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.094 sec
Testcase: initializationError(org.familysearch.digitalarchive.dasstoragecellws.schema.HistoryTrackerTest):        Caused an ERRORNo runnable methodsjava.lang.Exception: No runnable methods        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

Test org.familysearch.digitalarchive.dasstoragecellws.schema.HistoryTrackerTest FAILEDtest:Deleting: b:\TEST-org.familysearch.digitalarchive.dasstoragecellws.schema.HistoryTrackerTest.xmlBUILD SUCCESSFUL (total time: 10 seconds)

meant “you need to add an @Test to the beginning of one of your testable methods in the test class–and there *has* to be at least one or it will throw this!”

March 4, 2010

jruby woe

Filed under: Uncategorized — rogerdpack @ 10:39 pm
C:\installs\ruby191p376\lib\ruby\gems\1.9.1\gems\redcar-0.3.3>”c:\Program Files\jruby-1.4.0\bin\jruby.EXE” –server –fast C:\installs\ruby191p376\lib\ruby\gems\1.9.1\gems\redcar-0.3.3\bin\redcar
Exception in thread “main”

C:\installs\ruby191p376\lib\ruby\gems\1.9.1\gems\redcar-0.3.3>”c:\Program Files\jruby-1.4.0\bin\jruby.EXE” –server –fast C:\installs\ruby191p376\lib\ruby\gems\1.9.1\gems\redcar-0.3.3\bin\redcarException in thread “main”

meant “upgrade your version of jruby”

redcar woe

Filed under: Uncategorized — rogerdpack @ 8:23 pm
setGrammarByName(Plain Text)
E, [2010-03-04T13:20:19.718000 #2772] ERROR — : * Error in command Redcar::Project::FileOpenCommand
E, [2010-03-04T13:20:19.718000 #2772] ERROR — :   java.lang.NullPointerException: null
E, [2010-03-04T13:20:19.718000 #2772] ERROR — :   com/redcareditor/mate/MateText.java:129:in `shouldColour’
E, [2010-03-04T13:20:19.718000 #2772] ERROR — :   com/redcareditor/mate/colouring/swt/SwtColourer.java:228:in `colourLine’
E, [2010-03-04T13:20:19.718000 #2772] ERROR — :   com/redcareditor/mate/colouring/swt/SwtColourer.java:36:in `access$000′
E, [2010-03-04T13:20:19.718000 #2772] ERROR — :   com/redcareditor/mate/colouring/swt/SwtColourer.java:50:in `lineGetStyle’
E, [2010-03-04T13:20:19.718000 #2772] ERROR — :   org.eclipse.swt.custom.StyledTextListener:-1:in `handleEvent’
E, [2010-03-04T13:20:19.718000 #2772] ERROR — :   org.eclipse.swt.widgets.EventTable:-1:in `sendEvent’
E, [2010-03-04T13:20:19.718000 #2772] ERROR — :   org.eclipse.swt.widgets.Widget:-1:in `sendEvent’
E, [2010-03-04T13:20:19.718000 #2772] ERROR — :   org.eclipse.swt.widgets.Widget:-1:in `sendEvent’
E, [2010-03-04T13:20:19.718000 #2772] ERROR — :   org.eclipse.swt.widgets.Widget:-1:in `sendEvent’
E, [2010-03-04T13:20:19.734000 #2772] ERROR — :   org.eclipse.swt.widgets.Widget:-1:in `notifyListeners’
E, [2010-03-04T13:20:19.734000 #2772] ERROR — :   org.eclipse.swt.custom.StyledText:-1:in `sendLineEvent’
E, [2010-03-04T13:20:19.734000 #2772] ERROR — :   org.eclipse.swt.custom.StyledText:-1:in `getLineStyleData’
E, [2010-03-04T13:20:19.734000 #2772] ERROR — :   org.eclipse.swt.custom.StyledTextRenderer:-1:in `getTextLayout’
E, [2010-03-04T13:20:19.734000 #2772] ERROR — :   org.eclipse.swt.custom.StyledTextRenderer:-1:in `getTextLayout’
E, [2010-03-04T13:20:19.734000 #2772] ERROR — :   org.eclipse.swt.custom.StyledText:-1:in `getPointAtOffset’
E, [2010-03-04T13:20:19.734000 #2772] ERROR — :   org.eclipse.swt.custom.StyledText:-1:in `setCaretLocation’
E, [2010-03-04T13:20:19.734000 #2772] ERROR — :   org.eclipse.swt.custom.StyledText:-1:in `setBackground’
E, [2010-03-04T13:20:19.734000 #2772] ERROR — :   com/redcareditor/mate/colouring/swt/SwtColourer.java:129:in `setMateTextColours’
E, [2010-03-04T13:20:19.734000 #2772] ERROR — :   com/redcareditor/mate/colouring/swt/SwtColourer.java:90:in `setGlobalColours’
E, [2010-03-04T13:20:19.734000 #2772] ERROR — :   com/redcareditor/mate/colouring/swt/SwtColourer.java:85:in `setTheme’
E, [2010-03-04T13:20:19.734000 #2772] ERROR — :   com/redcareditor/mate/MateText.java:211:in `setThemeByName’
E, [2010-03-04T13:20:19.734000 #2772] ERROR — :   C:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/redcar-0.3.3/plugins/edit_view_swt/lib/edit_view_swt.rb:39:in `initialize’

setGrammarByName(Plain Text)E, [2010-03-04T13:20:19.718000 #2772] ERROR — : * Error in command Redcar::Project::FileOpenCommandE, [2010-03-04T13:20:19.718000 #2772] ERROR — :   java.lang.NullPointerException: nullE, [2010-03-04T13:20:19.718000 #2772] ERROR — :   com/redcareditor/mate/MateText.java:129:in `shouldColour’E, [2010-03-04T13:20:19.718000 #2772] ERROR — :   com/redcareditor/mate/colouring/swt/SwtColourer.java:228:in `colourLine’E, [2010-03-04T13:20:19.718000 #2772] ERROR — :   com/redcareditor/mate/colouring/swt/SwtColourer.java:36:in `access$000′E, [2010-03-04T13:20:19.718000 #2772] ERROR — :   com/redcareditor/mate/colouring/swt/SwtColourer.java:50:in `lineGetStyle’E, [2010-03-04T13:20:19.718000 #2772] ERROR — :   org.eclipse.swt.custom.StyledTextListener:-1:in `handleEvent’E, [2010-03-04T13:20:19.718000 #2772] ERROR — :   org.eclipse.swt.widgets.EventTable:-1:in `sendEvent’E, [2010-03-04T13:20:19.718000 #2772] ERROR — :   org.eclipse.swt.widgets.Widget:-1:in `sendEvent’E, [2010-03-04T13:20:19.718000 #2772] ERROR — :   org.eclipse.swt.widgets.Widget:-1:in `sendEvent’E, [2010-03-04T13:20:19.718000 #2772] ERROR — :   org.eclipse.swt.widgets.Widget:-1:in `sendEvent’E, [2010-03-04T13:20:19.734000 #2772] ERROR — :   org.eclipse.swt.widgets.Widget:-1:in `notifyListeners’E, [2010-03-04T13:20:19.734000 #2772] ERROR — :   org.eclipse.swt.custom.StyledText:-1:in `sendLineEvent’E, [2010-03-04T13:20:19.734000 #2772] ERROR — :   org.eclipse.swt.custom.StyledText:-1:in `getLineStyleData’E, [2010-03-04T13:20:19.734000 #2772] ERROR — :   org.eclipse.swt.custom.StyledTextRenderer:-1:in `getTextLayout’E, [2010-03-04T13:20:19.734000 #2772] ERROR — :   org.eclipse.swt.custom.StyledTextRenderer:-1:in `getTextLayout’E, [2010-03-04T13:20:19.734000 #2772] ERROR — :   org.eclipse.swt.custom.StyledText:-1:in `getPointAtOffset’E, [2010-03-04T13:20:19.734000 #2772] ERROR — :   org.eclipse.swt.custom.StyledText:-1:in `setCaretLocation’E, [2010-03-04T13:20:19.734000 #2772] ERROR — :   org.eclipse.swt.custom.StyledText:-1:in `setBackground’E, [2010-03-04T13:20:19.734000 #2772] ERROR — :   com/redcareditor/mate/colouring/swt/SwtColourer.java:129:in `setMateTextColours’E, [2010-03-04T13:20:19.734000 #2772] ERROR — :   com/redcareditor/mate/colouring/swt/SwtColourer.java:90:in `setGlobalColours’E, [2010-03-04T13:20:19.734000 #2772] ERROR — :   com/redcareditor/mate/colouring/swt/SwtColourer.java:85:in `setTheme’E, [2010-03-04T13:20:19.734000 #2772] ERROR — :   com/redcareditor/mate/MateText.java:211:in `setThemeByName’E, [2010-03-04T13:20:19.734000 #2772] ERROR — :   C:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/redcar-0.3.3/plugins/edit_view_swt/lib/edit_view_swt.rb:39:in `initialize’

meant “you for some reason don’t have your textmate bundles, etc. installed correctly”

March 3, 2010

maven woe

Filed under: Uncategorized — rogerdpack @ 12:35 am
[rdp@con-idis-move5 tapedriveservice]$  javasrb org/familysearch/digitalarchive/tapedriveservice/TapeDriveService
Exception in thread “main” java.lang.Error: Unresolved compilation problem:
at org.familysearch.digitalarchive.tapedriveservice.TapeDriveService.main(TapeDriveService.java:44)

[rdp@con-idis-move5 tapedriveservice]$  javasrb org/familysearch/digitalarchive/tapedriveservice/TapeDriveServiceException in thread “main” java.lang.Error: Unresolved compilation problem:
at org.familysearch.digitalarchive.tapedriveservice.TapeDriveService.main(TapeDriveService.java:44)

meant “you need to do a maven clean first”

Older Posts »

Powered by WordPress