Displaying 20 results from an estimated 800 matches similar to: "Mongrel & irbrc"
2011 Apr 18
2
rubygems fail - require hpricot!
Hi guys,
I wanted to fetch some info from webpage and use it in my db. I read
hpricot is one way to do it. But the problem is I''m unable to use it
with my app. For some reason after successfully installing hpricot it
fails when I try to use it in the rails console.
I''ve been trying to fix this for the last four-five days. I''m stumped !
I tried re-installing everything
2010 Jul 21
3
smbd -D hangs
I'm testing both sunfreeware and official sun (sfw) samba on Solaris
10. For some reason since yesterday, the smbd process just "hangs" at
the start.
No log is generated on server side
Where smbd is started, I can't find any open port on 139 or 145
My OS is Solaris 10
# uname -a
SunOS labo2 5.10 Generic_142900-13 sun4v sparc SUNW,SPARC-Enterprise-T5120
#
2006 Oct 13
3
error running webserver 7 with the DTrace dvm agents...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body text="#330000" bgcolor="#ffffff">
<tt><font size="+1">I am attempting to run the sun webserver 7
2010 Dec 11
2
Problem using rvm in bash script
I am using rvm installed on Ubuntu 10.04 as recommended in the rvm
docs (including changes to .bashrc) and all is working well with
several versions of Rails, and Ruby 1.8.7 and 1.9.2.
If I run
rvm use 1.9.2
it says
Using /home/colinl/.rvm/gems/ruby-1.9.2-p0
and if I run
rvm info
It shows exactly what I would expect for 1.9.2 and I can start the
rails server and all is well.
The problem arises if
2006 Aug 10
4
Speeding up ActiveRecord creation?
My completely empty model (no validation callbacks etc etc) takes an
average of 0.05 seconds to create, at least according to
Benchmark.realtime{200.times{Message.create(:from =>
"me@here.com", :message_type => ''email'',
:subject => "hello", :body => "goodbye", :sent_at => Time.now)}}/200
That''s a little slower than
2006 Jul 10
3
Receiving mail - "No such file to load -- pathname"
I''m using postfix in OS X to receive mail and forward it to my rails
app. When it tries to feed the email into rails, it fails with the
following error:
"/Users/jon/Developer/OneMod/script/runner ''MailMan.receive
(STDIN.read)''".
Command output: /Users/jon/Developer/OneMod/script/../config/
boot.rb:7:in `require'': No such file to load --
2006 Jul 21
3
Re-formatting email line breaks
I''m trying to re-flow email messages, removing the line breaks that
get added by mail programs so that the lines don''t exceed 72 characters.
Mail.app and Thunderbird seem to insert a space character before each
added line break.
Outlook replaces new lines in the email with double \n''s, then uses
single \n''s for the ''soft'' line breaks.
2006 Aug 12
2
Mongrel 0.3.13.4 headers seem a bit broken...
I''m running a Rails (r4720) app on OS X 10.4.6. Mongrel 0.3.13.3
works perfectly for me. Mongrel 0.3.13.4, not so much.
Redirects don''t work, for one thing. This rails code :
redirect_to :action => ''login''
correctly redirects me on 0.3.13.3. Here''s the header I get back :
HTTP/1.1 302 Moved Temporarily
Content-Length: 93
Connection: close
2008 Jan 05
1
imap cores
Experts,
(Now that I am able to run imap...)
Here's what I am seeing with imap, it seems to die in the latest
nightly. (tss, I am still trying to get dbx to work properly, maybe it
won't, but I got some more details here.)
...
2 select "INBOX"
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)]
Flags permitted.
2013 Feb 04
2
reshape help
Dear R users -
I have a list of patient identifiers and diagnoses from inpatient
admissions. I would like to reorganize the list, presently in a long
format to a wide format in reshape, but in the absence of a "time" element,
I am uncertain how to do this - any help greatly appreciated.
ID Dx
A nausea
A diabetes
A kidney failure
A heart attack
A fever
B fever
B
2006 Jul 20
5
Why don''t I get 404s?
When I go to a missing page in my rails app, I get the 500.html page,
and this in my log output:
no route found to match "/asdasd" with {:method=>:get}
./script/../config/../vendor/rails/actionpack/lib/action_controller/
routing.rb:1057:in `recognize_path''
./script/../config/../vendor/rails/actionpack/lib/action_controller/
routing.rb:1047:in `recognize''
2006 Jul 12
1
+ camping 1.4.123
And now:
gem install camping --source code.whytheluckystiff.net
I hope this will be the last development release before 1.5.
* ActiveRecord no longer required or installed.
* If you refer to Models::Base, however, ActiveRecord will be loaded
with autoload. (see lib/camping/db.rb)
* new Camping::FastCGI.serve which will serve a whole directory of apps
(see TheCampingServer[1])
*
2006 Oct 03
4
! camping 1.5 + markaby 0.5
Not too different from their corresponding last releases, but documentation
has been filled in for both.
To upgrade:
gem install camping --source code.whytheluckystiff.net
And, here is a complete changelog:
== Camping 1.5
* Camping::Apps stores an array of classes for all loaded apps.
* bin/camping can be given a directory. Like: <tt>camping examples/</tt>
* Console mode -- thank
2008 Mar 24
4
Doesnt show log on command prompt
I have latest version of mongrel installed.
But when I run ''ruby script/server'' it starts the server and shows
nothing else, like development log it used to show on my previous dev
machine.
Any idea?
--
Posted via http://www.ruby-forum.com/.
2008 May 12
12
[Bug 1463] New: Running nohup sleep 70 & and then exiting shell, hangs ssh
https://bugzilla.mindrot.org/show_bug.cgi?id=1463
Summary: Running nohup sleep 70 & and then exiting shell, hangs
ssh
Classification: Unclassified
Product: Portable OpenSSH
Version: 5.0p1
Platform: Sparc
OS/Version: Solaris
Status: NEW
Severity: normal
Priority: P2
Component:
2006 Aug 07
2
Getting an array of ids from form checkboxes?
Is it possible to set up a list of checkboxes so that the form
parameters are given in an array (eg {"delete_list" => [3,6,7]}) ?
At the moment I''m using
<%= check_box_tag "delete_list[#{post.id}]" %>
...which gives parameters looking like {"delete_list" => {"3" => "1",
"6" => "1",
2009 Mar 27
3
ANNOUNCE: Hirb - A gem enhancing your script/console
Hi,
I''m announcing Hirb, a mini view framework which enables script/
console to provide custom views.
Out of the box your activerecord objects come back as ascii tables.
You can also configure your tree-based models to return as ascii
trees:
Numeric
|-- Float
|-- Integer
| |-- Bignum
| `-- Fixnum
|-- Date::Infinity
`-- Rational
I''ve written two tutorials on
2007 Feb 01
3
with-arguments block is executed regardless of method?
I have a test case where I''m stubbing one method (''jobs''), and
mocking another (''new_worker'')
MiddleMan.stubs(:jobs)
MiddleMan.expects(:new_worker).with{|args| args[:class]
==:download_worker}
MiddleMan.jobs()
The above code results in an error ("The error occurred while
evaluating nil.[]") - calling ''jobs'' results in
2005 Aug 29
14
Oracle 9.2.0.6 on Solaris 10
How can I tell if this is normal behaviour? Oracle imports are horribly slow, an order of magnitude slower than on the same hardware with a slower disk array and Solaris 9. What I can look for to see where the problem lies?
The server is 99% idle right now, with one database running. Each sample is about 5 seconds. I''ve tried setting kernel parameters despite the docs saying that
2009 Oct 25
21
zfs inotify?
OK, so this may be a little off-topic, but here goes:
The reason I switched to OpenSolaris was primarily to take advantage of ZFS''s
features when storing my digital imaging collection.
I switched from a pretty stock Linux setup, but it left me at one
disadvantage. I had been using inotify under Linux to trigger a series of Ruby
scripts that would do all the basic ingestion/setup for