Displaying 20 results from an estimated 5000 matches similar to: "One question on select tag"
2009 Mar 15
2
How can I add TimeoutHandler to EvenmentMachine
Hi, list
Now I am coding for one non-blocking httpclient based on event-machine, and
it seems the client will hang for 50 seconds if the destination is
unreachable. My questions are
1. How can I short the timeout? I had tried
conn.set_comm_inactivity_timeout(5), but it didn''t work
2. How can I add TimeoutHandler to the connection?
Thanks!
/Jack
--
Jack Tang
Software
2007 Apr 02
2
redirect_to an uncertain hash
I am trying to deal with a redirection based upon what to do after a
session has expired. I take the params hash and stuff it into a new
session as part of the new login and then after login, I want to
redirect to this hash as though they were params again...
Thus I start by setting
session[:direct_to] = @params
And after I login, I want to redirect based upon the values in
2007 Oct 18
4
Polymorphic Association?
Hi there-
I''m a newbie to this board, RoR, and web development in general. So
please forgive me if this is in the wrong place or if the solution is
really simple...
I''m trying to conceptualize the relationships between a series of
models for a page creation function. What I''d like is to have a
Content Page which consists of a series of Content Blocks. The
Content
2007 Oct 16
2
Is Services a reserved word?
I want to have a controller/model called
services_controller.rb/service.rb
all went well, but then I tried to get a ''list'' view and I got this
error...
Message
uninitialized constant
ServicesController::Services
Location
/services/list
Action
list
Controller
services
which worries me because it doesn''t say
ServicesController::ApplicationController
must I rename?
;-(
2008 Aug 24
3
Igraph library: How to calculate APSP (shortest path matrix) matrix for a subset list of nodes.
Dear R Users,
I have a network of 25000 total nodes and a list of 500 node which is a
subset of all nodes. Now I want to calculate the APSP (all pair shortest
path) matrix only for these 500 nodes.
I would appreciate any help.
Thanks in advance
Dinesh
--
Dinesh Kumar Barupal
Research Associate
Metabolomics Fiehn Lab
UCD Genome Center
451 East Health Science Drive
GBSF Builidng
University of
2011 Dec 03
1
Reading multiple text files and then combining into a dataframe
I have a multiple text files, separated by a single space, that I need to
combine into a single data.frame. Below is the track I'm on using
list.files to capture the names of the files and then lapply with
read.table. But I run into problems making a usable dataframe out of the
data.
#Creating example data in similar format to data I have
sub <- rep(1,10)
trial <- seq(1,10,1)
size
2008 Feb 09
2
shortest distance between two point pattern
Um texto embutido e sem conjunto de caracteres especificado associado...
Nome: n?o dispon?vel
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20080208/bf7b4696/attachment.pl
2006 Jan 09
2
Using SQL to get a whole record when using aggregate functions
I have a table with some data structured something like this:
book
----
title (varchar)
pages (int)
completed_on (date)
While I can find the shortest book completed in each year with
something like this:
select min( pages ), year from book group by year
I would also like to get the title of the shortest book in each year.
Is there any way to do this by modifying the previous query to pull
2022 Dec 28
2
[REGRESSION] GM20B probe fails after commit 2541626cfb79
Hello,
Commit 2541626cfb79 breaks GM20B probe with
the following kernel log:
[ 2.153892] ------------[ cut here ]------------
[ 2.153897] WARNING: CPU: 1 PID: 36 at drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgf100.c:273 gf100_vmm_valid+0x2c4/0x390
[ 2.153916] Modules linked in:
[ 2.153922] CPU: 1 PID: 36 Comm: kworker/u8:1 Not tainted 6.1.0+ #1
[ 2.153929] Hardware name: Google
2017 Jun 20
2
Problem with shortestPath in igraph and qgraph
hello,
I have a graph and i use qgraph package to calculate centrality parameters.
Now I want to know the maximum value of shortest path for each vertex with
discarding the Inf value in short pathes. For this I use the
ShortestPathLengths of centrality function in qgraph. but when I want to
get the maximum the result is wrong. here is my code:
cen<-centrality(Q)
2006 May 22
6
which kind of deployment has the best performance
In the following deployment of web app on ONE pc-based server,running
linux,which can support the most amount of concurrent users as well as
the shortest latency?
1 apache+mongrel
2 apache+mongrel_cluster
3 lighthttpd+mongrel
4 lighthttpd+mongrel_cluster
5 lighthttpd+fastcgi
Thanks
charlie
--
Posted via http://www.ruby-forum.com/.
2011 Aug 05
1
matrix into vector with vertex names
Using Igraph, I create shortest paths, then convert the matrix into
three column vectors - "vertex1", "vertex2", "shortestpath" - as the
code below shows.
#code for generating shortest path matrix and creating a 3 columns
from an igraph graph object "y"
y_s<-shortest.paths(y, weights = NULL)
y_s <- melt(y_s)[melt(upper.tri(y_s))$value,] #Step 2: this
2007 Sep 06
1
computing distance in miles or km between 2 street addresses
Hi R-ers:
I need to compute the distance between 2 street addresses in either km
or miles. I do not care if the distance is a "shortest driving route" or
if it is "as the crow flies."
Does anybody know how to do this? Can it be done in R? I have thousands
of addresses, so I think that Mapquest is out of the question!
Please rely to: philipsmith at alumni.albany.edu
Thank
2007 Aug 06
0
[LLVMdev] Spillers
Hi, David.
Spill intervals must be precolored because they can't be spilled once more.
They are the shortest intervals precisely over each def/use of the original
interval. That is why they also have their weights set to #INF.
Imagine that on a second iteration allocation algorithm figures out that
some spilled interval can't be assigned a physical register. Allocator can't
spill it
2007 Aug 06
4
[LLVMdev] Spillers
On Monday 06 August 2007 12:15, Anton Vayvod wrote:
> Spill intervals must be precolored because they can't be spilled once more.
> They are the shortest intervals precisely over each def/use of the original
> interval. That is why they also have their weights set to #INF.
Yes, that's true. But I wonder if we shouldn't be smarter about which
register we pick to color it.
2003 Sep 26
3
An interesting call path observation..
This is not really a problem just something I noticed in my testing..
When two or more Asterisk servers are connected by IAX2 trunks it does
not make use of any "shortest path" type system.. (maybe this is still
planned somwhere down the line, but may come in handy to those who have
multi asterisk installations)
Here is the setup..
UA1--- Asterisk1----[IAX2 Trunk]---Asterisk2---UA2
2007 Oct 25
1
find - group - postgres
I am not sure that this is entirely a rails question as I am trying to
run the command in postgres and I am getting the same error...
controller code...
@client_slot_count = ClientSlotsDaily.find(:all,
:conditions => ["created_at > ? AND created_at < ? AND
facility_id = ? AND client_id IS NOT NULL",
starting_date, ending_date, @facility.id],
2017 Jun 21
0
Problem with shortestPath in igraph and qgraph
Hard to follow data analysis without data. Try making your example reproducible [1][2][3] and post in plain text (a setting in your emailer). Read the Posting Guide mentioned in the footer to avoid other posting pitfalls.
[1] http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
[2] http://adv-r.had.co.nz/Reproducibility.html
[3]
2020 Jul 02
3
[PATCH 5/8] powerpc/64s: implement queued spinlocks and rwlocks
On Thu, Jul 02, 2020 at 08:25:43PM +1000, Nicholas Piggin wrote:
> Excerpts from Will Deacon's message of July 2, 2020 6:02 pm:
> > On Thu, Jul 02, 2020 at 05:48:36PM +1000, Nicholas Piggin wrote:
> >> diff --git a/arch/powerpc/include/asm/qspinlock.h b/arch/powerpc/include/asm/qspinlock.h
> >> new file mode 100644
> >> index 000000000000..f84da77b6bb7
>
2020 Jul 02
3
[PATCH 5/8] powerpc/64s: implement queued spinlocks and rwlocks
On Thu, Jul 02, 2020 at 08:25:43PM +1000, Nicholas Piggin wrote:
> Excerpts from Will Deacon's message of July 2, 2020 6:02 pm:
> > On Thu, Jul 02, 2020 at 05:48:36PM +1000, Nicholas Piggin wrote:
> >> diff --git a/arch/powerpc/include/asm/qspinlock.h b/arch/powerpc/include/asm/qspinlock.h
> >> new file mode 100644
> >> index 000000000000..f84da77b6bb7
>