Displaying 20 results from an estimated 10000 matches similar to: "Creating an object from a pp string?"
2006 Aug 08
3
How can i read a properties file in RoR
Hi,
Iam a nubie, i wanna know how can i load/read a .properties file in to
my rails application. For example i have a property file where i have
defined the spanish equivalants of some english words as follows
user Name:nombre del usuario
user Code :c?digo del usuario
likewise. now , where should i store this properties file in the
directory structure and how can i read these in to my
2011 Jan 03
4
How to get soap4r to not bother verifying SSL certificate (verify_mode none)?
Using Ruby 1.8.7, Rails 2.3.8. I don''t want it to verify the cert...
This is my backtrace:
OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=SSLv3 read
server certificate B: certificate verify failed):
httpclient (2.1.5.2) lib/httpclient/session.rb:247:in `connect''
httpclient (2.1.5.2) lib/httpclient/session.rb:247:in `ssl_connect''
httpclient
2006 Jan 08
6
J2EE equivalent
Gang-
1. Is there anything in Ruby that handles the .properites files similar
to the J2EE application servers. Or do I need to define all of the
properties as constants?
2. Is there anyway I can load some of my classes (such as singletons)
during the startup? I am looking for the startup classes that J2EE
containers provide.
Thanks
--
Posted via http://www.ruby-forum.com/.
2007 Apr 25
9
Running specs for a plugin - undefined method ''define'' for object
I''m trying to write specs for a plugin I''m developing named audit_fu, and
I''m running into a problem which I can''t get past it. I''ve got the same
specs setup in the main rails app, and everything works fine there, it''s
just running the plugin specs that I''m having a problem with. My setup is:
- edge rails
- edge rspec (in
2013 Aug 21
1
Trouble with ENC and static.pp : enabling ENC fails to find node even with default node in site.pp
I''m having some trouble with getting an ENC to work alongside site.pp:
Even with a ''default'' node definition, and an ENC that only returns 0,
regardless of input, consistently results in a ''cannot find node'' error.
I''m wondering what I''ve missed here.
I''ve tried to reduce everything to a ''base case'': and
2013 Mar 26
5
Running ENC alongside site.pp (node defn)
Hello,
Is it possible to configure an ENC to provide class definition to a number
of nodes at the same time where a few other nodes are controlled in the
site.pp by node ''FQDN'' {blah} for the same puppetmaster ?
I am wondering once parameters are set for the master to look for an ENC
based definitions, will it conflict with the site.pp node definitions ?
For example these
2007 Aug 24
26
testing behaviour or testing code?
hypothetical question for all you BDD experts:
I want to make sure that a :list action always returns widgets in
alphabetical order. There''s at least 2 ways of doing this:
it "should fetch items in alphabetical order" do
Widget.should_receive(:find).with(:order => "name ASC")
get :list
end
it "should fetch items in alphabetical order" do
[:red,
2006 Jan 02
19
AR: How to store and restore in YML.
Hello-
I have a database with entries that are segmented by customers. I would
like to be able to store / delete / restore a particular customer''s
information. I will need to rebuild the rows on restore and also
rebuild the associations for the different tables.
For example,
customer {
id
name
}
companies {
id
customer_id (belongs_to)
name
}
contacts {
id
2005 Sep 15
9
(newbie) rails app not working after subversion integration?
hello,
if anybody could please help, I''m very late with this project and
have been wasting a lot of time (days and days) getting past the
learning curve to get the infrastructure up (fcgi, rmagick... and now
svn integration). i come from dirty-php-scripting and am a newbie at
all of this :P
I have a rails app that I''ve been developing locally on os x.
originally I
2015 Apr 28
9
[LLVMdev] RFC: Machine Level IR text-based serialization format
Hi all,
I would like to propose a text-based, human readable format that will be used to
serialize the machine level IR. The major goal of this format is to allow LLVM
to save the machine level IR after any code generation pass and then to load
it again and continue running passes on the machine level IR. The
primary use case
of this format is to enable easier testing process for the code
2004 Oct 01
6
xm list dropping domain?
I rebooted xenU from console (dom2) and exited (ctr-]). xm list does
not report 2 anymore yet I can log into 2 via console and it is running
just fine. Is this a bug? I''ll pull/rebuild and see what happens..
(this is xen-2.0, cset 1.1321.1.1, rh7.3 dom0/dom1)
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on
2015 Apr 28
3
[LLVMdev] RFC: Machine Level IR text-based serialization format
2015-04-28 10:14 GMT-07:00 Quentin Colombet <qcolombet at apple.com>:
> Hi Alex,
>
> Thanks for working on this.
>
> Personally I would rather not have to write YAML inputs but instead resort
> on the what the machine dumps look like. That being said, I can live with
> YAML :).
>
> More importantly, how do you plan to report syntax errors to the users?
> Things
2009 Mar 15
2
How can I add TimeoutHandler to EvenmentMachine
Hi, list
Now I am coding for one non-blocking httpclient based on event-machine, and
it seems the client will hang for 50 seconds if the destination is
unreachable. My questions are
1. How can I short the timeout? I had tried
conn.set_comm_inactivity_timeout(5), but it didn''t work
2. How can I add TimeoutHandler to the connection?
Thanks!
/Jack
--
Jack Tang
Software
2015 Apr 29
3
[LLVMdev] RFC: Machine Level IR text-based serialization format
On Tue, Apr 28, 2015 at 3:51 PM, David Majnemer <david.majnemer at gmail.com>
wrote:
> I love the idea of having some sort of textual representation. My only
> concern is that our YAML parser is not very actively maintained (is there
> someone expert with its implementation *and* active in the project?) and
> (IMHO) over-engineered when compared to the simplicity of our custom
2006 Feb 08
4
ssl certificates
Hi,
could someone help me with ssl certificates?
i have mycert.pfx file (client certificate) and CA certificate ca.cer.
i far as i know, ruby doesn''t understand pfx format, so i''ve converted
it to pem format.
in viewer pem looks like:
Bag attributes
blabla
Key Attributes
blabla
---begin rsa private key---
blabla
---end rsa private key-----
--begin certificate--------
blabla
2012 Oct 30
2
RCurl - curlPerform - Time out?!?
Hi,
I am working with the RCurl package and I am using the curlPerform
function for an soap-query.
The problem is that the code is usually working well, but sometimes the
connection gets lost.
So I wrote a while-loop to repeat the query if anything might happened
so that the same query runs again, but if the query-faults it takes a
very long time for the repetition.
My question is if there
2010 Feb 16
7
YAML, UTF-8, TextMate, Notepad
This is not a question but a report on the difficulties I had and the
solution I found with respect to UTF-8, YAML::load, and Ruby/Rails.
Comments are appreciated.
- - -
I had been struggling for two days to get UTF-8 working in my Rails app.
I had/have a localization file, lib\locale\de.yml, that had iso-8859-1
encoding. I could not get that to display properly.
Marnen, quite correctly,
2006 Apr 06
3
RoR and Threads...
Hi,
Anyone who has seen my posts so far will know straight away that I''m new
to Ruby. The kind help and advice I''ve received here has been invaluable
to me and is greatly appreciated! I wish all programming communities
were this friendly! :)
Anyway, on to the question...
I started off on PHP which didn''t require any real multi-threading
techniques - at least for
2011 Feb 28
2
Generation of M3U and XSPF
Hello,
I'm a new user of icecast which is a really cool software.
I use it with the the http proxy module of apache httpd to do port
forwarding with 2 sub domains.
On my router i forward all tcp traffic of the port 80 to my server.
2 Sub domains are redirected to my server :
radio.mydomain.com (icecast)
music.mydomain.com (ampache)
my apache server host the ampache application with a
2010 Mar 18
3
Sending mail using action mailer
Hi everyone,
I am new to ruby and i just wanna send an email using ruby action
mailer. i have been trying it for about a day. Not achieved. so many
replies came in from google but many were beating the bushes ..
can any one send me a correct procedure..
regards
ds
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups