TinyApps.Org
Small is beautiful


 HOME

  0. Internet
  1. Text
  2. Graphics
  3. System
  4. File
  5. Misc
  6. Palm
  7. OS X

 BLOG

 DOCS

 FAQ

 RSS (?)





Dressing like a gentleman #
The first and last word on attire from Douglas Sutherland's The English Gentleman:
  The knack gentlemen have of dressing badly and getting away with it is best illustrated by the story of the gentleman who was accosted by a friend walking along Piccadilly in clothes which were well below the best sartorial standards.

  'It does not matter how I dress in London,' he claimed. 'Nobody here knows me.'

  Later the same friend visited him in the country where his clothes were no better.

  'It does not matter how I dress here', he said, 'Everybody knows me.'

/misc | Oct 24, 2009

Write on the walls #
IdeaPaint turns virtually anything you can paint into a dry-erase surface.

/misc | Oct 22, 2009

Control USB drive letter assignment #
USBDLM (USB Drive Letter Manager) is a Windows service that allows you to control drive letter assignment for USB drives. Features include:
  • Automatically avoid conflicts with mapped drive letters
  • Reserve letters
  • Assign drive letter based on user, drive type, connection type, USB port, volume label, size, and more
  • Assign a letter to a specific USB drive by including an INI file on the drive
and much more. Both 32 and 64 bit versions are available. The author (Uwe Sieber) also offers a comprehensive collection of tips for solving problems with USB drives.

/windows | Oct 21, 2009

Elementary Computer Mathematics #
Ken Koehler has crafted a wonderful introduction "to the mathematics used in the design of computer and network hardware and software. Its goal is to prepare the student for further coursework in such areas as hardware architecture, operating systems internals, application programming, databases and networking." Topics covered include: computer arithmetic and data representation, logic and set theory, graph theory and computer measurement. Also available as a zipped archive.

/misc | Oct 18, 2009

Giving domain users administrative rights on local machine #
On the local machine: Control Panel > Administrative Tools > Computer Management (be sure to run as an existing admin) > Local Users and Groups > Groups > Administrators > Add > Advanced > Find Now > double click the Active Directory user(s) you wish to grant local admin rights to, or simply add the "Domain Users" group so that any AD users who login at that machine will have local admin priviledges. Click OK three times.

Or skip all the clicking and simply issue the following command:

net localgroup administrators "domain_name\Domain Users" /add

This could be added to a startup script or performed from a remote machine with Sysinternals' PsExec:

psexec.exe \\server -u administrator -p password net localgroup administrators "domain_name\Domain Users" /add

Sources:

/windows | Oct 17, 2009

Remote Desktop crashes host when connecting from client #
A brand new Dell Precision T3500 running Windows XP SP3 was crashing hard every time a client connected via Remote Desktop. Sometimes the host monitor would freeze with funky graphic patterns, so the display adapter (NVIDIA Quadro NVS 295) was suspected.

The fix turned out to be adding a new DWORD named SessionImageSize with a value of 20 to [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management] on the host machine.

Apparently this issue can also manifest as being unable to connect to Remote Desktop at all, with the following error message: "This computer can't connect to the remote computer. Try connecting again. If the problem continues, contact the owner of the remote computer or your network administrator."

Sources:

/windows | Oct 17, 2009

Unixy goodness: command compendiums, dd, acronym origins, and a shell stopwatch #

/nix | Oct 11, 2009

dd block size #
Yesterday's post got me researching block sizes in dd. The clearest explanation was in Brian Carrier's File System Forensic Analysis on page 61:
"The default block size is 512 bytes, but we can specify anything we want using the bs= flag. We can copy 1 byte at a time, or we can copy 1GB at a time. Any value will work, but some values will give you better performance than others. Most disks read a minimum of 512 bytes at a time and can easily read more at the same time. Using a value that is too small is wasteful because the disk will need to be frequently read, and time will be wasted in the copying process. If you choose a value that is too large, you will waste time filling up the buffer in dd before the copy is performed. I have found that values in the 2KB to 8KB range work well."

/nix | Oct 11, 2009

Concatenate (cat) TIFF files in OS X #
GraphicCoverter X 6.5 can be used to combine multiple TIF files into a single, multipage document:
  1. File > Convert & Modify
  2. Function: = Convert
  3. In the left pane, browse to and select desired TIFs
  4. In the right pane, browse to desired save location
  5. Dest. Format = TIFF
  6. Options... > Multi Page File
  7. Click "Go"
