similar to: Taking a stab at a pure Ruby Dir.glob

Displaying 20 results from an estimated 3000 matches similar to: "Taking a stab at a pure Ruby Dir.glob"

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
2006 Apr 13
0
Globalize not with Rails 1.1.2
Does anybody have the latest Globalize (r184) working with Rails 1.1.2? I can''t seem to get a very simple example to work: ----- ruby test/unit/news_item_test.rb Loaded suite test/unit/news_item_test Started F. Finished in 0.10109 seconds. 1) Failure: test_add_content_translations(NewsItemTest) [test/unit/news_item_test.rb:49]: <"US Title"> expected but was
2004 Mar 09
6
win32-mmap test suite
I just tried running tc_mmap.rb and noticed that something rather curious seems to happen. The call to Mmap.new in setup seems to cause the test suite to just exit without ever actually running the tests. I reduced the test suite to just this bit of code. This works, although the final test (TypeError) does not pass - no exception in thrown. This is 1.8.1 on Win2k. Any ideas? Dan PS - I
2008 Dec 21
3
Globbing Files in R
Dear all, For example I want to process set of files. Typically Perl's idiom would be: __BEGIN__ @files = glob("/mydir/*.txt"); foreach my $file (@files) { # process the file } __END__ What's the R's way to do that? - Gundala Viswanath Jakarta - Indonesia
2007 Jul 09
1
Dir.glob does not find ".project"
Hi, I am trying to zip up my application folder using RubyZip. It works fine except for one glitch: There is a RadRails project file ".project" which does not get included. When I test Dir.glob("#{app_dir}/**/*) it does not return ".project" Is there some problem with filenames starting with "." (I am using Windows) Thanks George
2007 May 30
4
aaf and dynamic attrs: a bug?
Hi! I faced some issue while using it for dynamic attrs indexing/search. Maybe I made something wrong. Here is test method. Everything works just fine until last line http://pastie.caboo.se/66274 . Tested on both stable and trunk of aaf and ferret 0.11.4. the short version of code below: Contact.acts_as_ferret :fields => [ :first_name ] assert
2007 Mar 04
1
Problem using callNextMethod() in S4
Dear all, Maybe, I am doing something wrong, but using R-2.5.0 on my Intel-Mac, I have problems using function callNextMethod() in method initialize. I am loading the following code as file "testS4.R": setClass("baseClass", representation(myname = "character", mydir = "character", "VIRTUAL"),
2013 Aug 16
2
Maildirmake equiv?
Since I am using dovecot I do not have courier installed, but Courier had a very handy tool for making maildir folders called `maildirmake` which I used in some automated backup scripts. How do I duplicate maildirmake in dovecot? for example: #!/bin/bash # v1.2a Testing for new dovecot install # Archive mail from folders without [0-9]{4} Maildirs # after they are 21 days old to a yearly folder
2013 May 21
1
R CMD check: unknown option ?--outdir==RCHECK?
Hi, I believe this is kind of a long standing bug though. In R-3.0.1, but this also happened in previous versions, the long version '--outdir' is not recognised: For `R CMD check --outdir=mydir pkg_0.1.tar.gz` we get: Warning: unknown option ‘--outdir=mydir’ But with `R CMD check -o mydir pkg_0.1.tar.gz` we get: * using log directory ‘/home/renaud/Documents/projects/mydir/pkg.Rcheck’
2002 Mar 12
2
problem with environment detecting
Hello! I want to detect some environment on a remote host (in C program, getenv()), but it is failed. Here is a little program which I try to run on a remote host with command: "#ssh myhost myecho" /* myecho */ #include <stdio.h> main (){ char *dir; if ((dir = getenv("MYDIR")) != NULL) printf ("environment is %s\n",dir);
2005 Jan 31
2
printing impossible on win98 and samba 3.0.10
Hello, i am using net-fs/samba-3.0.10 on an updated gentoo linux on x86 machine. recently i was using some older version, probably 3.0.9 i didn't change my smb.conf but now printing from windows 98 clients does not work anymore. the errormessage on win98 is (translated from german): Error when writing on \\master\stylus1160 vor printer (EPSON Stylus Color 1160): The network printer ist not
2006 Aug 01
2
deleting a directory
Hi, all, I'm looking a utility for removing a directory from within R. Currently, I'm using: foo <- function(...) { mydir <- tempdir() dir.create(mydir, showWarnings = FALSE, recursive = TRUE) on.exit(system(sprintf("rm -rf %s", mydir))) ## do some stuff in "mydir" invisible() } However, this is assumes "rm" is available. I know of
2012 Feb 09
0
Java heap space Error while reading table from postgres database using RJDBC
Hi List, I am reading table from postgres database into R session using RJDBC, table contains 150 columns and 200000 rows. Sample code is as below, which works fine with smaller tables. ######################################################################## db_driver <- mydir$db_driver db_jar_file <- mydir$db_jar_file db_server <- mydir$db_server db_server_lgn <- mydir$db_server_lgn
2009 Oct 30
1
Default ACL question (EXECUTE BIT)
Hello everyone, I'm doing some tests with ACL's and even though I can create a "default" ACL for a directory (that includes "rwx" for the default owner), when I finally create a file wihin that directory the execute bit is chopped off: [joe at machine ~]$ mkdir mydir [joe at machine ~]$ setfacl -d -m u::rwx,g::-,o::- mydir/ [joe at machine ~]$ cd mydir [joe at
2012 Feb 15
1
Passing date as parameter while retrieving data from database using dbGetQuery
Hi All, This might be simple question, I need to retrive data for modelling from the databases. Eveytime date values changes so I countnot fix date value in the code, it is required to pass as parameter. When I pass the date as parameter, it throws error. (ERROR: column "start_dt" does not exist Position: 285) My script is as below, please guide me where am I going wrong? All parameters
2005 Aug 18
1
rsync Reverse lookup error on Solaris 9
Hello, I am using rsync for the first time. I have rsync 2.6.5 running on Solaris 9. It was built with gcc-2.95. We are experiencing a reverse lookup host error in rsyncd.log when the client with ip addy 180.X.XX.XX tries to access rsync on my Solaris box. 2005/08/11 14:30:13 [18092] rsync denied on module log from unknown (0.0.0.0) 2005/08/11 14:30:54 [18094] name lookup failed for 0.0.0.0:
2009 Aug 20
2
[Bug 1634] New: [PATCH] openbsd-compat/glob.h conflicts with system glob.h
https://bugzilla.mindrot.org/show_bug.cgi?id=1634 Summary: [PATCH] openbsd-compat/glob.h conflicts with system glob.h Product: Portable OpenSSH Version: 5.2p1 Platform: All OS/Version: FreeBSD Status: NEW Severity: normal Priority: P2 Component: Miscellaneous AssignedTo:
2006 Apr 26
2
--link-dest and file/dir transfer to remote rsync daemon
Hi NG, I want to do incremental backups to a remote server running rsyncd (because daemonless transfer via ssh often hangs!). In contrast to transfer via ssh (without remote rsyncd) this doesn't seem possible, or do I miss something? Imagine I want to incrementally backup `mydir' to the backup space `backup' on e remote server `alpha' running an rsync daemon. rsyncd on
2001 Dec 03
1
New package: g.data
A new package "g.data" is available on CRAN, to create and maintain databases that work more like the S-Plus model. Here's the official Description for g.data (v1.2): Create and maintain delayed-data packages (DDP's). Data stored in a DDP are available on demand, but do not take up memory until requested. You attach a DDP with g.data.attach(), then read from it and assign
2001 Dec 03
1
New package: g.data
A new package "g.data" is available on CRAN, to create and maintain databases that work more like the S-Plus model. Here's the official Description for g.data (v1.2): Create and maintain delayed-data packages (DDP's). Data stored in a DDP are available on demand, but do not take up memory until requested. You attach a DDP with g.data.attach(), then read from it and assign