Displaying 20 results from an estimated 20 matches for "raindrops".
2011 Jun 16
7
[PATCH] replace fchmod()-based heartbeat with raindrops
...o longer waste an extra file descriptor per
worker process in the master. Now there''s no need to set a
higher file descriptor limit for systems running >= 1024
workers.
---
I just pushed this out to git://bogomips.org/unicorn.git and it''ll
be in Unicorn 4.x.
The subset of raindrops used by Unicorn should work on all machines
with mmap(2) + MAP_ANON/MAP_ANONYMOUS support, so *BSDs shouldn''t be
left out.
Obviously the Linux-only INET_DIAG/TCP_INFO statistics support in
raindrops won''t ever be a requirement in Unicorn.
If you''re not using gcc 4+...
2011 Feb 06
6
Request queue length
Is there a way to get the number of requests that are currently awaiting
to be executed by my rails app by unicorn?
Or there is no queue in unicorn and I should look for this information
somewhere in nginx or other front-end server?
Couldn''t find much information about this topic, so decided to ask here
first.
2012 Aug 22
1
strange behaviour when sourcing inside function
Dear R community,
I encounter a problem that is counterintuitive to my understanding of
the documentation of source and the "local" argument of that function.
With the following code, I would expect the content of "test.R" to be
evaluated inside the environment of the function "test". This, however,
does not seem to be the case as the object "a" can
2012 Aug 22
1
Plot label axis with expression
Hi all,
I need help with axis in plot.
I want to edit y axis label of my plot. My data is like:
x <- c(100,50,10,1,0.1,0.05,0.001)
plot(log(x))
axTicks(2) # Label of y axis
[1] -6 -4 -2 0 2 4
I'd like that y axis label was like: e^-6, e^-4, etc. (with text "e"
superscript -6, -4, etc.) I try to use expression(), but don't work.
plot(log(x), yaxt="n")
2012 Aug 24
1
Regular expressions: stuck again...
Hi,
I'm currently reworking a report, originating from a MS Access database, but
should be implemented in R.
Now I'm facing the task to convert a lot of queries to postgreSQL.
What I want to do is make a function which takes the MS Access query as an
argument and returns the pgSQL version.
So:
SELECT [public_tblFiche].[Fichenr], [public_tblArtnr].[Artnr] FROM
[public_tblFiche],
2012 Aug 24
1
RJSONIO/rjson maximum depth?
Hi All,
has anyone run into maximum depth of nested JSON arrays in either rjson or
RJSONIO ?
I seem to be able to get up to 10 depth levels without problem, but
crossing over to 11 either causes an error or fails to load the nodes
properly.
with RJSONIO I tried:
a = fromJSON('data/myJSON.json', depth=1000)
but I still get this error:
Error in fromJSON(content, handler, default.size,
2012 Aug 25
2
sourcecode for the balloonplot function from the gplots package
Hi,
I want to take a look at the sourcecode for balloonplot. I would appreciate it if I could get help on overcoming the following problem :
> methods(balloonplot)
[1] balloonplot.default* balloonplot.table* ?
? ?Non-visible functions are asterisked
> balloonplot.default
Error: object 'balloonplot.default' not found
>
How do I access the non-visible functions?
Thanks,
Ravi??
2006 Apr 07
1
Patch for water plugin to make time between rain-drops adjustable
Hello,
I love the work that is being done with compiz! I have made a patch for
water.c that makes the time between rain-drops adjustable using gconf.
This way you can leave the plug-in running and just have pleasant drops
every now and then instead of the rainstorm that is hard-coded in now
(which is still fun now and then!).
The gconf value is in ms (1/1000 of a second). Suggestions for
2012 Dec 19
1
CentOS AWS AMIs?
Hi list,
I've noticed that instance-backed AMIs no longer seem to exist for the
'official' CentOS images, though the EBS ones are fine..
Looking at the wiki (http://wiki.centos.org/Cloud/AWS), the AMIs listed
on marketplace are slightly newer than what's listed on the wiki, so
just wondering if something got overlooked after the last build?
Cheers,
--
Richard Clark
richard at
2012 Aug 21
2
Entering a table
I'm trying to enter a frequency table manually so that I can run a
goodness of fit test (I only have the frequencies, I don't have the
raw data).
So for example, let's say I want to re-create the HorseKicks table:
library(vcd)
data(HorseKicks)
str(HorseKicks)
'table' int [1:5(1d)] 109 65 22 3 1
- attr(*, "dimnames")=List of 1
..$ nDeaths: chr [1:5]
2013 Jan 24
2
SIGSEGV at shutdown (was: Re: your mail)
...xt/parser/parser.so
vendor/bundle/ruby/1.9.1/gems/json-1.7.4/lib/json/ext/generator.so
vendor/bundle/ruby/1.9.1/gems/json-1.7.4/lib/json/ext/parser.so
vendor/bundle/ruby/1.9.1/gems/kgio-2.7.4/ext/kgio/kgio_ext.so
vendor/bundle/ruby/1.9.1/gems/kgio-2.7.4/lib/kgio_ext.so
vendor/bundle/ruby/1.9.1/gems/raindrops-0.10.0/ext/raindrops/raindrops_ext.so
vendor/bundle/ruby/1.9.1/gems/raindrops-0.10.0/lib/raindrops_ext.so
vendor/bundle/ruby/1.9.1/gems/unicorn-4.3.1/ext/unicorn_http/unicorn_http.so
vendor/bundle/ruby/1.9.1/gems/unicorn-4.3.1/lib/unicorn_http.so
vendor/bundle/ruby/1.9.1/gems/json-1.7.3/ext/json/ex...
2012 Nov 28
1
Unable to configure Puppet-dashboard using opensource package
...ons/1.9.3-p194/lib/ruby/1.9.1/rubygems/source_index.rb:91.
-------------------------
# ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
------------------
rack (1.4.1, 1.3.5, 1.1.0)
rack-cache (1.2)
rack-openid (1.3.1)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (3.2.6)
railties (3.2.6)
raindrops (0.10.0)
rake (0.9.2.2)
rdoc (3.12, 3.9.4)
ruby-openid (2.1.8)
rubygems-update (1.6.2)
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/qzczRWW_O6YJ....
2012 Aug 21
7
Regular Expressions in grep
Dear r-help members,
I have a number in the form of a string, say:
a<-"-01020.909200"
I'd like to extract "1020." as well as ".9092"
Front<-grep(pattern="[1-9]+[0-9]*\\.", value=TRUE, x=a, fixed=FALSE)
End<-grep(pattern="\\.[0-9]*[1-9]+", value=TRUE, x=a, fixed=FALSE)
However, both strings give "-01020.909200", exactly
2013 Dec 09
2
[PATCH] rework master-to-worker signaling to use a pipe
...lib/unicorn/worker.rb b/lib/unicorn/worker.rb
index 1fb6a4a..e74a1c9 100644
--- a/lib/unicorn/worker.rb
+++ b/lib/unicorn/worker.rb
@@ -12,6 +12,7 @@ class Unicorn::Worker
# :stopdoc:
attr_accessor :nr, :switched
attr_writer :tmp
+ attr_reader :to_io # IO.select-compatible
PER_DROP = Raindrops::PAGE_SIZE / Raindrops::SIZE
DROPS = []
@@ -23,6 +24,66 @@ class Unicorn::Worker
@raindrop[@offset] = 0
@nr = nr
@tmp = @switched = false
+ @to_io, @master = Unicorn.pipe
+ end
+
+ def atfork_child # :nodoc:
+ # we _must_ close in child, parent just holds this open to sign...
2006 May 03
11
Curse words
Hello, I just had a problem with someone cusing on my rail app now is
there somthing like Red Cloth that I can use to disable ''dirty words''
--
Posted via http://www.ruby-forum.com/.
2012 Aug 28
5
return first index for each unique value in a vector
I would like to efficiently find the first index of each unique value in a
very large vector.
For example, if I have a vector
A<-c(9,2,9,5)
I would like to return not only the unique values (2,5,9) but also their
first indices (2,4,1).
I tried using a for loop with which(A==unique(A)[i])[1] to find the first
index of each unique value but it is very slow.
What I am trying to do is easily
2012 Aug 17
3
Error: level sets of factors are different?
Why the error is coming? even though the length of outcome.new$compkey and outcome.new$armkey were exactly same.
Can anyone help?
setwd("D:/AZ")
library("RODBC")
cdb_cnct <- odbcConnectExcel("AZIF_DC_GVK_NSCLC_MSALL_287papers_02072012_141450_v1_4.xls")
outcomes <- sqlFetch(cdb_cnct, "Outcomes_info")
odbcClose(cdb_cnct)
rm(cdb_cnct)
2012 Aug 20
7
relating data in two data frames
Hi,
My data.frame "A" has FID like this
FID
a
a
b
b
b
c
c
d
d
d
d
Now my second data.frame "B" has age value for a, b, c, d like
FID Age
a 5
b 7
c 9
d 3
How can search for the Age column in "B" and replace the values in "A" so that my new "A" looks like this
FID Age
a 5
a 5
b 7
b 7
b 7
2012 Aug 24
6
updating elements of a vector sequentially - is there a faster way?
I would like to know whether there is a faster way to do the below
operation (updating vec1).
My objective is to update the elements of a vector (vec1), where a
particular element i is dependent on the previous one. I need to do this on
vectors that are 1 million or longer and need to repeat that process
several hundred times. The for loop works but is slow. If there is a faster
way, please let
2006 Feb 28
6
Threading & database connections.
Hello all.
Bear with me, there is a Mongrel question in here ;)
I have been having some fun with database connections and ruby. Long story ( Found here: http://www.ruby-forum.com/topic/56047 ) short: I was making far too many in my application. I eventually fixed this (I thought) and when running webrick there were only ever two connections (One to each database) no matter how many users, this