Displaying 20 results from an estimated 1000 matches similar to: "Parsing XML file with no style info with Hpricot"
2010 Jul 21
1
Command that is conditional upon file retrieval: is it possible?
Hi all,
I'm currently working on an R program where I have to access an FTP server
to download some of the data I need. However, the people who post up the
files I access are at times inconsistent with regards to time posted, if
they post at all, etc.... Here's some of the code I use:
library(RCurl)
url1 = paste("ftp://user:password at a.great.website.com/",
2009 May 27
2
Having problems with Samba and openLDAP Groups
I'm getting a little closer and understanding how the logs, etc work. I
can log onto a Samba share, can read and write to my home directory, but
I'm concerned about trying to get the file share Staff to work - want it
to be read and write to the Group named Staff. I have set up the group
and added myself to the group
If I do a smbldap-groupshow Staff - I get
sudo smbldap-groupshow
2015 Apr 30
2
búsqueda y sustitución masiva
Hola a tod en s, explico lo que estoy intentando hacer...
Tengo un listado de url comprimidas de twitter, entre las cuales hay muchas
repetidas, por lo que el número de registros llega a más de 15K.
Por otro lado tengo otra lista de esas url únicas con su equivalente ya
descomprimido llegando a un registro de 900.
El problema que tengo es que estoy intentando hacer un loop para hacer la
2006 Jan 12
4
How do you create a tree strucutre with ActiveRecord
I want to build an application that has the concept of administrative
domains. What I mean by this is that administrators have access to
different data, based on what domains they are a member of. The domain
strucutre is hierarchical. Here is an example:
- MLB
- AL
- East
- Yankees
- Red Sox
...
+ Central
+ West
- NL
+ East
+ Central
+ West
Now
2007 Jun 11
3
hpricot as dependency for building rspec?
It looks to me that hpricot is a dependency to building rspec:
euclid% rake pre_commit
(in /Users/smtlaissezfaire/ruby/projects/rspec/hpricot)
rake aborted!
Could not find RubyGem hpricot (>= 0.0.0)
/Users/smtlaissezfaire/ruby/projects/rspec/hpricot/rakefile:9
(See full trace by running task with --trace)
Let me know if I''m wrong. Otherwise, I''ll submit a patch in the docs.
2018 Mar 11
2
Your browser do not suport oracle bi presentation services
Hi dear R users:
I'm trying the following code to download an information from the web.
url1 <-
2006 Jul 07
2
Testing views with Hpricot
assert_tag smells bad. Hpricot smells nice (apricotty!).
Testing your views with Hpricot:
http://www.lukeredpath.co.uk/index.php/2006/07/07/testing-your-rails-
views-with-hpricot/
Big thanks to _why for a great little library!
Feedback is appreciated. rSpec integration coming soon (hopefully!).
Cheers,
Luke Redpath
contact@lukeredpath.co.uk
-------------- next part --------------
An HTML
2011 May 25
1
can't load hpricot gem in rails 3
This is in windows ..
So from irb, I can load hpricot ok. (ruby 1.8.7)
C:\Users\Laurence\rails-play\plug-test>irb
irb(main):001:0> require ''hpricot''
LoadError: no such file to load -- hpricot
from (irb):1:in `require''
from (irb):1
irb(main):002:0> require ''rubygems''
=> true
irb(main):003:0> require
2008 Apr 09
5
Peculiar Hpricot error in Rails app
Hi,
I have been stumped by this error Hpricot is generating in my rails
app. The error looks like this:
$ script/console
Loading development environment (Rails 2.0.2)
>> str = ''<p>lorem ipsum <a href="http://dolor.com/">dolor</a> sit amet.</p>''
=> "<p>lorem ipsum <a href=\"http://dolor.com/\">dolor</a>
2009 Sep 25
1
how to remove bogusetag by hpricot?
I have use hpricot to translate users'' input html. I want to remove
bogusetag as follows:
>>doc = Hpricot "<p> test world</b></p>", :xhtml_strict => true
=>#<Hpricot::Doc {elem <p> " test world" {bogusetag </b>} </p>}>
>>doc.to_s
=>"<p> test world</b></p>"
what I expected is
2011 Apr 18
2
rubygems fail - require hpricot!
Hi guys,
I wanted to fetch some info from webpage and use it in my db. I read
hpricot is one way to do it. But the problem is I''m unable to use it
with my app. For some reason after successfully installing hpricot it
fails when I try to use it in the rails console.
I''ve been trying to fix this for the last four-five days. I''m stumped !
I tried re-installing everything
2008 Aug 12
1
Problem with using read.csv with web address
Hello,
I have a problem with using read.csv(). I want to read a table from the ONS
neighborhood statistics website which has an address:
2014 Jun 06
2
[LLVMdev] Clang removes Label name
Hi,
I have some troubles to figure out why clang is removing my label name. As the simple example below shows the label "MLB" is removed and replaced by an integer as an "unnamed value".
Plus, I can see that an unconditional jump is added, as the label seems to be interpreted as the beginning of a BasicBlock. I am compiling without any optimizations (for now), what leave the
2008 Oct 04
2
index matter
Hi,
I have a question about the following explanation;
IndexFiles.txt
------------------------------------------------------
If index files are missing, Dovecot creates them
automatically
when the mailbox is opened.
------------------------------------------------------
Are they made based on which information?
Thanks.
Yoko
--------------------------------------
Enjoy MLB with MAJOR.JP!
2018 Mar 11
0
Your browser do not suport oracle bi presentation services
On Sun, Mar 11, 2018 at 09:12:56AM -0500, KENNETH ROY CABRERA TORRES wrote:
> Hi dear R users:
>
> I'm trying the following code to download an information from the web.
>
> url1 <-
2008 Oct 07
6
Hpricot loop question to read table row values
Hi.
I''ve got a file that contains a table that looks like this:
<table>
<tr><td>column title a</td><td>column title b</td></tr>
<tr><td>row 1 a</td><td>row 1 b</td></tr>
<tr><td>row 2 a</td><td>row 2 b</td></tr>
<tr><td>row 3 a</td><td>row 3
2009 May 25
1
Samba Configuration
Maybe I'm missing this - but I'm having problems setting up some file
shares that are limited to certain groups. I've done countless searches
on setups and on the tree connnect failed error message, and just
haven't found anything that solves my problem.
I am able to create shares that are basically open to the public, but I
know the security is all messed up.
I have openLDAP
2009 Apr 01
2
hpricot won't scrape! (newb question)
Hey all! Just to preface, I am fairly new to RoR, and brand new to
using hpricot.
I am using the following code to scrape this xpath:
"/html/body/div/div[5]/div/div[2]/div[2]/div[2]"
from this url:
"http://www.greatnonprofits.org/"
Here is my code to do so (taken from igvita.com''s related blogpost):
*************
require ''rubygems''
require
2011 Jun 01
4
missing these required gems: will_paginate
Hi EveryBody,
I hope some one help me.
I am new on ROR so might be problem is silly or Obvious. i had
developed a project and i had use "WILL_PAGINATE" plugin in my app.
It''s working well at localhost.
But when deploying on HEROKU, ALL step is going well but when running
$heroku rake db:migrate
ERROR IS
Missing these required gems:
will_paginate
You''re
2009 Aug 06
20
Changing from database sqlite3 to mysql - windows
Hi Guys
I''d like to know how to change from using sqlite3 to mysql. I''m
running windows xp. What is the command that I must type under my
application folder? How to I log into the mysql database afterwards?
My database.yml file contents at the moment are:
# SQLite version 3.x
# gem install sqlite3-ruby (not necessary on OS X Leopard)
development:
adapter: sqlite3