Wednesday, November 10, 2010

Firesheep vs. Blacksheep

I'm sure most of you have heard of the Firefox addon Firesheep which can
hijack a persons Facebook (and others) logins with a click of the mouse
on open WiFi networks. Well, now there is an additional addon which
will warn you when someone on that open WiFi is *using* Firesheep. That
plugin is called Blacksheep.

Personally I think the illumination Firesheep was intended to bring is
great. I also think a warning mechanism is also good for those not in
control of the open Wifi but need to use it. However, it does make me
wonder at what point does our web browser turn from web browser to
internet security warrior.

Think about it. We have addons meant to control javascript, sniffing,
cookies, SSL, etc. Think about Firesheep, BlackSheep, NoScript,
AdBlocker, HTTPS-Everywhere, SSL-Blacklist, BetterPrivacy, FlashBlock,
Long URL, and many others. What about all the additional "helpful"
addons people use for Facebook, Twitter, Amazon, bookmarks, proxy
switching, user agent IDs, RSS Feeds, etc, etc, etc.

I love Firefox but I do wonder when my web browser begins to morph into
a programming framework more than an internet web site rendering
machine. Hmmmm....I wonder if Google has already reached this point and
thus...{wait for it}...ChromeOS.

Just my $.10.

--C64Whiz

Thursday, July 29, 2010

Basic Backups on Windows

Ever wanted to do a basic backup of some files on a Windows machine?
(I'm more of a Linux guy, but backups on Linux are a lot easier.) My
personal solution is to backup files using the 'xcopy' command. My
solution provides 'full' and 'incremental' (sort of) backups.

Basically, the 'xcopy' command has switches which will copy only files
with the "archive" attribute set. If you clear the archive bit only
files which have been changed or modified will have that bit set again.
This tells you which files need to be backed up and thus provides a
form of incremental backup.

For full backups, I use the 'attrib' command to set the archive bit on
all files and directories I want to backup.

Finally, the 'xcopy' command has a switch "/exclude" which allows us to
specify a file which contains a list of directories we do *not* want
included in our backups. This is useful if you have 5 directories but
one of them is temp files you don't care about so there is no need to
back them up.

So, let's say I have a directory on my hard drive I want backed up.
We'll call it "c:\source". For the backup, we'll copy it to an external
hard drive (USB perhaps) which is mounted on drive "H:" and into a
folder called 'destination'.

First, we need to create the destination folder:

mkdir h:\destination

Next, create a file on H: to contain the list of directories we don't
want backed up. If you want everything backed up, you can ignore this
file *AND* leave off the switch. Else, create the file but don't put
anything in it.

copy con h:\backup.exclude
{Cntrl-Z <ENTER>}

will create an empty file.

Now we copy. The 'xcopy' command I use looks like this:

xcopy c:\source h:\destination /M /E /V /C /I /H /R /Y
/EXCLUDE:h:\backup.exclude

all on one line. If you issue the command 'xcopy /?', you'll be able to
see what all those switches do.

Now remember, this will only copy files with the 'archive' bit set. To
do a full backup, you first need to go through the entire 'c:\source'
directory turning on all the 'archive' bits. The attrib command works
for this:

attrib +a c:\source\* /s /d

Again, 'attrib /?' for the switch meanings. When you launch the xcopy
command after the attrib command, you'll have a full backup.

Finally, putting these commands into batch files (.bat) allows you to do
full or incremental backups with an icon click. To do a full backup,
here is my "full_backup.bat" file:

(NOTE: as seen here, the 'xcopy' line was line-breaked. The command
goes from 'xcopy' to include 'backup.exclude' on one line.)

attrib +a c:\source\* /s /d
xcopy c:\source h:\destination /M /E /V /C /I /H /R /Y
/EXCLUDE:h:\backup.exclude
pause

'pause' waits for a key press when the copying is done.

My incremental backup batch file is this:

xcopy c:\rdata r:\rdata /M /E /V /C /I /H /R /Y
/EXCLUDE:r:\backup.exclude
pause

Notice the only difference is the 'attrib' command is missing on the
incremental backup batch file.

Lastly, again, if you have a folder "c:\source\temp_files" you don't
want to backup make sure the "h:\backup.exclude" text file contains
"temp_files" on a single line. Yes, the list of directory names in
"h:\backup.exclude" is *relative* to "c:\source". So if you have 3
directories you do *not* want backed up, "h:\backup.exclude" will contain:

temp_files
next_directory_not_to_backup
and\the\last_directory\not_to\backup

Good Luck and email me if you have questions or problems.

--C64Whiz

Thursday, June 24, 2010

Who is, C64Whiz?

Some of you may be wondering who I am. I've been tweeting more lately and now have some followers I have no idea why they're following me. Nevertheless, glad to have you join the conversation.

As for who I am, I'm just a guy with a tweaked sense of humor, living life, stumbling at times, shining at times, and all in all trying to improve myself. It doesn't matter how old I am. I can converse with the best of them, joke with the masses, or even offer thoughts of ponder and words of inspiration when needed. I'm not a religious person but was raised under one particular faith. No, I won't mention it as I don't want to bond or alienate anyone based on religion.

As for my interests, you may have guessed already computers is the big one. I'm not really into sports, I enjoy intellectual pursuits more. However, sometimes being just plain silly is just the stress reliever the doctor ordered. So don't expect all scientific and mathematical talk. I can still knock-knock joke with the best.

Family? I'm happily married though going through a very rough time at the moment. We have kids whom I adore and we have animals...plenty of them. So if you're a dog lover, cat lover, bird lover, whatever...I can relate. I'm constantly fighting with my oldest cat for *my* bed pillow.

Location? Doesn't matter. I live in the USA, let's leave it at that. Whether your West Coast, East Coast or somewhere in-between, we all live in the USA.

A bit of trivia about me? My real name is not C64Whiz. It's actually C64Genius but that didn't fit on my license plate. ;)

