A long running story of the interesting things that occupy the attention and thoughts of McCulloch House: Leigh and Donna McCulloch.

Thursday, May 28, 2009

Questioning our Actions, Making Decisions

As leaders, don't we have an obligation to question our actions, and make sure our decisions are the right decisions?

A man takes responsibility for his actions, right or wrong. He accepts the consequences and lives with them, everyday.

Quoted from conversation between Captain Lee Adama and Admiral William Adam on Battlestar Galactica: Season 1: Episode 2: Water.

Labels:

Friday, May 22, 2009

How to Create a file of Specified Size

So today for...unimportant reasons, I wanted to create a very large file, in the vicinity of 20Gb, without having to actually do any real work to create the file.

I found out in Windows there is a command you can use:
fsutil file createnew [filename] [size]

where:
filename = The filename for the file you are creating
e.g. file.txt or C:\Directory\file.txt

size = size of the file in bytes
e.g. 2147483648 for 2Gb

example:
fsutil file createnew twogigabytefile.txt 2147483648


On Mac OS X 10.5 you can use:
mkfile [size] [filename]

where:
filename = The filename for the file you are creating
e.g. file.txt or
~/directory/file.txt

size = size of the file in bytes
e.g.
512 for 512 bytes, or use the following suffixes b = half kilobytes, k = kilobytes, m = megabytes and g = gigabytes, i.e. 10m for 10 megabytes.

example:
mkfile 2147483648 twogigabytefile.txt
or
mkfile 2g twogigabytefile.txt

Labels: ,