Displaying 20 results from an estimated 20000 matches similar to: "win32-ipc idea - allow a block"
2004 Oct 23
0
win32-ipc, with blocks (code review please)
Does this look right? The places to look are wait and wait_for_multiple
(which I modified to take the class as an argument, so that I could yield).
Dan
/****************************************************************************
* ipc.c - source for the win32-ipc package
****************************************************************************/
#include "ruby.h"
#include
2004 Apr 29
3
win32-ipc bug?
Either I''ve been up too late, or the timeout value passed to Ipc.new isn''t
actually saved anywhere. Am I wrong?
Anyway, I''ve added docs and a test suite for win32-ipc. Feel free to take a
look and make sure there aren''t any glaring errors. Thanks.
Dan
PS - I''m hoping to release win32-event 0.2.0 and win32-ipc 0.1.0 this
weekend unless there are
2004 Apr 28
1
win32-ipc question
Hi all,
I recently had a question on win32-event and win32-ipc on IRC, so I thought
I should get around to documenting it. I had a couple questions, though.
First, what does one do with an IPC object? I originally thought this would
be a module that you mixed in but it appears to be a class. Second, does
anyone have a good example of how to use win32-event (using the CVS
version)?
I
2004 Nov 04
4
Attempt to build a gemspec
Hi all,
I''m trying to build a gemspec for win32-ipc, using a precompiled binary.
Here''s my gemspec file:
#win32-ipc.gemspec
require "rubygems"
spec = Gem::Specification.new do |s|
s.name = "win32-ipc"
s.version = "0.3.1"
s.platform = Gem::Platform::WIN32
s.summary = "A base class for Win32 synchronization
objects."
2005 Feb 28
3
test/unit error report for win32-service
Dan,
I am assuming that the version in CVS is the most current one.
Report follows.
-- shanko
------------------------------------------------------
C:\win32utils\win32-service\test>ruby tc_service.rb
This test will stop and start your Clipboard service, as well as
pause and
resume your Schedule service. This is harmless unless you are actually
using these services at the moment you
2004 Apr 24
5
win32-taskscheduler alpha
Well, I''m going to release the first version of win32-taskscheduler today.
For now, I''ve kept the API about the same as it originally was because I was
spending way too much time futzing around and I wanted to get something out
the door.
For now, I''m calling this a BETA release, with the API subject to change.
See the ''Future Plans'' section of
2006 Jan 03
0
Minor warning from win32-ipc
Hi all,
I noticed this warning coming out of win32-ipc when built with -W3:
c:\eclipse\workspace\win32-ipc\ipc.h(74) : warning C4146: unary minus
operator applied to unsigned type, result still un
signed
Are we just trying to get an absolute value there? Just curious. I
don''t want to break anything.
I''m actually going through all the win32utils packages, compiling with
2005 May 01
6
win32-changejournal 0.2.0-1 compile error
I get the following error when trying to compile:
win32-changejournal-0.2.0-1
on:
Windows 2000, Service Pack 4
Microsoft Visual Studio 6
Any ideas? Thanks,
Zach
----- ERROR BELOW-----
C:\unzipped\win32-changejournal-0.2.0-1\win32-changejournal-0.2.0>nmake
Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
2004 Oct 08
2
win32-popen3 just about ready
Hi all,
Well, what''s in CVS at the moment is what I''m planning on releasing
tomorrow, unless anyone has any objection. Please test, check out the docs,
etc. Let me know if there''s anything fatal I''m missing.
Regards,
Dan
2004 Aug 28
2
We need a new installer!
I''ve finished updating all the packages for now. All
the sample scripts for all the packages have been
moved to doc/examples. So, things should be stable
for a while.
Shanko, any chance of creating new installer based on
the current releases?
Dan
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
2005 Feb 14
8
DONT_RESOLVE_DLL_REFERENCES info
For future reference, it looks like we should avoid
DONT_RESOLVE_DLL_REFERENCES in any extensions.
http://weblogs.asp.net/oldnewthing/archive/2005/02/14/372266.aspx
Regards,
Dan
2004 Oct 23
0
Perhaps a different approach for win32-ipc
Hmm...what about creating the block in the constructor?
e = Event.new{ puts "Hello" }
e.set(0) -> "Hello"
e.close
Well, I''ll try to hang out on IRC this weekend much of the time if anyone
wants to join me to discuss this in more detail. Look for me in #ruby-lang
or #win32 on freenode.irc.net
Dan
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
2006 Feb 08
2
[ win32utils-Feature Requests-3502 ] Allow win32-open3 to take a block
Feature Requests item #3502, was opened at 2006-02-08 10:29
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=414&aid=3502&group_id=85
Category: win32-open3
Group: Code
Status: Open
Resolution: None
Priority: 4
Submitted By: Daniel Berger (djberg96)
Assigned to: Park Heesob (phasis68)
Summary: Allow win32-open3 to take a block
Initial Comment:
I think we
2005 Jan 25
3
Change Journals
Hi,
I''ve released win32-changenotify 0.3.0 today. Take a look.
Park and I have discussed a Ruby interface to change journals a little bit:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/creating_modifying_and_deleting_a_change_journal.asp
Park, would you like to do this, or did you want me to? I wasn''t sure from
your RubyForge post.
Also, do
2005 Feb 07
7
win32-driveinfo in CVS
Hi all,
I committed win32-driveinfo 0.1.0 to CVS.
What is it?
===========
A class for getting information of drives
Synopsis
========
include Win32::DriveInfo
(sectorsPerCluster,
bytesPerSector,
numberOfFreeClusters,
totalNumberOfClusters,
freeBytesAvailableToCaller,
totalNumberOfBytes,
totalNumberOfFreeBytes) = getDriveSpace(''c'').to_a
2005 Feb 28
1
Re: win32utils installer
> -----Original Message-----
> From: win32utils-devel-bounces@rubyforge.org
> [mailto:win32utils-devel-bounces@rubyforge.org] On Behalf Of
> Shashank Date
> Sent: Monday, February 28, 2005 6:36 AM
> To: Shashank Date
> Cc: win32utils-devel@rubyforge.org
> Subject: [Win32utils-devel] Re: win32utils installer
>
>
> Hi All,
>
> I am working on this bug
2007 Nov 13
1
win32-api idea - wide method first based on $KCODE
All,
Currently, the Win32::API.new method will search for the function name,
then the ''A'' (ANSI) name, and finally the ''W'' (Wide) name. The code
looks something like this:
fProc = GetProcAddress(hLibrary, TEXT(RSTRING(v_proc)->ptr));
if(!fProc){
VALUE v_ascii = rb_str_new3(v_proc);
v_ascii = rb_str_cat(v_ascii, "A", 1);
fProc =
2004 Oct 04
2
open3 for windows
Hi all,
The topic of creating a unified API for open3 for Windows came up at
RubyConf 2004 this year.
Park, I was wondering if you would mind if we modified win32_popen so that
the API matches the open3 library that ships with Ruby.
This also means deciding whether or not to leave in the open2, open4, and
posix stuff. I guess it doesn''t hurt to leave this in, although Open3.open4
2005 Apr 21
9
Screen capture, save to file
Is there anything in the utils to capture a screen ( or maybe just a
window) and save to a file.
I have this, but I have no idea where it came from, but it gives a
corrupted image
Paul
# -*- ruby -*-
# screen capture --
# This script runs with a Ruby/DL which is included in ruby-1.7.
require ''dl/import''
module ScreenCapture
extend DL::Importable
dlload