techNerdia https://technerdia.com Web Dev, Coding, Business and Life! Thu, 08 Aug 2019 21:58:13 +0000 en-US hourly 1 https://technerdia.com/wp-content/uploads/cropped-techNerdia_512-32x32.png techNerdia https://technerdia.com 32 32 WordPress Subversion Repository Guide https://technerdia.com/subversion-guide/ Wed, 03 Oct 2012 14:36:38 +0000 http://technerdia.com/?p=1687 Subversion is the version-control system used by WordPress to manage plugins within its Repository. With Subversion you only commit the tested working tagged version of the plugin rather than various changes during development.


Install Subversion

sudo apt-get install subversion

Setup The Local Directory Structure

Create a document structure to store the Subversion copies of each WordPress plugin. My structure looks like this:

WordPress Plugin SVN Tree

Local SVN Update

These step should be completed for both new and already published WordPress plugins.

Within the /svn/ folder, checkout (co) a copy of a plugin.

cd /wordpress/svn/
sudo svn co http://plugins.svn.wordpress.org/wp-my-admin-bar/

SVN Checkout Example - Thumbnail

Within the plugin-name directory this will create a local directory structure that looks like:

List Of SVN Files

The Plugins Readme.txt File

A plugins readme.txt file is the key file to making plugins publish correctly. The readme.txt creates the description of the plugin and is what determines the plugin version available to the public.

  • The "Stable tag" is what "tags" the version of your plugin. The Stable tag must always be updated/changed when a new version of your plugin is published.

Stable tag in readme.txt file

The readme.txt file also lays out the different tabbed pages displayed on WordPress.org, such as: Description, Installation, FAQ, Screenshots, Other Notes, Changelog, and Other Notes. This is done based off the structure of the readme.txt file. [Clean Robots.txt Template]

Status Check

cd /wordpress/svn/plugin-name/
sudo svn status

Copy Development Plugin Files Into /trunk/

Change to the development plugins root directory /plugin-name/.

Copy a single file into /trunk/.

sudo cp readme.txt ../svn/plugin-name/truck/

Copy all plugin files into /trunk/.

sudo cp -r * ../svn/plugin-name/truck/

Ignore .git directory, copy all files into /trunk/

sudo cp -r `ls -A | grep -v ".git"` ../svn/plugin-name/truck/

Delete Old Files From /svn/

Change directory to ../svn/.

Remove both the /trunk/ and if needed the /tags/ version of the file.

sudo rm -r trunk/file-to-remove.php
sudo rm -r tags/0.0.0/file-to-remove.php

Delete the files using SVN

sudo svn delete trunk/file-to-remove.php
sudo svn delete tags/0.0.0/file-to-remove.php

If you Screwed Up /svn/trunk

Reset the /svn/trunk directory.

Change into the /svn/plugin-name/ directory, remove the trunk directory, the checkout a new copy of the trunk directory from the repository.

cd /wordpress/svn/plugin-name/
sudo rm -r trunk
sudo svn co http://plugins.svn.wordpress.org/wp-my-admin-bar/trunk

Re-copy changed files back into the /svn/plugin-name/trunk directory.

SVN Stat - Thumbnail

Tag New Local Versions

Once the local /trunk/ has an updated copy of the plugin, copy the contents of trunk to a locally tagged version. The tag name / directory, will match your plugin Version in your readme.txt file. If the Stable tag within the readme.txt is on Version 0.1 then your tagged directory name would be 0.1 as well.

cd /wordpress/svn/plugin-name/
sudo svn cp trunk tags/0.1
  • Remember: The tag version should relate to the "Stable tag" version number in the readme.txt file.

Add Files To Commit

cd /wordpress/svn/plugin-name/

Add all files.

sudo svn add --force * --auto-props --parents --depth infinity -q

Add a single file.

sudo svn add robots.txt

Commit The Update

Publish the plugin to the repository.

cd /wordpress/svn/plugin-name/
sudo svn ci -m 'Version 0.1'
  • Note: The area within the quote marks is a message to note what the update/version is about.

Commit Files To The Repository - Thumbnail

Enter the required login credentials to start the commit.

View The Plugin

Open the svn url to the plugin, example: http://plugins.svn.wordpress.org/wp-my-admin-bar/

Enter the /trunk/ and /tags/version-number directories to ensure everything committed correctly.

After a few minutes has passed, check the plugin version at WordPres.org, example: http://wordpress.org/extend/plugins/wp-my-admin-bar/

