Displaying 20 results from an estimated 3000 matches similar to: "rubyful_soup replace element"
2006 Jun 23
1
rubyful_soup works fine as an RB file but bugs in Rails
This is the code:
1 require ''rubyful_soup''
2 require ''open-uri''
3
4 url = "http://www.google.com/search?q=ruby"
5 open(url) {
6 |page| page_content = page.read()
7 soup = BeautifulSoup.new(page_content)
8 result = soup.find_all(''a'', :attrs => {''class'' => ''l''})
9 result.each {
2006 Mar 22
2
Successfully importing Rubyful Soup objects
All,
At the top of my controller, I have:
require ''rubygems''
require_gem ''rubyful_soup''
The rubyful_soup gem has been successfully installed.
However, when I go to instantiate a class from it, using
parser = BeautifulSoup.new(html)
I get
uninitialized constant BeautifulSoup
Is there something else I need to do to see the symbols in the Rubyful
Soup gem?
2006 Mar 22
2
RubyGem loading into a controller (High quality question)
INSTALLATION:
Ruby 1.8.2
Rails 1.0.0
rubyful_soup 1.0.4 (GEM)
FACTS:
0) I have successfully installed the rubyful_soup GEM using (I had
previously installed it, which is why the output may look sparse):
C:\ruby>gem install -r rubyful_soup
Attempting remote installation of ''rubyful_soup''
Successfully installed rubyful_soup-1.0.4
Installing RDoc documentation for
2006 May 18
1
Unnecessary Gem modules loaded under Rails 1.1.2
All,
Rails 1.1.2
Win XP Pro
Rubyful Soup 1.0.4
htmltools 1.0.9
I am terribly confused as to what pulling in a gem does with respect to
how many modules get loaded at runtime.
I am using two gems in my app, Rubyful Soup and htmltools.
RubyfulSoup requires one module from the htmltools gem
(html/sgml-parser).
My app requires the RubyfulSoup gem.
When I started my app, something was causing
2007 Jan 23
3
Someone getting RDig work for Linux?
I got this
root at linux:~# rdig -c configfile
RDig version 0.3.4
using Ferret 0.10.14
added url file:///home/myaccount/documents/
waiting for threads to finish...
root at linux:~# rdig -c configfile -q "Ruby"
RDig version 0.3.4
using Ferret 0.10.14
executing query >Ruby<
Query:
total results: 0
root at linux:~#
my configfile
I changed from config to cfg, because of maybe
2006 Aug 11
2
name conflicts between act_as_taggable and rubyful_soup
both of them use the class called "Tag"
there is a name conflict error when I want to use both of them in rails
how can I solve this error? anybody got some suggestion?
thx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060811/7f09cb14/attachment.html
2018 Jul 19
0
Re: [PATCH] v2v: ovf: add firmware and machine type element
On Thursday, 19 July 2018 15:51:04 CEST Tomáš Golembiovský wrote:
> Add oVirt specific elemnt to OVF. It represents the combination of
> machine type (i440fx/q35) and firmware (BIOS/UEFI).
Other than adding a new element in the OVF, this also enables the
conversion of UEFI guests to oVirt. It is tested? Does it require other
changes?
I'd split the addition of <BiosType> to the
2006 Jul 25
1
RDig document processing error
Hi all,
Am having problems using RDig:
With this rdig config...
cfg.crawler.start_urls = [''http://www.defensetech.org'']
cfg.crawler.include_hosts = [''www.defensetech.org'']
cfg.index.path = ''/my/path/to/index''
cfg.verbose = true
...I get this output:
$ rdig -c config/rdig_config.rb
/usr/local/lib/site_ruby/1.8/ferret/index/term.rb:45:
2007 May 11
0
The Soup - new rails community resource
Greetings all,
I am pleased to announced The Soup - http://the-soup.net/ - a tasty
new resource for the Rails Community.
About
Are you a Talented person that is looking for new and interesting
projects to work on? Are you a Project Sponsor that is looking to
build quality relationships in anticipation of your next hiring cycle?
Inspired by the story of The Stone Soup, The Soup provides a
2007 May 14
0
(no subject)
Greetings,
I am seeing the following in my log quite a bit 20 + times per day.
The stack-trace seems tin indicate an internal issue - is concurrency
related?
== 0.2.1 (Released November 28, 2006 - r162)
My workers continue to function; on the next iteration I believe.
Any thoughts are appreciated.
cheers,
Jodi
allow_concurrency=true
Scheduler.run failure: undefined method
2006 Jun 25
7
Unicode HOWTO?
I am disappointed about the (seeming) lack of Unicode support in Rails.
Is there a howto about working the most important limitations? For
example, figuring out the length of an entered word: "???".length() will
return 6, not 3. So if there is a maximum number of characters a user is
allowed to enter, this won''t work as it should -- it treats strings as
byte arrays instead
2018 Jul 19
5
[PATCH] v2v: ovf: add firmware and machine type element
Add oVirt specific elemnt to OVF. It represents the combination of
machine type (i440fx/q35) and firmware (BIOS/UEFI).
Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
---
v2v/create_ovf.ml | 20 +++++++++++++++++++-
v2v/create_ovf.mli | 2 +-
v2v/output_rhv.ml | 6 ++----
v2v/output_rhv_upload.ml
2006 May 17
0
Rubyful-soup and ''malformed utf-8 character''
Hi Guys,
I am trying to use Rubyful-soup for a simple webpage modification
project. The issue is that when I try to display the modified html
(generated by @soup.to_s) using RJS, an error pops up saying
''malformed utf-8 character''.
I can fix this by using @soup.to_s.toutf8 but that causes some of the
characters in the document to be messed up (ie ''  becomes
2007 Jul 10
0
backgroundrb.ppid
Howdy,
I''m trying to use monit with backgroundrb,
but it seems that backgroundrb.ppid isn''t holding the id of the
backgroundrb task.
jodi at soup/var/www/the-soup/current $ cat log/backgroundrb.ppid
23182
jodi at soup/var/www/the-soup/current $ ps -efl
1 S deploy 23184 1 0 75 0 - 27056 stext 11:27 ?
00:00:04 backgroundrb
1 S deploy 23186 23184 0 76
2016 Apr 26
0
evolution libsoup and samba bug 765106
Hello everyone,
while i was play around with winhq install
winbind-clients.
After this I never can open evolution with exchange ews connector.
https://bugzilla.gnome.org/show_bug.cgi?id=765106
I patches libsoup by my self
diff -up ./libsoup/soup-auth-ntlm.c.prev ./libsoup/soup-auth-ntlm.c
--- ./libsoup/soup-auth-ntlm.c.prev 2016-04-15 14:18:02.680276592 +0200
+++ ./libsoup/soup-auth-ntlm.c
2020 Aug 14
1
Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
>I wonder how difficult it would be to rip off their modifications and revert to a.standard, functional nut.
I think it should be preatty simple. just rename Synology files and replacewith what you think is the best there... it's just a banch of scripts nothing more...
2008 Jul 21
0
[LLVMdev] Casting between address spaces and address space semantics
Hi Matthijs,
Thanks for giving some code so we can discuss this in more concrete
detail. In terms of the information we need, I think you have it
right. We just need a description of how the different address spaces
relate and I don't see much of an issue with how you implemented to
InstructionCombining.
As you also mentioned, I don't like that we pass a reference to
2009 Jul 22
3
How to replace NAs in a vector of factors?
# Just when I thought I had the basic stuff mastered....
# This has been quite perplexing, thanks for any help
## Here's the example:
db1=data.frame(
olditems=c('soup','','','','nuts'),
prices=c(4.45, 3.25, 4.42, 2.25, 3.98))
db2=data.frame(
newitems=c('stew','crackers','tofu','goatsmilk','peanuts'))
2008 Jul 21
2
[LLVMdev] Casting between address spaces and address space semantics
Hi all,
> If I read the standard correctly, the properties of these address spaces can
> be fully captured by defining the relationship between every pair of address
> spaces (disjoint, identical, subset/superset).
>
> I think it would make sense to make these relationships backend/platform
> specific, but for clang and the optimization passes to properly work with
> address
2017 Nov 01
1
Creating Tag
i want to tag categories to its menuname.
i have a csv containing menu item name and in other csv i have a column
containing some strings,
i want to pick that strings from categories and look into menu items if
any menu item containing that string i want to create a new column next to
menu item name flagged as 1 otherwise 0
and the only condition is once a menu item flagged as 1 i don't need