All posts by Lou

Run short-codes from a custom field

By default, WordPress treats the contents of custom fields as plain text and does not execute any shortcodes that may be included within them. This means that if you have a custom field containing a shortcode, such as `[shortcode] VALUE [/shortcode]`, the shortcode itself will not be processed, and the entire text, including the HTML tags, will be displayed as is.

To overcome this limitation and enable the execution of shortcodes within custom fields, you can use a code snippet in your template files. Here’s an elaboration of the process:

  1. Retrieve the custom field value: In your template file, you need to retrieve the value of the custom field using the appropriate WordPress function, such as `get_post_meta()` or `get_field()`, depending on whether you are using native custom fields or a plugin like Advanced Custom Fields.
  2. Process the content: Once you have obtained the custom field value, you can use the `do_shortcode()` function provided by WordPress to process and execute any shortcodes within the content. This function takes the custom field value as its parameter and returns the processed output.
  3. Display the processed content: Finally, you can echo or display the processed content on your website using the `echo` or `print` statements.

Here’s an example code snippet that demonstrates the process:


    $customFieldValue = get_post_meta(get_the_ID(), 'your_custom_field_name', true);
    $processedContent = do_shortcode($customFieldValue);
    echo $processedContent;

In the above code, `get_post_meta()` retrieves the value of the custom field with the specified name (`your_custom_field_name`), `do_shortcode()` processes the content, and `echo` displays the processed content on your website.

By using this snippet, you can run shortcodes from custom fields and have them executed properly, allowing you to incorporate dynamic functionality and display the desired output.

Methods to select an element by name in jQuery

In jQuery, the attribute selector allows us to select elements based on their attributes. When it comes to selecting elements by their name attribute, there are a few methods available. Here’s a brief elaboration:

  1. Attribute Equals Selector: This method selects elements that have a specific name attribute value. It uses the syntax [name=’value’]. For example, if we want to select an input element with the name “username”, we can use the following code:

    jQuery('input[name="username"]')

  2. Attribute Contains Selector: This method selects elements that have a name attribute containing a specific value. It uses the syntax [name*=’value’]. For instance, if we want to select all input elements that have “email” in their name attribute, we can use the following code:

    jQuery('input[name*="email"]')

  3. Attribute Ends With Selector: This method selects elements that have a name attribute ending with a specific value. It uses the syntax [name$=’value’]. For instance, if we want to select input elements whose name attribute ends with “age”, we can use the following code:

    jQuery('input[name$="age"]')

  4. Attribute Starts With Selector: This method selects elements that have a name attribute starting with a specific value. It uses the syntax [name^=’value’]. For example, if we want to select input elements whose name attribute starts with “user”, we can use the following code:

    jQuery('input[name^="user"]')

These are just a few examples of how the attribute selector in jQuery can be used to select elements based on their name attribute. By combining these methods with other jQuery functions, you can perform various operations on the selected elements, such as manipulating their values or applying CSS styles.

Best TV series in Hindi as per IMDb rating

Farzi

Directed by Krishna DK and Raj Nidimoru and produced by Amazon Prime Video, Farzi is a comedy that tells the story of a group of criminals hatching a plan to carry out a heist. The film features a talented cast, including Nawazuddin Siddiqui, Farhan Akhtar and Radhika Apte, and has been praised for its witty humor and clever plot. The film has yet to be released, but fans of these directors’ previous work are looking forward to it, including the critically-acclaimed series The Family Man.

Where to Watch: Amazon Prime Video
Genre: Crime, Drama, Thriller
IMDb Rating: 8.4/10
Cast: Shahid Kapoor, Vijay Sethupathi, and others


Scam 1992

One of the most popular engaging tales of fiscal reproach and crime, fiddle 1992, is directed by Hansal Mehta and produced by Applause Entertainment. Created in association with SonyLIV, fiddle 1992 has garnered critical sun and wide fashion ability since its release in 2020. The show is grounded on the true story of Harshad Mehta, a stockbroker who manipulated the Indian stock request and was involved in a fiscal reproach in the early 1990s. The show’s lead actor, Pratik Gandhi, has been extensively praised for his depiction of Mehta. fiddle 1992 has won several awards, including the Stylish Web Series Award at the Indian Television Academy Awards in 2020.

Where to Watch: SonyLIV
Genre: Biography, Crime, Drama
IMDb Rating: 9.3/10
Cast: Pratik Gandhi, Shreya Dhanwanthary and others


Aspirants

