Displaying 20 results from an estimated 120 matches similar to: "How to dummy a DB adapter?"
2005 Dec 17
1
lost in an ActiveRecord::StatementInvalid
I have an error I don''t know how to debug. I am adding the login
suport in Depot (the example in the RoR book) and
LoginController#add_user throws ActiveRecord::StatementInvalid in an
innocent /login/add_user GET request.
The trace goes down to a call to SQLiteAdapter#table_structure, and
the source code suggests what''s happening is that "PRAGMA
2016 Dec 10
2
winbind rfc2307 - wbinfo -i fails
On Sat, 10 Dec 2016 09:07:13 +0000
Kevin Davidson via samba <samba at lists.samba.org> wrote:
>
> And note this newly highlighted section of the wiki, which deals with
> the UNIX admin’s potential desire to “fix” this problem that users'
> primary group is “wrong”.
>
> https://wiki.samba.org/index.php/Idmap_config_ad#Prerequisites
Care to expand on what is
2009 Jan 14
0
search in sql client
Hello! I'm russian and i have problem with wine.
i have client for SQL server windows.
working client get table with street and keep it in his memory.
All names are russian
I have field where i enter first letter of street and client find similar street in table.
For example...
A = ABRIK
AC = ACAN
ACU = ACUSTIC
But i have problem.
1) table in my client on wine is unsorted (in windows it
2006 Jul 24
3
how to install busy_handler for SQLite3
I get too often SQLite3::BusyException and after searching a bit I
think I''d need to install a busy_hanlder to return true. That seems
to be per connection, how would you do this in a global way in Rails?
-- fxn
2007 Oct 08
1
How to get database adapter type programmatically in rails?
Hi,all
I am developing a Rails application supporting both Mysql and Oracle.
I have to use Native SQL statements some place. While we know the SQL
grammar is quite different for Mysql and Oracle, so I have to get
database adapter type programmatically in my codes to process
different native SQL statements. I haven''t found any document for this
situation. After some research, I have found
2007 Mar 06
10
Does XEN support crash carts?
While VNC is good enough, it doesnt work
if the NIC is down. So is there a way to switch
amongst guest VMs once a crash carts
monitor/keyboard/mouse is attached to the
video/USB/etc. ports (on the back of the physical
box running XEN)?
For the network down (out-of-band)
emergencies, is there a way to
switch amongst domain and/or guest VM
consoles once a crash cart terminal
2010 Aug 13
10
:limit text mysql
I have a rails 3.rc app that I''m developing. I have a text entry in one
my models that can sometimes be quite big. I tried setting :limit =>
4294967296 on the text column in my migration file but this doesn''t seem
to have any effect. The column is till created as a TEXT column rather
than MEDIUMTEXT or LONGTEXT.
Does anyone have any idea why this might be happening? Is there
2000 Jul 06
5
Samba Install
I am looking at installing Samba for use on a production server. I already
have it installed on two systems (version 2.0.6), but do not have installed
to the point of getting the best performance out of it with what is
available. So my question is, what should I (or should I not) install? What
version of Samba that is out is the best? I am aware of Samba 2.0.7 is at
least decent, is it the latest
2013 Jul 06
4
[Bug 66642] New: [nva5] Wrong provoking vertex is selected for flat attribute interpolation (clipping?)
https://bugs.freedesktop.org/show_bug.cgi?id=66642
Priority: medium
Bug ID: 66642
Assignee: nouveau at lists.freedesktop.org
Summary: [nva5] Wrong provoking vertex is selected for flat
attribute interpolation (clipping?)
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter:
2006 Apr 17
7
Should Perl talk to Rails via LWP
Hi folks,
I need your opinions on a basic design issue.
I''ve seen the light of RoR and have replaced my Perl (DBI/CGI) based web
server <-> RDBMS communication with RoR, but I still have a whole host
of users (other servers/OS''s etc) out there wanting to talk to my
RDBMS and they only talk Perl. Also they don''t want to talk Perl/DBI
directly (they are not allowed
2006 Jan 26
42
ruby script/generate scaffold Product Admin hangs
Hi
I am running Mac OX tiger with the installed ruby 1.8.2, and
mysql5 (I checked that it was running in preference). I
tried to run the various fixes recommended in agileweb. I am
stuck on page 57, script/generate scaffold...
> Could you paste in your database.yml file, from the
> "config" folder inside your Rails app? If you have any
> passwords entered there, you should
2009 Sep 28
5
Multi-databases support
Hi,
While I was hacking ovirt-server, I have found that it's currently
restricted to Postgres DB. Even if I like postgres for serious work on a
server, I really prefer to hack/dev locally on a Sqlite or MySQL DB.
I have googled on rails in order to find a good answer for the "foreign
key problem" which forces OVirt to stay on pg. I have found a plugin on
this particular
2016 Dec 10
0
winbind rfc2307 - wbinfo -i fails
> On 10 Dec 2016, at 09:23, Rowland Penny via samba <samba at lists.samba.org> wrote:
>
> On Sat, 10 Dec 2016 09:07:13 +0000
> Kevin Davidson via samba <samba at lists.samba.org <mailto:samba at lists.samba.org>> wrote:
>
>>
>> And note this newly highlighted section of the wiki, which deals with
>> the UNIX admin’s potential desire to “fix”
2004 Dec 16
9
Some help for a beginner please: terser logging
Dear newfound friends,
please be patient. For me reading and writing in English is more painful
than dissecting IP traces :)
I have tried reading through the FAQ but could not quite understand:
I would like the logs to be terser. I think I can live without MAC, LEN,
TOS, PREC, TTL, ID fields normally (maybe need them only in special
situations). Could not understand if/how I can achieve this.
2009 Feb 02
5
[Cucumber] Cucumber and acts_as_xapian
Hey list,
Anyone have experience with acts_as_xapian and Cucumber? I''m
struggling with updating xapian''s index, to actually "find" fluff
that has been indexed..
In a scenario, I''m adding a bunch of articles, and in the actual
search step, I run:
When "I search for \"$query\"" do |query|
%x[rake RAILS_ENV=test xapian:update_index]
2008 Jun 04
8
Why has the --color gone from my life?
Hi all,
Running on OSX 10.5.3, Latest Rspec trunk, Rspec rails trunk, latest
autotest gem and rails 2.1
I''ve lost my colour output in autotest.
rake spec gives colour output, but autotest gives me black and white.
It was working a little bit before, I think I upgraded to the latest
versions of everything to get all the textmate snippets talking and being
friendly to one another again
2007 Dec 20
3
How-to spec this helper method?...
Hey gang,
I have this dead-simple method defined in a helper:
def add_category_link(name)
link_to_function name do |page|
page.insert_html :bottom, :categories, :partial =>
''category'', :object => Category.new
end
end
Where, and mostly how, would I spec this? I haven''t been able to find
how to stub the rjs in a helper spec, so
2008 Mar 13
22
Specifing methods in a steps_for block
Hey list,
I''m refactoring some much-used functionality into a common_steps step
group. Methods like this are in there:
steps_for :common do
Given "a number of existing $types?" do |type|
@initial_item_count = type.singularize.classify.constantize.count
end
When "the user adds an invalid $type" do |type|
post
2009 Feb 28
7
be_valid (validates_format_of ..., :on => :create)
Greetings,
How to write Example which will check if model''s variable''s
format is valid using :on => :create, like this:
class User < ActiveRecord::Base
...
validates_format_of :email, :with => /.../, :on => :create
...
Using following code is not right:
it "should ..." do
@user = users(:example_user)
@user.email =
2004 Jun 14
4
Readline on R-1.9.1a
Hello! I'm trying to install R-1.9.1a with readline on Suse Linux. As
recommended in other posts, I've installed readline and readline-devel:
kevin@redtail:~/R-1.9.1> rpm -qa | grep readline
readline-devel-32bit-9.0-0
readline-32bit-9.0-0
readline-4.3-207
readline-devel-4.3-207
Then I run configure with readline:
./configure --with-readline
The relevant lines are: