search for: slurp

Displaying 20 results from an estimated 147 matches for "slurp".

2009 Jan 05
1
Process File Line By Line Without Slurping into Object
Dear all, In general practice one would slurp the whole file using this method before processing the data: dat <- read.table(filename) or variations of it. Is there a way we can access the file line by line without slurping/storing them into object? I am thinking something like this in Perl: __BEGIN__ open INFILE, '<' , '...
2006 Mar 23
0
Can Dovecot 'slurp' into the INBOX from a mail spool file?
...NBOX myfolder1 myfolder2 Both of those INBOXes are actually the same folder. I'd ideally like to hide the mbox namespace entirely so that the user does not see any mbox folders. UW IMAP, with it's mbx format, allows you to just drop in a file called INBOX in mbx format and it will 'slurp' the /var/spool/mail/usersmbox file into the mbx INBOX. Has/could Dovecot have a similar feature whereby you specify a spool folder which is then 'slurped' into the local maildir INBOX? Not sure if I'm being clear enough here - do let me know if not! Much thanks, Daniel
2009 Jan 16
5
Value Lookup from File without Slurping
...tain two columns like this: # tag value AAA 0.2 AAT 0.3 AAC 0.02 AAG 0.02 ATA 0.3 ATT 0.7 Given another query vector > qr <- c("AAC", "ATT") I would like to find the corresponding value for each query above, yielding: 0.02 0.7 However, I want to avoid slurping whole repo.txt into an object (e.g. hash). Is there any ways to do that? The reason I want to do that because repo.txt is very2 large size (milions of lines, with tag length > 30 bp), and my PC memory is too small to keep it. - Gundala Viswanath Jakarta - Indonesia
2020 Apr 06
2
Re: [v2v PATCH 2/2] Consolidate handling of temporary files/dirs
...here is no need to manually schedule all the temporary files > and directories for removal when the application quits. > --- Side note: > +++ b/v2v/output_glance.ml > @@ -27,16 +27,6 @@ open Types > open Utils > > class output_glance () = > - (* Although glance can slurp in a stream from stdin, unfortunately > - * 'qemu-img convert' cannot write to a stream (although I guess > - * it could be implemented at least for raw). Therefore we have > - * to write to a temporary file. XXX > - *) > - let tmpdir = > - let base_dir = (op...
2019 Jan 16
2
Re: [PATCH 2/5] mltools: create a new external_command_code
...tools/tools_utils.ml > index 3b1554c5a..e6b2b5713 100644 > --- a/common/mltools/tools_utils.ml > +++ b/common/mltools/tools_utils.ml > @@ -338,7 +338,13 @@ let create_standard_options argspec ?anon_fun ?(key_opts = false) ?(machine_read > } > > (* Run an external command, slurp up the output as a list of lines. *) > -let external_command ?(echo_cmd = true) cmd = > +let rec external_command ?(echo_cmd = true) cmd = > + let lines, exitcode = external_command_code ~echo_cmd cmd in > + if exitcode <> 0 then > + error (f_"external command ā€˜%sā€™ ex...
2019 Jan 16
0
[PATCH 2/5] mltools: create a new external_command_code
.../mltools/tools_utils.ml b/common/mltools/tools_utils.ml index 3b1554c5a..e6b2b5713 100644 --- a/common/mltools/tools_utils.ml +++ b/common/mltools/tools_utils.ml @@ -338,7 +338,13 @@ let create_standard_options argspec ?anon_fun ?(key_opts = false) ?(machine_read } (* Run an external command, slurp up the output as a list of lines. *) -let external_command ?(echo_cmd = true) cmd = +let rec external_command ?(echo_cmd = true) cmd = + let lines, exitcode = external_command_code ~echo_cmd cmd in + if exitcode <> 0 then + error (f_"external command ā€˜%sā€™ exited with error %d")...
2017 Mar 26
3
Tip: update dovecot MD5 password from PAM
It is a jolly bad idea to use the same password for both email and system access. On TLS+plaintext, if your passwords are slurped by a python script, all accounts are compromised. Congratulations, the NSA will love you. On the other side of the ocean, however, there are European states where you must disclose the fact, or go to jail. (I tried to protect dovecot passwords with bcrypt, but the mail clients refused it.) Sent...
2006 Jan 27
5
Before I write this myself, is there already an easier way?
Recently I''ve wanted to be able to take the data I''ve painstakingly defined in my fixture files and slurp it up into my development database so I can play with my website (locally, in development mode) with the same data I use in my tests. In a similar vein, I want to take the table definitions in the development_structure.sql file and use it to re-define my development database schema. Unless I&...
2007 Jun 24
3
Moving user accounts from a domain to another - and changing their logins
...t needs admin rights in the first place, etc), but then it isn't said in the documents I read how to copy that local user profile to a(nother!) domain user profile afterwards; * there's also a trust domain relationship that sounds kind of promising, but I don't know how I could do to slurp the data from the old domain into the new, nor how I can rename the account after I've slurped it (I think modifying the account DN and other fields won't be enough). Where should I start looking? Is there already a document somewhere covering my scenario? [As a side note, I've sal...
2013 May 28
4
IMAP QUOTA
Hi, I configured imap quota on dovecot-2.0 with backend Maildir++, after exceeding user quota the sender receiving bounce mails, Is there any way that after exceeding user quota the mail will deliver somewhere else like user spool area? so that after increasing quota user will get the mails. -- Regards, Arun Kumar Gupta
2019 Jan 16
10
[PATCH 0/5] [RFC] builder: handle unavailable repos
In case a repository of virt-builder references files (e.g. the index) that cannot be downloaded (network issues, 404, etc) then virt-builder errors out on this situation. This is not a nice situation, from an user POV. This series does some refactoring to allow to better handle downloading failures, and handle the failures gracefully in virt-builder. RFC because I'm not yet too convinced
2005 Dec 29
5
Extracting SQL and Rebuilding from SQL?
Hello- With a database filled with several customers'' datasets, I thought it would be a nice feature of my app''s backend interface to be able to extract (and optionally delete) the data from a single customer. It would then also be nice to rebuild that data from the stored info. What''s a good way to do this efficiently? If all the ":dependent => true"
2006 Jul 24
3
Creating performance test fixtures from development db? How?
Hi all! I''m looking into the testing chapter of Agile Web Development With Rails (2nd ed.). I want to performance test my app, but I''m too lazy to write fixtures for performance test. I''d rather use the data from my development db (because the data is so close to the production data). How do I get the data into the test db without writing fixtures? Could you please
2016 May 23
0
[PATCH 4/5] mllib: move stringify_args from dib
...rgs = + let args = Array.to_list args in + let rec quote_args = function + | [] -> "" + | x :: xs -> " " ^ (Filename.quote x) ^ quote_args xs + in + match args with + | [] -> "" + | app :: xs -> app ^ quote_args xs + (* Run an external command, slurp up the output as a list of lines. *) let external_command ?(echo_cmd = true) cmd = if echo_cmd then diff --git a/mllib/common_utils.mli b/mllib/common_utils.mli index 7f288b4..5bcc692 100644 --- a/mllib/common_utils.mli +++ b/mllib/common_utils.mli @@ -239,6 +239,10 @@ val compare_version : str...
2017 Mar 27
2
R fails to read repo index on NGINX
im hosting a local cran repo on an NGINX server and it fails to pull the index at /src/contrib/ the layout of the index is different from apache, could this be disrupting R? John Roman Linux System Administrator RAND Corporation joroman at rand.org X7302 __________________________________________________________________________ This email message is for the sole use of the intended
2009 Jun 24
1
Reading 4-byte float into R from binary file
A simple question, I hope.... I have a binary file format that I want to slurp into R using readBin. There are a couple of fields in the file that are 4-byte floats. Since R has no "float" data type (4-byte), I am wondering how to go about this task. I could simply do all the work in C, but the format is pretty simple, so I wanted to do it using just R. I did se...
2005 Sep 12
0
Dovecot feature request: move /var/mail/uid to INBOX
Hello, UW-Imap has a (questional, but for me useful) feature to slurp all mails pending in /var/mail/uid into the user's INBOX whenever the user successfully logs on and the INBOX is not configured as /var/mail/uid. The usefulness for me is that users have a relatively small quota, so the noisy "over quota" messages pop up for everyone now and then,...
2010 Jan 16
3
httpd and robots.txt
would anyone out there care to share their robots.txt experience using centos as a webserver and their robots.txt files? i realize this is a somewhat simple exercise, yet i am sure there are both large and small hosters out there and possibly those that have high traffic modify their robots.txt files differently that others ??? please share if you can or care to please? for years we have just
2005 Mar 01
2
Open3.popen3 oddity
Open3.popen3 returns the pid as well as the in, out, and err streams. I thought only the streams were supposed to be returned. Thanks -- Nathaniel <:((><
2007 Dec 17
2
[LLVMdev] RFC: GLIBCXX_DEBUG ScheduleDAG Patch
On Monday 17 December 2007 13:39, Evan Cheng wrote: > My only concern is the potential compile time impact. Do you see any? I don't notice any, but then I'm not particularly looking for that either. I'll run some tests. I also accidentally included some debugging code I added to track down this prioritization problem (the queue dumping code). I'll remove that before I