Guess encoding of a file

  #!/usr/bin/perl   # Name: guess_encoding.pl # Author: Aleksey Tsalolikhin # Date: 19 Oct 2012 # Description: guess encoding of a file (for example, to answer # the question is the encoding UTF-8 or Latin-1?).  This script # uses the "file" utility but it is  more precise than just # running "file" on your input…

Continue reading

Little perl script to print lines containing non-ASCII characters

#!/usr/bin/perl # Name: print-non-ascii.pl # Description: print lines containing non-ASCII characters (anything # other than 000 – 127). # Could be useful when working with Western Latin / UTF8 / etc. # encoded files and troubleshooting encoding issues. while ($line=<STDIN>) { if ($line !~ /^[x00-x7F]+$/) { print $line; } }

Password Expiration revisited

I previously posted a defense of password expiration on this blog.  Since that time, my perspective has changed and I no longer consider password expiration to be a useful security measure.  Here is my reasoning, reposted from my current blog: Password Expiration One common bit of advice with respect to security is to require frequent…

Continue reading

Mini-gripe: Network Solutions spam

Just got e-mail from Netsol (headers check out as actually from them):

Customized email for your business. Get Philip@DOMAIN.I.ALREADY.OWN [domain name replaced] and start transforming your business with a more professional online image.

Seriously?  I already one the domain name and run the e-mail servers that answer for it.  And you're suggesting to pay you to do something I already do.  Just wow.

Continue reading

Washington DC chapter in the works!

I'm currently in the process of getting a new chapter up and running in our nation's capital: LOPSA DC.   All of the details are still tentative (as we've not yet been officially approved) but right now we have this information available:   Meeting Date: Last Tuesday of each month Meeting Time: 7-9pm Location: Office…

Continue reading

VMware upgrade process ordering problem

I needed to upgrade our 3 copies of VMware Workstation for work today. I purchase these using a corporate credit card that is managed by our administrative assistant and is in her name. In the past this has never been a problem but today… I log on to the site, go to the store, select…

Continue reading

A fun way to learn vi

As many folks know, vi is a pretty cryptic editor to learn. Here is a fun way to learn the commands. http://vim-adventures.com/