Displaying 20 results from an estimated 900 matches similar to: "Extending the to_s method"
2010 Oct 08
1
VT-d with P6T Deluxe
Hi,
I have an ASUS P6T Deluxe and I''m trying to use VT-d with Xen. I have also
tried it with ESXi and Parallels Workstation Extreme - none of them work
correctly.
>From reading the xen-user and xen-devel list archives, I see that this
motherboard has problems with malformed DMAR tables. Is there anything I can
do to fix/workaround this or am I completely stuck?
I did notice
2007 Nov 14
1
couple of questions
I''m using the latest backgroundrb. Do I need to setup a worker in
order to use it with Rails?
I remember using "Worker::RailsBase" before.
Also, how do I access the logger from within the worker?
Thanks a lot!
--
Lalo
2006 Nov 21
1
rendering from within a worker
I''m using backgroundrb for its scheduled jobs.
Now, a job that runs on a daily basis creates an xml file that I
currently create with an .rxml template.
Can I run a controller action from within a worker ? Can I render() a
template from within a worker ?
Sorry, I haven''t grasped the whole rails/backgroundrb relationship so
I don''t know what I can and not do.
Thanks
2006 Nov 20
2
schedule support on latest svn, a question
I''m running the latest backgroundrb mainly for scheduled tasks support.
As per the documentation I created the backgroundrb_schedules.yml with
the following:
simple_label:
:class: :document_sorter_worker
:worker_method: :do_work
:job: :bleh
:trigger_args:
:start: <%= Time.now + 5.seconds %>
:end: <%= Time.now + 10.minutes
:repeat_interval: 1.minute
Under
2005 May 04
0
[LLVMdev] Re: stacker doc
Hi Lalo,
Its been a while since I've had a Stacker question!
The answer is in the StackerCompiler::handle_while function in
StackerCompiler.cpp in projects/Stacker/lib/compiler. Apparently the
control value is only examined (not popped) for the "WHILE" operator.
Take for example the prime.st sample program. The first thing it does is
process the arguments with a WHILE loop:
2015 Nov 26
2
Bug#805508: Bug#805508: Bug#805508: xen: Unable to create HVM domUs
On 19.11.2015 11:00, Ian Campbell wrote:
> On Wed, 2015-11-18 at 23:07 +0000, Thomas Jepp wrote:
>>
>> [...]
>> xc: error: Could not open kernel image '/usr/lib/xen/boot/hvmloader' (2 = No such file or directory): Internal error
>
> This is the wrong path, in the Debian packages it should be /usr/lib/xen-
> 4.6/boot/hvmloader (and this should be arranged by
2012 Jul 05
1
hash to_yaml in erb template not giving valid yaml
Hi,
I want to use a file resource to write a facts.yaml file for
Mcollective. For some reason it won''t provide a valid yaml format if I
dump my scope to hash and convert to_yaml.
file {
"/etc/mcollective/facts.yaml" :
owner => root,
group => root,
mode => 400,
loglevel => debug,
#content => inline_template("<%= scope.to_hash.reject {
2010 Jul 17
1
not able to find to_yaml definition
I am looking at rails edge source code.
I am able to do
puts User.find.to_yaml
However I am not able to find piece of code where ''def to_yaml'' is.
How this to_yaml serialization is working?
can fully understand how to_json and to_xml is working but to_yaml
beats me.
Thanks
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2007 Oct 07
1
How to store a Mechanize object in the database?
Hi,
I am trying to save a Mechanize object in database (using a Rails Model).
But the save operation throws a TypeError
Considering that "agent" is an instance of a Rails Model and "user" is
defined as a "text" type in the Model.
irb(main):039:0> agent.user = WWW::Mechanize.new
#<WWW::Mechanize:0xb71295f0 @follow_meta_refresh=false, @key=nil,
2006 Jun 23
0
to_yaml problem with option hash
Hi,
I''m trying to make a fixture for testing with a serialized column. In
the YAML fixture I''m trying to fill the serialized column with the
to_yaml function. But I keep getting the ''---'' separator, which I don''t
want because it is only a ''partial'' yaml fill.
According to the documentation to_yaml takes a hash of options, so
2015 Nov 18
4
Bug#805508: xen: Unable to create HVM domUs
Source: xen
Version: 4.6.0-1
Severity: important
Dear Maintainer,
I attempted to create a HVM domU - using a config that previously worked
on xen 4.4 (on Jessie).
When I execute "xl create <vm config>", I get:
Parsing config from router.internal.tomjepp.uk
xc: error: Could not open kernel image '/usr/lib/xen/boot/hvmloader' (2
= No such file or directory): Internal
2011 Mar 29
0
Issue / code smell in AssociationProxy
I came across an issue in my code and after a hard debug session I
found something that smells.
First the context of my issue. I have a AR object that has a
polymorphic belongs_to currently tied to nothing, I want to dump it to
YAML.
record.to_yaml
This raises the following exception:
TypeError: wrong argument type nil (expected Data)
from
2014 Aug 27
0
Bug#737905: Seabios 128k dropped xen support, use 256k instead and update build-dep
Control: reassign -1 src:xen
On Sb, 23 aug 14, 18:18:51, Thomas Jepp wrote:
> After doing a xen upgrade this morning to 4.4 I hit this same issue.
>
> I?ve compiled a set of test packages from this commit: http://anonscm.debian.org/cgit/pkg-xen/xen.git/commit/?h=feature/seabios&id=44daa679dc80f2df734e5471476df159bc0ad38d
>
> My HVM domUs now start as expected so this seems to
2010 Dec 17
1
flash[;notice] not display after redirection
I read all previous posts about the same subject in Devise group but
couldn''t find any answer, so iy may not be related to Devise , so
I debugged it ..
.
class Users::RegistrationsController <
Devise::RegistrationsController
..
# POST /resource/sign_up
def create
build_resource
if resource.save
if resource.active?
set_flash_message :notice, :signed_up
2009 Mar 12
4
Serving 120 concurrent calls
Hello,
a local prison contacted us regarding some calling card solution.
they need 4 E1s to serve 120 rooms in that prison.
we are planning on using 4 servers to serve the calls and one for the database
servers' specifications are:
2.8 Dual Core Proccessors
2 GB Ram
160 Sata Drive
each server will be provided with 1 E1 card
Questions are:
1- will those servers be able to handle that ammount
2009 Dec 15
0
Problems reloading plugin extending AR model
Hi,
I have an AR model called Entity, which is extended in a plugin like
this (this is in a file under lib/ which is required by init.rb of the
plugin):
http://github.com/dedomenon/madb_notifications/blob/master/lib/madb_notifications_lib.rb#L8
Entity.class_eval do
def user_subscribed_to_creation?(user_id)
NotificationSubscription.find(:first, :conditions => [
"source_filter
2006 Jul 10
2
acts_as_ferret 0.2.2
Hi all,
I just tagged acts_as_ferret 0.2.2 as the current stable version, so get
it while it''s hot ;-)
new features:
- added support for the multiple models/single index approach.
- find out the total number of search results by calling total_hits on
the array returned by find_by_contents.
fixes:
- trac tickets #20 (find_by_contents breaks ferret sorting) and #24
2009 Jul 08
9
Question about optimal filesystem with many small files.
Hi,
I have a program that writes lots of files to a directory tree (around 15 Million fo files), and a node can have up to 400000 files (and I don't have any way to split this ammount in smaller ones). As the number of files grows, my application gets slower and slower (the app is works something like a cache for another app and I can't redesign the way it distributes files into disk due
2009 Apr 09
1
method_exists? is missing?
In a controller run through webrick I do this:
@entity = Entity.new
print @entity.methods.sort.to_yaml
and I see this:
- logger
- mark_for_destruction
- marked_for_destruction?
- metaclass
- method
- method_missing
- methods
- new_record?
There is no method_exists? method. If I instead do this in a console
session, I see this:
$ script/console
>>
>> @entity = Entity.new
=>
2006 Jan 11
0
Limit attributes written out by to_yaml
I want to write out a series of records to a text file so that I can
quickly edit them and then upload then again into the database. To do
this I am using YAML and some code that looks like this:
item = Item.find 153
File.open( ''item.yaml'', ''w'' ) do |out|
YAML.dump( item, out )
end
This dumps out all the field names and values which are stored in the