similar to: Latest rb_win32_select patch

Displaying 20 results from an estimated 3000 matches similar to: "Latest rb_win32_select patch"

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
2011 Aug 22
2
Pure Ruby TCP Daemon
Hi all, I created a "pure" branch on github that uses the code Heesob posted a while back: http://rubyforge.org/pipermail/win32utils-devel/2008-November/001274.html However, I couldn''t make it work on my Vista laptop. c:\Users\djberge\Repositories\win32-service\examples>ruby demo_daemon_ctl.rb start VERSION: 0.8.0
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
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 Sep 28
1
Help with win32/api, windows-api
Hi all, I must have been testing windows-pr with an old version of windows-api, because now when I run ''rake test'' for windows-pr I get this: C:\Documents and Settings\djberge\workspace\windows-pr>rake test C:0:Warning: require_gem is obsolete. Use gem instead. (in C:/Documents and Settings/djberge/workspace/windows-pr) C:/ruby/lib/ruby/site_ruby/1.8/windows/api.rb:288:
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
2006 May 17
3
Need a little help with the pureRubywin32-eventlog
> -----Original Message----- > From: win32utils-devel-bounces at rubyforge.org > [mailto:win32utils-devel-bounces at rubyforge.org] On Behalf Of > Berger, Daniel > Sent: Wednesday, May 17, 2006 12:07 PM > To: Development and ideas for win32utils projects > Subject: Re: [Win32utils-devel] Need a little help with the > pureRubywin32-eventlog > > > >
2009 Aug 02
2
win32-security, 1.9.x, encoding issue?
Hi, Windows Vista Home Premium ruby 1.9.2dev (2009-07-18 trunk 24186) [i386-mswin32_90] I noticed there was an ordinal bug in win32-security and Ruby 1.9.x. I fixed those easily enough, but now we''re left with this: 1) Error: test_string_to_sid(TC_Win32_Security_Sid): ArgumentError: invalid byte sequence in US-ASCII
2007 May 04
1
Trying to get a good example for win32-mutex
Hi all, I''ve been going through the various IPC modules for Win32Utils and converting them to pure Ruby. I''m almost done with win32-mutex, but I can''t get the example to work. I keep getting this error: C:/Documents and Settings/djberge/workspace/win32-mutex/examples/mutex_test.rb:41: undefined method `+'' for nil:NilClass (NoMethodError) from
2010 Jan 23
10
Trouble creating mingw binary
Hi, I''m trying to build a binary for win32-open with a mingw install but I''m having trouble. I''ve installed MinGW 5.1.6 and I''ve got gcc, etc. But, when I run "ruby extconf.rb; make" I get the following error: C:\Documents and Settings\djberge\Repositories\win32-open3\ext>ruby extconf.rb checking for ruby/io.h... no checking for rb_pid_t in
2007 Sep 28
3
[ win32utils-Bugs-14298 ] windows-api 0.2.0/windows-pr 0.7.1 causes segfault with require of win32/file
Bugs item #14298, was opened at 2007-09-28 10:23 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=14298&group_id=85 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Lars Olsson (lasso) Assigned to: Nobody (None) Summary: windows-api 0.2.0/windows-pr 0.7.1 causes segfault with require of win32/file Initial Comment:
2012 Feb 12
1
Signal#trap problems
Hi all, This is supposed to work, right? It works on 1.8.7 for me, but not 1.9.2 or 1.9.3: handle = File.open(''trap_test.txt'', ''w+'') Signal.trap(''ABRT''){ handle.print(''hello'') } Process.kill(''ABRT'', Process.pid) handle.rewind p handle.read # => "hello" with 1.8.7, empty string with 1.9.x and
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
2004 Jan 22
1
Latest win32-service error
I''m getting an error when I run the test2.rb script. I get this error: C:\eclipse\workspace\win32-service-0.3.0\test>ruby test2.rb install installed C:\eclipse\workspace\win32-service-0.3.0\test>ruby test2.rb start (Win32ServiceError)t'': Overlapped I/O operation is in progress. from test2.rb:42 Any ideas? Also, it looks like the output from ErrorDescription()
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.
2006 Jan 05
7
[Fwd: [win32utils-help][6822] Eventlog problem]
Dang, I thought we solved this. Any ideas? Dan PS - I realized after reading this I forgot to bump the version number for 0.3.3 - I''ve uploaded a new zip file with the correct version number. -------------- next part -------------- An embedded message was scrubbed... From: alain Fioretti <noreply at rubyforge.org> Subject: [win32utils-help][6822] Eventlog problem Date: Thu, 5
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
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 Apr 25
4
win32-mmap test failures
Hi all, This is odd. It looks to me like we have all 4 variations of memcpy set in Windows::MSVCRT::Buffer but somehow this one creeps up. I actually noticed it in a few cases with that earlier mmap sub/replace example, but I wasn''t sure what was happening. Note that windows-api 0.2.3 and windows-pr-0.8.3 are the latest versions in CVS, but this happens with windows-api-0.2.2 and