Displaying 20 results from an estimated 2000 matches similar to: "Slow database imports with active record"
2006 Mar 16
6
File Auditing with rails - File I/O issue
Hey Folks,
I''ve written a script to generate a list of all files on a machine,
then zip the results. ?I''m going to stick a web front end on it, and use it to audit some file servers. The problem is that the ZIP compression/decompression isn''t working,
but its not what you might think. ?The script completes, but seems to
not actually write anything.
Here is a short
2006 Mar 17
7
OT: Subversion folder cleanup
How do you clean up your app folder to place onto the server? I want to
get rid of all the .svn stuff.
Seth Buntin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060317/cc81d9f7/attachment.html
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 Jun 15
8
Markaby Installation Issues
Ok,
So I followed the directions.. I did a ''gem install markaby'' (which sounds
like its enough to get me going for rails), but I wasn''t sure, so I tried to
install the plugin as well.
Plugin installation fails looking for a file:
Script/plugin install http://code.whytheluckystiff.net/svn/markaby/trunk
Outputs this error:
+ ./trunk/svnindex.xsl
2006 Mar 17
4
hidden fields
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I''m a rails newbie trying to develop a blog application with rails. I''ve
some troubles to find the best way of automaticly set a field value on
update and creation of a blog item.
In fact my problem is very simple. I''ve a blog table with two column
named create_date an mod_date. And I''d like :
1 - that
2006 Mar 28
2
ADODB and SQLServer
Hey Guys,
I''m absolutely stumped by this error. I haven''t seen it during any of my
development, or working in production until just this week.
Randomly, rails app becomes totally inaccessible until I restart the
webserver. I tossed in some custom error messages stuff, so I could get
the client to send me mail when it broke, and this is the error I''m
getting:
2017 Feb 22
2
question about directory size in linux..
On 2/22/2017 12:27 PM, Anthony K wrote:
> On my ext4 file system, I have a directory that has >2TB and the
> directory entry itself only shows:
>
> $ ls -ld Stuff
> drwxrwxr-x 146 akk akk 36864 Feb 21 21:18 Stuff/
>
> $ du -bs Stuff
> 2093651427987 Stuff
ls -ld is showing the size of the actual directory, NOT the size of the
files stored within and under it.
du
2006 Apr 04
1
Parsing a SQL file directly into activerecord::execute method
Hello folks,
I''m trying to do something like:
1. db = ActiveRecord::Base.establish_connection(:adapter => "mysql",
:database => "app_development", :username => "root")
2. Cmd = File.read(''commands.sql'') <--- Command.sql contains multiple
valid SQL statement. I''ve tested this directly by piping it into MySQL
from the
2006 Feb 24
18
I need more bling!
Hello everyone,
I just showed a friend a prototype of a site offering a service I''m
trying to sell (sorry, not on the Internet yet - he saw it at my
house).
His comment: "Looks like it does everything, but also looks pretty
ugly. You''re not going to wow anybody with that". Sitting back and
thinking about it, he''s dead right - it needs some bling to make it
2006 Feb 28
0
Dallas Ruby Brigade meets March 7th
The Dallas Ruby Brigade begins!
Following in the proud tradition of Seattle.rb, NYC.rb and many
others, Dallas has joined the crowd with its own local Ruby Brigade.
We''ll be meeting Tuesday, March 7th in Addison. The plan is as follows:
* Meet between 6:45 and 7:00 in the lobby downstairs. Because of the
way security works, you''ll want to be timely in your arrival. At
2017 Feb 22
0
question about directory size in linux..
On 23/02/17 06:04, John R Pierce wrote:
> on many modern file systems, larger directories are stored as some
> sort of B-Tree or hash tree, so there's quite a lot of indexing data
> in there along with the actual directory entries
So I gather this depends on the file system.
On my ext4 file system, I have a directory that has >2TB and the
directory entry itself only shows:
$
2017 Feb 23
0
question about directory size in linux..
On 23/02/17 07:42, John R Pierce wrote:
> On 2/22/2017 12:27 PM, Anthony K wrote:
>> On my ext4 file system, I have a directory that has >2TB and the
>> directory entry itself only shows:
>>
>> $ ls -ld Stuff
>> drwxrwxr-x 146 akk akk 36864 Feb 21 21:18 Stuff/
>>
>> $ du -bs Stuff
>> 2093651427987 Stuff
>
> ls -ld is showing the
2006 Mar 08
2
Displaying related tables in forms.. probably an easy question!
Hey All,
I have two tables.. One belongs to another. Why can''t I reference
table1.table2.attribute?
Specifically, using scaffolding:
property.rb -
has_one :PropertyType
property_type.rb -
has_many :Properties
property_controller -
def list
@property_pages, @properties = paginate :properties, :per_page => 10
end
list.html:
1. <% for property in @properties %>
2.
2006 Mar 14
5
Controller Naming Question
Is it possible to have controllers named the following?
/admin
/admin/user
If not, is there some way to get it to work with routes?
I want to have some actions at the url /admin/<action> and some at
/admin/user/<action> (obviously in admin/user controller).
Thanks!!!
2001 Dec 06
2
Terminal Services are extremely slow!
Hi there,
I've been trying to run Terminal Services using wine and it seems to work
but it's sloooow. I'm running dual boot system with Caldera Workstation 3.1,
Windows2000 Professional and Wine 20011106.
Any ideas or success stories?
Here some output lines:
wine --winver win2k "MTSC.exe"
fixme:imm:ImmAssociateContext (0x00010025, 0x00000000): stub
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
2007 Jul 31
2
Camping-list Digest, Vol 15, Issue 2
Eli,
This is interesting. I enabled DEBUG logging in Apache and tailed the
error.log. Lo and behold, you''re right, its a problem with one of my
require statements. Namely:
`gem_original_require'': no such file to load -- camping/fastcgi (LoadError)
Strange, it works fine when I do it in IRB, or do it from a ruby script at
the bash prompt. Apache runs as the same user that
2006 Mar 17
1
Re: Rails SQL Server adapter
Hey Ryan,
I asked this question awhile back, but any support planned for table
returning functions, or stored procedures?
I''m envisioning basically a mutable model class where you have 1 or more
instance variables defined (with default values) that are used in the
SQL queries as input parameters. When you instantiate the class you can
specifically define these parameters or use the
2006 Mar 08
12
best way to combine results from two tables
I want to combine a selection of data from two tables and display it as
list. Note that this isn''t a join.
i''m looking for something like this:
Table 1: Sheep
Name, Age, Farmer, etc. (sheep specific columns)
Table 2: Cows:
Name, Age, Farmer, etc. (cow specific columns)
For my display I nneed something like this:
Farmer Jone''s Livestock:
TYPE NAME AGE
Cow
2019 Jun 29
5
Mac OS & Folder Timestamps
So this issue might not strictly a Samba problem, but it happens to be
where I found the issue and maybe there's a solution in the server or
someone who's familiar with the problem. Basically I'm using a Pi as a
small nas. I have a folder /media/ and a script that mounts usb drives
there automatically. So I shared /media/ with smb.conf. Windows & Linux had
no issue accessing the