Convert Little-endian UTF-16 to ASCII

I generated some text files working with Get-Acl Powershell, but I did not know how to get Powershell to do some advanced features. (Basically, I wanted to the Select-String to include the next 2 lines and see whether a specific group was in that list. And maybe some exclusions.) So, I copied the files over… Continue reading Convert Little-endian UTF-16 to ASCII

Counting

In the beginning I used TOTAL=`ls /d2lmig/*/*/bak/*/* | wc -l` to get a total count. All was good. Until at around 55,000 files I got: -bash: /bin/ls: Argument list too long. Then I used TOTAL=`find /d2lmig/*/*/bak/*/* -name *.bak | wc -l` to get a total count. All was good. Until at around 90,000 files I got: -bash: /usr/bin/find: Argument… Continue reading Counting

Convert Webserver.log to CSV

A security guy at a campus wanted our web server log file in the CSV format. The original file has lines which look something like: machine.usg.edu: webserver.log13646,2010-11-30        11:08:32        0.0010  999.999.999.999    b7tPM1hTgGYMn90bLTM1    200     GET     /webct/urw/lc987189066271.tp1333853785371/blank.html    –       262     “Mozilla/5.0… Continue reading Convert Webserver.log to CSV

Special Characters Are Meaningful Too

Dear Google, When you treat special characters such as underscores, colons, and hyphens as a space, you corrupt my search for a single term into multiple terms, aka not what I sought, so I get too many useless results. Function names, class names, or file  names ought to be treated as a single word not… Continue reading Special Characters Are Meaningful Too

Selected Quotes About Computers & Software – The Core Memory

Ran across Selected Quotes About Computers & Software at a site called The Core Memory. I have the teeshirt for this first one. The rest are for inpiration. There are 10 types of people. Those that understand binary and those that do not. — Ray Roton Old programmers never die… They just decompile. — Peter… Continue reading Selected Quotes About Computers & Software – The Core Memory

Google Chrome on Linux

I was excited to read today a Google Chrome Beta is now available on Linux. Gmail and Google Reader have weird font issues for me on both Linux and Window Firefox. So I tend split my browser load based on where the sites work best for me. Making the Linux switch meant leaving Chrome behind… Continue reading Google Chrome on Linux