IT Nota

  • Home
  • How To
  • .NET
  • WordPress
  • Contact

Copying Outlook Signatures From Other Computer

Microsoft Outlook Logo If you have created Outlook email signatures and you migrated to a new system, these signatures can be copied from the old computer so you can then use the signatures with Outlook on the new system.

The assumption of the example below is that the hard drive of the old system was attached to the new system on drive D.

Because the Signatures folder is a hidden folder, the easiest way to open the folder is to use the command %APPDATA%\Microsoft\Signatures from the Start menu. Please note the difference between older and newer Windows OS (see below):

Windows XP

D:\Documents and Settings\ITNota\Application Data\Microsoft\Signatures

Windows 8.1

C:\Users\ITNota\AppData\Roaming\Microsoft\Signatures

Copy the whole contents of the old directory to the new one. That’s it.

Update older signatures

For signatures created in older versions of Outlook, you should update the signature files so that they use revised HTML code that uses cascading style sheets (CSS). This helps prevent potential problems when switching or deleting signatures in a message.

  1. Click the File tab.
  2. Click Options.
  3. Click Mail.
  4. Under Compose messages, click Signatures.
  5. In the Signatures and Stationery dialog box, in the Select signature to edit list, click a signature.
  6. Click in the Edit signature box, and then click Save.

Further Reading

Copy email signatures to another computer

April 19, 2014 Filed Under: How To Tagged With: Microsoft, Office

How to Use VPN On Kindle Fire HDX

This is a step-by-step tutorial on how to setup a VPN connection on Amazon’s Kindle Fire HDX without using any open VPN client from Amazon app store download or Google Chrome store. That way, the setup is much easier compared to previous Kindle generations since everything can be done from its onboard VPN client and it only takes a few steps to set it up.

Although this tutorial uses specific instructions from Private Internet Access, it can be used as a how to setup vpn connection tutorial for almost any other VPN client on an Android device. Just check with your own VPN service or network administrator for the VPN configuration information and make the necessary adjustment.

  1. On your Kindle Fire, swipe down from the top of the screen and you can either tap Wireless (faster) or Settings. For this purpose Settings only adds an (unnecessary) extra step.

    Kindle Fire HDX Quick Settings Menu

  2. Tap VPN and Add a VPN Profile.
  3. Type in the VPN profile information below, using explanation from Private Internet Access (PIA)*
    • VPN Name: Private Internet Access
    • Type (The security protocol for the VPN): L2TP/IPSec PSK
    • Server address: us-texas.privateinternetaccess.com (you can pick other available servers)
    • L2TP secret: Do not enable (Just leave this blank)
    • IPSec identifier: Leave empty
    • IPSec pre-shared key: my safety
    • Tap Save to create your VPN profile

    Kindle Fire HDX Edit VPN Profile

  4. Your VPN profile is saved and appears on the VPN screen.

  5. From the VPN screen, tap the VPN Profile (Private Internet Access).

    Kindle Fire HDX VPN Profile Entry

  6. Enter the username and password for your VPN, and then tap Connect.
    You might also want to check Save account information to save your credentials. You don’t typically want to keep re-typing your username and password every time you want to connect to a VPN server.

    Kindle Fire HDX Connect to VPN (Login)

Once your VPN is activated you should see a key icon and your VPN profile should say that you’re connected (under the VPN name).

Kindle Fire HDX connected to a VPN (key icon)

That’s all there is to it.

With the latest generation of Kindle Fire HDX, it’s very easy to setup a native VPN connection so there’s no excuse of not using it and compromising your information security when accessing the Internet via a public Wi-Fi.

Recommendation

You might want to setup a few profiles for different connection servers. As a rule of thumb the closer a server is to your location, the faster the connection is. However, you still want to have the options to connect to other available servers.

Further Reading

Why You Need to Use a VPN

The link to Amazon for Kindle Fire HDX is an affiliate link. We’re not affiliated with Private Internet Access VPN service.

March 24, 2014 Filed Under: How To Tagged With: Amazon, Kindle, VPN

Robocopy Example to Mirror Web Server

Just to solve a challenge of dealing with legacy CMS that’s only specifically mapped to an old server. The contents need to be copied over to a new server periodically throughout the day and it has to act like a mirror (option /mir) in such a way that net new files are copied and any deleted directories and files are also reflected on the new server.

As the server was upgraded, there is a couple files that cannot be overriden. With the use of Windows Robocopy, certain directories such as App_Data and aspnet_client can be excluded (option /xd). In the same way, files like global.asa and web.config (option /xf).

