Displaying 3 results from an estimated 3 matches for "klj".
Did you mean:
kl
2003 Feb 19
3
removing leading/trailing blanks
Hi,
What's the best way of dropping leading or trailing
blanks from a character string?
The only thing I can think of is using sub() to replace
blanks with null strings, but I don't know if there is
a better way (I also don't know how to represent the
trailing blank in a regular expression).
Thanks,
Doug Grove
2006 May 02
9
Updating only one field
At present, I use an update like this to set the user''s last login time:
authenticated_user.update_attribute(:last_login, Time.now)
However, this calls the following, updating all fields:
UPDATE users SET `last_login` = ''2006-05-02 13:27:41'', `hashed_password`
= ....
Is there any way I can tell ActionRecord to only update the one field?
I don''t really want
2008 Jun 12
2
Request for added functionality - tracking and blocking attacks
...sshd_config file one or more lines like this would be placed:
BLACKLIST_USER mysql
BLACKLIST_ISER root
BLACKLIST_USER cups
etc.
2. sshd also loads a small number of whitelisted IP addresses, which
are allowed to use the BLACKLIST user names:
WHITELIST_IP abc.def.ghi.jkl
WHITELIST_IP bca.fed.hig.klj/24
etc.
3. If a login attempt is made on a blacklisted account, but not from
a whitelisted IP address, it would result in a
sshd BLACKLISTED abc.def.ghi.jkl for account_name
message to syslog.
4. Additionally, an entry would be placed in an sshd data structure to
retain the IP address and...