Displaying 20 results from an estimated 7000 matches similar to: "select lists - DB best practice"
2006 Oct 29
3
Best practice - polymorphic or not
Hello I have this scenario (hope it is understandable):
I have a model to support fact messages of different types. This is
sport related and I have currently the following model design.
matchfacts (is the generic table connecting all matchfacts to for
instance a match/game, match has_many matchfacts).
Some matchfact-data is generic, like the time of fact and therefore the
data should be stored
2007 Oct 16
3
Controller iterating through returned records and appending to each
I have a controller that gets a list of employees (which has an "include =>
[:salaries, :incentives, :billablegoals, :reviews]"). I then need it to
iterate through each employee and determine their current active goal based
on the "effective date."
After playing around with it a bunch, I got the following to work. Only
problem is that if I remove the "@employees.each {
2020 May 17
2
Best practice multi-homed AD DC
Dear all,
as I am currently planning a network with Samba AD DC I was wondering if
you can recommend any best practice for a multi-homed AD DC.
My current plan is to have one NIC for Samba services and a second one
dedicated to management functions (e.g. SSH) on a separate network
restricted to admin users.
In a testbed scenario I already discovered that once both adapters exist,
samba seems to
2012 Nov 26
3
Passing lists between functions
I'd like to pass a list object created by one function as an argument of
another function. once inside the second function, I'd like to break the
list up to it's individual elements, each then identifiable by the 'names'
of the list.
The list looks something like
lst<-list(a=1, b=2, df=5, g=7)
then inside the function I've been writing a sequence of statements that
2003 Mar 21
2
winspool.drv problem
I'm a new WINE user and I've got a problem, and I've already googled
for an answer.
The problem is that when I invoke WINE I get an error message:
err:module:PE_fixup_imports Module (file) WINSPOOL.DRV (which is
needed by X:\_ISTMP3.DIR\_INS5576._MP) not found
My steps:
1) use dselect to download Wine 20030115
2) use dselect to download winesetuptk
3) run winesetuptk
2012 May 02
2
Column with dynamic db type
Hi,
I have a Question model where the answer to the question can have
multiple db type (integer, string, boolean, ...).
I would like to know if you have a better solution than this one:
Question:
question:string
answer_type:string
AnsweredQuestion:
question_id:integer
answer:text
answer_type:string
Ex: AnsweredQuestion.create(:question => 1, :answer => ''5'',
2007 Jan 04
5
uninitialized constant oddities
hi there!
unfortunately, we are repeatedly having problems with uninitialized
constants in our rails app (v1.1.6), which is running on a mongrel
cluster behind apache''s mod_proxy_balancer.
---- snip ----
NameError (uninitialized constant Base):
[...]
/app/models/image.rb:90:in `subclasses''
/app/models/image.rb:98:in `subclass?''
2008 Feb 14
1
ZFS ACL Support
Hello,
I am running Samba 3.0.28 on a Solaris 10 8/07 x86_64 machine.
Directory services and authentication are provided by MS Active
Directory's LDAP and Kerberos.
My problem is that, when attempting to add an ACE to a file from Windows
(XP, SP2), I get an error saying "Access Denied". The share is a
directory on a ZFS filesystem (NFSv4 ACLs). Below is the share definition:
2007 Feb 13
7
Specs of code that use Time.now
Hi
Just trying to spec a Rails model that defaults a valid_until date to
this time tomorrow. I''ve done something similar involving Dates, and
you can stub the :today method to return something fixed. But when I
tried this with Time, I found that RSpec calls Time.now four times
per spec. So there''s no way to spec code like 1.days.from_now . The
best I can come up
2024 May 08
3
Wiki - Best Practise to install a 2nd AD-DC or "backup"-DC
Hello list,
I searched the wiki, but couldn't find any article on this topic - maybe
I used the wrong terms ...
Is there a "Best Practise" documentation how to install a 2nd AD-DC (or
"backup"-DC)?
Cheers,
Torsten
2006 Jan 05
6
Inheritance Question
Hi,
My application has a table of People that has information about
them, and I want to have a subset of those people as Users - people
that can login to the application.
What is the best way to do this? Add columns to People that only
Users would use? I''ve read the threads on single table inheritance,
but it seemed a little bit wasteful: 10,000 people vs 50 users
For those more
2006 Aug 11
6
css - location of files.
Hi all.
I have the following scenario.
http://myapp/site1 is using <%= stylesheet_link_tag ''myapp_standard'' %>
to define the stylesheet for layout, I have myapp_standard.css in
/public/stylesheets and it works fine.
However, in the stylesheet I define a image to use for my site
background. eg:
html, body{
background-image: url(mysite_background.jpg);
padding-top:
2000 Feb 08
2
Slow printing/Server authentication
I am running Samba 2.0.6 on HP-UX 10.20. I serve out print services
sitewide to a couple of hundred printers. They are networked, jet direct
connected. However, they show as local devices on the server (we
implemented BSD printing on the HP ourselves). I have up to about 600 users
utilizing this service. We use security set to server with an entry for
everyone in the password file. The
2011 Feb 03
1
reusing variables "best practices"
Hi All,
I''m in the process of creating Puppet modules for my load balanced
environment. I have multiple Apache nodes behind a load balancer and each
Apache virtual host has its own internal IP. I''ve created an Apache module
that does this by creating an Apache vhost template and define my own
variables that are substituted by variables I''ve defined in my nodes
2006 Jul 01
3
best approach to add form elements dynamically
I am struggling with how to add dynamically add form elements to a form
based on user action. Now here is my situation:
I have model Project that has_many line_items
On the form to create a project I initially display form elements (some
drop downs and text boxes) for adding just one line_item. There is also
a button or a link on the page (not sure if this should be in the main
form or
2008 Jul 07
6
MiniMagick, and processing thumbnails...
I have a requirement that can''t be that outrageous....
I want to be able to upload an image, and have multiple thumbnails be
created for each. Then, I want to post process each image (the main
image plus the thumbnails) to add borders. The trick is that the
borders need to be different for each image. I thought I could use
the after_resize handler, but when I try to add a border to
2006 Apr 12
4
rails stack on debian
I am putting a rails stack on a debian linux box. Ezra did a great job with
his tutorial <http://brainspl.at/rails_stack.html>
What I am in doubt is what is recommended / common practise to install stuff
which is not availble yet with apt-get (eg. ruby 1.8.4, postgresql 8.1,
lighttpd).
the options I played with (=> and the conclusion):
compiling from source (get source straight from
2013 Mar 06
1
can you suggest on extending ogg as short-clip container and the make of its tool?
On Tue, Mar 5, 2013 at 7:43 PM, <gildororonar at mail-on.us> wrote:
> very short context clips, most of them less than one
> second, only chokes file systems.
>
I'm not sure how you reached this conclusion, but I think you should
revisit it. I think everyone, including you, will be a lot happier if you
store each sound effect clip in its own file. This is a common practice
2018 Jun 06
4
Recurrent DNS issues after DC loss
On 06.06.2018 16:02, Rowland Penny via samba wrote:
>
>> I seem to remember having read here on the list, that it is no good
>> idea to mix samba versions in a domain. If there is sound advice to
>> do it anyways, I would be up for trying it. However, as I have
>> written above, I messed up the uid/gid ranges. To my understanding,
>> later versions of Samba (like
2006 Mar 28
1
Rails noob db questions
Hi, I''m trying to get my head around rails, but the documentation seems
sparse at best (and manuals.rubyonrails.com is unreachable from my location
for whatever reason). I''m trying to figure out a few things:
1) The documentation for the magicfields mentions using datetimes instead of
timestamps, which pgsql doesn''t appear to support. What''s the answer in this