<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Misc. on Aamnah - Frontend Web Developer</title>
    <link>https://aamnah.com/notes/misc/</link>
    <description>Recent content in Misc. on Aamnah - Frontend Web Developer</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 01 Mar 2023 11:28:16 +0500</lastBuildDate>
    <atom:link href="https://aamnah.com/notes/misc/rss.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>yt-dlp install on Ubuntu 22.04</title>
      <link>https://aamnah.com/notes/misc/youtube-dl-and-yt-dlp/</link>
      <pubDate>Wed, 01 Mar 2023 11:28:16 +0500</pubDate>
      <guid>https://aamnah.com/notes/misc/youtube-dl-and-yt-dlp/</guid>
      <description>&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# upgrade pip&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;2&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;python3.10 -m pip install --upgrade pip&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;3&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;4&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# install yt-dlp&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;5&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;pip3 install yt-dlp&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;On Ubuntu, you have to run commands with &lt;code&gt;python3&lt;/code&gt; and &lt;code&gt;pip3&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Config files can be created at:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;~/yt-dlp.conf&lt;/code&gt; for user-specific config&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;/etc/yt-dlp.conf&lt;/code&gt; for system-wide config&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Here&amp;rsquo;s my sample config&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# User config: ~/yt-dlp.conf&#xA;# System config: /etc/yt-dlp.conf&#xA;&#xA;# Always extract audio (-x or --extract-audio)&#xA;--extract-audio&#xA;&#xA;# Always save Audio in MP3 format&#xA;--audio-format mp3&#xA;&#xA;# Save all files to this location&#xA;-o /home/USERNAME/Mounts/Media/Music/%(title)s.%(ext)s&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;I always only want mp3 audio files and want them saved in my external drive&lt;/p&gt;</description>
    </item>
    <item>
      <title>Why a MacBook (and the Apple ecosystem)</title>
      <link>https://aamnah.com/notes/misc/why-macbook/</link>
      <pubDate>Sun, 28 Feb 2021 12:16:13 +0500</pubDate>
      <guid>https://aamnah.com/notes/misc/why-macbook/</guid>
      <description>&lt;p&gt;Why i wanted to get a MacBook is a question i get often. The simple reason is this: i&amp;rsquo;m a designer developer combo, and the Apple ecosystem serves me well.&lt;/p&gt;&#xA;&lt;p&gt;The development is good on Linux (Ubuntu), but limited because you can&amp;rsquo;t test or run iOS apps.&lt;/p&gt;&#xA;&lt;p&gt;And the design also works with Figma (which i absolutely love because it is awesome and works on Linux and that they have a free version!), but is limited when it comes to image editing. You can&amp;rsquo;t beat Photoshop and Illustrator with Figma when it comes to designing custom illustrations and editing rastor photos. For example, you can&amp;rsquo;t even add a drop shadow to the shape of an object inside and image in Figma, it&amp;rsquo;ll just add the shadow to the entire image, i.e. a square shadow around the borders of the image file instead of the object inside it. Designing icons and logos which involve custom shapes is possible with Figma, but sub-optimal. You can&amp;rsquo;t use Figma for illustrations if you are serious about your illustration work.&lt;/p&gt;</description>
    </item>
    <item>
      <title>MacBook Pro - Apple Silicon M1 experience</title>
      <link>https://aamnah.com/notes/misc/experience-macbook-pro-m1-apple-silicon/</link>
      <pubDate>Sun, 28 Feb 2021 10:58:44 +0500</pubDate>
      <guid>https://aamnah.com/notes/misc/experience-macbook-pro-m1-apple-silicon/</guid>
      <description>&lt;p&gt;It FINALLY got delivered. I had ordered it back in December, it got delivered to Dubai in January, and then someone brought it from Dubai to Pakistan in February. The lengths you go to get a custom MacBook. &lt;code&gt;¯\_(ツ)_/¯&lt;/code&gt; In Pakistan, only the base models are officially available. What i got is considered a &lt;em&gt;custom order&lt;/em&gt; and you have to pay 100% in advance and wait a few weeks at least. Mine comes with 16GB RAM and 1TB storage, with an extended AppleCare+ plan.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Youtube-dl on macOS</title>
      <link>https://aamnah.com/notes/misc/youtube-dl-macos/</link>
      <pubDate>Fri, 26 Feb 2021 20:15:56 +0500</pubDate>
      <guid>https://aamnah.com/notes/misc/youtube-dl-macos/</guid>
      <description>&lt;p&gt;System: M1 MacBook Pro&lt;/p&gt;&#xA;&lt;p&gt;Install &lt;code&gt;youtube-dl&lt;/code&gt; and required libraries for extracting audio and save default config&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 1&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# install&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 2&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 3&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# sudo chmod a+rx /usr/local/bin/youtube-dl&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 4&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 5&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;brew install youtube-dl ffmpeg libav&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 6&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 7&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# create a config file&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 8&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;sudo touch /etc/youtube-dl.conf&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 9&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;10&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;echo&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;Adding default config to save videos as MP3 Audio.. \n&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;11&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;12&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# add default config&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;13&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;echo&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;# Always extract audio (-x or --extract audio)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;14&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;s2&#34;&gt;--extract-audio&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;15&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;s2&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;16&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;s2&#34;&gt;# Always save Audio in mp3 format&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;17&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;s2&#34;&gt;--audio-format mp3&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;18&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;s2&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;19&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;s2&#34;&gt;# Save all files to this folder, with this title format&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;20&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;s2&#34;&gt;-o ~/Music/%(title)s.%(ext)s&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;21&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; sudo tee -a /etc/youtube-dl.conf&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Mobile codes to check SIM status for Pakistani networks</title>
      <link>https://aamnah.com/notes/misc/mobile-codes/</link>
      <pubDate>Thu, 09 Jul 2020 00:00:00 +0500</pubDate>
      <guid>https://aamnah.com/notes/misc/mobile-codes/</guid>
      <description>&lt;table&gt;&#xA;&#x9;&lt;thead&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;Details&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;Ufone&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;Telenor&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;Zong&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;Jazz&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&lt;/thead&gt;&#xA;&#x9;&lt;tbody&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Check mobile number details&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Check how many SIMs are registered on your CNIC&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Send CNIC number to &lt;code&gt;668&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Send CNIC number to &lt;code&gt;668&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Send CNIC number to &lt;code&gt;668&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Send CNIC number to &lt;code&gt;668&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Check SIM number&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Send &lt;code&gt;MNP&lt;/code&gt; to &lt;code&gt;667&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Send &lt;code&gt;MNP&lt;/code&gt; to &lt;code&gt;667&lt;/code&gt; (if it gives a prompt for &lt;em&gt;tabdili&lt;/em&gt;, cancel that)&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Send &lt;code&gt;MNP&lt;/code&gt; to &lt;code&gt;667&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Check SIM ownership&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Send &lt;code&gt;MNP&lt;/code&gt; to &lt;code&gt;667&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Send &lt;code&gt;MNP&lt;/code&gt; to &lt;code&gt;667&lt;/code&gt; (if it gives a prompt for &lt;em&gt;tabdili&lt;/em&gt;, cancel that)&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Send &lt;code&gt;MNP&lt;/code&gt; to &lt;code&gt;667&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;You can also go to &lt;a href=&#34;https://cnic.sims.pk/&#34;&gt;https://cnic.sims.pk/&lt;/a&gt; to see how many SIMs are registered on your CNIC&lt;/p&gt;</description>
    </item>
    <item>
      <title>Creating a WordPress Shortcode</title>
      <link>https://aamnah.com/notes/misc/create-shortcode-wordpress/</link>
      <pubDate>Tue, 18 Feb 2020 00:00:00 +0500</pubDate>
      <guid>https://aamnah.com/notes/misc/create-shortcode-wordpress/</guid>
      <description>&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-php&#34; data-lang=&#34;php&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;function&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;my_function&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;()&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;2&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;c1&#34;&gt;// code goes here&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;3&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;4&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;5&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;add_shortcode&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;my_shortcode&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;my_function&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;);&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;my_shortcode&lt;/code&gt; is now the name of your shortcode, and &lt;code&gt;my_function&lt;/code&gt; is the PHP function that it will run&lt;/p&gt;&#xA;&lt;p&gt;Making a plugin out of it is simple, add a &lt;em&gt;Header&lt;/em&gt; comment to the top of the file&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-php&#34; data-lang=&#34;php&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 1&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;o&#34;&gt;&amp;lt;?&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;php&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 2&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;/**&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 3&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt; * @package My_Plugin&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 4&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt; * @version 0.0.1&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 5&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt; */&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 6&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cm&#34;&gt;/*&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 7&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cm&#34;&gt;Plugin Name: My Awesome Plugin&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 8&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cm&#34;&gt;Plugin URI: https://github.com/aamnah/wordpress-shortcode-starter&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 9&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cm&#34;&gt;Description: This is a starting point for a basic plugin that adds a shortcode you can use&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;10&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cm&#34;&gt;Author: Aamnah Akram&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;11&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cm&#34;&gt;Version: 0.0.1&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;12&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cm&#34;&gt;Author URI: https://aamnah.com/&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;13&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cm&#34;&gt;*/&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now you can Activate or Deactivate the plugin from the WordPress Dashboard&lt;/p&gt;</description>
    </item>
    <item>
      <title>Conditional formatting in Google Sheets</title>
      <link>https://aamnah.com/notes/misc/google-sheets-conditional-formatting/</link>
      <pubDate>Fri, 10 Jan 2020 00:00:00 +0500</pubDate>
      <guid>https://aamnah.com/notes/misc/google-sheets-conditional-formatting/</guid>
      <description>&lt;h3 id=&#34;notes&#34;&gt;Notes&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The conditional formatting rules are processed in order. You can adjust the order of the rules by dragging the three dots that appear when you hover over the rule&lt;/li&gt;&#xA;&lt;li&gt;You can negate a statement with &lt;code&gt;NOT()&lt;/code&gt;. For example &lt;code&gt;NOT(ISBLANK())&lt;/code&gt; will look up non-empty values&lt;/li&gt;&#xA;&lt;li&gt;You can check for multiple conditions with &lt;code&gt;AND(value1, value2, value3)&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;highlight-prices-that-are-lower-than-reference-price&#34;&gt;Highlight prices that are lower than reference price&lt;/h3&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=(AND(NOT(ISBLANK(D3)), D3&amp;lt;$C3))&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;&#xA;&lt;li&gt;Highlights all cells that have price lower than the official price column.&lt;/li&gt;&#xA;&lt;li&gt;Only highlights non-empty cells&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h4 id=&#34;c3-vs-c3&#34;&gt;&lt;code&gt;C3&lt;/code&gt; vs &lt;code&gt;$C3&lt;/code&gt;&lt;/h4&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://support.google.com/docs/thread/5592506?hl=en&amp;amp;msgid=5593381&#34;&gt;ref&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>OBS Studio</title>
      <link>https://aamnah.com/notes/misc/obs-studio/</link>
      <pubDate>Fri, 08 Nov 2019 00:00:00 +0500</pubDate>
      <guid>https://aamnah.com/notes/misc/obs-studio/</guid>
      <description>&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# Install on Ubuntu 19.10&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;2&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;sudo apt install -y ffmpeg&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;3&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;sudo add-apt-repository ppa:obsproject/obs-studio&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;4&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;sudo apt install -y obs-studio&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Add a &lt;em&gt;Noise Suppression&lt;/em&gt; filter with &lt;code&gt;-30db&lt;/code&gt; on your input source to get rid of the static noise. Also adjust mic volume to get better result. Disabling &lt;em&gt;monitoring&lt;/em&gt; also helps&lt;/p&gt;&#xA;&lt;p&gt;Music for streams: &lt;a href=&#34;https://www.bensound.com/&#34;&gt;Bensound&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;[en/ur] [web/DevOps] Frontend (JavaScript, React, React Native, CSS)&lt;/p&gt;&#xA;&lt;p&gt;Stuff i can broadcast about:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;how to setup a bitbucket pipeline for Expo and React Native for CD&lt;/li&gt;&#xA;&lt;li&gt;solve JS algorithms on FCC&lt;/li&gt;&#xA;&lt;li&gt;write a bash script&lt;/li&gt;&#xA;&lt;li&gt;create an extension pack for VS Code&lt;/li&gt;&#xA;&lt;li&gt;create a React component&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;links&#34;&gt;Links&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://obsproject.com/&#34;&gt;OBS Studio&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
    <item>
      <title>Get current URL in C# MVC (.cshtml) files</title>
      <link>https://aamnah.com/notes/misc/csharp-mvc-get-current-url/</link>
      <pubDate>Mon, 29 Jul 2019 00:00:00 +0500</pubDate>
      <guid>https://aamnah.com/notes/misc/csharp-mvc-get-current-url/</guid>
      <description>&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Request.Url.AbsolutePath : /virtual_dir/webapp/page&#xA;Request.Url.AbsoluteUri  : http://localhost:2000/virtual_dir/webapp/page?q=qvalue&#xA;Request.Url.Host         : localhost&#xA;Request.Url.Authority    : localhost:80&#xA;Request.Url.LocalPath    : /virtual_dir/webapp/page&#xA;Request.Url.PathAndQuery : /virtual_dir/webapp/page?q=qvalue&#xA;Request.Url.Port         : 80&#xA;Request.Url.Query        : ?q=qvalue&#xA;Request.Url.Scheme       : http&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code class=&#34;language-cshtml&#34; data-lang=&#34;cshtml&#34;&gt;&amp;lt;a href=&amp;#34;@Request.Url.AbsolutePath&amp;#34;&amp;gt;Clear Search&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Here are a few more&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Request.RawUrl             : /virtual_dir/webapp/page?q=qvalue&#xA;Request.Url.OriginalString : http://localhost:2000/virtual_dir/webapp/page?q=qvalue&#xA;Request.Url.ToString()     : http://localhost:2000/virtual_dir/webapp/page?q=qvalue&#xA;Url.Action()               : /virtual_dir/webapp/page?q=qvalue&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>Decisions on libraries and framework</title>
      <link>https://aamnah.com/notes/misc/decisions-libraries-frameworks/</link>
      <pubDate>Thu, 04 Jul 2019 00:00:00 +0500</pubDate>
      <guid>https://aamnah.com/notes/misc/decisions-libraries-frameworks/</guid>
      <description>&lt;h2 id=&#34;sass-vs-styled-components&#34;&gt;Sass vs. styled-components&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://bundlephobia.com/result?p=styled-components@4.3.2&#34;&gt;bundle size and load time&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;redux is &lt;strong&gt;44.3kb&lt;/strong&gt; minified and &lt;strong&gt;16.2kb&lt;/strong&gt; minified and gzipped. It&amp;rsquo;ll take &lt;strong&gt;0.54ms&lt;/strong&gt; to load on 2G EDGE connection and &lt;strong&gt;324ms&lt;/strong&gt; to load on emerging 3G.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Sass is supported out of the box with &lt;code&gt;create-react-app&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Sass is mostly known, no learning curves&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Moving back to plain old CSS is easy&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;If you use CSS variables in the app-wide CSS file, you don&amp;rsquo;t have to import the variables file in all the other files&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Importing partials seems to be an issue to me at the moment. Do we import partials inside the component stylesheets? In every component?&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;styled-components can take props&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;styled-components are contained in the same file. No more opening the styles file to the side. No more creating separate files for every component&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;will result in simpler folder structure as i won&amp;rsquo;t have to create a folder for every component just so i could keep the files together. And i wouldn&amp;rsquo;t have to name the component files inside the folder as &lt;code&gt;index.js&lt;/code&gt; either, which makes differentiating between the tabs in code editor a nightmare, i have to hover on every file to see the path and know which component file is that particular &lt;code&gt;index.js&lt;/code&gt; is. At any time i have 3-12 &lt;code&gt;index.js&lt;/code&gt; files open&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
    <item>
      <title>Download audio from YouTube with youtube-dl</title>
      <link>https://aamnah.com/notes/misc/youtube-dl-audio-download/</link>
      <pubDate>Tue, 09 Apr 2019 17:52:36 +0500</pubDate>
      <guid>https://aamnah.com/notes/misc/youtube-dl-audio-download/</guid>
      <description>&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 1&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# install latest youtube-dl version&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 2&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;#sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 3&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;#sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 4&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;#sudo chmod a+rx /usr/local/bin/youtube-dl&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 5&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 6&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# Ubuntu&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 7&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# an older version is available in the repos. &lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 8&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# You can install that and run with `--update` to get to the latest version&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 9&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;sudo apt install youtube-dl&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;10&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;youtube-dl --update&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;11&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;12&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;source&lt;/span&gt; ~/.bashrc &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;13&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;14&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# install ffmpeg to be able to convert video files to audio&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;15&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;sudo apt install -y ffmpeg&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;16&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;17&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# macOS&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;18&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# brew install youtube-dl ffmpeg&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;youtbe-dl -x https://www.youtube.com/watch?v&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;xvtBAXM-YZs -o ~/Music/%&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;title&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;s.%&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;ext&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;s&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You can also &lt;code&gt;sudo apt install youtube-dl -y&lt;/code&gt; but that installs an outdated version. (Installed 2018.03.14 for me when the latest was 2019.07.02) on July 10, 2019. And 2019.07.02 when the latest was 2019.10.16 on October 21, 2019. That&amp;rsquo;s 12 versions older.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Named destination in PDF on Linux</title>
      <link>https://aamnah.com/notes/misc/pdf-named-destinations/</link>
      <pubDate>Fri, 26 Oct 2018 00:00:00 +0500</pubDate>
      <guid>https://aamnah.com/notes/misc/pdf-named-destinations/</guid>
      <description>&lt;p&gt;You can link to a portion of a PDF just like you link to a portion of the webiste using anchor tags. In PDFs, the term &lt;em&gt;named destinations&lt;/em&gt; is used for such anchor tags.&lt;/p&gt;&#xA;&lt;h3 id=&#34;renaming-bookmarks&#34;&gt;Renaming bookmarks&lt;/h3&gt;&#xA;&lt;p&gt;The document usually has automatically generated bookmarks. Their names are usually obnoxious though, like_ &lt;em&gt;Toc527397839&lt;/em&gt;. You can rename them for better usability.&lt;/p&gt;&#xA;&lt;p&gt;You have to do this in the doc file before exporting it as PDF&lt;/p&gt;</description>
    </item>
    <item>
      <title>Orange Pi&#43; 2 - Getting started and headaches</title>
      <link>https://aamnah.com/notes/misc/orangepi/</link>
      <pubDate>Tue, 10 Jul 2018 00:00:00 +0500</pubDate>
      <guid>https://aamnah.com/notes/misc/orangepi/</guid>
      <description>&lt;p&gt;While the Orange Pi+ 2 has better hardware, the software support for it sucks.&lt;/p&gt;&#xA;&lt;h3 id=&#34;what-came-pre-installed&#34;&gt;What came pre-installed&lt;/h3&gt;&#xA;&lt;p&gt;An Android looking OS that has 5 icons, but none of the icons open anything or go anywhre&lt;/p&gt;&#xA;&lt;h3 id=&#34;armbian&#34;&gt;Armbian&lt;/h3&gt;&#xA;&lt;p&gt;So far i have tried 2 different images (Ubuntu Xenial and Debian , both mainline kernels), none of them gave me a display. I go as far as loading kernel, and then the screen goes black with the monitor displaying an &lt;em&gt;out of range&lt;/em&gt; message. The monitor i have is Asus VX24AH (WQHD / 2K resolution).&lt;/p&gt;</description>
    </item>
    <item>
      <title>Things that i love about my Mac</title>
      <link>https://aamnah.com/notes/misc/things-that-i-love-about-my-mac/</link>
      <pubDate>Fri, 13 Mar 2015 00:00:00 +0500</pubDate>
      <guid>https://aamnah.com/notes/misc/things-that-i-love-about-my-mac/</guid>
      <description>&lt;p&gt;I converted to a Mac __ years ago. And i can&amp;rsquo;t see myself going back to Windows or a non-Apple laptop.&lt;/p&gt;&#xA;&lt;p&gt;The software i use is already available for Mac. I&amp;rsquo;m a web developer, i have everything i need already on my Mac. The only software i ever. For everything else, there is either a Mac version available or an alternative available. In some cases i found that the Mac version of the same software looks better than it&amp;rsquo;s Windows counterpart. Evernote for Mac looked better than it&amp;rsquo;s Windows counterpart for a long time before they updated the looks of the Windows version.&lt;/p&gt;</description>
    </item>
    <item>
      <title>&lt;p lang=&#39;ur&#39; dir=&#39;rtl&#39;&gt;آؤ اردو میں تحریر کریں&lt;/p&gt;</title>
      <link>https://aamnah.com/notes/misc/lets-write-in-urdu/</link>
      <pubDate>Tue, 26 Aug 2014 00:00:06 +0500</pubDate>
      <guid>https://aamnah.com/notes/misc/lets-write-in-urdu/</guid>
      <description>&lt;p lang=&#34;ur&#34; dir=&#34;rtl&#34;&gt;&#xA;مجھے ہمیشہ سے مختلف زبانیں سیکھنے اور بولنے کا شوق رہا ہے۔ اس وقت میں روانی کے ساتھ تین زبانیں بول سکتی ہوں۔۔ اردو ،انگریزی اور پنجابی۔ اس کے علاوہ میں ان دنوں عربی اور فرانسیسی سیکھ رہی ہوں۔&#xA;&lt;/p&gt;&#xA;&lt;p lang=&#34;ur&#34; dir=&#34;rtl&#34;&gt;&#xA;عربی اور فرانسیسی آن لائن سیکھنے کے لئے عربی اور فرانسیسی ٹائپ کرنا بھی ضروری ہے۔ اور اسکے لئے آپ کو الگ سے کیبورڈ لےآؤٹ* انسٹال کرنا پڑتا ہے۔ جیسے ہی میں نے یہ کام کرنا سیکھا میرا اگلا قدم اردو لے آؤٹ انسٹال کرنا تھا۔ اور اس دن سے ہی میں روز کچھ نا کچھ اردو میں ٹائپ کرتی ہوں تاکہ میری اردو میں ٹائپ کرنے کی رفتار اور حروف کی پہچان بہتر ہو سکے۔&#xA;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Steganogrophy</title>
      <link>https://aamnah.com/notes/misc/intro-steganogrophy/</link>
      <pubDate>Tue, 27 May 2014 16:41:56 +0500</pubDate>
      <guid>https://aamnah.com/notes/misc/intro-steganogrophy/</guid>
      <description>&lt;p&gt;&lt;strong&gt;Steganography&lt;/strong&gt; is hiding data inside of other data. Hiding information inside of something else. For example, having text hidden inside of an image. It could also be an image inside of another image. It&amp;rsquo;s really just hididng one piece of data inside another piece of data.&lt;/p&gt;&#xA;&lt;p&gt;It&amp;rsquo;s a quick way of sending messages to people without actually having the message seen. You&amp;rsquo;d have an arrangement with a friend where you&amp;rsquo;d send them an image, it&amp;rsquo;d have a messae hidden in it and they&amp;rsquo;d know to open the image in their steganography program, and it&amp;rsquo;d display the text for them.&lt;/p&gt;</description>
    </item>
    <item>
      <title>fileconveyer</title>
      <link>https://aamnah.com/notes/misc/fileconveyer/</link>
      <pubDate>Wed, 21 May 2014 00:00:00 +0500</pubDate>
      <guid>https://aamnah.com/notes/misc/fileconveyer/</guid>
      <description>&lt;h3 id=&#34;install-fileconveyer&#34;&gt;Install FileConveyer:&lt;/h3&gt;&#xA;&lt;p&gt;Change to the directory you want to hold the fileconveyor files, then run:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;sudo apt install git python-setuptools &lt;span class=&#34;o&#34;&gt;&amp;amp;&amp;amp;&lt;/span&gt; sudo easy_install pip &lt;span class=&#34;o&#34;&gt;&amp;amp;&amp;amp;&lt;/span&gt; sudo pip install -e git+https://github.com/wimleers/fileconveyor@master#egg&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;fileconveyor&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;sudo nano src/fileconveyor/fileconveyor/config.xml&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-xml&#34; data-lang=&#34;xml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 1&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cp&#34;&gt;&amp;lt;?xml version=&amp;#34;1.0&amp;#34; encoding=&amp;#34;UTF-8&amp;#34;?&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 2&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;config&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 3&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&#x9;&lt;span class=&#34;c&#34;&gt;&amp;lt;!-- Sources --&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 4&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&#x9;&lt;span class=&#34;nt&#34;&gt;&amp;lt;sources&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;ignoredDirs=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 5&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;  &#x9;&lt;span class=&#34;nt&#34;&gt;&amp;lt;source&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;name=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;test&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;scanPath=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;/var/www/html/test&amp;#34;&lt;/span&gt; &lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 6&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&#x9;&lt;span class=&#34;nt&#34;&gt;&amp;lt;/sources&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 7&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 8&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&#x9;&lt;span class=&#34;c&#34;&gt;&amp;lt;!-- Servers --&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt; 9&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&#x9;&lt;span class=&#34;nt&#34;&gt;&amp;lt;servers&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;10&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;  &#x9;&lt;span class=&#34;nt&#34;&gt;&amp;lt;server&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;name=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;Rackspace Cloud Files&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;transporter=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;cloudfiles&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;11&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;    &#x9;&#x9;&lt;span class=&#34;nt&#34;&gt;&amp;lt;username&amp;gt;&lt;/span&gt;USERNAME&lt;span class=&#34;nt&#34;&gt;&amp;lt;/username&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;12&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;    &#x9;&#x9;&lt;span class=&#34;nt&#34;&gt;&amp;lt;api_key&amp;gt;&lt;/span&gt;APIKEY&lt;span class=&#34;nt&#34;&gt;&amp;lt;/api_key&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;13&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;    &#x9;&#x9;&lt;span class=&#34;nt&#34;&gt;&amp;lt;container&amp;gt;&lt;/span&gt;CONTAINER&lt;span class=&#34;nt&#34;&gt;&amp;lt;/container&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;14&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;  &#x9;&lt;span class=&#34;nt&#34;&gt;&amp;lt;/server&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;15&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&#x9;&lt;span class=&#34;nt&#34;&gt;&amp;lt;/servers&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;16&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&#x9;&lt;span class=&#34;c&#34;&gt;&amp;lt;!-- Rules --&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;17&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&#x9;&lt;span class=&#34;nt&#34;&gt;&amp;lt;rules&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;18&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;  &#x9;&lt;span class=&#34;nt&#34;&gt;&amp;lt;rule&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;for=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;test&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;label=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;Test&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;19&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;    &#x9;&lt;span class=&#34;nt&#34;&gt;&amp;lt;destinations&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;20&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;      &#x9;&lt;span class=&#34;nt&#34;&gt;&amp;lt;destination&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;server=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;Rackspace Cloud Files&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;path=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;test&amp;#34;&lt;/span&gt; &lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;21&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;    &#x9;&lt;span class=&#34;nt&#34;&gt;&amp;lt;/destinations&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;22&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;  &#x9;&lt;span class=&#34;nt&#34;&gt;&amp;lt;/rule&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;23&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&#x9;&lt;span class=&#34;nt&#34;&gt;&amp;lt;/rules&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;24&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;/config&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Add this to /etc/rc.local&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
