Displaying 5 results from an estimated 5 matches for "ostruct".
Did you mean:
obstruct
2010 Jun 15
2
ActiveRecordConnection from jobs script
...tion'': ActiveRecord::ConnectionNotEstablished
(ActiveRecord::ConnectionNotEstablished)
Do I have to require something else?
This is what I am already requiring:
require ''rubygems''
require ''hpricot''
require ''open-uri''
require ''ostruct''
require ''active_record''
Greg
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez...
2007 Oct 26
3
Selecting a database from the application itself?
Hi everybody,
I just started thinking about a project and am seeking some help
regarding its design.
The idea would be to create labels (i.e. address labels).I could let
users type the text manually, but I dont think they would appreciate
that when they''ll want to print 5000 addresses.
I can also probably let them import csv files, that should not be a
problem, but playing with those
2020 Feb 19
2
Poor write performance with golang binding
...#39; operation (that writes device content to stdout)
is reasonably fast with both language implementaitions (doing around
70 MiB/s).
Why is this, how the Go binding could be improved?
Regards,
Csaba
<code lang="ruby">
#!/usr/bin/env ruby
require 'optparse'
require 'ostruct'
require 'guestfs'
module BaseOp
extend self
def included mod
mod.module_eval { extend self }
end
def perform gu, opts, gudev
end
attr_reader :readonly
end
module OPS
extend self
def find name
m = self.constants.find { |c| c.to_s.downcase == name }
m ? cons...
2020 Feb 19
0
Re: Poor write performance with golang binding
...d.
Can you enable tracing in both (g.set_trace (true)) and make sure that
the operations being done are the same for both languages?
Rich.
> Regards,
> Csaba
>
>
> <code lang="ruby">
> #!/usr/bin/env ruby
>
> require 'optparse'
> require 'ostruct'
> require 'guestfs'
>
> module BaseOp
> extend self
>
> def included mod
> mod.module_eval { extend self }
> end
>
> def perform gu, opts, gudev
> end
>
> attr_reader :readonly
> end
>
> module OPS
> extend self
>...
2010 Oct 06
16
Dealing with an EAV database
I''ve inherited an EAV database and there''s really no option to remodel
it. Data is stored as key_name, key_value pairs
Trying to return a meaningful, unified recordset is far too complex to
be efficient.
I''ve decided to make use of the MySQL GROUP_CONCAT, and CONCAT_WS
functions to return a fast query result, with the consolidated fields
as one string.
The final data is