search for: rm_r

Displaying 6 results from an estimated 6 matches for "rm_r".

Did you mean: rm_rf
2009 Mar 12
4
who can give me some hint?
...52 18 useractivity_act 52 2006-02-22 14:52:18 14 52 18 4 58 2006-02-22 14:52:52 14 52 52 3 60 2006-02-22 14:54:42 14 54 42 useractivity_idle in other word, I want to keep 1st if there are many repeated value, I made the program as: rm_r<-function(act_2){ dm<-dim(act_2)[1]-1 for(i in 2:dm){ if(act_2$Rep[i+1]==act_2$Rep[i]){ act_2<-act_2[-(i+1),] }else{ act_2<-act_2 } } return(act_2) } when it moved one row on 1st loop, i should still start 2 but it become 3 at 2nd loop, if I add i<-i-1, then i g...
2006 Sep 22
4
IOError on clearing locks
...cks in after the deleting the directory: IOError: IO Error occured at <except.c>:79 in xraise Error occured in fs_store.c:146 - fs_clear_locks clearing locks in persistence_path/00000000001: <No such file or directory> The persistence_path/ directory is the one that was File.rm_r''d. How can I stop this from happening? Is it a bug, or have I messed something up? This worked with 0.9.5, but doesn''t now that I''ve updated to 0.10.6. Any clues? -- Alex
2009 Mar 12
1
Removing rows
...52 18 useractivity_act 52 2006-02-22 14:52:18 14 52 18 4 58 2006-02-22 14:52:52 14 52 52 3 60 2006-02-22 14:54:42 14 54 42 useractivity_idle in other word, I want to keep 1st if there are many repeated value, I made the program as: rm_r<-function(act_2){ dm<-dim(act_2)[1]-1 for(i in 2:dm){ if(act_2$Rep[i+1]==act_2$Rep[i]){ act_2<-act_2[-(i+1),] }else{ act_2<-act_2 } } return(act_2) } when it moved one row on 1st loop, i should still start 2 but it become 3 at 2nd loop, if I add i<-i-1, then i g...
2009 Mar 12
2
Removing
...14 52 18 useractivity_act 52 2006-02-22 14:52:18 14 52 18 4 58 2006-02-22 14:52:52 14 52 52 3 60 2006-02-22 14:54:42 14 54 42 useractivity_idle in other word, I want to keep 1st if there are many repeated value, I made the program as: rm_r<-function(act_2){ dm<-dim(act_2)[1]-1 for(i in 2:dm){ if(act_2$Rep[j]==act_2$Rep[i]){ act_2<-act_2[-j,] }else{ act_2<-act_2 } } return(act_2) } But it only remove one row..whats the problem? How should i modify it? Thanks alot. Tammy __________________________________...
2011 Dec 05
5
Spec'ing a block
Hi folks How would you spec something like this: as_user username do FileUtils.chmod_R 0755, "#{directory}/*" end Where as_user fires off a new process (and set uid to username). It seems that this won''t catch FileUtils.chmod_R: FileUtils.should_receive(:chmod_R).with(0755, "#{@domain.directory}/*") I guess that is because it is passed in the block
2011 Jul 11
0
stuck with permissions in using FileUtils
...nal/NickFaldo.mp4" ) so I wrote : FileUtils.rm @clip_file # remove clip_file # to remove the previous original FileUtils.chmod(0777, @clip_dir ) FileUtils.cp @tmp_file, @converted_file # copy transcoded file as new original FileUtils.rm_r @tmp_dir # remove tmp directory but I get an <Errno::EACCES:0x00000007820b98> exception raised ( not being root I believe I can''t change the permissions and write into the PaperClip path for this clip .... any suggestion will be welcome ... thanks --...