Displaying 20 results from an estimated 1000 matches similar to: "ScrapeR Unanticipated XML objects"
2006 Jan 10
1
OT: Scraper library recommendation
Hi all,
this is quite off-topic, but I''m sure a lot of people here has experience
in the area, so...
I''m writing a website scraper script that needs to download a web page,
traverse the (X)HTML tree and finally insert data and HTML pieces into
a DB. Eventually this data will be served up as RSS and/or Atom.
I''m currently using html/tree (htmltools); I''ve also
2009 Oct 16
1
How odds ratio is computed in fisher.test()?
I'm wondering how odds ratio is computed. I thought that it is
(n11/n12)/(n21/n22), but it is not what fisher.test() computes. Could
somebody let me know?
> n11=3
> n12=1
> n21=1
> n22=3
>
> n1_=n11+n12
> n2_=n21+n22
>
> n_1=n11+n21
> n_2=n12+n22
>
> x=rbind(c(n11,n12),c(n21,n22))
>
> threshold=dhyper(n11,n1_,n2_,n_1)
>
2009 Jun 07
17
ActiveRecord Classes
I''m having a little trouble with understanding how to work out the
schematic for some of my classes using ActiveRecord when a file is in my
lib directory:
Brief example:
Here''s the outline of the files in use:
....app
........controllers
............application_controller.rb
............rushing_offenses_controller.rb
........models
............rushing_offense.rb
....lib
2006 Dec 31
0
backgroundrb 0.2.1 doesn''t always load rails environment
I found this stack trace in my logs. My worker name is MiscWorker,
and Qualifier is a Rails model.
uninitialized constant MiscWorker::Qualifier: /Users/bryan/
Workspace/sandbox/scraper-trunk/config/../vendor/rails/activerecord/
lib/../../activesupport/lib/active_support/dependencies.rb:476:in
`const_missing''
/Users/bryan/Workspace/sandbox/scraper-trunk/lib/workers/
2009 Jun 06
5
Rake Tasks
Hi Everyone,
I just need some further help clarifying a custom rake task I''m building
and the logistics of how it should be working.
I''ve created a custom rake task in libs/tasks called scraper.rake which
so far just contains the following:
desc "This task will parse data from ncaa.org and upload the data to our
db"
task :scraper => :environment do
# code goes
2013 Dec 18
1
Fwd: Bad \usage lines question
Dear colleagues,
In checking a function I am adding to an R package, I get the following
warning pair:
...
Bad \usage lines found in documentation object 'nominal':
"\\method{print}{nominal}"(x, max.print = 10,
posthoc = "std.pearson.residuals.sign",
assoc = ifelse("univariate"
list(c("N", "alpha.X2",
2009 Jan 23
1
XML package help
Please consider this:
<Manifest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<!-- eName : name of the element.
eValue : value of the element. -->
<OutputFilePath>./XYZ</OutputFilePath>
<FilesList>
<File>
<FileTypeId>10</FileTypeId>
2005 Apr 02
2
Solaris10/amd64 + SunSutio Compile (PR#7767)
Full_Name: Teru KAMOGASHRIA
Version: 2.0.1
OS: SunOS sun 5.10 Generic i86pc i386 i86pc
Submission from: (NULL) (219.5.176.24)
rbinom.c cannot be compiled because of the casting problem.
/opt/SUNWspro/bin/cc -I. -I../../src/include -I../../src/include
-I/usr/local/include -DHAVE_CONFIG_H -D__NO_MATH_INLINES -g -c rbinom.c -o
rbinom.o
"rbinom.c", line 60: operand must have real
2007 Nov 30
0
Is there any multivariate regression function to combine all variables from a dataset?
Hi everybody,
I've been looking for a function that combines all variables from a
dataset because I need to do multivariate regression.
If we have linear regression with an expression like f(x) = a0 +
sum(ai*xi) what I want to do is something like f(x) = a0 + sum(ai*xi) +
sum(sum(bij * xi * xj)) + sum(sum(sum(cijk*xi*xj*xk))) + ...
So I need a function that combines all the values from
2009 Aug 19
1
Incompatibility using pxelinux 3.80 or later and, setupldr.exe from windows XP 32 bits
Good day Shao Miller
> Regarding the Windows XP RIS corrupt filename WINNT.SIF filename bug:
>
> I've already explained the bug and think it would be good for you to try
> out the latest PXELINUX.0 (compiled from the latest Syslinux in its
> project git repository). You can get pretty close by using the link I
> sent before.
>
I will be very busy until next month.
2016 Aug 07
1
Quote symbol names under EXPORTS in tmp.def on Windows
I originally posted on this topic on a different thread:
https://stat.ethz.ch/pipermail/r-devel/2016-August/072938.html
These sources suggested that a safe practice might be to put double
quotes around symbol names in EXPORTS in case the symbol name is the
same as a linker keyword:
- https://sourceware.org/binutils/docs/ld/Symbols.html#Symbols
-
2010 Mar 07
3
Can PXElinux be used to dynamically pass DHCP option 252 to a PXE client?
All (and hpa in particular),
I know that the question in the subject line of this message may come across as a bit silly, given that PXElinux is not a DHCP server, but hear me out...
Those of you who have been working on PXE-booting Windows PE instances or the new Windows installer images that make use of the Windows Boot Manager and ".wim" files may have come across the general
2009 Dec 31
3
XML and RCurl: problem with encoding (htmlTreeParse)
Hi,
I'm trying to get data from web page and modify it in R. I have a
problem with encoding. I'm not able to get
encoding right in htmlTreeParse command. See below
> library(RCurl)
> library(XML)
>
> site <- getURL("http://www.aarresaari.net/jobboard/jobs.html")
> txt <- readLines(tc <- textConnection(site)); close(tc)
> txt <- htmlTreeParse(txt,
2009 Aug 18
1
Incompatibility using pxelinux 3.81 or later and setupldr.exe from windows XP 32 bits
I did 2 zip files containing each:
- a working tftp-root with syslinux 3.75
- a not working tftp-root wit syslinux 3.81
They have ben build and tested using the instructions given in my first
message.
The bug appears starting syslinux 3.81, NOT 3.80 (I tried too many versions)
The zip files are available here:
http://t.bugier.free.fr/tftp-root--fail.zip
2016 Jul 28
0
Creating shared object with BASE in EXPORTS on Windows
I am building shared objects on Windows system with BASE as a name in
the shared object. When BASE appears under EXPORTS in tmp.def file, R
CMD SHLIB doesn't succeed. This happens on Windows but not Mac or
Ubuntu.
Minimal examples:
////////////////////////////////////////
This code builds fine
////////////////////////////////////////
void base(int *nin, double *x) {
int n = nin[0];
int
2016 Aug 02
0
Creating shared object with BASE in EXPORTS on Windows
It looks like `BASE` is a keyword in the .def file specification.
https://github.com/bminor/binutils-gdb/blob/master/ld/deffilep.y#L241-L268
For several keywords, I could replicate the syntax error from ld.exe
when the keyword was listed in EXPORTS in the .def file.
As far as I can tell, the dllname-win.def file is a must in this case
making sure none of the keywords get exported there.
2010 Aug 05
4
A %nin% operator?
Sometimes I write code like this:
> qf.a <- subset(qf, pubid %in% c(104, 106, 107, 108))
> qf.b <- subset(qf, !pubid %in% c(104, 106, 107, 108))
and I get a little worried that maybe I've remembered the precedence rules
wrong, so I change it to
> qf.a <- subset(qf, pubid %in% c(104, 106, 107, 108))
> qf.b <- subset(qf, !(pubid %in% c(104, 106, 107, 108)))
and pretty
2004 Sep 16
0
FW: FW: How do I insert a newline in my title in a plot?
platform: Linux Mandrake 10.0 AMD processor, X11 graphics with XFree latest,
R version 1.9.1 home-compiled.
-----Original Message-----
From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk]
Sent: ??????, 16 ??????????? 2004 16:27
To: Christos Rodopoulos
Cc: 'R-help at stat.math.ethz.ch'
Subject: Re: FW: [R] How do I insert a newline in my title in a plot?
On Thu, 16 Sep 2004,
2012 Nov 12
1
reshape
Hi,
I have a R output that looks as follow:
Rad:0
Rad1:2
Rad3:3
I want to make a new matrix that looks like : sample size is 2400
Variable n11 n12
Rad 0 2400-0=2400
Rad1 2 2400-2
Rad3 3 2400-3
Thanks a lot for your time and help:)
Best,Farnoosh Sheikhi
[[alternative HTML version deleted]]
2009 Jun 23
1
How to find b entries using xPath?
We got all rows by:
library(XML)
doc =
htmlParse('http://www.statcan.gc.ca/daily-quotidien/090520/t090520b1-eng.htm')
rows = xpathSApply(doc, '//table/tbody/tr')
The last row is:
row_last = rows[15]
row_last
[[1]]
<tr><td id="t1stub17" class="stub1 RGBShade"><b>Unsmoothed composite
leading indicator</b></td>
<td