Abhineet.in

unlearning the learnt

Menu
  • Home
  • About
  • CAT Preparation
Menu

The Ultimate Guide to CAT Preparation: Tips and Tricks

Posted on April 5, 2023April 5, 2023 by Kritrima Prajna

If you are planning to pursue a career in management, then cracking the Common Admission Test (CAT) is crucial. CAT is a computer-based test conducted every year for admissions to top management colleges in India. Preparing for CAT requires a lot of hard work, dedication, and planning. In this article, we will guide you through…

Read more

Self-Publishing vs. Traditional Publishing: Which Is Right for You?

Posted on April 5, 2023April 5, 2023 by Kritrima Prajna

Self-publishing and traditional publishing are two primary methods for getting a book into the hands of readers. While traditional publishing has been the traditional route for authors for decades, self-publishing has become increasingly popular in recent years. Both options have their pros and cons, and the decision to self-publish or seek a traditional publisher depends…

Read more

7 Effective Strategies to Overcome Procrastination and Achieve Your Goals

Posted on April 5, 2023April 5, 2023 by Kritrima Prajna

Procrastination can be a difficult habit to break, but here are some tips that may help you avoid procrastinating: Set clear goals: When you have clear goals in mind, it’s easier to stay focused and avoid getting sidetracked by distractions. Break tasks into smaller pieces: Sometimes, the sheer size of a task can be overwhelming…

Read more

How to detect English/ASCII string in PHP

Posted on November 15, 2022April 5, 2023 by Abhineet Mittal

There is no direct function for this in my knowledge. But it can be done easily like so. if ( mb_strlen( $string, ‘ASCII’ ) === mb_strlen( $string, ‘utf-8’ ) ) { return true; }

Read more

The state of automobile dealerships in India

Posted on November 14, 2022April 5, 2023 by Abhineet Mittal

My father had a "not-so-great" experience during routine service of his two-wheeler vehicle at a Honda service-center at my hometown. And it is the same for most dealerships and service outlets of major automobile companies in Tier-2 and Tier-3 cities in India. These dealerships are operated as local businesses and though they adhere to company…

Read more

Sending JSON with data Javascript Fetch

Posted on November 13, 2022April 5, 2023 by Abhineet Mittal

An important reminder to include following header while sending data in Javascript fetch() call in JSON format. Also, do not forget to use JSON.Stringify(). var data = { some_data: ABC}; headers: { ‘Content-Type’: ‘application/json’, }, body: JSON.stringify( data ), This is not needed if you are creating a form data object and appending data to…

Read more

Disable RSS Feed Pages in WordPress

Posted on August 19, 2022April 5, 2023 by Abhineet Mittal

To disable RSS feed pages in WordPress, hook into the action filters provided for each feed page function and then redirect to the home page. // Disable RSS feed pages add_action( ‘do_feed’, ‘disable_rss_feed_pages’, 1); add_action( ‘do_feed_rdf’, ‘disable_rss_feed_pages’, 1); add_action( ‘do_feed_rss’, ‘disable_rss_feed_pages’, 1); add_action( ‘do_feed_rss2’, ‘disable_rss_feed_pages’, 1); add_action( ‘do_feed_atom’, ‘disable_rss_feed_pages’, 1); add_action( ‘do_feed_rss2_comments’, ‘disable_rss_feed_pages’, 1); add_action(…

Read more

Safety & Liquidity of Debt Mutual Funds

Posted on July 31, 2022April 5, 2023 by Abhineet Mittal

Yesterday I wrote an article about Debt Mutual Funds. I got a few questions about the liquidity and safety of a particular fund. So, I am adding a few more points. Many Debt Mutual Funds like Nippon, Axis and HDFC offer instant redemption and you get the money within 30 minutes. Safety of money means…

Read more

FDs are destroying your wealth

Posted on July 30, 2022April 5, 2023 by Abhineet Mittal

If you are still making FDs of your monthly savings, you are destroying your wealth. Interest on FDs is taxable. That means the current interest rate of about 5.5% effectively gives you ~3.8% return on your money (Assuming you fall in the highest income tax slab). With more than 6% inflation, your money is losing…

Read more

A useful tip to save upto Rs.15k in tax: Section 80TTB for Senior Citizens

Posted on July 29, 2022April 5, 2023 by Abhineet Mittal

