Re: PHP preg_match question

2011-07-20 Thread Ben Trussell
Possibly: $vaidateStr = this is a test 1; // not valid, contains spaces.. $compared = preg_replace(/[^a-z0-9\+\-]/, , $vaidateStr); $is_validated = $vaidateStr == $compared; if ($is_validated) { echo validbr /\n; } else { echo not validbr /\n; } //

Re: PowerPC Recommendations

2011-07-20 Thread Ben Trussell
Its a *nix of another variety, but OpenBSD has a MacPPC port Is Darrin C. on the list? If so do you have the box set for 4.9 for sale? Getting started http://openbsd.org/ Getting ISO http://openbsd.org/ftp.html A more detailed bit of information specific to MacPPC port:

Re: PHP preg_match question

2011-07-20 Thread Ben Trussell
Ah yes, I also forgot the uppercase chars if ($vaidateStr == preg_replace(/[^a-zA-Z0-9\-]/, , $vaidateStr)) { /true, or valid... } BTW also as Eric says, the carrot (^) inside the square brackets means anything but (negation), thus how this works.. Ben On Wed, Jul 20, 2011 at

Re: CentOS 6 almost ready!

2011-07-09 Thread Ben Trussell
You can also use SL6 (Scientific Linux) if you want to check it out before CentOS finishes downstreaming from them. Ben On Sat, Jul 9, 2011 at 6:02 PM, Dan Lund situationalawaren...@gmail.comwrote: Just in time for Red Hat 7 to come ;) *jk* --Dan Lund On Sat, Jul 9, 2011 at 4:04 PM,

Re: Hi PLUG - Moving Back in July

2011-06-07 Thread Ben Trussell
An early welcome back! Ben On Tue, Jun 7, 2011 at 8:00 AM, Austin Godber god...@uberhip.com wrote: Hello PLUG Folks,    Seems I will be back in Phoenix in just a few weeks.  Just thought I'd mention it to those I still know here. Austin ---

Re: IPTables on LAMP server in data center

2011-05-13 Thread Ben Trussell
Another method to manage users and groups from given ips/subnets (not just any user from a given IP or subnet) is to use PAM's access.conf (pam_access.so, found defined in the /etc/pam.d directory, with the config file usually in /etc/security/access.conf) to augment the firewall ruleset. It

Re: Why these mostly empty hidden files?

2011-05-04 Thread Ben Trussell
Judicious use of the chmod and/or setfacl commands a potential cure ? On Tue, May 3, 2011 at 10:51 PM, Dan Lund situationalawaren...@gmail.com wrote: Never attribute to malice what can be easily attributed to laziness/hubris :) I'm sure it's just flash leaving it's wrappers laying around

Re: Bash question - redirect stderr to a variable

2011-03-15 Thread Ben Trussell
This might be helpful (and by that I mean mostly not helpful - you can easily send stderr to a file then input a file into a variable however). http://stackoverflow.com/questions/962255/redirecting-stderr-to-a-variable-in-a-bash-script Ben On Tue, Mar 15, 2011 at 1:08 AM, James Mcphee

Re: Logwatch Filtering for Apache

2011-02-11 Thread Ben Trussell
This is by far not the only solution, but its one that can be used to filter, combine, etc logs based on your needs. Switch to rsyslog if not already using it. The default configuration for Distros like RHEL, CentOS, Debian etc shouldn't be any different than sysklog etc when installed via a

Re: Logwatch Filtering for Apache

2011-02-11 Thread Ben Trussell
Note that email prematurely wrapped the examples. rules need to be all on one line in rsyslog.conf On Fri, Feb 11, 2011 at 5:08 PM, Ben Trussell azlob...@gmail.com wrote: This is by far not the only solution, but its one that can be used to filter, combine, etc logs based on your needs

Re: Logwatch Filtering for Apache

2011-02-11 Thread Ben Trussell
PPS: Last, but not least =) If you want to not see it in logwatch reports, just tell logwatch to ignore it.. http://www.google.com/search?q=logwatch+ignore.conf Ben On Fri, Feb 11, 2011 at 5:11 PM, Ben Trussell azlob...@gmail.com wrote: Note that email prematurely wrapped the examples

Re: Booting from a USB Drive

2010-12-13 Thread Ben Trussell
If its a Sandisk Cruzer there is a utility to remove that infernal CD mount. check here: http://www.google.com/search?q=sandisk+cruzer+u3+removal http://u3.sandisk.com/launchpadremoval.htm and possibly (possibly) helpful: http://u3-tool.sourceforge.net/ On Tue, Nov 30, 2010 at 7:25 AM,

Re: password

2010-12-10 Thread Ben Trussell
Instead of being a separate account, keyring is a password manager feature employed in Ubuntu's desktop (Gnome) and just needs to be reset (this will however reset any saved password info stored in the keyring). It sounds like from a previous thread you recently reset your account password and

Re: East side Stammtisch at NEW LOCATION

2010-08-23 Thread Ben Trussell
Awesome! That's in my zipcode and strategically located (sort of) between work and home for me =) Ben On Mon, Aug 23, 2010 at 1:57 AM, Brian Cluff br...@snaptek.com wrote: The east-side Free Software Stammtisch will no longer be meeting at Boulders on Broadway. Starting on September 21st

Re: What is the command to copy files from A to B when ssh connected?

2010-08-03 Thread Ben Trussell
If you need to preserve attributes such as uid/gid (owner, group) and timestamps etc, you can use rsync: rsync -av -e ssh -l username /some/dir/locationA remote.host.name:/dest/location preserving extended attributed and ACLs? try using rsync -avAX -e ssh -l username /some/dir/locationA

Re: Defcon 18

2010-07-23 Thread Ben Trussell
I'm indeed giving a trip to Vegas that weekend some serious thought =) BTW I bought Fyodor's Nmap book and love it. Ben On Sun, Jul 18, 2010 at 6:32 AM, Lisa Kachold lisakach...@obnosis.com wrote: Opps, I did it.  I read the list of presentations, so now I HAVE to go to Defcon 18:

Re: MySQL grant use?

2010-07-23 Thread Ben Trussell
With the general query log enabled in advance its easy to see when a and by whom a query was run, just be sure to put that log in the logrotate cycle because it can get big, fast.. Ben On Fri, Jul 23, 2010 at 9:09 AM, Bryan O'Neal bryan.on...@theonealandassociates.com wrote: Other then query

Re: MySQL grant use?

2010-07-23 Thread Ben Trussell
Come and live on the wild side Bryan! On Fri, Jul 23, 2010 at 1:11 PM, Bryan O'Neal bryan.on...@theonealandassociates.com wrote: I would not have that enabled on a production server, but you are correct that if you do you can see almost everything On Fri, Jul 23, 2010 at 12:03 PM, Ben

Re: remove timestamp/watermark from digital images

2010-07-02 Thread Ben Trussell
You might use ImageMagick's convert command to crop out the portion at the bottum with the timestamp. You'd loose a bit of the image (lower strip of the image) but if all of the images are the same size then you could batch (bash) it out.. http://www.imagemagick.org/script/convert.php An example