Mandar Apte

UI/UX Designer from Mumbai, Maharashtra, India.

Category: Tutorials

Free Tutorials

  • 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…)
  • 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 speed up your computer’s internet connection performance with faster speed for domain name lookup.

    google-public-dns
    (more…)
  • Maintenance Tips for Your Macintosh to Tune up Mac’s performance for maximum productivity

    Here are a few OSX Maintenance Tips that can boost your Macintosh’s performance over the years.

    Mavericks-OSX-icon

     
    Ideally, you should perform these tasks once a month or weekly, which will optimize and tune up your Mac so that it runs at its optimum level.

    Here are the following things that you have to perform,

    (more…)
  • Reset & Rebuild Network Settings & Preferences (Including Ethernet, WiFi, Bluetooth) to System Default on Mac (Macintosh)

    Follow the steps below to reset OSX Network preferences to the system default.

    Step 01:
    Reset location.
    The first thing you want to do is reset your location.
    Go to System preferences > network, then select location at the top and edit locations.

    network preferances
    network preferances location
    edit-locations
    (more…)