How to Indent Multiple Line of Code on Mac using XCode with White Spaces, Lines & Tabs or How to Fix Code Tab Indention on Mac using XCode?

Problem is when you have flat multiple line of code & you want all of the code indent in one click of button without going through every word, line pressing the button ‘Tab’.

So I put down few notes containing tutorial to how to indent multiple line of code within one click or one second, Here is how.

 

Method 01:

Select code you want to Indent
(more…)

Continue Reading Post

What is WordPress Salt? A WordPress Security or Secret Key Generator (WordPress Tip for Optimum Security)

Introduction to WordPress Security Keys

 
WordPress introduced security keys from WordPress 2.6 Release for ‘better encryption of information stored in the user’s cookies.

 
Security Keys will look like this examples but don’t use these:

 

define( 'AUTH_KEY',         't`DK%X:>xy|e-Z(BXb/f(Ur`8#~UzUQG-^_Cs_GHs5U-&Wb?pgn^p8([email protected]}IcnCa|' );
define( 'SECURE_AUTH_KEY',  'D&ovlU#|CvJ##uNq}bel+^MFtT&.b9{UvR]g%ixsXhGlRJ7q!h}XWdEC[BOKXssj' );
define( 'LOGGED_IN_KEY',    'MGKi8Br(&{H*~&0s;{k0<S(O:+f#WM+q|npJ-+P;RDKT:~jrmgj#/-,[hOBk!ry^' );
define( 'NONCE_KEY',        'FIsAsXJKL5ZlQo)iD-pt??eUbdc{_Cn<4!d~yqz))&B D?AwK%)+)F2aNwI|siOe' );
define( 'AUTH_SALT',        '7T-!^i!0,w)L#[email protected]{8XE[DenYI^BVf{L:jvF,hf}zBf883td6D;Vcy8,S)-&G' );
define( 'SECURE_AUTH_SALT', 'I6`V|mDZq21-J|ihb u^q0F }F_NUcy`l,=obGtq*p#Ybe4a31R,r=|n#=]@]c #' );
define( 'LOGGED_IN_SALT',   'w<$4c$Hmd%/*]`Oom>(hdXW|0M=X={we6;Mpvtg+V.o<$|#_}qG(GaVDEsn,~*4i' );
define( 'NONCE_SALT',       'a|#h{c5|P &xWs4IZ20c2&%4!c(/uG}W:mAvy<I44`jAbup]t=]V<`}.py(wTP%%' );

 
Benefits of WordPress ‘Salt’

(more…)

Continue Reading Post

How to reduce MySQL Database size by managing WordPress Post Revisions count (WordPress Tip for Optimum Performance)

Description

The WordPress revisions system stores a record of each saved draft or published update. The revision system allows you to see what changes were made in each revision by dragging a slider (or using the Next/Previous buttons). The display indicates what has changed in each revision – what was added, what remained unchanged, and what was removed. Lines added or removed are highlighted, and individual character changes get additional highlighting. Click the ‘Restore This Revision’ button to restore a revision.

 
Introduction to feature called revisions

As stated above ‘Revisions’ are post’s stored drafts for future proof reading of blog post. It creates multiple copies of blog post you are working on in your MySQL Database in plain english. So it naturally affects & increases size of your WordPress’s MySQL Database size in megabytes

 
Suggestion

So I would suggest to use following code to successfully control WordPress Post Revision Count to ultimate ‘3’ to stop it growing above & create clutter of your WordPress Database.

(more…)

Continue Reading Post

How to repair, optimise MySQL Databases through phpMyAdmin for optimum WordPress Website Performance over the years

Introduction

 
As we use & utilise our WordPress website running with MySQL database it gets cluttered & overheads with extra information or data in database tables sometimes it crashes of it’s own burden.

 
So what we should do at first place is that repair & optimise it for optimum performance.

 
So, Here is how to do it…!!!

 
Warning & Precautions

 
First backup all of your websites & relevant databases so if something goes wrong you have backup copy of your server files & databases.

(more…)

Continue Reading Post

How to selectively or totally enable & disable ‘WordPress Automatic Background Updates’ while modifying code in WordPress root wp-config.php file & Your theme’s functions.php file

Introduction to WordPress’s New Functionality Automatic Background Updates:

 
Automatic background updates were introduced in WordPress 3.7 in to promote greater security and to streamline the process of updating WordPress. By default, only minor releases – such as for maintenance and security purposes – and translation file updates are enabled.

 
Default behaviour in WordPress 3.7 is automatic update of core for minor versions i.e. from 3.7.0 to 3.7.1

 
No configuration options are available in WordPress’s Graphical User Interface (GUI). To change the behaviour, you’ll need to modify your wp-config.php file in your WordPress root installation or add some filters in your theme’s functions.php file.

 
In WordPress, there are four types of automatic background updates:

 

  1. Core updates
  2. Plugin updates
  3. Theme updates
  4. Translation file updates

(more…)

Continue Reading Post

Using Google Public DNS for IPv4 & IPv6 to speed up internet browsing, A resource for Web Designers, Developers & Internet Surfers in General

As Wikipedia explains,

 

The Domain Name System (DNS) is a hierarchical distributed naming system for computers, services, or any resource connected to the Internet or a private network. It associates various information with domain names assigned to each of the participating entities. Most prominently, it translates easily memorised domain names to the numerical IP addresses needed for the purpose of locating computer services and devices worldwide. By providing a worldwide, distributed keyword-based redirection service, the Domain Name System is an essential component of the functionality of the Internet.

 
Google’s Public DNS will speedup your computer internet connections performance with faster speed for domain name lookup.

 
google-public-dns

(more…)

Continue Reading Post

How to Enable & Disable Receiving WordPress Admin E Mail Notifications? Here is how?

I have just received email notification that my WordPress installation has been automatically upgraded to 3.7.1

 

SUBJECT:

 
[Your Website Name] Your site has updated to WordPress 3.7.1

 
E MAIL MESSAGE:

 
Howdy! Your site at http://yourdomain.com has been updated automatically to WordPress 3.7.1.

 
No further action is needed on your part. For more on version 3.7.1, see the About WordPress screen:
http://yourdomain.com/wp-admin/about.php

 
If you experience any issues or need support, the volunteers in the WordPress.org support forums may be able to help.
http://wordpress.org/support/

 
The WordPress Team

(more…)

Continue Reading Post

How to put comments in .php, .html, .css files to declare, remind explanation of code to third party developers, designers or even users which may even includes you, This technique can also be utilise while writing or debugging code by selectively disabling or enabling lines of source code

There are different ways of putting comments per type of file on world wide web.

 
Comments helps developer of code to explain third party developers, designers, users or even to himself in space of time why he used that line of code & what function it performs in that web application.

 
So it is real handy to have that knowledge of how to put comments in your files in PHP, CSS & HTML.

 
Here is example how you will put comments in ‘HTML’ & ‘PHP’ pages (outside of the PHP code) & it will look like this:

 

<!-- put comments here to explain it more -->

(more…)

Continue Reading Post

Pages not working after installing or activating WordPress Multisite i.e WP MU

Here is solution of this problem when you activate wp mu on your single domain i.e. you add subdomain through WordPress MultiSite suddenly your pages are not showing up istead it through ‘404 Not Found’ Error…

 
404 Error File Not Found

 
First thing you have to do is navigate to:

(more…)

Continue Reading Post