<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Satyaki</title>
    <description>The latest articles on DEV Community by Satyaki (@k0ple).</description>
    <link>https://dev.to/k0ple</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F362284%2F1c13c1ad-170d-48a0-aa7d-565e2ad76343.jpg</url>
      <title>DEV Community: Satyaki</title>
      <link>https://dev.to/k0ple</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/k0ple"/>
    <language>en</language>
    <item>
      <title>Having trouble with gdal on Anaconda? Try this!</title>
      <dc:creator>Satyaki</dc:creator>
      <pubDate>Fri, 12 Feb 2021 18:22:12 +0000</pubDate>
      <link>https://dev.to/k0ple/having-trouble-with-gdal-on-anaconda-try-this-3hfo</link>
      <guid>https://dev.to/k0ple/having-trouble-with-gdal-on-anaconda-try-this-3hfo</guid>
      <description>&lt;p&gt;If you are interested in this article I assume you recently tried to use &lt;strong&gt;gdal&lt;/strong&gt; with anaconda for one project or another and have run into a problem. So the quick solution for your problem is...&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Create a new virtual environment and install gdal in that environment!!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;After encountering countless problems with python with different projects, the golden rule I've learned is: &lt;strong&gt;always create a virtual environment for your project!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you are still reading this it means you would like a detailed explanation (or maybe for some reason you like me rambling about gdal of all things!). &lt;/p&gt;

&lt;p&gt;So one of my friends was working on a data science project and was running into a lot of issues and asked me to take a look at his project to see if I could get it to run.&lt;/p&gt;

&lt;p&gt;The error he was encountering was: &lt;strong&gt;DLL load failed: The specified procedure could not be found&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tQIPx0sI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/s87dcn3l3bq9pbubam2i.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tQIPx0sI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/s87dcn3l3bq9pbubam2i.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So the solution here is to create a new virtual environment in anaconda using conda in the terminal (if on windows you can use the anaconda-prompt terminal). Open the folder where you want to create the project and then follow these steps:&lt;/p&gt;

&lt;p&gt;First update conda if necessary using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;conda update conda
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then we can proceed to creating a virtualenv (short for virtual environment) using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;conda create &lt;span class="nt"&gt;-n&lt;/span&gt; yourenvname
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now activate your virtualenv using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;conda activate yourenvname
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now just execute the following statement and it will install all dependencies as well as make any changes required&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;conda &lt;span class="nb"&gt;install &lt;/span&gt;gdal
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I was using jupyter notebooks so I will open that (this should work fine with spyder as well):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;anaconda-navigator
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open jupyter-notebook (the virtualenv will be selected by default)&lt;/p&gt;

&lt;p&gt;In the first cell execute&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;from osgeo import gdal
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The cell will execute without errors!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--EEn1di4G--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/twt00nuopjkmlyh9lwh4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--EEn1di4G--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/twt00nuopjkmlyh9lwh4.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Cheers!!!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/xUKrrEnN9I5lnrcSMv/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/xUKrrEnN9I5lnrcSMv/giphy.gif" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
Gif via Giphy



</description>
      <category>python</category>
      <category>datascience</category>
    </item>
    <item>
      <title>Set up online accounts on Elementary OS</title>
      <dc:creator>Satyaki</dc:creator>
      <pubDate>Thu, 23 Apr 2020 09:29:53 +0000</pubDate>
      <link>https://dev.to/k0ple/set-up-online-accounts-on-elementary-os-7cn</link>
      <guid>https://dev.to/k0ple/set-up-online-accounts-on-elementary-os-7cn</guid>
      <description>&lt;p&gt;&lt;strong&gt;You know you need this.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;One of the things which I have been missing quite a lot while using elementaryOS is that it doesn't support syncing with online accounts like Google or Microsoft. I say this because I quite often have use for my Google Calendar and Drive and being able to view them using the default applications on the desktop is quite nice.&lt;/p&gt;

&lt;p&gt;I like how Gnome allows us to sync in with such online accounts and seamlessly integrates the Google Calendar with the Gnome Calendar and Drive with the File Manger respectively.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;So what is the solution?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If anyone is in the same boat as me, and wishes to enable setting up those accounts on Elementary OS, here are the steps which can be used to enable online accounts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;First, we have to install the Gnome Control Center using the following command.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt-get &lt;span class="nb"&gt;install &lt;/span&gt;gnome-control-center
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Then, with the following command we can enable the Gnome online accounts&lt;br&gt;
in the control center.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt-get &lt;span class="nb"&gt;install &lt;/span&gt;gnome-online-accounts
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now, to open the Gnome Control Center to configure the account type the following command in the terminal.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;Exec&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nb"&gt;env &lt;/span&gt;&lt;span class="nv"&gt;XDG_CURRENT_DESKTOP&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;GNOME gnome-control-center &lt;span class="nt"&gt;--overview&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Configure your account in the Gnome Control Center and you are all set.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Enjoy!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JHaUvBIJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ezjn31kpw6jtujui0kk4.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JHaUvBIJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ezjn31kpw6jtujui0kk4.gif" alt=""&gt;&lt;/a&gt;Gif via Giphy&lt;/p&gt;

</description>
      <category>linux</category>
      <category>opensource</category>
      <category>elementaryos</category>
      <category>tips</category>
    </item>
  </channel>
</rss>
