Showing posts with label howto. Show all posts
Showing posts with label howto. Show all posts

Tuesday, October 08, 2013

Naming your computer files for easy referencing


Housekeeping on computers - File naming.

If you produce a lot of documents you need a consistent naming style that allows for understanding the content of the file without having to open it and for easy sorting should you make multiple editions of a similar file.

One of the environments that I work in produces audio files; some on a weekly basis, monthly, yearly.
Once determined your naming system can apply to most situations and allow for the above conditions to be met, ie. know what's IN the file, ie. what it is, and see easily the different versions/editions.


All consistently regular text should be before the text that modifies it;
eg. dates or sequence numbers ("1", "2" etc).
If the number of files is large and the sequence numbers go beyond single digits then earlier numbers need to be "padded" with zeros eg. "01", "02" ... "10" ... "99"
or "001", "002" ... "999"
This is because "12" would sort before "2" in a list (because the "1" and the "2" are in the same column), but "02" would sort before "12".


For our first example here are two audio files:

Original names:

Promotional AD 1 2013.wav
Promotional AD 2.wav

New names:

Promotional AD 2013 1.wav
Promotional AD 2013 2.wav

A simple rename in this case. Add the year to the second filename and put the sequence number at the end.

Obviously the dates on the files above is simple being a once a year item but if months [and days] are required then always use reverse order for nice chronological sorting in your File Manager (eg. Windows Explorer)
eg. YYYY-MM-DD

So, why do this?
Below is a list of filenames, derived from daily logs, please look through them and find the most recent file:

01-10-2013.txt
02-10-2013.txt
03-09-2013.txt
03-10-2013.txt
04-09-2013.txt
04-10-2013.txt
06-09-2013.txt
07-09-2013.txt
08-10-2013.txt
09-09-2013.txt
10-09-2013.txt
11-09-2013.txt
12-07-2013.txt
12-09-2013.txt
13-09-2013.txt
14-09-2013.txt
15-09-2013.txt
17-09-2013.txt
18-09-2013.txt
26-09-2013.txt
27-09-2013.txt

Now here are some similar filenames but in the YY-MM-DD format, find the most recent one:
13-07-12.txt
13-09-03.txt
13-09-04.txt
13-09-05.txt
13-09-06.txt
13-09-07.txt
13-09-09.txt
13-09-10.txt
13-09-11.txt
13-09-12.txt
13-09-13.txt
13-09-14.txt
13-09-15.txt
13-09-16.txt
13-09-17.txt
13-09-18.txt
13-09-19.txt
13-09-20.txt
13-09-24.txt
13-09-25.txt
13-09-26.txt
13-09-27.txt
13-09-28.txt
13-09-29.txt
13-10-01.txt
13-10-02.txt
13-10-03.txt
13-10-04.txt
13-10-06.txt
13-10-08.txt

Even though this list did not write the date in full form (YYYY) it's still readily apparent, in a long list like this, the chronological order. But if we had less files using the same naming convention it could be harder:
eg.
09-07-12.txt
09-09-03.txt
10-09-04.txt
10-09-05.txt
11-09-06.txt
11-09-07.txt
12-09-09.txt
12-09-10.txt
12-09-11.txt
12-09-12.txt

In the list above which digits are the years and which are the days and which are the months? It's perfectly possible that the first digits are the days meaning this list is sorted first by the value in the days then months then years. You can see, if that were the case, that we have files from 2012 at the top and at the bottom of this 'sorted' list. Not very convenient.
We might deduce that a column doesn't contain months if there were digits above 12 but we also need those digits to be above 14 (as of the writing of this post in 2014) to show that the digits do not represent years. Should we presume the years are the first digits or the last? Even if we presumed they were last, because many people (of the Australian clients I've worked with) DO write DD-MM-YY, how do you *know* for sure? Add to that the different formats other countries use:

