Junaid's Blog

Junaid's Blog

  • Home
  • About
  • Electronics Notes
  • Photos
  • Contact Me
Illustration of a bird flying.
  • Install and Run Multiple PHP Versions in Ubuntu 22.04

    I wanted to run both Drupal 7 and 9, as part of my work, in my machine now running on Ubuntu 22.04. Drupal 7 best run with PHP 5.6 while Drupal 9 requires either PHP 7.4 or 8.1 I could make it work after some research and try. Here is how I made it work. […]

    August 9, 2022
  • Quick Twig Template Rendering Without Much Set Up

    Sometimes, I want to prepare more readable output from my PHP scripts. It is good to create a template and render with values from script out put. Here is a quick way to render a twig template. First lets assume the HTML twig template (test-report.html.twig) is: Then we have this script, test-script.php: Keeping above two […]

    March 16, 2022
  • Turn ON Android Mobile Having Broken Power Button

    Power button of my mobile phone stopped working completely few weeks back. It showed some symptoms few days prior to that. I was being so careful not to drain out the battery as I would be required to press button to turn it back to ON, which I can’t because of broken button. But it […]

    February 18, 2022
  • Fertilizer Recommendations

    In this article I just note applications of various fertilizers. It is mainly to help myself to refer quickly as I can look into this article as needed. I may update this article as need to add or update info. Solution Preparation We need to mix 10 gram of fertilizer with 1 kg of water […]

    September 22, 2021
  • Install MySQL 5.7 on Ubuntu 20.04

    First follow installation instructions given at https://docs.docker.com/engine/install/ubuntu/ . Then make sure docker is running properly: Ensure it created the image by: Now, install docker MySQL 5.7 image and create a volume for storing data. Make a MySQL installation with command: Replace the password with your one. To show running instances: Login to docker instance terminal: […]

    January 22, 2021
  • Building Wheel for a Python Package Failed

    Today I was trying to install frappe-bench package within a newly created python 3 virtual environment in my Ubuntu 20.04. It gave this error in terminal. However, the package appeared to be installed even with above error. Then I got this SO thread in my search https://stackoverflow.com/questions/53204916/what-is-the-meaning-of-failed-building-wheel-for-x-in-pip-install. It has this answer from a pip maintainer […]

    September 23, 2020
  • Use Python Markdown Extension in Jupyter Notebooks

    I regularly use Python Markdown when working with Jupyter notebooks. It is actually straightforward to set up in Jupyter, but I always forget the exact steps to be followed whenever I set up Jupyter notebook especially after installing a new OS. So, there are those steps, I note here to help myself in future. First […]

    July 11, 2020
  • Get MP4 from MKV and Extract Subtitle(s)

    This command helped me to get MP4 file from MKV file: This command will help to extract subtitle from MKV file. The above command will extract first subtitle. MKV file contains more than one subtitle track and if you want to extract one of them. Then you can replace “0:s:0” with “0:s:1” to extract second […]

    June 15, 2020
  • 3.7 to 1.5 V Buck Converter with MC34063AP

    My daughter got a toy train which uses AA sized battery cells to operate. It has space to put two AA cells in parallel, so it requires just 1.5 V to work. To avoid buying AA cells, I tried to make it rechargeable with a 18650 lithium-ion cell with protection board having USB port. But […]

    September 11, 2019
  • Edit PDF Metadata in Ubuntu 18.04

    I see pdftk get first in list as most recommended way when searching for editing PDF metadata in Ubuntu. But pdftk is no longer present in Ubuntu 18.04 repositories. Found a different tool named PDFMtEd, which is actually a GUI front-end for ExifTool.

    September 6, 2019
1 2 3 … 7
Next Page→

Junaid's Blog

Proudly powered by WordPress