Created by The Viral Fever( TVF) and directed by Apoorv Singh Karki, the show follows the lives of three musketeers who are preparing for the Union Public Service Commission( UPSC) test in India. The show explores the challenges they face in their particular lives as well as the struggles they go through to achieve their dreams of getting civil retainers. Applicants have been praised for their realistic depiction of the UPSC test and have come a addict favourite since its release in 2021.

Where to Watch: Amazon Prime Video
Genre: Drama
IMDb Rating: 9.2/10
Cast: Naveen Kasturia, Abhilash Thapliyal


Rocket Boys

Directed by Abhay Pannu and produced by Netflix, Rocket Boys is a coming- of- age drama series that tells the story of four youthful boys in a small city in India who dream of erecting their own rocket. The show explores their trip as they overcome societal walls and fiscal constraints to achieve their thing. The show has been praised for its gladdening depiction of fellowship and determination and has come a hit with cult since its release in 2021.

Where to Watch: SonyLIV
Genre: Biography, Drama
IMDb Rating: 8.9/10
Cast: Jim Sarbh, Saba Azad and others


The Family Man

An action- packed suspenser with a twist, The Family Man, directed by Raj Nidimoru and KrishnaD.K. and produced by Amazon Prime Video, is a series that follows the story of a middle- class man who works as a elderly critic in a government intelligence agency. The show explores his struggle to balance his particular and professional life as he tries to cover the nation from terrorist pitfalls. The show’s lead actor, Manoj Bajpayee, has been extensively praised for his performance. The show has won several awards, including the Stylish Series award at the Filmfare OTT Awards in 2021.

Where to Watch: Amazon Prime Video
Genre: Action, Comedy, Drama
IMDb Rating: 8.7/10
Cast: Manoj Bajpayee, Priyamani and others


Panchayat

Presented as a light- hearted comedy with a touch of reality, Panchayat, directed by Deepak Kumar Mishra and produced by TVF, is a comedy- drama series that tells the story of a youthful man who reluctantly joins a pastoral government office as a Panchayat clerk. The show explores his gests as he tries to navigate the bureaucracy and the challenges of pastoral life. The show has been praised for its light- hearted humour and realistic depiction of pastoral India. Panchayat has won several awards, including the Stylish Comedy Series award at the Filmfare OTT Awards in 2020.

Where to Watch: Amazon Prime Video
Genre: Comedy, Drama
IMDb Rating: 8.9/10
Cast: Jitendra Kumar, Raghuvir Yadav


Flames

A teenage love series created by The Timeliners and directed by Apoorv Singh Karki, the show follows the story of two high academy scholars, Rajat and Ishita, who fall in love with each other. dears explore their gests as they navigate the ups and campo of teenage life, including their connections with their families and musketeers. The show has been praised for its realistic depiction of teenage love and has come a addict favourite since its release in 2018.

Where to Watch: Amazon Prime Video
Genre: Comedy, Drama, Romance
IMDb Rating: 8.9/10
Cast: Rithvik Sahore, Tanya and others


Special Ops

Directed by Neeraj Pandey and produced by Hotstar, Special Ops is presented as an action-suspenser series that tells the story of a group of intelligence officers who embark on a secret charge to track down a terrorist architect. The show is grounded on real events and features an ensemble cast of talented actors, including Kay Kay Menon, Karan Tacker, and Divya Dutta. The show has been praised for its gripping plot and violent action sequences and has come a hit with cult since its release in 2020.

Where to Watch: Disney+ Hotstar
Genre: Action, Crime, Thriller
IMDb Rating: 8.6/10
Cast: Kay Kay Menon, Karan Tacker


Permanent Roommates

Endless Roommates, a romantic comedy series created by The Viral Fever( TVF) and directed by Sameer Saxena, tells the story of a youthful couple, Tanya and Mikesh, who decide to move in together before getting wedded. The show explores their gests as they navigate the challenges of ultramodern- day connections, including societal prospects and family pressures. endless Roommates has been extensively praised for its fresh take on the romantic comedy kidney and has come a cult favorite since its release in 2014.

Where to Watch: Zee5
Genre: Comedy, Drama
IMDb Rating: 8.6/10
Cast: Sumeet Vyas, Nidhi Singh and others


Bandish Bandits

