A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.

Jump to

Quick reference

Showing posts with label copy. Show all posts
Showing posts with label copy. Show all posts

Windows 10 robocopy basics

robocopy c:\temp\source c:\temp\destination /E /DCOPY:DAT /R:10 /W:3

Select sub-section of putty buffer only

Are you sick and tired of waiting for your terminal to scroll down when dragging to select a large portion of the scrollback buffer in putty?

The putty developers already thought of that!


  1. Go to Putty Configuration window
  2. Choose "Selection" from category on the left of the window.
  3. Under 'Control use of mouse', choose 'Compromise (Middle extends, Right pastes)' if not already chosen.

(source)

How to transfer files between Windows 7 and Android 4

Settings | Storage | (three dots in top-right) | USB computer connection | Camera (PTP)

Then go to Developer Options (read elsewhere how to get this), and tick 'USB debugging'.

Voila - your device will appear in My Computer | Portable Devices.

Copy the files to a subdirectory of the Android Camera device in Windows, and move them into the right place from within Android. e.g. using ES File Explorer

Email me that information, don't tell me out loud!

Why I want you to email me that information instead of telling me out loud. There are so many reasons:

Speaking is inefficient:

  • I could mis-hear and copy it down wrong
  • I have to spend time listening to you and writing it down somewhere
  • If I'm not in front of a computer then it's written on a piece of paper, I have to store it somewhere for future reference, or spend more time typing it up

Email is efficient:

  • You've got a record of the information for the rest of your life, with no further effort (you are using a web-based email system, right?)
  • You can search for and find the information instantly
  • You can forward it to someone else for their reference
  • You can copy and paste with no chance of error
  • Email is so fast that someone can email you while you're speaking on the phone, and you can receive it and verify that it's correct before they hang up


How to paste a table into a thunderbird email with correct formatting

How:
  • Copy table from web page
  • Paste into OpenOffice Calc (Excel)
  • Copy from Calc
  • Paste into email
done.

How to sync over FTP

Don't re-invent the wheel.

1) Install rsync instead, which is designed with syncing in mind.

2) ftpsync was written a decade ago. Perhaps it has been updated since.

3) lftp syncs over FTP and is being actively maintained.

4) Perl package turbo-ftp-sync may also fit the bill.