Displaying 20 results from an estimated 2000 matches similar to: "@oldbid = 0 why?"
2006 Jul 02
2
nil.- what the heck...
Okay first off here''s the error:
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.-
Here''s the code in the model:
def highest_bid
@bid = nil
@oldbid = 0
self.bids.each do |bid|
if @bid == nil
@bid = bid.max
else
if bid.max > @bid
@oldbid,@bid =
2010 Oct 04
3
Loop too slow for Bid calc - BUT cannot figure out how to do with matrix
Hi,
I am trying to create Bid/Ask for each second from a high volume stock and
the only way I have been able to solve this is using loops to create the
target matrix from the source tick data matrix. Looping is too slow and
not practical to use on multiple stocks. For example:
Bids Matrix (a real one is 400,000++ length):
Bid Time
10.03 11:05:03.124
10.04 11:05:03.348
10.05
2004 Feb 19
1
reshape direction=wide
Hello
I am reshaping a data.frame bids --> reshaped as shown below.
I thought this should be possible with a single invocation of
reshape, but the only way I came up with is reshaping subsets for each
keyword and then joining them together. Does anyone have an idea how to
solve this in a more elegant way? Efficiency is a concern as the datasets
are very large.
Is there a way to specify
2006 Oct 28
1
really strange problem - has to be logic but i can't find it
would someone be kind enough to paste the code below into an R session (
ir you
can paste it into a file and just source it ) and take a look at it ? I
must be doing something wrong but
i can't find it.
I start out with a zoo object that has 100 elements in it.
then, i only want to keep the rows in which the bid and the ask are both
grester than zero. ( maybe my logic is wrong there ? ).
2006 Nov 17
2
Data table in C
After getting one list done, I am now struggling to form a data frame in C.
I tried to do a list of lists which gives me :
$<NA>
$<NA>[[1]]
[1] "BID"
$<NA>[[2]]
[1] 0.6718
$<NA>[[3]]
[1] 3e+06
$<NA>
$<NA>[[1]]
[1] "BID"
$<NA>[[2]]
[1] 0.6717
$<NA>[[3]]
[1] 5e+06
$<NA>
$<NA>[[1]]
[1] "BID"
2006 Jul 03
0
Check if row already exists?
I''m working on a system that has a series od "bids" associated with
"posts". Vurrently when a bid is placed I have it creating a new row
each time in the "bids" table. The bids table has id, post_id, and
user_id.
The logic is to check to see if a bid already exists with a given
post_id and user_id. If it does, then just update the "amount"
2012 Jul 09
1
Using the effects package
I've been looking into the effects package and it seems to be a great tool
for plotting the probabilities of the
response variable by the predictors. However, I'm wonder if I can use the
effects package to plot the probabilities
on the y axis and one predictor on the x axis, with the curve having the
info for another predictor.
So let's say our response variable is win, a binary
2012 Mar 25
2
Weird POSIXct behaviour
Friends
I have an xts that I wish to access.
Browse[2]> DATA.ba[[p]]["2012-03-20 00:59:57","bid"]
bid
2012-03-20 00:59:57 1.4993
So far so good.
Now putting the index into a variable:
Browse[2]> Time
[1] "2012-03-20 00:59:57 NZDT"
Browse[2]> DATA.ba[[p]][Time, "bid"]
bid
Where has it gone?
Looking closer....
2005 Jun 25
2
observing a habtm association
Is there some way to observe when an association is added in a habtm
relationship?
I know I could turn the relationship into a model, but I don''t want to
give up using
:include in my finds...
joshua
2012 Aug 08
1
Calculating percentages across multiple columns
I have the following data and am trying to find the percentage of bid
values purchased for that price.
So let's say I have a bid of 5 and it's sold 2 times for $3 and $5. Since
the original bid was $5, the
percentage of times that that bid value results in a sold purchase AT that
specific bid level was
1/3 because of the three time where the bid was three, it ended up being
sold for $5
2012 Jul 05
2
Plotting the probability curve from a logit model with 10 predictors
I have a logit model with about 10 predictors and I am trying to plot the
probability curve for the model.
Y=1 = 1 / 1+e^-z where z=B0 + B1X1 + ... + BnXi
If the model had only one predictor, I know to do something like below.
mod1 = glm(factor(won) ~ as.numeric(bid), data=mydat,
family=binomial(link="logit"))
all.x <- expand.grid(won=unique(won), bid=unique(bid))
y.hat.new
2007 May 15
4
Feasibility Request
I have a ton of Nortel MICS/CICS phone systems and am looking for an easy way to integrate them.
Two questions arise:
1. Is it feasible to use asterisk as a Man in the Middle for a T1 PRI system? The idea is to intercept outbound calls from the Nortel PBX and redirect them via VoIP to another asterisk box at another branch transparently(thus saving the LD cost). Otherwise I'd pass
2011 May 11
1
Problems connecting to Virtualbox hypervisor using libvirt java binding
I am trying to connect to the virtualbox hypervisor through libvirt java
binding.
I am on Ubuntu 10.04 and I have installed libvirt-0.85, libvirt-java-0.4.6
and virtualbox-ose-dkms. I have configured libvirt project and its java
binding at Eclipse and the default test of the binding runs properly. When I
try to run a simple test in java with the connection:
conn = new
2006 Nov 21
1
Is there any way to know when a field is blank
I have many text files in the format below and in certain rare instances
such as below there can be nothing in one of the fields so
a double comma is written but I won't know this because I am reading in
many,many files sequentially.
# TEXT FILE
2004-02-10 00:01:31.00000,,105.60000000
2004-02-10 00:01:32.00001,,105.60000000
2004-02-10 00:01:45.00000,,105.60000000
2004-02-10
2006 Oct 28
1
update on my weird problem
as jim pointed out ( i think we were figuring this out simultaneously.
thanks a lot jim ), it looks it does have something to do with the
fact that it's a zoo object because below i consider two cases.
in the first case, fxdatab is a zoo object and i get the length of temp
to be 1.
in the second case, fxdatac is a matrix and the results in temp are
correct.
gabor : i really hate to bother
2006 Jul 01
3
Where to solicit bids on RoR project?
Where is the best place to solicit bids on a mid-size web app? (budget
~$15,000) What is the appropriate protocol for posting RoR RFPs?
Thanks!
Taylor
--
Posted via http://www.ruby-forum.com/.
2017 Dec 01
2
Using Scalar Evolution to Identify Expressions Evolving in terms of Loop induction variables
Hi,
I am using Scalar Evolution to extract access expressions (for load and store instructions) in terms of the loop induction variables.
I observe that the Scalar Evolution analysis is returning more expressions than I expect - including ones that are not defined
in terms of the loop induction variable. For instance in the following code:
for(unsigned long int bid = 0; bid < no_of_queries;
2010 Mar 08
2
Data.frame issue (pls help)
Hi:
I want to obtain a particular value from a data.frame. Following is my
dataframe:
> Quotes
BID ASK
Name
CT2 GOVT 99.92969 99.9375 CT2
TUM0 COMDTY 108.53125 108.5469 TUM0
CT5 GOVT 100.10156 100.1094 GT5
FVM0 COMDTY 115.56250 115.5703 FVM0
TYM0 COMDTY 116.93750 116.9531 TYM0
If I try to run: QuoteTUM0BID = Quotes[Quotes$Name %in%
2018 Mar 05
0
Interpret List Label as Date from Quantmod getOptionChain
On 5 March 2018 at 03:13, Sparks, John wrote:
| library(quantmod)
| #in fairness, I did not include this last time and my example was therefore not reproducible. Apologies to Bert and everyone else #for not following the posting guidelines.
| aapl_total<-getOptionChain("AAPL", NULL)>
|
| How could I then get the subset of the entire list which only has expiry dates in 2019, or
2012 Sep 15
4
how to view only readings of a selected data from a column while the other columns remain
Hi Friends
I am new here and have a problem
Year Market Winner BID
1 1990 ABC Apple 0.1260
2 1990 ABC Apple 0.1395
3 1990 EFG Pear 0.1350
4 1991 EFG Apple 0.1113
5 1991 EFG Orange 0.1094
For each year and separately for the two