search for: patnaik

Displaying 20 results from an estimated 35 matches for "patnaik".

2007 May 09
3
Removing a list of Objects
Hi, I have a simple beginner's question on removing a list of objects. Say I have objects C243.Daily1, C243.Daily2...C243.Daily5 in my workspace. I'd like to remove these without using rm five times. So I write. > a <- list(paste("C243.Daily",sep="",1:5)) > rm(a) Obviously this wouldn't work, as it would only remove the object a. But is there any way
2007 May 10
3
Getting the last day of the month.
...eger(substr(yyyymm,5,6)) if (month==12){ date <- as.Date(ISOdate(year+1,1,1))-1 }else{ date <- as.Date(ISOdate(year,month+1,1))-1 } print(date) } x$Date <- as.vector(sapply(x$YearEnd,GetEOM)) str(x$Date) Is there a simpler way to do this please? TIA and best, -Tir Tirthankar Patnaik India Strategy Citigroup Investment Research +91-22-6631 9887
2007 Jun 13
5
Confusion with sapply
Hi, I have some confusion in applying a function over a column. Here's my function. I just need to shift non-March month-ends to March month-ends. Initially I tried seq.dates, but one cannot give a negative increment (decrement) here. return(as.Date(seq.dates(format(xdate,"%m/%d/%Y"),by="months",len=4)[4]) ) Hence this simple function: > mydate <-
2007 May 14
6
Conditional Sums for Index creation
...`10` V1 V5 1 5 $`11` integer(0) $`12` V5 5 > But now I'm stuck. I don't how to use this list of indices at each row to exclude my columns. Any pointers please? Would such an exercise be easier if I use a time-series based object, like a zoo. TIA and best, -Tir Tirthankar Patnaik India Strategy Citigroup Investment Research +91-22-6631 9887
2007 May 10
3
Quick question on merging two time-series of different frequencies
Hi, A quick beginner's question. I have two time series, A with daily data, and another B with data at varying frequencies, but mostly annual. Both the series are sorted ascending. I need to merge these two series together in the following way: For any entry of A, the lookup should match with B until we find an entry of B that's larger than A's. For all A[i], i = 1,...,N and B[j],
2007 Jun 14
3
Preserving dates in Excel.
Hi, Quick question: Say I have a date variable in a data frame or matrix, and I'd like to preserve the date format when using write.table. However, when I export the data, I get the generic number underlying the date, not the date per se, and a number such as 11323, 11324, etc are not meaningful in Excel. Is there any way I can preserve the format of a date on writing into a text-file? TIA
2017 Dec 10
2
What does gluster do when it's idle?
Hi, There's no client activity and I have collected tcpdump for 5 mins on one of the glusterFs sever which is also a client with gluster NFS mount. From tcpdump I see that for every few seconds, STAT & STATFS commands are run. For whichctory are these commands being run and why? Regards, Jeevan. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2017 Dec 10
0
What does gluster do when it's idle?
...lls too. I understood these too calls are to get updated on gluster configuration. But all these two calls are to a particular node only while there are total (2+1)*3= 6 nodes in my configuration. Why so? What exactly is DUMP and PORTBYBRICK? Regards Jeevan. On Dec 10, 2017 6:47 PM, "Jeevan Patnaik" <g1patnaik at gmail.com> wrote: > Hi, > > There's no client activity and I have collected tcpdump for 5 mins on one > of the glusterFs sever which is also a client with gluster NFS mount. From > tcpdump I see that for every few seconds, STAT & STATFS commands are...
2017 Nov 13
0
What is the difference between FORGET and UNLINK fops
Filtering the brick logs in TRACE mode with rpcsvc.c does show the FOPS. >From this, I've realized that LOOKUP is actually dns lookup. This actually differs from NFS lookup operation. Please correct me if I'm wrong. Regards, Jeevan. On Nov 13, 2017 9:40 PM, "Jeevan Patnaik" <g1patnaik at gmail.com> wrote: > Hi, > > Can I get a brief description of all the FOPS in gluster or the location > of the source code file so that I will try to get an understanding myself? > > Few FOPS I'm not clear like FORGET, UNLINK, FLUSH, LOOKUP > >...
2018 Jan 03
1
stale file handle on gluster NFS client when trying to remove a directory
An ESTALE error usually means the gfid could not be found. Does repeating the "rm -rf" delete the directory? Regards, Nithya On 3 January 2018 at 12:16, Jeevan Patnaik <g1patnaik at gmail.com> wrote: > Hi all, > > I haven't found any root cause or workaround for this yet. Can any one > help me in underatanding the issue? > > Regards, > Jeevan. > > On Dec 21, 2017 8:20 PM, "Jeevan Patnaik" <g1patnaik at gmail.com&...
2017 Nov 13
4
What is it with trusted.io-stats-dump?
Hi, I am trying to understand how the extended attribute trusted.io-stats-dump works. setfattr -n trusted.io-stats-dump -v /tmp/gluster_perf_stats/io-stats-pre.txt /mnt/gluster/gv0_glusterfs I can see that the io-stats-pre.txt is created. But how and what happened in the background? And why I can't I see the attribute with getfattr again? getfattr -dm- /mnt/gluster/gv0_glusterfs # file:
2017 Nov 13
2
What is the difference between FORGET and UNLINK fops
Hi, Can I get a brief description of all the FOPS in gluster or the location of the source code file so that I will try to get an understanding myself? Few FOPS I'm not clear like FORGET, UNLINK, FLUSH, LOOKUP Or is there a way I can tunnel through the FOPS that that are happening in the background for each operation? I have tried this to find from a brick logfile in TRACE mode, but there
2018 Jan 03
0
stale file handle on gluster NFS client when trying to remove a directory
Hi all, I haven't found any root cause or workaround for this yet. Can any one help me in underatanding the issue? Regards, Jeevan. On Dec 21, 2017 8:20 PM, "Jeevan Patnaik" <g1patnaik at gmail.com> wrote: > Hi, > > > After running rm -rf on a directory, the files under it got deleted, but > the directory was not deleted and was showing stale file handle error. > After 18 minutes, I'm able to delete the directory. So could anyone help...
2007 Jun 05
2
Problems with Merge
Hi, I have a history dataset, a matrix with about 1590 obs, and 242 cols, and I need to update this matrix with an 'update' matrix that has about 30 rows, and roughly similar number of columns as the history ds (but not necessarily equal). The update dataset is read from an Excel ODBC connection. When I try and merge these datasets, I get counter-intuitive results. library(RODBC) chn
2017 Dec 21
2
stale file handle on gluster NFS client when trying to remove a directory
Hi, After running rm -rf on a directory, the files under it got deleted, but the directory was not deleted and was showing stale file handle error. After 18 minutes, I'm able to delete the directory. So could anyone help me in knowing what could have happened or when in general I get such errors. The following is NFS log: [2017-12-21 13:56:01.592256] I [MSGID: 108019]
2013 Jul 12
2
Samba limitation to concurrent open files
Can Samba handle in the range of 1million to 3 millions concurrently open files? If so, then from which Samba version onwards? Does it have any benchmarking results on maximum number of open files that Samba can have concurrently? Any reply to this question is highly appreciated. Thanks in Advance Santosh
2013 Aug 29
1
Missing value handling for felm function in lfe package
...wish to tell it na.omit or na.action = na.omit but it does not recognize this. I need to allow for missing values as I have different specifications and don't want to remove observations for all. Help on this will be greatly appreciated! Thanks in advance and hope this is clear. Megha Megha Patnaik PhD candidate Dept of Economics Stanford University 650-868-6084 [[alternative HTML version deleted]]
2017 Nov 14
0
What is the difference between FORGET and UNLINK fops
...s://github.com/bengland2/gluster-profile-analysis It doesn't have some of the ones you are looking for but if you get definitions of what they are I would like to add them to what we have in the profile analysis tool's README. HTH! -b ----- Original Message ----- > From: "Jeevan Patnaik" <g1patnaik at gmail.com> > To: gluster-users at gluster.org > Sent: Monday, November 13, 2017 11:22:26 AM > Subject: Re: [Gluster-users] What is the difference between FORGET and UNLINK fops > > Filtering the brick logs in TRACE mode with rpcsvc.c does show the FOPS....
2017 Nov 13
0
What is it with trusted.io-stats-dump?
...s-dump gets bypassed at the io-stats translator layer on the stack and there it gets converted into the action of dumping the statistics into the provided output file path. See io_stats_setxattr() implementation in io-stats.c for more details. HTH, Krutika On Mon, Nov 13, 2017 at 12:14 PM, Jeevan Patnaik <g1patnaik at gmail.com> wrote: > Hi, > > I am trying to understand how the extended attribute trusted.io-stats-dump > works. > > setfattr -n trusted.io-stats-dump -v /tmp/gluster_perf_stats/io-stats-pre.txt > /mnt/gluster/gv0_glusterfs > > I can see that the io-st...
2009 Feb 04
3
unable to assign ip from config file
Hi, im using a fedora core 8 domU and fedora core 8 as my dom0 on xen3.1.0-13, my config file reads: kernel = "/boot/vmlinuz-2.6.21-2950.fc8xen" ramdisk="/boot/initrd-2.6.21-2950.fc8xen-no-scsi.img" memory = 428 name = "fedora1.fc8" vif = [ ''mac=00:16:3e:00:00:03,ip=192.168.2.105'' ] dhcp = "off" netmask = "255.255.255.0" gateway