<?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: tkhadir</title>
    <description>The latest articles on DEV Community by tkhadir (@tkhadir).</description>
    <link>https://dev.to/tkhadir</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%2F384109%2Ffba778a3-a96b-4449-84e4-4af349feaf88.png</url>
      <title>DEV Community: tkhadir</title>
      <link>https://dev.to/tkhadir</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tkhadir"/>
    <language>en</language>
    <item>
      <title>[fake-api] how to mock a fake reponse when developing</title>
      <dc:creator>tkhadir</dc:creator>
      <pubDate>Wed, 10 Mar 2021 21:12:56 +0000</pubDate>
      <link>https://dev.to/tkhadir/fake-api-how-to-mock-a-fake-reponse-when-developing-5h9j</link>
      <guid>https://dev.to/tkhadir/fake-api-how-to-mock-a-fake-reponse-when-developing-5h9j</guid>
      <description>&lt;p&gt;When working on developing an api i have faced an issue : how to deal with an api that is not already developed ?&lt;/p&gt;

&lt;p&gt;Then i had the idea to mock the response using faker.js library.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.npmjs.com/package/faker"&gt;https://www.npmjs.com/package/faker&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And you how do you do to mock your api's ?&lt;/p&gt;

</description>
      <category>node</category>
      <category>javascript</category>
      <category>faker</category>
    </item>
    <item>
      <title>[AOC] 25 days of happiness</title>
      <dc:creator>tkhadir</dc:creator>
      <pubDate>Fri, 25 Dec 2020 07:24:58 +0000</pubDate>
      <link>https://dev.to/tkhadir/aoc-25-days-of-happiness-1af5</link>
      <guid>https://dev.to/tkhadir/aoc-25-days-of-happiness-1af5</guid>
      <description>&lt;p&gt;&lt;a href="https://adventofcode.com/"&gt;https://adventofcode.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I had pleasure to try solving every day puzzles of advent of code 2020 using java/ spring-boot to develop my app that i used for this purpose :&lt;/p&gt;

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

&lt;p&gt;i this app we can select the day to solve and then get the solution in return :&lt;/p&gt;

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

&lt;p&gt;And you what you used to achieve this goal ?&lt;/p&gt;

&lt;p&gt;Thank you&lt;/p&gt;

</description>
      <category>adventofcode</category>
      <category>java</category>
      <category>spring</category>
    </item>
    <item>
      <title>[crypto][nodejs] my encrypt/decrypt file cli tool</title>
      <dc:creator>tkhadir</dc:creator>
      <pubDate>Sun, 22 Nov 2020 00:54:34 +0000</pubDate>
      <link>https://dev.to/tkhadir/thinkoutofthebox-schedule-task-to-encrypt-previous-stored-database-files-to-secure-them-513f</link>
      <guid>https://dev.to/tkhadir/thinkoutofthebox-schedule-task-to-encrypt-previous-stored-database-files-to-secure-them-513f</guid>
      <description>&lt;p&gt;By using crypto library for nodejs, i tried to encrypt/decrypt files using this library and it's work very fine, here is my little cli tool in my github :&lt;br&gt;
&lt;a href="https://nodejs.org/api/crypto.html"&gt;https://nodejs.org/api/crypto.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/tkhadir/node-crypt-helper"&gt;https://github.com/tkhadir/node-crypt-helper&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;By the way i'm wondering if it's good for an information system to backup database and store this in encrypted form and decrypt this database when we want to analyze it or get data from it.&lt;/p&gt;

&lt;p&gt;we can imagine lot of securing tools using this library, share with me your ideas if you have.&lt;/p&gt;

&lt;p&gt;Thank you.&lt;/p&gt;

</description>
      <category>crypto</category>
      <category>node</category>
      <category>javascript</category>
    </item>
    <item>
      <title>[docker] Another small tool that i'm working on</title>
      <dc:creator>tkhadir</dc:creator>
      <pubDate>Fri, 13 Nov 2020 18:18:20 +0000</pubDate>
      <link>https://dev.to/tkhadir/docker-another-small-tool-that-i-m-working-on-5bc7</link>
      <guid>https://dev.to/tkhadir/docker-another-small-tool-that-i-m-working-on-5bc7</guid>
      <description>&lt;p&gt;A small adventure that i took recently is to try developping a small tool to control my containers deployement by consuming docker api engine.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.docker.com/engine/api/v1.40/"&gt;https://docs.docker.com/engine/api/v1.40/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;My experience with using rancher was good so i tried to reproduce that with my own tool.&lt;/p&gt;

