Roger's woze

April 28, 2011

rails freeze rails 3 (and gems too)

Filed under: Uncategorized — rogerdpack @ 12:25 pm

I think to do this it’s

(make sure rails is mentioned in your Gemfile)

$ bundle package

then (on each server you deploy to)

$ bundle install

or

$ bundle install –deployment

to install them locally.

Same with gems.

April 27, 2011

zions bank ach

Filed under: Uncategorized — rogerdpack @ 3:30 pm

Called them, they say they don’t do them.

Emailed them, they say they do.

April 26, 2011

ssh -X x client freezes, unresponsive, lags

Filed under: Uncategorized — rogerdpack @ 1:39 pm

the solution to all of these is to install nomachine freenx

It is a much faster x client. As in actually works.

This helps jconsole actually run in remote, for me.

VNC might have worked, as well.

NB that for me it was “had trouble starting your session” so I installed xterm on the host, then setup the window to be “custom” windows manager and set the script to /usr/bin/xterm and it worked.

oracle write sql query output (sqlplus output) to file

Filed under: Uncategorized — rogerdpack @ 12:03 pm

set pagesize 0

spool filename

spool off

rails snapshot mysql db

Filed under: Uncategorized — rogerdpack @ 10:38 am

A script to create a local snapshot of your database with timestamp

echo whatever_your_password_is
A=`date`
B=`echo $A | tr -d \\n`
mysqldump -uuser_name db_name -p > "snap$B.sql"

April 22, 2011

mac os x volume is too low

Filed under: Uncategorized — rogerdpack @ 7:35 am

what you want is the “boom” application which powers it up (why apple doesn’t just make this a preference…ai ai)

http://www.globaldelight.com/boom/

$9 I believe, but worth it.

Or code your own up and I’ll pay you for it:

http://nextsprocket.com/tasks/open-source-boom-for-mac-os-x

April 20, 2011

mplayer macports install

Filed under: Uncategorized — rogerdpack @ 11:40 pm

It works fine for me with mplayer.

$ sudo port install mplayer

… wait forever.

Don’t know how to fix dvdnav yet…

Also you may want to first install the “libdvdnav” and then compile from source (which seems non trivial, even after macports dependencies are installed), to avoid this error (or just use dvd:// always … )

No stream found to handle url dvdnav://

macports woe

Filed under: Uncategorized — rogerdpack @ 10:49 pm

Roger-Pcks-MacBook:~ rogerdpack$ cat /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_m4/main.logversion:1:debug:main Executing org.macports.main (m4):debug:main Skipping completed org.macports.fetch (m4):debug:main Skipping completed org.macports.checksum (m4):debug:main setting option extract.cmd to /usr/bin/bzip2:debug:main Skipping completed org.macports.extract (m4):debug:main Skipping completed org.macports.patch (m4):msg:main —>  Configuring m4:debug:main Using compiler ‘Mac OS X gcc 4.2′:debug:configure configure phase started at Wed Apr 20 22:43:23 MDT 2011:debug:configure Executing org.macports.configure (m4):debug:configure Environment: CPATH=’/opt/local/include’ CFLAGS=’-pipe -O2 -arch x86_64′ CPPFLAGS=’-I/opt/local/include’ CXXFLAGS=’-pipe -O2 -arch x86_64′ LIBRARY_PATH=’/opt/local/lib’ MACOSX_DEPLOYMENT_TARGET=’10.6′ CXX=’/usr/bin/g++-4.2′ CC_PRINT_OPTIONS_FILE=’/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_m4/work/.CC_PRINT_OPTIONS’ F90FLAGS=’-pipe -O2 -m64′ LDFLAGS=’-L/opt/local/lib -arch x86_64′ OBJC=’/usr/bin/gcc-4.2′ FCFLAGS=’-pipe -O2 -m64′ INSTALL=’/usr/bin/install -c’ OBJCFLAGS=’-pipe -O2 -arch x86_64′ FFLAGS=’-pipe -O2 -m64′ CC_PRINT_OPTIONS=’YES’ CC=’/usr/bin/gcc-4.2′:debug:configure Assembled command: ‘cd “/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_m4/work/m4-1.4.16″ && ./configure –prefix=/opt/local –program-prefix=g ac_cv_libsigsegv=no’:info:configure sh: line 0: cd: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_m4/work/m4-1.4.16: No such file or directory:info:configure shell command ” cd “/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_m4/work/m4-1.4.16″ && ./configure –prefix=/opt/local –program-prefix=g ac_cv_libsigsegv=no ” returned error 1:error:configure Target org.macports.configure returned: configure failure: shell command failed (see log for details):debug:configure Backtrace: configure failure: shell command failed (see log for details)    while executing”$procedure $targetname”:info:configure Warning: the following items did not execute (for m4): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install:notice:configure Log for m4 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_m4/main.log

 

might mean  ”your macports had an interrupted download, and is now trying to install a newer version but not extracting it right, so do what this describes: http://old.nabble.com/Unable-to-upgrade-Port-td30043665.html

wealth lasts not?

Filed under: Uncategorized — rogerdpack @ 1:44 pm

Sports Illustrated reported that 78 percent of former NFL players were bankrupt or under financial duress within two years of retirement. Likewise, 60 percent of former NBA players were reportedly bankrupt within five years of retirement.

best prog language

Filed under: Uncategorized — rogerdpack @ 8:29 am

I think a C wrapper might (would?) be better, since java just…feels…slower than C…somehow…

inline C doesn’t cut it.

maybe mirah -> ruby C api?

It definitely needs GC.

(NB that ruby seems to have no intermediate currently…hmm

nextsprocket it?)

java python?

It needs to produce nice concise, clear code, explicit preferably

clojure does this?

« Newer PostsOlder Posts »

Powered by WordPress