<?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 Praaveen Vr on Medium]]></title>
        <description><![CDATA[Stories by Praaveen Vr on Medium]]></description>
        <link>https://medium.com/@praaveen?source=rss-92e67ade58af------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*S8FgK_sMnUz24PJ2.</url>
            <title>Stories by Praaveen Vr on Medium</title>
            <link>https://medium.com/@praaveen?source=rss-92e67ade58af------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 11:49:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@praaveen/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[Heroku redis server migration]]></title>
            <link>https://praaveen.medium.com/heroku-redis-server-migration-f62eff302215?source=rss-92e67ade58af------2</link>
            <guid isPermaLink="false">https://medium.com/p/f62eff302215</guid>
            <category><![CDATA[sidekiq]]></category>
            <category><![CDATA[heroku]]></category>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[migration]]></category>
            <category><![CDATA[redis]]></category>
            <dc:creator><![CDATA[Praaveen Vr]]></dc:creator>
            <pubDate>Thu, 23 Jun 2022 15:46:20 GMT</pubDate>
            <atom:updated>2022-06-23T15:46:20.284Z</atom:updated>
            <content:encoded><![CDATA[<p>Migrating the redis server from heroku redis-to-go to heroku redis</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BjdQDWlx6lzF2IbiOj7A1Q.png" /></figure><p>We get into the situation that our redis redis-to-go to server in heroku is shutting down their nano plan and we want it to be migrated to different service.</p><p>I have explored few add-ons from the <strong>heroku</strong> -&gt; <strong>resources</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6TRPntkYvTFOiGJc8dIONg.png" /></figure><p>Heroku redis, Upstash redis have the free plan and I was able to add and test it.<br>After, all consideration I have chosen the heroku redis for my app.</p><ol><li><strong>Steps to add a heroku redis server with out migrating from existing server</strong></li></ol><p>a. <strong>heroku</strong> -&gt; <strong>resources -&gt; Add-ons</strong><br> search for heroku redis add-on and click it. It will list out the available plan. Choose one and click it. In few minutes you can see the add-ons in list<br> <br>When you check the add-ons list you can find the Heroku Redis in it. By clicking it will navigate it to pages with <strong>overview</strong> | <strong>settings</strong>.</p><p>Inside <strong>settings</strong> -&gt; <strong>URI</strong> under <strong>ADMINISTRATION</strong> -&gt; Data store Credentials</p><p>This URI is need to be updated in you application.</p><p><strong>2. Steps to add a heroku redis server with migrating from existing server</strong></p><blockquote><strong>existing redis server</strong> <strong>URI </strong>: redis://redistogo:cdumy67ec45…..<strong><br>app-name</strong> : heroku app name<br><strong>heroku-redis</strong> : redis add on name<br><strong>hobby-dev</strong> : plan name</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*MsCvkLq31dSeCmO0ptUqgA.png" /></figure><pre>heroku addons:create heroku-redis:hobby-dev — fork redis://redistogo:<a href="/service/mailto:c67ec56b6572c447442ab4ce1ee2686f@sculpin.redistogo.com">cdumy67ec45354556b6572csada447442ab4ce1ee26@sculpin.redistogo.com</a>:10289/ -a app-name</pre><p>its done !</p><pre>Creating heroku-redis:hobby-dev on ⬢ app-name... $0/month<br>Your add-on is being provisioned and will be available shortly<br>redis-acute-6762 is being created in the background. The app will restart when complete...<br>Use heroku addons:info redis-acute-6762 to check creation progress<br>Use heroku addons:docs heroku-redis to view documentation</pre><p>You can follow this process using heroku redis:info:</p><pre>$ heroku redis:info -a app-name<br>===redis-acute-6762 (HEROKU_REDIS_PURPLE_URL)<br>Plan                hobby-dev<br>Status              Preparing (fork in progress)<br>Created             2015-07-20 20:30 UTC<br>Timeout             300<br>Maxmemory           noeviction<br>Maintenance window: Mondays 22:30 to Tuesdays 02:30 UTC<br>Persistence:        AOF</pre><p>When you check the add-ons list you can find the Heroku Redis in it. By clicking it will navigate it to pages with <strong>overview</strong> | <strong>settings</strong>.</p><p>Inside <strong>settings</strong> -&gt; <strong>URI</strong> under <strong>ADMINISTRATION</strong> -&gt; Data store Credentials</p><p>This URI is need to be updated in you application.</p><p><strong>For example i’m using inside rails, so I will update the URL inside the redis.rb</strong></p><p>You can also check in the sidekiq url</p><p><a href="https://rlc-staging-master.herokuapp.com/admin/sidekiq/scheduled">https://your-app-url/admin/sidekiq/scheduled</a></p><p>Check the new redis url down the page and also scheduled jobs if any.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nziz6p29Dz0SAnJLoatv5w.png" /></figure><p>Reference</p><p><a href="https://devcenter.heroku.com/articles/heroku-redis">Heroku Data for Redis</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f62eff302215" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rails link_to method: GETing when it should DELETE]]></title>
            <link>https://medium.com/praaveen/rails-link-to-method-geting-when-it-should-delete-34c5dea0fc8a?source=rss-92e67ade58af------2</link>
            <guid isPermaLink="false">https://medium.com/p/34c5dea0fc8a</guid>
            <category><![CDATA[http-request]]></category>
            <category><![CDATA[rails-ujs]]></category>
            <category><![CDATA[jquery-ujs]]></category>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[rails-6]]></category>
            <dc:creator><![CDATA[Praaveen Vr]]></dc:creator>
            <pubDate>Fri, 17 Jun 2022 07:31:58 GMT</pubDate>
            <atom:updated>2022-06-17T07:31:58.611Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*KdGTCrNMlqZoMjPgR3rfBQ.jpeg" /></figure><p><strong>Issue :<br></strong>Most browsers don’t actually support the DELETE verb, so Rails fakes it by modifying the HTML it generates. Rails tacks on a HTML5 attribute called data-method and sets it to &quot;delete&quot;. So when a user clicks on the link, it is actually issued as a GET request, but the data-method attribute allows for some Rails magic and means your routing code should recognize it as a DELETE request.</p><p><strong>View file</strong></p><pre>&lt;%= link_to &#39;Sign Out&#39;, destroy_user_session_path, method: :delete, class: &#39;logins-link navbar-link-right&#39; %<br>&gt;</pre><p><strong>rails log</strong></p><pre>Started <strong>GET</strong> &quot;/users/sign_out&quot; for ::1 at 2022-06-17 12:44:08 +0530<br>Processing by UsersController#show as HTML<br>  Parameters: {&quot;id&quot;=&gt;&quot;sign_out&quot;}</pre><p><strong>Note:</strong></p><p>It’s working perfectly if I use button _to instead of link_to<br> &lt;%= button_to &#39;Delete&#39;, article_path(article), method: :delete %&gt;</p><h3><strong>Solution :</strong></h3><p>As browsers don’t support the DELETE verb, Rails creates a workaround for this problem by simulating a DELETE request through a standard GET or POST. The way method: :delete works is with a JavaScript handler for all links with data-method=&quot;delete&quot; which modifies the request so Rails processes it as a <em>DELETE</em>. This JavaScript handler is provided by the jquery_ujs library.</p><p>There are several things that could have gone wrong:</p><ol><li>Make sure you have both jquery and jquery_ujs included in your application.js. Without both nothing will process the data attributes.</li><li>Make sure the link in question really has the method: :delete option specified.</li><li>Make sure for some reason you haven’t stopped the event propagation of the link in question, like so for example:</li></ol><pre>$( &#39;a&#39; ).click( function( event ) {<br>    event.stopPropagation()<br>})</pre><p>As this would prevent the jquery_ujs handlers from being executed and the request will never be modified and will remain just a standard GET.</p><p>a. application.js</p><pre>//= require jquery<br>//= require jquery_ujs</pre><blockquote><strong>Note </strong>that you may need to add these lines above any import statements within application.js.</blockquote><p>b. And also make sure to includ below line in your layout file</p><pre>&lt;%= javascript_include_tag &quot;application&quot; %&gt;</pre><p>c. <strong>view file</strong></p><pre>&lt;%= link_to &#39;Sign Out&#39;, destroy_user_session_path, method: :delete, class: &#39;logins-link navbar-link-right&#39; %<br>&gt;</pre><p>d. <strong>Now rails Log</strong></p><pre>Started <strong>DELETE</strong> &quot;/users/sign_out&quot; for ::1 at 2022-06-17 12:47:46 +0530<br>Processing by Users::SessionsController#destroy as HTML<br>  Parameters: {&quot;authenticity_token&quot;=&gt;&quot;XXXxKlhWdsfsdf435345345sfdsfsd&quot;}</pre><p><strong>Note :</strong></p><blockquote><strong><em>If you don’t want to include JQuery, switching </em></strong><strong><em>link_to &gt; </em></strong><strong><em>button_to will fix this issue.</em></strong></blockquote><p>Reference :</p><ul><li><a href="https://stackoverflow.com/questions/12997167/ruby-on-rails-link-to-delete-method-not-working">ruby on rails link_to delete method not working</a></li><li><a href="https://stackoverflow.com/questions/7465919/rails-link-to-method-geting-when-it-should-delete">Rails&#39; link_to method: GETing when it should DELETE</a></li><li><a href="https://apidock.com/rails/ActionView/Helpers/UrlHelper/button_to">button_to</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34c5dea0fc8a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/praaveen/rails-link-to-method-geting-when-it-should-delete-34c5dea0fc8a">Rails link_to method: GETing when it should DELETE</a> was originally published in <a href="https://medium.com/praaveen">praaveen</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Open Graph Meta Tags]]></title>
            <link>https://medium.com/praaveen/open-graph-meta-tags-e135e180870a?source=rss-92e67ade58af------2</link>
            <guid isPermaLink="false">https://medium.com/p/e135e180870a</guid>
            <category><![CDATA[open-graph]]></category>
            <category><![CDATA[ogtag]]></category>
            <category><![CDATA[facebook-open-graph]]></category>
            <category><![CDATA[open-graph-protocol]]></category>
            <category><![CDATA[rails]]></category>
            <dc:creator><![CDATA[Praaveen Vr]]></dc:creator>
            <pubDate>Tue, 14 Jun 2022 15:49:06 GMT</pubDate>
            <atom:updated>2022-06-14T15:52:03.437Z</atom:updated>
            <content:encoded><![CDATA[<p>represent the content of a page</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X0_MENeJQjQe2zXSR7tjBA.jpeg" /></figure><h3>Basic Metadata</h3><p><strong>Open Graph is an internet protocol that was originally created by Facebook to standardize the use of metadata within a webpage to represent the content of a page.</strong></p><ul><li>og:title - The title of your object as it should appear within the graph, e.g., &quot;The Rock&quot;.</li><li>og:type - The <a href="https://ogp.me/#types">type</a> of your object, e.g., &quot;video.movie&quot;. Depending on the type you specify, other properties may also be required.</li><li>og:image - An image URL which should represent your object within the graph.</li><li>og:url - The canonical URL of your object that will be used as its permanent ID in the graph, e.g., &quot;https://www.imdb.com/title/tt0117500/&quot;.</li></ul><p>As an example, the following is the Open Graph protocol markup:</p><pre>&lt;head&gt;<br>&lt;meta property=&quot;og:url&quot; content=&quot;https://www.byeindonesia.com/&quot;&gt;<br>&lt;meta property=&quot;og:type&quot; content=&quot;website&quot;&gt;<br>&lt;meta property=&quot;og:title&quot; content=&quot;Bye Indonesia - Renunciation of Indonesian Citizenship Guide 2021&quot;&gt;<br>&lt;meta property=&quot;og:description&quot; content=&quot;Renunciation of Indonesian citizenship process changed in 2020. This site aims to answer all your questions on the new process.&quot;&gt;<br>&lt;meta property=&quot;og:image&quot; content=&quot;https://www.byeindonesia.com/og-bye-indonesia.png&quot;&gt;<br>&lt;/head&gt;</pre><p>Once added, by using url representation of the content can be previewed using <a href="https://www.opengraph.xyz/">opengraph</a><strong><br>Output :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*pBlwobMXA4vFQ6xNk8_VLA.png" /></figure><p>During development <a href="https://ngrok.com/"><strong>ngrok</strong></a><strong> </strong>can be used</p><p><strong>Put localhost on the internet<br></strong>ngrok is the fastest way to put your app on the internet. Demo websites without deploying.</p><p>Download <a href="https://ngrok.com/download">ngrok</a></p><p><strong>Referrence :</strong></p><ul><li><a href="https://ngrok.com/">ngrok | API Gateway, Kubernetes Ingress, Webhook Gateway</a></li><li><a href="https://www.opengraph.xyz/">OpenGraph - Preview Social Media Share and Generate Metatags</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e135e180870a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/praaveen/open-graph-meta-tags-e135e180870a">Open Graph Meta Tags</a> was originally published in <a href="https://medium.com/praaveen">praaveen</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[jQuery formBuilder]]></title>
            <link>https://praaveen.medium.com/jquery-formbuilder-770a5e8a53f2?source=rss-92e67ade58af------2</link>
            <guid isPermaLink="false">https://medium.com/p/770a5e8a53f2</guid>
            <category><![CDATA[jsformbuilder]]></category>
            <category><![CDATA[custom-form]]></category>
            <category><![CDATA[formbuilder]]></category>
            <category><![CDATA[formio]]></category>
            <category><![CDATA[jqueryformbuilder]]></category>
            <dc:creator><![CDATA[Praaveen Vr]]></dc:creator>
            <pubDate>Mon, 16 May 2022 13:20:09 GMT</pubDate>
            <atom:updated>2022-05-16T13:30:11.557Z</atom:updated>
            <content:encoded><![CDATA[<p>Compare Form builders for web application</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K6cHrbJOvkS4xQpkclc-Fw.png" /></figure><p><strong>a. </strong><a href="https://formbuilder.online/docs/"><strong>jQuery formBuilder<br></strong></a>A jQuery plugin for drag and drop form creation, formBuilder has many options and is translatable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W4WqctUE4aNPRjTAdqalCQ.png" /></figure><p><strong>b. </strong><a href="https://formio.github.io/formio.js/app/builder"><strong>formio.js</strong></a><strong><br></strong>This library is a plain JavaScript form renderer and SDK for Form.io. This allows you to render the JSON schema forms produced by Form.io and render those within your application using plain JavaScript, as well as provides an interface SDK to communicate to the Form.io API’s. The benefits of this library include.</p><ul><li>Plain JavaScript implementation using ES6 and Modern practices (no jQuery, Angular, React, or any other framework dependency)</li><li>Renders a JSON schema as a webform and hooks up that form to the Form.io API’s</li><li>Complete Form Builder which creates the JSON schema used to render the forms.</li><li>Nested components, layouts, Date/Time, Select, Input Masks, and many more included features</li><li>Full JavaScript API SDK library on top of Form.io</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JmUtXc2OWjhazpxyWjt2ew.png" /></figure><p>Comparitive study on <a href="https://formbuilder.online/docs/"><strong>jQuery formBuilder</strong></a><strong> </strong>and<strong> </strong><a href="https://formio.github.io/formio.js/app/builder"><strong>formio.js</strong></a></p><p><strong>Below comparison will help us to choose the right plugin based on the requirement.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/1*oXBxVBRHGoIyRxEwC1XGDQ.png" /></figure><p>Above table contains the comparison of form fields, layouts and other supports.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*dOfpLn6Yzib_VE_XJBaWZg.png" /></figure><p>Some additional form field comparison.</p><p><strong>conclusion<br></strong>When you want to build a simple form builder and it should be able to manage by the admin with out any training / effort then <a href="https://formbuilder.online/docs/"><strong>jQuery formBuilder</strong></a><strong> </strong>is the best choice. <a href="https://formio.github.io/formio.js/app/builder"><strong>formio.js</strong></a> have some learning curve but very powerful feature when compared to jqueryformbuilder.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=770a5e8a53f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Compiling imagemagick with HEIC support in heroku(ubuntu)]]></title>
            <link>https://medium.com/praaveen/compiling-imagemagick-with-heic-support-in-heroku-ubuntu-c5353413de19?source=rss-92e67ade58af------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5353413de19</guid>
            <category><![CDATA[heic-converter]]></category>
            <category><![CDATA[heic]]></category>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[heic-to-jpg]]></category>
            <category><![CDATA[heroku]]></category>
            <dc:creator><![CDATA[Praaveen Vr]]></dc:creator>
            <pubDate>Mon, 28 Feb 2022 07:22:21 GMT</pubDate>
            <atom:updated>2022-03-31T16:38:14.193Z</atom:updated>
            <content:encoded><![CDATA[<p>HEIC is a image format, which is supported by iOS, and will be used exclusively by iOS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*iUlJ9x57H2rV7Bljd2d8_w.jpeg" /></figure><p><a href="https://praaveen.medium.com/compiling-imagemagick-with-heic-support-17d39119e80"><strong>compiling-imagemagick-with-heic-support in ubutu</strong></a></p><p>Sample HEIC <a href="https://newsgroup.xnview.com/viewtopic.php?t=32568">images</a> and <a href="http://nokiatech.github.io/heif/examples.html">preview</a></p><p><strong>a. Prepare a package or get an URL<br></strong>Get already available package url from internet. Example</p><pre><a href="https://github.com/mkmms/heroku-buildpack-imagemagick">https://github.com/mkmms/heroku-buildpack-imagemagick</a></pre><p><strong>b. App Changes</strong></p><ol><li>Create a file called Aptfile and add the library name called libheif-dev.</li><li>Push it along with repo</li></ol><p><strong>c. Get into Heroku<br></strong><em>Step 1 : Adding the buildpack</em></p><p>From your projects “Settings” tab add this buildpack to your app in the 1st position:</p><pre><a href="https://github.com/mkmms/heroku-buildpack-imagemagick">https://github.com/mkmms/heroku-buildpack-imagemagick</a></pre><p><em>Step 2 : Clear the cache</em></p><pre>heroku plugins:install heroku-repo<br>heroku repo:purge_cache -a HEROKU_APP_NAME</pre><h3><strong>note : Your new buildpack configuration will be used when this app is next deployed.</strong></h3><p><strong>Reference :</strong></p><p><a href="https://elements.heroku.com/buildpacks/yespark/heroku-imagemagick-buildpack">Elements Marketplace: heroku-imagemagick-buildpack</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5353413de19" width="1" height="1" alt=""><hr><p><a href="https://medium.com/praaveen/compiling-imagemagick-with-heic-support-in-heroku-ubuntu-c5353413de19">Compiling imagemagick with HEIC support in heroku(ubuntu)</a> was originally published in <a href="https://medium.com/praaveen">praaveen</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Compiling imagemagick with HEIC support in ubuntu]]></title>
            <link>https://medium.com/praaveen/compiling-imagemagick-with-heic-support-17d39119e80?source=rss-92e67ade58af------2</link>
            <guid isPermaLink="false">https://medium.com/p/17d39119e80</guid>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[heic-to-jpg]]></category>
            <category><![CDATA[heic]]></category>
            <category><![CDATA[imagemagick]]></category>
            <category><![CDATA[heic-converter]]></category>
            <dc:creator><![CDATA[Praaveen Vr]]></dc:creator>
            <pubDate>Fri, 25 Feb 2022 17:19:47 GMT</pubDate>
            <atom:updated>2022-03-31T16:39:47.981Z</atom:updated>
            <content:encoded><![CDATA[<p>HEIC is a image format, which is supported by iOS, and will be used exclusively by iOS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G982B9pLHzY0mysdX5WHEw.png" /></figure><p>When working with ruby on rails, we get into the situation to allow upload option to accept the HEIC image,so people can upload from their iphone.</p><p>Sample HEIC <a href="https://newsgroup.xnview.com/viewtopic.php?t=32568">images</a> and <a href="http://nokiatech.github.io/heif/examples.html">preview</a></p><p><a href="https://praaveen.medium.com/compiling-imagemagick-with-heic-support-in-heroku-ubuntu-c5353413de19">Compiling imagemagick with HEIC support in heroku(ubuntu)</a></p><pre>`convert #{path} #{directory}#{jpegname}`</pre><p><strong>Error</strong></p><pre><br><strong>convert: no decode delegate for this image format `HEIC&#39; @ error/constitute.c/ReadImage/501.</strong></pre><pre><strong>convert: no images defined `image.jpg&#39; @ error/convert.c/ConvertImageCommand/3210.</strong></pre><p>Could n’t find the library for <strong>heic </strong>files. We can check that by getting into <strong>ImageMagick folder. </strong>ex : ImageMagick-7.0.11–14</p><pre>./configure — with-modules</pre><pre>Delegate library configuration:<br>  BZLIB             --with-bzlib=yes  yes<br>  Autotrace         --with-autotrace=no  no<br>  DJVU              --with-djvu=yes  yes<br>  DPS               --with-dps=yes  no<br>  FFTW              --with-fftw=no  no<br>  FLIF              --with-flif=yes  no<br>  FlashPIX          --with-fpx=yes  no<br>  FontConfig        --with-fontconfig=yes yes<br>  FreeType          --with-freetype=yes  yes<br>  Ghostscript lib   --with-gslib=no  no<br>  Graphviz          --with-gvc=yes  no<br>  <strong>HEIC              --with-heic=yes  no</strong><br>  JBIG              --with-jbig=yes  yes<br>  JPEG v1           --with-jpeg=yes  yes<br>  JPEG XL           --with-jxl=no  no<br>  LCMS              --with-lcms=yes  yes<br>  LQR               --with-lqr=yes  yes<br>  LTDL              --with-ltdl=yes  yes<br>  LZMA              --with-lzma=yes  yes<br>  Magick++          --with-magick-plus-plus=yes yes<br>  OpenEXR           --with-openexr=yes  yes<br>  OpenJP2           --with-openjp2=yes  no<br>  PANGO             --with-pango=yes  yes<br>  PERL              --with-perl=no  no<br>  PNG               --with-png=yes  yes<br>  RAQM              --with-raqm=yes  no<br>  RAW               --with-raw=yes  no<br>  RSVG              --with-rsvg=no  no<br>  TIFF              --with-tiff=yes  yes<br>  WEBP              --with-webp=yes  yes<br>  WMF               --with-wmf=yes  yes<br>  X11               --with-x=   yes<br>  XML               --with-xml=yes  yes<br>  ZIP               --with-zip=yes  no<br>  ZLIB              --with-zlib=yes  yes<br>  ZSTD              --with-zstd=yes  no</pre><p>type : <strong>HEIC</strong> <br>option : <strong>with-heic=yes </strong><br>value : <strong>no</strong></p><pre>convert -version</pre><pre>Version: ImageMagick 7.0.11-14 Q16 x86_64 2021-05-31 <a href="https://imagemagick.org/">https://imagemagick.org</a><br>Copyright: (C) 1999-2021 ImageMagick Studio LLC<br>License: <a href="https://imagemagick.org/script/license.php">https://imagemagick.org/script/license.php</a><br>Features: Cipher DPC HDRI OpenMP(4.5) <br><strong>Delegates (built-in): bzlib djvu fontconfig freetype jbig jng jpeg lcms lqr lzma openexr pangocairo png tiff webp x xml zlib</strong></pre><p>Delegates (built-in):<strong> bzlib djvu fontconfig freetype jbig jng jpeg lcms lqr lzma openexr pangocairo png tiff webp x xml zlib</strong></p><p>Delegates list the configured types.</p><p><strong>Solution : <br></strong>Compiling imagemagick with HEIC support from clean install of Ubuntu</p><pre>$ sudo sed -Ei ‘s/^# deb-src /deb-src /’ /etc/apt/sources.list<br>$ sudo apt-get update<br>$ sudo apt-get install build-essential autoconf git-core<br>$ sudo apt-get build-dep imagemagick libde265 libheif<br>$ cd /usr/src/ <br>$ sudo git clone <a href="https://github.com/strukturag/libde265.git">https://github.com/strukturag/libde265.git</a> <br>$ sudo git clone <a href="https://github.com/strukturag/libheif.git">https://github.com/strukturag/libheif.git</a> <br>$ cd libde265/ <br>$ sudo ./autogen.sh <br>$ sudo ./configure <br>$ sudo make –j4 <br>$ sudo make install <br>$ cd /usr/src/libheif/ <br>$ sudo ./autogen.sh <br>$ sudo ./configure <br>$ sudo make –j4 <br>$ sudo make install <br>$ cd /usr/src/ <br>$ sudo wget <a href="https://www.imagemagick.org/download/ImageMagick.tar.gz">https://www.imagemagick.org/download/ImageMagick.tar.gz</a> <br>$ sudo tar xf ImageMagick.tar.gz <br>$ cd ImageMagick-7* <br><strong>$ sudo ./configure — with-heic=yes <br>$ sudo make –j4 <br>$ sudo make install <br>$ sudo ldconfig </strong><br>$ mogrify — version <br># heic should appear in the Delegates line</pre><p>After above steps try<strong><br>Version</strong></p><pre>$ convert -version<br>Version: ImageMagick 7.0.11–14 Q16 x86_64 2021–05–31 <a href="https://imagemagick.org/">https://imagemagick.org</a><br>Copyright: © 1999–2021 ImageMagick Studio LLC<br>License: <a href="https://imagemagick.org/script/license.php">https://imagemagick.org/script/license.php</a><br>Features: Cipher DPC HDRI OpenMP(4.5) <br>Delegates (built-in): bzlib djvu fontconfig freetype <strong>heic</strong> jbig jng jpeg lcms lqr lzma openexr pangocairo png tiff webp x xml zlib</pre><p><strong>Configuration</strong></p><pre>./configure — with-modules</pre><pre>Delegate library configuration:<br>  BZLIB             --with-bzlib=yes  yes<br>  Autotrace         --with-autotrace=no  no<br>  DJVU              --with-djvu=yes  yes<br>  DPS               --with-dps=yes  no<br>  FFTW              --with-fftw=no  no<br>  FLIF              --with-flif=yes  no<br>  FlashPIX          --with-fpx=yes  no<br>  FontConfig        --with-fontconfig=yes yes<br>  FreeType          --with-freetype=yes  yes<br>  Ghostscript lib   --with-gslib=no  no<br>  Graphviz          --with-gvc=yes  no<br>  <strong>HEIC              --with-heic=yes  yes</strong><br>  JBIG              --with-jbig=yes  yes<br>  JPEG v1           --with-jpeg=yes  yes<br>  JPEG XL           --with-jxl=no  no<br>  LCMS              --with-lcms=yes  yes<br>  LQR               --with-lqr=yes  yes<br>  LTDL              --with-ltdl=yes  yes<br>  LZMA              --with-lzma=yes  yes<br>  Magick++          --with-magick-plus-plus=yes yes<br>  OpenEXR           --with-openexr=yes  yes<br>  OpenJP2           --with-openjp2=yes  no<br>  PANGO             --with-pango=yes  yes<br>  PERL              --with-perl=no  no<br>  PNG               --with-png=yes  yes<br>  RAQM              --with-raqm=yes  no<br>  RAW               --with-raw=yes  no<br>  RSVG              --with-rsvg=no  no<br>  TIFF              --with-tiff=yes  yes<br>  WEBP              --with-webp=yes  yes<br>  WMF               --with-wmf=yes  yes<br>  X11               --with-x=   yes<br>  XML               --with-xml=yes  yes<br>  ZIP               --with-zip=yes  no<br>  ZLIB              --with-zlib=yes  yes<br>  ZSTD              --with-zstd=yes  no</pre><p><strong>Reference :</strong><br><a href="https://askubuntu.com/questions/1131996/problems-with-compiling-imagemagick-with-heic?rq=1">https://askubuntu.com/questions/1131996/problems-with-compiling-imagemagick-with-heic?rq=1</a></p><p><a href="https://download.imagemagick.org/ImageMagick/download/releases/?C=M;O=A">Index of /ImageMagick/download/releases</a></p><p><a href="https://www.everclimb.co/blog/how-to-install-imagemagick-7-on-ubuntu-16-04">https://www.everclimb.co/blog/how-to-install-imagemagick-7-on-ubuntu-16-04</a></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b2a678c382a8be6afcc6d58e43624b55/href">https://medium.com/media/b2a678c382a8be6afcc6d58e43624b55/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17d39119e80" width="1" height="1" alt=""><hr><p><a href="https://medium.com/praaveen/compiling-imagemagick-with-heic-support-17d39119e80">Compiling imagemagick with HEIC support in ubuntu</a> was originally published in <a href="https://medium.com/praaveen">praaveen</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Export and Import PostgreSQL]]></title>
            <link>https://medium.com/praaveen/postgres-helper-fbce07e0d95b?source=rss-92e67ade58af------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbce07e0d95b</guid>
            <category><![CDATA[postgres]]></category>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[pg-restore]]></category>
            <dc:creator><![CDATA[Praaveen Vr]]></dc:creator>
            <pubDate>Fri, 17 Dec 2021 18:13:15 GMT</pubDate>
            <atom:updated>2022-04-21T13:47:42.491Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*nXT6XjcR3f6Zln-3FSBIcQ.png" /></figure><h3>Export a PostgreSQL database dump using pg_dump</h3><p>Extract a PostgreSQL database into a script file or other archive file.pg_dump is a utility for backing up a PostgreSQL database</p><h3>Import a PostgreSQL database dump using pg_restore and psql</h3><p>a. pg_restore is a utility for restoring a PostgreSQL database from an archive created by pg_dump in one of the non-plain-text formats.<br>b. psql for restoring from a plain SQL script file.</p><p>This <a href="https://axiomq.com/blog/backup-and-restore-a-postgresql-database/">blog</a> help us to know in details</p><h3>postgres db and user setup</h3><p>After installing the PostgreSQL, most of the time we stuck with error called <strong>Peer authentication failed for user postgres , when trying to get pgsql working with rails</strong></p><p><strong>Solution:</strong></p><p>Switching between the authentication methods trust and md5.</p><p>This <a href="https://stackoverflow.com/a/26735105/3248148">link</a> help us to know in details</p><h3>Trust Authentication</h3><p>When trust authentication is specified, PostgreSQL assumes that anyone who can connect to the server is authorized to access the database with whatever database user name they specify (even superuser names). Of course, restrictions made in the database and user columns still apply. This method should only be used when there is adequate operating-system-level protection on connections to the server.</p><h3>Password Authentication</h3><p>The password-based authentication methods are <strong>md5</strong> and password. These methods operate similarly except for the way that the password is sent across the connection, namely <strong>MD5</strong>-hashed and clear-text respectively.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbce07e0d95b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/praaveen/postgres-helper-fbce07e0d95b">Export and Import PostgreSQL</a> was originally published in <a href="https://medium.com/praaveen">praaveen</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git reset -hard]]></title>
            <link>https://medium.com/praaveen/git-reset-hard-93e2b1ee28b3?source=rss-92e67ade58af------2</link>
            <guid isPermaLink="false">https://medium.com/p/93e2b1ee28b3</guid>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[rollbacks]]></category>
            <category><![CDATA[git-reset]]></category>
            <category><![CDATA[hard-reset]]></category>
            <dc:creator><![CDATA[Praaveen Vr]]></dc:creator>
            <pubDate>Mon, 13 Dec 2021 08:06:13 GMT</pubDate>
            <atom:updated>2021-12-13T11:55:53.267Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Git reset -hard</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rcVEF9OvefXQA8DSX9WAOw.jpeg" /></figure><p>The git reset command is for undoing changes. It has three primary forms of invocation. These forms correspond to command line arguments --soft, --mixed, --hard.</p><p><strong>Git reset</strong> — hard will change head, index and working directory.<br><strong>Git reset</strong> — soft will change head only. No change to index, working directory.<br><strong>Git reset</strong> — mixed, which is the default, and keeps all files the same but unstages the changes. This is the most flexible option, but despite the name, it doesn’t modify files.</p><p>Here example is for hard reset and assuming the branch name as <strong>production</strong></p><p><strong><em>git log</em></strong></p><p>Pick the commit id in the branch and reset to that id in local<br><strong><em>git reset — hard fd5b0f3e5f3589238d56e70b43d640f238e157e6</em></strong></p><p>Now force push that into remote repo or server, based on the your setup<br><strong><em>git push origin production -f</em></strong></p><p>Now other developers who want the reset changes of the branch can run the below line <br><strong><em>git reset — hard origin/production</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93e2b1ee28b3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/praaveen/git-reset-hard-93e2b1ee28b3">Git reset -hard</a> was originally published in <a href="https://medium.com/praaveen">praaveen</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Useful rails resources collection]]></title>
            <link>https://medium.com/praaveen/useful-rails-resources-collection-d0ff2a7e11c2?source=rss-92e67ade58af------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0ff2a7e11c2</guid>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[ror]]></category>
            <category><![CDATA[ruby-on-rails-development]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[rails]]></category>
            <dc:creator><![CDATA[Praaveen Vr]]></dc:creator>
            <pubDate>Wed, 13 Jan 2021 14:28:07 GMT</pubDate>
            <atom:updated>2022-06-07T13:59:02.328Z</atom:updated>
            <content:encoded><![CDATA[<p>blogs, screencast, podcast, discussion forum</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*gM7cWmZxRs1xDhl3ZO_lKw.png" /></figure><p><strong>I’m Just sharing the collections I had, please add your collections in comment section so that I can updated it here.</strong></p><p><strong>Rails Tutorial<br></strong><a href="https://www.theodinproject.com/paths/full-stack-ruby-on-rails">https://www.theodinproject.com/paths/full-stack-ruby-on-rails</a>?</p><p><strong>Blogs</strong><br>1. <a href="https://www.sitepoint.com/community/c/ruby/34">https://www.sitepoint.com/community/c/ruby/34</a><br>2. <a href="https://blog.bigbinary.com/">https://blog.bigbinary.com/</a><br>3. <a href="http://www.rubyflow.com/">http://www.rubyflow.com/</a><br>4. <a href="http://rubyland.news/">http://rubyland.news/</a><br>5. <a href="https://blog.arkency.com/">https://blog.arkency.com/</a><br>6. <a href="https://everydayrails.com/">https://everydayrails.com/</a><br>7. <a href="https://www.rubyguides.com/">https://www.rubyguides.com/</a><br>8. <a href="https://hixonrails.com/ruby-on-rails-tutorials/">https://hixonrails.com/ruby-on-rails-tutorials/</a><br>9. <a href="https://blog.planetargon.com/">https://blog.planetargon.com/</a><br>10. <a href="https://www.nopio.com/blog/category/rubyonrails/">https://www.nopio.com/blog/category/rubyonrails/</a><br>11. <a href="https://afreshcup.com/">https://afreshcup.com/</a><br>12. <a href="https://www.pluralsight.com/guides/elasticsearch-with-ruby-on-rails">https://www.pluralsight.com/guide</a>s/<br>13. <a href="https://blog.appsignal.com/category/ruby-magic.html">https://blog.appsignal.com/category/ruby-magic.html</a><br>14. <a href="https://lbarasti.com/post/">https://lbarasti.com/post/</a><br>15. <a href="https://blog.kiprosh.com/">https://blog.kiprosh.com/</a><br>16. <a href="https://longliveruby.com/">https://longliveruby.com/</a><br>17. <a href="https://blog.engineyard.com/ruby-unbundled-instant-poll-app-in-single-file">https://blog.engineyard.com/ruby-unbundled-instant-poll-app-in-single-file</a><br>18. <a href="https://www.toptal.com/developers/blog">https://www.toptal.com/developers/blog</a><br>19. <a href="https://www.bootrails.com/blog/ruby-on-rails-and-vuejs-tutorial/">https://www.bootrails.com/blog/ruby-on-rails-and-vuejs-tutorial/</a><br>20. <a href="https://www.honeybadger.io/blog/tags/ruby/">https://www.honeybadger.io/blog/tags/ruby/</a></p><p><strong>Screencast </strong><br>1. <a href="https://gorails.com/episodes?free=true">https://gorails.com/episodes?free=true</a><br>2. <a href="https://www.driftingruby.com/episodes/">https://www.driftingruby.com/episodes/</a></p><p><strong>Discussion</strong><br>1. <a href="https://www.reddit.com/r/ruby/">https://www.reddit.com/r/ruby/</a></p><p><strong>Podcast</strong><br>1. <a href="https://devchat.tv/ruby-rogues/rr-457-upgrading-to-rails-6/">https://devchat.tv/ruby-rogues/rr-457-upgrading-to-rails-6/</a></p><p><strong>Best gem</strong><a href="https://ruby.libhunt.com/"><br>1. https://ruby.libhunt.com</a>/</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0ff2a7e11c2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/praaveen/useful-rails-resources-collection-d0ff2a7e11c2">Useful rails resources collection</a> was originally published in <a href="https://medium.com/praaveen">praaveen</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rails with Plivo’s voice and messaging platform]]></title>
            <link>https://medium.com/praaveen/rails-with-plivos-voice-and-messaging-platform-5716ec79d508?source=rss-92e67ade58af------2</link>
            <guid isPermaLink="false">https://medium.com/p/5716ec79d508</guid>
            <category><![CDATA[voice-call-provider]]></category>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[messaging]]></category>
            <category><![CDATA[ruby]]></category>
            <dc:creator><![CDATA[Praaveen Vr]]></dc:creator>
            <pubDate>Sun, 26 Jul 2020 12:05:03 GMT</pubDate>
            <atom:updated>2020-07-31T04:23:52.133Z</atom:updated>
            <content:encoded><![CDATA[<p>Voice and Messaging platform</p><p>Create an app in plivo for Auth Id and Auth token.</p><p>note: In a sandbox, add all the numbers to make a call and send messages.</p><p><a href="https://www.plivo.com/docs/voice/quickstart/ruby/">Get Started with Ruby | Plivo SMS</a></p><p><strong>Call</strong></p><pre>require &#39;rubygems&#39;<br>require &#39;plivo&#39;<br>include Plivo</pre><pre>client = Plivo::RestClient.new(&#39;*A*U*T*H*I*D*&#39;, &#39;**********A*U*T*H*T*O*K*E*N*****&#39;)</pre><pre>#client.calls.create(&#39;your_source_number&#39;[&#39;your_destination_number&#39;],&#39;<a href="https://answer.url&/#39;">https://answer.url&#39;</a>)</pre><pre>client.calls.create(&#39;+91**********&#39;,[&#39;+91**********&#39;],&#39;url&#39;)</pre><p><a href="https://www.plivo.com/docs/sms/quickstart/ruby/">Get Started with Ruby | Plivo SMS</a></p><p><strong>Message</strong></p><pre>require &#39;rubygems&#39;<br>require &#39;plivo&#39;<br>include Plivo</pre><pre>client = Plivo::RestClient.new(&#39;*A*U*T*H*I*D*&#39;, &#39;**********A*U*T*H*T*O*K*E*N*****&#39;)</pre><pre>#client.messages.create(&#39;your_source_number&#39;,%w[your_destination_number_1 your_destination_number_2],&#39;Hello, world!&#39;)</pre><pre>client.messages.create(&#39;+91**********&#39;,[&#39;+91**********&#39;],&#39;Hello, world!&#39;)</pre><ul><li><a href="https://www.plivo.com/">Communication Platform for SMS APIs, Voice APIs, and SIP Trunking.</a></li><li><a href="https://github.com/plivo/plivo-ruby">plivo/plivo-ruby</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5716ec79d508" width="1" height="1" alt=""><hr><p><a href="https://medium.com/praaveen/rails-with-plivos-voice-and-messaging-platform-5716ec79d508">Rails with Plivo’s voice and messaging platform</a> was originally published in <a href="https://medium.com/praaveen">praaveen</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>