Directed by Anand Tiwari and produced by Amazon Prime Video, Bandish Bandits is a musical drama series that tells the story of two musicians from different musical backgrounds who fall in love with each other. The show celebrates Indian classical music and features an ensemble cast of talented actors and musicians, including Naseeruddin Shah and Shankar- Ehsaan- Loy. The show has been extensively praised for its beautiful music and stunning illustrations and has come a hit with cult since its release in 2020. The show has won several awards, including the Stylish Original Music Score award at the Asian Academy Creative Awards in 2020.

Where to Watch: Amazon Prime Video
Genre: Drama, Music, Romance
IMDb Rating: 8.6/10
Cast: Ritwik Bhowmik, Shreya Chaudhary and others


Mirzapur

Created by Excel Entertainment and directed by Karan Anshuman and Gurmmeet Singh, Mirzapur is a dark crime suspenser series that tells the story of two sisters, Guddu and Bablu, who get involved with a original cabal slip in the city of Mirzapur. The show explores themes of power, violence, and corruption in pastoral India and features an ensemble cast of talented actors, including Pankaj Tripathi, Ali Fazal, and Divyendu Sharma. The show has been extensively praised for its gritty plot and important performances and has come a addict favourite since its release in 2018.

Where to Watch: Amazon Prime Video
Genre: Crime, Action, Drama
IMDb Rating: 8.5/10
Cast: Pankaj Tripathi, Ali Fazal and others


Aashram

Directed by Prakash Jha and produced by MX Player, Aashram is a series that explores the connection between religion and politics in India. The film tells the story of an immature woman who investigates a religious guru, Baba Nirala, and uncovers a network of corruption and exploitation. The film was controversial for its depiction of religious figures and was criticized for promoting negative generalizations. However, it was also praised for its gripping plot and pivotal performances by actors including Bobby Deol, Chandan Roy Sanyal and Anupriya Goenka.

Where to Watch: MX Player
Genre: Crime, Drama, Mystery
IMDb Rating: 7.1/10
Cast: Bobby Deol, Chandan Roy Sanyal, and others

Calculate fortnight date using PHP

The following code will calculate a recurring fortnightly date from a given date, i.e. a star-date using PHP. The date format should be ‘Y-m-d’ for the following code. However, you can make updates in it as per requirements.

For example: The start date for the fortnight cycle date was set to be as “2018-01-10”. Then, as per current cycle, next will be Start Date: 2018-01-10 | Next Date: 2023-05-23.


    <?php /* Fortnight Calculation in JavaScript */ function getFortNightString(sDate) { var param = []; var objDate = new Date(); param.todayDate = objDate.getFullYear() + '-' + ("0" + (objDate.getMonth() + 1)).slice(-2) + '-' + ("0" + (objDate.getDate())).slice(-2); param.todayDate = new Date(param.todayDate).getTime(); param.sDate = new Date(sDate).getTime(); param.timeDiff = Math.abs(param.todayDate - param.sDate); param.diffDays = Math.ceil(param.timeDiff / (1000 * 3600 * 24)); if (param.diffDays > 0 && param.sDate > param.todayDate) {
            param.diffDays = (14 + (param.diffDays % 14));
        } else {
            param.diffDays = (14 - (param.diffDays % 14));
        }

        param.dayCount = param.diffDays - 1;
        objDate.setDate(objDate.getDate() + param.dayCount);
        objDate = objDate.getFullYear() + '-' + ("0" + (objDate.getMonth() + 1)).slice(-2) + '-' + ("0" + (objDate.getDate())).slice(-2);
        return " Start Date: " + sDate + " | Next Date: " + objDate;
    }

    
    /* Fortnight Calculation in PHP */    
    $sDate = "2018-02-05";
    $sDate = date_create($sDate);
    $today = date_create(date("Y-m-d")); // or your date as well
    $dateDiff = date_diff($sDate, $today)->format("%a");

    if($dateDiff > 0 && $sDate > $today){
        $dateDiff = (14 + ($dateDiff % 14));
    }else{
        $dateDiff = (14 - ($dateDiff % 14));
    }

    $dateDiff--;
    echo date('Y-m-d', strtotime("$dateDiff day", strtotime(date('Y-m-d'))));

Send Mail from an AMP page

In one of my projects I embedded Google’s new open-source initiative, AMP(Accelerated Mobil Pages). It was a WordPress website. I was all done with most of the part of website, however there was still a module which needs research i.e. implementing contact form into website.

While, we implementing any form in a website, we need to add validations as well as the data-handler scripts. So, I had two problems to resolve on:
1. I cannot use Javascript or jQuery for the validation. Although, I had HTML validation methods, but these are not enough. So, I needed some way to validate the form as good as we do with Javascript.
2. I had to send mail after the submission of form and redirect user to thank you page.

