Displaying 20 results from an estimated 30000 matches similar to: "What am I doing wrong with this? :)"
2006 Mar 21
1
Form Validation
Hi,
I''ve got an interesting one here :)
I have a form with three fields :
serial_number
initial
surname
now, if serial_number is entered, it must be between 1 and 64000. If
it''s filled in, the other two fields must be blank. If serial_number is
left blank then the other two boxes must be filled.
Any suggestions?
--
Posted via http://www.ruby-forum.com/.
2006 Mar 29
13
Rails on Mongrel
Hi,
After following advice from you good folks, I gave mongrel a try in a
cluster design based on the example on the Mongrel website - and it
worked right out of the box which is great - and it''s very fast :)
I have got a bit stuck though. I have two MS Word files in
/public/files/. I can pull back these files no problem but it isn''t
sending a mimetype.
I think I have two
2006 Mar 21
11
Stuck on ActiveRecord
Hi,
I''m having great fun developing with Rails but I''ve come to a problem
that I can''t quite figure out.
I have an Order object that "has_many" order_lines. This works perfectly
and I can see all the lines.
The OrderLine object has an order_id field as well as product_id and
amount.
Now ideally I would want to do :
order.orderline[0].product.name
for
2006 Mar 28
6
Deploying rails...
Hi,
I thought I''d give lighttpd and FastCGI a go but the latest version I''ve
found for fastcgi is 2.4.0 which was released in January 2003. Is this
the right version?
Can anyone recommend the versions I should use for FastCGI et al and
where to find them? I''m not sure I''ve really found what I''m looking
for...
--
Posted via
2006 Jun 25
2
Working out sales tax...
Hi,
Having googled extensively about storing money in Rails, it seems to be
accepted that the best way is to store the prices etc in the smallest
part of the currency so that you can use an integer i.e ?20 would be
stored as 2000 pence.
This is fine and I''ve made a nice pretty wrapper that outputs the price
in the standard form for invoicing and what not - but here I''ve
2024 Aug 14
1
samba-tool user add - weird resulting
When creating AD user using 'samba-tool user add <username> ...',
there are switches for some human name parts specification:
--surname=SURNAME User's surname
--given-name=GIVEN_NAME User's given name
--initials=INITIALS User's initials
and samba-tool (or Samba daemon itself?) assembles other (LDB) attributes
from them:
dn : as
2024 Aug 14
1
samba-tool user add - weird resulting
On Wed, 14 Aug 2024 09:24:03 +0200
Franta Hanzlik via samba <samba at lists.samba.org> wrote:
> When creating AD user using 'samba-tool user add <username> ...',
> there are switches for some human name parts specification:
> --surname=SURNAME User's surname
> --given-name=GIVEN_NAME User's given name
> --initials=INITIALS
2006 Feb 19
2
how would you implement this normalizer?
Names of models in my application have accented characters that imply
unexpected orderings. For instance ?vila should go before Madrid, but
String#<=> puts it the other way aroud.
I am only sorting for views, so it would be OK to do some
normalization on-the-fly on Ruby land, and since the same criteria
has to be used throughout the application I was thinking on some sort
of
2006 Apr 17
1
SOAP and exceptions
Hi,
I''ve been doing more searching, and I''m kinda stuck on how to send back
error messages to a SOAP / XML-RPC client if say for example the
username and password they supplied were incorrect.
Can anyone point me in the right direction?
Cheers,
Pete
--
Posted via http://www.ruby-forum.com/.
2006 Mar 23
3
Returning CSV data to the client
Hi,
One of my apps has to export data for the backend system to process it.
What''s the best way to create a CSV file in Rails and then return it as
a file to the client? i.e when they go to the link /csv/get_data it
would return a csv file.
I''ve been messing with the CSV library and I can get it to write out to
a file, but not sure how to best use this in a web app.
Hope
2012 Nov 02
2
Merge data frame with mispelling characters
Hello dear R-helpers,
I'm working with R-2.15.2 on Windows 7 OS. I'm stucked with a merge of two
data frames by characters.
In each data frame I got two different list of names, that is my main-key to
be merged.
To figure out what I'm saying, I build up a modified "?merge" example, with
errors by purpose:
# Data for authors:
authors <- data.frame(
surname =
2010 Feb 26
2
Routing Error using Paperclip
For some reason I can''t figure out why I am getting a routing error when
I add Paperclip support. I have another test app when similar code is
working.
I created a new test app first without Paperclip support and it was
doing the CRUD operation fine. However when I added Paperclip support I
get the following error?
Routing Error
user_url failed to generate from
2006 Apr 28
7
acts as drop down
Hi
Im using the acts as drop down plugin
and have this code below
acts_as_dropdown :text => "forename", :order => "forename"
It currently makes use of the forename in the option tag, how can I get
it to use the surname as well
ie somthing like ''forename'' . ''surname'' in php
Thanks
--
Posted via http://www.ruby-forum.com/.
2010 Sep 25
1
Newbie question: searching certain fields only
Hallo,
I'm new to xapian and have only started checking it out, so please forgive
my silly questions.
I'm trying to get my head around the following:
Given the following fields (values with prefixes):
Name: ....
Surname: ....
Address: ....
...
How can I (by default) search in Name and Surname only? ie, I want to
ignore the Address field during search, unless I explicitly search it
2010 Dec 19
2
barplot: width of label
Hello,
I try to make barplots with rather wide labels. A simplified example of
this:
x <- c(12, 33, 56, 67, 15, 66)
names(x) <- c('Richard with a long surname','Minnie with a long
name,'Albert','Helen','Joe','Kingston')
barplot(x, las = 2)
Now the label 'Richard with a long surname' is too long to fit beneath the
bars. A simple solution
2006 Apr 12
1
URL Paths
Hi,
I''m looking to rewrite an existing app in Ruby but it makes extensive
use of URL paths. For example a site would redirect to :
/Portal/foo/
and from this I could tell that ''foo'' was the site that did the
redirect. Of course when I try this with Ruby I get "method not found"
which is hardly surprising.
I''ve had a quick look round google but
2019 Apr 29
2
Difficulties retrieving randomly assigned password for newly created Samba user acounts
Hi everyone, I am using Samba 4.5.16-Debian on Raspbian and thanks to
the help offered by everyone here I now finally have a mostly-working
Active Directory network.
I am now at the stage of creating inidividual user accounts for my
domain and unfortunately I have a very basic but fundamental problem! I
currently enter the following input at the command-line to create a new
user on my DC:
pi
2016 Aug 17
3
SOLVED: WINBIND: UID and GID false mappings on domain member
I bump this only to say SOLVED and many thanks to Rowland.
Lessons learned:
1.
Indeed, my problems where related to not having a gidNumber for "Domain
Users".
After adding it I got real wbinfo --user-info on the domain member (file
server).
My test user could log in in his old home from the NT domain preserving the
old UID and GID.
2. (question = why?)
And login.bat was called at
2005 Jul 10
3
not supressing leading zeros when reading a table?
Dear R list,
I have a dataset with a column which should be read as character, like this:
name surname answer
1 xx yyy "00100"
2 rrr hhh "01"
When reading this dataset with read.table, I get
1 xx yyy 100
2 rrr hhh 1
The string column consists in answers to multiple choice questions, not all
having the same number of answers. I could format the
2015 Sep 01
1
Import USER and PASSWORD Samba3+OpenLadp TO Samba4
Thank Rowland Penny-6 and L.P.H. Van Belle for all the help I could not do
that users were exported from script, but I got a "trigger" to matter the
bills ... was ugly to look at, but for me it worked. I exported the CSV,
then edited, made a statement block where each line I gave the samba-tool
user add, edit in Excel and Notepad ++ to find and replace ... it took me 10
minutes to do 300