search for: th

Displaying 20 results from an estimated 3602 matches for "th".

Did you mean: thu
2006 Aug 03
1
OT: Tables and Rails code
This might be off topic, not entirely sure. Basically I''ve created a table to return data and it seems that the column headings repeat along with the entries. So perhaps it''s where I''m placing the code and not so much my HTML. Ideas, solutions appreciated: <h1> Curr...
2009 Apr 04
1
Problem with sample()
Hi, I'm having a problem using sample() within a function. Basically I get an error reading: Error in sample(v, 1, prob = h) : non-positive probability Can anyone advise me as to the possible origin of this error? Here is my code #Discretised Gillespie algorithm function (From SMfSB, D.J. Wilkinson) gillespied=function (N, T=100, dt=1, ....
2006 Aug 07
8
Syntax Problem
In an *.rhtml, why do I need to add <% for product in @products %> in order that I may call an <img class="list-image" src="<%= product.img_url %>"/>. Is there not another way to skip the "for product" line? I really dont want to include it. I tried @products = product but it does not work. Can anyone help shed light on this matter?...
2014 Aug 14
3
leer ficheros excel en R en Ubuntu
...ial en R, pero me estoy encontrado muchos con mi problema en internet, y que las soluciones ofrecidas no terminan de funcionar. Estoy intentando leer un fichero .xls en ubuntu con los siguientes paquetes y nada: require(RODBC) conn = odbcConnectExcel("madrid.xls") # open a connection to the Excel file sqlTables(conn)$TABLE_NAME # show all sheets df = sqlFetch(conn, "Sheet1") # read a sheet df = sqlQuery(conn, "select * from [Sheet1 $]") # read a sheet (alternative SQL sintax) close(conn) # close the connection to the file require(gdata) xlsfile <- file.path(pa...
2011 Mar 14
0
Problems with viewing my calendar
Hey dudes, i''m trying to build a small calendar into my app. I follow the steps shown in http://railscasts.com/episodes/213-calendars, so i go with the table_builder gem, which allows to use the calendar_for command. But unfortunately it doesnt work or rather show the results in my view-template. I even got no error-message. It only shows this: (twice!!?!) Calendar &lt...
2009 Sep 23
1
Numerical integration problem
Hi there I'm trying to construct a model of mortality risk in 2D space that requires numerical integration of a hazard function, for which I'm using the integrate function. I'm occasionally encountering parameter combinations that cause integrate to terminate with error "Error in integra...
2006 Jan 16
8
AJAX + Table.
Hello all. I am trying ot load table rows using AJAX based on a search. The following code results in: 1. Firefox renders correctly (Multiple rows inserted into page). 2. Opera renders the entire returned string in one <td> by the looks of it (Bunched up under first header, the <> tags arne''t visible) 3. IE6 does nothing....great ;) This is drivin...
2006 Mar 06
2
form_tag error -- not found, 404 -- action DOES exist!
Hi -- I''ve got a very strange error. I have an action called ''commit_input'' on a controller called ''SiteVisitController''. This definately exists, and is called from the functional test for it, and passes fine. My problem is with the form that is supposed to call this action. The form tag is: <%= form_tag({:action=>''commit_input''}) %> <%# various controls -- listed in full below -%> &l...
2009 Aug 02
3
deliver is curious
Hi, Im' using deliver with postfix (mailbox_command = /usr/lib/dovecot/deliver -n -m "$EXTENSION"). In dovecot.conf I've set mail_location to maildir:/var/spool/imap/users/%u/Maildir It works, but not for ONE "special" email. If I send mail to e.g. th at trg-oha.de it gets correctly delivered (see...
2005 Dec 18
2
Create dynamic search with table rows
I''m trying to create a dynamic search function to filter the list results using form_remote_tag. I need this to work with a table data output. So it would update the partial template of table rows. I tried wrapping the table rows in a div tag but that wouldn''t update the table properly. Any help on this would be greatly appreciated. Here i...
2007 Mar 22
2
Inconsistent Invalid Argument Error
I have a view with a table that contains sortable links as headings. Here is the code used to create these sortable links in the application_helper: module ApplicationHelper def sort_link_helper(text, param) key = param key += "_reverse" if @params[:sort] == param link_to(text, :controller =...
2003 Jan 22
1
negative multinomial regression models
Hello, I''ve spent a lot of time during the past month trying to get negative multinomial regression models for clustered event counts as described in (Guang Guo. 1996. "Negative Multinomial Regression Models For Clustered Event Counts." Sociological Methodology 26: 113-132., abstract at http://depts.washington.edu/socmeth2/4abst9...
2010 Aug 01
0
Picking Part of Large R Object
Dear All, I have imported an HTML document to R (called tables) and wish to select certain pieces of it for processing. The first few lines of the object appear as follows: > tables [[1]] <table id="fs-table" class="gf-table rgt"> <thead> <tr><th class="lm lft nwp"> In Millions of USD (except for per share items) </th> <th class="rgt"&gt...
2010 Jul 09
2
Template is missing.... but it is there!
Hello friends! I have an application to list different kinds of institution names. So I have one table "instits" for the institutions and another table "nome_instits" for their names. For test, I put two rows inside "instits" and three names for the first institution and two names for the last. Then I created this controller: class ServInstitController < ApplicationController def index...
2007 Dec 19
0
editpostfix setup
Hi, i've setup the samba environment like described in the wiki: http://wiki.samba.org/index.php/Ldapsam_Editposix I can now easily add windows user / machines when using the policies for "Administrator". I have also setup unix account session auth via libpam_ldap, libnss_ldap like described here: http:...
2010 May 05
1
extracting a matched string using regexpr
Given a text like I want to be able to extract a matched regular expression from a piece of text. this apparently works, but is pretty ugly # some html test<-"</tr><tr><th>88958</th><th>Abcdsef</th><th>67.8S</th><th>68.9\nW</th><th>26m</th>" # a pattern to extract 5 digits > pattern<-"[0-9]{5}" # r...
2014 Aug 15
5
leer ficheros excel en R en Ubuntu
...buntu <http://stackoverflow.com/questions/3426523/odbcconnectexcel-function-from-rodbc-package-for-r-not-found-on-ubuntu> Con gdata -> Unable to open file '/home/miguelfg/R/x86_64-pc-linux-gnu-library/3.1/gdata/xls/madrid.xls'.Error in xls2sep(xls, sheet, verbose = verbose, ..., method = method, : Intermediate file '/tmp/RtmpHRuknw/filefed757fcc67.csv' missing!In addition: Warning message:running command ''/usr/bin/perl' Con XLConnect -> Error : package ?rJava? was built before R 3.0.0: please re-install itERROR: lazy loading failed for package ?XLCo...
2008 May 01
4
efficient code - yet another question
Dear list members; The code given below corresponds to the PCA-NIPALS (principal component analysis) algorithm adapted from the nipals function in the package chemometrics. The reason for using NIPALS instead of SVD is the ability of this algorithm to handle missing values, but that's a different story. I've bee...
2005 Sep 14
16
Showing database results in a grid view
Hello everyone, It seems that the answer to my question should be obvious, but I''ve not yet found a way to do what I want. Any advice on the best method would be greatly appreciated. Have the following database table: CREATE TABLE datasets ( id int not null auto increment, name varchar not...
2013 Apr 25
2
Loop for main title in a plot
Hi all, I have a problem in including my plot in a loop. Here is a simple example for one plot: # Plot simple graph with super- and subscript a<-c(1,2,3,4) b<-c(1,2,3,4) plot(x=a,y=b, ylab=expression(paste("Apple"["P"])), xlab=expression(paste("Banana"^"th")), main=expression(paste(italic("i-")~"4"^"th"~"choice"))) Now...