search for: resultset

Displaying 20 results from an estimated 77 matches for "resultset".

2005 Dec 29
2
form_remote, getting data from submit
...writing a little survey application, and surveys are generated dynamically. I use form_remote_tag and AJAX to submit the form to a method 'submit' in my 'survey' controller. The view generates the form as: <tr> <td>Question 1?</td> <td><input id="resultset_1" name="resultset[1]" size="30" type="text" /></td> </tr> <tr> <td>Question 2?</td> <td><input id="resultset_2" name="resultset[2]" size="30" type="text" /></td> </t...
2005 Jun 07
0
Ruby/Odeum 0.4: ResultSets, KirbyBase Demo
...n announcement for another version of Ruby/Odeum 0.4. http://www.zedshaw.com/projects/ruby_odeum/index.html http://www.zedshaw.com/downloads/ruby_odeum/ruby_odeum-0.4.tar.bz2 http://www.zedshaw.com/downloads/ruby_odeum/ruby_odeum-0.4.gem ***This release will break your existing code.*** Read the ResultSet documentation for how to make your changes. Important features of this release are: * This release has a 15-20% speed improvement based on my performance analysis research against Lucene. * The API now returns ResultSet objects rather than big arrays of IDs and scores for documents. These Result...
2013 Feb 01
2
help on proportions
...ot know how to solve it and I do not have a teacher who can help me understand. ? I have list of genes (200)?that are involved in a particular process and I call this as a?ProcSet.?? From an independent experiment I found that out of 10,000 genes, 1500 are significant and I call these1500 genes as ResultSet.?? ? The intersection of ResultSet and ProcSet are 80 genes.? ? That means 40% of ProcSet are significant.? ? ?How do I calculate that 40% is significant and more than I expect by chance given ResultSet and 10,000 genes I evaluated in the experiment. ? What I have: n = 200 (ProcSet) p = 0.4 ? N...
2008 Jun 17
4
Formating Date Field
First.jsp ------------------ <jsp:usebean id="db" class="db.dbClass" scope=session/> <html> <body> <form action="MyAction.jsp" method="post"> <% ResultSet rs=db.executeQuery("select no,name from mytable"); while(rs.next()) {%> <input type=checkbox value=<%=rs.getString(1)%> onclick=callJs(< %=rs.getString(1)%>) > <%} %> <input type=text name=displaydatetxt id=displaydate/> </form> <script> functi...
2001 Feb 22
2
Problem with tcltk listbox
...he error mentioned above. Then selecting the second item in A , the first of B is highlited. Below the source fragments: prot.listbox<-tklistbox(anzeigeframe,exportselection="0",selectmode="browse") prot.yscroll<-tkscrollbar(anzeigeframe) i <- 1 while (i <= length(resultset[,1])) { tkinsert(prot.listbox,'end',paste(resultset[i,1],resultset[i,2],sep=".")) i<- i+1 } tkconfigure(prot.listbox,yscrollcommand=paste(.Tk.ID(prot.yscroll),"set")) tkconfigure(prot.yscroll,command=paste(.Tk.ID(prot.listbox),"yview")) tkpack(prot.yscrol...
2006 Nov 08
0
Paginating a fetched resultset problems with next/previous
Im using this paginate function to paginate complex sql queries http://www.bigbold.com/snippets/posts/show/389, all seems to work fine but theres one thing, when i hit the next link it show nothing, i mean it only shows the first page, here is the code im using: #application.rb----------------- def paginate_collection(collection, options = {}) default_options = {:per_page => 10, :page
2007 Nov 15
2
Story adapter and SQLite Was:What command to run all stories?
...(PENDING) > And the corks should be > popped/usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/errors.rb:94:in > `check'': SQL logic error or missing database (SQLite3::SQLException) > from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/resultset.rb:76:in > `check'' > from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/resultset.rb:68:in > `commence'' > from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/resultset.rb:61:in > `initialize'' >...
2007 Jun 02
2
Unit tests breaks with sqlite
...test_loader Started EC:/InstantRails/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1- mswin32/lib/sqlite3/errors.rb:94:in `check'': SQL logic error or missing database (SQLite3::SQLException) from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/sqlite3- ruby-1.2.1-mswin32/lib/sqlite3/resultset.rb:76:in `check'' from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/sqlite3- ruby-1.2.1-mswin32/lib/sqlite3/resultset.rb:68:in `commence'' from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/sqlite3- ruby-1.2.1-mswin32/lib/sqlite3/resultset.rb:61:in `initialize''...
2010 Jul 21
0
One problem with RMySQL and a query that returns an empty recordset
...ECT m_id,sale_date,YEAR(sale_date) AS sale_year,MONTH(sale_date) AS sale_month,return_type,0.0001 + DATEDIFF(return_date,sale_date) AS elapsed_time FROM `merchants2`.`risk_input` WHERE m_id = 361 AND return_type = 1 AND DATEDIFF(return_date,sale_date) IS NOT NULL; If I execute this SQL, I find the resultset is empty. So assigning the value returned by dbGetQuery to moreinfo works ONLY if the resultset is not empty. It fails with a fatal error if the resultset is empty. So, the question is, how can I revise that statement so that the assignment happens only if the resultset is NOT empty? Thanks Te...
2007 Mar 01
1
Problems with RC1 & Rails Controllers
...Sites/rails/dictionary/config/../spec/spec.opts" /opt/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/ errors.rb:94:in `check'': SQL logic error or missing database (SQLite3::SQLException) from /opt/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/ lib/sqlite3/resultset.rb:76:in `check'' from /opt/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/ lib/sqlite3/resultset.rb:68:in `commence'' from /opt/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/ lib/sqlite3/resultset.rb:61:in `initialize'' from /opt/local/lib/ru...
2006 Sep 20
5
acts_as_ferret limit on multi_search not working?
I''m using acts_as_ferret to do a query like this: Model1.multi_search("my query",[Model2,Model3], :limit => 2) No matter what number i set limit to I get 10 items in the resultset. Am I doing something wrong? Thanks/David -- Posted via http://www.ruby-forum.com/.
2007 Nov 15
5
What command to run all stories?
...the sum should be 2 (PENDING) And the corks should be popped/usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/errors.rb:94:in `check'': SQL logic error or missing database (SQLite3::SQLException) from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/resultset.rb:76:in `check'' from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/resultset.rb:68:in `commence'' from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/resultset.rb:61:in `initialize'' from /usr/local/lib/ruby/gems...
2012 Nov 06
2
[LLVMdev] Help needed on debugging llvm
...s clang++ actually). Understably,clang cribs looking at __builtin_iceil. Any idea how to resolve that as well? clang++ -O2 -march=bdver2 -mno-fma -save-temps -mfma4 -ffp-contract=fast -DSPEC_CPU_LP64 Compute.o ComputeList.o ComputeNonbondedUtil.o LJTable.o Molecule.o Patch.o PatchList.o ResultSet.o SimParameters.o erf.o spec_namd.o -o namd spec_namd.o: In function `main': spec_namd.ll:(.text+0x2a3): undefined reference to `__builtin_iceil' > Please open a bug report with a minimal test case > Will do. Thanks -Anitha > > > Ciao, Dunca...
2012 Nov 06
3
[LLVMdev] Help needed on debugging llvm
...g++ -march=bdver2 -save-temps -fplugin=/home/anboyapa/install/bin/dragonegg.so -O2 -march=bdver2 -save-temps -fplugin=/home/anboyapa/install/bin/dragonegg.so -mno-fma -mfma4 -ffast-math -DSPEC_CPU_LP64 Compute.o ComputeList.o ComputeNonbondedUtil.o LJTable.o Molecule.o Patch.o PatchList.o ResultSet.o SimParameters.o erf.o spec_namd.o -o namd spec_namd.o: In function `main': spec_namd.C:(.text+0x2a3): undefined reference to `__builtin_iceil' collect2: error: ld returned 1 exit status specmake: *** [namd] Error 1 On 5 November 2012 14:32, Duncan Sands <baldri...
2006 Apr 11
0
Unit test is failing when I am using SQLite
...C:/rails/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0-mswin32 /lib/sqlite3/errors.rb:94:in `check'': SQL logic error or missing database (SQLit e3::SQLException) from C:/rails/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby- 1.1.0-mswin32/lib/sqlite3/resultset.rb:76:in `check'' from C:/rails/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby- 1.1.0-mswin32/lib/sqlite3/resultset.rb:68:in `commence'' from C:/rails/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby- 1.1.0-mswin32/lib/sqlite3/resultset.rb:61:in...
2006 Jan 31
0
"cannot start a transaction within a transaction" sqlite error on OS X Tiger but not Windows
...o source control and started editing on my iMac. Everything seems to run normally, except that when I attempt to modify the database in any way (I''m running sqlite), I get a weird error: "cannot start a transaction within a transaction" /usr/local/lib/ruby/site_ruby/1.8/sqlite/resultset.rb:71:in `compile'' /usr/local/lib/ruby/site_ruby/1.8/sqlite/resultset.rb:71:in `commence'' /usr/local/lib/ruby/site_ruby/1.8/sqlite/resultset.rb:65:in `initialize'' /usr/local/lib/ruby/site_ruby/1.8/sqlite/statement.rb:104:in `execute'' /usr/local/lib/ruby/site_ruby...
2012 Nov 06
0
[LLVMdev] Help needed on debugging llvm
...olve that as well? adding dragonegg support for iceil would solve both problems. Ciao, Duncan. > clang++ -O2 -march=bdver2 -mno-fma -save-temps -mfma4 -ffp-contract=fast > -DSPEC_CPU_LP64 Compute.o ComputeList.o ComputeNonbondedUtil.o LJTable.o > Molecule.o Patch.o PatchList.o ResultSet.o SimParameters.o erf.o > spec_namd.o -o namd > spec_namd.o: In function `main': > spec_namd.ll:(.text+0x2a3): undefined reference to `__builtin_iceil' > > Please open a bug report with a minimal test case > > Will do. Thanks > -Anitha > &g...
2006 Sep 07
7
counting occurences of words in the result set
Hello, I need to be able to count the occurences of certain terms in the reults. Currently my setup is Ferret 0.10.1 aaf bleeding edge. results = VoObject.find_by_contents(query,:offset=>page, :limit=> 20,:sort => sort_fields) I use results.total_hits for pagination. This all works really nicely. However i need to be able to know how many occurences of certain predefined terms occur
2008 May 30
9
find_by_sql without a model? how to do this?
Hi, I''d like to do a "find_by_sql" without a model (e.g. <model name>.find_by_sql("...")) as the results I get back are a once off special, and I''m happy to handle them as an array. How do I do this? "ActiveRecord::Base.find_by_sql(...)" does not seem to work? Background - At the moment I''m doing within a model <model_name>,
2008 Mar 25
2
responseXML not working on XML file
...don''t get responseXML. I''m confused what I am doing wrong. If i change the response variable and dump responseText, it shows the file, it just doesn''t recognize it as xml. function xml(url){ new Ajax.Request(url, { method: ''post'', parameters:''resultSet=simcall'', onSuccess:parseResponse, onFailure:function(xhrResponse){alert(''nope'');} }); } var parseResponse= function(xhrResponse){ var response=xhrResponse.responseXML; var paramList= response.getElementByTagName(''lastname''); alert(paramList[0].firstC...