search for: tidier

Displaying 20 results from an estimated 98 matches for "tidier".

Did you mean: didier
2014 Mar 19
5
[LLVMdev] [RFC] Add empty() method to iterator_range.
Hi all, As RFCs go this is short and sweet - I think it would be nice to add an empty method to iterator_range. Something like: bool empty() const { return begin() != end(); } My motivation is to make the 'if' test at the start of this common pattern tidier: if (!collection.empty()) // initialization... for (auto& c : collection) // do something for each c. which I think that is preferable to: if (collection.begin() != collection.end()) // initialization... // for each... The empty method is just a single iterator comparison, so it shoul...
2013 Apr 24
2
Looking for a better code for my problem.
...] == "B", ] > rbind(Only_A, Only_B[Only_B[, 'BB'] == "b", ]) AA BB CC 2 A c 2 4 A b 4 10 A a 10 11 A a 11 18 A b 18 19 A b 19 20 A c 20 3 B b 3 5 B b 5 8 B b 8 However I believe there must be some better code to achieve that which is tidier, i.e. there must be some 1-liner code. Can somebody suggest any better approach if possible? Thanks and regards,
2009 Mar 15
2
Testing for Inequality à la "select case"
...felse(x<=250000, 3, ifelse(x<=700000, 4, ifelse(x<=1000000, 5,6))))) percent = c(0.65, 0.4, 0.3, 0.25, 0.2, 0) minimum = c(0, 14000, 40000, 75000, 175000, 250000) pmax(x * percent[range_aux], minimum[range_aux]) } This could be done in Excel much tidier in my opinion (especially the range_aux part), element by element (cell by cell), with a VBA function as follows: Function MyRange(x as Double) as Double Select Case x Case Is <= 20000 MyRange = 0.65 * x Case Is <= 100000 RCJuiProfDet = IIf(0.40 * x < 1400...
2013 Oct 31
2
Make Multiple plots in R
Dear All, I would wish to make multiple plots and give title/ headings same time, is there a simpler/ tidier way compared to below(, especially the headings as they are missing)? See output attached. #####################################Making multiple Plots start######################## plot(mybrick9, y = 2, col = terrain.colors( length(seq(0,1, by = .2))-1),breaks= seq(0, 1, by = 0.2), axes = T,...
2009 Jun 05
0
[LLVMdev] Removing SimpleRewriter (formerly SimpleSpiller)
The new spilling framework inserts spill code in-place (during register allocation) rather than deferring it using VirtRegMap/VirtRegRewriter. The goal is to enable techniques like iterative splitting to be implemented. It should also be a bit tidier as it keeps more state in the MachineFunction, rather than in book-keeping structures like VirtRegMap. The work is in the very early stages though. - Lang. On Thu, Jun 4, 2009 at 1:46 PM, David Greene <dag at cray.com> wrote: > On Thursday 04 June 2009 13:57, Lang Hames wrote: >> R...
2005 Dec 04
1
Back-UPS RS6000
...the nut web status page, which seems a tad messy. It otherwise works fine, except I don't get any information on the input and output voltages. I'm using the hidups driver. My question is: will this be properly supported in any upcoming release? By properly, I mean will it at least get a tidier name and perhaps support for missing features like the input and output voltage monitoring (if it actually supports it, of course.) Regards, Robert. -- Robert Walsh Amalgamated Durables, Inc. - "We don't make the things you buy." Email: rjwalsh@durables.org -------------- next p...
2016 Aug 24
1
feature request for non-sweave vignettes
Currently Makefiles for vignettes are only supported for .tex files. Could the tools package be modified to allow file extensions to be specified for a vignette engine? Having the pandoc pdf conversion in a Makefile rather than through R would be tidier in some cases. If I specify my vignette engine as ``` tools::vignetteEngine( 'myengine', pattern = '\\.[Rr](md|nw)$', output = c('md', 'tex'), ... ) ``` the `tools:::find_vignette_product` function could have `if (final) c("pdf", "html&quot...
2003 Jan 13
2
replace NA´s
hey what should I do to replace in a data frame NA?s with zeroes? Thanks in advance Juan Pablo
2009 Jun 04
2
[LLVMdev] Removing SimpleRewriter (formerly SimpleSpiller)
On Thursday 04 June 2009 13:57, Lang Hames wrote: > R.I.P. SimpleRewriter. If anyone needs it resurrected let me know. > > This leaves LocalRewriter (the default) and the new TrivialRewriter, > which is for use only with the new in-place spilling framework. This > framework appears (if you squint just right) to be basically > functional now, but it produces awful code. If you
2006 May 26
1
Redirecting user on object.save failures
...n I was using render. What I''ve thought about doing instead is parsing the HTTP_REFERER environment variable (falling back to the root directory), grabbing the controller and action from that, and passing those to the render method, but I can''t help but feel there''s a tidier way of doing what I want. Any thoughts? -- Posted via http://www.ruby-forum.com/.
2011 Jan 20
1
[PATCH] Don't remove foreign kernels during conversion
Removing xen kernels during conversion is tidier, but occasionally problematic. For example, if the kernel has dependent kmods which prevent its uninstallation, the code to remove it reliably across multiple versions of RHEL becomes tricky. The existing code doesn't handle this at all, and the conversion will fail in this case. As it isn'...
1999 Dec 27
2
Suggestion: login.c->record_login()
...iled file with one file), and secondly it doesn't stand a chance of working on a platform without specific support. The second is the killer for me. I'm aware that there are issues for Damien here in keeping track of OpenBSD changes to the OpenSSH codebase. I still think that this would be tidier and easier in the long run. I look forward to your comments. Ta, -Andre Lucas Instinet Global Services
2003 Jan 29
2
calling sweave function from latex
...x and latex that, but I have to remember to copy the foo.sw.tex back to foo.sw or the versions get mixed up. Trivial, but annoying. The question is: can I call the Sweave function from within LaTex so I just latex the foo.sw.tex and the Sweave chunks will also get processed. This would be much tidier. One suspects that the short answer is 'no'. Best fishes Sam -- Sam McClatchie, Research scientist (fisheries acoustics)))))))))) NIWA (National Institute of Water & Atmospheric Research Ltd) PO Box 14 901, Kilbirnie, Wellington, New Zealand s.mcclatchie at niwa.cri.nz Research home...
2003 Jan 29
2
calling sweave function from latex
...x and latex that, but I have to remember to copy the foo.sw.tex back to foo.sw or the versions get mixed up. Trivial, but annoying. The question is: can I call the Sweave function from within LaTex so I just latex the foo.sw.tex and the Sweave chunks will also get processed. This would be much tidier. One suspects that the short answer is 'no'. Best fishes Sam -- Sam McClatchie, Research scientist (fisheries acoustics)))))))))) NIWA (National Institute of Water & Atmospheric Research Ltd) PO Box 14 901, Kilbirnie, Wellington, New Zealand s.mcclatchie at niwa.cri.nz Research home...
2008 Feb 04
1
extracting AIC scores from lmer and other objects
...if I have a vector of objects c(my.lm, my.lmer) and I want to get a character vector c("my.lm", "my.lmer"), how would one do this? I see this as far simpler than jumping into the ugly details of each object type and extracting coefficient lists and such - not to mention tidier. 2) I'm repeatedly getting the error Error in UseMethod("logLik") : no applicable method for "logLik" in a variety of different contexts. The first is if I have to get an AIC for an lmer object. AIC(my.lmer) give me the error above. However, I can circumvent this...
2009 Jan 14
4
insufficient fix for gcc localised output in stubdom makefile
Hello. There was a slight change in stubdom makefile from 3.3 to 3.3.1, in order to use non-localised gcc output: GCC_INSTALL = $(shell LANG=C gcc -print-search-dirs | sed -n -e ''s/install: \(.*\)/\1/p'') However, this is still unsuffient to just set LANG: [guillomovitch@n2 xen]$ LANG=C gcc -print-search-dirs | sed -n -e ''s/install: \(.*\)/\1/p'' At least on
2008 May 14
3
Help to Draw Plot
Hello friends!! I have two questions, and I would like that you could answer me!!! I have created a plot as plot(range(10,-10),range(10,-10),col="blue",col.axis="blue",col.lab="blue",col.main="blue",col.sub="blue"); 1?) I want that the square of plot and the lines that indicates the value -10,-5,0,5,10 have a blue colour too. 2?)It?s
2004 Apr 14
1
Feature proposal and implementation plan: --delete-delay
...nctionality I'm looking for is a backup system that won't actually delete files until a week or two after the user does. This would: 1. Protect against accidental file deletions; the user would have some time to realize the mistake and retrieve a backup 2. Keep the backup machine tidier, and reflect more closely the source directory's structure. It seems to me the difficulty is in noticing when the file was "first" deleted and then keeping track of how much time has elapsed. Here is a proposed method of doing this: 1. When a file is first discovered to be ob...
2006 Sep 05
3
Testing vs Production manifests
...test'' to the ''prod'' branch. I know the latter will work, and I''ve done it in the past (in a limited way) for CFEngine, but I''m really not liking the duplicated infrastructure and necessity of a merge for deployment. Tagging would be *so* much neater and tidier, but might also suffer from not being able to properly test *changes* to objects, rather than just new ones (duplicating the object and renaming it would probably fix this, though). Does anyone have any comments on my solutions, or better ways to solve this problem? - Matt -- when SuSE are d...
2008 Nov 05
3
Rails 2.1.2, complex find involving complex include, bug?
...eems to be a bug in the code for multi-level include and models in modules. Should I report this bug somewhere/somehow? Not sure of Rails bug reporting standards. I guess the workaround is to remove my models from a module namespace. But that''s really unfortunate, it keeps things so much tidier to have them there, they''re really a special purpose subset of my models. Can anyone think of any other workaround? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups &q...