step1: Compile lynx with ssl support
cd lynx source folder
./configure –with-ssl
step2: make ; make install
To avoid local ssl error prompts/complains, Open lynx.cfg make following change:
step3: FORCE_SSL_PROMPT:yes
thats all!. you should be able to crawl https pages using lynx now.
Considering ffmpeg for mpeg cutting/splitting… too complex i think for such a simple task.
mpgtx.sourceforge.net is the way to go if are looking for simple operations like cutting/joining mpeg files.
Tool Summary :
This simple command(from a ruby script I wrote) will cut the full length videos into count_chunks pieces and store them under directory_writable, where count_chunks and directory_writable are both variables
Open3.popen3(”/bin/mpgtx -#{count_chunks} #{_file_to_process} -f -b #{directory_variable}/#{game.file_path.gsub(’.mpg’,'’)} 2>> #{directory_variable}/split.log”)
RAILS_ROOT gives you relative path within the applications it works fine as far as you need the path within rails application.
How about getting absolute path to rails folder?
I found one way, and thats from the ENV hash.
You can use ENV[’PWD’] to find absolute path to the rails folder.
Any other ways ??
*Update 4th Oct 2007*
Dir.pwd is a better way