Displaying 20 results from an estimated 7000 matches similar to: "Changing encoding on text"
2007 Sep 23
16
WinRuby?
Hi all,
With the latest 1.8.6 release out today, I was wondering - what would
you all think of a Windows-only fork of Ruby? I mean Perl has
ActiveState, right? It ships with a slightly different interpreter and
different libraries, so why not Ruby?
Here''s what I''m thinking:
* Win2k or later. No 95/98/ME support. No cygwin/mingw, either.
* Assume VC++ 8. Use whatever
2007 Apr 05
7
Re: how to use Chinese Characters in wxRuby?
yes,I'm using wxruby2
When I change
"samples/text/unicode.rb" 's content:
require 'wx'
into
begin
require 'wx'
rescue LoadError => no_wx_err
begin
require 'rubygems'
require 'wx'
rescue LoadError
raise no_wx_err
end
end
and run unicode.rb in this way:
ruby -Ku unicode.rb
I got the error message like this:
unicode.rb:119:
2007 Jan 29
4
loading C extension in worker causes bus error on OS X only
In all likelihood, this doesn''t have anything to do with backgroundrb,
but I''m stuck so I thought someone might be able to help.
I have a pretty simple C extension that I built into a gem and have
installed on my system. It works fine when required from rails
(1.2.1).
But when I have a Backgroundrb worker class use the extension (under
os x), I get:
2005 Dec 21
4
How can I taalk to our AS/400?
Hello,
I can do this in java, but want to use Rails.
How can I connect to our AS/400?
Thanks
Frank
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails
2007 Nov 21
7
describe scope
Hi,
Googling ''RSpec describe scope'' didn''t yield much, so apologies if
this question has been dealt with.
It seem well known that a ruby class is ''visible'' between describes,
and if this is a problem then you should use some counter as prefix or
suffix:
''class Item_001; ... end''
Is there any work underway, or sheduled release where
2006 Mar 31
2
Backslash Escaping in View
Ok, I''m hoping this won''t be a forehead slapper, but take a look at this code:
physician.name.sub(/''/, "\\''")
I''m trying to substitute a single quote with a backslash and a single
quote. This seems pretty simple right? Well, someone kick me and
tell me why it''s not :)
Here''s what I''m getting if the
2006 Jan 22
3
Download an Image using Net::HTTP
Hi,
I need to download an image, and I''ve mucked about with Net::HTTP
resp = Net::HTTP.get_response(''www.mydomain.com'', ''/test.jpg'')
f = File.new("test.jpg","w")
f.write(response.body)
And various other combinations using HTTP.get etc. Anyway, I get an
image, but it looks very psychedelic. This is obviously not the correct
way.
2006 Mar 15
7
O''Reilly Rails Cookbook on Rough Cuts
Subject says it all. Anybody taken a look yet?
http://www.oreilly.com/catalog/railsckbk/?CMP=ILC-GG7423313304&ATT=railsckbk
After buying the Ruby Cookbook and the other Rails book, I''m pretty
gunshy about another Rough Cuts purchase.
Sean
2006 Jul 31
6
Unable to install Gems with RubyGems on Intel OSX with DarwinPorts
I followed Duncan Davidson''s Sandboxing Rails with Darwin Ports guide and
everything went fine up till the part where I had to install gems using gem
install. I would get this stacktrace:
Attempting local installation of ''rake''
Local gem file not found: rake*.gem
Attempting remote installation of ''rake''
2006 Oct 24
1
Broken thread Safe connection Management on Mysql (Mysql too many connections errors)
Hi,
There is an issue on socket connection with backgroundrb (rev 47) and
mysql backend: after a certain number of job you reach the mysql
connection limit as socket are never closed and nobody can connect to
mysql anymore till you stop the backgroundrb daemon.
Already reported on:
http://rubyforge.org/pipermail/backgroundrb-devel/2006-July/000066.html,
2007 Nov 09
2
RubyConf 2007 - Thoughts?
Hi,
For those of you that attended RubyConf 2007, what were your impressions?
Any more thoughts on JRuby, Rubinius, IronRuby or Wuby?
Regards,
Dan
2006 Dec 22
3
Zed, you''re a moron :-)
Hi !
My mongrel just starting spitting out these nice lines:
The error occured while evaluating nil.accept. TELL ZED HE''S A MORON.
!!!!!! UNHANDLED EXCEPTION! You have a nil object when you didn''t
expect it!
Not sure what happened or why, but just FYI: Zed, you are a moron :-)
Happy holidays!
Gitte Wange
2006 Jan 06
3
Getting model class by string
Hello,
I have an interessting problem, I''m not sure how to solve :-)
I have the name of a model in a variable like this:
My model is called Article
My var contains "Article"
Now - How do I get the model class, so I can call Article.find,
Article.new etc ... ?
Greetings,
Gitte Wange
2007 Jan 25
1
Link to possible code for symbolic chmod
I''m not sure if this is perfect, but it seems to work well for me so far.
I haven''t tried to integrate it into Puppet because I''m still a bit new to
Ruby.
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/96956
Trevor
_______________________________________________
Puppet-users mailing list
Puppet-users@madstop.com
2006 Jan 16
2
Curl help
I''ve been searching around for a curl implementation on ruby and havn''t
had much luck. I have run into open-uri and Net::HTTP but they just
arnt as robust as curl. The closest thing i found was this previous
thread from July
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/149926
on using ruby-dl to load libcurl. Has anyone gotten any farther on this
2007 Feb 26
5
Continuing a "specify" block after failure
I have some high-level acceptance tests that read a bunch of files,
process them, and then confirm that the processed output matches the
expected output. That is, for each file "a.input" I have a
corresponding file "a.expected" and I basically want to churn through
all of them producing "a.processed" and making sure that
"a.processed" equals
2006 Feb 09
4
Ruby 1.8.4 trouble
Hi!
The ruby installation on my FreeBSD-6 box have been upgraded from
1.8.2 to 1.8.4 by accident. And now all my rails have stopped working.
I can''t produce any cool debug info since I have none. running script/
server just coredumps. Running the sites through apache isn''t an
option since apache won''t start (get lots of these in my log: [Thu
Feb 09 10:38:19
2006 May 22
8
flickr tag question
hey,
i am using the flickr wrapper for ruby and need to access the tags of a
specific photo. i got all the rest working. i must admit i am kind of new to
ruby, but i tried and tried and couldn''t figure it out. among other things i
want to read geotags like in my example here:
http://www.flickr.com/photos/whoisstan/146634506/
i''m sure it is deadsimple and i just overlooked it.
2006 Jan 03
2
Using multiple columns as primary key
Hi!
I''m trying to use a primary key made up of two columns in my model''s table.
But looking at the docs, it looks like ActiveRecord only supports using
one field as primary key.
Can anyone point me in a direction of this or verify that it''s not
supported?
Greetings,
Gitte Wange
2006 May 17
3
Help mixin in class methods
Starting to feel more confident and code is DRYing up nicely, but I''ve
hit a brick wall here and hoping someone can help me.
I''ve got a module, TrustRanking, which extends a number of model''s
instance methods, and I want to extend their class methods too, but I
can seem to work out how to do it.
Simply including the module from the class works a treat for the