Latest LQ Deal: Latest LQ Deals
Go Back > Blogs > unSpawn
User Name


Uncategorized Entries with no category

Time out of mind

Posted 01-15-2006 at 10:30 AM by unSpawn

Don't know how that happened, but
Q: services display time skew (several zones off) in syslog.
A: test if /etc/localtime isn't a file but linked to /usr/share/zoneinfo/(posix/)$continent/$place .
Posted in Uncategorized
Views 1470 Comments 0 unSpawn is offline

Bash input validation

Posted 01-11-2006 at 08:28 PM by unSpawn

Takes argument and stops when character outside restricted set is found.
Don't know how much slower, didn't run any timing tests with or without yet.

val_str() {
        declare -r str_allow="1234567890-_.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ "
        declare -r str_len="128"; str=( "$1" ); if [ -z "${str}" -o "${#str}" -gt "${str_len}" ]; then return 1; fi
Posted in Uncategorized
Views 3589 Comments 1 unSpawn is offline

PHP, aka Pretty Hosed Programming

Posted 01-11-2006 at 08:02 PM by unSpawn

If you've read the SANS Top 20 of 2005 ( there is a clear message with respect to deploying PHP-driven applications: be paranoid or be cracked. A short tour of a few vulnerability reporting sites show that with programmers who can't be arsed to follow the most basic principles of programming, who force users to run their app with all essential security features off and with undereducated users running apps without questioning this will be another wonderful year for your...
Posted in Uncategorized
Views 2055 Comments 0 unSpawn is offline

Vista Iced 'til 2010, Microsoft says.

Posted 01-10-2006 at 09:52 AM by unSpawn

"In an effort to regain dwindling consumer trust Microsoft has decided to reschedule the release of Micosoft's Vista.
All resources are being redirected to building a more secure O.S. before introducing new bugs."
OK. So that's not going to happen, right? I think it should. Those who (are forced to) pay to use Mockerysofts products should have a vote in what should happen next instead of letting the marketoids reign.
Posted in Uncategorized
Views 1379 Comments 2 unSpawn is offline


Posted 01-10-2006 at 09:39 AM by unSpawn

This is my scratchpad.
It's not a Blog.
I don't read Blogs.
Posted in Uncategorized
Views 1637 Comments 0 unSpawn is offline


All times are GMT -5. The time now is 08:52 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration