search for: quiz

Displaying 20 results from an estimated 121 matches for "quiz".

Did you mean: quit
2006 Mar 15
8
Tags to ruby interface: What I am missing? (repost)
I offer my apologies in advance for the repost. On a list as busy as this, it is sometimes easy to get missed in the shuffle. I am trying to create, display and edit a referenced object''s text field on the same view as my root object. For example: ------------------------- Quiz: <<quiz.name>> Preamble: <<quiz.preamble_presentation.text>> Postamble: <<quiz.postamble_presentation.text>> [create][cancel] ------------------------- quiz.preamble_presentation references a Presentation object instance. The Presentation object contains a...
2006 Apr 02
2
"Quiz" site
Hi, I am thinking about how to best design a quiz site in RoR. I think it should be fairly easy, but have run into a wall. In the simplest form, the view would grab all of the questions for a particular quiz and display them (e.g. multiple choice, so 4 option buttons per question). However, I can''t figure out how to "mark"...
2006 Mar 14
1
I''m missing something obvious to a taglib programmer ...
I am trying to create, display and edit a referenced object''s text field on the same view as my root object. I have just about come to the conclusion that whoever invented of taglibs should be shot. quiz.preamble_presentation references a Presentation object instance. The Presentation object contains a property called text, among others. The generated form will display the ID of the presentation, but I cannot figure out for the life of me how to display/edit the contents of the text property of the...
2006 Mar 12
2
Ruby syntax question, I think ...
...lly mean"? I think I am missing a subtlety of Ruby syntax here, since the question_controller is actually trying to call the Question constructor. Can someone point out what I am missing please? Thanks in advance. question_controller: def new @question = Question.new(params[:parent_quiz]) end question.rb: def new (quiz) quiz = quiz end Application trace: /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1333:in `attributes='' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1188:in `initialize_without_callbacks...
2006 Mar 09
2
Newbie question: How to represent parent-child denormalization
...pment. My idea of a perfect screen is plain white that is sparsely populated with black text with a single font and no effects. The default stylesheets that rails generates are quite a bit more elaborate than I would choose to build :o) I am trying to build a flash-card application that contains quizzes, questions, possible answers, and presentations, plus historical records of users''s answers over time (quiz_instances, question_instances, response_instances). I have been working from Thomas and Hansson (Agile Web Development With Rails), but I appear to be missing something in the mo...
2006 May 24
1
Best practices: a little pop-quiz on my blog
Hey, I just put up a little rails pop-quiz on my blog (more fun than just writing a post saying "hey did you know..."). Seeing as it''s probably of interest to more than just the three people (including my wife) that actually read my blog I figured it would be okay to announce it here. http://tinyurl.com/prxdl I...
2011 Mar 01
0
Quiz,chat
I am new to rails framewrok ,i have experience in PHP and LInux background.I am looking for some tutorial or famous app to create a Quiz and chat .I have implemented quiz and flat file and db based quiz in PHP,but i wanted to do it in Rila.Looking forward for community help. . . -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to...
2006 Mar 15
0
[ADV] Best of Ruby Quiz available
Railsriders: Quizmeister James Edward Gray II selected the best 25 Ruby Quizzes from last year, then carefully collected answers and annotated them. The result is "The Best of Ruby Quiz", a wonderful book which will teach any Ruby programmer new techniques and approaches to coding. If you want to ho...
2007 May 10
0
Counterintuitive behavior in ActiveRecord I was implementing dirty checking for an application, and I found something that is a little counterintuitive. Let me start with a quick quiz: bob=User.find(1) alice=User.find(2) trip=Trip.new trip.driver=bob old_
I was implementing dirty checking for an application, and I found something that is a little counterintuitive. Let me start with a quick quiz: bob=User.find(1) alice=User.find(2) trip=Trip.new trip.driver=bob old_driver=trip.driver trip.driver=alice In this example, who is old_driver? If you guessed Alice, you''re right. Inside associations.rb, the mutator is defined as: define_method("#{reflection.name}=&quo...
2012 Aug 18
5
Quiz: How to get a "named column" from a data frame
Today, I was looking for an elegant (and efficient) way to get a named (atomic) vector by selecting one column of a data frame. Of course, the vector names must be the rownames of the data frame. Ok, here is the quiz, I know one quite "cute"/"slick" answer, but was wondering if there are obvious better ones, and also if this should not become more idiomatic (hence "R-devel"): Consider this toy example, where the dataframe already has only one column : > nv <- c(a=1, d=17, e...
2006 Apr 01
12
Repost: Why is rails generating bad SQL?
...d if we instantiate presentations in the initialize, # but that will require thinking because we already have a use for # the initialize method. @question = Question.new STDOUT.print("\r\n------------------------------\r\n") STDOUT.print("Looking for Parent= ",params[:parent_quiz],"\r\n") aParent = Quiz.find(:conditions => ["id=?",params [:parent_quiz]], :limit => 1) STDOUT.print("Found Parent= ",aParent,"\r\n") # aParent is returning nil, but it shouldbe a valid object Here''s the STDOUT log (I have instrument...
2006 Mar 17
5
Radio Button Validation
I''m writing a quiz application and I need to validate the radio button reponses. I do not have the questions in a database, I just have forms which contain "question1" and then I strip out the "question" portion and just insert the number as the question''s id. So now I''m fac...
2001 Nov 29
2
k12 needs suggestions on our first samba problem
...district. We have migrated to samba, in order to save money, and we love it. We have a situation though, where managing a program under samba, vs. Novell is a bit harder, and I want some suggestions on how to handle it. The program is Accelerated Reader, which is a program where students take quizes, and the quizes are read from a proprietary database(not sql) that is just a folder on a share. Quiz results are also posted here. We mapped this folder to a drive R:, and it works fine. Our problem is that sometimes the database needs maintenance, which is normal for this program....and all u...
2008 Oct 17
3
Guitar Pro in Wine?
My uncle recently bought a new computer and he wants me to help him install Guitar Pro. The thing is, he doesn't have Windows, and I'm thinking of installing Ubuntu with wine on the comp. Quiz time! Can you use wine, with GP, and if you can, deos it perform poorly in any ways?
2012 Aug 09
3
Pop quiz: Where do you watch for job postings?
Hi all, I''m looking for some advice on where we should be putting an advert if we are looking to hire a full time rails developer? Or turning it around what websites (or mailing lists) do folks here use to if they feel the need for a change in view from their desk? A few details to narrow down scope since it might affect the advice, apologies in advance, trying to NOT make this an
2011 Apr 06
7
Quiz: Who finds the nicest form of X_1^\prime?
Dear expeRts, I would like to create a plotmath-label of the form X_1^\prime. Here is how to *not* do it [not nicely aligned symbols]: plot(0,0,main=expression(italic(X*minute[1]))) plot(0,0,main=expression(italic(X[1]*minute))) plot(0,0,main=expression(italic(X)[1]*minute)) Any suggestions? Cheers, Marius
2016 Mar 08
2
FileCheck: combining -DAG and -NOT
...ed to avoid some potential confusion): ; CHECK-DAG: BEFORE ; CHECK-NOT: BETWEEN ; CHECK-DAG: AFTER The page says this will reject the sequence "AFTER BEFORE", which is correct. It's intuitively obvious that it will also reject the text "BEFORE BETWEEN AFTER" as well. Pop Quiz: Will it accept or reject "BEFORE AFTER BETWEEN"? No, don't go try it, that's cheating; what do you *think* will happen? Take a minute, I won't mind. --- So, here's the story. Normally a -NOT line will scan the text between the points where the preceding and following C...
2006 May 10
3
NumbersToWords
= numbersToWords - convert your integers and floats to english or japaneese words,or translate it into american currency - This plugin was created from a solution to the ruby quiz (english numbers) by Matthew D Moss. I modified the code to work as a rails plugin and added the to_dollars method. - the to_dollars method will work with integers and floats - the to_english and to_japaneese methods will only work with integers. If you have call these methods on a float, it will...
2006 Apr 01
0
Okay, what gives? find_by_id is failing.
This has the look of a "just don''t quite get it yet" problem. I am using the ActiveRecord.find_by_id method to identify the parent object (Quiz) to tie to the child object (Question) at create time. Here is the stdout log: 127.0.0.1 - - [31/Mar/2006:22:43:22 CST] "GET /question/new? parent_quiz=ff2d7022-be0a-11da-9f01-00400506faf5 HTTP/1.1" 200 806 http://localhost:3000/questions?parent_quiz=ff2d7022- be0a-11da-9f01-00400506faf...
2016 Mar 08
2
FileCheck: combining -DAG and -NOT
...ed to avoid some potential confusion): ; CHECK-DAG: BEFORE ; CHECK-NOT: BETWEEN ; CHECK-DAG: AFTER The page says this will reject the sequence "AFTER BEFORE", which is correct. It's intuitively obvious that it will also reject the text "BEFORE BETWEEN AFTER" as well. Pop Quiz: Will it accept or reject "BEFORE AFTER BETWEEN"? No, don't go try it, that's cheating; what do you *think* will happen? Take a minute, I won't mind. --- So, here's the story. Normally a -NOT line will scan the text between the points where the preceding and following C...