Displaying 20 results from an estimated 10000 matches similar to: "ActiveRecord and columns with spaces or strange characters"
2006 Mar 28
1
Efficiently convert this SQL statement to ActiveRecord loop
Hey Folks,
My app compares the last known set of files located on a series of
servers against a current snapshot for auditing purposes. Its working
really well, and I''ll open source it when its complete!
Here''s my current issue (and forgive me, I started life as a DBA and I
constantly want to revert to connection.execute.)
The tables to store my objects are
2006 Mar 24
6
Microsoft SQL Server has me stumped
I''m tinkering around with an old legacy table in SQL Server 2000.
Ruby 1.8.4, most recent ADO.rb file from RubyForge, Rails 1.0
Here''s the model:
class InventoryItem < ActiveRecord::Base
set_table_name "[_SMDBA_].[_INVENTOR_]"
set_primary_key "sequence"
end
Everything works fine. I can retrieve records without issue.
However, when create a new
2006 Mar 23
11
ActiveRecord: Oracle metadata loading slow on large database
All,
While attempting to use ActiveRecord against a large database, approx.
1700 tables and 4 million rows, I discovered an inefficiency in
oci_adapter.rb. The problem seems to be the SQL being generated to
lazy-load the columns metadata. "def columns(table_name, name = nil)"
method generates the following SQL:
select column_name, data_type, data_default, nullable,
2005 Sep 30
2
How to use alias interface ?
HiHo,
I'm using wine since a couple of years for a private Diablo game server.
Now, while installing a new server I've a problem where neither the
Wine-Doc nor the Wine-Faq or Google could help me in any way.
My problem with the new server is that I need to configure (or better
restrict) my wine to use my alias-interface instead of the primary one.
I already found the following stuff
2016 Apr 18
0
Permission denied on GPT.ini (Event ID 1058)
Ok,
> I don't think so, I launch gpupdate using local admin account, so as I
> understand it, only computer account is used (since local admin as no
> existence on the domain)
Why a local admin, please use a ?domain admin? ..
Test as follow.
Open de security tab of the GPT.INI.
Advanced settings, last tab, effective settings,
At objecttype, deselect all, select
2011 Feb 07
1
ActiveComputerName vs ComputerName
Hi!
ComputerName and ActiveComputerName are values from registry (HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\).
If I use `wine regedit` to set ActiveComputerName to any value after a short time it becomes equal to the value of ComputerName.
Can I set ActiveComputerName different than ComputerName?
P.S. I have wine-1.3.13 and UseDnsComputerName=N.
2016 Sep 07
0
Issue with spaces and strange characters (è)
Hi All,
I have been looking at this thing for a while now and I think it is a bug in
rsync 3.1.2 version 31. But before I log a defect, I need some confirmation.
My rsync solution is running in Cygwin on my Windows 10 PC to my linux
server. If required, I am rsyncing my files back onto my PC.
The directory path contains spaces in the name and the file name contains
strange characters (è),
2023 Aug 02
1
Override unjoined computername with SAMDOM to allow connection to share
Hi,
I have a Samba 4 domain (separate DC and file server), with a bunch of
Win/Mac/Lin domain joined machines, everything works on that side.
I have a machine with a read-only SOC which can't take a \ or @ in the
username, and in the samba file server logs, I see it is authenticating
with it's computername in place of the domain:
[2023/08/02 09:46:24.265533, 3]
2006 Apr 03
7
Getters and setters problem?
Hi list,
first evening of playing with rails, so please forgive me if I ask
something stupid. ;-)
I created a User model and tried to use ActiveRecord callbacks to
convert the password to sha1 just before saving it. For some reason
postgresql gives me a error because the given password is null. To
test even further I tried to change :login too, same error happens,
:login is empty too.
I am sure
2006 Jun 05
7
Is HABTM Dying?
For a while, I''ve been getting that HMT is replacing HABTM. It appears that
HMT can do all of what HABTM can do and more. The question is: Should I stop
using HABTM? Let''s take a simple case:
A case has many categories
For a given category, there are certain valid statuses
Category
has_and_belongs_to_many :statuses
Status
has_and_belongs_to_many :categories
Question:
Is
2006 Mar 28
8
Problem connecting with an SQL Server 2000 database
Hi,
I?m working on a rails application that uses data from an existing ms sqlserver 2000 database.
Unfortunately I can?t get the connection to work properly.
I used http://wiki.rubyonrails.com/rails/pages/HowtoConnectToMicrosoftSQLServer to make the connection.
- Inserted the ado.rb
- Changed my database.yml to
development:
adapter: sqlserver
database: database_name
host:
2005 Jul 07
0
Migration: server with smb 2.2 -> new server, 2.2 too, weird issues
Hello all at the samba list.
The other day there was a migration of server; the old one had Samba 2.2
(.6) working normally. Every user logged in the domain without problems,
their SIDs and the domain SID were right, everything was ideal. But a
server update was needed, and a new server was installed, also with
Samba 2.2 (.12). The difference in version is not important this time as
other
2006 Mar 24
8
[OT] Does Net::HTTP support secure connections ?
Hi !
I''m trying to connect to an https URL, but it seems it doesn''t work.
Has anyone successfully connected from Ruby to an HTTPS server ?
Thanks !
--
Fran?ois Beausoleil
http://blog.teksol.info/
2006 Aug 02
15
Rails in a Windows World
I work at an organization that is very wrapped up in Microsoft products. I
am trying to get a test application put in however I''m not sure what to do
about the infratstructure. If it were up to me we would put in MySQL and
Apache or Lighty, however its not up to me. The easiest way to get an
application into production at our company would be to use the existing MS
SQL server and IIS
2017 Jul 04
0
node device lifecycle callback can't resive event
Hi all,
I registe node device lifecycle event callback function after connect qemu. In the callback function, I printf the event and detail.
When I plug a USB into host, and then pull out, but there is nothing happen. The callback was not called.
Could you tell me Why? And what dose node device mean?
I want to auto-hotplug usb devices by using libvirt.
Bellow the call of libvirt:
// node
2006 Jun 26
9
Form Mail
What is the most RoR friendly way of making a form mailer similar to
this php one?
http://tips-scripts.com/?tip=form_mail#tip
Or is it easier just to use the php with RoR?
--
Posted via http://www.ruby-forum.com/.
2005 Feb 07
4
network drives
Another nicety may be handling network drives. I''ve been using a ruby
script which manipulate using the "net use" command to map network
drives, disconnect network drives, query to see what drives are
connected, etc..., but it''d be sweet if this type of functionality was
included in win32 package.
Maybe usage like:
nd = Win32::NetworkDrive.new(
2006 Apr 08
6
Deploy with Capistrano Win32 -> Linux
Im trying to deploy with capistrano from win32 to Linux but no success.
I''ve been installed: cwRsync to ssh
I ran
rake remote:exec ACTION=setup --trace
and get:
Anyone knows how to get capistrano log ssh comunication?
Any idea?
Thanks
rake aborted!
End of file reached
c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.0.8/lib/net/ssh/transport/version-negot
iator.rb:51:in `readline''
2017 Dec 15
4
DNS issue with clean install of samba 4.5.12-Debian
Hai Mike,
I post it to the list so everybody can learn from it.
> Why you use "hostname -i" ?
man hostname wil tell.. But i'll try to explain it a bit.
Read the Description, its also about how the hostnames are resolved within the systemfuntions.
Like gethostname and gethostbyname
> root at ad51:~# hostname -i
> 127.0.0.1
> root at ad51:~# hostname -I
>
2009 Nov 10
2
Roaming Profiles and Samba 3.4.x
Hi,
since we did an upgrade from samba 3.0.28 to samba 3.4.x we have trouble with roaming profiles. Currently we are running
samba 3.4.3.
When logging on, the profile folder on fileserver is created, but the user gets an error message:
----
Your roaming profile is not available. You are logged on with the locally stored profile. Changes to the profile will
not be copied to the server. Possible