Displaying 20 results from an estimated 10000 matches similar to: "IO.read - binary by default?"
2006 Oct 26
5
[ win32utils-Patches-6335 ] pure ruby implementation
Patches item #6335, was opened at 2006-10-26 16:51
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=413&aid=6335&group_id=85
Category: win32-shortcut
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Jano Svitok (janek)
Assigned to: Nobody (None)
Summary: pure ruby implementation
Initial Comment:
This is (not finished) pure-ruby
2007 Sep 12
2
RubyConf 2007?
Hi all,
Is anyone on the list going to RubyConf this year?
I don''t know yet if I''m going to go. I''m still thinking about it.
Regards,
Dan
2007 Sep 23
16
WinRuby?
Hi all,
With the latest 1.8.6 release out today, I was wondering - what would
you all think of a Windows-only fork of Ruby? I mean Perl has
ActiveState, right? It ships with a slightly different interpreter and
different libraries, so why not Ruby?
Here''s what I''m thinking:
* Win2k or later. No 95/98/ME support. No cygwin/mingw, either.
* Assume VC++ 8. Use whatever
2006 Jun 19
9
win32-service patch
Attached is a patch and my service.c if there is any difficulty
applying the patch. I did the following:
1. Created a ruby thread (Ruby_Service_Ctrl), that polls against a
simple integer value (protected by a critical section). I was worried
this would be "expensive"; however, I found the rb_thread_polling
method and it seems to work well.
2. When an event occurs in Service_Ctrl it
2006 Oct 26
2
The win32-service patch is committed - and now, some questions
Hi all,
I *finally* committed the patch from Patrick Hurley (you know, the one
he submitted way back in June). Looks like it works. I''ve also
revamped the code under the examples directory. There''s now a
tdaemon.rb (the test daemon) and tdaemon_ctl.rb (the test daemon
controller).
Before I release this into the wild I want to make sure I document how
to use it properly.
2008 Jan 23
6
JRuby and callbacks?
Hi all,
Any Java/JRuby folks on the list? I''d like to see if we can implement
api.c for JRuby using JNA and see how it handles the callbacks.
I''m not a Java guy, nor do I know JNA, but I''ll take a stab at it if no
one else on the list does.
Here are a couple of useful links:
http://www.infoq.com/news/2007/09/jna-jruby
https://jna.dev.java.net/
Regards,
Dan
This
2008 Jul 08
12
Some more win32-security: SID.create
Hi all,
How does this look as a general approach to a SID.create method:
# Creates and initializes
def self.create(authority, *sub_authorities)
if sub_authorities.length > 8
raise ArgumentError, ''maximum of 8 subauthorities allowed''
end
authorities = Array.new(8, 0)
authorities.replace(sub_authorities)
count = authorities.select{ |e| e > 0 }.size
2007 Dec 05
21
Fwd: win32/process problem
Any ideas?
---------- Forwarded message ----------
From: Christian Kerth <christian.ke... at dynamicmedia.at>
Date: Dec 5, 8:28 am
Subject: win32/process problem
To: comp.lang.ruby
I have an application that consists of serveral independent parts.
I want to use the Windows Process API to spawn the different
processes.
e.g.
require ''rubygems''
require
2008 Apr 30
8
Playing with NtQueryInformationFile
Hi all,
I''m trying to get the allocation size of a file via a file handle
(rather than its name). The example below works for FileNameInformation
but I can''t get it to work as expected for FileStandardInformation.
Here''s some sample code:
# query_test.rb
require ''windows/handle''
require ''windows/error''
include Windows::Handle
2008 May 20
10
Asynchronous Pipe::Server problems
Hi all,
I''ve been working on the win32-pipe library (again) and I''ve reworked
the interface. Instead of Pipe.new_server or Pipe.new_client, there''s
now a base Pipe class, with Pipe::Server and Pipe::Client subclasses.
You can find the latest code in the CVS repo.
Oh, and you''ll need to update your windows-pr library with the latest
from CVS if you want to
2007 Nov 09
2
RubyConf 2007 - Thoughts?
Hi,
For those of you that attended RubyConf 2007, what were your impressions?
Any more thoughts on JRuby, Rubinius, IronRuby or Wuby?
Regards,
Dan
2008 Nov 10
4
PathFindExtension and wide strings
Hi,
What''s happening here?
require ''windows/path''
require ''windows/unicode''
include Windows::Path
include Windows::Unicode
file_a = ''bar.txt''
file_w = multi_to_wide(file_a)
p PathFindExtensionA(file_a) # ''.txt'' => OK
p PathFindExtensionW(file_w) # ''.'' => WRONG
Is Ruby chopping the
2008 Jan 18
5
Temporarily setting the output language for cmd.exe
Hi all,
One of the net-ping users reported that the Net::Ping::External library
was returning false positives on Vista. Basically, it does a ''ping -n1
host'' and checks for certain error strings.
The problem is that the error strings it checks for are in English. The
user in question is using a cmd.exe that''s entirely in Swedish (I think).
Is there any way I can
2006 Oct 06
13
Need some help with latest win32-mmap
Hi all,
I''ve got the latest win32-mmap code checked into CVS. Unfortunately, it
seems that I''m not able to open an existing mapping and retrieve set
data. Below is a simple example that seems like it ought to work but
doesn''t. Any ideas?
# map1.rb
require ''win32/mmap''
include Win32
mmap = MMap.new(:name => ''alpha'', :size
2007 Aug 04
10
Need some help with pure Ruby win32-changenotify
Hi all,
I know it''s deprecated, but people seem to still be using
win32-changenotify, so I thought I''d see if I could make it pure Ruby.
Also, I thought it would be a good opportunity to test passing a custom
Win32::Event object.
I''m mostly done I think, but I''m having trouble unraveling the
FILE_NOTIFY_INFORMATION struct buffer. Please check out the
2006 Jun 18
7
[Fwd: Ruby Win32-Service]
Thoughts?
Dan
-------------- next part --------------
An embedded message was scrubbed...
From: "Patrick Hurley" <phurley at gmail.com>
Subject: Ruby Win32-Service
Date: Sun, 18 Jun 2006 12:46:01 -0400
Size: 2863
Url: http://rubyforge.org/pipermail/win32utils-devel/attachments/20060618/cc346796/attachment.eml
2006 Oct 13
2
win32-mmap - trying to marshal self
Hi all,
I realized the current implmentation has a problem - you can only get the last value set? I realized, after looking at the old C code, that it actually stores values in a hash and marshals the hash, not the values themselves.
That seemed clunky to me, though. I thought it would be more interesting if we just marshalled the entire mmap object and passed that back and forth.
2009 May 06
4
[ win32utils-Feature Requests-25792 ] Create a pure Ruby win32-ole library
Feature Requests item #25792, was opened at 2009-05-05 17:29
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=414&aid=25792&group_id=85
Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Daniel Berger (djberg96)
Assigned to: Nobody (None)
Summary: Create a pure Ruby win32-ole library
Initial Comment:
The current Win32OLE
2008 Jun 07
2
Unraveling a protoent struct
I''m spacing - how do I unravel a protent struct pointer?
require ''win32/api''
include Win32
getprotobyname = API.new(''getprotobyname'', ''P'', ''P'', ''ws2_32'')
ptr = getprotobyname.call(''tcp'')
puts "Name: " + # ???
puts "Aliases: " + # ???
puts "Number: "