The new plugin version should nbe available for download.

]]>
The Best Password Manager for Windows – Mac – Linux / Ubuntu – Smart Phones and more… https://technerdia.com/password-manager/ Wed, 16 Mar 2011 19:37:52 +0000 http://technerdia.com/?p=284 When it comes to kick butt little tools, KeePass wins hands down!

This tool has changed how I use my computer, my browsers and even how I plan for vacations.

KeePassWhat is KeePass? Simply, it’s a very secure password manager, that can group your passwords together for easy management. And it works on just about everything, Windows of all flavors, Smart Devices like the iPhone, Droids, BlackBerry’s, and so on… Linux/Unbuntu, Mac OS X, I’m probably missing a few. It’s light weight, simple to use, has a movable database… truly, it rocks.

Other than Google, every Password I have is no longer stored in my browser. I keep everything, from the web, ftp, shell, database and client secure details in my KeePass.

  • I only have one password to remember, and that’s to KeePass.
  • I use KeePass to generate long random passwords for me.
  • No site, service or feature has the same password.

Downloading Keepass: http://keepass.info/

The options are the Classic Edition and Professional Edition. The Pro Edition requires MS .NET Framework…. I downloaded the Classic Edition. Choose either, or go with the Classic if you’re not sure which one to choose.

Installing KeePass

KeePass is portable, it doesn’t make registry changes and runs without special libraries. You can place it on a USB drive and even run it on a public machine all without installing anything.

Setting up KeePass

Once you run KeePass it will ask you to create a database and Composite Master Key, which I recommend doing for Security reasons. You have two things to remember here, your Master Password (so select a strong one) and the location to where you save the Database.kdb and pwsafe.key files.

  • Be sure to backup your Database.kdb and pwsafe.key files once you’ve populated them with account details.
  • Your pwsafe.key file may be hidden on your Computer depending on your OS and setup. You may need to unhide important files before you can copy the key file for a backup.

Running KeePass

Once you start KeePass, enter your Master Password and select your Key. The software can be a bit confusing at first, but a couple features cover most of your needs.

First is Groups, groups simply group your accounts/passwords together. I have groups for my clients (with sub-groups inside of it), affiliate programs, social networks, tools, forums, etc.

KeePass Groups Example

  • To create a group: Click the Edit link at the top, then select Add Group

KeePass Add Entry Example The next feature is Adding an Entry. On the main toolbar, it’s the 4th icon. If you mouse over it, it says Add Entry. Clicking Add Entry brings up a window to enter the details. Everything here is self explanatory other than maybe the Password Generator.

  • To add an entry: Click the 4th icon in the main menu (Add Entry) or access the Edit link at the top, then select Add Entry.

Every new entry gets a fresh new password, click the icon to the right of the Password box to
expose the password, for copying or pasting in a new password.

KeePass Password Manager

If you want to generate a new password, click the Keys Icon to the right of the Repeat Password box. At the bottom of the window, click the Generate button to create a new password. It’s instantly copied over to the entries password field.

Maintaining Entries

Each entry can be dragged into groups. So if the entry is created in the wrong spot, simply select and drag it to the proper location.

To View or Edit an Entry, right click on the Entry and select Edit/View Entry. Use this same menu to delete or duplicate an entry.

Creating Multiple Databases For Others To Access

Does your Computer get used by your spouse, kids or staff? Then no worries… In the main menu, click the New Icon (first icon). Set a new Master Key then your Password. Now everyone can have a unique way to access PassKeep to store passwords.

My spouse uses her own Master Key File while my kids just have a Password enter with no Key File to select. It’s hard enough to get children to use this software, so cut out every step you can that may push them away from using it, every time!

  • Backup your database and key file before doing this.

KeePass Settings

To access the Settings open the Tools Menu at the top, then click on Options. Setting up the software is really more about how you want to use it…

  • Security: I have two fields unchecked, the 3rd (Lock wordpress) and the last (expire entries) – the others are all checked.
  • Interface (GUI): The two key settings here for me are the Minimize and [x] close selections. I have both selected. Instead of the software closing, it goes to my system tray, when I open it – I have to enter my Master Password, just like I would if the software was fully closed.
  • I didn’t modify any other settings past these…. I do suggest you read through the other tabs & features to ensure the settings are set how you like.

Take It With You!

Grab a copy of KeePass, the Database and Key file and put the data on a flash drive. No more worrying about using a note pad, paper, or whatever KeyPass solves those issues completely.

Proper security starts and ends with you! So use KeePass!

]]>