Thanks, to the AMP community on git-hub from where I get to know the various attributes we can use with `amp-form`. Basically, AMP provides many of event-handlers by using which you can implement the validations and in forms. You, can various event handlers on this git-hub library.

You can check amp-form attributes and there usage here.

You can send mail from your AMP page. Here is an example:

HTML of AMP form

<!doctype html>
<html amp lang="en">
  <head>
    <meta charset="utf-8">
    <script async src="https://cdn.ampproject.org/v0.js"></script>
    <title>Hello, AMPs</title>
    <link rel="canonical" href="http://example.ampproject.org/article-metadata.html" />
    <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
    <script type="application/ld+json">
      {
        "@context": "http://schema.org",
        "@type": "NewsArticle",
        "headline": "Open-source framework for publishing content",
        "datePublished": "2015-10-07T12:02:41Z",
        "image": [
          "logo.jpg"
        ]
      }
    </script>
    <style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
    <script async custom-element="amp-form" src="https://cdn.ampproject.org/v0/amp-form-0.1.js"></script>
  </head>
  <body>
    <h1>Hello World!</h1>
      <form target="_top" action-xhr="https://test.php" method="post" name="test">
        <input type="text" name="name" value="ABRA KA DABRA!">
        <input type="submit"/>
    </form>
  </body>
</html>

PHP Code for Handling form request:

<?php
if(!empty($_POST))
{
    $name = $_POST['name'];

    /*/ this is the email we get from visitors*/
    $domain_url = (isset($_SERVER['HTTPS']) ? "https" : "http") . "://$_SERVER[HTTP_HOST]";
    $redirect_url = 'https://example.com/thank-you';

    /*//-->MUST BE 'https://';*/
    header("Content-type: application/json");
    header("Access-Control-Allow-Credentials: true");
    header("Access-Control-Allow-Origin: *.ampproject.org");
    header("AMP-Access-Control-Allow-Source-Origin: ".$domain_url);


    /*/ For Sending Error Use this code /*/
    if(!mail("[email protected]" , "Test submission" , "email: $name <br/> name: $name" , "From: $name\n ")){
        header("HTTP/1.0 412 Precondition Failed", true, 412);

        echo json_encode(array('errmsg'=>'There is some error while sending email!'));
        die();
    }
    else
    {
        /*/--Assuming all validations are good here--*/
        if( empty($redirect_url))
        {
            header("Access-Control-Expose-Headers: AMP-Access-Control-Allow-Source-Origin");
        }
        else
        {
            header("AMP-Redirect-To: ".$redirect_url);
            header("Access-Control-Expose-Headers: AMP-Redirect-To, AMP-Access-Control-Allow-Source-Origin");        }
            echo json_encode(array('successmsg'=>$_POST['name'].'My success message. [It will be displayed shortly(!) if with redirect]'));
        die();
    }
}?>

The Power of Positive Affirmations: Transforming Your Mindset for Success

In today’s fast-paced world, it’s easy to get caught up in negativity, self-doubt, and a constant stream of critical thoughts. However, there is a powerful tool that can help us overcome these obstacles and cultivate a positive mindset – positive affirmations. In this blog post, we will explore the transformative power of positive affirmations and how they can help shape our thoughts, beliefs, and ultimately, our reality.

  1. Understanding Positive Affirmations:
    Positive affirmations are short, positive statements that reflect our desired reality and help reprogram our subconscious mind. They are powerful tools for self-improvement, personal growth, and developing a positive mindset. By repeating affirmations regularly, we can challenge and replace negative thought patterns with empowering beliefs.
  2. Rewiring the Subconscious Mind:
    Our subconscious mind plays a significant role in shaping our thoughts, actions, and habits. It often holds deep-rooted beliefs that may limit our potential or keep us stuck in negative cycles. Positive affirmations work by reprogramming the subconscious mind, replacing limiting beliefs with positive, empowering ones. By consistently affirming positive statements, we can shift our mindset and create a more positive outlook on life.
  3. Creating Effective Affirmations:
    Crafting effective affirmations is essential for their success. Here are some key guidelines to keep in mind:
  • Keep them in the present tense: Phrase your affirmations as if they are already true in the present moment.
  • Make them personal: Tailor the affirmations to your specific goals, desires, and challenges.
  • Use positive language: Focus on what you want to attract or achieve, rather than what you want to avoid or eliminate.
  • Keep them concise and specific: Choose words that evoke strong emotions and resonate with you personally.
  1. Incorporating Affirmations into Your Daily Routine:
    Consistency is key when it comes to affirmations. Here are some practical ways to integrate them into your daily routine:
  • Morning Rituals: Begin your day by repeating affirmations that set a positive tone for the day ahead.
  • Sticky Notes: Place affirmations in visible areas like your bathroom mirror, workstation, or refrigerator, as reminders throughout the day.
  • Visualization: Combine affirmations with visualization techniques to strengthen their impact. Imagine yourself living your desired reality as you repeat the affirmations.
  • Bedtime Routine: End your day with affirmations that reinforce gratitude, self-acceptance, and positive expectations for the future.
  1. Harnessing the Benefits of Positive Affirmations:
    By consistently practicing positive affirmations, you can experience a range of benefits, including:
  • Increased self-confidence and self-belief
  • Reduced stress and anxiety
  • Enhanced focus and motivation
  • Improved resilience and ability to overcome challenges
  • Attracting positive opportunities and experiences

