search for: _at

Displaying 20 results from an estimated 85 matches for "_at".

Did you mean: _a
2009 Mar 13
2
changing function argument
Hi, I wonder if the following is possible in R: Suppose a function takes an argument, and wants to modify this argument so that the change is visible _at the call side_. It would be what is for example known as pass-by-reference-to-non-const in C++. test <- function(x) { x <- 10 ... return (somethingElse) # I do NOT want having to return x } number = 5 test(number) stopifnot(number == 10) Is there some trick with scoping rules and m...
2016 Dec 16
2
Upgrading a package to which other packages are LinkingTo
...ssible. For example I even added a "frozen" package [1] in the sources / unit tests to test for just this. In practice you just cannot hit every possible access point of the (rich, in our case) API so the tests pass too often. Which is why we relentlessly test against reverse-depends to _at least ensure buildability_ from our releases. As for seamless binary upgrade, I don't think in can work in practice. Ask Uwe one day we he rebuilds everything every time on Windows. And for what it is worth, we essentially do the same in Debian. Sometimes you just need to rebuild. That may...
2017 Dec 16
2
Replace call stack with an equivalent on the heap?
...://gist.github.com/bgamari/bd424e82d96ddb7b9e67c5e51cdcc5ec> One major difference is that GHC uses a "stack-in-the-heap", in the sense that the a is a chunk of heap memory that functions effectively as call stack. It is managed explicitly by GHC. GHC does not use the native call stack _at all_. This is to implement continuation passing, in a sense. I want to check that the difference in the performance is truly from this "stack in the heap" behavior, so I want to teach a backend to generate code that looks like this. Is code generating like this something that I could...
2006 Apr 26
1
How to handle default database values now?
Since interpreting defaults in the database has been ripped out (for PostgreSQL at least), what''s the standard way of specifying defaults now? Right now, I''m doing this: # model def create self.datetime = Time.now super end I hate it. I know there are the ''*_at/on'' automatic fields, but that''ll entail combing through all my code changing field names. I hate that too. Joe -- Posted via http://www.ruby-forum.com/.
2006 Jan 04
3
date conversion
I have the date saved in a database in the following format ''20060102170020''. How do I go about converting the date in the format of January, 01, 1901? I searched all over and found something similiar using ''to_formatted_s''. However I only found support for converting month to a three letter format (e.g. ''Jan''). Is there an eaiser way?
2005 Mar 03
0
uniform handling of timestamps
...rything as text and does not checking, mysql has datetime, date, and timestamp but does poor checking (crippled to be precise) to ensure the column is valid. only postgresql supports both timestamps AND will ensure the field value is a possible date/time. enter rails and it''s mapping to *_at fields. i''m thinking that seting up a table like create table temporal ( id int, data text, created_at text, updated_at text primary key (id) ); should do the trick since rails will pull out the strings and convert them to times and also update them at th...
2007 Jan 27
1
Annoying Scale and DnD behaviour
Current behavior terminates scale when not moving cursor _between windows_. Shouldn't scale be terminated only when not moving cursor _at all_ for the specified time? Stjepan
2006 Jan 14
2
change lattice panel background color
...nd a way to change just the panel background color in lattice. I would like NA regions in levelplot() to appear black. I've tried the trellis.par.set() stuff, but it it makes the background of the whole graphic black. Thanks, Scott Waichler Pacific Northwest National Laboratory scott.waichler _at _ pnl.gov
2018 Nov 28
3
named arguments discouraged in `[.data.frame` and `[<-.data.frame`
...ugh R-devel would be more appropriate than R-help) ############################# Background: Now and then students presents there fancy functions like this: myfancyfun(d,12,0.3,0.2,500,1000,FALSE,TRUE,FALSE,TRUE,FALSE) Incomprehensible. Thus, I encourage them to use spaces and name arguments, _at least_ when trying to communicate their code with others. Something like: myfancyfun(data = d, n = 12, gamma = 0.3, prob = 0.2, size = 500, niter = 1000, model = FALSE, scale = TRUE, drop = FALSE, plot = TRUE, save = FALSE) Then some overzealous studen...
2016 Dec 16
2
Upgrading a package to which other packages are LinkingTo
...added a "frozen" package [1] in the sources / unit tests | > to test for just this. In practice you just cannot hit every possible access | > point of the (rich, in our case) API so the tests pass too often. | > | > Which is why we relentlessly test against reverse-depends to _at least ensure | > buildability_ from our releases. I meant to also add: "... against a large corpus of other packages." The intent is to empirically answer this. | > As for seamless binary upgrade, I don't think in can work in practice. Ask | > Uwe one day we he rebuilds e...
2005 Jan 09
0
[LLVMdev] Version Control Upgrade?
...on this point, trust me.) The differences can't _all_ be in my head, I hope! OK, I should at least _try_ to be objective. In contrast to the other VCSs I've used: - Perforce _just works_. By this I mean that it only ever takes effort to make it work _differently_, not to make it work _at all_. I don't want to start a flamewar and so won't mention other VCSs that could be contrasted here, but the differences are certainly there. Getting up and running - Perforce is _very_ well documented. - Perforce is _very_ well supported: should anyone ever need help, Perforce sup...
2006 Mar 17
4
hidden fields
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I''m a rails newbie trying to develop a blog application with rails. I''ve some troubles to find the best way of automaticly set a field value on update and creation of a blog item. In fact my problem is very simple. I''ve a blog table with two column named create_date an mod_date. And I''d like : 1 - that
2006 May 09
1
Rails freeze, weird error
...8/test/unit.rb:285 from /usr/bin/irb:13 I''m guessing, for now, that I can''t do what I wanted to do (Rails 1.1.x from vendor/rails externals) but I''m not sure why. And, does this mean that I''ll be unable to jump to Rails 1.1.x until my shared host goes _at least_ that far? (In other words, this freezing business appears to only work going backwards, not forwards.) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060509/912babf4/attachment-0001.html
2018 May 05
1
llvm-mc-assemble-fuzzer broken
Thank you. I went ahead with a speculative fix in r331568. I'm not familiar _at all_ with the tool, so, although the fix was straightforward, another pair of eyes from somebody familiar with the tool would be appreciated. On Fri, May 4, 2018 at 5:10 PM, George Karpenkov <ekarpenkov at apple.com> wrote: > It worked in August. > Last time I’ve asked (again, in Augus...
2016 Dec 16
3
Upgrading a package to which other packages are LinkingTo
...package [1] in the sources / unit tests | > | > to test for just this. In practice you just cannot hit every possible access | > | > point of the (rich, in our case) API so the tests pass too often. | > | > | > | > Which is why we relentlessly test against reverse-depends to _at least ensure | > | > buildability_ from our releases. | > | > I meant to also add: "... against a large corpus of other packages." | > The intent is to empirically answer this. | > | > | > As for seamless binary upgrade, I don't think in can work in practice....
2006 Jul 13
4
Does text_field go directly to attributes hash in AR object?
...time figuring out what is going on here. I''m trying to override one of my getters so that I can format it a certain way in my form. But I can''t seem to get text_field to call the appropriate method on my object. So here''s my getter: public def FAX fax = read_attribute(:FAX) puts fax sprintf("(%d)%d-%d", fax[0,3], fax[3,3], fax[6,4]) "crap" end Here''s a snippet of my template: <TD><%= @current_job.FAX %><%= text_field(:current_job, ''FAX'') %></TD> Fax: crap[text field w...
2014 Jun 23
1
isohybrid has 2 variants
...ohybdrid commands in various use case would be helpful. _Under UEFI you propose a command "genisoimage <options> CD_root". Would the options be identical if instead of genisoimage we use xorriso? I ask as I'm not a Fedora user, thus don't have their variant of genisoimage. _At the end of the page you give an example where the GPT equipment is added. But in this thread: http://web.archiveorange.com/archive/v/mwjwmhaWun4iHTR2s5Kg you propose a command that would allow to boot on a Mac. Could you provide such an example in the description of isohybrid? Of course I'm a...
2000 Dec 30
5
2d wavelet transforms
I've been reading up on wavelet transforms the past week, and I plan to start on some video compression stuff next week, if it's any good (small chance :)) for Tarkin. So far I think I know what's happening, however there's one small thing I don't quite understand yet. If I understand correctly, you can do a 2d wavelet transform (I'm assuming a Haar transform here for
2007 Mar 13
6
Easy Date question - newb
All I want to do is find the objects that were created today under the ''created_on'' column. I''ve tried many ways, here is one example using the chronic gem. @products = Product.find_all_by_created_on(Chronic.parse(''today'')) I must be missing something right in front of me .... Thanks for any help.
2018 Nov 29
2
named arguments discouraged in `[.data.frame` and `[<-.data.frame`
...ugh R-devel would be more appropriate than R-help) ############################# Background: Now and then students presents there fancy functions like this: myfancyfun(d,12,0.3,0.2,500,1000,FALSE,TRUE,FALSE,TRUE,FALSE) Incomprehensible. Thus, I encourage them to use spaces and name arguments, _at least_ when trying to communicate their code with others. Something like: myfancyfun(data = d, n = 12, gamma = 0.3, prob = 0.2, ? ? ? ? ? ? ? ? ? ? ? size = 500, niter = 1000, model = FALSE, ? ? ? ? ? ? ? ? ? ? ?scale = TRUE, drop = FALSE, plot = TRUE, save = FALSE) Then some overzealous student...