<?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: Ahmad Hidayatullah</title>
    <description>The latest articles on DEV Community by Ahmad Hidayatullah (@ahmadhidayatullah).</description>
    <link>https://dev.to/ahmadhidayatullah</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%2F445855%2F3ca496f1-fb3d-4c2f-a184-215143aa8042.jpg</url>
      <title>DEV Community: Ahmad Hidayatullah</title>
      <link>https://dev.to/ahmadhidayatullah</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ahmadhidayatullah"/>
    <language>en</language>
    <item>
      <title>Simple switch PHP on Ubuntu</title>
      <dc:creator>Ahmad Hidayatullah</dc:creator>
      <pubDate>Thu, 02 Mar 2023 04:54:00 +0000</pubDate>
      <link>https://dev.to/ahmadhidayatullah/simple-switch-php-on-ubuntu-1gck</link>
      <guid>https://dev.to/ahmadhidayatullah/simple-switch-php-on-ubuntu-1gck</guid>
      <description>&lt;p&gt;&lt;code&gt;sudo update-alternatives --config php&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--aGjFrwZJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vw8ju3fu4el6do87c82c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--aGjFrwZJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vw8ju3fu4el6do87c82c.png" alt="Image description" width="808" height="206"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Script to manipulate user history</title>
      <dc:creator>Ahmad Hidayatullah</dc:creator>
      <pubDate>Fri, 20 Jan 2023 08:58:43 +0000</pubDate>
      <link>https://dev.to/ahmadhidayatullah/script-to-manipulate-user-history-37eg</link>
      <guid>https://dev.to/ahmadhidayatullah/script-to-manipulate-user-history-37eg</guid>
      <description>&lt;p&gt;Here i am trying to handle when user click back on browser &lt;/p&gt;

&lt;p&gt;&lt;code&gt;//prevent back button&lt;br&gt;
        history.pushState(null, null, location.href);&lt;br&gt;
        window.onpopstate = function () {&lt;br&gt;
            window.location.href = "{{ route('user.index') }}";&lt;br&gt;
        };&lt;/code&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>tooling</category>
      <category>claude</category>
    </item>
    <item>
      <title>Fixing libssl1.1 and Installing MongoDb on Ubuntu 22.04.1 LTS</title>
      <dc:creator>Ahmad Hidayatullah</dc:creator>
      <pubDate>Sat, 13 Aug 2022 17:08:00 +0000</pubDate>
      <link>https://dev.to/ahmadhidayatullah/fixing-libssl11-and-installing-mongodb-on-ubuntu-22041-lts-2ihk</link>
      <guid>https://dev.to/ahmadhidayatullah/fixing-libssl11-and-installing-mongodb-on-ubuntu-22041-lts-2ihk</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffbqtl4i9qij00k91nwnn.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffbqtl4i9qij00k91nwnn.jpeg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I just upgraded my ubuntu from 18 to 22.04 and i got a problem when installing mongodb on my local.&lt;/p&gt;

&lt;h2&gt;
  
  
  Table Of Contents
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Adding focal-security to sources list&lt;/li&gt;
&lt;li&gt;Installing libssl1.1&lt;/li&gt;
&lt;li&gt;Download and configure mongoBb&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  1. Adding focal-security to sources list &lt;a&gt;&lt;/a&gt;
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;echo "deb &lt;a href="http://security.ubuntu.com/ubuntu" rel="noopener noreferrer"&gt;http://security.ubuntu.com/ubuntu&lt;/a&gt; focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list&lt;br&gt;
deb &lt;a href="http://security.ubuntu.com/ubuntu" rel="noopener noreferrer"&gt;http://security.ubuntu.com/ubuntu&lt;/a&gt; focal-security main&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzlwihejsoy4m9mg3ud8b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzlwihejsoy4m9mg3ud8b.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Installing libssl1.1 &lt;a&gt;&lt;/a&gt;
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;sudo apt install libssl1.1&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F985lpjc0vwyv5nrgb18y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F985lpjc0vwyv5nrgb18y.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Download and configure mongoDb &lt;a&gt;&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;In this step we will download the .deb file. You can download the file &lt;a href="https://www.mongodb.com/try/download/community" rel="noopener noreferrer"&gt;here&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;Once download was successful then open the terminal and go to the directory then run command:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;sudo dpkg -i mongodb-org-server_6.0.0_amd64.deb &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcreqccffc1vryhgyala7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcreqccffc1vryhgyala7.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To verify your MongoDB, you can run command to check the status:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;sudo systemctl status mongod&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;To run the MongoDB service, you can run command:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;sudo systemctl start mongod&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;To set the auto-start to your system, you can run command:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;sudo systemctl enable mongod&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu87dzk82h9ics2byub9p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu87dzk82h9ics2byub9p.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Reference:&lt;br&gt;
&lt;a href="https://youtu.be/YuJPpCfuSJ0" rel="noopener noreferrer"&gt;link&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ubuntu</category>
      <category>mongodb</category>
    </item>
  </channel>
</rss>
