First
|
Prev |
Next
|
Last
Pages: 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
Decompressing LZW compression from PDF file Hello, I'm trying to find a ruby module/code that can decompress LZW-compression-scheme from a PDF file. However, there is no such code or module (as far as I've known) that exist publicly. PDF usually compress its stream data by using FlateDecode, ASCIIHexDecode, ASCII85Decode, and LZWDecode. In ruby, FlateDe... 22 Mar 2010 06:03
[ANN] Dfect 2.0.0 (2010-03-21) Dfect 2.0.0 (2010-03-21) Assertion testing library for Ruby http://snk.tuxfamily.org/lib/dfect/ Dfect is an assertion testing library for Ruby that emphasizes a simple assertion vocabulary, instant debuggability of failures, and flexibility in com... 22 Mar 2010 01:27
IPv6 multicast server/client Hi list, i'm writing as subject to know if someone can give me some suggestion/tips/snipplet to write a multicast client/server in ruby. As i see, IPv6 isnt on 1.8.7 and i've to move in 1.9.1 to have by default and not adding manually. Thanks in advance, Francesco Vollero ... 24 Mar 2010 13:28
A regexp? Hi All! Thank you in advance! :) I am parsing through /var/log/mail.log via regexp and I need to skip date lines that are NOT followed by to|from|connect. Here is my code: mailog = "/var/log/mail.log" File.open(mailog, 'r+') do |mlog| if mlog.flock(File::LOCK_SH) == 0 File... 22 Mar 2010 20:38
Reading contents of all files from a Directory Hello, I am new to Ruby. I am trying to "Read Content" of all the files from a Directory. So far I can "Open" all files but this just shows the "names of all files" in the directory and not the "file content". My Program code is arr= Dir.open("K:/test").entries arr.each { |i| puts i } I can open and read... 5 Apr 2010 13:50
Speeding up TCP I have a script that opens a TCP socket and then sends an XML request using SSL over the socket, it then receives an answer back from the server. The whole send and receive is taking between 160 and 175 milliseconds total (not including opening the socket) but I know others using PHP and Perl have this down to arou... 25 Mar 2010 05:44
Local gems not loaded in ruby > 1.9 without custom_require I have a Kubuntu 9.10 64bit installation. I run ruby 1.8.7 and 1.9.1 next to eachother. gem1.9.1 env returns: .... - GEM PATHS: - /usr/lib/ruby1.9.1/gems/1.9.1 - /home/username/.gem/ruby/1.9.1 .... but gems installed locally are not found by using require. So: require 'rubygems' require 'mygem' ... 21 Mar 2010 03:48
Ruby/Tk: How to colorize a Treeview? I have an item in my Treeview that I want to highlight. I have this code: require 'tk' tree = Tk::Tile::Treeview.new.pack tree.insert('', 'end', :text => 'blah blah', :tags => ['important']) tree.tag_configure('configure', 'important', :background => 'yellow') Tk.mainloop But the item isn't... 22 Mar 2010 19:12
A plugin system using extend Hi. I tried to design a simple plugin system using :extend called upon instance (http://ruby-doc.org/core/classes/Object.html#M000335 usual documented behavior), so as to inject some methods redefinitions while keeping the ability to call super in order to fall back on the default behavior if needed. It looks... 26 Mar 2010 11:56 |