search for: nopen

Displaying 11 results from an estimated 11 matches for "nopen".

Did you mean: open
2004 Nov 11
3
File.nopen alpha
Hi all, I''ve committed an alpha version of File.nopen (native open) to win32-file. This is a wrapper for CreateFile(). A quick synopsis: * File.nopen(file,access_mode,share_mode,creation_mode,flags) * * A ''native'' open method. This uses CreateFile() behind the scenes instead of * the _open() function. This allows much great...
2004 Nov 11
0
File.nopen alpha - another followup
Hi all, > fh = File.nopen("C:\\temp.txt",File::WRITE_ATTRIBUTES) > fh.hidden = true > fh.close > > I get "test.rb:16:in `hidden='': cannot convert nil into > String (TypeError)" It looks like this line is the culprit: rbPath = rb_funcall(self,rb_intern("path"),0,0);...
2004 Nov 16
2
win32-file: nread and nwrite
...a versions of nread and nwrite now added to the win32-file class in CVS. They seem to work fine, although I''ve noticed one bug in the File#read method. Let''s say we have a text file with "hello world" in it. If I call nread with no arguments, it works fine: fh = File.nopen("C:\\test.txt") p fh.nread -> "hello world" fh.close But, if I try to specify an argument, it seems to always want to return 9 to 11 bytes for some reason: fh = File.nopen("C:\\test.txt") p fh.nread(5) -> "hello\001u\002\003\000\002" fh.close How is...
2012 Feb 07
5
Table rearranging
I have a table that looks like this: measurement?? ?date??? door ?? color 0.93529385?? ?513?? ?open?? ?red 0.97419293?? ?420??? open ?? red 0.962053514?? ?513?? ?closed?? ?red 0.963909937?? ?1230?? ?open?? ?blue 0.97652034?? ?1230?? ?open?? ?green 0.989310795?? ?1230?? ?closed?? ?blue 0.9941022?? ?917?? ?closed?? ?yellow I would like to create a table that has: Open measurement, Closed
2004 Nov 13
0
Sanity check for win32-file
Hi all, The code that I checked in yesterday that seemed to work just fine now fails. When I run this: require "win32/file" fh = File.nopen("C:\\test.txt") fh.close I now get: test.rb:12:in `initialize'': Invalid argument (Errno::EINVAL) from test.rb:12:in `nopen'' Specifically, it''s failing on this in file.c: args[0] = UINT2NUM(_open_osfhandle((long)h,O_RDWR)); self = rb_class_new_i...
2004 Nov 16
0
Re: Win32, file descriptors and rb_io_check_writable()
Hi, > >Thank you very much Park. There is one curious difference I noticed >with the write operations. It seems that there is a line ending issue >between a file descriptor opened with File.open vs File.nopen. You >can see this easily enough by doing something like this: > >fh1 = File.open("test1.txt","w+") >fh1.print "hello\nworld\n" >fh1.close > >Open this up with notepad - looks fine. Now try this: > >fh2 = File.nopen("test2.txt",ni...
2008 Dec 15
5
Apple patches 1-5
Here are the first few simple patches from Apple, based on dovecot-1.1.7. The comments with "APPLE" in them helped us merge in your new releases; feel free to remove them. Please let me know if you want subsequent patches in a different format, or if you have any questions. Patch #1. Some versions of Mac OS X have buggy CMSG_* macros. -------------- next part -------------- A
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 May 20
0
Latest win32-file commit
...r words, for the open method, if it''s 1 argument use the default Ruby method, but if it''s 5 arguments (the number of arguments that CreateFile() takes, excluding a security descriptor and a template file) use the native Win32 call. Or should we just give them separate names, e.g. nopen, nwrite, nclose? If we''re going to overload, how do we do it? Rewrite the code using C++? That would be fine with me since we''re assuming VC++ anyway I think. Second, I''m not entirely sure how to handle overlapped IO. If a user passes File::OVERLAPPED | File::NO_BUFF...
2009 Apr 15
6
Intersection of two sets of intervals
Hi, Algorithm question: I have two sets of "intervals", where an interval is an ordered pair [a,b] of two numbers. Is there an efficient way in R to generate the intersection of two lists of same? For concreteness: I'm representing a set of intervals with a data.frame: > list1 = as.data.frame(list(open=c(1,5), close=c(2,10))) > list1 open close 1 1 2 2 5
2005 Jul 21
7
FW: Adding OpenBSD sudo to the FreeBSD base system?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 I really do not agree with adding it to the base system. Just because you guys use sudo does not mean other people do. In fact many people do not have a use for sudo at all. Not every one gives out root accounts. You are only adding another utility In that can possibly be used to escalate privileges. Every time I secure a system I spend some time