How to find good Scala libraries alvin June 20, 2015 - 4:22pm

This is an excerpt from the Scala Cookbook (partially modified for the internet). This is a short recipe, Recipe 14.7, “How to find good Scala libraries.”


Ruby has the RubyGems package manager, which lets developers easily distribute and manage the installation of Ruby libraries; does Scala have anything like this?

A collection of Unix/Linux find command examples

Linux/Unix FAQ: Can you share some Linux find command examples?

Sure. The Unix/Linux find command is very powerful. It can search the entire filesystem to find files and directories according to the search criteria you specify. Besides using the find command to locate files, you can also execute other Linux commands (grep, mv, rm, etc.) on the files and directories you find, which makes find extremely powerful. 

An egrep example with multiple regular expressions alvin May 20, 2011 - 3:43pm

Summary: How to use the Linux egrep command with multiple regular expressions (regex patterns).

As a quick note here today, I just used the Linux egrep command to perform a case-insensitive search on multiple regular expressions (regex patterns). Really, what I did was a little more complicated:

locate -i calendar | grep Users | egrep -vi 'twiki|gif|shtml|drupal-7|java|PNG'

As you can see from that command, I did this:

Linux locate command man page alvin September 20, 2009 - 12:00am

This page shows the contents of the Linux locate comamnd man page. This locate command output was created on a CentOS Linux system.

You can see this same locate command man page output by entering this command on your own Linux system:

Where to save your custom AppleScript programs alvin May 19, 2009 - 10:29am

I was just working on a new AppleScript program on my Mac, when I had to remember where to install my script so I could access it from the Mac menu bar.

After digging around I saw that I installed all of my original scripts in this Mac folder:


I think I did this so my scripts would appear near the top of the list of available AppleScript programs, as shown in the following figure:

Linux: Case-insensitive file searching with locate and find alvin August 28, 2008 - 7:10pm

Earlier today someone asked for the source code for my TypeAhead predictive-text, type-ahead, auto-complete JNLP Swing application. While trying to remember where I put it I realized I was going to have to do some case-insensitive file searching.

I was happy to learn that both of my favorite Unix and Linux file-finding utilities support case-insensitive file searching.

Perl error: Can't locate module in @INC

From a recent email: Help, I've just run into this Perl error: "Can't locate module in @INC".

Solution: If you get a Perl error message like "Can't locate Foo.pm in @INC", this message means that the Perl module you're trying to include (like the module named Foo) can't be found in Perl's include path, which is represented by the variable named @INC.

Linux find command recipes alvin August 3, 2008 - 12:20pm

Thinking about my own work when using Linux and Unix systems, a lot of the work is based around files, and when you're working with files, tools like the Linux find command are very helpful. So, I've decided to put together this list of find command examples/recipes that I'll update from time to time when I use the find command in different ways.

How to find all files beneath the current directory that end with the .jsp extension:

Finding files that Spotlight is missing alvin November 6, 2007 - 3:39pm

I generally use Spotlight when searching my Mac for a file, but there are times it doesn't work, especially when I'm trying to find a file that contains a phrase I know. For instance, I may have a file named "Fred.txt", and it contains the phrase "foo bar", but when I open Spotlight and type in "foo bar", the file Fred.txt never shows up.

Exploring the Linux locate command alvin August 10, 2007 - 9:20pm

The Linux locate command lets you easily find files in the filesystem. It works by maintaining a system-wide database of "all files which are publicly accessible". The database itself is updated periodically by a background process. Because of this approach it returns results much faster than the find command, which only looks for files when you tell it to. Depending on your system, the locate command may need to be configured initially, or it may be pre-configured to work out of the box.