similar to: "if" clause in the view - - - (for two objects)

Displaying 20 results from an estimated 1400 matches similar to: ""if" clause in the view - - - (for two objects)"

2012 Jul 12
3
[PATCH v2] Btrfs: improve multi-thread buffer read
While testing with my buffer read fio jobs[1], I find that btrfs does not perform well enough. Here is a scenario in fio jobs: We have 4 threads, "t1 t2 t3 t4", starting to buffer read a same file, and all of them will race on add_to_page_cache_lru(), and if one thread successfully puts its page into the page cache, it takes the responsibility to read the page''s data. And
2012 Jul 10
6
[PATCH RFC] Btrfs: improve multi-thread buffer read
While testing with my buffer read fio jobs[1], I find that btrfs does not perform well enough. Here is a scenario in fio jobs: We have 4 threads, "t1 t2 t3 t4", starting to buffer read a same file, and all of them will race on add_to_page_cache_lru(), and if one thread successfully puts its page into the page cache, it takes the responsibility to read the page''s data. And
2012 Oct 12
1
How to get rid of page 1 and 4 i.e Only dots pages while generating the graphs?
Suppose I have "Orange1" data like this. TIME1 RESPONSE RESPSTAT RESPUT REFID ARM SUBARM 0 299.5 Mean 8-item scale 68 0 0 0 287 Median 8-item scale 68 0 0 0 303.9 Mean 8-item scale 68 1 0 0 286 Median 8-item scale 68 1 0 0 295 Mean 8-item scale 85 0 0 12 254 Mean 8-item scale 85 0 0 0 287 Mean 8-item scale 85 1 0 12 216 Mean
2010 May 25
2
Site Navigation With Polymorphic Has Many Through
Hi, seem to keep running into a wall here. I can''t find any resources on site navigation that can deal with any model being in the nav, allow nesting, and can dynamically update. So I thought about it for a while, and decided on a MenuItems class, which contained the position of the child in relation to it''s siblings, where the parent and the child were polymorphic. Then a given
2020 Nov 03
0
[patch V3 25/37] mm/highmem: Provide kmap_local*
Now that the kmap atomic index is stored in task struct provide a preemptible variant. On context switch the maps of an outgoing task are removed and the map of the incoming task are restored. That's obviously slow, but highmem is slow anyway. The kmap_local.*() functions can be invoked from both preemptible and atomic context. kmap local sections disable migration to keep the resulting
2017 Jul 31
0
[PATCH] mm: don't zero ballooned pages
On Mon 31-07-17 16:23:26, ZhenweiPi wrote: > On 07/31/2017 03:51 PM, Michal Hocko wrote: > > >On Mon 31-07-17 15:41:49, Wei Wang wrote: > >>>On 07/31/2017 02:55 PM, Michal Hocko wrote: > >>>> >On Mon 31-07-17 12:13:33, Wei Wang wrote: > >>>>> >>Ballooned pages will be marked as MADV_DONTNEED by the hypervisor and >
2006 Apr 07
6
Multiple view types for a single action?
Is it possible to have more than one kind of view for a specific action, for example an .rhtml and a .rjs file to handle the view for the same action? I suspect not, but this makes me wonder if there a way to call the .rjs file from within the .rhtml so the statements within it get executed? Thanks, Andy
2011 Jan 20
4
How to reshape wide format data.frame to long format?
Dear list, I need to convert this data.frame > names(codesM) [1] "key" "AMR.pa1.M" "AMR.pa2.M" "AMR.pa3.M" "AMR.pa4.M" [6] "AMR.pa5.M" "AMR.pa6.M" "AMR.pa7.M" "AMR.pa8.M" "AMR.pa9.M" [11] "AMR.pa10.M" "AMR.ta1.M" "AMR.ta2.M" "AMR.ta3.M"
2003 Jul 01
2
strange error message
Hi, there I have a loop that is producing data, but is also generating an error message that I can't understand. Here's the loop and the error message: > bio<-matrix(NA, ncol=9, nrow=366) > W<-NULL > M<- length(Day) #number of days iterated > > for (i in 1:M) + { + + + if (Day[i]==1) W[i] <- Wo else W[i] <- (W[i-1]+(Gr[i]/Ef)) + + + C<-
2003 Jul 01
1
Creating a loop that works....
Hi there, First off, thanks to everyone who has helped me so far. Sorry to keep pestering you all. I'm including my code here, and I will comment down it where it is that I am having problems figuring out how to write this damn thing. > temper <- scan("temp2.dat", na.strings = ".", list(Day=0, Temp=0)) Read 366 records > > Day <- temper$Day ;
2009 Aug 14
1
[PATCH libguestfs] build: avoid "make sytnax-check" failure
FYI, just pushed: >From 322ff984a39d53422b772bfeb8f69e7c648da8c0 Mon Sep 17 00:00:00 2001 From: Jim Meyering <meyering at redhat.com> Date: Fri, 14 Aug 2009 21:01:48 +0200 Subject: [PATCH libguestfs] build: avoid "make sytnax-check" failure * daemon/configure.ac: Change a leading TAB to 8 spaces. --- daemon/configure.ac | 2 +- 1 files changed, 1 insertions(+), 1
2008 Jul 14
0
Problem with vampire: bloodlines
Hello, i've ubuntu 8.04 (32bit) with wine 1.0-rc5. I've installed without problem vampire: bloodlines and it works fine in the menu, but when the game starts the audio works well but the video is all "orange". As graphic card i've a ati moblitiy x1600 with official driver (installed using envyNG) and before start the game i've used compiz-switch to disable compiz. the
2006 Apr 08
5
What is the h for?
In the "Agile Web Development with Rails" book it runs through making an example application, a shopping cart. In one of the views files, there is one line of code I dont understand (below), I dont know what the "h" is for, also I took the h out, and it did not affect the application (as far as i could see). <%= h(product.title) %> Can anyone shed some light on this
2010 Feb 26
2
Fwd: how to install rmagick on fedora please help urgent
hi all i want to run project at local system ..see this i m getting some error http://pastie.org/843746 and when i run server http://pastie.org/843748 plz tell me how to install rmagick on fedora Regards, Shyam +91-9716-18-9650 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2008 Feb 19
2
Confidence Interval for SMR
Hello, I am looking for a function which allows to calculate the confidence interval for a standard mortality ratio. I do have vectors with the number of observed and expected death. Has anybody a hint where to look? Best, Stefan
2003 Jul 14
2
problem with coding for 'optim' in R
Hi, there I am a graduate student new to coding in S who is hitting a bit of a wall at present using an "optim" function. I am running into some troubles, and was hoping someone might be able to recognize where I am going wrong. As background: I have constructed a loop that carries out a 365-day calculation for a mass-balance model. Basically, the model depends on 2 variables (p,
2007 Mar 21
6
Converting Rails app to desktop with XUL?
Hi, We are thinking about choosing Rails as our weapon of choice for our next project, which is basically a text editor on steroids, whith some functionality that need an Internet connection. In the first step we are going to develop it as a plain web app (AJAX-ified, yay!), however, in the next step we would like to port some of the functionality (such as the editor) to a desktop app (which can
2006 May 05
2
how to get image properties
Hi friends in PHP there is a direct function GetImageSize(), with it I can easily determine the dimentions of an image file. How can I do in RoR. Please help me out Thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060505/13ba1640/attachment.html
2020 Nov 03
0
[patch V3 22/37] highmem: High implementation details and document API
Move the gory details of kmap & al into a private header and only document the interfaces which are usable by drivers. Signed-off-by: Thomas Gleixner <tglx at linutronix.de> --- V3: New patch --- include/linux/highmem-internal.h | 174 +++++++++++++++++++++++++ include/linux/highmem.h | 270 ++++++++++++++------------------------- mm/highmem.c | 11 - 3
2006 Jul 24
2
Flash problem with RoR? missed something?
I have tried to put a flash movie inside of my RoR page and it shows up with nothing on IEPC. It does very well on every other type of browser but does not work with IEPC. I made a folder - "flash" in my public directory and have had the one instance of it point there. Thus my flash directory is www.rails-app.com/flash/flash.swf Is there anything that anyone knows to help out?