Displaying 20 results from an estimated 7000 matches similar to: "Adding model attribute without db field"
2016 Nov 08
3
Secondary samba domain controller not working
Hi,
I have joined my domain using samba-tool domain join with a secondary
samba domain controlller. Everything went successful, but when I turn
off the first DC, I cannot logon using Windows anymore.
Some DNS records might be missing. Is there any way how to late add
these records?
Best regards,
Ronny
--
___________________________________
Ronny Forberger
ronnyforberger at ronnyforberger.de
2010 Mar 26
2
file upload error(can't convert Tempfile into String)
i tried a method to implementa file uploader by using amethod below
this is ma controlller method to upload
def save_imports
Contactslist.save(params[:list])
render :text => "File uploaded successfully"
this is ma view file
.remote
- form_for(@list, :url=> save_imports_list_path(@list, :format =>
"js"), :html => { :multipart => true,
2005 Oct 20
3
[PATCH]Cannot send special keys, such as Ctrl+Alt+Del
Here is the patch useful to send special keys that your graphical user
interface intercepts at low level, such as ctrl-alt-del in X Window.
This patch adds a command "sendkey" to deal with it in the monitor, you
can send keys to the vm. Use - to press several keys simultaneously.
Example:
sendkey ctrl-alt-f1
Signed-off-by: Dan Xu <dan.d.xu@intel.com>
Signed-off-by:
2006 Jun 11
1
Activerecord attribute without db column
Hi,
I''ve a model that is stored to the db, but just one of its atribbutes
doesn''t have a corresponding column on the table (it is used just for a
calculation and still requires validation).
I''ve been succefull by doing what is explained in
http://rails.techno-weenie.net/tip/2005/11/19/validate_your_forms_with_a_table_less_model
But I get an error of a non-existent
2007 Mar 19
5
[LLVMdev] Google SOC - Idea
Getting the front end for Fortran finished is definitely something I
would be interested in working on. I will draft up a little proposal
and send it out to this list.
-Scott
On 3/19/07, Kenneth Hoste <kenneth.hoste at ugent.be> wrote:
> Hi Scott,
>
> On 18 Mar 2007, at 04:22, Scott Fortmann-Roe wrote:
>
> > Hi,
> >
> > I noticed that LLVM had signed up as a
2007 Mar 20
0
[LLVMdev] Google SOC - Idea
Hi,
Here is a rough draft of the application -- a FORTRAN front-end to
LLVM. In accordance with the summer of code specifications it is split
into two portions: the abstract which describes the project, and the
details description which describes me and how I plan to complete the
project.
It's a little long, (but about half the max length the application
directions specify). Would someone be
2008 Jun 03
2
Partitioning a large data frame and writing output CSVs
Hello,
I have a large dataset [536436,4]
I'd like to partition the dataset into 999 groups of 564 rows and output
each group as a CSV files... Obviously I could do this longhand but I know
it is somehow possible to write a loop to do the same thing...
I'd like to group such that the first group is the first 564 rows, the
second group is the second 564 rows ..... the 999th group is the
2006 Jun 14
3
Attributes for a model which are excluded from DB?
If I want to do this but not save to the database, how can I go about
it?
things.each do |thing|
changed = someotherqueryresult
thing.update_attribute :testattrib, changed
end
Essentially I want to create a collection called things with some extra
attributes that are not saved into the database, as they are just used
for sorting in a view and should not be saved (in fact saving them
wastes
2006 Jan 06
2
Re: Some advice on DB modeling
I have more or less the same problem. I''m trying to build a system where
users can enter their friends. But the solutions seems not to work for me.
I used same sql:
CREATE TABLE `friends` (
`user_id` int(11) NOT NULL default ''0'',
`friend_id` int(11) NOT NULL default ''0'',
KEY `user_id` (`user_id`),
KEY `friend_id` (`friend_id`),
2006 Jun 27
0
forms - a better way to pass data?
i know there is a better way to do this..
i am running a logging type program using rails..
a macromedia director program sends some post data to:
http://host/logger
and if the data is okay, it makes a new entry into the database..
the problem is:
when i first wrote it, i had a form that i used to make sure all the
data was moving around okay..
what i did was, named all the form elements
2004 Mar 09
0
winbind error
Hi,
We are using samba2.2.8a compiled with winbind support on an HP-uX machine
with HP-UX11i operating system.
We are experiencing authenticating users from domain controlller.
Sometimes, some windows client are not able to connect samba server.
When we look at log file generated for a user, we see "Unable to initgroups.
Error was I/O error" error messages. (I can also see this
2006 Jun 25
3
Dummy field in a model
I want to have a field in model, which I''m not storing in a database.
And I want to do something like the following in the model code :
validates_format_of :field_NOT_in_db, :with => session[:field]
How can I do it ?
Thanks,
Pratik
--
rm -rf / 2>/dev/null - http://null.in
2007 Feb 14
2
prepend_before_filter
I''ve got a couple of before_filters that need to run in a specific order. One does a redirect_to if a session variable isn''t set. The other does a find which will fail if the session variable isn''t set. So they need to run in that order. But prepend_before_filter doesn''t seem to be working as advertised. Anybody got any insight? I''m still running
2007 Mar 22
2
[LLVMdev] Google SOC - Fortran Front-End Application
Hi All,
Thank you for all the excellent pieces of advice I got in response to
the draft application I sent out.
I have incorporated all (I think) of the suggestions into the
application and it's much improved. Here is the updated version.
Please don't force yourself to read through it again if you don't want
to. I'll submit this version with any suggestions I receive on the
23rd.
2009 May 25
1
Help --- My phone number field saves blank
I have a phone field in my table.
But in my form i have two text boxes to get the phone number and the
country code like below
Enter country code ----- Enter phone code ------
In my table i have to save the phone code field after joining the above
values with "-" symbol.
Example => 0225-25874255
I dont have table field for country_code .
So i created like below
attr_accessor
2020 May 18
2
dsync multiple mailboxes per connection?
Hello,
Is it possible to batch syncs of multiple mailboxes in a single dsync session?
We?re transferring users between servers and want to use dsync to transfer the mail; ideally we?d like to avoid creating a separate TCP connection per user.
Thank you!
cheers,
-Felipe Gasper
2015 Mar 17
2
How to know which protocol version clients use?
Hello,
I currently run samba with
server min protocol = NT1
but I need to move towards
server min protocol = SMB2
is there any way I can detect which clients still use the older protocol
versions? I would like to estimate the impact of the change before i do
close NT1/SMB1.
Thank and kind regards,
Heiner Billich
2006 May 10
2
newbie q on displaying a db field value in the view
My layout calls a few links like so:
<%= link_to ''| Home '', :controller => ''search'', :action => ''''%>
<%= link_to ''| Search '', :controller => ''search'', :action => ''''%>
I would also like to display two values from my user table in the same
layout right after the
2006 Feb 01
0
habtm and counter (xxx_count field in DB)
Hi all
I have the following models:
class Member < ActiveRecord::Base
# DJ Profiles the member is part of
has_and_belongs_to_many :disc_jockeys,
:join_table => ''members_are_disc_jockeys'',
:uniq => true
end
class DiscJockey < ActiveRecord::Base
# Members that are part of this DJ profile
2007 Nov 13
0
FasterCSV: ignoring returns within a db field
Hello,
my goal is to import data into a MySQL-Database using FasterCSV:
Does anyone have an idea how I can force FasterCSV to ignore carriage
returns that occur within(!) a database text field and to read until
"line feed" = end or row is reached? I tried to use option ":row_sep"
but it did not work, it still uses the returns within the text field as
end of row, too: