similar to: Trying to get a good example for win32-mutex

Displaying 20 results from an estimated 600 matches similar to: "Trying to get a good example for win32-mutex"

2004 May 01
1
win32-mutex
I''ve committed documentation and a test suite for win32-mutex. Once again, I''m looking for a good sample program that we can use for the test.rb file that really demonstrates what you can accomplish with it. I scoured the web but didn''t find anything good. On another note, I came across another implementation called "fmutex" that I thought might be worth
2008 May 11
4
Latest rb_win32_select patch
Hi Park, I tried your latest patch and ran the sample code: readPipe, writePipe = IO.pipe t = Thread.new{ sleep 5 while true sleep 0.1 puts "got #{readPipe.readline.length} bytes" end } i = 1 while true i += 1 sleep 1 puts "hello from main" if i > 3 writePipe.puts "a"*2048 end end t.join At the console I typed the
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
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 Nov 06
5
textarea fails on rows attribute
Hi, Camping 1.5.180 Ruby 1.8.6 It looks like Camping is choking on the ''rows'' attribute for input tags: input(:name => ''cuid'', :type => ''text'', :size => 10, :rows => 3) That will fail with: Markaby::InvalidXhtmlError no attribute `rows'' on input elements:
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:
2018 Feb 22
0
alternative for multiple if_else statements
I don't fully understand the logic you are trying to implement, but something along the lines of foo <- cut(trialData$date, breaks = as.Date(c("2007-01-01", "2008-05-01", "2009-04-01", "2010-05-01",
2018 Feb 26
0
alternative for multiple if_else statements
That many ifelse statements is obviously rather a pain. Would you not have got what you want with ... paste("survey", year, sep="_") ? If that is not what you're looking for (eg because 'year' is the observation year and not the study start year), perhaps something that picks the minimum year for a subject or other relevant group might work? For example
2018 Feb 22
0
alternative for multiple if_else statements
Hi Kevin, I ran the code on the full data set and was able to reproduce the problem that you are facing. My guess is that you have an error in your intuition and/or logic, and that this relates to the use of the subscript [1]. Specifically, on the full dataset, the condition trialData$date[trialData$survey_start == "Y" & trialData$year == 2013 & trialData$site ==
2018 Feb 21
7
alternative for multiple if_else statements
Hi, I am having trouble trying to figure out why if_else is behaving the way it is, it may be my code or the way the data is structured. Below is a snapshot of a database am working on and it represents a longitudinal survey of study participants in a trial with weekly follow up. The variable "survey_start" represents the start of the study-defined one year follow up (which we called
2006 Nov 28
1
Mongrel, Mutex and FastThread results for win32.
Hello Guys, Been testing fastthread (known on previous releases as optimized_locking) for soon to be released 0.3.18 mswin32 gems (official ones). Attached to this message is the ruby script I used for the test results shown on graphics [1] and [2] The idea of the script is simulate what Mongrel do with threads creating a simple workload for testing Ruby VM stability. [1] refers to normal,
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
2018 Aug 01
1
[PATCH nbdkit] tests: Cancel trap in cleanup function to avoid recursive traps.
In these test functions, when a test fails, the bash ‘trap’ command causes the cleanup function to be called. However bash does not annul or cancel the traps when cleanup is called, so at the end of the cleanup function when ‘exit’ is called, cleanup is called recursively. Avoid this by cancelling the traps at the top of the cleanup function. Also an extra debugging message is emitted here
2004 Mar 01
0
RE: win32etc test failure
Excellent! Like I said, I really need to do some code cleanup. I''ll also be adding the config_group and config_user methods :) Dan -----Original Message----- From: Date, Shashank [Non-Employee] [mailto:Shashank.Date@mail.sprint.com] Sent: Monday, March 01, 2004 10:19 AM To: Berger, Daniel Subject: RE: [Win32utils-devel] RE: win32etc test failure That worked ! Now everything is
2006 Nov 08
2
bug in today's git snapshot with maximizing windows
Hi David, When maximizing windows on a different resolution only 70% of the window is maximized. Ie: on my 1280x1024 screen a window maximized is correct (and does not clobber the desktop panel in KDE, kicker) On my 1600x1200 screen, with no kicker panel, the window is maximized about 70% of the screen only Is this known? Thanks, Shawn. ----- Original Message ---- From: David Reveman
2004 Mar 01
0
RE: win32etc test failure
Ok - time for me to patch and update the docs! Thanks for the testing! Dan -----Original Message----- From: Date, Shashank [Non-Employee] [mailto:Shashank.Date@mail.sprint.com] Sent: Monday, March 01, 2004 10:02 AM To: Berger, Daniel Subject: RE: win32etc test failure I like your approach better: allow me to be lazy (so I am not _forced_ to give it) but forgive me if I do ;-) It worked
2006 Oct 25
2
[PATCH] Edge buttons
Here are my patches to add edge + button functionality. I still feel that there is a problem with gconf, but I have just made it so that the edge button functionality works. I have included a patch for gconf to display AnyButton if it is set to 0. There is also a patch to make the edge size configurable because 1 pixel was too small and the mouse keeps slipping off when using it for the
2004 Mar 01
0
RE: win32etc test failure
For delete_user, try this patch: etc.c, line 639: - lpHost = (LPCWSTR)STR2CSTR(rbHost); +lpHost = AllocWideLString(rbHost); Lemme know how it goes. Dan -----Original Message----- From: win32utils-devel-bounces@rubyforge.org [mailto:win32utils-devel-bounces@rubyforge.org] On Behalf Of win32utils-devel@rubyforge.org Sent: Monday, March 01, 2004 10:02 AM To: Date, Shashank [Non-Employee] Cc:
2019 Apr 25
0
[nbdkit PATCH v2 5/5] nbd: Test .extents
Borrows heavily from the existing test-truncate-extents.sh (basically, adding another layer of nbdkit to prove that the nbd plugin doesn't change anything from what the truncate filter is already tested to do). Signed-off-by: Eric Blake <eblake@redhat.com> --- tests/Makefile.am | 3 + tests/test-nbd-extents.sh | 113 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 116
2004 Mar 01
0
RE: win32etc test failure
Yep, I agree. Well, what would you prefer? I handle it for you or you handle it yourself? I''m tempted to go with the former because, well, it''s been there for a while now. I can even use strtok to detect if ''\\\\'' is at the beginning of the string and add them only if not found. I''ll have to take a look at delete user - it worked for add_user,