Roger's woze

June 17, 2011

ruby fibers in scala

Filed under: Uncategorized — rogerdpack @ 10:37 am

Probably possible:

http://stackoverflow.com/questions/2137619/scala-equivalent-to-python-generators (Rich)

ideal programming language

Filed under: Uncategorized — rogerdpack @ 9:54 am

Optional significant indentation [?]

////      yo.setAttribute(“a”, “b”, :loop_forever => true) // a bit scary — what are the options?

var args should enforce you don’t pass extras…I guess they’re ok…they need to be built-in…

// impossible in java :P //

yo.setAttribute(“a”, “b”, loopForever.True)) // ok//

yo.setAttribute(“a”, “b”, loopForever)) // import static enum

 

June 16, 2011

imagemagick/convert/mogrify how to convert pdf to thumbnail without losing resolution

Filed under: Uncategorized — rogerdpack @ 5:38 pm

Well, first you’ll want to use the -density command

$ convert -density 200 incoming.pdf[0] yo.png

Second of all–don’t use gif!  if you were to convert the above to yo.gif, then rescale/resize it down, it would get really jagged, losing lines, etc.

You have been warned.

June 15, 2011

smplayer play a specific dvd device

Filed under: Uncategorized — rogerdpack @ 11:09 pm

smplayer dvd://1/f:

June 14, 2011

how to output a sane arrayList.toString in java

Filed under: Uncategorized — rogerdpack @ 12:08 pm

http://javahowto.blogspot.com/2009/10/print-array-content-with-arraystostring.html

June 13, 2011

ruby how to tell if you’re on windows

Filed under: Uncategorized — rogerdpack @ 1:36 pm

How to really tell if you’re on windows (but not cygwin, which counts as unix)

use the OS gem

>> require ‘os’
>> OS.windows?
=> true

June 12, 2011

[MPlayer-users] edl= not working in config files

Filed under: Uncategorized — rogerdpack @ 5:01 pm

I think it does work now:

ref: http://www.itdp.de/mplayer-users/2005-05/msg00354.html

June 10, 2011

libvlc_media_library_load

Filed under: Uncategorized — rogerdpack @ 4:00 pm

appears this means “load a library” (like a list of files?)

ref: http://forum.videolan.org/viewtopic.php?f=14&t=48161&p=219778

mencoder 1 duplicate frame(s) detected! with DVD

Filed under: Uncategorized — rogerdpack @ 10:35 am

Turns out for DVD this means

ref:ftp://ftp2.mplayerhq.hu/MPlayer/DOCS/HTML/en/menc-feat-telecine.html 7.2.3.1

mencoder set mux rate

Filed under: Uncategorized — rogerdpack @ 10:21 am

-of mpeg -mpegopts muxrate=2000

ref: http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-mpeg.html

« Newer PostsOlder Posts »

Powered by WordPress