Roger's woze

January 12, 2012

dot.tk not resolving to new “3rd party” DNS servers

Filed under: Uncategorized — rogerdpack @ 9:31 am

Instead it resolves to

93.170.52.30 93.170.52.20

I think this means “your changes haven’t propagated through the system yet” [even if it's brand new]

http://getsatisfaction.com/dottk/topics/domain_problem-iullo#reply_5738945

January 11, 2012

jobs orem ut

Filed under: Uncategorized — rogerdpack @ 10:46 am

If anybody is feeling desperate out there, I’d be happy to employ anyone for as long as they want to for (not much money).

As in…I don’t want anybody to starve to death so, if you need help like that, come to me, I can help you out.

Hope this gets anywhere…

January 10, 2012

java parse multipart mime string

Filed under: Uncategorized — rogerdpack @ 2:21 pm

http://stackoverflow.com/questions/7677759/how-to-parse-a-multi-part-mime-message-body-in-java

or uses mime4j I guess

jruby java system setproperty

Filed under: Uncategorized — rogerdpack @ 2:04 pm

require ‘java’

java::lang.System.setProperty(“mail.mime.address.strict”, “false”);

January 7, 2012

lds scriptures on kindle fire

Filed under: Uncategorized — rogerdpack @ 11:06 am

you get them through the “gospel library” http://www.amazon.com/Church-Jesus-Christ-Latter-day-Saints/dp/B006OP8494/ref=sr_1_cc_1?s=digital-text&ie=UTF8&qid=1325959469&sr=1-1-catcorr

January 5, 2012

google docs share with a changing fluctuating group

Filed under: Uncategorized — rogerdpack @ 2:33 pm

http://support.google.com/docs/bin/answer.py?hl=en&answer=66343

“if you’re sharing”

January 4, 2012

ruby fcgi parse “get” parameters

Filed under: Uncategorized — rogerdpack @ 12:25 pm

looks like it’s

require ‘cgi’

>> CGI.parse “abc=def&yoyo=33&yoyo=34″

=> {“yoyo”=>["33", "34"], “abc”=>["def"]}

in fcgi

incoming_params=CGI.parse(request.env["REQUEST_URI"].split(‘?’)[1])

ruby fcgi get env parameters environment

Filed under: Uncategorized — rogerdpack @ 12:23 pm

Looks like you can get the “ENV” of each request via:
FCGI.each { |request|
request.env
}

or with FCGI.each_cgi{|cgi| cgi.env_table}

 

how to simulate test dispatch.fcgi

Filed under: Uncategorized — rogerdpack @ 11:59 am

basically just run this block:

FCGI.each_cgi do |cgi|
content = ”
env = []
cgi.env_table.each do |k,v|
env << [k,v]
end
env.sort!
env.each do |k,v|
content << %Q(#{k} => #{v}<br>\n)
end
cgi.out{content}
end

 

then run

$ REQUEST_METHOD=GET   ./dispatch.fcgi
it should “work” and return “some text” to the stdout output.

for some reason just calling CGI.each

and running it from the command line it just hangs/suspends. odd.

Premature end of script headers: dispatch.fcgi

Filed under: Uncategorized — rogerdpack @ 11:58 am

for me [bluehost] this meant “your dispatch.fcgi is giving the output an unterminated Content-Type: line”
DO NOT COPY NOR USE THE EXAMPLE FROM http://blogs.oracle.com/trawick/entry/running_a_simple_ruby_fastcgi which is what messed me up. It has extra back slashes so that line didn’t terminate.  This is how I got my problem.

This for ruby fcgi, but probably all.

« Newer PostsOlder Posts »

Powered by WordPress