Conclusion:

Positive affirmations have the power to transform our mindset, enabling us to overcome self-doubt, cultivate self-belief, and create a more positive and fulfilling life. By incorporating them into our daily routine and consistently reinforcing positive beliefs, we can rewire our subconscious mind and attract success, happiness, and abundance. Embrace the power of positive affirmations and witness the profound impact they can have on your life.

Design patterns for implementing directory structure in database

Storing directories in a database is a common task in software development. One way to do this is to use a hierarchical database model, where each directory is represented as a node in a tree structure. In this model, directories are stored in a table with columns for the directory name, the parent directory ID (which references the parent directory’s row in the same table), and any other metadata associated with the directory.

When implementing this model, it is useful to use some design patterns to ensure that the directory structure is consistent and easy to manipulate. Here are some design patterns you can use when keeping directories in a database:

1. Composite Pattern: The Composite pattern is a design pattern that allows you to treat individual objects and compositions of objects in a uniform way. In the context of directory storage, this pattern can be used to represent directories as composite objects that can contain other directories or files. This makes it easy to navigate the directory structure and perform operations on directories at different levels of the hierarchy.

2. Visitor Pattern: The Visitor pattern is a design pattern that separates an algorithm from the objects it operates on. In the context of directory storage, this pattern can be used to define operations that can be performed on directories without having to modify the directory class itself. For example, you can define a visitor that deletes a directory and all its contents, or a visitor that prints out the directory structure in a formatted way.

3. Singleton Pattern: The Singleton pattern is a design pattern that ensures that there is only one instance of a class in the system. In the context of directory storage, this pattern can be used to ensure that there is only one instance of the directory tree in memory at any given time. This can help to reduce memory usage and ensure consistency across multiple parts of the system.

4. Factory Pattern: The Factory pattern is a design pattern that provides an interface for creating objects, but allows sub-classes to alter the type of objects that will be created. In the context of directory storage, this pattern can be used to create different types of directories (e.g., local directories, network directories, etc.) without having to modify the code that creates them.

5. Observer Pattern: The Observer pattern is a design pattern that allows objects to be notified of changes to other objects without having to check for changes explicitly. In the context of directory storage, this pattern can be used to notify other parts of the system when a directory has been created, deleted, or modified. This can help to ensure that all parts of the system are aware of changes to the directory structure, and can respond appropriately.

By using these design patterns, you can create a flexible and consistent directory storage system that can be easily manipulated and maintained.

What is OIS (Optical Image Stabilization)?

Optical Image Stabilization (OIS) is a mechanical technology designed to stabilize the camera lens while capturing photos or videos. It uses motors and gyroscopes to detect the movement of the camera and move the lens accordingly to counteract the motion, resulting in sharper and more stable images.

OIS technology is implemented by incorporating small movable lens elements into the camera lens. These lens elements are connected to a motor system that can move them in response to the camera’s movement, providing the necessary counteracting motion to stabilize the image. The motion sensors, typically gyroscopes or accelerometers, are also embedded into the camera body to detect and measure the camera’s movement.

When the camera is moved, the sensors detect the movement and send signals to the lens motor, which then moves the lens in the opposite direction to counteract the motion. The lens movement is calculated by the sensor in real-time, allowing the technology to compensate for even the smallest of camera movements.

OIS technology is especially useful in situations where the camera is held by hand, as even the slightest movement can cause image blur. In low light conditions or when using slow shutter speeds, OIS can help to reduce camera shake and produce sharper images. Additionally, OIS can improve the quality of videos by reducing the shakiness of the footage.

