Abhineet.in

unlearning the learnt

Menu
  • Home
  • About
  • CAT Preparation
Menu

Decode a PHP encoded string url in Javascript

Posted on January 17, 2021April 5, 2023 by Abhineet Mittal

Sometimes you may face a problem when you have to decode a string with Javascript which was originally url encoded with PHP. This can be an API response or cookie set by PHP setcookie function. A simple way to do this is through decodeURIComponent function in Javascript. But it leaves the "+" signs in the string….

Read more

How to change Post Type in WordPress

Posted on January 17, 2021April 5, 2023 by Abhineet Mittal

Use these simple methods to easily change post type of single or multiple posts while working with multiple post types in WordPress.

Read more

How to view and modify WordPress rewrite rules

Posted on June 1, 2020April 5, 2023 by Abhineet Mittal

Sometimes a page load issue in your WordPress website has more to do with some random error rather than a bug in your code. In this case, it was rewrite rules cache.

Read more

How to replace Paragraph Break with Line Break in LibreOffice Writer

Posted on April 30, 2020April 5, 2023 by Abhineet Mittal

Replace Paragraph Break with Line Break in LibreOffice Writer with these simple steps.

Read more

Whitelist all sub-sites for wp_safe_redirect in WordPress Multisite

Posted on April 26, 2020April 5, 2023 by Abhineet Mittal

This article shows how to add all the domains/sub-domains of a WordPress multisite network to allow safe redirects through wp_safe_redirect function.

Read more

Make Javascript sequential with “async” and “await”

Posted on April 11, 2020April 5, 2023 by Abhineet Mittal

Javascript code can be easily made sequential with the help of two simple, yet very powerful keywords “async” and “await”.

Read more
Javascript code

Javascript: Loop over querySelectorAll without error

Posted on March 27, 2020April 5, 2023 by Abhineet Mittal

In Javascript, there are a lot of instances when you want to find multiple elements on a page to apply a common operation to all of them. Suppose you want to hide elements of a particular class present on your web page. To do this, first get an array of all such elements using querySelectorAll…

Read more
WordPress Custom Code

Where to add custom code in WordPress

Posted on August 18, 2019April 5, 2023 by Abhineet Mittal

Writing custom code for WordPress may be easy, but you should carefully add your code at the correct place to keep it clean and easily maintainable.

Read more
Cycle with WordPress wheels

How to create a WordPress plugin

Posted on August 17, 2019April 5, 2023 by Abhineet Mittal

Easily create a simple WordPress plugin without any complex setup or need of FTP/SSH to your hosting server.

Read more

How to use PHP built-in web server

Posted on August 16, 2019April 5, 2023 by Abhineet Mittal

You can use the PHP built-in webserver to test your PHP code, without the need to set up complex WAMP or LAMP software on your desktop.

Read more

Enable Gzip compression in WordPress with htaccess

Posted on August 15, 2019April 5, 2023 by Abhineet Mittal

Gzip compression speeds up your Wordpress website by compressing the resources at the server level using simple .htaccess configuration in Apache server.

Read more

Correct file permissions for WordPress on Apache

Posted on August 14, 2019April 5, 2023 by Abhineet Mittal

Let us set up correct file permissions (chmod) for your Wordpress website to ensure the flawless functioning of your website and security from attacks.

Read more

Customize your link preview on Facebook

Posted on August 13, 2019April 5, 2023 by Abhineet Mittal

Facebook & Twitter support Open Graph Protocol to transforms your blog post into a rich social object, allowing you to decide the appearance of your post's link preview on their respective platforms.

Read more
Laptop Google SEO

JSON-LD: Add Structured Data to improve SEO

Posted on August 12, 2019April 5, 2023 by Abhineet Mittal

Add structured data JSON-LD to your blog or website for better search engine optimization (SEO). It helps Google to understand your content better and helps your website to get a better search ranking.

Read more

Social Sharing Buttons without Javascript

Posted on August 11, 2019April 5, 2023 by Abhineet Mittal

Add social sharing buttons to your website without any Javascript with these simple code snippets.

Read more

Add url rewriting router to PHP built-in server

Posted on August 7, 2019April 5, 2023 by Abhineet Mittal

PHP built-in server provides an excellent option to rewrite URLs through router.php. It is very convenient when testing a small PHP application on your machine without the worries of setting up a full server stack.

Read more

Enable browser caching in WordPress using htaccess

Posted on August 6, 2019April 5, 2023 by Abhineet Mittal

Browser caching for all types of files can be easily done using Apache's .htaccess file. This simple configuration results in a faster website, less consumption of bandwidth and better user experience.

Read more

Should you quit your job for CAT Preparation?

Posted on July 19, 2019April 5, 2023 by Abhineet Mittal

Why people quit their jobs to prepare for CAT? Most of the time it is a bad manager, less salary or disillusionment with the current job. It makes sense to leave something for something much better. But you have to decide the right time to do it.

Read more
How to count words in Unicode string using PHP?

How to count words in Unicode string using PHP

Posted on January 23, 2017April 5, 2023 by Abhineet Mittal

How to count words in Unicode string using PHP? This sounds too easy. After all, PHP has so many string manipulation functions. To count words, we can simply use str_word_count and we are good to go. But there is a problem. While this function works fine for English strings, developers find this function unpredictable as sometimes…

Read more

I missed you too

Posted on January 8, 2017April 5, 2023 by Abhineet Mittal

It was the best she ever looked. She was determined to fix everything today. Her flowing hair shining like gold fluttered through the breeze. Once again she looked at her cellphone mirror. “Perfect. He would love to see me.” She said to herself. It was a bright day, full of sunshine. As she walked by…

Read more
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next

Categories

  • Business
  • CAT Preparation
  • Coding
  • Fiction
  • Finance
  • How-To-Life
  • Javascript
  • Life
  • Life at Infosys
  • Photoshop
  • Productivity
  • Publishing
  • Social Awareness
  • Startup
  • Technology
  • Uncategorized
  • Utilities
  • Visual Studio Code
  • Web Development
  • WordPress
  • Work Culture

Recent Posts

  • The Ultimate Guide to CAT Preparation: Tips and Tricks
  • Self-Publishing vs. Traditional Publishing: Which Is Right for You?
  • 7 Effective Strategies to Overcome Procrastination and Achieve Your Goals
  • How to detect English/ASCII string in PHP
  • The state of automobile dealerships in India

Recent Comments

  • Rohan George on Intermediate, Stream & Location: Luck by Chance
  • Ashika on Intermediate, Stream & Location: Luck by Chance
  • Steve on My first job, Infosys
  • SAKTHI on Finally, its Mysore…
  • Akash dhyani Akash on Training Begins…
© 2023 Abhineet.in | Powered by Minimalist Blog WordPress Theme