Tag Archives: backup

Make Complete Backups of Default Code First (Crucial!)

Thoroughly Read This and Think Through It All in Your Head – Come to an Epiphany That You Will NO LONGER Take the Risk of Losing Hours, Days, Weeks, or Even Years of Hard Work Coding, Configuring, and Designing Your New Site When ShiftCode Has Made it So Easy for Us Site Admins to Perform Complete and Automated Backups!  It cannot be stressed enough that it is definitely necessary to make complete backups all the files that you have access to BEFORE you start tinkering (modifying any code or site template designs)

Though ShiftCode always has your back if you lose any of the default programming code or design template code you shouldn’t have to worry about having to ask anyone for the default files should you mess something up (which is surprisingly easy to do – even for professional coders and designers)  Not only is it embarrassing to ask (I’ve been in that situation quite a few times) but it has the potential to completely halt your site building process until your request is handled (yes, ShiftCode support is usually pretty prompt with such requests but you probably don’t want to be put in the position of awaiting a reply while you (or your designer and/or coder) is in the midst of the creative process)

Also note that as your site build out and customization starts to bloom and all through the entire creative process then it will be necessary to make backups of your customizations in code and design at various stages of the creative process.  Know that modifying web site script code is a very delicate process and only one simple mistake in the form of omitting or adding one single character or command in code can potentially bring your entire site down showing an error (though the error condition would be only temporary until you find and fix the error in code or you restore the file containing the erroneous code from a previous backup)

Resolve Now to Commit to Performing Regular Full Site Backups Well Into the Future:  (Yes, you can thank me sometime in the future for stressing the importance of regular full backups while also giving yourself a nice pat on the back just after that dreaded unrecoverable event happens (God forbid! – but YES they do happen to everyone at least once over time!) simple statistics predict data storage error and/or human error causing an unrecoverable failure at least once (though probably more) in the life of most all web sites (if it were not for your regular backups then you may have been instantly out-of-business should a hardware failure of a hard drive or other crucial data storage device (more common than you may think))


Another point to make here is to remind you that you are dealing with other people’s money that they have earned on your site and they have the legitimate right to demand their money from you (even in the case of data loss) it’  I don’t need to remind you how even the most polite and kind (initially) people appear to be – if you start messing with their hard earned money people will get them to stand up, pay attention, and become very vocal if there is even the slightest hint that there is a discrepancy in their site account funds (even if it’s not your fault like a drive failure, database corruption, etc.) then you will instantly be put in an untenable position if your members claim you owe them yet you suddenly don’t have access to any recent records to competently dispute or award their claims (I’ve been there and done that and I can tell you that personally you feel like a complete idiot (all you had to do is make simple backups at least a week apart to still have some idea in what ballpark you owe specific people.

OK, Enough Talking About Doing It – Let Me Show You How and Let’s Back Everything Up Now!

Prepare a Folder on Your PC or Device to Receive These Extremely Important Backups:I’d suggest that you make the new backup folder somewhere within the ‘My Documents’ or ‘Documents’ folders (one should already be present on your machine.  The reason why I suggest placing all backup folders within the Windows document area is that I know that whatever backup application you may have running (or eventually purchase in the future) will undoubtedly default to including common default areas where important documents are stored.  So, when you initiate any type of backup of the files on your PC then chances are your crucial GPT site  backups will be included by default.

What should you name your web site backups folder?  This is an area where it simply comes down to your own preferences.  I, myself, always like to have the backup folder name SCREAM at you with folder names I’m notorious for such as ‘DO_NOT_DELETE_THIS FOLDER_EVER – IT_CONTAINS_CRUCIAL_WEB_SITE_BACKUPS! – or the like (lol)

Important Information to Know Before You Edit ANY Code!

Important Information to Know Before You Edit ANY Code!

  1. Make Complete Backups of Default Code First (Crucial!)  <– Click on the link to read the article.
  2. Know About the Anomaly in the ShiftCode Editor: The ShiftCode script is a masterpiece of software development though one elusive unexpected behavior with the code editor has been extremely hard to find and fix (though know we are working on it)  Here’s what to look out for (if you’re not paying attention it could result in errors in your code):

    When you first open a template (or script, or include, etc.) everything look s fine but then you may notice on your first character edit that somehow the mouse cursor is editing the wrong area a line or two down.  If you didn’t notice that the cursor was misbehaving and editing some whole other portion of code below where you think you’re editing – and you saved the template then, then chances are that your template is destroyed by only a few characters.

    To properly handle this initial cursor misbehavior then you need to remember to check and re-synchronize the cursor position by simply editing one single character (and then deleting your edit) every time you open a template to edit. This one (or more) character solve fixes the issue completely for the whole time that file is open and being edited (and it doesn’t reoccur until the file is saved and a new editing session is begun again on a new or the same file)

    I know that one shouldn’t have to resort to this but the way that I solve this issue completely for myself is to use a devoted commercial code editor by simply copying and pasting whatever I’m editing into it, editing it, pasting it back, and then saving it.  The professional code editor I prefer is CodeLobster and though I actually purchased the professional version then know that they also have an absolutely FREE fully functional version for download at www.CodeLobster.com

  3. …to be continued talking about not hard-coding links…