For example Australia and America differ in how they write the date (DDMMYY vs MMDDYY) therefor there is the potential for confusion between an Australian date, 03/06 (3rd of June) and an American, 03/06 (March 6th).

So writing the full Year first removes that ambiguity as that implies the reverse order style, and that order is only done one way YYYYMMDD, no 'other' version, at least not in my experience. If it is done it's done very rarely.
Using the reverse date order (YYYYMMDD) the above list would become:

2009-07-12.txt
2009-09-03.txt
2010-09-04.txt
2010-09-05.txt
2011-09-06.txt
2011-09-07.txt
2012-09-09.txt
2012-09-10.txt
2012-09-11.txt
2012-09-12.txt

Adding the hyphens makes the date(s) easier to read than without but it is still relatively easy to discern which digits represent years in the list below:


20090712.txt
20090903.txt
20100904.txt
20100905.txt
20110906.txt
20110907.txt
20120909.txt
20120910.txt
20120911.txt
20120912.txt


Now, why do we want the 'regularly occurring' text before the date or sequence number?
Let's say you produced some documents and the parts were labelled:
1 history of tech.doc
2 history of tech.doc
3 history of tech.doc
4 history of tech.doc

This naming looks reasonable enough at first glance, and kept on their own in a separate folder they will not be confused but should you place them into the same location as another group of documents, similarly labelled:

1 dawn of technology.doc
2 dawn of technology.doc
3 dawn of technology.doc
4 dawn of technology.doc

the end result, when viewed in a file manager (eg. Windows Explorer) would be:

1 dawn of technology.doc
1 history of tech.doc
2 dawn of technology.doc
2 history of tech.doc
3 dawn of technology.doc
3 history of tech.doc
4 dawn of technology.doc
4 history of tech.doc

Now when you want to drag ONE set of documents away from the other it's not as simple as drawing a selection box around the files of one of those sets.
This list only puts two difference 'groups' of files together, imagine this list if a large number of files, of a variety of 'groups', named thus were all dropped into the same folder.

On the other hand; if the sequence numbers, or dates, were at the end (a suffix rather than a prefix), the similarly 'titled' files of each group would 'glob' together and the sequence numbers or dates would sort them:


dawn of technology 1 .doc
dawn of technology 2 .doc
dawn of technology 3 .doc
dawn of technology 4 .doc
history of tech 1 .doc
history of tech 2 .doc
history of tech 3 .doc
history of tech 4 .doc

Also remember that file and folder names can be quite long (256 characters) so unless you have software that reduces the available viewing size of a filename (or somehow squashes it making it hard to read) then you should feel free to write descriptive names; don't limit filenames to one or two words if it creates ambiguity with other files with similar names. If you are restricting the length of the filename for ease of viewing in other software then at least make your folder names more informative.

eg.
in a folder named "dawn of technology" I place files named:

d.o.t-1.doc
d.o.t-2.doc
d.o.t-3.doc
d.o.t-4.doc

                                                                                        


There, hopefully that is of some use to someone out there on the webs. Email any questions and if need be I'll edit this post to reflect that which I've [probably] neglected.  =)

D

Thursday, August 01, 2013

Custom Friends Lists in Facebook

 Controlling the "spammy-ness" of your FB news feed is essential for some sort of stress reduction, not to mention getting some hours back in your day.

 But Facebook do not make for a very intuitive/user friendly interface.

 Here's how to make custom friends lists:

 On your home page, ie. NOT your profile page but rather just facebook.com, go down the left sidebar to the [grey] header "Friends"

 When you float the mouse over this you should see "more" appear to the right. Click this; the main window/frame should then change to show your Friends' Lists - the default lists being items such as "Close Friends", "Acquaintance", "Family".

 Click "+ Create List" and you should be able to enter a name, eg. "Besties", for a new list and add members.

 This new list will then be shown in the left sidebar, below the [greyed] Friends header I mentioned above.

 If you float your mouse over this title, eg. "Besties" you should see a small 'pen' appear, click this to get the option to "Add to Favourites" or "Delete" the list.

 Adding to Favourites will move that list, eg. "Besties" up to the "Favourites" at the top of the sidebar.

 g'luck

