I’m often asked for advice on how to improve a company’s development process. Almost without exception, the advice I provide is the same:
Yesterday, I encountered an analysis issue that appeared to be resolvable with a simple pattern replacement technique.
Every sys admin needs to quickly free up disk space from time to time, and here are two well-tested scripts I use for exactly this purpose.
If you are using a Mac running a recent version of OSX, the answer is No.Â In fact this is super easy and is available from inside Microsoft Word.Â Â If you run Windows, this feature isn’t available without an additional plugin from a third-party.
Since Gmail began supporting IMAP, setting up Gmail to work with both Apple Mail & the iPhone is a common need for those of us with both iPhones and new Macbooks. I began using Gmail about two weeks and had noticed the inconsistencies mentioned in the below article, and was both pleased to see that the solution was so simple as well as slightly embarrassed that I hadn’t yet resolved the issue myself.
Recently I had a need for a simple logfile viewer for use in some stuff we have planned at Freepository. But this log file viewer had a few requirements that made it unique: it had to get the log file contents from the server in small chunks, not tie up the browser (such as an old-style synchronous request would do), and refresh in the browser without reloading the page.
I thought I could easily find one that someone had already written, but Google was not my friend. I found nothing even close, so I wrote my own. Here it is.
Working example: Â https://freepository.com/ajax-logtail-viewer/ajax-logtail-viewer.php
Open that page (↑) in a new window, follow the instructions and view the source.
Recently I had a need to publish a calendar in more than one location. Simple, right? Just use Google calendar, Boxes, or one of the other free services. Not quite. I don’t want to manage any users, nor give anyone direct access to an account that is hosting the calendar. I want to publish, not provide direct access to, the calendar.
Tech Tip – Spamassassin Custom Rule
I had been inundated with so much spam lately that I added some custom rules to my spamassassin setup. These rules are added to your local.cf (don’t put them in /usr/share/spamassassion, as they’ll get overwritten with the next SA update). The single most useful one for me in this bunch is the LOCAL_RETURNED_MAIL rule.
Here’s another quick tip.Â If you have a large directory tree (hundreds or thousands of nested levels), and you need to find and delete a set of files from the tree, consider this one-line approach: cd [target-dir-top-level];for i in
find . -name *tar.gz; do rm -f $i; done Replace my pattern ‘tar.gz’ with one that matches the files you wish to delete. Tags: freepository, tech-tip, shell scripting