First
|
Prev |
Next
|
Last
Pages: 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192
Getting version from PE executables Hi. I'm trying to get file version from EXE or DLL files, writing a ruby script (to run it in Linux). My code is: fd = File.open(ARGV[0], "rb") size = File.size(fd) # signature VS_VERSION_INFO sig = [ ?V, ?S, ?_, ?V, ?E, ?R, ?S, ?I, ?O, ?N, ?_, ?I, ?N, ?F, ?O, ] fd.pos=0 data=fd.read(... 2 Nov 2009 01:23
Ruby doesn't implement x++ for Fixnum's because ??? Hi, In The Well Grounded Rubyist (which, along with The Ruby Way, I love), Dave Black presents a justification for the x++ omission in Ruby. I thought I'd see whether I could implement just the incrementing portion of C's x++ functionality (without the prefix/ postfix issues) in pure Ruby. I wasnt willing t... 21 Nov 2009 09:12
Thread error "undefined method `keys' for nil:NilClass" Hi all I have this prog taken from a book. require 'net/http' pages = ["www.rubycentral.com", "www.awl.com", "www.davidecasale.com"] threads = [] pages.each do |page| threads << Thread.new(page) { |myPage| h = Net::HTTP.new(myPage, 80) puts "Fetching: #{myPage}" resp, data = h.get(... 29 Oct 2009 13:09
Using multicore CPUs in parallel tasks Hi, I've been reading around a bit but couldn't find a solution that worked, so here goes: I am running ruby 1.8 and want to make full use of a quad core CPU (64bit, Ubuntu) in a task that lends itself to multithreading/multicore use. It's basically an array of objects that are each use in a fairly CPU int... 3 Nov 2009 14:51
Open an explorer window Does anyone know how to open a windows explorer window with Ruby? What I want to do is to open up the folder in which I just copied some files. any ideas would be very helpful. -- Posted via http://www.ruby-forum.com/. ... 29 Oct 2009 08:43
Ruby can't subtract ? I found this blog entry: http://raveendran.wordpress.com/2009/06/29/ruby-big-decimal/ Which shows the following.. irb(main):011:0> require 'bigdecimal' => true irb(main):012:0> x = BigDecimal("123.6") - BigDecimal("123") => #<BigDecimal:28c5b84,'0.6E0',4(16)> irb(main):013:0> puts x.to_f 0.6 => nil irb(main... 1 Nov 2009 08:53
read attached document from .eml file Hi, I have to read .eml file with ruby in order to get and extract attachements, does anything exist on this subject ? Thanks in advance , Nicolas -- Posted via http://www.ruby-forum.com/. ... 29 Oct 2009 07:38
Test your ruby skill Hi, Anybody interested to take ruby test then go ahead Test your ruby skill --> http://bit.ly/2gptTV Post your answers via comments Thanks -- Posted via http://www.ruby-forum.com/. ... 30 Oct 2009 09:58
Ruby FFI: fixed size char array inside struct (I dind't find an official Ruby FFI mailing-list so I try here) I have a char array baked into a struct (not a pointer), and I have problems describing it in a layout. struct { uint8 Value; uint8 String[SIZE_OF_ARRAY]; } MyArray_t; The only thing I've come up with is to have a dummy variable at the end... 28 Oct 2009 09:32
miniruby Is miniruby needed to install ruby for Unix? If so, where can I find it? Thanks. -- Posted via http://www.ruby-forum.com/. ... 28 Oct 2009 17:21 |