&lt;p&gt;first of all you will need to edit and restart your docker.service file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;vi /lib/systemd/system/docker.service
#edit this line like : 
ExecStart=/usr/bin/dockerd -H=fd:// -H=tcp://0.0.0.0:5555
systemctl daemon-reload
sudo service docker restart
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can contribue : &lt;a href="https://github.com/tkhadir/docker-manager"&gt;https://github.com/tkhadir/docker-manager&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thank you :)&lt;/p&gt;

&lt;h2&gt;
  
  
  List of images
&lt;/h2&gt;

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

&lt;h2&gt;
  
  
  List of containers running
&lt;/h2&gt;

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

</description>
      <category>docker</category>
      <category>container</category>
      <category>javascript</category>
      <category>tooling</category>
    </item>
    <item>
      <title>Little handy crontab helper tool</title>
      <dc:creator>tkhadir</dc:creator>
      <pubDate>Tue, 10 Nov 2020 19:45:48 +0000</pubDate>
      <link>https://dev.to/tkhadir/little-handy-crontab-helper-tool-4kh8</link>
      <guid>https://dev.to/tkhadir/little-handy-crontab-helper-tool-4kh8</guid>
      <description>&lt;p&gt;Cronify is a litte handy tool that i have developed, it can help you to schedule shell scripts and then check execution status of your script.&lt;/p&gt;

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

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

&lt;p&gt;A form where you can enter your script and another card in the right to see what you have already scheduled.&lt;/p&gt;

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

&lt;p&gt;In bottom another part where you can see your script execution results.&lt;/p&gt;

&lt;p&gt;This tool is in development, you can get it from github and contribute in if you want :)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/tkhadir/cronify"&gt;https://github.com/tkhadir/cronify&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thank you&lt;/p&gt;

</description>
      <category>crontab</category>
      <category>javascript</category>
      <category>node</category>
      <category>shell</category>
    </item>
    <item>
      <title>The need to monitor json data quality in the database</title>
      <dc:creator>tkhadir</dc:creator>
      <pubDate>Sat, 07 Nov 2020 20:16:14 +0000</pubDate>
      <link>https://dev.to/tkhadir/the-need-to-monitor-json-type-data-in-the-database-2lcp</link>
      <guid>https://dev.to/tkhadir/the-need-to-monitor-json-type-data-in-the-database-2lcp</guid>
      <description>&lt;p&gt;With the use of json-type data as an exchange model between applications within an information system, it is now more than necessary to check the quality of the data that circulates.&lt;/p&gt;

&lt;p&gt;To avoid ending up with unusable data, I used the jsonschema library for example to check the consistency of the data circulating in an information system.&lt;/p&gt;

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

&lt;p&gt;From this principle emerges the need to have real-time monitoring tools which make it possible to verify the quality of the data present in an information system.&lt;/p&gt;

&lt;p&gt;For this I developed a small prototype using nodejs, but this need to check the quality of the data that circulates also applies to xml and other type documents.&lt;/p&gt;

&lt;h1&gt;
  
  
  current data consistency status
&lt;/h1&gt;

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

&lt;h1&gt;
  
  
  input data analyzed
&lt;/h1&gt;

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

&lt;p&gt;You can contribute, my github :&lt;br&gt;
&lt;a href="https://github.com/tkhadir"&gt;https://github.com/tkhadir&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;By this way we can imagine for example a mongodb plugin that can detect incoherent documents for some personal criteria, the same plugin can be used for the rest of nosql solutions database.&lt;/p&gt;

&lt;p&gt;Thank you&lt;/p&gt;

</description>
      <category>node</category>
      <category>json</category>
      <category>schema</category>
      <category>data</category>
    </item>
  </channel>
</rss>