Compared to digital stabilization techniques that use software to process the image and reduce shake, OIS provides a more effective and natural solution as it physically moves the lens. While digital stabilization can introduce artifacts and distortions to the image, OIS produces more natural-looking images and videos.

In conclusion, OIS is a mechanical technology that uses motors and gyroscopes to detect and counteract the camera’s movement, resulting in sharper and more stable images. Its ability to stabilize the lens is especially useful in low light conditions or when capturing videos, as it reduces camera shake and produces more natural-looking footage.

What is AIS (Artificial Intelligence Stabilization)?

AIS (Artificial Intelligence Stabilization) is a technology that uses AI algorithms to stabilize images and videos captured by a camera. It is designed to address the camera shake and motion blur issues that can occur when shooting in low light or using long exposures.

Traditionally, image stabilization has been achieved using physical mechanisms such as gyroscopes and optical systems. However, these methods may be expensive, bulky, or may not provide sufficient stability in certain situations. With AIS, AI algorithms analyze camera motion and compensate for motion and shake for smooth, stable images.

AIS analyzes the images captured by the camera in real time and uses AI algorithms to predict and compensate for movement and shaking. This technology uses a combination of optical and digital stabilization techniques to achieve the best results. Optical stabilization involves the use of movable lens elements whose position can be adjusted to compensate for motion, while digital stabilization uses algorithms to crop and adjust the image to reduce camera shake.

One of the main advantages of the AIS is that the camera can capture long exposures and video in low light without the need for a tripod or other stabilization equipment. This is especially useful for photographers and videographers working in difficult conditions such as at night or in dim environment.

Another advantage of AIS is that it can improve the overall quality of images and videos by reducing noise and improving sharpness. By eliminating blur caused by camera shake, the final image will be sharper and more detailed, with better color accuracy and contrast.

Overall, AIS is a revolutionary technology that is changing the way images and videos are captured. By using AI algorithms to stabilize the camera and remove motion blur, photographers and videographers can achieve better results in challenging conditions and easily create stunning images and videos.

Poco F5 5G specifications and availability

Poco F5 5G Specs

The Poco F5 5G supports Dual (SIM) and runs on Android-13 based on MIUI-14. It features a 6.67 inch Full HD+(1080×2400 pixels) AMOLED display with adaptive refresh rates up to 120Hz and 240Hz touch sampling rate, 93.5% screen-to-body ratio, 1920Hz PWM dimming. The display is designed for 100% DCI-P3 color space coverage and supports Dolby Vision and HDR10+. The screen is also protected by Corning Gorilla Glass 5. Poco F5 is equipped with Qualcomm’s new Snapdragon 7+ Gen 2 SoC and 8GB of his LPDDR5X RAM. The POCO F5 not only comes with 8GB and 12GB RAM versions, but can also be expanded to 19GB* using idle ROM to unlock even faster speeds. Poco has packed 256GB of UFS 3.1 storage into the handset.

For heat management, Poco F5 5G is equipped with a vapor chamber cooling system with a 3725mm square heat dissipation area and 14 layers of graphite plates.

Camera Setup

The Poco F5 5G has a triple rear camera, lead by a 64-megapixel primary sensor with optical image stabilization(OIS). The camera setup also includes an 8-megapixel ultra-wide sensor and a 2-megapixel macro camera. On the front for selfies and video chats Poco equipped the phone with a 16-megapixel selfie camera.

Battery and Other Specs

The new Poco phone is powered by a 5,000mAh battery that supports 67W turbo charging. The included charger charges the battery from zero to 100% in just 45 minutes.

It also has an IP53-certified splash-proof construction. Handset connectivity options include 5G, 4G LTE, Wi-Fi 6E, Bluetooth 5.3, and surprisingly a 3.5mm audio jack. The Poco F5 features a side-mounted fingerprint sensor for authentication. The phone has two stereo speakers that support Dolby Atmos.

Poco F5 5G Pricing and Availability in India

The Poco F5 5G is priced at ₹29,999 and ₹33,999. The cheaper version will come with 8GB RAM + 256GB storage and the expensive one will offered with the 12GB RAM + 256GB storage. Poco is offering the 8GB variant at ₹26,999 and 12GB variant for ₹30,999 as a special introductory offer. The smartphone will be available from May 16th through Flipkart in Carbon Black, Electric Blue and Snowstorm White colors.

The Poco is offering one year of warranty on Poco F5 5G in India.