Displaying 20 results from an estimated 9000 matches similar to: "script/console custom prompt"
2012 Feb 09
1
Autorun Picks Up Options
Hi,
I was trying to use the autorun feature of rspec but noticed that when I
run the command to kick off the ruby scripts it picks up the options that I
give to the command.
''myRubyBin -j optionValue''
This then fails with this error,
/usr/lib/ruby/1.8/optparse.rb:1448:in `complete''
:
invalid option: -j
(
OptionParser::InvalidOption
)
from
2007 Nov 19
1
Capistrano in InstaRails bombs?
Following the book, I try:
cap --apply-to C:\CapPlanner\trunk\Source capplanner
And get in reply:
C:/InstantRails/ruby/lib/ruby/1.8/optparse.rb:1443:in `complete'':
invalid option: --apply-to (OptionParser::InvalidOption)
from C:/InstantRails/ruby/lib/ruby/1.8/optparse.rb:1441:in
`catch''
from C:/InstantRails/ruby/lib/ruby/1.8/optparse.rb:1441:in
`complete''
2007 Mar 01
4
RC1, Rails, and problems with multiple options in spec.opts
I am having inconsistent output with multiple options in the
spec.opts file. I can, for instance, pass --color or --colour, or,
separately, use --drb. But when combining them I get:
/opt/local/lib/ruby/1.8/optparse.rb:1381:in `complete'': invalid
option: --options --color --drb (OptionParser::InvalidOption)
from /opt/local/lib/ruby/1.8/optparse.rb:1379:in `catch''
2024 Jun 06
1
Failed to bind to uuid NT_STATUS_LOGON_FAILURE
On Thu, 6 Jun 2024 10:49:23 +0300
Omnis ludis - games via samba <samba at lists.samba.org> wrote:
> I added a private directory, but this did not fix the problem, and
> for some reason the other path still appears
> testparm -v | grep private
> Load smb config files from /opt/samba/etc/smb.conf
> Loaded services file OK.
> Weak crypto is allowed by GnuTLS (e.g. NTLM as a
2006 Mar 20
1
I need some help with OptionsParser
Hey all,
I must be doing something wrong here. Im calling the following file this way:
ruby script.rb -s 1234
or
ruby script.rb -s1111
#Code snip
require ''optparse''
opts = OptionParser.new
opts.on("-s", "--size VAL", Integer) do |val|
puts "-s #{val}"
puts val
end
But..no matter what I do, I don''t get any values out. I must be doing
2024 Jun 06
1
Failed to bind to uuid NT_STATUS_LOGON_FAILURE
here's the nuance, I just had to put this script in the samba folder,
because after assembly I do not find it in the samba folders, although this
script is in the source code, maybe I forgot to specify some keys before
assembly, but I would like to understand how in this in the script, just
hardcode the paths to the directories
my path
2007 Sep 16
4
"Not Implemented" doesn''t show
I''m going through Peepcode''s Rspec Basics for an overview.
He''s just doing a simple spec:
class PeepCode
end
describe PeepCode do
it "should be awsome" do
end
end
So running spec spec/simple_spec.rb should produce according to his screen
cast:
1 example, 0 failures, 1 not implemented
but I only recieve:
1 example, 0 failures
Also spec
2024 Jun 06
1
Failed to bind to uuid NT_STATUS_LOGON_FAILURE
I added a private directory, but this did not fix the problem, and for some
reason the other path still appears
testparm -v | grep private
Load smb config files from /opt/samba/etc/smb.conf
Loaded services file OK.
Weak crypto is allowed by GnuTLS (e.g. NTLM as a compatibility fallback)
Server role: ROLE_ACTIVE_DIRECTORY_DC
Press enter to see a dump of your service definitions
private
2024 Jun 06
1
Failed to bind to uuid NT_STATUS_LOGON_FAILURE
Thanks for the help, it turned out to fix the script for changing the
password a little and the password was successfully changed, I recreated
the keytab and the error went away, it's very fine thanks again to everyone
for the help
??, 6 ???. 2024??. ? 11:29, Omnis ludis - games <sergey.gortinsc17 at gmail.com
>:
>
> here's the nuance, I just had to put this script in the
2006 Apr 02
16
12 / 16 = 0
Hi,
Just thought it was weird that Ruby doesn''t automatically cast ints to
floats. Seems so un-rubyish
irb(main):006:0> 12/16
=> 0
irb(main):007:0> 12.to_f / 16.to_f
=> 0.75
Jeroen
2011 Jan 26
0
[Rails 2.3.10] uninitialized constant ActionController::AbstractResponse
I am testing some code under 2.3.10 ( w ruby 1.8.7) and when trying
only to start the console , I get the error :
=====
/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:440:in
`load_missing_constant'':NameError: uninitialized constant
ActionController::AbstractResponse
ruby-1.8.7-p330 :001 >
I cannot see what happen in any log ... where or how can i get some
info on the
2006 Oct 09
1
error running 'ruby script/console' => "uninitialized constant RAILS_ROOT" ??
Hi,
Anyone suggest why when I try to run the console via ''ruby script/console'' I
get the following "uninitialized constant RAILS_ROOT" ??
Error:
================================
V:\Source\testapp>ruby script\console
Loading development environment.
./script/../config/../config/environment.rb:3:NameError: uninitialized
constant RAILS_ROOT
2012 Apr 27
3
rails console --sandbox is only half-baked
Recently I''ve found out some mentions to the "--sandbox" parameter to
the "rails console" command.
And I found the idea interesting, but since I''m using Sequel instead of
ActiveRecord I guessed this wouldn''t work for me.
But after talking about this subject in the Sequel mailing list, Jeremy
Evans has brought to my attention that there are some
2006 Jan 27
8
ror/lighttpd - HTML files via port 80 become application/octet-stream?
Hi everybody
I am trying to get RoR to work with lighttpd.
Nearly there, but I am stuck with a strange phenomenon.
If I configure lighttpd to serve pages on say port 2000, I can get at my
testapp fine and see the "Welcome aboard" page.
However, if I configure lighttpd to use port 80, I get a download prompt
from my browser.
If I access my URI like
2014 Mar 21
0
[PATCH RFC V2 4/4] tools: virtio: add a top-like utility for displaying vhost satistics
This patch adds simple python to display vhost satistics of vhost, the codes
were based on kvm_stat script from qemu. As work function has been recored,
filters could be used to distinguish which kinds of work are being executed or
queued:
vhost statistics
vhost_virtio_update_used_idx 1215215 0
vhost_virtio_get_vq_desc 1215215 0
2009 Sep 14
2
[PATCH node-image] add livecd-iso-to-iscsi script to support iscsi root booting setup
This enables the ability to take the ovirt-node-image iso and deploy it to an iscsi disk. It also provides a sample pxe configuration for booting based on the iscsi root device. Includes support for user/password as well as reverse chap user/password.
---
Makefile.am | 1 +
livecd-iso-to-iscsi | 201 ++++++++++++++++++++++++++++++++++++++++++++++
ovirt-node-image.spec.in |
2006 May 25
0
Connection refused
Hey all
Ive been getting this error...
(mod_fastcgi.c.1739) connect failed: Connection refused on
unix:/var/www/sites/stage.butlerandtanner.com/tmp/sockets/fcgi.socket-1
Anyone else seen this error before? i run IRB and get...
irb(main):001:0> require ''fcgi.so''
=> true
irb(main):001:0> require ''fcgi''
=> true
so i know the fastcgi bindings are
2006 Mar 27
2
:through and STI
Hi,
I''m trying to use :through and STI using the trunk version of Rails, but
I get the following error see bottom of this msg[1]
here are my classes.
class Player < ActiveRecord::Base
end
class Ladder < ActiveRecord::Base
has_many :subscriptions
has_many :players, :through => :subscriptions
end
class SingleLadder < Ladder
end
class Subscription <
2020 Feb 19
0
Re: Poor write performance with golang binding
On Wed, Feb 19, 2020 at 03:00:11PM +0100, Csaba Henk wrote:
> Hi,
>
> I scribbled a simple guestfs based program called guestfs-xfer with
> following synopsis:
>
> Usage: guest-xfer [options] [op] [diskimage]
>
> op = [ls|cat|write]
>
> options:
> -d, --guestdevice DEV guest device
> --blocksize BS blocksize [default:
2007 Apr 23
0
Using mapped database connections
This morning I switched over my backgroundrb server from development
mode to production mode. After that all I was getting was errors when
attempting to connect to the backgroundrb server. I checked the
backgroundrb_server.log file and noticed the following exception
20070423-10:30:00 (29673) development database is not configured -
(ActiveRecord::AdapterNotSpecified)
In my database.yml