Roger's woze

April 30, 2011

funky number

Filed under: Uncategorized — rogerdpack @ 4:24 am

1.8014398509482e+16

for me, this meant that ruby-prof was calculating numbers wrong and causing an overflow.

cheap/free ssl

Filed under: Uncategorized — rogerdpack @ 4:16 am

http://www.startssl.com unbelievably, appears to have free SSL certificates that work.  Beyond the free ones, I’m not sure if their prices compete well with godaddy or not, but they might indeed.

idea for uber-cool bitcoin exchange

Filed under: Uncategorized — rogerdpack @ 3:15 am

https://www.bitcoin.org/smf/index.php?action=printpage;topic=5590.0

 

So currently we know that they charge 7% for paypal mtgox USD.

So you could under cut that.

The ideal would be…

It is currently super painful to actually get a bitcoin.

somehow, you must avoid chargebacks, like this described by joey.rich: http://www.bitcoin.org/smf/index.php?topic=5590.0 (lost 120000 BTC from fraudelent paypal accounts, probably)

Anyway so the idea is that you “escrow” them some mtgox USD until their money clears a timeout state.  Somehow, that is.

This could also undercut the 7% coinpal/7-10% mtgox paypal

Actually, the original thing could be, you wire money into mtgox (no overhead), then you pay it out to paypal (registered only I guess…)

His idea is “easy in, easy out” I suppose, though, like insta-out, insta-in….I could take a cut and then aggressively market the sale….?

April 29, 2011

camstudio youtube

Filed under: Uncategorized — rogerdpack @ 1:16 pm

here’s how:

http://camstudio.org/forum/discussion/248/slantedsplit-screen-with-camstudio-codec-help-please/p1

windows 7 set default microphone

Filed under: Uncategorized — rogerdpack @ 1:00 pm

looks like it’s control panel -> manage audio devices -> recording tab -> right click on one, choose “set as default”

acs tips

Filed under: Uncategorized — rogerdpack @ 11:29 am

display volume * -acs 4 (all volumes in a specific acs)

check if a tape is scratch or data, currently:

ACSSA> display volume XXXXXX

rails 3 bluehost in a subfolder (relative_url_route)

Filed under: Uncategorized — rogerdpack @ 7:47 am

So you want your rails to be in a subfolder, eh?

The trick appears to set your routes in a scope [relative_url_route is no longer an option [1]]:

https://github.com/dre3k/rails3_fcgi/blob/master/config/routes.rb

then set that environment variable somehow (for him:)

https://github.com/dre3k/rails3_fcgi/blob/master/public/.htaccess

bluehost doesn’t appear to allow SetEnv within .htaccess files, for some reason, here’s mine:

https://github.com/rdp/relationship_solver/commit/82708ca983b7755b43dc54cc3bd848261b94b7f3

refs:

[1] http://stackoverflow.com/questions/3181746/what-is-the-replacement-for-actioncontrollerbase-relative-url-root

rails 3 routes.rb logger

Filed under: Uncategorized — rogerdpack @ 7:41 am

use

Rails.logger.info ‘bla bla bla’

to overcome

/home/wilkboar/dev/prod_relationship_solver/config/routes.rb:62:in `block in <top (required)>’: undefined local variable or method `logger’ for #<ActionDispatch::Routing::Mapper:0x00000002c61248> (NameError)

April 28, 2011

ruby 1.9.2 woe

Filed under: Uncategorized — rogerdpack @ 1:13 pm

/home/wilkboar/dev/prod_musicformormons/kill_rubys.rb:2:in `<main>’: undefined method `each’ for #<String:0x0000000130d418> (NoMethodError)

meant “you cannot use a string in “for x in string; end” in ruby, use “for x in string.lines; end”

bluehost rails 3

Filed under: Uncategorized — rogerdpack @ 12:59 pm

Basically, add fcgi to your Gemfile, install that gem (see comment), use “bundle install –production” to use your gems, then use this:

http://stackoverflow.com/questions/3296206/rails-3-and-fcgi

.htaccess and dispatch.fcgi file

Phew!

Comment if you still have problems, mine seems to work well.

Older Posts »

Powered by WordPress