search for: pluck

Displaying 20 results from an estimated 56 matches for "pluck".

Did you mean: luck
2012 Nov 15
2
Suggestion: use `select` values if `pluck` called with no args
I suggest that if you don''t pass any args to ActiveRecord#pluck, it would use the select values. This follows along well with the way other AR::Calculations work. As an extra benefit we would be able to pluck virtual columns. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To view this dis...
2008 Apr 18
5
show sum of textboxes
Hi all, I have multiple textboxes containing numbers. I want to add up all the numbers and show the sum. Can I select the textboxes by class and sum the content? This also has to happen realtime: when a number is changed ina textbox the sum should also change. can this be done? regards, Stijn --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2007 Dec 17
6
Checkbox array and Ajax.updater
Hello all, I have some checkbox array like these: <input type=checkbox name=list[] value="1">Java<br> <input type=checkbox name=list[] value="2">JavaScript<br> <input type=checkbox name=list[] value="3">ASP<br> <input type=checkbox name=list[] value="4">HTML<br> <input type=checkbox name=list[]
2007 Jun 14
4
How to convert a table to JSON (or to Javascript array)
Is there a way to retrieve an HTML table in javascript and convert it to JSON using prototype? I''m stumped :( phil --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To
2011 Feb 02
3
4.0-testing c/s 21405 incomplete?
Keir, George, it in particular doesn''t do what its title says: "Remove lock in ept_get_entry, ..." - the last two hunks are simply missing compared to -unstable c/s 22526 (I have no cluse how that happened). Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
2006 Jun 20
4
Prototype Array bug??
...fined t=last, undefined t=first, undefined t=clear, undefined t=_each, undefined t=_reverse, undefined t=entries, undefined t=member, undefined t=select, undefined t=find, undefined t=map, undefined t=inspect, undefined t=zip, undefined t=toArray, undefined t=sortBy, undefined t=reject, undefined t=pluck, undefined t=partition, undefined t=min, undefined t=max, undefined t=invoke, undefined t=inject, undefined t=include, undefined t=grep, undefined t=findAll, undefined t=detect, undefined t=collect, undefined t=any, undefined t=all, undefined t=each, undefined t=0, #Assessments Instruments t=1, chi...
2009 Aug 04
4
regex question
...of indices corresponding to the first letter is obtained all right with gregexpr but the next step is not so clear. I am not able to figure out how I can use this information to pick out the letters from the original string. My problem is that I don?t know how I can treat the string as a vector and pluck out the letters. ? There may be many ways to do it, but I have not succeeded in coming up with even one way! I will appreciate any tips that I can get. Thanking you, Ravi
2004 Sep 10
2
Re: nice idea
...guessing the best of Marco's idea can be achieved by adding > heuristics to dynamically determine optimal frame size based on say, a > maximum standard deviation of a complexity measurement. The idea is to > tie the frame breaks to dramatic changes in the signal. If the guitarist > plucks a string, or the vocalist starts a new syllable, that should also > mark a frame boundary. I was playing with variable blocksize some time ago. I used something like brute force search, no invention at all. I got ~1.5% improvement of compression, but 10 second sample took about hour of encodi...
2008 Sep 15
2
Passing an array into controller
...ion to a controller. The parameter is being read as a single string and not an array. The Javascript function: function sendtolist(formName){ var form = $(formName) var checked = [] checked = form.getInputs("checkbox","plans[]").findAll(function(item) { return item.checked; }).pluck("value"); action="/generate_reports/advanced_plan_summary" window.location.href=action+"?plans[]="+checked } The controller is: def advanced_plan_summary @ids = params[:plans] @ids = @ids.split('','') @plans = Plan.find(@ids.to_a) if @...
2006 Nov 30
2
Samba File Shares growing out of control
Can anyone recommend any solutions for plucking files out of my samba shares that haven't been used in a while. I would like someway to move them off to some archive solution. _________________________________________________________________ Express yourself with gadgets on Windows Live Spaces http://discoverspaces.live.com?source=hmtag1&...
2006 May 31
2
calling routing during a functional test
...ted to fetch the ID parameter of the newly created object, so that I can make some assertions on it. But I can''t seem to find an elegant way of doing that. Of course, might create action redirects. That means that @response.redirect_url is something like "/show/8". So I could pluck the number off that, but that seems too brittle, since if I change my routing, that would no longer work. I was wondering if there was a way to call routing on the redirect_url, so that I could then fetch the ID from the parameters hash. That wouldn''t be brittle at all. But I can'&...
2007 Sep 21
1
Weird data from evalJSON
...(value, index)) {results.push(value);}})); return results; } function (iterator) { return this.map((function (value, index) {return {value:value, criteria:iterator(value, index)};})).sort((function (left, right) {var a = left.criteria, b = right.criteria;return a < b ? -1 : a > b ? 1 : 0;})).pluck("value"); } function () { return [].concat(this); } function () { var iterator = Prototype.K, args = $A(arguments); if (typeof args.last() == "function") { iterator = args.pop(); } var collections = [this].concat(args).map($A); return this.map((function (value, index) {return...
2007 Jun 09
23
hoverclass on droppable zone
Hi guys, I''m trying to make a drag''n''drop portal using sortable element. I would like to apply the "hoverclass" option only on the droppable zone instead of the column border. Any idea a about the solution? Thanks for any help, Sabri --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2004 Sep 10
2
Re: nice idea
--- Hod McWuff <hod@wuff.dhs.org> wrote: > On Fri, 2002-10-04 at 10:26, Marco "elcabesa" Belli wrote: > > oversampling.. i maean digitally change the wave file rate form > 44khz to 440 > > khz > > > > it make next sample easyer predictable > > OK, IANASPE (signal processing engineer) but it seems to me that if a > simple shift like that can
2006 Jun 02
1
prototype patch submissions
...nt handlers on a per-node basis. Now, I have an init() function fire which assigns all event handling and behavioural code; when you inspect the source, all you see are intelligently named attributes. http://dev.rubyonrails.org/ticket/5266 The second half of this is #5266, a modification to the .pluck method in Prototype. Taken on its own, it might seem ho-hum, but when paired with document.getElementsByAttribute, you have the tools you need to create really potent domain specific solutions that don''t require any further inline event handling. My favourite example is for an applica...
2007 Jul 10
6
Having trouble using data returned by Ajax.request
...and I have pretty much hit the wall on using the data returned by Ajax.Request. I''m using some php code to return a string: {''foo'': [[0,0.0865334429075127], [1,0.0828179861705063], [2,0.0828173042602942], [3,0.0841707718624196]]} But I keep getting an error: "item.pluck is not a function" on line 857 of plotr_uncompressed.js Here is the code I''m using to grab the data into a javascript variable: var graphData = ""; var url = "foobar.php"; function generateGraphData(dataRange,dataUrl) { new Ajax.Request(url, {...
2004 Sep 10
2
Re: nice idea
...an be achieved by adding > > > heuristics to dynamically determine optimal frame size based on say, a > > > maximum standard deviation of a complexity measurement. The idea is to > > > tie the frame breaks to dramatic changes in the signal. If the guitarist > > > plucks a string, or the vocalist starts a new syllable, that should also > > > mark a frame boundary. > > > > I was playing with variable blocksize some time ago. I used something > > like brute force search, no invention at all. I got ~1.5% improvement > > of compressi...
2007 Oct 15
1
Error: X11 cannot allocate additional graphics colours.
...ere are no errors and the colours come out fine. But when I use the axis command, in the more complex code above, I get an error. The real question I want to know is how can I enable R (or my OS) to plot a greater number of colours? I can plot 820 colours on R under windows, probably more, I just plucked 820 out of the air. I'm guessing this is because my windows graphics card can produce that many colours, whereas on linux I am limited by what x-windows can produce, but there must be some way of increasing the number of colours I can plot using R under linux...? Many thanks Mick The infor...
2019 Jan 24
3
Curl spec file
Thanks! I can try to modify that for my needs. Any idea where can I find a list of patches? I'll look for centos specific ones that I might want to apply. The spec file you shared has a few upstream patches as well as Fedora specific ones. I wonder does one knows which patches should be applied to each release, do they publish it somewhere? Roee. ?On 1/23/19, 6:35 PM, "CentOS on behalf
2006 Oct 26
6
SIP v IAX2
Lets talk about SIP and IAX2 1. The good and bad of both 2. What is the better one and why 3. and any other information that maybe use full -- Best regards, Al Bochter Bochter Services (Voip PBX) Toll Free: 866-638-1254 EXT: 250 (Voip PBX) Free World DialUp: 780217 EXT: 250 (Voip) Cellular: 712-432-5401 http://www.BochterServices.com/?t=Email BUY and sell Coins, Silver and Gold