Displaying 20 results from an estimated 30000 matches similar to: "how to use SELECT....RAND() the rails way?"
2006 Aug 06
10
editor recommendation
Hello lsit,
I''am new to rails (about 2 hours) and after the first lines of code
I must say: Great! I love it!
Can someone recommend me a editor? I run Ubuntu Dapper.
Th?ngs
--
Jochen Kaechelin, fvgi242ss, wlanhacking.de
http://mail.wlanhacking.de/cgi-bin/mailman/listinfo
http://www.gissmoh.de - Mein sonstiges Leben!!
2006 Aug 18
3
RoR logo on own webpage
Hello,
are there any restrictions in using the RoR logo on my own homepage?
Something like: powered by Ruby on Rails ..__logo__..
--
Jochen
2013 Feb 01
1
the word "rand" comes up in console after typing a command
Hi list,
I keep on getting this "rand" word come up on my console. It shows up
maybe one out 20 times I type in R console. I don't understand why it is
coming up?
> mean(variables)
[1] -0.41
rand
rand
rand
rand
rand
rand
rand
rand
rand
rand
rand
rand
rand
rand
rand> mean(variables)
> rm(list=ls())
rand
rand
rand
rand
rand
rand
rand
rand
rand
rand
rand
rand
rand
2014 Nov 02
1
Building R package: “Found 'rand', possibly from 'rand' (C)” NOTE when checking package
I am building a package that makes a simple visualization. A part of
the code is in C++, and utilizes the functions srand() and rand() for
purposes not related to statistics (introducing random noise in the
visualization). The package compiles without problems on my
workstation(s), but when I submitted it to the winbuilder service, I
got the following weird message:
* checking compiled code ...
2012 Dec 01
2
[LLVMdev] Use rand_r() instead of non-reentrant thread-unsafe rand() in GetRandomNumber()
Dear all,
In our LLVM-based compiler pipeline a major part of code generation is
taken into application runtime. One side-effect of this organization is a
need to be very careful about using code that might diverge application
state. And we found that simple generation of temporary files over LLVM
APIs introduces random noise into the program result. There reason is that
LLVM's
2011 May 03
1
Revised: Portable OpenSSH security advisory: portable-keysign-rand-helper.adv
OpenSSH Security Advisory: portable-keysign-rand-helper.adv
This document may be found at:
http://www.openssh.com/txt/portable-keysign-rand-helper.adv
1. Vulnerability
Portable OpenSSH's ssh-keysign utility may allow unauthorised
local access to host keys on platforms if ssh-rand-helper is
used.
2. Affected configurations
Portable OpenSSH prior to version
2012 Dec 01
0
[LLVMdev] Use rand_r() instead of non-reentrant thread-unsafe rand() in GetRandomNumber()
If we're keeping the state locally now, perhaps we should store it in a
per-thread variable. I know rand() isn't thread safe to begin with, but it
seems like rand_r() can be since it should keep no external state.
On Sat, Dec 1, 2012 at 11:17 AM, Dmitry Mikushin <dmitry at kernelgen.org>wrote:
> Dear all,
>
> In our LLVM-based compiler pipeline a major part of code
2003 Apr 07
4
4-stable and C rand()?
Hi everyone, sorry if this has been answered before - I caught a whiff of a
discussion about c's rand() function in a mailing list archive, but couldn't
find a definitive answer.
I'm trying to do a simple CS project on my machine where I generate two sets
of values in parallel using rand() and am running into infinite loops of
values, and couldn't figure out why, so I wrote a test
2012 Dec 01
2
[LLVMdev] Use rand_r() instead of non-reentrant thread-unsafe rand() in GetRandomNumber()
Agreed, done.
One thing I'm not sure about is this statement in docs:
POSIX.1-2008 marks *rand_r*() as obsolete.
- And... what is the replacement?
2012/12/1 Justin Holewinski <justin.holewinski at gmail.com>
> If we're keeping the state locally now, perhaps we should store it in a
> per-thread variable. I know rand() isn't thread safe to begin with, but it
> seems
2002 Mar 08
2
Cannot run OpenSSH 3.1p1 on Solaris 8, Irix 6.5.14, Irix 6.5.4, SunOS 4.1.3_U1 - ssh-rand-helper child produced insufficient data
I have successfully compiled OpenSSH 3.1p1 for the following systems:
Solaris 8
Solaris 7
Irix 6.5.14
Irix 6.5.4
SunOS 4.1.3_U1
Unfortunately, the new sshd is not working on any of the above systems
with the exception of Solaris 7. (I then put the Solaris 7 executables
on Solaris 8, and they worked there too.)
This is the error I'm getting:
$ /usr/etc/sshd -D -d -d -d
debug3: Seeing PRNG
2012 Dec 01
0
[LLVMdev] Use rand_r() instead of non-reentrant thread-unsafe rand() in GetRandomNumber()
Correcting my patch, reg. __thread stuff I'm not very familiar with.
- D.
2012/12/1 Dmitry Mikushin <dmitry at kernelgen.org>
> Agreed, done.
>
> One thing I'm not sure about is this statement in docs:
>
> POSIX.1-2008 marks *rand_r*() as obsolete.
>
> - And... what is the replacement?
>
>
> 2012/12/1 Justin Holewinski <justin.holewinski at
2002 Apr 01
4
path to find ssh-rand-helper
Before I actually implement the small changes needed to allow the
location of ssh-rand-helper to be specified in the config file, I'd
like to check that in doing so I won't be opening up a huge security
hole.
My brief reading of the code suggests that in entropy.c:seed_rng() the
ssh-rand-helper is run as the original uid (for binaries which were
setuid in the first place of course), so I
2006 Jan 08
1
Clustering and Rand Index - VS-KM
Dear WizaRds,
I have been trying to compute the adjusted Rand index as by Hubert/
Arabie, and could not correctly approach how to define a partition
object as in my last request yesterday.
With package fpc I try to work around the problem, using my original data:
mat <- matrix( c(6,7,8,2,3,4,12,14,14, 14,15,13,3,1,2,3,4,2,
15,3,10,5,11,7,13,6,1, 15,4,10,6,12,8,12,7,1), ncol=9, byrow=T )
2003 Aug 25
3
[Bug 630] built-in ssh-rand-helper
http://bugzilla.mindrot.org/show_bug.cgi?id=630
Summary: built-in ssh-rand-helper
Product: Portable OpenSSH
Version: -current
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Miscellaneous
AssignedTo: openssh-bugs at mindrot.org
ReportedBy: aet at cc.hut.fi
2002 Jan 22
4
ssh-rand-helper
Now that ssh-rand-helper has been segregated into a separate program,
I'd like to revisit an old question about its entropy gathering.
- would it be desirable to make it possible for ssh-rand-helper to fall
back to external commands if PRNGD cannot be reached, instead of
choosing one or the other at compile time?
- When using PRNGD, the program gets 48 bytes of entropy from PRNGD,
2007 Jun 18
1
[PATCH] incorrect #include in ssh-rand-helper.c
--- ssh-rand-helper.c.orig Mon Jun 18 16:48:13 2007
+++ ssh-rand-helper.c Mon Jun 18 16:47:32 2007
@@ -31,7 +31,7 @@
#include <sys/socket.h>
#include <stdarg.h>
-#include <stddef.h>
+#include <string.h>
#include <netinet/in.h>
#include <arpa/inet.h>
Tony.
--
f.a.n.finch <dot at dotat.at> http://dotat.at/
SHANNON ROCKALL: EAST OR NORTHEAST
2006 Jan 07
1
Clustering and Rand Index
Dear WizaRds,
I am trying to compute the (adjusted) Rand Index in order to comprehend
the variable selection heuristic (VS-KM) according to Brusco/ Cradit
2001 (Psychometrika 66 No.2 p.249-270, 2001).
Unfortunately, I am unable to correctly use
cl_ensemble and cl_agreement (package: clue). Here is what I am trying
to do:
library(clue)
## Let p1..p4 be four partitions of the kind
2003 Jun 22
16
[Bug 600] compilation of ssh-askpass or ssh-rand-helper fails on NCR MP-RAS v3.02
http://bugzilla.mindrot.org/show_bug.cgi?id=600
Summary: compilation of ssh-askpass or ssh-rand-helper fails on
NCR MP-RAS v3.02
Product: Portable OpenSSH
Version: -current
Platform: ix86
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Build system
2008 Oct 30
2
Rails console
I tried to create an addition to Enumerable called choose_randomly
that picks a random element from the Enumerable object. However when I
define it and execute the code rand complains about the wrong number
of arguments. Below is a capture of the ./script/console session.
farrel@nicodemus ~/Work/GreenGreen/Code/green_green_client_application
$ ./script/console
Loading development environment
2008 Dec 04
2
Ruby fun with MegaMillions
I thought I would write a lottery number generator since I have not had any
luck winning the big jackpot - http://megamillions.com/. So far, after over
1.2 million tries, I still have not hit all the numbers from yesterday: 2,
17, 22, 32, 51, 35 (last one is the mega ball).
Fun little project that and I thought others would be interested. Let me
know if you have a cleaner implementation in mind.