0. Internet 1. Text 2. Graphics 3. System 4. File 5. Misc 6. Palm 7. OS X |
Lion is Apple Vista # Feels like a constant struggle with the UI, from the obtrusive scroll bars, to the clunky Apple Mail search, to the useless empty space at the top and bottom of windows when scrolling, to the iCal and Address Book train wreck... The last straw was an email spontaneously disappearing from the inbox (long after importing, indexing, and encrypting had completed) only to reappear a short while later. Really wanted Lion to work out, especially since FileVault 2's whole UPDATE: I've been using and supporting OS X since 10.0, and a huge fan from 10.2 to 10.6. Lion goes completely off the rails. Frustration is the overwhelming feeling, especially with the three apps I use most: iCal, Address Book, and Apple Mail. REVIEWS
These alternatives sync with iCal and/or Address Book:
/mac | Jul 27, 2011 42-line blog engine in Bash #___.sh is a "recursive, multimarkdown, sed & bash static HTML blog 'engine'" by Nicolas Hoibian. See it in action. /blosxom | Jul 25, 2011 OS X: throttle application CPU utilization #
/mac | Jul 23, 2011 NFO viewer for OS X #Looking for a simple NFO viewer for OS X, I found the cross-platform, open source NFO Viewer and started to install: $ sudo port install nfoviewAfter over 30 minutes of dependency installs and still no end in sight, I resumed the search. This time I hit upon NFOViewer, "a Mac OS X application for viewing documents containing ASCII art ('nfo', 'asc' or 'diz' documents)." On the plus side, it is a Universal Binary and renders NFO files neatly. On the minus side (for some), source code does not appear to be available despite the app being hosted on SourceForge. Just the same, if you need to view an NFO file now, NFOViewer may be the better choice. /mac | Jul 19, 2011 Save all terminal text with script #Script makes a typescript of everything printed in the terminal (saved to a file named typescript in the current directory by default): $ script Script started, output file is typescript $ echo 'this is being recorded!' this is being recorded! $ exit exit Script done, output file is typescript $ head typescript Script started on Sun Jul 17 07:25:25 2011 bash-3.2$ echo 'this is being recorded!' this is being recorded! bash-3.2$ exit exit Script done on Sun Jul 17 07:25:51 2011 /nix | Jul 17, 2011 When you need a quick & simple calculator in Bash... #$ bc -lq 1+1 2 quitor $ echo $((1+1)) 2or $ echo $[1+1] 2 /nix | Jul 17, 2011 How safe are your secrets? #Tomaž suggests a simple but possibly unsettling experiment: # export HISTFILE=/dev/null # grep secret_that_shouldn't_be_on_disk /dev/sda /dev/sdb Binary file /dev/sda matches Binary file /dev/sdb matches"If grep returns no hits, great. Your secret is safe from this particular attack. In my case however the fun part was in finding out why exactly the password that supposedly never leaves volatile RAM appeared in clear on all of the computer's hard drives (and the machine in question doesn't even have swap enabled)." /nix | Jul 17, 2011 Is it possible to recover data from a drive overwritten with zeros once? #While The Great Zero Challenge was not very convincing, Daniel Feenberg's Can Intelligence Agencies Read Overwritten Data? and Craig Wright's Overwriting Hard Drive Data are. For those who are still confused (or are just fond of pictures), see Disk Wiping - One Pass is Enough - Part 2 (this time with screenshots). /misc | Jul 17, 2011 Free shell scripting guide from Apple #At 260 pages, Apple's Shell Scripting Primer is really more of a book than a guide. Originally published in 2006 and updated as recently as last month, it is available as a PDF and is accompanied by a zipped file of sample scripts. Chapters include:
/nix | Jul 14, 2011 Unix in an EXE #"MobaXterm is an enhanced terminal with an X server and a set of Unix commands (GNU/Cygwin) packaged in a single portable exe file. ... [I]ncludes a multitab native Windows terminal, a new X server based on X.Org ... and a lot of new GNU Unix commands." Reminicent of these guys (Unix Tools is apparently now "No-install Unix Tools for Windows"). /windows | Jul 12, 2011 Test your mail client's leakiness #Since first being mentioned here in '04, email tracking services have beefed up their arsenal considerably. Thankfully, Mike Cardwell has put together Email Privacy Tester, a mail client leak test (remember the old firewall leak tests?). It checks for over 30 possible tracking methods, all of which seem to depend on HTML. The safest and easiest solution is still to enforce plain text email. See also: HTML email considered harmful and Just say no to HTML email and proprietary attachments. /misc | Jul 10, 2011 Howard Thurman breaks it down #
/misc | Jul 09, 2011 Extracting email addresses from a file #Back in 2002, bookface-ga kindly replied to my question about using awk to extract email addresses from a file:
Given a simple address book (ab.txt) with poor formatting:
john doe john@example.com 555-111-1212
sally@example.co.uk 555-555-1212 sally doe
515-1212 joe blow joe@example.info
jane doe jane@example.com bob doe bob@example.com
etc...
How can just the email addresses be extracted to a new file using awk?
$ awk '
{
for(i=1;i<=NF;i++){
if($i ~ /@/){
print $i
}
}
}
' ab.txt
john@example.com
sally@example.co.uk
joe@example.info
jane@example.com
bob@example.com
While simply extracting fields containing the 'at' symbol suited the data set perfectly, Patrick Mylund Nielsen's EmailsFromFile is far more comprehensive. "It follows a regular expression pattern based on the RFC 2822 standard and should thus return all valid email addresses regardless of how they appear in the file." Which means that even a jumbled mess like this:
john@example.com,sally@example.co.uk|8135551212/some random info joe@example.info;sue@example.museum 42!42!42!is parsed perfectly: $ emailsfromfile.py sloppy_file.txt joe@example.info sue@example.museum john@example.com sally@example.co.ukEmailsFromFile is licensed under the WTFPL, and is reproduced below for posterity. (Be sure not to miss Patrick's other tools; Windows admins will especially appreciate Failsafe MSI, a "shell script that enables and starts the Windows Installer service in safe mode".) #!/usr/bin/env python ''' emailsfromfile.py -- Get all unique email addresses from a file by Patrick Mylund Nielsen http://patrickmylund.com/projects/emailsfromfile/ License: WTFPL (http://sam.zoy.org/wtfpl/) ''' __version__ = '1.1' import sys import os import re import codecs # Regular expression matching according to RFC 2822 (http://tools.ietf.org/html/rfc2822) rfc2822_re = r"""(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])""" email_prog = re.compile(rfc2822_re, re.IGNORECASE) def isEmailAddress(string): return email_prog.match(string) def main(filename, separator='\n', encoding=None): separator_replace = { 'space': ' ', 'newline': '\n', } if not os.path.isfile(filename): raise IOError("%s is not a file." % filename) results = set() with codecs.open(filename, 'rb', encoding) as f: for line in f: results.update(email_prog.findall(line)) for k, v in separator_replace.iteritems(): separator = separator.replace(k, v) print(separator.join(results)) if __name__ == '__main__': args = len(sys.argv) - 1 if 0 < args < 4: main(*sys.argv[1:]) else: print("Usage: python %s <filename> [separator] [encoding]" % sys.argv[0]) print("The default separator is a newline. To separate by space, literally enter 'space' as the separator.") /nix | Jul 06, 2011 Free standalone and bootable antimalware #eScanAV Anti-Virus Toolkit (MWAV) (similar to Microsoft Safety Scanner) and eScan Rescue Disk (similar to Standalone System Sweeper) are new to me, but according to Virus Bulletin, eScan ranks higher than ESET, Microsoft Security Essentials, Kaspersky, and many others in VB's Reactive And Proactive (RAP) testing. And speaking of malware, don't miss Claus' detailed description of his recent cleanup campaign. /windows | Jul 02, 2011 Backup to drive label instead of drive letter #Create Synchronicity is an open source backup and synchronization application that supports both drive labels and drive letters (like Ulrich's Back4Sure). And like Back4Sure, it is clean, simple, and unable to backup in-use files. Requires .NET Framework 2.0 or higher (though there have been problems with version 4). /windows | Jul 02, 2011 suckless.org - tiny unix apps #suckless.org is the "home of wmii, dwm, libixp, and other quality software with a focus on simplicity, clarity, and frugality." From the Manifest: "The more code lines you have removed, the more progress you have made. As the number of lines of code in your software shrinks, the more skilled you have become and the less your software sucks." Embodies many of the principles Mike Gancarz extolled in The UNIX Philosophy:
/nix | Jul 01, 2011 |
Categories
Blosxom Archive
2013: 5 4 3 2 1
2012: 12 11 10 9 8 7 6 5 4 3 2 1 2011: 12 11 10 9 8 7 6 5 4 3 2 1 2010: 12 11 10 9 8 7 6 5 4 3 2 1 2009: 12 11 10 9 8 7 6 5 4 3 2 1 2008: 12 11 10 9 8 7 6 5 4 3 2 1 2007: 12 11 10 9 8 7 6 5 4 3 2 1 2006: 12 11 10 9 8 7 6 5 4 3 2 1 2005: 12 11 10 Blogger Archive
Ezine Archive
|