similar to: Who wants to take a stab at IO.foreach?

Displaying 20 results from an estimated 700 matches similar to: "Who wants to take a stab at IO.foreach?"

2007 Sep 25
2
Using callbacks with ReadFileEx
Hi all, First, I just realized I''ll need to go back and fix some of the prototype declarations for windows-pr. The callback parameters will now need to be set to ''K''. ReadFileEx is one example of this. For purposes of my question, let''s assume ReadFileEx has been declared like so: API.new(''ReadFileEx'', ''LPLPK'',
2007 Oct 09
5
Playing with ReadFileScatter()
Hi all, Looking at the IO.readlines source in io.c, it looks to me like they grab 8k chunks, split on the input record separator, and buffer accordingly. Since it looks like ReadFileScatter() does some of that work automatically (in page file sized chunks), I thought I''d give it a try. Here''s what I''ve got, but it doesn''t work. I have an incorrect parameter
2007 Oct 21
0
Taking a stab at a pure Ruby Dir.glob
Hi all, Here''s what I''ve come up with so far for a pure Ruby Dir.glob for MS Windows. It almost works. The problem right now is the [] notation, which I''m not translating properly into a regex. I haven''t started on the ''**'' notation yet either, but I figure that''s more of a control flow issue. Feel free to disagree with me and/or
2006 Mar 20
5
Need some ACL help for win32-file
Hi folks, I''ve got most everything done for the pure Ruby version of win32-file. The last thing left (since I''ll be moving the IO methods to a different package eventually) is the file security stuff. Here''s what I''ve got so far for the get_permissions method. However, I''m stuck at GetAce(). If someone could help me finish up this method, I
2004 Jul 01
0
MS OLAP -- RODBC to SQL Server "Slice Server" pass-through query to MS OLAP
Olivier Collignon wrote: > I have been doing data analysis/modeling in R, connecting to SQL databases > with RODBC (winXP client with R1.9.0 and win2k SQL server 2000). > > I am now trying to leverage some of the OLAP features to keep the data > intensive tasks on the DB server side and only keep the analytical tasks > within R (optimize use of memory). Is there any package
2008 Aug 14
1
Security leak in map_nt_perms?
In map_nt_perms any of FILE_READ_DATA, FILE_READ_EA or FILE_READ_ATTRIBUTES is mapped unconditionally to Unix read permission and similarly for write permission This means that if I put a file on a samba share where I explicitly left *only* FILE_READ_ATTRIBUTES and FILE_READ_EA the file content becomes hiddenly readable also if I decided (for very good reasons) otherwise. I'd say that when a
2002 Sep 24
0
Changing file permissions from the command line
Hi, I run Samba 2.2.3a (Solaris 7) in domain authentication mode in a Windows 2000 domain. I would like to be able to script file permissions changes from the Windows side using a command line utility, e.g. cacls, however I have only been successful in changing the UNIX world permisssions, not owner and group. A summary follows. Has anyone come across a solution for this? Thanks, Fintan ---
2007 Oct 04
0
Prototyping the Dir class
Hi all, I''ve been prototyping a Windows-only Dir class for Ruby. Below is what I''ve got so far. The class methods were easy, except for Dir.glob. The code in dir.c is just nasty, and I can''t help but think that it could be heavily refactored. I did come across this link: http://www.codeproject.com/file/fileglob.asp But I haven''t investigated it yet. Anyone
2004 Jun 28
1
R client connection OLAP cube (SQL Analysis Services / PivotTable Service)
I have been doing data analysis/modeling in R, connecting to SQL databases with RODBC (winXP client with R1.9.0 and win2k SQL server 2000). I am now trying to leverage some of the OLAP features to keep the data intensive tasks on the DB server side and only keep the analytical tasks within R (optimize use of memory). Is there any package that would allow to connect to OLAP cubes (as a client
2008 Nov 22
2
GetFinalPathNameByHandle for XP and earlier
Hi all, How''s this look? I based it on http://msdn.microsoft.com/en-us/library/aa366789(VS.85).aspx. I''m undecided as to when I should raise an error versus when I should just let it fall through, but this is how it is for now. You''ll need the latest windows-pr from CVS, btw. Regards, Dan PS - Where should I put it? In Windows::File directly? In a separate helper
2008 Jun 18
2
[ win32utils-Bugs-20722 ] Windows::Error.get_last_error only returns the first character (PATCH)
Bugs item #20722, was opened at 2008-06-18 15:16 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=20722&group_id=85 Category: windows-pr Group: Code Status: Open Resolution: None Priority: 3 Submitted By: John Whitley (whitley) Assigned to: Nobody (None) Summary: Windows::Error.get_last_error only returns the first character (PATCH) Initial
2001 Oct 23
1
samba NT ACL support problem?
Recently, a problem developed in storing IE5's Temporary Internet Files on our samba exported network scratch space. In tracking it down, I found that the Win2k client attempts to set the ACL of the file "Content.IE5/index.dat". However, the this call ends up setting the mode of index.dat to 0407 (-r-----rwx), thus making the file unmodifiable to the user who created it. (This in
2009 Oct 11
1
change fuse max_read= mount option from 128k to something bigger?
Hi Are there any caveats to changing the max_read fuse mount option that's hardcoded into xlators/mount/fuse/src/fuse-bridge.c to something other than 128k? On my client test system, cat /proc/mounts shows: fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0 10.10.10.11 /storage fuse.glusterfs rw,relatime,user_id=0,group_id=0,default_permissions,allow_other,max_read=131072 0 0 This
2015 Feb 02
0
NT_STATUS_ACCESS_DENIED (I can write and read, but not replace)
I need help interpeting this issue, thanks in advance. A file was created by user nli on windows 7, that user can manipulate the file at will. If user jpyeron tries to manipulate the file on XPx64 the below happens. # smbd -V Version 3.0.33-3.40.el5_10 [2015/02/02 18:34:15, 8] smbd/dosmode.c:dos_mode_from_sbuf(188) dos_mode_from_sbuf returning [2015/02/02 18:34:15, 8]
2004 Feb 20
0
Data Analyst Intern position in San Francisco
We've sent this position out to SF Bay Area schools. Since we have standardized on R as our preferred analytics platform it seemed appropriate to post here. We also have a full time Data Analyst position open. Search for "Loyalty Matrix" on [1]www.craigslist.org Jim Porzak Director of Analytics Loyalty Matrix, Inc. [2]www.LoyaltyMatrix.com
2008 May 18
2
Pure win32-thread library?
Hi all, Here''s my initial stab at a pure Ruby win32-thread library that doesn''t work at all. I''m not sure how to pass the start address of the arguments to the callback. I thought about Marshal, but you can''t marshal a proc. BTW, the CreateThread method in windows-pr needs to be updated for this to have any hope of success. Any ideas? Thanks, Dan #
2004 Aug 14
0
SPSS, social science majors, and R
Hi Roland and folks: Roland's and Susanna's comments were very interesting. I think we need to keep in mind that unlike SPSS, R is more than a statistical package. It's a tool. SPSS does indeed make life easy, particularly for data preprocessing (or data "cleaning"), something that is perhaps not advisable using R (the current versions). Also, I think it's a myth that R
2011 Mar 11
1
RedHat 5.5 and automounting with fstab
All, I wanted to pass on experience that I have trying to get GlusterFS to automount on RedHat 5.5. The documentation for /etc/fstab (http://gluster.com/community/documentation/index.php/Mounting_a_GlusterFS_Volume) doesn't quite work. I have two servers 192.168.104.151 and 192.168.104.152. Both are running GlusterD and both offer one of the bricks for the volume. Both mount also the
2015 Feb 04
0
[ANNOUNCE] libpciaccess 0.13.3
libpciaccess is used by the Xorg server to interface with the appropriate routines for finding and using PCI bus devices on various operating systems. This release provides a number of platform-specific improvements for various platforms, including Linux, Solaris, OpenBSD, NetBSD, and Hurd, plus the addition of some support for Cygwin. Alan Coopersmith (3): Enable use of
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