search for: lname

Displaying 20 results from an estimated 71 matches for "lname".

Did you mean: name
2006 Aug 29
2
change password on 1st signon
Is there a way to enable user to change password on first signon?
2002 Oct 18
1
Patch: sftp client support of "ls [flags] [path [localfile]]" feature
...= stdout; if ((n = do_readdir(conn, path, &d)) != 0) + { + if (fp) fclose(fp); return (n); + } /* Count entries for sort */ for (n = 0; d[n] != NULL; n++) *************** *** 583,598 **** memset(&sb, 0, sizeof(sb)); attrib_to_stat(&d[n]->a, &sb); lname = ls_file(fname, &sb, 1); ! printf("%s\n", lname); xfree(lname); } else { /* XXX - multicolumn display would be nice here */ ! printf("%s\n", fname); } xfree(fname); } free_sftp_dirents(d); return (0); } --- 603,619 ---- memset(&...
2007 Dec 17
14
Change in isolation behaviour 1.08 - 1.10 ?
...les) require File.dirname(__FILE__) + ''/../spec_helper'' describe "A user" do before(:each) do @user = User.new @valid_user = User.new( :email => ''bert.valid at lostboys.nl'', :fname => ''bert'', :lname => ''valid'', :jobtitle => "programmer" ) end it "should have a unique email address" do @valid_user.save.should == true @user.email = @valid_user.email @user.should have(1).error_on(:email) end it "should allow two...
2003 Oct 30
1
Patch to make sshd work on multihomed systems
...ot;ssh1.h" #include "packet.h" #include "xmalloc.h" +#include "canohost.h" #include "log.h" #include "servconf.h" #include "uidswap.h" @@ -71,12 +72,23 @@ #endif krb5_error_code problem; krb5_ccache ccache = NULL; + char localname[MAXHOSTNAMELEN]; + char *socketname; if (authctxt->pw == NULL) return (0); temporarily_use_uid(authctxt->pw); + socketname = get_local_name(packet_get_connection_in()); + if (socketname) { + strlcpy(localname, socketname, MAXHOSTNAMELEN); + xfree(socketname); + } else if (gethostn...
2006 Mar 26
9
validate_uniqueness_of {combination of fields} ???
...nd that "smith" is unique to the record set. My problem is that each record includes two fields, the _combination_ of which must be unique to the record set, but each of which may not be unique. So "sam smith", "mary smith" and "sam jones" (stored as fname, lname) all need to pass the validation. Is there an easy way to validate_uniqueness_of a combination of fields within a record? Thanks in advance for any help. Best regards, Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/r...
2020 Aug 25
1
smbclient mask command seems not to work the same way with recurse ON for mget and mput
...ven sure of this... Well, here I go (thanks a lot Andrew for pointing out source3/client/client.c), release 4.12.6 (so sorry as this is no patching syntax, but hope you can figure out what it means): 2349 } else { ++ 2350 if (mask_match(lname,client_get_fileselection(),false)) { 2351 SAFE_FREE(quest); 2352 if (asprintf(&quest,"Put file %s? ", lname) < 0) { 2353 break; 2354 }...
2006 Jan 09
3
Design Question
...some of you can give me an insight into this. This is more towards the database design for the scenario below: Say for example, I have a person table and this person can have different address types. One could be Home and the other could be say Office. Should be model this Table people id fname lname Table addresses id person_id addr1 addr2 .... or Table people id fname lname Table addresses id addr1 addr2 Table persons_addresses person_id address_id Are there any tutorial that explains these concepts? Any help is highly appreciated. Thanks Silvy Mathews -------------- n...
2006 Aug 09
0
Bug in ActiveRecord 1.14.4 and select_limited_ids_list method using mysql?!?!
...ticles... @authors = Author.find(:all, :limit => 10, :offset => 0 :include => [:articles], :conditions => ["hide = ?", false], :order => "lname ASC, fname ASC, articles.created_at asc") This used to generate this query: SELECT DISTINCT authors.id FROM authors LEFT OUTER JOIN articles ON articles.author_id = authors.id WHERE (hide = 0) ORDER BY lname ASC, fname ASC, articles.created_at asc LIMIT 0, 10 and now it gene...
2006 Aug 09
0
Bug in ActiveRecord 1.14.4 and select_limited_ids_list() ???
...ny Articles... @authors = Author.find(:all, :limit => 10, :offset => 0 :include => [:articles], :conditions => ["hide = ?", false], :order => "lname ASC, fname ASC, articles.created_at asc") This used to generate this query: SELECT DISTINCT authors.id FROM authors LEFT OUTER JOIN articles ON articles.author_id = authors.id WHERE (hide = 0) ORDER BY lname ASC, fname ASC, articles.created_at asc LIMIT 0, 10 and now it generat...
2006 Aug 12
0
Form Validation with non-model fields
I have a couple of questions. I''m learning Ruby at the same time as Rails, so please forgive me if this is trivial. But when I get non-model related params back from the form, is there a quick and easy way to extract those into local varialbes? i.e. if params has keys fname and lname, to have them extracted into local variables called fname and lname without resorting to: fname = params[''fname''] lname = params[''lname''] Also, my perception is that when it comes to non-model fields, I''m pretty much on my own. In Turbogears, I can...
2007 Jun 04
2
Re: Ajax.Request question with JSON return
...guys, > > I''m probably missing something simple. (using Prototype 1.5.0., works > great). > > I''m requesting some data on the back-end, and return a JSON string. The > JSON string returned is exactly, for example: > {"FName":"Mark","LName":"Holton","EmailAddress":" holtonma-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > ","Phone":4255555555} > > I can return that JSON string and stuff it into any dom element with > Ajax.Updater without a problem. But I''d like to pass the...
2011 Mar 01
1
more boa plots questions
...A') boa.chain.add(boa.importMatrix('B'), 'B') #plot trace plot problems arise here! I know I can get trace plots using boa.plot('trace') but this plots the parameter chains on the same plot- I want separate plots using boa.plot.trace() #from the manual.. boa.plot.trace(lnames, pname, annotate = boa.par("legend")) lnames: Character vector giving the name of the desired MCMC sequence in the working session list of sequences. pname: Character string giving the name of the parameters to be plotted. annotate: Logical value indicating that a le...
2004 Sep 13
4
Pending OpenSSH release, call for testing.
...ller wrote: >> >>> Could you add to this release a patch which allows gssapi to be used >>> on a multihomed server please ? There have been several proposals >>> in the past to fix this in ssh_gssapi_acquire_cred . . - >>> if (gethostname(lname, MAXHOSTNAMELEN)) - return (-1); >>> + lname = get_local_hostname(packet_get_connection_in()); >> >> >> Won't that break Kerberos authenticaton for sshd in inetd mode? > > >It might break more then that. This change would appear to...
2012 Aug 10
1
translating HTML character entities to accented characters
I've imported a .csv file where character strings that contained accented characters were written as HTML character entities. Is there a function that works on a vector to translate them back to accented (latin1) characters? Some examples: > grep("&", author$lname, value=TRUE) [1] "Fr&egrave;re de Montizon" "Lumi&egrave;re" [3] "Lumi&egrave;re" "Ni&eacute;pce" [5] "S&uuml;ssmilch" "Sch&uuml;pbach" > grep("&", author$birthplace, value=TRUE...
1999 Apr 08
0
Keep-timestamp-in-`get'-patch for smbclient in samba-2.0.3
...) +{ + memcpy(&an_finfo,f,sizeof(*f)); + /* Debugger. + printf("do_get_an_finfo, a:%ld, m:%ld, mask:%s\n", + an_finfo->atime, an_finfo->mtime, mask); */ +} /**************************************************************************** get a file from rname to lname @@ -480,6 +500,11 @@ uint16 attr; size_t size; off_t nread = 0; + /* s.n. Tue Apr 6 21:53:25 1999 */ +#if 0 + time_t c_time, a_time, m_time, w_time; +#endif + struct utimbuf utb; GetTimeOfDay(&tp_start); @@ -506,6 +531,18 @@ } + /* s.n. Tue Apr 6 21:54:47 1999, to `keep'...
2009 Oct 02
1
Please Help me!
...programes formats looks like: name_c<-Sys.glob("C:/Documents and Settings/lma/My Documents/habitdata/*/calllog/*") for (i in 1:length(name_c)){ log1<-readLines(name_c[i]) .... write.table(Temps, file=paste("C:/Documents and Settings/lma/My Documents/habitdata1",pname,lname,basename(name_c[i]),sep="/")) } Error Information: Error in file(file, ifelse(append, "a", "w")) : cannot open the connection In file(file, ifelse(append, "a", "w")) : cannot open file 'C:/Documents and Settings/lma/My Documents/habitd...
2011 May 24
4
Rails hates my recursive function
...f self.find_record(rec) if /^([A-Z]|[a-z]|\d|-){11}$/.match(rec) student=Student.where(:studentID=>rec).all elsif /^([A-Z\s]|[a-z\s])+$/.match(rec) split=rec.split '' '',2 f_name=split.first l_name=split.second student=Student.where(:fname=>f_name,:lname=>l_name).all else bar=insert_dashes(rec) find_record(bar) end end If I try to enter a string of the for "a12345678" I am greeted with the following error: SystemStackError (stack level too deep): app/controllers/students_controller.rb:19:in `find_student'&...
2006 Apr 22
2
Form.serialize problem
...onsubmit="submitprofile();return false;"> First Name: <input type="text" value="<% $user_href->{fname} %>" id="fnamefield" size="50"><br> Last Name: <input type="text" value="<% $user_href->{lname} %>" id="lnamefield" size="50"><br> Email Address: <input type="text" value="<% $user_href->{email} %>" id="emailfield" size="50"><br> <br> Optional Info<br> <br&gt...
2002 Dec 20
1
smbclient and large file support
...ime; @@ -125,11 +125,11 @@ int blocksize=20; int tarhandle; -static void writetarheader(int f, char *aname, int size, time_t mtime, +static void writetarheader(int f, char *aname, SMB_BIG_UINT size, time_t mtime, char *amode, unsigned char ftype); static void do_atar(char *rname,char *lname,file_info *finfo1); static void do_tar(file_info *finfo); -static void oct_it(long value, int ndgs, char *p); +static void oct_it(SMB_BIG_UINT value, int ndgs, char *p); static void fixtarname(char *tptr, char *fp, int l); static int dotarbuf(int f, char *b, int n); static void dozerobuf(int f,...
2006 Aug 22
5
Creating mysql triggers with migrations blows up
def self.up execute("delimiter ^ ") sql = <<-_SQL CREATE TRIGGER customer_bi BEFORE INSERT ON customers FOR EACH ROW BEGIN SET NEW.sndx = SOUNDEX(NEW.lname) ; END ^ _SQL sql.split(''^'').each do |stmt| execute(stmt) if (stmt.strip! && stmt.length > 0) end execute("delimiter ; ") end Blows up with this message: Mysql::Error: You have an error in your SQL syntax; check the manual...