Friday, May 18, 2012

Removing IPv6 Tunnel Adaptors - Windows 7

What a bore this is, to have the ipconfig results overloaded with redundant adaptors. Weak effort M$. Possible fix: http://social.technet.microsoft.com/Forums/en-US/itprovistanetworking/thread/32b0c129-fa2d-431a-a275-4288c729605a and/or Control Panel > System > Device Manager > View > Show Hidden Devices > Network adapter>

Monday, October 31, 2011

Android Aeroplane mode

As you may know, Aeroplane mode shuts down all wireless communications for safe[r] air travel.
But there are times when you may wish to only shut down the phone component yet keep the other features (wireless and bluetooth) running.

For example when in another country/location where your phone doesn't work and/or to avoid the excessive battery drain.

I'm currently using a Samsung Galaxy SII with Gingerbread OS. If I go to Settings > About Phone > Battery Usage, I can see that "Cell standby" is the biggest drain on my battery.

To turn off just this feature you can dial "*#*#INFO#*#*" (info being 4636 so - "*#*#4636#*#*" to access a small menu. clicking/tapping on "Phone information" and you'll get a screen which has a "Turn radio off" button. This is the cellular transmission component. Once it's off, you're off the airways, as far as the dialling public are concerned, and saving on all that battery power used trying to talk to phone towers.

You can also install an app called "Any Cut" which will let you make a shortcut to "Phone information" in case you can't remember the dialling sequence above.

hth

Saturday, October 01, 2011

OSX, Applescript - show hidden files in Finder

A little applescript to toggle the Show Hidden Files setting for Finder.


-- Toggle Show Hidden Folders On Off

set showHiddenStatus to last word of (do shell script "defaults read com.apple.finder | grep AppleShowAllFiles")

if showHiddenStatus is "False" then
do shell script "defaults write com.apple.finder AppleShowAllFiles True"
else
do shell script "defaults write com.apple.finder AppleShowAllFiles False"
end if

-- kill Finder to make the changes active
do shell script "killall Finder"

Saturday, February 26, 2011

Managing updates in Google Software Update - OSX

Don't know how old this page is but the issue comes up a bit and this is Google's response, at some point in time:
Managing updates in Google Software Update

Show Full Path in Finder, OSX

Too handy, so simple.
Open up Terminal, enter this line
defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES

Friday, January 21, 2011

Some handy info for Dell Streak users

Searching for answers regarding the Dell Streak and this error:
dell streak android.process.acore stopped unexpectedly
found some good info here:
http://www.ph2dot1.com/2011/01/more-dell-streak.html

Grabbing iView stuff for slow computers

As nice a feature as [ABC TV, Australia's] iView is it can be a fail for those with slow connections. Pausing of an iView show does not significantly allow buffering such that you can then unpause to watch without stuttering of the video, due to a slow internet connection.

Therefor using the iView plugin for Firefox one can DL to a file to then watch in one nice smooth sitting.

Firefox iView plugin https://addons.mozilla.org/en-US/firefox/addon/iviewfox/versions/

OS X Ethernet fix for 10.6.6 Software Update

So I unwittingly clicked 'OK' and allowed the Apple software update of my system to 10.6.6 (which some people think should be re-titled '10.6.6.6' because it's -evil-™™™™)

It killed my ethernet. Wireless was still ok, a saving grace, as it allowed me to check the forums and then download the Combo install for 10.6.6.

I booted into safe mode (hold shift key while starting up) and then installed MacOSXUpdCombo10.6.6 (.dmg) which I got, at the time, from here http://support.apple.com/kb/DL1349

Hope this helps someone.

D
.

Thursday, January 20, 2011

OS X Temporary Files Flash videos

These files I used to find here

/private/var/tmp/folders.501/TemporaryItems/FlashTmp0
/private/var/tmp/folders.501/TemporaryItems/FlashTmp1

but this folder has ceased to exist .. o_O

OK, some tedious searching has found the temp file(s) at

/private/var/folders/2E/2EFZQa0NGbKgDAbyRFtrdk+++TI/TemporaryItems

My system is now on Snow Leopard which may contribute to this change but I was sure it was at the earlier location very recently.

I *did* do some apt-get installs yesterday ... [shrug]

Apple Script to Show All Files in Finder

I use two separate scripts, one for On and one for Off.

do shell script "defaults write com.apple.finder AppleShowAllFiles True"
do shell script "killall Finder"

do shell script "defaults write com.apple.finder AppleShowAllFiles False"
do shell script "killall Finder"

Friday, December 31, 2010

Dell upgrades Android OS for Streak and messes with camera

OK, so I have a Dell Streak, I wait patiently for the Android upgrade to version 2.2.
I get it, install all good. Camera app seems to have an improved interface. Great.

But, oh no.. I am now taking VGA snaps?? How did that happen.. when ..? And how do I change the settings back?

Poor documentation on it, rude behaviour switching the res. The settings button for changing the res brings up a menu but the part with the resolution etc is hidden, with no indicator to its existence.

FAIL

To change the settings of your camera on the Dell Streak with Android 2.2:

1. Open Camera app
2. Click on the settings icon at the top
3. In the pop-up menu you will see options for contrast and brightness. But the down below there are more options, you need to slide the contrast/brightness options up to see them. Swipe the scroll menu in an upward motion to do this. Options to change Picture Size, Picture Quality, Scene type, Anti-banding (50Hz vs. 60Hz), and the Shutter Sound on/off will NOW be available.

Tuesday, September 28, 2010

RSS Feeds and Google Reader

It's all there in Google, so you don't need other software when on the road.

Google Reader aggregates your Syndicated content for you.

Some pics to guide you:

G-Reader step 01



G-Reader Step 01

Thursday, September 16, 2010

Tree listing - bash scripts/commands for OS X

ok I was wanting to view my music directories and found this lovely command

find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g' | grep -v DS_Store

at Murhpy's wonderful site.

piping it to the grep -v removes the .DS_Store files
grep --help for more info

.

Monday, September 06, 2010

Converting Multimedia (Sound & Video) files

SUPER, Simplified Universal Player Encoder & Renderer. A GUI to ffmpeg, mencoder, mplayer, ffmpeg2theora & the theora/vorbis RealProducer plugIn. If you need a simple, yet very efficient tool to convert (encode) or play any Multimedia file, without reading manuals or spending long hours training, then SUPER © is all you need. Supports most video formats and also portable formats for PSP, Nintendo DS, PS3, iPod, Zune, PocketPC and NEC, Nokia, Siemens, SonyEricsson mobiles.
http://www.videohelp.com/tools/SUPER

D
.

Saturday, August 28, 2010

Saving streaming video

Sick of waiting to re-download that video you want to show someone? You can grab Flash Layer Videos (ie. the type of content that youtube sends you) from your temp directory, on a PC, using Video Cache Viewer
worked for me anyways =)

D
.

iPod to PC copy

Want to get your music tracks onto the computer (after reinstalling your OS) ..
I found CopyTrans did the job nicely enough.

D
.

Tuesday, June 29, 2010

Open Terminal Here - Mac OS X

Nice little app for getting a terminal window open and CD'ed to the current folder of the Finder window. I have it as a shortcut in my Finder toolbar.

Available at Mac OS X Hints
.

Sunday, June 27, 2010

Allowing your phone access through your wireless security.

One of the better ways of securing your wireless router is to limit access to known MAC addresses.
So if you want your telephone to be able to access your router you'll need to register its MAC address within the router's 'allowed' list.

To find out what your mobile phone's MAC address is (Australians at least),
enter *#62209526# or *#MAC WLAN#
.