As we are just 2 days away from the last date of filing income tax return, here is a useful tip to save upto Rs.15k in tax. If you are helping out a senior citizen in filing their Income Tax Return, do not forget section 80TTB which allows Rs.50k deduction on their interest income from…

Read more

WordPress adding slashes in POST requests

Posted on July 5, 2022April 5, 2023 by Abhineet Mittal

WordPress adds slashes before quotes even if we do not want to use magic quotes. To solve this problem, you can use either of the following two functions on the values returned from POST requests- wp_unslash stripslashes_deep References: https://developer.wordpress.org/reference/functions/wp_unslash/ https://developer.wordpress.org/reference/functions/stripslashes_deep/ https://core.trac.wordpress.org/ticket/18322

Read more

How to disable translation pop-up on website in Google Chrome

Posted on July 3, 2022April 5, 2023 by Abhineet Mittal

Google Chrome on Android tries to show pages in user’s preferred language by continuously showing translation pop-up on each page load. This happens when website content is in a different language than user’s preferred language. But this creates issues in user experience by hiding bottom content on website. My site had fixed bottom navigation bar…

Read more

How to Modify Title Tag in WordPress

Posted on June 29, 2022April 5, 2023 by Abhineet Mittal

I always missed a function to directly change the title tag in WordPress template. But here is a function which can do that for you. function modify_title( $new_title ) { add_action( ‘pre_get_document_title’, function( $current_title ) use( $new_title ) { return $new_title; }, 9999 ); } Please note that this function uses use keyword to bind…

Read more

Restrict number of selected checkboxes in html

Posted on June 29, 2022April 5, 2023 by Abhineet Mittal

This code will restrict html multi select input to given number. document.addEventListener( “click”, function( event ) { if ( event.target.matches( ‘.input-checkbox’ ) ) { var inputCheckboxes = document.querySelectorAll( ‘.input-checkbox[type=”checkbox”]:checked’ ); if( inputCheckboxes.length > 3 ) { event.preventDefault(); alert( ‘You cannot select more than 3 categories for a post.’ ); } } } );

Read more

WP_Query by URL for Infinite Scroll in WordPress

Posted on June 15, 2022April 5, 2023 by Abhineet Mittal

I was trying to create an infinite scroll in WordPress. All I wanted was to parse the next page url without making any changes to the code so that the code becomes interoperable with the pagination templates. To achieve that, instead of passing custom query parameters to the API, I decided to parse the next…

Read more

MySQL Disk Size Issue

Posted on June 15, 2022April 5, 2023 by Abhineet Mittal

I was facing a strange issue on one of my servers. Storage was getting full even when I did not upload any extra files. Turned out it was a MySQL logging issue and got resolved only when I disabled logging. References: https://www.christophe-casalegno.com/mysql-how-to-purge-binary-logs-when-you-have-no-space-left-on-device/ https://www.alittleofboth.com/2020/04/droplet-out-of-disk-space/ https://www.digitalocean.com/community/questions/where-did-my-disc-space-go

Read more

JPG Image Compression

Posted on June 15, 2022April 5, 2023 by Abhineet Mittal

When you upload images to Facebook or Whatsapp, you must have noticed a reduction in size and quality of the image. Though the image looks fine on most devices, its size get reduced by over 95%. The reason is compression. It is recommended to compress the images before uploading them to your blog or website….

Read more

Why click event not working on SVG

Posted on June 15, 2022April 5, 2023 by Abhineet Mittal

I created a simple menu with SVG icons and to my surprise, clicking on the icon was not taking me to the linked url. It turned out that as SVGs are independent HTML objects, the target element is actually nested path. So, it does not match with the clicked element and thus click event listeners…

Read more

Add event listener on SVG element

Posted on June 8, 2022April 5, 2023 by Abhineet Mittal

I was facing problem while adding event listener to an svg element. Then I added event listeners to both svg and path tags, and it worked.

Read more

When my boss told me not to prepare for CAT

Posted on May 31, 2022April 5, 2023 by Abhineet Mittal

"Don’t prepare for CAT if you want to succeed here." Those were the words of the manager of my first project. I was a fresher B. Tech graduate in my first job and had joined my first project along with a few others. Our manager called us into his cabin for a casual introduction session….

Read more
  • 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