<?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: Slava "nerfur" Voronzoff</title>
    <description>The latest articles on DEV Community by Slava "nerfur" Voronzoff (@nerfur).</description>
    <link>https://dev.to/nerfur</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%2F128114%2F09cad7a1-d3ad-4c7d-b0bb-28d5bceed35b.jpeg</url>
      <title>DEV Community: Slava "nerfur" Voronzoff</title>
      <link>https://dev.to/nerfur</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nerfur"/>
    <language>en</language>
    <item>
      <title>I was system operator of Fidonet node from Russia, Ask Me Anything!</title>
      <dc:creator>Slava "nerfur" Voronzoff</dc:creator>
      <pubDate>Tue, 02 Apr 2019 06:29:49 +0000</pubDate>
      <link>https://dev.to/nerfur/i-was-system-operator-of-fidonet-node-from-russia-ask-me-anything-4j13</link>
      <guid>https://dev.to/nerfur/i-was-system-operator-of-fidonet-node-from-russia-ask-me-anything-4j13</guid>
      <description>&lt;p&gt;&lt;a href="https://thepracticaldev.s3.amazonaws.com/i/ixj5hoagebu4wobn1dau.gif"&gt;https://thepracticaldev.s3.amazonaws.com/i/ixj5hoagebu4wobn1dau.gif&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ama</category>
    </item>
    <item>
      <title>Easy make and Makefile for beginners</title>
      <dc:creator>Slava "nerfur" Voronzoff</dc:creator>
      <pubDate>Sun, 13 Jan 2019 11:55:29 +0000</pubDate>
      <link>https://dev.to/nerfur/easy-make-and-makefile-for-beginners-476a</link>
      <guid>https://dev.to/nerfur/easy-make-and-makefile-for-beginners-476a</guid>
      <description>&lt;p&gt;&lt;em&gt;make&lt;/em&gt; is one of the most important tools in programming. Both in past and present days. But also pretty scary, because many beginners see only Makefile from already established and big projects with huge amount of lines inside. &lt;/p&gt;

&lt;p&gt;Don't be afraid! Basic Makefile is pretty easy after this short "trick".&lt;/p&gt;

&lt;p&gt;For example let's imagine you have command line to compile your little C code like this:&lt;/p&gt;

&lt;p&gt;gcc -I/usr/local/include -L/usr/local/lib -Wall -o my-c-app.out my-c-app.c&lt;/p&gt;

&lt;p&gt;just open your favorite text editor and paste this command inside&lt;/p&gt;

&lt;p&gt;now you just need to split it to sort of variables for make, you can choose names you want (there are some common practices, btw)&lt;br&gt;
let's split it  &lt;/p&gt;

&lt;p&gt;CC = gcc&lt;/p&gt;

&lt;p&gt;OBJECTS = my-c-app.c&lt;/p&gt;

&lt;p&gt;OBJECT_OUT = my-c-app.out&lt;/p&gt;

&lt;p&gt;CFLAGS = -Wall&lt;/p&gt;

&lt;p&gt;INCLUDES = -I/usr/local/include -L/usr/local/lib&lt;/p&gt;

&lt;p&gt;and swap values in your command with this variables &lt;/p&gt;

&lt;p&gt;$(CC) $(INCLUDES) $(CFLAGS) -o $(OBJECT_OUT) $(OBJECTS)&lt;/p&gt;

&lt;p&gt;and last touch - we need to add &lt;em&gt;target&lt;/em&gt; for &lt;strong&gt;make&lt;/strong&gt; - default one is &lt;em&gt;all&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;so we transform our command line to &lt;br&gt;
all: $(OBJECTS)&lt;br&gt;
    $(CC) $(INCLUDES) $(CFLAGS) -o $(OBJECT_OUT) $(OBJECTS) (this line always MUST start with Tab !!!)&lt;/p&gt;

&lt;p&gt;so, now we have file like this&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight make"&gt;&lt;code&gt;&lt;span class="nv"&gt;CC&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; gcc

&lt;span class="nv"&gt;OBJECTS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; my-c-app.c

&lt;span class="nv"&gt;OBJECT_OUT&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; my-c-app.out

&lt;span class="nv"&gt;CFLAGS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nt"&gt;-Wall&lt;/span&gt;

&lt;span class="nv"&gt;INCLUDES&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nt"&gt;-I&lt;/span&gt;/usr/local/include &lt;span class="nt"&gt;-L&lt;/span&gt;/usr/local/lib

&lt;span class="nl"&gt;all&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;$(OBJECTS)&lt;/span&gt;
    &lt;span class="nv"&gt;$(CC)&lt;/span&gt; &lt;span class="nv"&gt;$(INCLUDES)&lt;/span&gt; &lt;span class="nv"&gt;$(CFLAGS)&lt;/span&gt; &lt;span class="nt"&gt;-o&lt;/span&gt; &lt;span class="nv"&gt;$(OBJECT_OUT)&lt;/span&gt; &lt;span class="nv"&gt;$(OBJECTS)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;now you can run &lt;em&gt;make&lt;/em&gt; and enjoy beginning of your dive to Makefile magic! &lt;/p&gt;

&lt;p&gt;Good Luck! &lt;/p&gt;

</description>
      <category>c</category>
      <category>programming</category>
      <category>make</category>
      <category>beginners</category>
    </item>
    <item>
      <title>How to (re-)install OpenBSD on old disklabel</title>
      <dc:creator>Slava "nerfur" Voronzoff</dc:creator>
      <pubDate>Sat, 12 Jan 2019 18:55:14 +0000</pubDate>
      <link>https://dev.to/nerfur/how-to-re-install-openbsd-on-old-disklabel-21k2</link>
      <guid>https://dev.to/nerfur/how-to-re-install-openbsd-on-old-disklabel-21k2</guid>
      <description>&lt;p&gt;Once I found my good old samsung netbook (little NC10 model, it was amazing laptop for my needs) and found that it has good old OpenBSD (I expected that).&lt;/p&gt;

&lt;p&gt;But problem arise... it was really old 5.7 version. Time to update! But how? Official FAQ only supports close versions upgrades. Do it step by step? Too much time... Reinstall! But I don't remember, maybe something important already exists at home.&lt;/p&gt;

&lt;p&gt;I quickly check documentation and can't find info how to preserve one of disklabel partitions while installing... but I found how it can be achieved.&lt;/p&gt;

&lt;p&gt;IMPORTANT. I ALWAYS USE SEPARATED PARTITIONS FOR /HOME AND RECOMMEND IT TO YOU!&lt;/p&gt;

&lt;p&gt;Boot your installation media, get to fdisk part &lt;br&gt;
Choose O for using already existing OpenBSD disk partition.&lt;br&gt;
Next page will be default auto disklabel...&lt;/p&gt;

&lt;p&gt;DONTPANIC;)&lt;/p&gt;

&lt;p&gt;Just choose [C]ustom layout, check with 'p' that you see your old disklabels, now use 'n' to set mount points for all labels that you WANT to format. &lt;/p&gt;

&lt;p&gt;!!! DONT TOUCH LABEL(s) THAT YOU WANT TO SAVE DATA ON !!!&lt;/p&gt;

&lt;p&gt;after setting all mount points for "new" labels use 'q' to save&amp;amp;exit and watch how only "mounted" labels got formated :)&lt;/p&gt;

&lt;p&gt;Continue installation and don't forget to fix /mnt/etc/fstab for other mount points before reboot.&lt;/p&gt;

&lt;p&gt;Voila! &lt;/p&gt;

</description>
      <category>openbsd</category>
      <category>faq</category>
      <category>install</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