See also: Batch convert TIFF files into a single PDF via iPhoto

/mac | Oct 11, 2009

Securely wiping floppy disks under OS X in Terminal #
Faced with several dozen floppy disks that needed wiping, Disk Utility.app was looking a bit cumbersome: Disk Utility > click floppy drive > Erase > Security Options... > Zero Out Data > OK > Erase... > Erase

I decided to give sudo dd if=/dev/zero of=/dev/fd0 a go:
dd: /dev/fd0: Operation not supported.

Ah! Perhaps OS X does not use fd0:
$ ls /dev/fd0
ls: /dev/fd0: No such file or directory
.

In that case, let's have a look at what we've got:
$ diskutil list
/dev/disk0
  #:                       TYPE NAME                    SIZE       IDENTIFIER
  0:      GUID_partition_scheme                        *111.8 Gi   disk0
  1:                        EFI                         200.0 Mi   disk0s1
  2:                  Apple_HFS MacBook HD              111.5 Gi   disk0s2
/dev/disk1
  #:                       TYPE NAME                    SIZE       IDENTIFIER
  0:                            TEST                   *1.4 Mi     disk1
OK, how about:
$ sudo dd if=/dev/zero of=/dev/disk1
dd: /dev/disk1: Resource busy
What if we unmount the floppy from the Finder and then try the same command?
$ sudo dd if=/dev/zero of=/dev/disk1
dd: /dev/disk1: Operation not supported
A quick search turned up the answer - unmount from within diskutil, not the Finder:
$ diskutil unmount /dev/disk1
Volume TEST on disk1 unmounted
$ sudo dd if=/dev/zero of=/dev/disk1
dd: /dev/disk1: end of device
2881+0 records in
2880+0 records out
1474560 bytes transferred in 110.617912 secs (13330 bytes/sec)
That worked beautifully, if slowly: it took almost two minutes to wipe a single floppy disk (fiddling with the block size seemed to help, but I was not inclined to spend much time investigating further see update below). Macworld and the diskutil manpage turned up a much faster method that had the additional benefit of not requiring root privileges:
$ diskutil secureErase 0 /dev/disk1
Started erase on disk1 TEST
Finished erase on disk1 TEST
This single-pass zero-fill erase took less than 30 seconds to complete. Wiping the floppies was now a breeze:
$ diskutil unmount /dev/disk1 && diskutil secureErase 0 /dev/disk1
UPDATE: Rather than using /dev/disk1 (which is the block device, AKA buffered device or cooked device) I should've been using /dev/rdisk1 (the raw device). This made the dd process slightly faster than even diskutil when using block sizes of 1440k and 360k. Connected raw devices can be listed by issuing the ls /dev/rdisk? command. See Block device versus raw device performance for more information.
For those who doubt the efficacy of zeroing a disk, see:

/mac | Oct 10, 2009

Scanning in OS X with the Canon imageClass MF4150 #
Canon offers OS X printer and fax drivers for the imageClass MF4150, but no scanner driver. Thankfully, Mattias Ellert has graciously put together the TWAIN SANE Interface for MacOS X, which allows scanning via Image Capture and other TWAIN-compatible applications. Sources and binaries available for Tiger, Leopard, and Snow Leopard.

/mac | Oct 07, 2009

Manipulate windows from the keyboard #
Green Award MMinimizer [22k] {S}+ Provides keyboard shortcuts to move, size, hide and restore windows.  Screenshot

/windows | Oct 05, 2009

Insanely awesome PCI scan service #
If your bank, merchant account provider, etc. requires a vulnerability scan for PCI compliance, check out nCircle's Certified PCI Scan Service. They offer quick yet complete scanning, detailed/executive reports, one free scan for new users, very reasonable rates, and some of the best customer support of any Internet-based company: Joshua Backing from their customer service department called me within a few minutes of my having emailed a somewhat urgent question. As always with recommendations, I have no affiliation with nCircle other than as a satisfied customer.

/misc | Oct 04, 2009



Categories
/blosxom
/eink
/mac
/misc
/nix
/palm
/windows

Blosxom Archive
2012: 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
2005: 10 9 8 7 6 5 4 3 2 1
2004: 12 11 10 9 8 7 6 5 4 3 2 1
2003: 12 11 10 9 8 7 6

Ezine Archive
2004: 4 3 2 1
2003: 12 9 8 7 6 5 4 2 1
2002: 12 10 9 8 7 6 5 3 2 1
2001: 12 11 10