Getting the actual size of a sparse file9159 (1/5/2011 4:37:07 PM) comp.lang.ruby Hi,
How do you get the true size of a sparse file? Using /var/log/lastlog
on Ubuntu as an example I see this with "ls -lh"
287K lastlog
With "ls -sh" I see this:
40K lastlog
A File.stat call rev... Daniel
[ANN] mkmf-lite 0.1.00127 (5/25/2010 1:33:44 AM) comp.lang.ruby Greetings,
I'm happy to announce the release of mkmf-lite 0.1.0. This is the
initial release of this library.
= What is it?
A very lite version of mkmf. Unlike mkmf it is designed to be a library,
... Daniel
Making a VALUE visible to multiple source files236 (2/25/2010 5:38:20 PM) comp.lang.ruby Hi, I'm having some trouble pre-declaring some VALUE's. I've got a VALUE cFoo I want to be visible to multiple source files. Say the layout is something like this: foo/ext/stuff/extconf.rb foo/ext/stuff/foo.c... Daniel
SOAP error: Cannot map <class> to SOAP/OM0240 (2/2/2010 4:22:24 PM) comp.lang.ruby Hi,
Ruby 1.8.7
soap 1.5.8
Linux & Mac
I'm getting an odd error from the soap library while attempting to
connect to a Sympa 5 server in one of our production apps:
A SOAP::Mapping::MappingError occu... Daniel
Detecting kerberos version from header file013 (2/1/2010 5:12:32 PM) comp.protocols.kerberos Hi, Is there a way to detect which version of kerberos I'm using within a C program? Is there a #define somewhere I can use? I ask because the prototype for kadm5_init_with_password changed in 1.6 and later (... Daniel
Compiling multiple C source files into a single library2236 (1/25/2010 7:46:37 PM) comp.lang.ruby Hi,
In the past I've always put all my code into a single source file and
built it that way. However, I'd like to split out my C source files
into a "one class per file" arrangement for a particular projec... Daniel
Delayed evaluation of append_features026 (1/19/2010 4:04:22 PM) comp.lang.ruby Hi, I was just reading this bit: http://judofyr.net/posts/never-gonna-let-you-go.html And that had me wondering about my "interface" implementation. At the moment, users must declare the methods before they ... Daniel
ffi, kerberos6149 (1/12/2010 10:48:13 PM) comp.lang.ruby Hi,
I'm trying to wrap two function calls from kerberos, krb5_init_context
and krb5_free_context. Here are the prototypes for both:
krb5_init_context(krb5_context * context) => krb5_error_code
krb5_free... Daniel
SystemStackError with gem installs, 1.8.7-p248236 (12/30/2009 1:41:06 PM) comp.lang.ruby Hi, I upgraded to ruby 1.8.7 p248 yesterday. Since then I've started seeing these error messages on gem installs: dberger@globe-madison ~>sudo gem install sys-filesystem Password: Building native extensions. ... Daniel
[ANN] sys-proctable 0.9.0030 (10/16/2009 2:48:19 PM) comp.lang.ruby Hi, sys-proctable 0.9.0 has been released! = What is it? A library for getting process table information, i.e. information about the processes running on your system. = Is that it? It also provides a Sys::... Daniel
Net::Ping::HTTP inconsistencies430 (4/19/2010 9:33:21 PM) comp.lang.ruby I have multiple websites that are "up". That is, they are accessible via
the browser and return to the user content.
But...
>> require 'net/ping'
=> true
>> Net::Ping::HTTP.new('somewebsite.com').ping?... rabbitblue(97)
Getting a unique filename?3271 (9/14/2010 9:58:52 AM) comp.lang.ruby
I need to build a Zip-Archive with a unique name that is served by
Apache using its X-SendFile mechanism.
Tempfile doesn't appear to be suitable in this case as it unlinks its
managed file when the Tem... Michael
Net::PingExternal gives an errror545 (9/16/2010 2:22:40 PM) comp.lang.ruby Hello there, I'm having a problem with a tutorial to ping whatever. I have snowleopard and both ruby's both give the same error: uninitialized constant Net::PingExternal (NameError) here is the code i'm usin... w3bwizart.be(5)
OT: file attribute serialization in Windows344 (10/12/2010 12:27:33 PM) comp.lang.ruby [Note: parts of this message were removed to make it a legal post.] I am writing a backup program (not necessarily in Ruby) and I need to back up ALL of a file's attributes. For Windows: R Read-only files... ralphs(104)
Is it possible to find out if an identifier is a method alias?9157 (10/14/2010 10:48:34 PM) comp.lang.ruby >> def method; end
=> nil
>> alias :method_alias :method
=> nil
>> defined? method
=> "method"
>> defined? method_alias
=> "method"
The above makes perfect sense, but is there a way to determine if an... Ammar
Separator in $PATH4197 (10/19/2010 8:02:51 PM) comp.lang.ruby Hello everyone,
Unix-like operating systems use a colon to separate each directory in
the PATH, while Windows uses a semicolon.
The question is: is there some class in the Ruby library that knows
about... Stefano
`dir_config': undefined method `split'144 (3/4/2011 8:41:02 PM) comp.lang.ruby Having difficulty installing 'gem install mysql2'. Getting these gem install mysql2 -- --with-mysql-config=/opt/mysql/mysql/bin/mysql_config --with-opt-include Building native extensions. This could take a w... bellcolt(4)
mkmf have_func usage9244 (3/25/2011 5:55:07 AM) comp.lang.ruby Hi,
I'm wondering if I'm using the have_func from lib mkmf correctly, as I =
can't seem to get a `true` out of it?=20
require "mkmf"
have_func( "iconv_open", =
"/Library/Frameworks/Libiconv.f... Iain
Ruby Future Or?2725 (5/15/2011 11:31:39 AM) comp.lang.ruby I was thinking today and I was wondering if ruby has a future when python is being to widely accepted. Outside of rails, because I have no want to code in rails. Thanks -- Posted via http://www.ruby-forum.co... piratej74(3)
Writing formulas to excel spreadsheet #22249 (5/19/2011 4:22:23 PM) comp.lang.ruby Hi, everyone. I've just started using ruby a couple of days ago, and I've been using it to read data from text files and write to excel spreadsheets. I also need to be able to write formulas to spreadsheets, bu... ampclj9(8)