search for: sfile

Displaying 14 results from an estimated 14 matches for "sfile".

Did you mean: file
2016 Aug 05
4
Fwd: Re: Encrypt /decrypta file with ssh keys.
As per Alex's suggestion, attached is the proof of concept "sfile" script. If there is anyone out there with great C skills who can recreate this functionality "out of the box", I think there would be a few happy campers (at least two, anyways). -------- Forwarded Message -------- Subject: Re: Encrypt /decrypta file with ssh keys. Date: Fri...
2008 Jan 27
1
[AGI 1.4] C sample?
Hello I'm pretty much a newbie when it comes to C, but I have to use this language to write a couple of AGI proggies because I need them to be statically compiled. Strangely enough, Google didn't return much when looking for the "Hello, world!" of AGI in C. The following doesn't work: The file never gets written: =========== //check_cid.c #include <stdio.h> #include
2005 Aug 22
2
RFC: "loop connections"
...arning(_("loop connection: appending to a non-existent vector")); + PROTECT(val = allocVector(st, 0)); defineVar(this->namesymbol, val, VECTOR_ELT(OutTextData, idx)); UNPROTECT(1); } @@ -1859,49 +1913,55 @@ } -static Rconnection newouttext(char *description, SEXP sfile, char *mode, +static Rconnection newoutloop(char *description, SEXP sfile, char *mode, int idx) { + int isText = (mode[1] != 'b'); Rconnection new; void *tmp; new = (Rconnection) malloc(sizeof(struct Rconn)); - if(!new) error(_("allocation of text conn...
2006 Jun 20
3
Maintaining same session for a user across different PCs
Hi, I''m trying to make a simple shopping cart, where I want to maintain state when a use logs in from different location. Consider the following : 1. ''foo'' logs in from home pc and add ''bar'' item to the cart. 2. ''foo'' goes to office and logs in from office PC. 3. Now I want only one session for ''foo'', so that when
2007 Mar 02
2
MBOX to MAILDIR conversion
Thinking about going from mbox to maildir. Started with mbox way back when but thinking about making the conversion. The main reason is that I use rsync for backups and when these huge mailboxes are touched I have to copy the whole thing. With maildir I only copy the files that change. So - my questions is - what's the easiest way to make this happan. I assume there are conversion
2005 Sep 18
0
Updated rawConnection() patch
...); } } - this->len = LENGTH(val); - this->data = val; + R_PreserveObject(this->data = val); + this->len = length(val); this->lastline[0] = '\0'; this->lastlinelength = LAST_LINE_LEN; } -static Rconnection newouttext(char *description, SEXP sfile, char *mode, - int idx) +static Rconnection newouttext(char *description, SEXP venv, + SEXP sfile, char *mode) { + int isText = (mode[1] != 'b'); Rconnection new; void *tmp; new = (Rconnection) malloc(sizeof(struct Rconn)); - if(!new) error(_("al...
2006 Mar 28
8
1.1 broke my app
I upgraded to Rails 1.1 (ruby 1.8.2 and ruby 1.8.4 on RHEL 4 using webrick or fastcgi) and all of a sudden I get this hitting a controller: wrong number of arguments (1 for 0) RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/base.rb:379:in
2009 Dec 14
6
write.csv and header
Dear list, I would like to export a matrix to a TXT-File by using write.csv (not necessarily). Is there a way to add a header (with additional informations concerning the project) spanning multiple lines to this file before the actual data are listed up? Should look like this: date: filename: number of permutations: ------------ data (as a matrix) Any suggestions? Thnx in advance.
2018 Dec 04
3
patch to support custom HTTP headers in download.file() and url()
...ew); + error(_("allocation of url connection failed")); + /* for Solaris 12.5 */ new = NULL; + } + } IDquiet = TRUE; return new; @@ -443,7 +455,7 @@ static void doneprogressbar(void *data) #define IBUFSIZE 4096 static SEXP in_do_download(SEXP args) { - SEXP scmd, sfile, smode; + SEXP scmd, sfile, smode, sheaders; const char *url, *file, *mode; int quiet, status = 0, cacheOK; #ifdef Win32 @@ -470,10 +482,13 @@ static SEXP in_do_download(SEXP args) if(!isString(smode) || length(smode) != 1) error(_("invalid '%s' argument"), &q...
2004 Mar 13
0
Quick thought on win32-mmap
...est getting rid of the hash style arguments fior new() for this package. In this particular case, you already have a class and accessors, so you can just use the yield trick, e.g. rb_yield(self) if rb_block_given_p(). Thus you can do: mm = Mmap.new do |m| m.namespace = file m.swapfile = sfile m.size = 1024 end Looks just as nice, and is a lot less code on the C side of things. I only use the hash-style keys when I don''t feel like creating separate objects, or where separate objects don''t really make sense. I''ll make this change unless anyone objects....
2016 Aug 05
3
Encrypt /decrypta file with ssh keys.
> On 5 Aug 2016, at 18:09, James Murphy <james.murphy.debian at gmail.com> wrote: > > The more mainstream thing to do is just use gpg, which has this > functionality already built in. Is this not suitable for your use case? The advantage of Colin's approach is that gpg requires out of band exchange of gpg keys separately from ssh keys. If you already have ssh keys
2011 Nov 28
6
xenoprof patch for oprofile-0.9.7
I am rebasing Fedora rawhide oprofile package to oprofile-0.9.7. The xenoprof patches on http://xenoprof.sourceforge.net/#download look a bit dated. The newest version is for oprofile-0.9.5. I massaged the patch oprofile-0.9.5-xen.patch to apply to oprofile-.0.9.7. Attached is that updated patch. Does this look reasonable? Is there a desire to get this into upstream oprofile? Or should the
2008 Feb 15
4
Revised flags patch
...etpairs, %shardlinks, %ssymlinks, %sIPv6, batchfiles, %sinplace,\n", got_socketpair, hardlinks, links, ipv6, have_inplace); - rprintf(f, " %sappend, %sACLs, %sxattrs, %siconv\n", - have_inplace, acls, xattrs, iconv); + rprintf(f, " %sappend, %sACLs, %sxattrs, %siconv, %sfile-flags\n", + have_inplace, acls, xattrs, iconv, fileflags); #ifdef MAINTAINER_MODE rprintf(f, "Panic Action: \"%s\"\n", get_panic_action()); @@ -333,6 +338,7 @@ void usage(enum logcode F) rprintf(F," -K, --keep-dirlinks treat symlinked dir on receiver a...
2010 Aug 24
0
mlm for within subject design
...23 Aug 2010 19:45:42 +0530 Subject: [R] Cran-packages-ProfessoR- how to Automatically email a file to an address using the perl program. AutoEmail autoemail Description Automatically email a file to an address using the perl program. Usage autoemail(eadd, sfile, hnote = "Exam Results") Arguments eadd Email address sfile file to be sent hnote subject line Details This program will work well in Linux and Mac where Perl is installed - I am not sure about Win- dows. Creates a unix executable file, if perl is...