Robocopy command:

robocopy \\shared\d$\itnota\ D:\itnota\ /mir /e /xd "App_Data" "aspnet_client" /xf "global.asa" "web.config" /log:"F:\migration.log"

The command then can be set on a task scheduler to run automatically.

Robocopy commands in Task Scheduler

More Windows Robocopy examples can be found on the links below (Further Reading).

Further Reading

Robocopy
Robocopy and a Few Examples
Robocopy /mir switch doesn’t copy security
MCSA Windows Server 2016 Complete Study Guide: Exam 70-740, Exam 70-741, Exam 70-742 and Composite Upgrade Exam 70-743 2nd Edition

January 29, 2014 Filed Under: How To Tagged With: Task Scheduler, Web Server, Windows Robocopy, Windows Server

How to Add Pagination on Genesis Lifestyle Theme Front Page

Genesis Lifestyle Pro Theme
As an update to their top seller Genesis Theme, StudioPress released a new Lifestyle Pro Theme with responsive design and HTML5. If you’re a member of My StudioPress, then you’ll have access to setup the theme exactly as it looks like in a demo, which is already very good to begin with.

I really like how the front page was setup, however I also want it to function as my main blog along with navigation links at the bottom of the content (see picture). Genesis standard loop is still going to be used for page two and beyond so they look like a normal blog page.

In order to achieve this, we need to modify the front-page.php file. The modification was based on the code from Bill Erickson for creating custom loop with pagination.

See the modified front-page.php below with all changes highlighted.

<?php
/**
 * This file adds the Home Page to the Lifestyle Pro Theme.
 *
 * @author StudioPress
 * @package Lifestyle Pro
 * @subpackage Customizations
 */

add_action( 'genesis_meta', 'lifestyle_home_genesis_meta' );
/**
 * Add widget support for homepage. If no widgets active, display the default loop.
 *
 */
function lifestyle_home_genesis_meta() {

	if ( !is_paged() ) {

		if ( is_active_sidebar( 'home-top' ) || is_active_sidebar( 'home-middle' ) || is_active_sidebar( 'home-bottom-left' ) || is_active_sidebar( 'home-bottom-right' ) ) {
	
			// Force content-sidebar layout setting
			add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_content_sidebar' );
	
			// Add lifestyle-pro-home body class
			add_filter( 'body_class', 'lifestyle_body_class' );
	
			// Remove the default Genesis loop
			remove_action( 'genesis_loop', 'genesis_do_loop' );
	
			// Add homepage widgets
			add_action( 'genesis_loop', 'lifestyle_homepage_widgets' );

		}
	}
}

function lifestyle_body_class( $classes ) {

	$classes[] = 'lifestyle-pro-home';
	return $classes;
	
}

function lifestyle_homepage_widgets() {
	
	genesis_widget_area( 'home-top', array(
		'before' => '<div class="home-top widget-area">',
		'after'  => '</div>',
	) );
	
	genesis_widget_area( 'home-middle', array(
		'before' => '<div class="home-middle widget-area">',
		'after'  => '</div>',
	) );
	
	if ( is_active_sidebar( 'home-bottom-left' ) || is_active_sidebar( 'home-bottom-right' ) ) {

		echo '<div class="home-bottom">';

		genesis_widget_area( 'home-bottom-left', array(
			'before' => '<div class="home-bottom-left widget-area">',
			'after'  => '</div>',
		) );

		genesis_widget_area( 'home-bottom-right', array(
			'before' => '<div class="home-bottom-right widget-area">',
			'after'  => '</div>',
		) );
		
		echo '</div>';	
	}

	// Based on https://gist.github.com/billerickson/3218052
	global $post;
	// arguments, adjust as needed
	$args = array(
				'post_type' => 'post',
				'posts_per_page' => get_option( 'posts_per_page' ),
				'post_status' => 'publish',
				'paged' => get_query_var( 'paged' )
			);

	/*
	Overwrite $wp_query with our new query.
	The only reason we're doing this is so the pagination functions work,
	since they use $wp_query. If pagination wasn't an issue,
	use: https://gist.github.com/3218106
	*/
	
	global $wp_query;
	$wp_query = new WP_Query( $args );
		 
	if ( have_posts() ) :
		while ( have_posts() ) : the_post();
		endwhile;
		
		do_action( 'genesis_after_endwhile' );			
	endif;

	wp_reset_query();
}

genesis();

The pagination on the front page should look like the picture below.

Genesis Lifestyle Pro Theme Custom Pagination

