similar to: WinRuby?

Displaying 20 results from an estimated 2000 matches similar to: "WinRuby?"

2007 Jul 30
4
Win32 namespace
I''ve been working on a library called ruby-wmi, that is basically just an abstraction layer around wmi. I''m a windows sys admin, and I use wmi scripts a lot at work. My code looks like this: disks = WMI::Win32_LogicalDisk.find(:all, :conditions => {:drivetype => 5}) It''s supposed to mimic the active_record interface, and it works pretty well. My next thought
2007 Sep 27
2
Threads and IO (gets) still a problem for us?
Hello Guys, I''m trying to get this working: t = Thread.new { while true puts "printing a line" sleep 2 end } gets t.exit puts "exiting" As you see, the idea is get multiple "printing a line" until a hit enter. The thing is this is a known problem for 1.8 on win32. I tried both mingw, VC6 and VC8 with the same results. Saw a post
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
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
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 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.
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
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
2010 Jan 23
5
Buying windows software
Hi all, Just looking to buy Windows 7. Where do y''all shop for your Windows software these days? I found this: http://elecsurf.com/win7u-64-dd.html Seemed like a pretty good price. Any other suggestions? Regards, Dan
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 20
3
IO.read - binary by default?
Hi all, I''m sick of hitting bugs in 3rd party libs where the issue is that the authors didn''t do a binary read on the data. It''s hard to track down sometimes and it currently makes creating cross-platform code more difficult. Is there *any* downside to making IO.read binary by default (on Windows) that anyone can think of? Thanks, Dan
2007 Sep 30
6
Giving folks access to Win2k
Hi all, As fate would have it I''m giving away my old desktop to a friend who has no computer. The upside is that means I have room to setup my old-old desktop, which happens to have Windows 2000 on it. It''s a dual Pentium-II 400 with 512mb of RAM. I installed the Ruby 1.8.6 one-click on it, and it already had VC++ 6 on it. Fairly zippy, actually. What I would like to do is
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
2006 Dec 04
9
mongrel install on win32 XP problems
I can''t get mongrel installed on a Win XP. I keep getting some unknown error with this "win32-service-0.5.2". While it states results are logged, the file is empty - not much help. I even tried complete uninstall of ruby and reinstalled ruby 1.8.5-21. But no luck. Oddly, I had no problem installing earlier on a Win 2K machine. Is there something special about XP? here
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 Jan 11
26
Mongrel doesn''t start under Rails 2.0.2/Win XP
All, Mongrel 1.1.3 Rails 2.0.2 Ruby 1.8.6 Windows XP SP2 When I issue the command "ruby script/server" from any of my Rails projects on v. 2.0.2, I get a Windows dialog with the error: "The application has failed to start because MSVCR80.dll was not found. Re-installing the application may fix this problem." I''ve gone through the process of attempting to introduce
2008 Apr 24
4
Pure Ruby HTTP parser
Before anything else, let me state this: Of course it''s going to be PAINFULLY slow on MRI. That''s not the point :) I thought I''d try out writing out a Ruby version of the parser for the purposes of Rubinius. For those of you who aren''t aware, Ragel supports a goto-driven FSM on Rubinius by injecting assembly directly, and Rubinus head honcho guy Evan Phoenix
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 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
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