copy

iPhone copy and paste - How to copy and paste with the iPhone

iPhone FAQ: How do I copy and paste on the iPhone, iPod, or iPad?

With the new Apple iPhone 3.0 operating system, iPhone users can finally copy and paste content. Here's a quick summary of how the iPhone copy/paste feature works.

How to bookmark a directory in the Mac Finder (Part 2)

A very important warning: When you drag your folder over to the PLACES section of the Finder, make sure your image looks like the image shown above, where the folder is clearly going to be placed between two existing folders. If you drag your folder over to the left side, and you're highlighting another folder in the PLACES section, you're going to end up moving your folder to that other folder. That's a great technique for moving your folder from one place to another, but it's not what I'm trying to describe here.

Creating Mac Finder bookmarks (Part 1)

One of the cool things about the Mac Finder is that you can create shortcuts, or bookmarks, to folders that you visit frequently. This is cool, because instead of clicking around to get to your commonly used directories, you can get to them with just one mouse click. That's as fast I can think to make it.

How to paste an image into a Java Swing application

I've been doing a lot of work with Java and images on Mac OS X lately, and I thought I'd share a Java method I use to get an image off the clipboard. I won't get into the details of working with an Image or a BufferedImage in this tutorial, but I will show you how to get the Image off the clipboard.

Perl file copy - How to copy a file using Perl

Perl file copying FAQ: How do I copy a file in Perl?

You can copy a file in Perl using the File::Copy module. Here's a quick example:

Software best practice - Don't be a Pigpen developer

A lot of times I'm asked about software best practices, but sometimes it's easier to show a best practice by showing its opposite -- a "worst practice". With that, today I introduce you to a worst practice I call "The Pigpen Developer".

Error message: mv cannot unlink remove file, operation not permitted

I got this Unix/Linux error message today "mv: cannot unlink '/tmp/forms-1.2.1.jar': Operation not permitted" when trying to move (mv) the file forms-1.2.1.jar from the /tmp directory to another directory. The full error output looked like this:

Deploy only your JSP files with this Ant build task

A lot of times when you're working on a Java web application you only need to deploy your JSP files. This happens, for instance, when you're just editing the JSP files to modify the look and feel of your web application. In cases like this there's no need to rebuild your entire application, deploy it, then restart your application server (Tomcat, Glassfish, JBoss, whatever).

scp home directory - A shortcut to refer to your home directory

I learned a shortcut the other day about how to use the scp or pscp commands to securely copy files between computer systems using SSL. I used to always type an scp command like this to copy a file named myfile.tar from my local computer to my home directory on a remote system:

A Perl module template (template code for a Perl module)

If you've ever needed some template/boilerplate code for creating your own Perl module, here's some sample code intended to give you just what you wanted. Feel free to copy and paste the Perl code shown below and use it as a template for creating your own modules.

How to use this sample Perl module

If you've never created your own Perl module I recommend first seeing how this sample code works. Here's all you have to do to get it running:

Syndicate content