<?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[chekiprice - Medium]]></title>
        <description><![CDATA[Search Smart, Not Hard. A new way to rediscover products. - Medium]]></description>
        <link>https://medium.com/chekiprice?source=rss----c78e5b9c5a29---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>chekiprice - Medium</title>
            <link>https://medium.com/chekiprice?source=rss----c78e5b9c5a29---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 14:05:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/chekiprice" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Discover and compare prices of products in Nigeria.]]></title>
            <link>https://medium.com/chekiprice/discover-and-compare-prices-of-products-in-nigeria-718e82aaee35?source=rss----c78e5b9c5a29---4</link>
            <guid isPermaLink="false">https://medium.com/p/718e82aaee35</guid>
            <category><![CDATA[chekiprice-nigeria]]></category>
            <category><![CDATA[chekiprice]]></category>
            <category><![CDATA[price-comparison]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[nigeria]]></category>
            <dc:creator><![CDATA[Alexander]]></dc:creator>
            <pubDate>Sun, 25 Aug 2024 05:07:01 GMT</pubDate>
            <atom:updated>2024-08-25T05:07:00.982Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*LthepqiKd2Nmrwaj.png" /></figure><p>Users in Nigeria are usually looking for the best quality of products for a reasonable price. Users usually use price comparison websites and apps to compare prices in Nigeria and secure the best deal for the products. However these stores do not sometimes provide accurate data to users as the product could have already gone out of stock.</p><p>Online shopping stores in Nigeria provides various products from phones, computers, electrical appliances, clothes and accessories, and kitchenware. Top online stores in Nigeria include Jumia, Konga, Payporte, and Kara. Imagine the nightmare of visiting each store when your trying to find the best price of a product. In this article will discuss <a href="https://www.chekiprice.com/en-ng">Chekiprice Nigeria</a>.</p><h3>What is Chekiprice?</h3><p>Chekiprice, is a real-time price comparison website that provides a platform to compare the prices of products in online stores.</p><p><a href="https://www.chekiprice.com/en-ng">Chekiprice Nigeria</a> was release on the early 2020 with aim of simplifying product searches in Nigeria. Chekiprice achieves this by using Artificial Intelligence to sort products after retrieving them from various sources in Realtime.</p><p>Chekiprice provides extensive information about products in the Nigerian online market. The website gives users a platform to analyze the products specs against their prices compared to other stores and choose the one that suits them best. With checkiprice, you will have over 40 stores to compare prices from. The stores are distributed across the country; therefore, the website serves all Nigerians.</p><h3>Why choose Chekiprice ?</h3><ul><li><strong>Efficiency:</strong> Chekiprice helps you save time and be more efficient while shopping. The platform provides comprehensive information about online stores across Nigeria at zero cost.</li><li><strong>Realtime Price Comparison:</strong> Chekiprice allows online shoppers to compare up-to-date prices, shipping fees, and merchants services on a single page.</li><li><strong>AI:</strong> Chekiprice has AI that filters products. The AI-powered filtering analyses websites to pick meaningful data for the appropriate product. The AI ensures precision during product matching.</li></ul><h3>How does Chekiprice work?</h3><p>Chekiprice is simple, clear, and transparent. The website is user-friendly and very easy to use. When searching, Chekiprice has ready made categories which you can choose from. You can also customize your search by selecting a group of individual stores. The website performs sorting of products based on your search using AI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*sGyDoHQuXM_Pu9_P.png" /></figure><h3>Conclusion</h3><p>There is no doubt online shopping in Nigeria and the rest of Africa is the next big thing. Day by day we see more stores in Africa transitioning to the online space. <a href="https://www.chekiprice.com/en-ng">Chekiprice</a> is at the cutting age of the transition by providing space for discovery for the less popular stores amongst the bigger popular stores.</p><p><em>Originally published at </em><a href="https://blog.chekiprice.com/2022/07/discover-and-compare-prices-of-products.html"><em>https://blog.chekiprice.com</em></a><em> on July 7, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=718e82aaee35" width="1" height="1" alt=""><hr><p><a href="https://medium.com/chekiprice/discover-and-compare-prices-of-products-in-nigeria-718e82aaee35">Discover and compare prices of products in Nigeria.</a> was originally published in <a href="https://medium.com/chekiprice">chekiprice</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chekiprice VS Yaoota]]></title>
            <link>https://medium.com/chekiprice/chekiprice-vs-yaoota-d5a64cda98f1?source=rss----c78e5b9c5a29---4</link>
            <guid isPermaLink="false">https://medium.com/p/d5a64cda98f1</guid>
            <category><![CDATA[chekiprice]]></category>
            <category><![CDATA[price-comparison]]></category>
            <category><![CDATA[price]]></category>
            <category><![CDATA[yaoota]]></category>
            <dc:creator><![CDATA[Alexander]]></dc:creator>
            <pubDate>Sat, 17 Aug 2024 04:16:46 GMT</pubDate>
            <atom:updated>2024-08-17T04:16:46.720Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*NondcpqBRwgYIfgz.png" /></figure><p>The e-commerce price comparison landscape in Africa is becoming increasingly competitive, as platforms like Yaoota solidify their foothold. However, a new entrant, <strong>Chekiprice</strong>, is gaining attention through its expansion into key markets.</p><h3>Is Chekiprice the new Yaoota?</h3><p>Price comparison websites have transformed the way we shop for goods and services. Platforms such as Yaoota have gained substantial popularity in markets like Kenya, Nigeria, Egypt, and the UAE, providing price comparisons on a wide range of products at competitive prices. However, a new competitor has emerged — Chekiprice.</p><h3>Chekiprice: Expanding Its Reach</h3><p>Yaoota primarily targets the markets of Kenya, Nigeria, Egypt, and the UAE, while Chekiprice expands its reach to include Kenya, Nigeria, South Africa, Egypt, and the United Kingdom. This broader geographic coverage provides Chekiprice with a competitive advantage, allowing it to cater to a larger and more diverse customer base.</p><h3>Key Differences</h3><p>To gain insight into the potential impact of Chekiprice, let’s evaluate it in comparison to Yaoota across key areas:</p><p><strong>Market Reach: </strong>Chekiprice’s broad geographic reach, which spans across South Africa and the United Kingdom, enables it to access a larger potential customer base in these regions. This expanded reach increases the company’s opportunities for growth and market penetration.</p><p><strong>Product Range:</strong> Both platforms offer a diverse range of products. However, Chekiprice focuses on a wider range of products, including furniture, medicine, and fashion products.</p><p><strong>Pricing:</strong> At Chekiprice, we prioritize providing competitive pricing to appeal to budget-conscious consumers. Our pricing is carefully curated to ensure fairness and impartiality.</p><p><strong>User Experience:</strong> Checkiprice offers a more elegant user experience than Yaoota, which was written before the existence of modern frameworks like React.</p><p><strong>Payment Methods:</strong> Chekiprice employs individuals to identify the payment methods accepted by each store, providing accurate information about the available payment options. This information is typically listed at the end of the product description, along with details about the store’s terms and return policy.</p><h3>The Future of Price Comparison in Africa</h3><p>The rivalry between Chekiprice and Yaoota is likely to drive innovation and benefit consumers. As both platforms expand their services and offerings, we can expect increased competition, leading to lower prices, better product selection, and improved customer experiences.</p><p>Ultimately, the success of these platforms will depend on their ability to adapt to changing consumer preferences, leverage technology effectively, and build strong relationships with users.</p><p><em>Originally published at </em><a href="https://blog.chekiprice.com/2024/08/chekiprice-vs-yaoota.html"><em>https://blog.chekiprice.com</em></a><em> on August 12, 2024.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5a64cda98f1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/chekiprice/chekiprice-vs-yaoota-d5a64cda98f1">Chekiprice VS Yaoota</a> was originally published in <a href="https://medium.com/chekiprice">chekiprice</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Different ways of running scripts or tasks in the background in Linux]]></title>
            <link>https://medium.com/chekiprice/different-ways-of-running-scripts-or-tasks-in-the-background-in-linux-4814eba0349?source=rss----c78e5b9c5a29---4</link>
            <guid isPermaLink="false">https://medium.com/p/4814eba0349</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[scripting]]></category>
            <category><![CDATA[script]]></category>
            <category><![CDATA[bash]]></category>
            <dc:creator><![CDATA[Alexander]]></dc:creator>
            <pubDate>Wed, 07 Sep 2022 13:31:50 GMT</pubDate>
            <atom:updated>2022-09-07T13:31:50.617Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/639/0*gVhX-a2AcYkjMm0I.png" /></figure><p>For one reason or another you might need to run a script in the background in a manner that does not disrupt your work flow.</p><p>Some tasks are usually short and don’t need to be send back to the background however long tasks need to be run in the background.</p><p>I personally usually find myself <strong>alt+tabbing</strong> to the terminal running the script all the time as I continue with my my other tasks. In some situations, I have found myself to have accidentally closed the terminal altogether leaving me cursing.</p><p>Another scenario where you might need to run a task/script in the background is when running tasks/script that takes very long on your VPS, either AWS, GCP, Digitaloceans or whatever provider you use. In most cases you usually SSH to the VPS, if a tasks takes very long it makes zero sense to keep the SSH session alive for hours waiting to the task/script to complete.</p><p>In this tutorial am going to demonstrate different ways of running a program in the background. <br>For each method am going to concentrate on three major parts:</p><ul><li><strong><em>Command to run script in the background</em></strong></li><li><strong><em>Command to bring script back to shell</em></strong></li><li><strong><em>Command to send back script to background</em></strong></li></ul><pre>ping google.com</pre><p>To take the program to the background hold <strong>CLTR+Z</strong></p><p>To list jobs in the background run</p><pre>jobs -l</pre><p>To start all program in the background run:</p><p>To start a specific job use %</p><pre>bg %1</pre><p>To bring job to the foreground run:</p><p><strong><em>NB:</em></strong><em> Where 1 is the hierarchical number of the task given.</em></p><pre>fg %1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*Zx6QlhP9UpjbKNLq.png" /></figure><h3>Limitations</h3><p>Once you logout all background tasks are stopped.</p><h4>Why use nohup ?</h4><p>Nohup stands for “No Hangups”. Nohup allows the command running to continue running to completion even if the user who initiated the command logout or disconnect’s from the the server.</p><p><strong>NB:</strong> Assuming we have a script named <em>task.sh</em></p><p>We use nohup like below.</p><pre>nohup ./task.sh</pre><p>However this create an undesired nohup.out which appends what was to be outputted on the terminal.</p><p>Alternatively you could specify which file nohup to use to append logs.</p><pre>nohup ./task.sh &gt; log.txt</pre><p>I personally prefer not logging anything you can achieve that by redirecting the output to <em>/dev/null</em> .</p><pre>nohup task.sh &gt;/dev/null 2&gt;&amp;1</pre><p><strong>NB: </strong>The task’s started above still hang on the terminal in order to send them to the background use <strong><em>ctrl+z</em></strong>, <strong><em>fg</em></strong> and <strong><em>bg</em></strong> as I had shown in <strong>method 1</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*uOJQIKqUP3xpcj3d.png" /></figure><p>If you prefer sending the program immediately to the background append the <em>&amp;</em> symbol at the end this will inform the system to send the program to the background. You wont need to use <strong><em>ctrl+z</em></strong><em> </em>and<em> </em><strong><em>bg</em></strong> to start the program in background.</p><pre>nohup task.sh &gt;/dev/null 2&gt;&amp;1 &amp;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*IfCZRELmpOpNCJLv.png" /></figure><h4>Limitation</h4><p>Once you logout or disconnect from the server you can no longer bring the command back to the foreground using <strong>fg </strong>neither can you list the running jobs using <strong>jobs -l</strong>.</p><p>The good news is the job continues running even after logging out and re-logging.</p><h3>Listing nohup running jobs after logout/disconnected from server.</h3><p>You can use the following command to list nohup running jobs</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/0*WNFlp0g9y-SZBMDa.png" /></figure><h4>Reason why we can not use fg and bg even if we have the pid of the running task.</h4><p>You might be wondering if we have the PID of the running task why cant we just re-hook it to the foreground. This is because you cannot use fg and bg with a pid. They are shell built-in-s which require a <strong>jobspec</strong>, not a pid.</p><h3>Pausing and Continuing a task using PID</h3><p>The fact that we can acquire the pid of running tasks does not leave us helpless. With the pid we can pause and resume the running command as we desire.</p><h4>Pause running task using PID</h4><pre>kill -STOP &lt;pid&gt;</pre><h4>Resume running task using PID</h4><pre>kill -CONT &lt;pid&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/0*kwC5A8x6FAic2kFH.png" /></figure><h3>Using screen</h3><p>To list running jobs:</p><pre>screen -ls</pre><p>To re-attach command to screen:</p><pre>screen -r &lt;name&gt;</pre><p>To detach the screen without exiting the running task:</p><p>Hold<strong> cltr+a </strong>then press <strong>d</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*gRMcn1ECtKyxvzZA.png" /></figure><p><em>Originally published at </em><a href="https://blog.chekiprice.com/2022/09/different-ways-of-running-scripts-or.html"><em>https://blog.chekiprice.com</em></a><em> on September 7, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4814eba0349" width="1" height="1" alt=""><hr><p><a href="https://medium.com/chekiprice/different-ways-of-running-scripts-or-tasks-in-the-background-in-linux-4814eba0349">Different ways of running scripts or tasks in the background in Linux</a> was originally published in <a href="https://medium.com/chekiprice">chekiprice</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bun — Faster Javascript Runtime Than Node and Deno]]></title>
            <link>https://medium.com/chekiprice/bun-faster-javascript-runtime-than-node-and-deno-1fee1b1bad03?source=rss----c78e5b9c5a29---4</link>
            <guid isPermaLink="false">https://medium.com/p/1fee1b1bad03</guid>
            <category><![CDATA[buns]]></category>
            <category><![CDATA[node]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[deno]]></category>
            <dc:creator><![CDATA[Alexander]]></dc:creator>
            <pubDate>Fri, 29 Jul 2022 08:10:16 GMT</pubDate>
            <atom:updated>2022-07-29T09:09:47.614Z</atom:updated>
            <content:encoded><![CDATA[<h3>Bun — Faster Javascript Runtime Than Node and Deno</h3><figure><img alt="Bun image" src="https://cdn-images-1.medium.com/max/640/0*oLopy_7pGjszMFtm.png" /><figcaption>Bun image</figcaption></figure><p><a href="https://bun.sh/">Bun</a> is a new JavaScript runtime written from scratch that is faster than node and deno. Bun is still in its beta stages. Unlike node and deno which use the V8 engine bun uses the JavaScriptCore from WebKit which is generally faster and more memory efficient. Bun is written in <a href="https://ziglang.org/">ZIG</a> which is a low programming language like Rust and C++.</p><p>Bun re-thinks the whole node package management structure of using <em>node_modules</em> to store all packages. You’ll just need to use bun, Instead of 1,000 <em>node_modules</em> for development.</p><h3>Bun Features</h3><ul><li>Web API’s such as fetch, WebSocket, and ReadableStream are build into Bun.</li><li>Built from scratch JavaScript/TypeScript/JSX transpiler.</li><li>A JavaScript &amp; CSS bundler</li><li>A Task runner for package.json scripts</li><li>A package manager that is compatible with NPM.</li></ul><h3>Getting started with Bun</h3><p>To get start with bun you need to install bun using the bun install <a href="https://bun.sh/install">script</a>.</p><pre>curl <a href="https://bun.sh/install">https://bun.sh/install</a> | bash</pre><p>In order to use <strong>bun</strong> command on terminal add the following environment to your .bashrc in<em> $HOME/.bashrc.</em></p><h4>$HOME/.bashrc</h4><pre># Bun environment variables</pre><pre>export BUN_INSTALL=\&quot;$bun_install</pre><pre>export PATH=\&quot;\$BUN_INSTALL/bin:\$PATH</pre><h3>Commands Overview</h3><h4>Installing packages:</h4><pre>bun install</pre><h4>Add package:</h4><pre>bun add react</pre><h4>Remove package:</h4><pre>bun remove react</pre><h4>React App With Bun:</h4><pre>bun dev # start dev server</pre><h4>Nextjs App with Bun:</h4><pre>bun dev # start dev server</pre><h3>Benchmark Overview</h3><p>On Linux,<em> bun install </em>install’s packages 20x — 100x faster compared to <em>npm install</em>. On macOS, it’s more like 4x — 80x.</p><figure><img alt="Bun performance image" src="https://cdn-images-1.medium.com/max/640/0*OX3wUQ1pkNBHHDK-.png" /><figcaption>Bun performance image</figcaption></figure><h3>Conclusion</h3><p>Bun is fairly new and i wouldn’t recommend anyone to run it in production as its still experimental and bugs are expected. However the concepts are really solid. It feels like bun is trying to re-think the whole node ecosystem while bringing in backward compatibility of node packages. Would love to see what this <a href="https://github.com/oven-sh/bun">projects</a> morph’s to in the future.</p><p><em>Originally published at </em><a href="https://blog.chekiprice.com/2022/07/bun-faster-javascript-runtime-than-node.html"><em>https://blog.chekiprice.com</em></a><em> on July 10, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1fee1b1bad03" width="1" height="1" alt=""><hr><p><a href="https://medium.com/chekiprice/bun-faster-javascript-runtime-than-node-and-deno-1fee1b1bad03">Bun — Faster Javascript Runtime Than Node and Deno</a> was originally published in <a href="https://medium.com/chekiprice">chekiprice</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Running different instances of the same app on windows]]></title>
            <link>https://medium.com/chekiprice/running-different-instances-of-the-same-app-on-windows-62848ae75ff9?source=rss----c78e5b9c5a29---4</link>
            <guid isPermaLink="false">https://medium.com/p/62848ae75ff9</guid>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[hacks]]></category>
            <category><![CDATA[chekiprice]]></category>
            <category><![CDATA[tech-tips]]></category>
            <dc:creator><![CDATA[Alexander]]></dc:creator>
            <pubDate>Fri, 01 Oct 2021 11:30:05 GMT</pubDate>
            <atom:updated>2021-10-01T11:30:05.835Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h5hfJgV9K6e6MgWOc8OU6g.jpeg" /></figure><p>For some reason you might want to boost your productivity by having the ability to run different instance&#39;s of the same application. On Android phones this problem is sorted by the Dual Apps feature introduced by google on Android. On windows however there is no straight forward solution.</p><p>A dual private app can be helpful in promoting privacy especially in instances where there is a lot of sharing of the PC or when you just want some hardcore separate secure space.</p><p>Developers use different methods to limit opening of different instances of the same app. The most common is using mutex. Mutex prevents threads from accessing the same program if it’s already running.</p><p>Fortunately mutex is tied to the user account, you can’t open different instance of the same app as one user but you can open as a different instances of the same app as different users.</p><p><strong>NB:</strong> This method will not work for apps that don&#39;t use mutex to prevent multiple instances of the same app from running i.e.<em> Video games , </em>however most apps use mutex.</p><h4>Creating another user account</h4><p>In order to achieve separation, we need to create another user account. Don&#39;t worry we wont clog the login screen with the user account, at the end I will show you how to remove the user from the log in screen.</p><p>Open the <strong>settings</strong> app and navigate <strong>Accounts &gt; Family &amp; other users &gt; Add someone else to this PC</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dU9N4KqeKZlhF0dmTnyXwQ.png" /></figure><p>Add a new person lets say <strong><em>Sandbox </em></strong>and create their credentials.</p><p><strong>Sign out</strong> and <strong>login</strong> as the new created user to verify that the account is working. After verifying log back in to your primary account.</p><p><strong>Running the application as different user</strong></p><p>In order to run an application as different user search for the application then open file location</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*oi8HyETAFO9AoevUud3ZyQ.png" /></figure><p>Select the executable<strong> hold shift </strong>and <strong>right click </strong>and click on run as different user</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/343/1*Rm-oGjFSW-uMxkeIvXU0jA.png" /></figure><p>When a prompt appears , input the username and password of the user you created. The app should open in a new instance.</p><h4>Hiding user from log in screen</h4><p>To hide user from the login screen we need to edit the registry.</p><p>Hold <strong>Windows Key + R </strong>to open the run command tool. Type regedit to open the Windows registry editor.</p><p>Navigate to the following location on the Windows registry</p><p><strong><em>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon</em></strong></p><p>Navigate to the <strong>Winlogon </strong>right click on it select <strong>New</strong> click on <strong>key. </strong>Name the new key <strong>SpecialAccounts</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*stQGgte28SE9vR7WszDtXQ.png" /></figure><p>Create another key under <strong>SpecialAccounts </strong>name it <strong>UserList</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*22kEOPyQfKr4xx7C5mFD-A.png" /></figure><p>Create a <strong>DWORD (32) value </strong>under <strong>UserList </strong>name it the name of the user name you created. i.e. <em>sandbox </em>set the <strong>hexadecimal</strong> value to<strong> 0</strong>.</p><p><strong>NB:</strong> Be careful with this don&#39;t hide all your user accounts you wont be able to login.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*NbSGAwsDgUzFqFmJABHYPw.png" /></figure><p>When you want the user account to appear on the login screen again, set the <strong>hexadecimal value data</strong> to <strong>1.</strong></p><h3>Conclusion</h3><p>This method of isolation is beneficial in promoting privacy as it masks your account from unnecessary eyes. Its worth noting any saved files will be saved in the user profile, to share files between users place them in the public folder <em>C:\Users\Public</em>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62848ae75ff9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/chekiprice/running-different-instances-of-the-same-app-on-windows-62848ae75ff9">Running different instances of the same app on windows</a> was originally published in <a href="https://medium.com/chekiprice">chekiprice</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Convert your windows WSL2 into a usable operating system with GUI]]></title>
            <link>https://medium.com/chekiprice/convert-your-windows-wsl2-into-a-usable-operating-system-with-gui-ed4eacca6c70?source=rss----c78e5b9c5a29---4</link>
            <guid isPermaLink="false">https://medium.com/p/ed4eacca6c70</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[dual-boot]]></category>
            <category><![CDATA[chekiprice]]></category>
            <category><![CDATA[wsl-2]]></category>
            <category><![CDATA[windows-10]]></category>
            <dc:creator><![CDATA[Alexander]]></dc:creator>
            <pubDate>Mon, 26 Jul 2021 12:57:48 GMT</pubDate>
            <atom:updated>2022-06-14T08:44:23.349Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*gpFEJHvV5CdmE2LXBF__DQ.png" /></figure><p>The Windows Subsystem for Linux (WSL) was announced at <strong>//Build 2016</strong> in April 2016. It enables users to run a GNU/Linux environment including most command-line tools, utilities, and applications directly on Windows. This eliminates the need to dual boot your PC/laptop just to gain small Linux functional needs. <br>It is ideal for scholars who are trying to learn Linux functionalities, commands and other Linux OS based features. Installing Linux on windows can now be done easily by installing Linux like an app thanks to WSL, no more dual booting.<br>Dual booting is fun, don&#39;t get me wrong. Its just that it’s not a straight forward task especially if your a beginner…sure once you get the hang of it, its easy-peasy but sometimes you just want to get things running fast…not fight <strong>grub rescue.</strong></p><p>So WSL is all wonderful, a life and time saver. It&#39;s like a small heaven on earth. However our heaven has its shortcomings. WSL only gives you Linux terminal access. It doesn’t offer any graphical user interface whatsoever which begs the question: What&#39;s the fun in that ?</p><blockquote>I personally started researching about the topic because I had used VM’s before they worked fine however I wanted to go fully native...you know like a pro😎.</blockquote><blockquote>WSL takes lesser resources compared to VM’s its not perfect but it gets the job done.</blockquote><p>For this guide you will require WSL installed. Here is a nice tutorial on how to <a href="https://www.windowscentral.com/install-windows-subsystem-linux-windows-10">install WSL on windows 10</a>., if you don&#39;t have it installed already. We can’t test all available Linux WSL distros available so for this guide I will be using Ubuntu as my distribution of choice.</p><blockquote>I’ll cover 2 parts:<br><strong>Part 1: Windows 11 GUI with WSLg</strong><br><strong>Part 2: Windows 10 GUI with WSL and VNC Server</strong></blockquote><h3>Part 1: Windows 11 GUI with WSLg</h3><p>If your using windows 11, WSL now comes packed with WSLg (<em>Windows Subsystem for Linux GUI</em>). WSLg enables Linux GUI apps installed on WSL to be accessible on windows as native apps. They are not that native yet, WSLg utilizes RDP technology to remote access the Linux GUI app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zGnEE6jHKXtyi0M33CrWlw.png" /></figure><h4>Installing WSL on windows 11</h4><p>In order for WSL to work on windows 11 two <strong><em>windows features</em></strong> have to be enabled.</p><ul><li>Windows Subsystem for Linux</li><li>Virtual Machine Platform</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/1*aHuc4vMXXqAMwHw8ZT10Rg.png" /><figcaption>Program features to be enabled for wsl to work</figcaption></figure><p>After enabling the two features and rebooting the PC. Your now ready to use WSL.</p><h4>Update WSL</h4><pre>wsl --update</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*vwj7z_nQ8zwbz1WjD0IUMw.png" /><figcaption>wsl update</figcaption></figure><h4>Install Ubuntu distribution on windows 11 WSL</h4><h4>Method 1</h4><p>Installing ubuntu wsl distro on windows 11 using CMD.</p><pre>wsl --install -d Ubuntu</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*G2ToKRm0r5gTReSg7hP-2A.png" /></figure><h4>Method 2</h4><p>If the terminal method of installing is too confusing for you, you can install the WSL ubuntu distro from the Microsoft Store, just ensure the program features we talked about are enabled.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j8J3vibsS_Tnu0ib1Vf37Q.png" /><figcaption>wsl on microsoft store</figcaption></figure><h4>Installing Chrome on Windows 11 WSL</h4><p>Once the installation is done you can launch ubuntu wsl by typing ubuntu on the CMD or through GUI when you search for ubuntu on windows search.</p><p>Run the following on your WSL ubuntu distro to install chrome browser.</p><pre>## Update list of available packages<br>sudo apt update</pre><pre>## Google Chrome<br>cd /tmp<br>sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb<br>sudo dpkg -i google-chrome-stable_current_amd64.deb <br>sudo apt install --fix-broken -y<br>sudo dpkg -i google-chrome-stable_current_amd64.deb</pre><p>Once installation is done you can now access the Linux chrome installed on WSL when you search for it on windows search.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dVU-5rZvSqeZRTft8mQ9FQ.png" /><figcaption>Search chrome on wsl</figcaption></figure><p><strong>NB:</strong> If your pc does not have proper specs consider installing something light. Chrome is memory and processor intensive and may crash.</p><p>For more on WSLg follow the guide: <a href="https://github.com/microsoft/wslg">https://github.com/microsoft/wslg</a></p><h3><strong>Part 2: Windows 10 GUI with WSL and VNC Server</strong></h3><p>Unlike windows 11 windows 10 does not come pre-installed with WSLg for this reason we have to come up with a different solution for the problem.</p><h4>Configure VNC on Ubuntu</h4><p>We’ll start by configuring VNC on our ubuntu WSL.</p><p>Before anything update the package list:</p><pre>sudo apt update</pre><p>Install XFCE desktop environment on our ubuntu WSL</p><pre>sudo apt install xfce4 xfce4-goodies</pre><p>After the XFCE installation, install TightVNC.</p><pre>sudo apt install tightvncserver</pre><p>To finalize the installation we need to set the password for the vnc connection to do that run the below command on the WSL.</p><pre>vncserver</pre><p>You will be ask to input a password and verify the password.<br><strong>NB:</strong> The password must be between six and eight characters long. Passwords more than 8 characters will be truncated automatically.</p><p>Once your done you will be asked for an option to create a view only password. Choose no . A view only password gives limited access to the user using the password for instance with no keyboard or mouse access. Practical when you want to show someone a demonstration.</p><p>The process then creates default configurations and end gracefully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*wyVS9mjZTH-F4YLrIhxDNg.png" /></figure><p>Once that&#39;s all setup, we then need <strong>whenever</strong> we start or restart the VNC server to start our desktop environment if its not yet started.<br>To do that we need to edit ~/.vnc/xstartup</p><p>Run:</p><pre>echo &quot;startxfce4 &amp;&quot;&gt;&gt;~/.vnc/xstartup</pre><p>This will add startxfce4 &amp; at the end.</p><h4>Installing VNC Viewer and Remote connecting</h4><p>On the main host <em>(The windows PC)</em> we need to install VNC viewer to remote access the WSL2 linux.<br><a href="https://www.realvnc.com/en/connect/download/viewer/"> Download here</a></p><p><strong>Notice:</strong> In the screenshot above after starting VNC server your given a a name to connect to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/1*Prv8T-1-YAvCyUw2lZhZKg.png" /></figure><p>Its is mostly the computer name then a colon append by an number that gets incremented automatically i.e if :1 is in use it automatically creates :2 and so on. This removes the need for using an IP to connect instead we just use the name…let the PC worry about the IP stack.</p><p>We then create a connection using the VNC viewer to our WSL2 UbuntuOS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*iUWXhmRKzNGjFMKeOtauNQ.png" /></figure><p><strong>NB:</strong> You will be required to input the password you created. <br>You can change the picture quality to high instead of automatic in the option section.</p><h4>Start VNC using Script</h4><p>On a regular Ubuntu PC we would use systemd to start, stop, and restart VNC as needed, like any other service.<br>However WSL2 works like a docker containers. It is impossible to setup systemd since it’s not yet supported.<br><strong>NB :</strong> It is possible to make systemd work using <a href="https://github.com/arkane-systems/genie">systemd-genie</a> for simplicity sake we’ll just use a script.</p><h4><strong>Why we need the script ?</strong></h4><p>Well we want our VNC server to automatically start at :1 every time we start the VNC server . <br>If the service is already running we want it to kill the current :1 servece running and start a new :1. This is helpfully so that our VNC viewer always connects at :1 .</p><p>Run :</p><pre>nano ~/vncstart.sh</pre><p>Add the following:</p><pre>#!/bin/bash<br>vncserver -kill :1 &gt; /dev/null 2&gt;&amp;1<br>rm -f /tmp/.X1-lock<br>rm -f /tmp/.X11-unix/X1<br>vncserver :1 -geometry 1366x768</pre><p>Give the file execution rights.</p><pre>chmod u+x ~/vncstart.sh</pre><p><strong>NB:</strong> If you were in another directory navigate to the home directory cd ~</p><p>Run:</p><pre>./vncstart.sh</pre><p><strong>Notice:</strong> If you run the script several times it will always starts at the vnc server at :1 .</p><p>To start the VNC server always use the script.</p><h3>Conclusion</h3><p>With the GUI on your Linux you can install and use any Linux software of your choice without dual booting.</p><p>Its is not recommended to edit Linux files directly from windows. however with the GUI you can install a code editor of your choice to make changes to a files as you wish.</p><h4>Below is a sample of my installation:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y-YlTrKvKPZ_wR-xQev9uQ.png" /><figcaption>sample screenshot</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed4eacca6c70" width="1" height="1" alt=""><hr><p><a href="https://medium.com/chekiprice/convert-your-windows-wsl2-into-a-usable-operating-system-with-gui-ed4eacca6c70">Convert your windows WSL2 into a usable operating system with GUI</a> was originally published in <a href="https://medium.com/chekiprice">chekiprice</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blocking bad bots and restricting users based on geographical location on GCP+Firebase using NGINX]]></title>
            <link>https://medium.com/chekiprice/blocking-bad-bots-and-restricting-users-based-on-geographical-location-on-gcp-firebase-using-nginx-ddf5320e4972?source=rss----c78e5b9c5a29---4</link>
            <guid isPermaLink="false">https://medium.com/p/ddf5320e4972</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[chekiprice]]></category>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[gcp]]></category>
            <dc:creator><![CDATA[Alexander]]></dc:creator>
            <pubDate>Sun, 16 May 2021 13:18:16 GMT</pubDate>
            <atom:updated>2021-05-18T12:02:22.491Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*WmVSCDCb99qC4l_rypVTzg.png" /><figcaption>Photo from cloudiqtech</figcaption></figure><p>As a web admin, the internet is very funny place you get to see all kind of traffic. From Russian bots trying to execute <strong>wp-admin</strong> page to China bots trying to find JavaScript vulnerabilities.</p><p>Luckily GCP logs all kinds of traffic and your can analyses your site traffic at a letter time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*VlAvZiuLGPNInsb8qNBObw.png" /><figcaption>Sample of a Russian bot trying to access<strong> wp-admin</strong></figcaption></figure><p>The site is not WordPress based and the hacker got away with <strong>404 error</strong> however this is unnecessary traffic from hacker bots.</p><p>Its natural to want to protect your website from unwanted traffic, especially to users in a geographical location where the site doesn&#39;t really offer any meaningful value.</p><p>You would think well since Firebase is your hosting provider they would provide you with some sort of user panel or some way to secure your site from bad bots or geographical restriction. Unfortunately Firebase just offers you basic DDOS protection. I find Cloudflare having more user friendly features to protect websites from attacks than Firebase which doesn’t have a security panel at all.</p><p>You might ask how about we use Firebase with Cloudflare. That’s a big NO. If you try that your website will suffers huge latency problems. As engineers its not in our place to whine about problems but finding solutions. The solution is relying on nginx to block bad bots and performing geographical restrictions. Its not all that straightforward so pay attention.</p><blockquote>Assumption: Your running your infrastructure on GCP cloud run + Firebase however most methods should work on other cloud providers.</blockquote><h3>Blocking Bad Bots based on user agents NGINX</h3><p>This is the simplest layer of protection in nginx. It prevents bots from overwhelming your server after you detect them.</p><h4>Blocking user agents containing certain words in user agent.</h4><p><strong>Edit nginx’s : </strong><em>/etc/nginx/conf.d/default.conf</em></p><pre>server {<br>....</pre><pre>if ($http_user_agent ~* (wget|curl)) {<br>    return 403;<br>}<br>...<br>}</pre><p>This blocks any user agent containing the words <em>wget</em> or <em>curl</em> so you should be careful with this. Its also case insensitive, if you want case sensitivity remove the asterisk (*).</p><p>Lets say<strong> SEMrush</strong> is overwhelming your server with request. <br><strong>Its list of user agents look as follows</strong>:</p><ul><li>Mozilla/5.0 (compatible; SemrushBot-SA/0.97; +<a href="http://www.semrush.com/bot.html">http://www.semrush.com/bot.html</a>)</li><li>Mozilla/5.0 (compatible; SemrushBot/3~bl; +<a href="http://www.semrush.com/bot.html">http://www.semrush.com/bot.html</a>)</li><li>Mozilla/5.0 (compatible; SemrushBot-BA; +<a href="http://www.semrush.com/bot.html">http://www.semrush.com/bot.html</a>)</li></ul><p>Adding SemrushBot in your block list would block all these bots returning 403 error to the bots.</p><pre>server {<br>....</pre><pre>if ($http_user_agent ~* (wget|curl|SemrushBot)) {<br>    return 403;<br>}<br>...<br>}. </pre><p>If you have a long list to block you can use the nginx map directive to block bots. This is a lot cleaner and saves your from going insane when you look at your own configurations.</p><pre>map $http_user_agent $badagent {<br>        default         0;<br>        ~*SemrushBot    1;<br>        ~*wget          1;<br>        ~curl           1; # case sensitive<br>}</pre><pre>server {<br>......</pre><pre>if ($badagent) {<br>        return 403;<br>    }<br>......</pre><pre>}</pre><h4>Blocking exact User Agents</h4><p>Consider a bot that uses a user agent such us <em>Mozilla/5.0</em> . This user agent contains common phrases found on legitimate browser. Blocking Mozilla would deny legitimate users from using your site. This is where blocking exact user agents is necessary. To block exact user agents we use the equals sign.</p><pre>server {<br>....</pre><pre>if ($http_user_agent = &quot;Mozilla/5.0&quot;){<br>    return 403;<br>}<br>...<br>}</pre><h3>Restricting Users Based on Geographical Location NGINX</h3><h4>Installing NGINX GEOIP module</h4><p>The GEOIP module can be used for many things such as selecting the nearest server for clients for faster responses. However in our case we just want to use it to block users based on their geographical location. For more i recommend reading the nginx documentation: <br> <a href="https://docs.nginx.com/nginx/admin-guide/security-controls/controlling-access-by-geoip/">https://docs.nginx.com/nginx/admin-guide/security-controls/controlling-access-by-geoip/</a></p><p>For the sake of simplicity lets assume our cloud container is of Debian distribution specifically Ubuntu. <br>For more on installing GEOIP on different distribution check the nginx documentation <a href="https://docs.nginx.com/nginx/admin-guide/security-controls/controlling-access-by-geoip/">here</a>.</p><h4>Installing GEOIP on Debian/Ubuntu</h4><p>We first install the necessary dependencies.</p><pre>apt-get install geoip-database libgeoip1</pre><h4>Loading the GEOIP module</h4><p><strong>Edit:</strong> <em>/etc/nginx/nginx.conf</em></p><p>This is just loads the necessary module.</p><pre>load_module &quot;modules/ngx_http_geoip_module.so&quot;</pre><h4>Blocking users Geographically</h4><p><strong>Edit:</strong> <em>/etc/nginx/conf.d/default.conf</em></p><pre>geoip_country /usr/share/GeoIP/GeoIP.dat; # Load IP database<br>map $geoip_country_code $allowed_country { <br>    default yes;<br>     RU no; # block Russia<br>     CN no; # block china<br>}<br>server {</pre><pre>.....</pre><pre>}</pre><p>As far as nginx is concerned that&#39;s all the setting required to block users based on geographical location. If nginx was not behind anything this would work perfectly. If your nginx is not behind a load balancer this is where you stop.</p><h4>Make GEOIP work behind load balancer / Get client’s real IP</h4><p>The problem at hand when nginx is behind a load balancer is that the real IP of the client does not get to nginx. If you analyze the nginx logs you’ll find out the IP logged belongs to the cloud platform.</p><p><strong>Getting Client IP on Google Cloud LB</strong></p><p>In order to get clients IP behind a load balancer we do the following configurations.</p><p><strong>Edit:</strong> <em>/etc/nginx/conf.d/default.conf</em></p><pre>real_ip_header X-Forwarded-For;<br>set_real_ip_from 0.0.0.0/0;  <br>real_ip_recursive on;</pre><pre>geoip_country /usr/share/GeoIP/GeoIP.dat;<br>map $geoip_country_code $allowed_country { <br>    default yes;<br>     RU no; # block Russia<br>     CN no; # block china<br>}</pre><pre>server {<br>.....<br>}<br></pre><p>And that is it your geographical location restriction should be up and running. You can check the countries codes list here: <a href="https://dev.maxmind.com/geoip/legacy/codes/iso3166/">https://dev.maxmind.com/geoip/legacy/codes/iso3166/</a><br>This should also work on all other cloud platforms including AWS i haven’t tried Azure.</p><h3>Conclusion</h3><p>Security is not easy and you can never be 100% full proof however you can take measures. These measures can be helpful in reducing your cloud billing costs and further more protect you from hacks.</p><figure><a href="https://www.buymeacoffee.com/alexandernjogu"><img alt="" src="https://cdn-images-1.medium.com/max/170/1*WfbwTpxi0c0k2Vwzp3s5yg.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddf5320e4972" width="1" height="1" alt=""><hr><p><a href="https://medium.com/chekiprice/blocking-bad-bots-and-restricting-users-based-on-geographical-location-on-gcp-firebase-using-nginx-ddf5320e4972">Blocking bad bots and restricting users based on geographical location on GCP+Firebase using NGINX</a> was originally published in <a href="https://medium.com/chekiprice">chekiprice</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Caching routes in vuejs using keep-alive | Advanced Guide]]></title>
            <link>https://medium.com/chekiprice/caching-routes-in-vuejs-using-keep-alive-advanced-guide-e399839f2673?source=rss----c78e5b9c5a29---4</link>
            <guid isPermaLink="false">https://medium.com/p/e399839f2673</guid>
            <category><![CDATA[caching]]></category>
            <category><![CDATA[chekiprice]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[vue]]></category>
            <dc:creator><![CDATA[Alexander]]></dc:creator>
            <pubDate>Thu, 28 Jan 2021 09:28:45 GMT</pubDate>
            <atom:updated>2022-07-15T06:41:21.219Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="An image showing communication between different API’s" src="https://cdn-images-1.medium.com/max/925/1*CyuZGr66KKnuMcQI77hUYA.jpeg" /><figcaption>Photo from cloudiqtech</figcaption></figure><h3><strong>Introduction</strong></h3><p>Caching is the technique of storing resources and serving them back when requested. When a similar request is made for the second time, cached resources are served instead of fetching resources from server. Cached data are snapshots of the requested resource that expires after a given time. The advantage of caching is that it liberates the server from preforming unnecessary tasks while improving response time.</p><p>There are several types of caches these are grouped into two main categories. private or shared caches.</p><ul><li><strong>Shared cache:</strong> The cache is stored for reuse by more than one user.</li><li>P<strong>rivate cache: </strong>The cache is<strong> </strong>dedicated to a single user.</li></ul><h3>Real world examples and caching benefits</h3><p>Lets say for example you visit <a href="https://www.chekiprice.com/">chekiprice.com</a> search for “mini pc”. The request is processed by our servers through crawling a couple of stores on the internet. The API then responds back with a bunch of mini pc in Kenya <em>(data includes their prices and stores URLs) </em>but before responding the API does caching for the expensive operation. When the next user located somewhere else makes the same request to the API for <em>“mini pc”</em>. The server responds immediately from cached data and does not crawl stores on the internet. This is what we call shared cache, the cache is shared amongst users. Of courses the cache expires after some time.</p><p>This is good but not enough to make user web experience seamless. <br>Now imagine after getting the response from the API the data is rendered to the browser. The user is unsatisfied with the results, edits his/her search to search for <em>“intel mini pc”. </em>The user then decides to go back. <br>The browser recreates the components all over again and make the API call all over again. However this is an unnecessary request and unnecessary recreating of the components since the data is unchanged. Its always a good idea to minimise the amount of API calls. Not only does minimising API calls save time but also server resources.</p><p>This inefficiency leads to the need for browser caching. This type of caching would immensely reduce API fetch times and components rendering for already rendered components. The cache is privately held and not shared amongst users. This technique of caching is a form of private cache.</p><h3>API caching</h3><p>Depending on what language your API written in you can attempt to do the caching by yourself or check if there is an existing plugin for caching. If your option is creating the API by yourself I would recommend using <a href="https://redis.io/">REDIS </a>for caching. However if your using flask there is a great plugin known as <a href="https://flask-caching.readthedocs.io/en/latest/">Flask-Caching</a> for caching requests. It’s very easy to get started.</p><h4>Simple flask caching with flask-caching</h4><h4>Installation</h4><pre>pip install Flask-Caching</pre><h4>sample code</h4><pre>from flask import Flask<br>from flask_caching import Cache</pre><pre>config = {<br>    &quot;DEBUG&quot;: True,          # some Flask specific configs<br>    &quot;CACHE_TYPE&quot;: &quot;simple&quot;, # Flask-Caching related configs<br>    &quot;CACHE_DEFAULT_TIMEOUT&quot;: 300<br>}<br>app = Flask(__name__)<br># tell Flask to use the above defined config<br>app.config.from_mapping(config)<br>cache = Cache(app)</pre><pre><a href="http://twitter.com/app">@app</a>.route(&quot;/&quot;)<br><a href="http://twitter.com/cache">@cache</a>.cached(timeout=10) #cache for 10 seconds<br>def index():<br>   random_number = randint(1,100) #generate random number<br>   return f&#39;Random number: {random_number}&#39;</pre><pre>#run app<br>if __name__ == &#39;__main__&#39;:<br> app.run()</pre><p><strong>Expected behavior:</strong> <em>The random number is cached for 10 seconds. When you reload the page before 10 seconds elapse data is fetched from the cache. The random number generator doesn&#39;t get executed until 10 seconds are up. In real word this could be an expensive operation.</em></p><h3>VUEJS CACHING</h3><h4>keep-alive</h4><p>The keep-alive tag in Vuejs is used for caching component instances once created. This is to avoid re-rendering the component every time. Depending on your use case keep alive can be an advantage or a disadvantage.</p><h4>Disadvantages of keep alive</h4><ul><li>The use of keep-alive means you lose access lifecycle hooks i.e created, mounted.</li><li>If rely on building and destroying components you should probably keep away.</li></ul><h4>Advantage of keep-alive</h4><ul><li>Quicker user switching between pages</li><li>Components make API call only once</li><li>Enable ease in storing the scroll position</li><li>Useful for caching form data.</li></ul><h4><strong>Keep-alive hooks</strong></h4><p>To observe switching between cache keep-alive has two unique lifecycle hooks.</p><ul><li><strong>activated : </strong>Called when a kept alive component is activated.</li><li><strong>deactivated: </strong>Called when, you guessed it, a kept alive component is deactivated.</li></ul><p><strong><em>How the keep-alive hooks look like in action:</em></strong></p><pre>mounted() {<br>    console.log(&#39;Called when have mount&#39;)<br>},<br>activated () {<br>    console.log(&#39;Called when have activated&#39;)<br>},<br>deactivated () {<br>    console.log(&#39;Called when have deactivated&#39;)<br>}</pre><h3>Caching Vuejs routes and keeping scroll position.</h3><p>In order to cache routes we enclose <em>&lt;router-view&gt;&lt;/router-view&gt; </em>with<em> keep-alive</em>. We’ll use <em>vue-keep-scroll-position </em>package to assist in remembering the scroll position.</p><h4>Install vue-keep-scroll-position</h4><pre>npm i -S vue-keep-scroll-position</pre><h4>Add package to Main.js</h4><pre>import Vue from &#39;vue&#39;<br>import VueKeepScrollPosition from &#39;vue-keep-scroll-position&#39;<br>Vue.use(VueKeepScrollPosition)</pre><h4>Add code for caching routes in App.vue</h4><blockquote><strong>Assumption: </strong>Your using vue router</blockquote><pre>&lt;keep-alive&gt;<br>  &lt;router-view v-keep-scroll-position&gt;&lt;/router-view&gt;<br>&lt;/keep-alive&gt;</pre><p>And just like that you have implement remembering scroll position and caching on your Vue application.</p><h3>(Advanced) Caching Vuejs routes and Remember scroll position without a third party package.</h3><p>You don&#39;t need a third party package for vue to recall scroll position. In order to cache routes we just enclose the <em>router- view</em> with <em>keep-alive,</em> this time we dont add <em>v-keep-scroll-position</em> prop.</p><pre>&lt;keep-alive&gt;<br>  &lt;router-view&gt;&lt;/router-view&gt;<br>&lt;/keep-alive&gt;</pre><h4>Remember Vuejs scroll position without third party package.</h4><p>In order to remember scroll position add the following code in main.js after defining router.</p><pre>const router = new VueRouter({<br>  mode: &#39;history&#39;,<br>  routes<br>}) //defining router<br><br>const scrollableElementId = &#39;content&#39; // You should change this<br>const scrollPositions = Object.create(null)<br><br>router.beforeEach((to, from, next) =&gt; {<br>  let element = document.getElementById(scrollableElementId)<br>  if (element !== null) {<br>    scrollPositions[from.name] = element.scrollTop<br>  }<br><br>  next()<br>})<br><br>window.addEventListener(&#39;popstate&#39;, () =&gt; {<br>  let currentRouteName = router.history.current.name<br><br>  let element = document.getElementById(scrollableElementId)<br>  if (element !== null &amp;&amp; currentRouteName in scrollPositions) {<br>    setTimeout(() =&gt; element.scrollTop = scrollPositions[currentRouteName], 50)<br>  }<br>})</pre><p>And that&#39;s it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e399839f2673" width="1" height="1" alt=""><hr><p><a href="https://medium.com/chekiprice/caching-routes-in-vuejs-using-keep-alive-advanced-guide-e399839f2673">Caching routes in vuejs using keep-alive | Advanced Guide</a> was originally published in <a href="https://medium.com/chekiprice">chekiprice</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google cloud computing Africa | Chekiprice take’s advantage of cloud computing.]]></title>
            <link>https://medium.com/chekiprice/google-cloud-computing-africa-chekiprice-takes-advantage-of-cloud-computing-543700047a7a?source=rss----c78e5b9c5a29---4</link>
            <guid isPermaLink="false">https://medium.com/p/543700047a7a</guid>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[chekiprice]]></category>
            <category><![CDATA[africa]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[cloud-computing-africa]]></category>
            <dc:creator><![CDATA[Alexander]]></dc:creator>
            <pubDate>Mon, 09 Nov 2020 13:08:39 GMT</pubDate>
            <atom:updated>2020-11-12T13:18:51.480Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="google cloud (gcp)" src="https://cdn-images-1.medium.com/max/700/1*A5ozimSm9cWQWjOvEFL5pg.jpeg" /><figcaption>google cloud computing</figcaption></figure><p>Cloud computing has been the buzz word in the world of tech. It appears 48 million times on the internet. Surprisingly not so many start-ups in Africa take advantage of cloud computing.</p><p>Unlike a decade ago cloud computing has gotten more affordable. The emerging of big tech companies such as Amazon AWS,IBM cloud and Google’s GCP offering cloud computing services has created a stiff competition in the industry. This is obviously advantageous to the consumers, there is no monopoly in the cloud computing industry hence leniency in pricing.</p><h3>My Journey</h3><p>As I began <a href="https://www.chekiprice.co.ke/">Chekiprice</a> a price comparison site for Kenyan stores<em> </em><a href="https://www.chekiprice.co.ke/"><em>visit here</em></a> . I began with shared hosting. However my site suffered heavily on loading speeds and not to mention the constant outages of the server. The site also experienced more slower speeds during the day than at night. <br>In order to integrate auto deployment on <a href="https://www.chekiprice.co.ke/">chekiprice</a> I had to program an API to manage releases cycles which seemed more like a hack to me. Don’t get me wrong its not like it didn’t work it worked perfectly but it took an extra sub domain.</p><h3>Heroku to the rescue.</h3><p>Surely there must have been a better way I thought to myself . After a little research I stumbled upon Heroku. A lot of hype exists on the internet about Heroku. In as much as Heroku is good for beginners, for testing apps and offer better auto deployments. They are pricier. Their free plan is based on the 500 free dynos they give you every month. The web app sleeps after 30 mins of inactivity to prevent it from spending more dynos. If one add his/her credit card one get’s awarded an extra 500 dynos every month on top of the 500 dynos you get every month. Their paid plan starts from $7 per month (hobby plan)no negotiations. Their next plan is the production plan which charges $25 per month. The rest of the plans are just ridiculously expensive.<br> For a start-ups who your not sure if your project would catch up bleeding $7 per month is expensive.</p><h3>The true saviour [GCP]</h3><p>Google cloud lets you host you app for less than a half a dollar, that&#39;s approximately 50 Kenyan shillings per month.</p><p>For 0.5 dollars run your web app amongst the same resources that run’s YouTube and other google services. That’s what I call a sweet deal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*z5fy6V9qUhFxf2EdULvN_g.gif" /></figure><p>At first I was sceptical about google pricing plans. When I got into it that&#39;s when I realised how I was getting over charged on Heroku. Not to bash on Heroku, Heroku is amazing. GCP is just cheaper. That&#39;s just my opinion.</p><h3>Conclusion</h3><p>The difference comes in the organisational architecture of the two cloud services. Heroku works as a software as a service platform(SAAS) where as GCP operates as infrastructure as a service(IAAS). Heroku runs on top of AWS which is GCP competitor. You can’t blame Heroku for pricing things, users indirectly double pay. What Heroku offers though is easier deployment of code which in itself is amazing. On Heroku you don&#39;t need a credit card to get started which is great for beginners.</p><p><a href="https://www.chekiprice.co.ke/"><em>visit chekiprice here</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=543700047a7a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/chekiprice/google-cloud-computing-africa-chekiprice-takes-advantage-of-cloud-computing-543700047a7a">Google cloud computing Africa | Chekiprice take’s advantage of cloud computing.</a> was originally published in <a href="https://medium.com/chekiprice">chekiprice</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simplify your online shopping in Kenya.]]></title>
            <link>https://medium.com/chekiprice/simplify-your-online-shopping-in-kenya-c18b360670ed?source=rss----c78e5b9c5a29---4</link>
            <guid isPermaLink="false">https://medium.com/p/c18b360670ed</guid>
            <category><![CDATA[online-shopping]]></category>
            <category><![CDATA[compare-prices-online]]></category>
            <category><![CDATA[kenya]]></category>
            <category><![CDATA[compare-price-kenya]]></category>
            <category><![CDATA[chekiprice]]></category>
            <dc:creator><![CDATA[Alexander]]></dc:creator>
            <pubDate>Mon, 27 Jul 2020 12:49:58 GMT</pubDate>
            <atom:updated>2022-06-17T06:29:31.508Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="chekiprice compare prices in kenya" src="https://cdn-images-1.medium.com/max/1024/1*igyRchDQQHHP318jiGlgbw.png" /></figure><p>Finding an item or product online can be a nightmare Kenya. Well of course you can just google the product name. However you only get results for the whole world and only a couple of Kenyan stores prioritized. These online stores include the likes of Jumia, kilimall and a few other well established shops.</p><p>There are over hundreds of online stores in Kenya. All selling different products. Having an online store seems to be the new trend in Kenya and every well established store in Kenya is trying to get a piece of the pie. They are not wrong online shopping has its fair advantages. People are getting busy by the day and the ability to shop at your comfort seems ideal.</p><p>Let me not bore you with gory details of the advantages online shopping. You already know a couple by heart even without I mentioning them. The topic today is not about online shopping but how can you simplify your search on online store?, how can you be efficient?, how can you save your time?. Well that’s where <a href="https://www.chekiprice.com/en-ke"><strong>chekiprice</strong></a> comes to your aid. As bill gate quotes</p><blockquote>“The first rule of any technology used in a business is that automation applied to an efficient operation will magnify the efficiency. The second is that automation applied to an inefficient operation will magnify the inefficiency.”</blockquote><h4>So what the hell is chekiprice?</h4><p>Well <a href="https://www.chekiprice.com/">chekiprice</a> is a free tool for getting and comparing prices in Kenya, you don’t need to pay a coin to use it. Its free of charge and its going to be that way.</p><h4>How does chekiprice make money?</h4><p>Chekiprice makes money through google advertisement’s. If you don&#39;t like ads of course you can get yourself an ad blocker.</p><h4><strong>How does it work?</strong></h4><p>Chekiprice is as simple as it can be. From the landing page, you can search from all product categories of your dreams. If your not satisfied with the categories you can either search from all stores or customise from hand picked stores.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*C5ZWndJy96KVnlZOWHdoxQ.jpeg" /></figure><p>Chekiprice performs the search on your behalf, from the couple of shops in the shop category you selected and with the help of AI it’s able to sort products according to the relevance of your search.</p><p><em>You must be wondering if it searches from different stores at once isn’t it slow ?</em></p><p>If your a technical guy must have heard of asynchronous code. Chekiprice runs its code asynchronously meaning your waiting time is equal to the slowest website. All sites included in chekiprice are carefully picked to ensure they don’t slow down your search a slow site is only considered when it offers value.</p><h3>Conclusion</h3><p>Its my believe that chekiprice will greatly improve your efficiency in finding products in Kenya, save your time and more importantly no more visiting individual online stores to compare prices. Let automation do it for you. Feel free to visit<a href="https://www.chekiprice.com/en-ke"> chekiprice here</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c18b360670ed" width="1" height="1" alt=""><hr><p><a href="https://medium.com/chekiprice/simplify-your-online-shopping-in-kenya-c18b360670ed">Simplify your online shopping in Kenya.</a> was originally published in <a href="https://medium.com/chekiprice">chekiprice</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>