Roger's woze

December 30, 2011

utopia uia fee

Filed under: Uncategorized — rogerdpack @ 1:46 pm

looks like for “new” utopia connections you will be charged an extra $25/month fee on top of whatever the provider charges.

Which is apparently cheap:

http://www.freeutopia.org/2011/05/23/further-utopia-installation-details/

mstar metro

Filed under: Uncategorized — rogerdpack @ 11:47 am

mstar

lenovo w520 microphone too quiet/garbled

Filed under: Uncategorized — rogerdpack @ 11:19 am

http://forum.lenovo.com/t5/W-Series-ThinkPad-Laptops/W520-bad-microphone-Usable/td-p/528497 has the answer that worked for me.

check search ranking google

Filed under: Uncategorized — rogerdpack @ 9:40 am

http://www.mikes-marketing-tools.com/ranking-reports/ 

just use google chrome portable instead, this thing said I was 4th in google when all the queries I did, including without cookies, resulted in 2nd.

December 29, 2011

mplayer specify height and width stretch to fit

Filed under: Uncategorized — rogerdpack @ 12:38 pm

looks like your only option for manually specifying an “override” to the movie height and width is via the -aspect command.

one example might look like:
-vf scale=1920 -aspect 1920:1080
to completely fill a monitor

December 23, 2011

ffi woe

Filed under: Uncategorized — rogerdpack @ 9:14 am

gem install pkg/process_shared-0.0.5.gem
Fetching: ffi-1.0.11.gem (100%)
Building native extensions. This could take a while…
ERROR: Error installing pkg/process_shared-0.0.5.gem:
ERROR: Failed to build gem native extension.

/home/rdp/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
checking for ffi.h… no
checking for ffi.h in /usr/local/include…

Gem files will remain installed in /home/rdp/.rvm/gems/ruby-1.9.2-p290/gems/ffi-1.0.11 for inspection.
Results logged to /home/rdp/.rvm/gems/ruby-1.9.2-p290/gems/ffi-1.0.11/ext/ffi_c/gem_make.out

might have meant “you’re installing ffi gem from two separate processes which collided” {?}

rvm update list

Filed under: Uncategorized — rogerdpack @ 8:06 am

looks like it’s
$rvm get latest
$ rvm list known

December 19, 2011

hibernate woe

Filed under: Uncategorized — rogerdpack @ 5:35 pm

org.h2.jdbc.JdbcSQLException: Table “ALL_SEQUENCES” not found; SQL statement:
This meant (for me) that I was specifying this dialect in the hibernate.cfg.xml

oracle.jdbc.driver.OracleDriver

org.hibernate.dialect.Oracle10gDialect

but then not overriding it [fully] with my Configuration#setProperty stuff.
The fix was to make sure to call configure before setproperty, like

cfg.configure();// reads from hibernate.cfg.xml
cfg.setProperty(“hibernate.dialect”, “org.hibernate.dialect.H2Dialect”); // overrides it
sf = cfg.buildSessionFactory();

hibernate let db auto generate id

Filed under: Uncategorized — rogerdpack @ 5:09 pm

just don’t specify a generator.

As long as you have unique ID’s or the DB is creating them/forcing them to be unique, then you’re good to go.

hibernate override hibernate.cfg.xml

Filed under: Uncategorized — rogerdpack @ 5:07 pm

Here’s an example.

Configuration cfg = new Configuration(); // automagically sucks in hibernate.cfg.xml I guess…
cfg.configure();
cfg.setProperty(“connection.driver_class”, “org.h2.Driver”);
cfg.setProperty(“hibernate.connection.driver_class”, “org.h2.Driver”);
cfg.setProperty(“hibernate.connection.url”, “jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1″);
cfg.setProperty(“hibernate.connection.username”, “sa”);
cfg.setProperty(“hibernate.connection.password”, “”);
cfg.setProperty(“hibernate.hbm2ddl.auto”, “create”); // recreate each time…
cfg.setProperty(“hbm2ddl.auto”, “create”); // recreate each time…
cfg.setProperty(“hibernate.dialect”, “org.hibernate.dialect.H2Dialect”);
sf = cfg.buildSessionFactory();

the key is to call configure *first* then override parameters.

Older Posts »

Powered by WordPress