Displaying 20 results from an estimated 1000 matches similar to: "Import XML in mysql"
2007 Apr 19
0
scRUBYt! 0.2.8
This is long overdue (0.2.8 is out for about a week already), but
anyway, here we go:
============
What''s this?
============
scRUBYt! is a very easy to learn and use, yet powerful Web scraping
framework based on Hpricot and mechanize. It''s purpose is to free you
from the drudgery of web page crawling, looking up HTML tags,
attributes, XPaths, form names and other typical
2007 Mar 04
2
Installing
I have skimmed through many web pages, how to''s and editorials, my
final conclusion is that the programming language for this particular
part of the program is going to be Ruby.
There are many reasons:
1. Apple will support it in 10.5
2. There seems to be a lot of support for it in the Mac community
3. Ruby developers seem to be Mac people.
4. There is better documentation than
2009 Jun 12
2
Automate a data load and merge
Hi R list,
I would like to automate, or speed up the process from which I take
several separate datasets, stored in .csv formate, import and merge
them by a common variable. So far I have greatly sped up the loading
process but cannot think of a way to automate the merger of all
datasets into a common data.frame.
My apologies if this has been covered, any R search suggestions are
2007 Jun 03
1
Require not working
Hi,
I installed the require ruby gems and it is there in the lib
directory ..
but when i tried to call it using require its not working
1) with irb: i tired require ''rubygems'' its throwing me false
and for require ''scrubyt'' its throwing the below given error message
LoadError: no such file to load -- parse_tree_reloaded
from
2006 Mar 10
5
PDF::Writer Simpletable Iteration
Hello All:
I have been working with <a
href="http://ruby-pdf.rubyforge.org/pdf-writer/index.html">Austin
Ziegler''s PDF::Writer</a> as a means to produce PDF documents from my
Rails app. I am stumped on how to iterate through a collection of items
and output them in a table format. The way I have tried it so far only
returns the last item in the collection -
2007 Aug 23
0
active scaffold polymorphic model
Hi
I am trying to use active scaffold to build a polymorphic model .
I have a number of models that can be featured and I have a Feature model
that belongs_to :item, :polymorphic => true
In my config.columns I include :item_type and item_id, I also added
:item_name to show the name of the record in the form.
In the form, when a type of model is selected I populate the select box for
2011 Nov 07
1
RpgSQL row names
Hello,
Using the RpgSQL package, there must be a way to get the row names into the
table automatically. In the example below, I'm trying to get rid of the
cbind line, yet have the row names of the data frame populate a column.
> bentest = matrix(1:4,2,2)
> dimnames(bentest) = list(c('ra','rb'),c('ca','cb'))
> bentest
ca cb
ra 1 3
rb 2 4
>
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.
2010 Feb 15
5
help on how append html tag
Dear all,
@doc = Hpricot(open("#{RAILS_ROOT}" +
"/public/server_exe/#{list.file_path}"))
i need to add <img src = "/ScreenCapture/#{@file_name}"/> element to my
@doc hpricot instance..
Please help me... how can i add the above img src element to the @doc
hpricot instance..
Thank you
--
Posted via http://www.ruby-forum.com/.
--
You received this message
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>
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
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
2006 Jan 19
0
Strange thing with ActiveRecord ??
Hi
I am probably missing something, so please help:
I have a table called ''zipped_responses'' with an ''item_names'' varchar column.
I want to create a comma separated string of ''names''.
I have an ''add_item_names'' method which takes a ''name'' and put it at the end
of a string with a preceding comma.
The
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
2010 Mar 07
8
Parsing XML file with no style info with Hpricot
Hello,
I''ve been trying for hours to parse an XML using Hpricot. Usually it''s
not a problem. Here''s my simple code:
#This works and outputs the proper xml data
@url1 = ''http://www.sportingnews.com/stories/sportingnews/MLB/rss.xml''
@page1 = Hpricot(open(@url1))
<%= @page 1 %>
#This does not work, and I''m scratching my head
@url1 =
2008 Nov 27
3
How to parse info from an xml response
Hi all!
In my app I want to detect what country a visitor is viewing from by
their IP.
Although it''s by no means perfect, the simplest option I''ve found is
by using this site:
http://api.hostip.info/
by passing the ip address as a query, this site returns an xml file
with the country as one of the tags.
http://api.hostip.info/?ip=6.255.255.255 returns (amongst other
things)
2007 Oct 24
3
Working with the response DOM
Hi,
Anyone know a way to traverse/query the DOM in a response?
I''m trying to write reusable story step implementations and as much as
possible want to work with the actual response from a previous GET.
As an example, I often have buttons that POST/PUT a hidden value.
My goal is a reusable step implementation that takes the button label and
works the existing response DOM to make an
2007 Sep 20
4
issues submitting a search form
Hello to the list and thanks to Aaron for the cool software.
I''ve been fooling around with Mechanize and Hpricot for a couple of
days and from the docs I''ve read, the following code SHOULD work but
doesn''t. I''ve tried the same code on a couple of different sites and I
get the same exception for each. Any pointers or suggestions are
appreciated.
2007 Feb 20
7
How to Get data from Web Page to Database.
Hi,
I want to get the details from a table which is displayed on a Web
page into the Database.
How to read that Web page ? I mean if there is table Student details
like Roll no., name etc.
And I want to read that table & store it into my database in table
My_Student. How to do this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2009 Aug 24
5
extract keywords from string
hi -
i have strings that i need to extract keywords from. the string might
have html tags, urls, etc. i need to extract the keywords from the
string. i imagine i''m not the first guy to have to tackle this
problem. is there a gem i can use or anyone have any ideas how to
approach this?
thanks,
dino