<?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: Ivan Guerreschi</title>
    <description>The latest articles on DEV Community by Ivan Guerreschi (@ivanguerreschi).</description>
    <link>https://dev.to/ivanguerreschi</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%2F327409%2F4fbc5e79-291e-4a85-be0e-5593de9cf1b4.jpg</url>
      <title>DEV Community: Ivan Guerreschi</title>
      <link>https://dev.to/ivanguerreschi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ivanguerreschi"/>
    <language>en</language>
    <item>
      <title>Install Podman on Fedora Linux</title>
      <dc:creator>Ivan Guerreschi</dc:creator>
      <pubDate>Thu, 24 Mar 2022 14:10:33 +0000</pubDate>
      <link>https://dev.to/ivanguerreschi/install-podman-on-fedora-linux-3ijk</link>
      <guid>https://dev.to/ivanguerreschi/install-podman-on-fedora-linux-3ijk</guid>
      <description>&lt;p&gt;&lt;a href="https://podman.io/"&gt;Podman&lt;/a&gt; is a daemonless container engine for developing, managing, and running OCI Containers on your Linux System.&lt;/p&gt;

&lt;p&gt;Podman is installed by default in Fedora Linux and Fedora Silverblue. If not, use this command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo dnf install podman&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;First example:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;podman pull hello-world &lt;br&gt;
podman run hello-world&lt;/code&gt;&lt;/p&gt;

</description>
      <category>docker</category>
      <category>podman</category>
      <category>fedora</category>
    </item>
    <item>
      <title>New Hello World! in C #</title>
      <dc:creator>Ivan Guerreschi</dc:creator>
      <pubDate>Thu, 17 Dec 2020 16:14:24 +0000</pubDate>
      <link>https://dev.to/ivanguerreschi/new-hello-world-in-c-125k</link>
      <guid>https://dev.to/ivanguerreschi/new-hello-world-in-c-125k</guid>
      <description>&lt;p&gt;With .NET Core 5 the famous Hello World becomes even easier&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="n"&gt;System&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;WriteLine&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Hello World!"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>csharp</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Create Rails project</title>
      <dc:creator>Ivan Guerreschi</dc:creator>
      <pubDate>Tue, 15 Dec 2020 16:32:17 +0000</pubDate>
      <link>https://dev.to/ivanguerreschi/create-rails-project-43kl</link>
      <guid>https://dev.to/ivanguerreschi/create-rails-project-43kl</guid>
      <description>&lt;p&gt;Simple script for create Rails project &lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/ivanGuerreschi/CreateRailsProject"&gt;https://github.com/ivanGuerreschi/CreateRailsProject&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Edit the script as you wish &lt;/p&gt;

</description>
      <category>ruby</category>
      <category>rails</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Using bundle exec with Flycheck in Emacs</title>
      <dc:creator>Ivan Guerreschi</dc:creator>
      <pubDate>Thu, 26 Nov 2020 19:54:33 +0000</pubDate>
      <link>https://dev.to/ivanguerreschi/using-bundle-exec-with-flycheck-in-emacs-2459</link>
      <guid>https://dev.to/ivanguerreschi/using-bundle-exec-with-flycheck-in-emacs-2459</guid>
      <description>&lt;p&gt;Create a .dir-locals.el file in the project root and&lt;br&gt;
edit the file with this code in Emacs Lisp&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight common_lisp"&gt;&lt;code&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nv"&gt;ruby-mode&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt; &lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nb"&gt;eval&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;setq-local&lt;/span&gt; &lt;span class="nv"&gt;flycheck-command-wrapper-function&lt;/span&gt;
  &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;command&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;append&lt;/span&gt; &lt;span class="o"&gt;'&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"bundle"&lt;/span&gt; &lt;span class="s"&gt;"exec"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nv"&gt;command&lt;/span&gt;&lt;span class="p"&gt;)))))))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>ruby</category>
      <category>emacs</category>
    </item>
    <item>
      <title>Example recursion in Clojure</title>
      <dc:creator>Ivan Guerreschi</dc:creator>
      <pubDate>Thu, 02 Jul 2020 14:28:53 +0000</pubDate>
      <link>https://dev.to/ivanguerreschi/example-recursion-in-clojure-150a</link>
      <guid>https://dev.to/ivanguerreschi/example-recursion-in-clojure-150a</guid>
      <description>&lt;h2&gt;
  
  
  Recursion of the perimeter of a square
&lt;/h2&gt;

&lt;p&gt;Given one side find the perimeter of each square&lt;br&gt;
f(n) = 4 * n + f(n - 1)&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;(ns recursion.core
  (:gen-class))

(defn -main
  [&amp;amp; args]  
  (defn f [n]
    (if (= n 1)
      4
      (+ (* 4 n) (f (dec n)))))
  (println (f 4)))
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

</description>
      <category>clojure</category>
    </item>
    <item>
      <title>Configure Emacs for Clojure</title>
      <dc:creator>Ivan Guerreschi</dc:creator>
      <pubDate>Wed, 17 Jun 2020 15:15:43 +0000</pubDate>
      <link>https://dev.to/ivanguerreschi/configure-emacs-for-clojure-120f</link>
      <guid>https://dev.to/ivanguerreschi/configure-emacs-for-clojure-120f</guid>
      <description>&lt;h1&gt;
  
  
  Basic configuration to start using Clojure with Emacs
