Site Sponsors:
PR1000.05: Challenger Exercise for Python 1000 
Submitted for your approval, please find what used to be the official, yet informal "Challenger Exercise" for Python 1000.

Formally off the blackboard & shared today on GitHub as PR1000.05 (document link), these two basic UML Diagrams will be reviewed on Udemy at a future date.

Until then, those who need an introduction to the UML might enjoy our YouTube UML Primer (video link). While far from a comprehensive review of the Unified Modeling Language, this short video will cover how to decipher the two basic diagram types used in the above.

[ add comment ] ( 33 views )   |  permalink  |  related link
PR1000.10: Create a Basic "Password Counter" in Python 
A very enthusiastic Python 1000 student asked for the creation of a few more practice activities.

We decided to share our first design as an official project.

Destined to be the first in a series of follow-on activities for our increasingly popular Python 1000 & Python 2000 training opportunities, we hope other new Python students will enjoy the sharing, as well.

Sharing is caring!


p.s: Those who need an introduction to the UML (at least enough to understand the above diagrams) might enjoy our YouTube UML Primer (video link).

[ add comment ] ( 33 views )   |  permalink  |  related link
Backing Up Files Across Multiple Devices 
There you have them - sitting in a box. --From lots of CDs / DVDs, to far too many USB sticks to contemplate.

Rather than sitting there - waiting for us to toss them out - wouldn't it be nice if we could use them to backup our 'stuff?

Backup Splits

Much like in the days when we had lots of drive-tapes, the challenge is to split a `too-big` collection of files, across a `too-small` series of media. A problem almost as old as computing itself, fortunately all POSIX systems come with a program called `tar`!

sudo mkdir /d_backup 2> /dev/null
sudo chmod 777 /d_backup
cp $0 /d_backup
cd /d_backup
name=`date +d_drive_%Y_%j.tar`
echo Creating $name from $0
tar -cf ./$name /d_drive/
split -d -b 4480m ./$name

In the above, my task is to routinely back-up /d_drive into a folder named /d_backup. Once created, I want to split a julian-dated backup file into 4GB slices, from there to manually burn them out to a 2nd generation DVD drive. (*)

Splits Restored

To restore the files, all we need do is to (1) undo the `split,` by copying (2) all of the media-content to the hard drive, then (3) un-tar the concatenation:

cat * > d_drive.tar
tar xvf d_drive.tar

(*) Note that while the above `split` uses 4480 for the splits, that one should adjust the size to match the least-common size-denominator for any and all external media.

Sharing is caring!


[ add comment ] ( 63 views )   |  permalink  |  related link

<<First <Back | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | Next> Last>>