<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Salman Qureshi on Medium]]></title>
        <description><![CDATA[Stories by Salman Qureshi on Medium]]></description>
        <link>https://medium.com/@salmanually?source=rss-bbd5d5eb9b34------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*lBGhpAvmVn_lCmAzgjQ2kQ.jpeg</url>
            <title>Stories by Salman Qureshi on Medium</title>
            <link>https://medium.com/@salmanually?source=rss-bbd5d5eb9b34------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 11:47:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@salmanually/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Git Tricks & Hacks To Be More Productive That Will Save Your Time]]></title>
            <link>https://salmanually.medium.com/git-tricks-hacks-to-be-more-productive-that-will-save-your-time-d1b80e12915c?source=rss-bbd5d5eb9b34------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1b80e12915c</guid>
            <category><![CDATA[cli]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Salman Qureshi]]></dc:creator>
            <pubDate>Tue, 26 Jan 2021 17:12:32 GMT</pubDate>
            <atom:updated>2021-01-26T17:12:32.758Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*0EAhXx8yx5ku6vsguVFFQQ.jpeg" /></figure><h4>Want to speed up your git skills?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/231/0*dsw7nmFUGPCbPYg1.gif" /><figcaption>Yes???</figcaption></figure><p>Open Source is the future that needs git skills and every modern IT companies needs collaborative work and Continuous Integration (CI) you will need git CLI skills there as well.</p><p><em>Today we will learn to be more productive in terms of git </em><em>CLI commands.</em></p><h3>10 Git Tricks to Save Your Time and Efforts 👇👇👇</h3><ol><li>Checkout a single file from another branch</li></ol><p>git checkout some-other-branch -- yarn.lock</p><p>2. View the log without merge commits`</p><p>git log --online --no-merges</p><p>3. Rewrite your last commit message`</p><p>git commit -v --amend</p><p>4. Get rid of all untracked changes</p><p>git clean -f -d</p><p>5. Print out a cool visualization of your log</p><p>git log --pretty=oneline --graph --decorate --all</p><p>6. Ask git for a changelog</p><p>git shortlog &lt;commit&gt;..HEAD</p><p>7. View the log for a specific date range</p><p>git log --since=&#39;FEB 10 2016&#39; --until=&#39;FEB 19 2016&#39;</p><p>8. List all git aliases</p><p>git config -l | grep alias | sed &#39;s/^alias\.//g&#39;</p><p>9. Search for commits that include a keyword</p><p>git log -S&quot;config. menu_items&quot;</p><p>10. Super secret list of git tutorials</p><p>git help -g</p><p>What Do you think? Add yours in replies.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1b80e12915c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[All You Need To Know About New Hermes JavaScript Engine & How To Migrate.]]></title>
            <link>https://salmanually.medium.com/all-you-need-to-know-about-new-hermes-javascript-engine-how-to-migrate-6f1d26742982?source=rss-bbd5d5eb9b34------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f1d26742982</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[hermes-engine]]></category>
            <category><![CDATA[what-is-hermes-engine]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Salman Qureshi]]></dc:creator>
            <pubDate>Sat, 13 Jul 2019 17:42:07 GMT</pubDate>
            <atom:updated>2019-07-14T06:33:36.650Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>So Facebook just open source another JavaScript engine named as hermes. Hermes is a JavaScript engine specifically tailored for running with mobile applications that is primarily with react native on Android because on iOS you are forced to use V8.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/0*qz5HiuYqEbVUNlne" /></figure><p>Mobile applications are growing larger and more complex. Larger apps using JavaScript frameworks often experience performance issues as developers add features and complexity. These issues are generated from various spots, but the people using these apps expect them to run smoothly, regardless of the device they are on.</p><p>According To Facebook:</p><p>” To increase the performance of Facebook’s apps, we have teams that continuously improve our JavaScript code and platforms. As we analyzed performance data, we noticed that the JavaScript engine itself was a significant factor in startup performance and download size. With this data in hand, we knew we had to optimize JavaScript performance in the more constrained environments of a mobile phone compared with a desktop or laptop. After exploring other options, we built a new JavaScript engine we call Hermes. It is designed to improve app performance, focusing on our React Native apps, even on mass-market devices with limited memory, slow storage, and reduced computing power. “</p><h3>How Hermes improves React Native performance</h3><p>For JavaScript-based mobile applications, user experience benefits from attention to a few primary metrics:</p><ul><li>The time it takes for the app to become usable, called time to interact (TTI)</li><li>The download size (on Android, APK size)</li><li>Memory utilization</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/0*IVjIKkjpb1AbIDce" /></figure><p>Notably, our primary metrics are relatively insensitive to the engine’s CPU usage when executing JavaScript code. Focusing on these metrics leads to strategies and trade-offs that differ from most existing JavaScript engines today. Consequently, our team designed and built Hermes from scratch. As a result of this focus, our implementation provides substantial improvement for React Native applications.</p><p>Because Hermes is optimized for mobile apps, we do not have plans to integrate it with any browsers or with server infrastructure such as Node.js. Existing JavaScript engines remain preferable in those environments.</p><h3>Key Hermes architectural decisions</h3><p>Mobile device limitations, such as smaller amounts of RAM and slower flash, led us to make certain architectural decisions. To optimize for this environment, we implemented the following:</p><h3>Bytecode precompilation</h3><p>Commonly, a JavaScript engine will parse the JavaScript source after it is loaded, generating bytecode. This step delays the start of JavaScript execution. To skip this step, Hermes uses an ahead-of-time compiler, which runs as part of the mobile application build process. As a result, more time can be spent optimizing the bytecode, so the bytecode is smaller and more efficient. Whole-program optimizations can be performed, such as function deduplication and string table packing.</p><p>The bytecode is designed so that at runtime, it can be mapped into memory and interpreted without needing to eagerly read the entire file. Flash memory I/O adds significant latency on many medium and low-end mobile devices, so loading bytecode from flash only when needed and optimizing bytecode for size leads to significant TTI improvements. In addition, because the memory is mapped read-only and backed by a file, mobile operating systems that don’t swap, such as Android, can still evict these pages under memory pressure. This reduces out-of-memory process kills on memory constrained devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/0*vHht4a5ZpkYvWDbd" /></figure><p>Although compressed bytecode is a bit larger than compressed JavaScript source code, because Hermes’s native code size is smaller, Hermes decreases overall application size for Android React Native apps.</p><h3>No JIT</h3><p>To speed execution, most widely used JavaScript engines can lazily compile frequently interpreted code to machine code. This work is performed by a just-in-time (JIT) compiler.</p><p>Hermes today has no JIT compiler. This means that Hermes underperforms some benchmarks, especially those that depend on CPU performance. This was an intentional choice: These benchmarks are generally not representative of mobile application workloads. We have done some experimentation with JITs, but we believe that it would be quite challenging to achieve beneficial speed improvements without regressing our primary metrics. Because JITs must warm up when an application starts, they have trouble improving TTI and may even hurt TTI. Also, a JIT adds to native code size and memory consumption, which negatively affects our primary metrics. A JIT is likely to hurt the metrics we care about most, so we chose not to implement a JIT. Instead, we focused on interpreter performance as the right trade-off for Hermes.</p><h3>Garbage collector strategy</h3><p>On mobile devices, efficient use of memory is especially important. Lower-end devices have limited memory, OS swapping does not generally exist, and operating systems aggressively kill applications that use too much memory. When apps are killed, slow restarts are required and background functionality suffers. In early testing, we learned that virtual address (VA) space, especially contiguous VA space, can be a limited resource in large applications on 32-bit devices even with lazy allocation of physical pages.</p><p>To minimize memory and VA space used by the engine, we have built a garbage collector with the following features:</p><ul><li>On-demand allocation: Allocates VA space in chunks only as needed.</li><li>Noncontiguous: VA space need not be in a single memory range, which avoids resource limits on 32-bit devices.</li><li>Moving: Being able to move objects means memory can be defragmented and chunks that are no longer needed are returned to the operating system.</li><li>Generational: Not scanning the entire JavaScript heap every GC reduces GC times.</li></ul><p><strong>How To Migrate and Start using Hermes Engine:</strong></p><p>First, ensure you’re using at least version 0.60.2 of React Native. If you’re upgrading an existing app ensure everything works before trying to switch to Hermes.</p><p>Edit your android/app/build.gradle file and make the change illustrated below:</p><pre>project.ext.react = [<br>      entryFile: &quot;index.js&quot;,<br>-     enableHermes: false  // clean and rebuild if changing<br>+     enableHermes: true  // clean and rebuild if changing<br>  ]</pre><p>Next, if you’ve already built your app at least once, clean the build:</p><pre>$ cd android &amp;&amp; ./gradlew clean</pre><p>That’s it! You should now be able to develop and deploy your app as normal:</p><pre>$ react-native run-android</pre><h3>Confirming Hermes is in use</h3><p>If you’ve just created a new app from scratch you should see if Hermes is enabled in the welcome view:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/405/0*cFBTReSqFPkqeBLG" /></figure><p>A HermesInternal global variable will be available in JavaScript that can be used to verify that Hermes is in use:</p><pre>const isHermes = () =&gt; global.HermesInternal != null;</pre><p>To see the benefits of Hermes, try making a release build/deployment of your app to compare. For example:</p><pre>$ react-native run-android --variant release</pre><p>This will compile JavaScript to bytecode during build time which will improve your app’s startup speed on device.</p><p>Originally Posted On My Blog:</p><p><a href="https://salmanually.com/2019/07/13/all-you-need-to-know-about-new-hermes-javascript-engine-how-to-migrate/">https://salmanually.com/2019/07/13/all-you-need-to-know-about-new-hermes-javascript-engine-how-to-migrate/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f1d26742982" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Day When Facebook Stored User Passwords in Plain-Text Without Encryption — Facebook Apologized…]]></title>
            <link>https://salmanually.medium.com/the-day-when-facebook-stored-user-passwords-in-plain-text-without-encryption-facebook-apologized-2b7fa3568d67?source=rss-bbd5d5eb9b34------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b7fa3568d67</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[facebook]]></category>
            <dc:creator><![CDATA[Salman Qureshi]]></dc:creator>
            <pubDate>Sat, 06 Apr 2019 08:04:27 GMT</pubDate>
            <atom:updated>2019-04-06T08:04:27.832Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Day When Facebook Stored User Passwords in Plain-Text Without Encryption — Facebook Apologized :)</h3><h4>Being a Tech Giant is not everything. Facebook holds majority of market in Social Media Networking Platform out there. Recently 3 days before on April 2nd 2019 Google abandoned it’s Social Media Platform ‘Google +’. Well if they would have abandoned it on 1st April it would have been April Fool’s day for the creators of Google Plus.</h4><p>Well coming back to Facebook , I am sci-fan &amp; believe “<strong>With Great Power Comes Greater Responsibility</strong>” but having so much controversies within Facebook on security aspect — Well they come with nothing</p><h3>A funny story happened recently when they prompt me with this funny notification.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/0*wjjNCH68b_jGNTmt" /><figcaption>Funny yeah, But truth.</figcaption></figure><blockquote><em>Well I can’t Believe They Did it? Who does that on production system?</em></blockquote><h3>The Fact Behind This Glitch</h3><h3>Facebook stored millions of passwords in plain text format, change your FB password now</h3><p>Facebook said on Thursday it has resolved a glitch that exposed passwords of millions of users stored in readable format within its internal systems to its employees.</p><p>The passwords were accessible to as many as 20,000 Facebook employees and dated back as early as 2012, cyber security blog KrebsOnSecurity, which first reported said in its report.</p><p>“These passwords were never visible to anyone outside of Facebook and we have found no evidence to date that anyone internally abused or improperly accessed them,” the company said.</p><p>KrebsOnSecurity, citing a senior Facebook employee, said the an internal investigation by the company so far indicates that between 200 million and 600 million Facebook users may have had their account passwords stored in plain text.</p><p>Facebook said the issue was discovered in January as part of a routine security review. Majority of the affected were users of Facebook Lite, a version of the social media app largely used by people in regions with lower connectivity.</p><p>The social network is also probing the causes of a series of security failures, in which employees built applications that logged unencrypted password data for Facebook users, the report said.”We estimate that we will notify hundreds of millions of Facebook Lite users, tens of millions of other Facebook users, and tens of thousands of Instagram users,” the company said.</p><p>Via — Reuters</p><h3>For Non Technical People.</h3><p>It takes only few line of code to convert a plan text into cypher text. Also it’s execution won’t take much processing time for basic encryption technique like MD5.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b7fa3568d67" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What world gets from War]]></title>
            <link>https://salmanually.medium.com/what-world-gets-from-war-103c222d7f04?source=rss-bbd5d5eb9b34------2</link>
            <guid isPermaLink="false">https://medium.com/p/103c222d7f04</guid>
            <category><![CDATA[injustice]]></category>
            <category><![CDATA[economist]]></category>
            <category><![CDATA[oil]]></category>
            <category><![CDATA[war]]></category>
            <category><![CDATA[muslim]]></category>
            <dc:creator><![CDATA[Salman Qureshi]]></dc:creator>
            <pubDate>Wed, 10 May 2017 09:44:36 GMT</pubDate>
            <atom:updated>2017-05-10T09:44:36.980Z</atom:updated>
            <content:encoded><![CDATA[<p>First of all what the world gets from war is nothing. But still, there are economists who breathe to get profit. This article itself is a confusing one.<br>To boost up a new generation and to eradicated previous unwanted business classes, commerce models &amp; much more.<br>Only the Economist gets the profit from War. Actually, they are the reason why war is happening today also.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1KUbLvWjILlEDo6i." /><figcaption>A Syrian boy walks with his bicycle in the devastated Sukari district in the northern city ©gettyimages</figcaption></figure><p>Take Example of Syria, what is happening over there, everyone knows what is happening is totally injustice. Still, our “Heroic Agencies” like United Nations are not doing anything. They want to do but in the World of “Superpower”, it’s only recessive countries that are being targeted. Syria being among oil producing countries.<br>Economists are trying to fetch more and more oil at cheaper rates sometimes even at the free rate. This is only possible by exploiting that particular region.</p><p>They target that particular region which is less important to the to the world.<br>Muslims are being targeted everywhere, no one even cares about them. They are from the religion of peace and are being bombarded every day.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=103c222d7f04" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>