Mandar Apte

UI/UX Designer from Mumbai, Maharashtra, India.

Articles

  • How to Automatically Empty WordPress Trash.

    This wp-config.php function controls the days before WordPress permanently deletes posts, pages, attachments & comments from the trash bin.

    This function will automate the process of deleting WordPress Trash & you will not have to press the ‘Empty Trash’ button again for your installation.

    Default WordPress Trash Settings:
    The default is 30 days.

    define( 'EMPTY_TRASH_DAYS', 30 ); // 30 days default
    
    (more…)
  • Managing Apple ID for your Apple Devices for Maximum Online Security & Peace of Mind. Manage your Apple ID & Communication preferences with minor tweaks & changes.

    Nowadays, every other person we meet on the street has a smartphone, tablet, or phablet, and we all have laptops in our bags and desktop computers at home and in the office.

    So, data security between devices is a big issue now.

    Let’s see: For Apple Products users in the Apple iOS and OSX ecosystem, everyone has an iMac or Mac Pro, iPhone or iPod touch, and iPad. So, using modern technologies like iCloud is the primary key to handling data between these devices.

    So, I will note down a few points that will help you manage your Apple ID to secure your devices and data, such as contacts, iWork Data files, Keychain passwords and access, iCloud Data, Photos, Notes, Safari Bookmarks, and even features like Back to my Mac, Find my Mac, and WiFi iOS over-the-air backups.

    01 Manage & Sign In Apple ID URL
    (more…)
  • Indent Multiple Lines of Code on Mac using Xcode. Fix Code Tab Indention on Mac using XCode?

    The problem is when you have flat multiple lines of code & you want all of the code indent in one click of a button without going through every word or line by 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 the code you want to Indent

    (more…)
  • 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 in the WordPress 2.6 Release to better encrypt information stored in the user’s cookies.

    Security Keys will look like these examples, but don’t use the duplicate keys given below:

    define( 'AUTH_KEY',         't`DK%X:>xy|e-Z(BXb/f(Ur`8#~UzUQG-^_Cs_GHs5U-&Wb?pgn^p8(2@}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#JK@pc2{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…)
  • Reduce MySQL Database size by managing WordPress Post Revisions count (WordPress Tip for Optimum Performance)

    Description:
    The WordPress revisions system records each saved draft or published update. You can see what changes were made in each revision by dragging a slider (or using the Next/Previous buttons). The display indicates what changed in each revision—what was added, what remained unchanged, and what was removed. Lines added or removed are highlighted, and individual character changes are highlighted. Click the ‘Restore This Revision’ button to restore a revision.

    Introduction to feature called revisions:
    As stated above, ‘Revisions’ are posts stored drafts for future proofreading of blog posts. It creates multiple copies of the blog posts you are working on in your MySQL Database in plain English. So it naturally affects & increases the size of your WordPress’s MySQL Database size in megabytes.

    Suggestion:
    So I would suggest using the following code to successfully control the WordPress Post Revision Count to ultimate ‘3’ to stop it from growing above & creating clutter in your WordPress Database.

    Specification:
    Put the following code in your WordPress Installation’s wp-config.php file to limit the number of post-revision WordPress stores in the database. Old revisions are automatically deleted.

    (more…)
  • How to repair and optimise MySQL Databases through phpMyAdmin for optimum WordPress Performance.

    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 on its burden. So what we should do in the first place is repair & optimise it for optimum performance.

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

    Warning & Precautions
    First, back up all of your websites and relevant databases so that if something goes wrong, you have a backup copy of your server files and databases.

    Initial Step:
    The Initial Step is to Sign in to your web hosting’s phpMyAdmin MySQL Database Portal and Select your choice of database. First, note down your MySQL tables’ overheads and database size to compare them in the future after optimisation.

    Step 01:

    wordpress databse optimise 1
    (more…)
  • How to selectively or enable & disable ‘WordPress Automatic Background Updates’ while modifying code in the WordPress root wp-config.php file & Your theme’s functions.php file

    Introduction to WordPress’s New Functionality Automatic Background Updates:
    WordPress 3.7 introduced automatic background updates to promote greater security and streamline the update process. By default, only minor releases are enabled for maintenance and security purposes, as well as translation file updates. The default behaviour in WordPress 3.7 is the automatic core update for minor versions, i.e., from 3.7.0 to 3.7.1. WordPress’s Graphical User Interface (GUI) does not offer configuration options. To change the behaviour, modify the wp-config.php file in your WordPress root installation or add filters to 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

    Core Updates
    Core updates are subdivided into three types:

    1. Core development updates, known as the “bleeding edge.”
    2. Minor core updates, such as maintenance and security releases, e.g. 3.7.1
    3. Major core release updates, e.g. 3.7

    But If you want to turn them on or off selectively, here is how you will do it,

    Turn them on or off via wp-config.php

    Enable Automatic Updates for core – development, major, and minor versions

    (more…)
  • How to write Language C or C++ Program on Macintosh OSX using Xcode

    I assume that you are on latest Mac with Xocde 5 or later already installed on your mac from Mac App Store.

    SO here is how to write Language C or C++ Program Code on Macintosh OSX using Xcode.

    Note: Writing a C or C++ specific code only differs on Step 05 every other step is the same.

    Step 01 is to Navigate to ‘Application’ folder & double click on ‘Xcode’ Application

    OR Click on ‘Spotlight’ at top left menu bar of your Mac & type ‘Xcode’ press return key on keyboard after getting appropriate search results

    (more…)
  • If you are getting error while updating your Credit Card or Debit Card details under your iTunes Store Account Payment Option then here is solution to that problem. Error Code & Symptoms: ‘Your payment method was declined. Please enter valid payment method information.’

    If you are getting the following Error: ‘Your payment method was declined. Please enter valid payment method information.’

    Your payment method was declined Please enter valid payment method information

    I contacted Apple iTunes Support on their Support page; here is the answer I received from them.

    (more…)
  • Google Analytics Audience Demographics Overview not showing, displaying, appearing any website traffic Data age & gender wise

    There are a few things to consider to understand why Google Analytics is not showing any data under your website’s Demographics overview.

    First thing first:
    Please verify that your code is correctly implemented. Google Analytics states that it is ‘Receiving Data’ under the Admin’s Property tab.
    If your Analytics code is working and implemented correctly, you should check if those are the issues you are facing.

    (more…)