<?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 Rajan Verma on Medium]]></title>
        <description><![CDATA[Stories by Rajan Verma on Medium]]></description>
        <link>https://medium.com/@aarvy?source=rss-89034beaf8d0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*U6XtT5YoR4ZfS6PfWZBcsw.jpeg</url>
            <title>Stories by Rajan Verma on Medium</title>
            <link>https://medium.com/@aarvy?source=rss-89034beaf8d0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 23:08:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aarvy/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[Stop searching for marketing growth hacks on Google]]></title>
            <link>https://aarvy.medium.com/stop-searching-for-marketing-growth-hacks-on-google-9aafab07610d?source=rss-89034beaf8d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/9aafab07610d</guid>
            <category><![CDATA[growth-marketing]]></category>
            <category><![CDATA[traffic-optimization]]></category>
            <category><![CDATA[growth-strategy]]></category>
            <category><![CDATA[marketing-strategies]]></category>
            <category><![CDATA[growth-hacking]]></category>
            <dc:creator><![CDATA[Rajan Verma]]></dc:creator>
            <pubDate>Tue, 05 Jan 2021 17:02:18 GMT</pubDate>
            <atom:updated>2021-01-05T17:02:18.841Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zNz3W_euK_0xUutrgBfFeg.png" /></figure><p>There are too many blog articles on growth strategies but the actual and meaningful marketing growth strategies are in comments of various discussion forums and chat groups. Because those are <strong>someone’s personal experience and advice</strong> and hence already validated.</p><p>I have read and implemented hundreds of strategies from blog articles in the past 2 years to grow my software’s reach. But nothing matched the quality advice I got on QnA forums. So I started collecting every piece of advice I’ve got on ProductHunt, Growthhackers, Indiehackers, Reddit, etc. and made a <a href="https://indiehacks.site/">portal</a> for the same</p><figure><img alt="Comment Advises from reddit, producthunt, indiehackers, growthhackers, private groups etc" src="https://cdn-images-1.medium.com/max/1000/1*Mtdw_wzdKZB0kiFar3xVrA.png" /><figcaption>Comment Advises from reddit, producthunt, indiehackers, growthhackers, private groups etc</figcaption></figure><p>I thought this might help many people who are struggling alone like me. That’s why I gave focus more on those strategies which can be implemented by single founders. It means most of these strategies are free to implement without hiring any marketing agency.</p><p>I have compiled 100+ actionable strategies (no long articles and repetitive stuff, just direct and to the point actions) and sold them to 120+ subscribers to date.</p><p>See the responses I got.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*Wlypx4FXFXk-PHXy1N6knA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*OX81htjgG5lAN5nNcBMTKQ.png" /></figure><p>I am adding and updating strategies every week to keep them aligned with market changes.</p><p>You can also mark and save your favorite strategies and create a plan.</p><p>Check all feature details about the portal here: <a href="https://indiehacks.site/offer">https://indiehacks.site</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9aafab07610d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[100+ Google’s websites to get unexplored resources]]></title>
            <link>https://aarvy.medium.com/100-googles-websites-to-get-unexplored-resources-94e6536714e9?source=rss-89034beaf8d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/94e6536714e9</guid>
            <category><![CDATA[website]]></category>
            <category><![CDATA[resources]]></category>
            <category><![CDATA[growth]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[learning]]></category>
            <dc:creator><![CDATA[Rajan Verma]]></dc:creator>
            <pubDate>Mon, 12 Oct 2020 07:13:29 GMT</pubDate>
            <atom:updated>2020-10-27T11:53:04.691Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*6hgx9U4mX1hOT3FRawEihw.jpeg" /></figure><p>I used to get amazed every time whenever I find a new subdomain under google.com because each and every subdomain has tons of different things to offer.</p><p>This hit me, and I decided to find out how many are there. So I started compiling and after a month of tracking, the list crossed 100 websites. These 100 websites have covered almost everything you need, doesn’t matter from which profession or community you belong.</p><p>You can be a student, businessman, entrepreneur, single parent, or anything. You will find something valuable.</p><p>I’ve grouped these 100+ google websites into 10 categories</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/204/1*EUuNsWzmMkVDNPIfUKTKBA.gif" /></figure><ol><li>Coding</li><li>Productivity</li><li>Personal</li><li>Business</li><li>Teaching</li><li>Study and Education</li><li>Opportunites</li><li>Research</li><li>Tools &amp; Apps</li><li>Explore</li></ol><p>You can download the whole list for just <strong>2$</strong>. Get it here <a href="https://gum.co/BLFac">https://gum.co/BLFac</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94e6536714e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to stop forgetting words while reading online — Aarvy]]></title>
            <link>https://aarvy.medium.com/how-to-stop-forgetting-words-while-reading-online-aarvy-4bf57de79624?source=rss-89034beaf8d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bf57de79624</guid>
            <category><![CDATA[online-reading]]></category>
            <category><![CDATA[english-language]]></category>
            <category><![CDATA[language]]></category>
            <category><![CDATA[vocabulary]]></category>
            <category><![CDATA[vocabulary-builder]]></category>
            <dc:creator><![CDATA[Rajan Verma]]></dc:creator>
            <pubDate>Sat, 05 Sep 2020 08:59:50 GMT</pubDate>
            <atom:updated>2020-09-05T17:57:56.961Z</atom:updated>
            <content:encoded><![CDATA[<h3>This is how I stopped forgetting English words and build memorization — Aarvy</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*YHyUPLvUxkwxFlfa" /></figure><p>Have you ever faced this? While reading an article you stumbled over a word that is new to you.</p><p>The first step you do is to google the meaning. Is it? So you now know the meaning but what happens if the same word occurs again after some days in any other article. I am sure you didn’t have that in mind and you need to google again.</p><p>Being a non-English, the same I used to google every time I saw a new English word while reading an article. Usually, I check the word and forget it afterward. I need to repeat the process every time even for the same word I checked a week ago.</p><p>Forgetting words are frustrating and eventually, you start blaming your memorization power.</p><p>This happens to everyone. So, it gave me a thought why not my browser tells me the definitions of those words and remembers it till I need it. So that I don’t have to search it every time. This leads me to create<strong> </strong><a href="https://dictozo.com/"><strong>Dictozo</strong></a> a chrome browser plugin that lets you save the words and their translations and shows them to me on their occurrence on any web page.</p><p>It saves a lot of time searching the same word again and again. You can have 2-way translations in 114 languages and keep them feeding into your mind and boost your memorization power.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/366/1*p1pGyh18yb60NQ_mM1io5Q.gif" /><figcaption>Magic Highlighting on Dictozo</figcaption></figure><p><strong>Check Here: </strong><a href="https://dictozo.com/"><strong>Dictozo — Stop forgetting words</strong></a></p><p>Catch me on twitter, lets talk — <a href="https://twitter.com/aarvy_me"><strong>Aarvy</strong></a></p><p><em>Originally published at </em><a href="https://aarvy.me/blog/2020/09/05/stop-forgetting-english-words/"><em>https://aarvy.me</em></a><em> on September 5, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bf57de79624" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Request Payload / Payload Body 2019 — Aarvy]]></title>
            <link>https://aarvy.medium.com/what-is-request-payload-payload-body-2019-aarvy-e72897cbde61?source=rss-89034beaf8d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/e72897cbde61</guid>
            <category><![CDATA[https]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[http-client]]></category>
            <category><![CDATA[payload]]></category>
            <category><![CDATA[http-request]]></category>
            <dc:creator><![CDATA[Rajan Verma]]></dc:creator>
            <pubDate>Fri, 11 Oct 2019 19:05:07 GMT</pubDate>
            <atom:updated>2019-10-12T04:14:00.324Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is Request Payload / Payload Body 2019 — Aarvy</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/0*dSi90m8Rc_jOPnVJ" /></figure><p>When data is sent over the Internet, each unit transmitted includes both<br> header information and the actual data being sent. The header identifies the source and destination of the packet, while the actual data is referred to as the <strong>payload</strong>. Because header information, or overhead data, is only used in the transmission process, it is stripped from the packet when it reaches its destination. Therefore, the body of the request (request payload) is the only data received by the destination system.</p><p>It can also defined as the “actual data” in a packet or file minus all headers attached for transport and minus all descriptive meta-data. In a network packet, headers are appended to the payload for transport and then discarded at their destination. In a key-length-value structure, the key and length are descriptive data about the value (the payload).</p><p>For example and detail checkout the article below <a href="https://aarvy.me/blog/2019/10/12/what-is-request-payload/">https://aarvy.me/blog/2019/10/12/what-is-request-payload/</a></p><p><em>Originally published at </em><a href="https://aarvy.me/blog/2019/10/12/what-is-request-payload/"><em>https://aarvy.me</em></a><em> on October 11, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e72897cbde61" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solving The GET and POST Dilemma | WHEN and WHY — 2019 — Aarvy]]></title>
            <link>https://aarvy.medium.com/solving-the-get-and-post-dilemma-when-and-why-2019-aarvy-126539ac77ad?source=rss-89034beaf8d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/126539ac77ad</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[post]]></category>
            <category><![CDATA[http-request]]></category>
            <category><![CDATA[get]]></category>
            <category><![CDATA[https]]></category>
            <dc:creator><![CDATA[Rajan Verma]]></dc:creator>
            <pubDate>Tue, 08 Oct 2019 19:52:30 GMT</pubDate>
            <atom:updated>2019-10-12T04:15:38.072Z</atom:updated>
            <content:encoded><![CDATA[<h3>Solving The GET and POST Dilemma | WHEN and WHY — 2019 — Aarvy</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/0*IvTMv5KlkgoliD1_" /></figure><p>Weather you should use GET or POST, the debate is endless. Each one has its own preference. So, what is the need of another article on it? Because, weather it’s POST or GET, you can achieve the same results from both. So, in this article I’ll put more emphasis on WHY use one over other, instead of WHERE to use one over other. I’ll keep this article in format interview discussion, so that things can be relatable.</p><h3>Interviewer:- What are GET and POST requests?</h3><p><strong>Candidate:</strong> GET is used for viewing something, without changing it. E.g. You will make a get request for retrieving a list of books.</p><p>POST is used for changing something. You will make a post request for creating a record for new book.</p><h3>Interviewer:- Any other differences?</h3><p><strong>Candidate:</strong> GET includes all the required data in the URL. And since the data is in URL, it has a certain limit, means you are restricted to put large objects in request parameters.</p><ul><li>since it is only used for retrieving the data, you should be able to request the same URL over and over without any harm.</li><li>get request is by default cached by browsers.</li><li>a history is maintained, any request you made remains in the browser history even after months.</li><li>being in URL, you can bookmark a particular request in browser</li><li>request parameters are visible to anyone.</li></ul><p>POST is for writing data, submits data to be processed (e.g. from an HTML form) to the identified resource. This may result in the creation of a new resource or the update of existing resource or both.</p><ul><li>with post you can use <a href="https://aarvy.me/blog/2019/10/12/what-is-request-payload/">payload</a>.</li><li>browsers understand post behavior and typically give you warnings before reload a page that the data will be resubmitted.</li><li>request parameters are hidden from the URL so its recommended for passing sensitive data.</li><li>request doesn’t cached by browsers,</li><li>no history maintained therefore leaving no trace and hence safe.</li></ul><h3>Interviewer: Fair enough. But parameters can also be seen in POST with a little bit of hack. Also, no one is stopping me to create a record with GET request. Its just a matter of what I have written on server side. So tell me, what makes my mind to use POST instead of GET?</h3><p><strong>Candidate:</strong> Ummmm, you are right. You can create records with GET also. But let me describe some limitations here.</p><ul><li>GET requests have encoding type application/x-www-form-urlencoded while POST has multipart/form-data or application/x-www-form-urlencoded. Which means POST is allowed to put binary data in request which is essential for file uploads. GET doesn’t offer this feature</li><li>Since the browsers understand the behavior between these two requests, they won’t bother sending multiple GET requests. Also you will receive necessary suggestions if you follow the standards i.e. POST request in this case. There are huge chances to miss those suggestions when using GET to create record and you will be ending with a mess in database if not proper server side validations provided.</li><li>In security point of view. A POST can be sniffed just as easily as a GET. that’s why POST doesn’t do anything much better except the case of screen watching.</li><li>These two basically have semantic meaning: GET is used to retrieve a resource and POST is used to modify it. The semantics are why you notice the implementation differences in your web browser — since POST allegedly modifies data, a browser should warn before resubmitting a POST request/command. The long you adhere to semantics, the less pain team members will face while maintaining the same code.</li></ul><p><strong>Interviewer: That’s pretty much to hear. Welcome onboard you are selected. </strong>🙂</p><p><em>Originally published at </em><a href="https://aarvy.me/blog/2019/10/09/solving-the-get-and-post-dilemma/"><em>https://aarvy.me</em></a><em> on October 8, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=126539ac77ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setup Ruby on Rails 6 App with MongoDB under 5 Minutes — Aarvy]]></title>
            <link>https://aarvy.medium.com/setup-ruby-on-rails-6-app-with-mongodb-under-5-minutes-aarvy-56a6a535139d?source=rss-89034beaf8d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/56a6a535139d</guid>
            <category><![CDATA[mongodb]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[rails-6]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Rajan Verma]]></dc:creator>
            <pubDate>Sun, 22 Sep 2019 10:41:50 GMT</pubDate>
            <atom:updated>2019-09-23T10:55:57.495Z</atom:updated>
            <content:encoded><![CDATA[<h3>Setup Ruby on Rails 6 App with MongoDB under 5 Minutes — Aarvy</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0K2WV1VnHGzH3k7v" /></figure><p>In this article, I will be discussing how to quickly setup a NoSQL database <em>MongoDB</em> with your brand new Rails 6 app. I am using <em>Ubuntu 14.04</em>, <em>Ruby 2.5.1</em> and <em>Rails 5.2</em> for this tutorial.</p><blockquote>MongoDB is an <a href="https://whatis.techtarget.com/definition/open-source">open source</a> database management system (DBMS) that uses a document-oriented database model which supports various forms of data.</blockquote><p>If you have not installed MongoDB on your system you first need to install it. Here are the steps for Ubuntu 18.04 LTS .</p><pre>$ wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -<br>$ echo &quot;deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse&quot; | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list</pre><pre>$ sudo apt-get update<br>$ sudo apt-get install -y mongodb-org</pre><p>After finishing the setup, start the MongoDB server. Here are some essential commands for that.</p><p>To interact with MongoDB usedollowing command, each has it own corresponding task as mentioned:</p><pre>$ sudo service mongod start</pre><pre>$ sudo service mongod stop</pre><pre>$ sudo service mongod restart</pre><h4>Setting Rails App</h4><p>Create a new rails application. Make sure that you add –skip-active-record.</p><pre>$ rails _6.0.0_ new mongodb_rails_demo --skip-active-record</pre><p>If you notice, The <em>database.yml</em> is not added automatically. Now we have to add two gems which will be a bridge for us between Rails and MongoDB.</p><p>Add the following gems to your <em>Gemfile</em>.</p><pre>gem &#39;mongoid&#39;<br>gem &#39;bson_ext&#39;</pre><p>Now do <em>bundle install</em>. Now we have to generate a configuration file for hooking mongod adapter with MongoDB. It will be similar to <em>database.yml</em> file. Run the following command in order to generate MongoDB configuration files.</p><pre>rails g mongoid:config</pre><p>It will create <em>mongoid.yml </em>under config directory, we need to update it based on our MongoDB configurations and create a database with <em>rake db:create</em>.</p><p>To add a model you can use scaffold.</p><pre>rails g scaffold post title:string detail:text</pre><p>This will generate all necessary files as we usually have in usual scaffolding. The major difference you will notice is that Mongoid has automatically added a module <em>include Mongoid::Document</em> in that model.</p><pre>class Post<br>  include Mongoid::Document<br>  field :title, type: String<br>  field :detail, type: String<br>end</pre><p>The long you stick with mongod, all of those basic Active Record methods and commands will work here too. Now you Rails 6 app is ready to use with MongoDB.</p><h4>Troubleshoot</h4><p><a href="https://docs.mongodb.com/mongoid/master/tutorials/mongoid-rails/#model-preloading">Model Preloading:</a> Mongoid needs to pre-load all models before every request in development mode in order to properly set up single collection inheritance. This can get slow that’s why if you are not using any inheritance it is recommended you turn this feature off.</p><pre>config.mongoid.preload_models = false</pre><p>Reference from documentation for setting up Rails 6 App with MongoDB: visit <a href="https://docs.mongodb.com/mongoid/master/tutorials/mongoid-rails/">this page</a>.</p><p><em>Originally published at </em><a href="https://blog.aarvy.me/2019/09/22/setup-ruby-on-rails-6-app-with-mongodb-under-5-minutes/"><em>blog.aarvy.me</em></a><em> on September 22, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56a6a535139d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting up brand new Rails 6 app]]></title>
            <link>https://aarvy.medium.com/setting-up-brand-new-rails-6-app-ccb385440a01?source=rss-89034beaf8d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/ccb385440a01</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[webpack]]></category>
            <category><![CDATA[yarn]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <dc:creator><![CDATA[Rajan Verma]]></dc:creator>
            <pubDate>Sat, 21 Sep 2019 04:03:12 GMT</pubDate>
            <atom:updated>2019-09-21T04:06:38.222Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Alzj-AsyN_X6RxLYv7tzpg.jpeg" /></figure><p>So with it’s latest update of version 6 in August, 2019. We can now enjoy the flawless modern JavaScript Tools in Rails.</p><p>Lets see how to setup a brand new app. First you need to install that specific version.</p><blockquote>gem install rails -v 6.0.0</blockquote><p>Confirm it by running</p><blockquote>gem list rails</blockquote><p>You should see something like rails (6.0.0) or rails (6.0.0, 5.2.3, 5.2.2) if you have multiple versions installed.</p><p>Now create your new app by running</p><blockquote>rails _6.0.0_ new appname -d postgresql</blockquote><p>with database of your choice.</p><p>To add any JS library, simply run, yarn add library_name</p><blockquote>yarn add jquery</blockquote><p>and require the file in your app/javascripts/packs/application.js.</p><p>Hope this helps.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ccb385440a01" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Expose local apps having subdomains to the internet in 2019 — Aarvy Blog]]></title>
            <link>https://aarvy.medium.com/expose-local-apps-having-subdomains-to-the-internet-in-2019-aarvy-blog-d6ba140e06d0?source=rss-89034beaf8d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6ba140e06d0</guid>
            <category><![CDATA[localhost]]></category>
            <category><![CDATA[serveo]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[ssh-tunnel]]></category>
            <category><![CDATA[forwarding]]></category>
            <dc:creator><![CDATA[Rajan Verma]]></dc:creator>
            <pubDate>Fri, 20 Sep 2019 10:31:51 GMT</pubDate>
            <atom:updated>2019-09-21T03:26:53.398Z</atom:updated>
            <content:encoded><![CDATA[<h3>Expose local apps having subdomain to the internet in 2019 — Aarvy Blog</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*3rUCkZm75m9eLlrgt5wtAw.png" /></figure><p>Today I am going to talk about <a href="https://serveo.net/"><strong>Serveo</strong></a> and <strong>lvh.me</strong></p><p><strong>Localhost</strong> is best until you need to show your web app to someone remotely. Best way is to use <strong>ngrok</strong>. Fine!!!</p><p>But what if your application runs on local subdomain i.e. <strong>lvh.me</strong>, ngrok fails when you are working on multi-tenant application which requires subdomain. In such case you can use <strong>serveo</strong> as an alternative. Best of it is, your site doesn’t even have to be on localhost means it can run on <strong>lvh.me</strong> too. To expose <em>yoursubdomain.lvh.me to </em>internet run below command:</p><blockquote>ssh -R yoursubdomain.serveo.net:80:yoursubdomain.lvh.me:3000 serveo.net</blockquote><p>Good enough. For more details on it check my article on same at <a href="https://blog.aarvy.me/2019/09/20/expose-local-apps-having-subdomains-to-web/">https://blog.aarvy.me/2019/09/20/expose-local-apps-having-subdomains-to-web/</a></p><p><em>Originally published at </em><a href="https://blog.aarvy.me/2019/09/20/expose-local-apps-having-subdomains-to-web/"><em>blog.aarvy.me</em></a><em> on September 20, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6ba140e06d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Multiple ways to generate PDF charts in Rails 6 in 2019 — Aarvy Blog]]></title>
            <link>https://aarvy.medium.com/multiple-ways-to-generate-pdf-charts-in-rails-6-in-2019-aarvy-blog-fa4b600a8664?source=rss-89034beaf8d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa4b600a8664</guid>
            <category><![CDATA[pdf]]></category>
            <category><![CDATA[ruby-on-rails-6]]></category>
            <category><![CDATA[rubygems]]></category>
            <category><![CDATA[charts]]></category>
            <category><![CDATA[rails]]></category>
            <dc:creator><![CDATA[Rajan Verma]]></dc:creator>
            <pubDate>Wed, 11 Sep 2019 05:35:42 GMT</pubDate>
            <atom:updated>2021-03-28T17:04:20.200Z</atom:updated>
            <content:encoded><![CDATA[<h3>Multiple ways to generate PDF charts in Rails 6 in 2019 — Aarvy Blog</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*QbOejzTdj88qGdf4" /></figure><p>I was doing a task related to data representations and it needed lots of charts rendering stuff . For that i need to convert those charts to PDF format.</p><p>So, I started exploring each possible way out there. I am listing below, all those options I tried, with pros and cons.</p><ul><li>Wicked PDF (The popular one)</li><li>PDFKit</li><li>PhantomPDF</li><li>Grover</li><li>Dhalang</li></ul><h4><a href="https://github.com/mileszs/wicked_pdf">Wicked PDF:</a></h4><p>A popular gem used highly for rendering of traditional HTML elements to PDF but fails miserably while dealing with charts, graph (i.e. canvas and SVG). Graphs distortion is very common behavior, sometimes not even render them. Libraries like chartJS, d3, highcharts, c3 etc have their own patches but use them if you really want to bump your head in dark because they are version specific and might break your application on upgrade. Moreover it doesn’t supports latest Bootstrap 4 because of autoprefixer as mentioned here at <a href="https://github.com/twbs/bootstrap/issues/27642#issuecomment-450691133">Bootstrap 4 repo </a>. You can check those library specific patch <a href="https://github.com/wkhtmltopdf/wkhtmltopdf/issues/1964">here</a>.</p><h4><a href="https://github.com/pdfkit/pdfkit">PDFKIt</a>:</h4><p>Not a fan of it but again a popular gem for server side PDF rendering. You need to write separate HTML and CSS layout and don’t forget to provide absolute path for assets. Unluckily the underlying technology is same as <strong>WickedPDF</strong> so you will face similar issues while rendering charts or graphs as of Wicked PDF . The CSS distortion is quite common.</p><p>WickedPDf and PDFKit both are ruby wrapper of <a href="https://code.google.com/p/wkhtmltopdf">Wkhtmltopdf</a> , which is a C++ executable used for PDF / Reports generation. The WK in wkhtmltopdf stands for webkit (Qt) browser engine that is used to render HTML and java-script Chrome uses this same engine. Here is the catch, Qt<strong> </strong>WebKit, which is an older Webkit engine &amp; is no longer supported by Browserslist<strong> 3.0</strong> hence not fully supporting new HTML5 elements. So clearly not a good option for rendering charts. These are best suited for simple documents where you can afford to have some inconsistencies or failures. Use these if you do not want precise control over positioning.</p><h4><a href="https://github.com/mcspring/phantompdf">Phantompdf</a>:</h4><p>Unmaintained gem that use quite old and deprecated headless browser called PhantomJS. But its not being maintained, so there is no surety of future dependencies. You need to write your own HTML CSS in this case too.</p><h4><a href="https://github.com/Studiosity/grover">Grover</a>:</h4><p>Something different this time. Now take a hold when i say snapshot. Means YOU DON’T WRITE YOUR separate CSS and HTML layout. It uses browser’s functionality to capture view port and convert them to PDF / PNG/ JPEG and is fast than <strong>Wkhtmltopdf</strong>. The only problem I faced is runtime error it gave because of some chartJS configuration.</p><h4><a href="https://github.com/NielsSteensma/Dhalang">Dhalang</a>:</h4><p>Bet you never heard. Dhalang is a ruby gem that works just awesome. Similar to <strong>Grover</strong> it takes snapshot of your view port and convert them to PDF/ PNG / JPEG . Since there is no UI creation, your original HTML — CSS layout remains intact, but you might face some blurry charts.</p><p>If you want to see the live implementation follow my other article <a href="https://aarvy.me/blog/2019/09/11/rails-6-generate-pdf-charts-with-chartsjs/"><strong>Rails 6 + ChartsJS PDF generation with Dhalang</strong></a><strong>.</strong></p><p><strong>Grover and Dhalang</strong> are Ruby wrappers of <a href="https://github.com/GoogleChrome/puppeteer">Google Puppeteer</a> , a Node library which has quite active release cycle. Node applications use this for automation, crawling, taking screenshots etc.</p><p><strong>CONCLUSION</strong>: If you want quick crisp charts (chartJS, highcharts etc) without bothering about browser support, try Dhalang.</p><p><em>Originally published at </em><a href="https://blog.aarvy.me/2019/09/11/rails-6-charts-pdf-generation-gems-availability-and-comparison/"><em>blog.aarvy.me</em></a><em> on September 11, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa4b600a8664" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>