search for: phasis

Displaying 20 results from an estimated 31 matches for "phasis".

Did you mean: phases
2007 Aug 08
12
Some more win32-changenotify analysis
Hi all, I decided to check the responsiveness of the pure Ruby vs C extension versions of win32-changenotify. I setup this little file generator program: a = [] 10.times{ |n| a << Thread.new{ File.open("File_#{n}", ''w''){ |fh| fh.puts "test #{n}" } } } a.each{ |t| t.join } The pure Ruby version did not do so well. In some cases it
2012 May 18
7
Dir.create_junction with FFI
Hi, Try as I might, I just cannot get Dir.create_junction to work with FFI in the ffi branch of the win32-dir project. The problem is the REPARSE_JDATA_BUFFER struct. I''m just not sure how to set those members, specifically, the PathBuffer member. The target looks good, it''s UTF-16LE encoded, but I can''t make it work, despite trying several ways of defining the struct,
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
2008 May 06
4
DeviceIoControl + IOCTL_DISK_GET_DRIVE_GEOMETRY problem
Hi all, Ok, what am I doing wrong here? require ''windows/device_io'' require ''windows/handle'' require ''windows/error'' include Windows::DeviceIO include Windows::Handle include Windows::Error fh = File.open(''test.txt'') # Assume you have this handle = get_osfhandle(fh.fileno) if handle == INVALID_HANDLE_VALUE puts
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
2005 May 14
4
Problems with custom service and webrick
Hi all, Windows XP Pro Ruby 1.8.2 I''m having a couple of problems with the following service. The first issue is that the code in service_start doesn''t seem to fire off. The second problem is that any attempt to do ''require "webrick"'' within webrick_daemon.rb causes the service to fail on start. Any ideas? # webrickctl.rb
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()
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
2005 Aug 11
4
win32-process + ruby-breakpoint = strangebehavior
> -----Original Message----- > From: win32utils-devel-bounces@rubyforge.org > [mailto:win32utils-devel-bounces@rubyforge.org] On Behalf Of > Bill Atkins > Sent: Thursday, August 11, 2005 8:39 AM > To: win32utils-devel@rubyforge.org > Subject: [Win32utils-devel] win32-process + ruby-breakpoint = > strangebehavior > > > I''m getting really strange
2009 Aug 07
7
Comments for Daniel Berger blog post
Hey Daniel, I''m trying to leave you a comment on this article you wrote: http://djberg96.livejournal.com/168403.html But since you disabled OpenID and anonyous, I''m not fond to register for another account just to reply your comments. Quoting your post: "" Unfortunately, I''ve slammed into the cold hard fact that FFI just isn''t the grand solution
2012 Apr 07
5
FFI and msvcrt
Hi, I''ve been using FFI with a Ruby 1.9.3 built with MSVC++ and it''s been working well. One thing I''ve run into though is this: ffi_lib :msvcrt But that''s not the runtime I want. But I don''t want to hard code the runtime name either. I realize I could parse it out of RbConfig, but I was hoping for something nicer. Is there a way we could create an
2008 Dec 01
2
Code formatting with VS 2008?
Hi everyone, I see that Visual Studio 2008 Pro has the ability to auto-format code. Does anyone know if there''s a way to auto-format pre-ansi C code to ANSI C? I couldn''t find anything, but there''s so many options in VS I wasn''t sure. Regards, Dan This communication is the property of Qwest and may contain confidential or privileged information.
2006 Jun 18
0
[ win32utils-Bugs-4699 ] Service dependencies are not being created properly
...opened at 2006-06-07 19:21 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=4699&group_id=85 Category: win32-service Group: Code >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Scott Harper (sharperct) Assigned to: Park Heesob (phasis68) Summary: Service dependencies are not being created properly Initial Comment: # The service is being created but fails to start with a dependent service error # when valid dependent services are being specified using # s.dependencies = ["Tcpip", "Afd"] # Sample code: requ...
2004 Feb 20
0
RE: BUG report: win32-process
> -----Original Message----- > From: Date, Shashank [Non-Employee] > [mailto:Shashank.Date@mail.sprint.com] > Sent: Friday, February 20, 2004 11:04 AM > To: Berger, Daniel > Cc: phasis@nownuri.net > Subject: BUG report: win32-process > > > gets does not work in the forked process. > > See win32 and cygwin transcripts below: > > #--------------------------------------------- > require ''win32/process'' > include Win32 > STDOUT.s...
2004 Jan 26
1
Re: win32-service ideas
>From: "Park Heesob" <phasis@nownuri.net> >To: "Shashank Date" <sdate@everestkc.net>, <djberg96@hotmail.com> >CC: <win32utils-devel@rubyforge.org> >Subject: Re: win32-service ideas >Date: Sun, 25 Jan 2004 16:41:32 +0900 > >Hi, > >In my computer, I can''t reproduce...
2011 Feb 08
2
WSAStartup failure
Hi, I added the Windows::WSA module to windows-pr recently (it''s in the latest git repo). However, I can''t seem to make WSAStartup work. I tried the following bit of code, only to get "The Windows Sockets version requested is not supported" on my Vista box. Is it really not supported on Vista? The docs say Win2k or later. Or is there another issue? require
2006 Jun 28
3
[Fwd: [ruby] win32-service : RegisterServiceCtrlHandlerEx]
Thoughts? -------------- next part -------------- An embedded message was scrubbed... From: "Romuald du Song" <rdusong at gmail.com> Subject: [ruby] win32-service : RegisterServiceCtrlHandlerEx Date: Mon, 26 Jun 2006 00:02:10 +0200 Size: 2587 Url: http://rubyforge.org/pipermail/win32utils-devel/attachments/20060628/8f12e8f1/attachment-0001.mht
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
2009 Apr 17
2
win32-clipboard issues and support for additional formats
Hi, Currently the GetClipboardData() function is declared in windows-pr so that it returns a pointer. I guess my reasoning was that I was only worried about dealing with text at the time, so it was the easiest thing to do. But, I''d like to support more formats beyond text, i.e. images. However, this can cause a segfault. If you copy a jpeg image to the clipboard first, for example, and
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