Lifestyle Pro is definitely worth checking out due to its capability as one of the modern responsive WordPress themes, its elegant look, and easy customization.

Caveat

You need to pay attention on the number posts to show on the Admin settings. Since the way it’s setup on the front page is showing 8 posts at a time, you need to make sure the setting is also for 8 posts at a time so the second page of the blog doesn’t skip any postings.

WordPress Admin Setup (Reading)

January 13, 2014 Filed Under: How To, WordPress Tagged With: Genesis Framework

How to Add Footer to a Custom Post Type in Genesis 2.0

When you create a single or an archive page for a custom post type in Genesis 2.0 (HTML5), the formatting is not consistent with typical post. What’s apparent is the absence of <footer class="entry-footer"> tag in the custom post type page.

The difference between the two are highlighted on the codes below:
Custom Post Type

<p class="entry-meta">
  <span class="entry-categories">
    Filed Under:
    <a rel="category tag" title="View all posts in Uncategorized" href="https://www.itnota.com/category/uncategorized">Uncategorized</a>
  </span>
  <span class="entry-tags">
    Tagged With:
    <a rel="tag" href="https://www.itnota.com/tag/genesis-framework/">Genesis Framework</a>, 
    <a rel="tag" href="https://www.itnota.com/tag/html5/">HTML5</a>
  </span>
</p>

Typical Post

<footer class="entry-footer">
  <p class="entry-meta">
    <span class="entry-categories">
      Filed Under:
      <a rel="category tag" title="View all posts in Uncategorized" href="https://www.itnota.com/category/uncategorized">Uncategorized</a>
    </span>
    <span class="entry-tags">
      Tagged With:
      <a rel="tag" href="https://www.itnota.com/tag/genesis-framework/">Genesis Framework</a>, 
      <a rel="tag" href="https://www.itnota.com/tag/html5/">HTML5</a>
    </span>
  </p>
</footer>

The easiest way to do this is by utilizing using Genesis Shortcodes and replace the genesis_entry_footer with our own footer markup.

remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 );
add_action( 'genesis_entry_footer', 'my_entry_footer_markup_open', 5);
function my_entry_footer_markup_open() {
  echo '<footer class="entry-footer">';
}

add_filter( 'genesis_post_meta', 'my_post_meta' );
function my_post_meta( $post_meta ) {

  $post_meta = '[[post_categories]][[post_tags]]';

  return $post_meta;

}

remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 );
add_action('genesis_entry_footer', 'my_entry_footer_markup_close', 15);
function my_entry_footer_markup_close() {
  echo '</footer>';
}

Further Reading

Genesis Framework Shortcode Reference
Function Reference/wp get post tags
Function Reference/wp get post categories

December 21, 2013 Filed Under: How To, WordPress Tagged With: Genesis Framework

« Previous Page
Next Page »
Buy me a coffee Support this site
Buy Me a Coffee?

Categories

  • .NET
  • Coding
  • Cybersecurity
  • Database
  • How To
  • Internet
  • Multimedia
  • Photography
  • Programming
  • Resources
  • Review
  • Tips and Tricks
  • Uncategorized
  • Use Case
  • WordPress
  • Writing

Recent Posts

  • How to View Stored Procedure Code in SQL Server
  • How to Find a String in SQL Server Stored Procedures
  • How to Remove Cached Credentials without Rebooting Windows
  • ESP Work Automation: Empowering Enterprises with Streamlined Workflows and Operational Efficiency
  • How to Search for a String in All Tables in a Database

Recent Posts

  • How to View Stored Procedure Code in SQL Server
  • How to Find a String in SQL Server Stored Procedures
  • How to Remove Cached Credentials without Rebooting Windows
  • ESP Work Automation: Empowering Enterprises with Streamlined Workflows and Operational Efficiency
  • How to Search for a String in All Tables in a Database

Tags

.NET .NET Core AdSense ASP.NET Cdonts Dll Classic ASP Code Editor ETL FSharp Genesis Framework Git Google HP Asset Manager HTML5 Hugo IIS Information Security Internet Internet Information Services iOS JAMStack Linux macOS Microsoft Microsoft SQL Server MVC PHP PowerShell Python Simple Mail Transfer Protocol Smtp Server SQL SQL Server SSIS SSMS SSRS Sublime Text Visual Studio Visual Studio Code VPN Windows Windows 8 Windows 10 Windows 2012 Windows Server

Copyright © 2011-2026 IT Nota. All rights reserved. Terms of Use | Privacy Policy | Disclosure