search for: gamble

Displaying 20 results from an estimated 420 matches for "gamble".

2004 Jun 29
0
gambling problem
...asic game as stated above * COUNTER - this function calculates the number of times each of the various payoff combinations occur * FORMATCOMBSPDF - this function creates a table of the simulated pdf of the payoff combinations * RUNDIST - allows one to generate a distribution of a gamblers total payoff after playing the game 150 times. #################################################################################### #GAMBLING- this function simulates the basic game as stated above GAMBLING<-function(nsim) { #denote hearts =1,diamonds =2,spades =3,clubs =4, joker=5, ca...
2006 Mar 18
9
Using <%= text_field %> within partials is problematic
All, Thanks for any help in advance. I have what I think is a very straightforward partial template and I can''t figure out why a text_field call within it doesn''t work. Here is my calling template: lists.rhtml <div id="target_lists"> <%= render(:partial => "target_lists", :collection => @target_lists) %> </div> In the partial
2007 Mar 19
0
Everything you need to beat online gambling...
50ForMe.com has a new offer where they not only give you software that tells you your odds and how to bet, and E-books about online gambling strategies but they also give you $75 to start playing with! It's the best offer possible for a new player, who's timid about online gambling. Go to www.50ForMe.com for more details (it's really easy)
2006 Jul 10
8
Setup new data in the test database _after_ unit test runs
All, I want to run automated unit tests as part of my build. I am building to my test environment. Upon successful completion of all of my unit tests, I would then like to load some data (using a fixture, I imagine) into my test database that will act as fresh "system test" data for my users to play with. What is the best way to "load the standard system test/user acceptance
2006 May 30
5
Implementing HTTPS with WEBrick?
All, I would like to test some secure pages that I''m developing in my WEBrick-based development environment. I''ve done some research and it appears that I need to create a new command that will start a HTTPS based WEBrick server. Is this correct? Also, it appears that the https.rb module is not included with the WEBrick bundled in Rails. So, I will need to go get that
2006 Jul 03
4
text_field doesn''t call overridden ActiveRecord getters
All, In a template, I have <%= text_field :target_list, :DateReceived, { :title => ''uploaded_at'', :class => ''target_list_info'', :disabled => ''true'' } %> Here is the DateReceived method on my
2002 Feb 21
2
hpa-tftp with xinetd
...user = root log_on_success += USERID log_on_failure += USERID server = /usr/sbin/hpa-tftpd server_args = -s /tftpboot disable = no } ============================ Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948
2006 Jul 13
5
Generic page element display initializer in a layout?
All, I''ve run into a snag. I need to handle the display of elements on my page and I want to use my Javascript event handlers on page load. However, my BODY tag is trapped in my generic layout. I''m thinking that I can put an onLoad on the BODY tag that will just call a Javascript method called initializePage() and then provide this initializePage() call in my specific page
2006 Jul 10
7
What is has_many :through really buying you over HABTM?
So having just learned how to do has_many :through as opposed to HABTM, and then, being concerned that I wouldn''t get it to work, I started thinking about these two approaches. It seems to me that the _only_ problem that the HM:T (has_many :through) approach solves that HABTM doesn''t is the issue of the potential collision of id columns between your join table and one of
2006 Aug 09
10
Is there QA on Rails gem releases?
The ActionMailer/ActionPack gem release is still screwed up. Does someone test the gem releases to ensure that they work? Just an idea. Wes -- Posted via http://www.ruby-forum.com/.
2006 Jul 05
7
HABTM join table has an "ID" column - is this an issue?
All, I''m building model objects for existing tables that I cannot modify. In AWDWR, Dave says "Note that our join table has no id column...The second reason for not including an id column in the join table is that AR automatically includes all columns from the join tables when accessing rows using it. If the join table included a column called id, its id would overwrite the id
2006 Mar 22
6
Relatively easy HTML/XML parsing utilities?
Anyone know of any Ruby modules which can be used to parse an HTML page ? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2006 Apr 24
3
Channel Restart and Dropped calls
We are using AAH with Asterisk 1.2.7.1 with a TE405P as listed below. We are getting frequent restarts on the spans which lead to dropped calls. I have pasted some hopefully pertinent information below -- anyone have any clues that might help? Thanks Next line is repeated throughout messages, going through every channel in every connected span. asterisk/full.1:Apr 24 01:15:25 VERBOSE[4196]
2006 Jun 27
5
Can''t call public application.rb method from ERb template
All, I have a left navigation partial that I want to dynamically generate CSS classes for based on the current controller action. In my ERb template, I have <DIV class="<%= get_menu_display_style(''login_form'') %>"> In application.rb, I have the method get_menu_display_style defined as: public def get_menu_display_style(action_requested)
2006 Mar 14
8
The RoR equivalent of out.write() in JSP?
All, In JSP, I can output strings in the Web page by either <%= foo %> //foo is a string or returns a string or <% out.write("test") %> //write directly to the output stream. What is the method of "writing to the output stream" in RoR? Basically, what is the equivalent of out.write()? I have an if then statement that I want to put around a call to h
2006 May 25
5
Setting a global before_filter action in application.rb
Can you set a global before_filter action in application.rb? So, for example, you could control authentication for all of the controllers in an app.? Obviously, you would need a way to reference actions by controller within this "global before-filter". Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2006 Mar 14
5
Maddening library loading problem
Hi everyone. I recently wrote a nice module that I want to use in my rails app. It consists of a few files in a directory that I have places in the lib directory. It looks like this: /lib/KMLTools/foo.rb, bar.rb, baz.rb Some of these files load each other and I finally got those to work by using the File.dirname(__FILE__) trick. When I simply require the file into my controller, everything is
2006 Apr 10
2
Capistrano with CVS repository doesn''t seem to work
...ng command Looks to me like this command is probably successfully setting a variable named CVS_RSH and that''s pretty much it. The actual CVS command looks right but I don''t think that it ever gets executed. I replaced user, pwd, and host for their real values :). Thanks, Wes Gamble -- Posted via http://www.ruby-forum.com/.
2006 Jul 14
7
Form validation - keepin correct fields displayed on refresh
All, I''m finally doing my first real form in Rails - the model object that I''m entering information for has 8 validations so far. If I type in good values for all the fields but one, I get the pretty validation, and the nice field highlighting, but all of the fields are cleared, forcing me to retype all of that info. That is a big drag. Is there a standard way to get the
2006 May 01
4
URL encoding in Rails?
Simple question: How does one do URL encoding in Ruby/Rails? Thanks, Wes -- Posted via http://www.ruby-forum.com/.