Take care everyone. Don't forget to vote in the poll on the left and feel free to join the Twitter conversation. You can find me @C64Whiz. Goodnight.

SYS 64738

Wednesday, June 9, 2010

Reminiscing About Yester-year

I don't know why, but I was sitting here on the computer and felt
something I haven't felt in a long, long time. (No not that...I'm still
waiting for that.) I'm talking about the love of hacking and programming.

It seems like so long ago when we use to have only text screens and
command lines to accomplish all we wanted. We got excited when our name
scrolled around the screen like a ball bouncing off the borders. The
thrill of writing code to make a complex piece of machinery do what you
command! Ahhh...

What I don't understand is why it came back to me for only a moment. I
still code, I still use the command line more than anything, so why did
that feeling ever leave? Sure I grew up and got responsibilities but I
still love the thrill of the hack, the excitement you feel just before
you execute your code, and immense frustration just before you solve the
algorithm complexities of sorting methods.

{sigh} Why isn't that feeling still here? I long for it and wish I
could hold on to it as it gives me inspiration and drive me to do better
at my job. Thoughts?

Wednesday, June 2, 2010

About This Blog

This blog really doesn't have a purpose per se. But I do hope you'll find some interesting tidbits about anything and everything. So why the Commodore 64 persona? I grew up with it. It was my first real computer that I truly found my calling with.

I remember wanting to learn machine language so I joined a local Commodore Club hoping someone could teach me. Unfortunately no one knew ML but one person did have a beginner book from which my ML world took off. It was then I knew computers were where I'd be spending my career.

However, I'm not narrow-minded. I do have opinions on other topics, other issues, and know how to do other things. This blog is where I'll be sharing it. So feel free to subscribe to the RSS feed or at the very least, follow me on Twitter @C64Whiz.

See you around the 'net...