&lt;/h1&gt;

&lt;h2&gt;
  
  
  Create the init.el configuration file
&lt;/h2&gt;

&lt;p&gt;Open a terminal and create a directory: &lt;em&gt;mkdir ~/emacs.d&lt;/em&gt;&lt;br&gt;
Enter the newly created directory: &lt;em&gt;cd emacs.d&lt;/em&gt;&lt;br&gt;
Create file: &lt;em&gt;touch init.el&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Install MELPA repository
&lt;/h2&gt;

&lt;p&gt;Editing file: &lt;em&gt;emacs init.el&lt;/em&gt;&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;(require 'package)
(let* ((no-ssl (and (memq system-type '(windows-nt ms-dos))
                    (not (gnutls-available-p))))
       (proto (if no-ssl "http" "https")))
  (when no-ssl (warn "\
Your version of Emacs does not support SSL connections,
which is unsafe because it allows man-in-the-middle attacks.
There are two things you can do about this warning:
1. Install an Emacs version that does support SSL and be safe.
2. Remove this warning from your init file so you won't see it again."))
(add-to-list 'package-archives (cons "melpa" (concat proto ://melpa.org/packages/")) t)
  ;; Comment/uncomment this line to enable MELPA Stable if  desired.  See `package-archive-priorities`
  ;; and `package-pinned-packages`. Most users will not need or want to do this.
  ;;(add-to-list 'package-archives (cons "melpa-stable" (concat proto "://stable.melpa.org/packages/")) t)
  )
(package-initialize)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;With this code we have installed the MELPA repository, this repository contains many packages for expanding Emacs&lt;/p&gt;

&lt;h2&gt;
  
  
  Install CIDER
&lt;/h2&gt;

&lt;p&gt;CIDER is the Clojure(Script) Interactive Development Environment that Rocks!&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;(use-package cider
  :ensure t)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Save the file &lt;em&gt;C-x C-s&lt;/em&gt; close &lt;em&gt;C-x C-c&lt;/em&gt; and restart Emacs&lt;/p&gt;

&lt;p&gt;This is a basic configuration for using Clojure with Emacs&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Install Leiningen </title>
      <dc:creator>Ivan Guerreschi</dc:creator>
      <pubDate>Tue, 16 Jun 2020 17:09:12 +0000</pubDate>
      <link>https://dev.to/ivanguerreschi/install-leiningen-50l4</link>
      <guid>https://dev.to/ivanguerreschi/install-leiningen-50l4</guid>
      <description>&lt;h1&gt;
  
  
  Install Leiningen using SDKMAN
&lt;/h1&gt;

&lt;h2&gt;
  
  
  First install SDKMAN
&lt;/h2&gt;

&lt;p&gt;If you use Ubuntu maybe you will need to install the curl package: &lt;em&gt;sudo apt install curl&lt;/em&gt;&lt;br&gt;
Open new terminal and enter: &lt;em&gt;curl -s "&lt;a href="https://get.sdkman.io"&gt;https://get.sdkman.io&lt;/a&gt;" | bash&lt;/em&gt;&lt;br&gt;
always after from the terminal: &lt;em&gt;source "$HOME/.sdkman/bin/sdkman-init.sh"&lt;/em&gt; or open new terminal&lt;br&gt;
Check if it has been installed correctly: &lt;em&gt;sdk version&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Now install Java
&lt;/h2&gt;

&lt;p&gt;To install the latest stable version of Java: &lt;em&gt;sdk install java&lt;/em&gt;&lt;br&gt;
To verify that Java has been correctly installed: &lt;em&gt;java -version&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Install Leiningen
&lt;/h2&gt;

&lt;p&gt;Now you can finally install Leiningen with the command: &lt;em&gt;sdk install leiningen&lt;/em&gt;&lt;br&gt;
&lt;em&gt;lein version&lt;/em&gt; to check if it has been installed&lt;/p&gt;

</description>
      <category>clojure</category>
      <category>java</category>
    </item>
    <item>
      <title>First post, first try Clojure</title>
      <dc:creator>Ivan Guerreschi</dc:creator>
      <pubDate>Sat, 13 Jun 2020 13:54:27 +0000</pubDate>
      <link>https://dev.to/ivanguerreschi/first-post-first-try-clojure-41fj</link>
      <guid>https://dev.to/ivanguerreschi/first-post-first-try-clojure-41fj</guid>
      <description>&lt;h1&gt;
  
  
  I explore the Clojure language
&lt;/h1&gt;

&lt;p&gt;To program in Clojure i use Emacs with Cider, Lein and Ubuntu 20.04 LTS Operating System&lt;/p&gt;

&lt;p&gt;Let's create a new project with the command: &lt;strong&gt;lein new app hello-world&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Open the file hello-world/src/hello_world/core.clj with Emacs&lt;br&gt;
The file contains the classic Hello World program&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;(ns hello-world.core
  (:gen-class))

(defn -main
  "I don't do a whole lot ... yet."
  [&amp;amp; args]
  (println "Hello, World!"))
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;To run the program: &lt;strong&gt;lein run&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is the result:&lt;br&gt;
&lt;em&gt;Hello, World!&lt;/em&gt;&lt;/p&gt;

</description>
      <category>clojure</category>
    </item>
  </channel>
</rss>
