<?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: Osman Forhad</title>
    <description>The latest articles on DEV Community by Osman Forhad (@osmanforhad).</description>
    <link>https://dev.to/osmanforhad</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%2F353448%2Ff6d77dba-0592-4424-9d8e-4eedeee9377b.jpg</url>
      <title>DEV Community: Osman Forhad</title>
      <link>https://dev.to/osmanforhad</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/osmanforhad"/>
    <language>en</language>
    <item>
      <title>How to Solve tailwind css configuration not found</title>
      <dc:creator>Osman Forhad</dc:creator>
      <pubDate>Mon, 18 Nov 2024 09:59:15 +0000</pubDate>
      <link>https://dev.to/osmanforhad/how-to-solve-tailwind-css-configuration-not-found-when-using-shadcnui-12o2</link>
      <guid>https://dev.to/osmanforhad/how-to-solve-tailwind-css-configuration-not-found-when-using-shadcnui-12o2</guid>
      <description>&lt;p&gt;Recently i have been working in a React js project where also include vite and shadcn/ui&lt;br&gt;
and once i go to setup my project with shadcn-ui and i just enterd &lt;strong&gt;npx shadcn@latest init&lt;/strong&gt; command into my terminal.&lt;br&gt;
after a few seconds its show me an warring like bellow: &lt;br&gt;
&lt;strong&gt;tailwind css configuration not found&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;and then i thought what was the problem and looking for solution.&lt;br&gt;
after a few times i understand, i have to declare in my global css file, that i am going to use talwind.&lt;br&gt;
 and then &lt;strong&gt;i go to my react project and then src folder and open index.css file&lt;/strong&gt;.&lt;br&gt;
and now in the top of the index.css file i imported this three library:&lt;br&gt;
&lt;strong&gt;&lt;a class="mentioned-user" href="https://dev.to/tailwind"&gt;@tailwind&lt;/a&gt; base;&lt;br&gt;
&lt;a class="mentioned-user" href="https://dev.to/tailwind"&gt;@tailwind&lt;/a&gt; components;&lt;br&gt;
&lt;a class="mentioned-user" href="https://dev.to/tailwind"&gt;@tailwind&lt;/a&gt; utilities;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;and then again entered &lt;strong&gt;npx shadcn@latest init&lt;/strong&gt; command. now it successfully installed.&lt;/p&gt;

&lt;p&gt;Note: i have so many times to try upload error and solutions screenshot, but i am not sure why devto blog can't enable to upload my images.&lt;/p&gt;

&lt;p&gt;Thank you&lt;br&gt;
Happy Coding&lt;br&gt;
.&lt;br&gt;
osman forhad&lt;br&gt;
Full-Stack Developer💻 (Mobile App &amp;amp; Web App)&lt;br&gt;
&lt;a href="mailto:developer.osmanforhad@gmail.com"&gt;developer.osmanforhad@gmail.com&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to Enable Debug mode in WordPress</title>
      <dc:creator>Osman Forhad</dc:creator>
      <pubDate>Wed, 06 Apr 2022 06:23:49 +0000</pubDate>
      <link>https://dev.to/osmanforhad/how-to-enable-debug-mode-in-wordpress-3cae</link>
      <guid>https://dev.to/osmanforhad/how-to-enable-debug-mode-in-wordpress-3cae</guid>
      <description>&lt;p&gt;To enable debugging on your WordPress site, please follow the steps below.&lt;/p&gt;

&lt;p&gt;1) Locating the &lt;strong&gt;wp-config.php&lt;/strong&gt; file&lt;/p&gt;

&lt;p&gt;2) &lt;strong&gt;Editing the wp-config.php file&lt;/strong&gt;&lt;br&gt;
Once your site files are open, you’ll need to open wp-config.php for editing. This will be located in the root folder of your site.&lt;/p&gt;

&lt;p&gt;The wp-config file contains site-specific configuration settings, such as database information and, potentially, settings added by your hosting provider. For debugging, you’ll need to find this line of code (will generally be near bottom of file):&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;define( 'WP_DEBUG', true );&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;3) Adding your debug code&lt;br&gt;
&lt;strong&gt;Copy and paste this code snippet over the line of code mentioned in Step 2&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;`// Enable WP_DEBUG mode&lt;br&gt;
define( 'WP_DEBUG', true );&lt;/p&gt;

&lt;p&gt;// Enable Debug logging to the /wp-content/debug.log file&lt;br&gt;
define( 'WP_DEBUG_LOG', true );&lt;/p&gt;

&lt;p&gt;// Disable display of errors and warnings&lt;br&gt;
define( 'WP_DEBUG_DISPLAY', false );&lt;br&gt;
@ini_set( 'display_errors', 0 );&lt;/p&gt;

&lt;p&gt;// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)&lt;br&gt;
define( 'SCRIPT_DEBUG', true );`&lt;/p&gt;

&lt;p&gt;OR Follow Like Bellow Screen Shot:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--msrfkcxf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6vfrs5165s9d32m7qocc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--msrfkcxf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6vfrs5165s9d32m7qocc.png" alt="Enabling debug in WordPress" width="880" height="364"&gt;&lt;/a&gt;&lt;br&gt;
.&lt;br&gt;
Thank you&lt;br&gt;
Happy Coding&lt;br&gt;
.&lt;br&gt;
osman forhad&lt;br&gt;
Full-Stack Developer💻 (Mobile App &amp;amp; Web App)&lt;br&gt;
&lt;a href="mailto:developer.osmanforhad@gmail.com"&gt;developer.osmanforhad@gmail.com&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Laravel artisan commands error : Failed to parse dotenv file due to an invalid name</title>
      <dc:creator>Osman Forhad</dc:creator>
      <pubDate>Thu, 31 Mar 2022 19:45:58 +0000</pubDate>
      <link>https://dev.to/osmanforhad/laravel-artisan-commands-error-failed-to-parse-dotenv-file-due-to-an-invalid-name-47h7</link>
      <guid>https://dev.to/osmanforhad/laravel-artisan-commands-error-failed-to-parse-dotenv-file-due-to-an-invalid-name-47h7</guid>
      <description>&lt;p&gt;every time I run php artisan commands I got this error&lt;br&gt;
The environment file is invalid! Failed to parse dotenv file due to an invalid name.&lt;br&gt;
.&lt;br&gt;
to solve this i just replace the APP_NAME which is like below:&lt;br&gt;
&lt;strong&gt;APP_NAME=MY Application&lt;/strong&gt;&lt;br&gt;
to&lt;br&gt;
&lt;strong&gt;APP_NAME="MY Application"&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;and its solve my issues&lt;br&gt;
.&lt;br&gt;
Thank you&lt;br&gt;
Happy Coding&lt;br&gt;
.&lt;br&gt;
osman forhad&lt;br&gt;
Full-Stack Developer💻 (Mobile App &amp;amp; Web App)&lt;br&gt;
&lt;a href="mailto:developer.osmanforhad@gmail.com"&gt;developer.osmanforhad@gmail.com&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>React js Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API</title>
      <dc:creator>Osman Forhad</dc:creator>
      <pubDate>Wed, 30 Mar 2022 19:38:41 +0000</pubDate>
      <link>https://dev.to/osmanforhad/react-js-warning-reactdomrender-is-no-longer-supported-in-react-18-use-createroot-instead-until-you-switch-to-the-new-api-1jhh</link>
      <guid>https://dev.to/osmanforhad/react-js-warning-reactdomrender-is-no-longer-supported-in-react-18-use-createroot-instead-until-you-switch-to-the-new-api-1jhh</guid>
      <description>&lt;p&gt;Recently i have been working in a React js project its show me an warning in my Browser Console which is like below screen shot:&lt;/p&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%2F9kp771c0jfhue8ilc8l7.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%2F9kp771c0jfhue8ilc8l7.PNG" alt="ReactDOM.render is no longer supported in React 18"&gt;&lt;/a&gt;&lt;br&gt;
don't worry i will Show you How to Solve this type of warning.&lt;br&gt;
When react js warning &lt;strong&gt;ReactDOM.render is no longer supported in React 18&lt;/strong&gt;&lt;br&gt;
is happen then my index.js file is look like bellow screenshot:&lt;/p&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%2F5uqd0mzte0iaa0p8lplt.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%2F5uqd0mzte0iaa0p8lplt.png" alt="ReactDOM.render is no longer supported in React 18"&gt;&lt;/a&gt;&lt;br&gt;
to solve the &lt;strong&gt;ReactDOM.render is no longer supported in React 18&lt;/strong&gt; Warning i just change my index.js file. after changed index.js file now my index.js is look like below Screen shot:&lt;/p&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%2Fn0cfuhg7cu8jf50pgbuj.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%2Fn0cfuhg7cu8jf50pgbuj.png" alt="ReactDOM.render is no longer supported in React 18-Solution"&gt;&lt;/a&gt;&lt;br&gt;
That's it now the warning is gone. so finally Browser console is look like:&lt;/p&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%2Fyivprz0dvdlcr6rud8rc.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%2Fyivprz0dvdlcr6rud8rc.PNG" alt="ReactDOM.render is no longer supported in React 18-Solution"&gt;&lt;/a&gt;&lt;br&gt;
Thank you&lt;br&gt;
Happy Coding&lt;br&gt;
.&lt;br&gt;
osman forhad&lt;br&gt;
Full-Stack Developer💻 (Mobile App &amp;amp; Web App)&lt;br&gt;
&lt;a href="mailto:developer.osmanforhad@gmail.com"&gt;developer.osmanforhad@gmail.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>reactnative</category>
      <category>warning</category>
    </item>
    <item>
      <title>The uri parameter to openUri must be a string mongoose.connection or mongoose.createConnection is a string (Solution)</title>
      <dc:creator>Osman Forhad</dc:creator>
      <pubDate>Sun, 13 Mar 2022 06:36:13 +0000</pubDate>
      <link>https://dev.to/osmanforhad/the-uri-parameter-to-openuri-must-be-a-string-mongoosecreateconnection-is-a-string-solution-31j2</link>
      <guid>https://dev.to/osmanforhad/the-uri-parameter-to-openuri-must-be-a-string-mongoosecreateconnection-is-a-string-solution-31j2</guid>
      <description>&lt;p&gt;i have been working in a Node js small project where i use MongoDB as Database and use mongoose as a Data Modeling Library.&lt;br&gt;
but when i tried to connect to Database its show an which is: &lt;strong&gt;Mongoose Error The uri parameter to openUri must be a string-got undefined Make sure the first parameter to mongoose.connect &lt;br&gt;
 or mongoose.createConnection is a string&lt;/strong&gt;&lt;br&gt;
the actual error screen shot is:&lt;/p&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%2Fc6rvxxqjeww7dx0sfmj2.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%2Fc6rvxxqjeww7dx0sfmj2.PNG" alt="The uri parameter to openUri must be a string-got undefined Make sure the first parameter to mongoose.connect &amp;lt;br&amp;gt;
 mongoose.createConnection is a string "&gt;&lt;/a&gt;&lt;br&gt;
after seen this type of error i want to fix why this is happen cause i am 100% confident that there is no any coding issues and i have written well organize code. so i try to find out the problem after few times i got what i did and what is my mistake and then i solve the issue and i decide to share this solution with all of you the internet people.&lt;br&gt;
So, to solve &lt;strong&gt;The uri parameter to openUri must be a string-got undefined Make sure the first parameter to mongoose.connect &lt;br&gt;
 or mongoose.createConnection is a string&lt;/strong&gt;&lt;br&gt;
i go to my API index file and place the dbConfig.js file under the dotenv config file. so why dotenv because i have created env file and use dotenv libraray.&lt;br&gt;
and now i want to show 2 screen shot where the first one is hold the &lt;strong&gt;Mongoose Error:  mongoose.connect or mongoose.createConnection is a string&lt;/strong&gt;&lt;br&gt;
and the second one is the solution of this type of error i men to say what i exactly did to avoid this type of error.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;1 . Screen shot of the code which generate Mongoose connection String error:&lt;/strong&gt;
&lt;/h2&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%2Fim4h8xn42jzgtoa3xzue.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%2Fim4h8xn42jzgtoa3xzue.png" alt="Mongoose Error: mongoose.createConnection is a string"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;2. Screen shot of the code How i solve or avoid Mongoose connection String error:&lt;/strong&gt;
&lt;/h2&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%2Fsry9vr9yapmukakfjt01.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%2Fsry9vr9yapmukakfjt01.png" alt="The uri parameter to openUri must be a string-got undefined Make sure the first parameter to mongoose.connect Solution"&gt;&lt;/a&gt;&lt;br&gt;
this all solve my Mongoose Error: Connection String Error. and after solution the terminal scenario is:&lt;/p&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%2Fflb4880ucmqqxy1tx11v.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%2Fflb4880ucmqqxy1tx11v.PNG" alt="Imongoose.connect &amp;lt;br&amp;gt;
 mongoose.createConnection is a string error solution"&gt;&lt;/a&gt;&lt;br&gt;
.&lt;br&gt;
That's it&lt;br&gt;
Hope this will help you&lt;br&gt;
Happy Coding&lt;br&gt;
.&lt;br&gt;
osman forhad&lt;br&gt;
Full-Stack Developer💻 (Mobile App &amp;amp; Web App)&lt;br&gt;
&lt;a href="mailto:developer.osmanforhad@gmail.com"&gt;developer.osmanforhad@gmail.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>mongooseerror</category>
      <category>mongooseconnectionerror</category>
      <category>mongodberror</category>
    </item>
    <item>
      <title>React-js-Identifier-has-Already-been-Declared-(solution)</title>
      <dc:creator>Osman Forhad</dc:creator>
      <pubDate>Sat, 12 Mar 2022 05:02:17 +0000</pubDate>
      <link>https://dev.to/osmanforhad/react-js-identifier-text-has-already-been-declared-solution-4b2k</link>
      <guid>https://dev.to/osmanforhad/react-js-identifier-text-has-already-been-declared-solution-4b2k</guid>
      <description>&lt;p&gt;i have been working in a React js small project the project purpose is Build QrCode Geneator.&lt;br&gt;
So when i go to run this project i got an error which is &lt;strong&gt;Identifier-Text-has-Already-been-Declared&lt;/strong&gt;&lt;br&gt;
the errors screen shot is like bellow:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--EVC1WTnE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dti6tsbbd3oao3meaqg4.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--EVC1WTnE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dti6tsbbd3oao3meaqg4.PNG" alt="React js Identifier already declared error (solution) " width="880" height="411"&gt;&lt;/a&gt;&lt;br&gt;
after seen this type of error i fell wonder and think why this is happen and then i try to find where is the problem, why this is happening. after thinking some time i realize and find what i did and that's all of my mistake. When i solve the issue i think it's very funny and interesting so i decide to share this with all of you internet people.&lt;/p&gt;

&lt;p&gt;So why &lt;strong&gt;Identifier-Text-has-Already-been-Declared&lt;/strong&gt; error happen: this all of my mistake &lt;strong&gt;i have declared my Component File Name is Text.js but Text is a React Component which i also call from React-bootstrap&lt;/strong&gt;.. ha ha ... what a funny mistake i did. so what was the actual scenario. Please see The error scenario in below Screen shot:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--GFfqUlDx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/utjrgzj7iz43b6r6hcz9.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--GFfqUlDx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/utjrgzj7iz43b6r6hcz9.PNG" alt="Identifier already declared error" width="880" height="411"&gt;&lt;/a&gt;&lt;br&gt;
So i solve this, How i solve this:&lt;br&gt;
it's very easy i think you already understand how i was solve this.. ha ha ....&lt;br&gt;
&lt;strong&gt;i just rename my component file from Text.js to Handler.js . cause Text is Component of React js and its a React js Own Component and we cant import any Component twice in React js.&lt;/strong&gt;&lt;br&gt;
and this is the Reason why i am getting React js &lt;strong&gt;Identifier already declared error&lt;/strong&gt;&lt;br&gt;
after solve the issue my source code scenario is like bellow screen shot:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--XdS5pK1J--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qpz0bqh5honezc5ovd19.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--XdS5pK1J--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qpz0bqh5honezc5ovd19.png" alt="Identifier-Text-has-Already-been-Declared-solution" width="880" height="1094"&gt;&lt;/a&gt;&lt;br&gt;
and that's it&lt;br&gt;
Happy Coding&lt;br&gt;
.&lt;br&gt;
osman forhad&lt;br&gt;
Full-Stack Developer💻 (Mobile App &amp;amp; Web App)&lt;br&gt;
&lt;a href="mailto:developer.osmanforhad@gmail.com"&gt;developer.osmanforhad@gmail.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>errors</category>
      <category>reacterror</category>
      <category>javascripterrror</category>
    </item>
    <item>
      <title>System Design এর টুকি টাকি</title>
      <dc:creator>Osman Forhad</dc:creator>
      <pubDate>Wed, 09 Mar 2022 16:42:35 +0000</pubDate>
      <link>https://dev.to/osmanforhad/system-design-er-ttuki-ttaaki-5g4a</link>
      <guid>https://dev.to/osmanforhad/system-design-er-ttuki-ttaaki-5g4a</guid>
      <description>&lt;p&gt;System Design সফটওয়্যার ইঞ্জিনিয়ারিং এর এমন একটা গুরুত্ব ফিল্ড যাতে কাজ করতে হলে চারিদিকের চারটা চোখ খুলে নিয়ে ফিউচার সফটওয়্যার (বা প্লাটফর্ম) এর আপাদমস্তক গবেষনা করতে হয়।&lt;br&gt;
সফটওয়্যারের (বা সফটওয়্যার প্লাটফর্মের) রিকয়ারমেন্ট এনালাইসিস করার পর আপনাকে&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;প্রোগ্রামিং ল্যাংগুয়েজ সিলেকশন নিয়ে চিন্তা করতে হবে&lt;/li&gt;
&lt;li&gt;ফ্রেমওয়ার্ক কোনটা ইউজ করবেন সেটা নিয়ে ভাবতে হয়&lt;/li&gt;
&lt;li&gt;ডাটাবেজ সিস্টেম কোনটা ব্যবহার করবেন সেটা নিয়ে চিন্তা করতে হয়&lt;/li&gt;
&lt;li&gt;ডাটাবেজ ডিজাইন করার পিছনে বিস্তর মাথা খাঁটাতে হয়&lt;/li&gt;
&lt;li&gt;অথেনটিকেশন ও অথোরাইজেশন কিভাবে হবে সেটা নিয়ে ভাবনা করতে হয়&lt;/li&gt;
&lt;li&gt;দিন ও রাতের কোন সময়ে ইউজার বেশি থাকতে পারে সেটা এনালাইসিস করতে হয়&lt;/li&gt;
&lt;li&gt;পৃথিবীর কোন লোকেশন থেকে আপনার সফটওয়্যার বেশি ব্যবহার হবে তা নিয়ে গবেষনা করতে হয়&lt;/li&gt;
&lt;li&gt;এবার সেই লোকেশনের কোথাও একজায়গায় সার্ভার রাখতে হয় (সার্ভার কিনতে হয় বা সার্ভার ভাড়া করতে হয় যাই বলেন)&lt;/li&gt;
&lt;li&gt;একাধিক সার্ভার থাকলে তাদের নিজেদের মধ্যে স্মুথ কমিউনিকেশনের জন্য আবার নেটওয়ার্ক ডিজাইন করতে হয়&lt;/li&gt;
&lt;li&gt;সবগুলো সার্ভার এবং সার্ভারে ডেপ্লয় করা সফটওয়্যার কম্পোনেন্টকে সব সময় আপ এন্ড রানিং রাখার জন্য আবার আলাদা টুলস (ধরেন Kubernetes) কনফিগারেশনের বিষয় মাথায় রাখতে হয় ...&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;আরো কত কি যে মাথার মধ্যে দলা-মোচড় করতে হয় তার ইয়ত্তা নেই। এসমস্ত জ্ঞান আবার শুধু ক্লাস করে, ভিডিও দেখেই শিখে ফেলা যায়না। সময়ের সাথে হাতকে এলোপাতারি কাজ দ্বারা ঘষামাজা করতে করতে অর্জন হয়।&lt;/p&gt;

</description>
      <category>softwaresystemdesign</category>
      <category>systemdesign</category>
      <category>design</category>
      <category>software</category>
    </item>
    <item>
      <title>ndoe-js-cannot-find-module-error-solution or node:internal/modules/cjs/loader:936 throw err; ^(Solution)</title>
      <dc:creator>Osman Forhad</dc:creator>
      <pubDate>Thu, 03 Mar 2022 08:03:37 +0000</pubDate>
      <link>https://dev.to/osmanforhad/ndoe-js-cannot-find-module-errorsolution-nodeinternalmodulescjsloader936-throw-err--9kd</link>
      <guid>https://dev.to/osmanforhad/ndoe-js-cannot-find-module-errorsolution-nodeinternalmodulescjsloader936-throw-err--9kd</guid>
      <description>&lt;p&gt;trying to run node js project which is develop in express js and other necessary library. after writing code when i decide to run the project then i wrote the command &lt;strong&gt;npm start&lt;/strong&gt; and alternatively &lt;strong&gt;nodemon&lt;/strong&gt; command. its show me an error which is below screenshot:&lt;/p&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%2Fm82nskv0pzy3fo234xqq.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%2Fm82nskv0pzy3fo234xqq.PNG" alt="node:internal/modules/cjs/loader:936&amp;lt;br&amp;gt;
  throw err;"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;after this happening i was thinking and search why this is happen and why terminal show me &lt;code&gt;node:internal/modules/cjs/loader:936&lt;br&gt;
  throw err;&lt;br&gt;
  ^&lt;/code&gt;&lt;br&gt;
after wasting few times i find out and figured the mistake which is done by me. so i decide to share this with all of you guys (the internet people)&lt;br&gt;
.&lt;br&gt;
so what was the mistake did by me: &lt;strong&gt;it was a case of trying to run the file in node from the wrong location&lt;/strong&gt;. &lt;br&gt;
&lt;strong&gt;do you understand.? if answer is no&lt;/strong&gt;. well i explain here don't worry: here &lt;strong&gt;rbac&lt;/strong&gt; is my project directory and there i have another directory which name was server and inside the server directory i have a file which name also &lt;strong&gt;server.js&lt;/strong&gt;, &lt;strong&gt;please keep in mind this is the main point of my mistake.&lt;/strong&gt;&lt;br&gt;
.&lt;br&gt;
to run this project i need to hit** server.js file by using npm start or nodemon*&lt;em&gt;. in this case i was open my termial inside my main directory which name rbc as i mentioned in previous line and from here i tried to hit server.js file but this file is not in this location. the actual location of server.js file is inside **rbac/server/server.js  *&lt;/em&gt;&lt;br&gt;
so the terminal show me &lt;code&gt;node:internal/modules/cjs/loader:936&lt;br&gt;
  throw err;&lt;br&gt;
  ^&lt;/code&gt;&lt;br&gt;
and when i realize my mistake then i just move server.js file from &lt;strong&gt;rbac/server/server.js&lt;/strong&gt; to &lt;strong&gt;rbac/server.js&lt;/strong&gt;&lt;br&gt;
and then open terminal inside the project root and then run &lt;strong&gt;nodemon or npm star&lt;/strong&gt; and now it's working fine. finally my terminal look like below screenshot and this is the actual view which i want to see.&lt;/p&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%2Fihi3dx12q12t8b71oj4o.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%2Fihi3dx12q12t8b71oj4o.PNG" alt="ndoe-js-cannot-find-module-errorsolution"&gt;&lt;/a&gt;&lt;br&gt;
.&lt;br&gt;
Happy Coding.&lt;br&gt;
osman forhad&lt;br&gt;
Full-Stack Developer💻 (Mobile App &amp;amp; Web App)&lt;br&gt;
&lt;a href="mailto:developer.osmanforhad@gmail.com"&gt;developer.osmanforhad@gmail.com&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to setup Side by Side Editing Layout in vs code</title>
      <dc:creator>Osman Forhad</dc:creator>
      <pubDate>Sun, 20 Feb 2022 04:35:17 +0000</pubDate>
      <link>https://dev.to/osmanforhad/how-to-setup-side-by-side-editing-layout-in-vs-code-4mpa</link>
      <guid>https://dev.to/osmanforhad/how-to-setup-side-by-side-editing-layout-in-vs-code-4mpa</guid>
      <description>&lt;h2&gt;
  
  
  How to setup Side by side editing Layout in VS Code
&lt;/h2&gt;

&lt;p&gt;.&lt;br&gt;
You can open as many editors as you like side by side vertically and horizontally. If you already have one editor open, there are multiple ways of opening another editor to the side of the existing one:&lt;/p&gt;

&lt;p&gt;Alt click on a file in the Explorer.&lt;br&gt;
Ctrl+\ to split the active editor into two.&lt;br&gt;
Open to the Side (Ctrl+Enter) from the Explorer context menu on a file.&lt;br&gt;
Click the Split Editor button in the upper right of an editor.&lt;br&gt;
Drag and drop a file to any side of the editor region.&lt;br&gt;
Ctrl+Enter (macOS: Cmd+Enter) in the Quick Open (Ctrl+P) file list.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--st_eOXE9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w2gemx3nmkfxldxupsmm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--st_eOXE9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w2gemx3nmkfxldxupsmm.png" alt="how-to-setup-side-by-side-editing-layout-in-vscode" width="880" height="382"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Whenever you open another file, the editor that is active will display the content of that file. So if you have two editors side by side and you want to open file 'foo.cs' into the right-hand editor, make sure that editor is active (by clicking inside it) before opening file 'foo.cs'.&lt;/p&gt;

&lt;p&gt;By default editors will open to the right-hand side of the active one. You can change this behavior through the setting workbench.editor.openSideBySideDirection and configure to open new editors to the bottom of the active one instead.&lt;/p&gt;

&lt;p&gt;When you have more than one editor open you can switch between them quickly by holding the Ctrl (macOS: Cmd) key and pressing 1, 2, or 3.&lt;/p&gt;

&lt;p&gt;Tip: You can resize editors and reorder them. Drag and drop the editor title area to reposition or resize the editor.&lt;/p&gt;

&lt;h2&gt;
  
  
  VS Code Basic Layout Inception
&lt;/h2&gt;

&lt;p&gt;.&lt;br&gt;
VS Code comes with a simple and intuitive layout that maximizes the space provided for the editor while leaving ample room to browse and access the full context of your folder or project. The UI is divided into five areas:&lt;/p&gt;

&lt;p&gt;Editor - The main area to edit your files. You can open as many editors as you like side by side vertically and horizontally.&lt;br&gt;
Side Bar - Contains different views like the Explorer to assist you while working on your project.&lt;br&gt;
Status Bar - Information about the opened project and the files you edit.&lt;br&gt;
Activity Bar - Located on the far left-hand side, this lets you switch between views and gives you additional context-specific indicators, like the number of outgoing changes when Git is enabled.&lt;br&gt;
Panels - You can display different panels below the editor region for output or debug information, errors and warnings, or an integrated terminal. Panel can also be moved to the right for more vertical space.&lt;br&gt;
Each time you start VS Code, it opens up in the same state it was in when you last closed it. The folder, layout, and opened files are preserved.&lt;/p&gt;

&lt;p&gt;Open files in each editor are displayed with tabbed headers (Tabs) at the top of the editor region. To learn more about tabbed headers, see the Tabs section below.&lt;/p&gt;

&lt;p&gt;Tip: You can move the Side Bar to the right hand side (View &amp;gt; Move Side Bar Right) or toggle its visibility (Ctrl+B).&lt;/p&gt;

&lt;p&gt;.&lt;br&gt;
Happy Coding.&lt;br&gt;
osman forhad&lt;br&gt;
Full-Stack Developer💻 (Mobile App &amp;amp; Web App)&lt;br&gt;
&lt;a href="mailto:developer.osmanforhad@gmail.com"&gt;developer.osmanforhad@gmail.com&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>React js Error message error 0308010C digital envelope routines unsupported(Solution)</title>
      <dc:creator>Osman Forhad</dc:creator>
      <pubDate>Wed, 12 Jan 2022 18:31:57 +0000</pubDate>
      <link>https://dev.to/osmanforhad/react-js-error-message-error-0308010c-digital-envelope-routines-unsupported-23le</link>
      <guid>https://dev.to/osmanforhad/react-js-error-message-error-0308010c-digital-envelope-routines-unsupported-23le</guid>
      <description>&lt;p&gt;basically  this type of error happen from node runtime not from react js. &lt;br&gt;
.&lt;br&gt;
dont worry i will tell you why its happen.&lt;/p&gt;

&lt;p&gt;at this time i am working with node js v17 which not LTS and this version is not compatible with some of webpack, and my previous Node version was v16 which is LTS. in here everything is okey. there is no any error.&lt;/p&gt;

&lt;p&gt;If you use the current LTS version of Node.js then this error will not come.&lt;br&gt;
but&lt;br&gt;
.&lt;br&gt;
to solve this i will not recommend you, to uninstall Node.js version 17+ and reinstall the Node.js version 16+. (This is most common solution but not exact)&lt;br&gt;
but&lt;br&gt;
if you wish you can do this.&lt;br&gt;
.&lt;br&gt;
so, what is the actual solution for&lt;br&gt;
 &lt;strong&gt;Error message error 0308010C digital envelope routines unsupported&lt;/strong&gt;&lt;br&gt;
 in node v17.&lt;br&gt;
trust me this is every simple and magical. please see below what it should be.&lt;/p&gt;

&lt;p&gt;Go to In your package.json: and change this line&lt;/p&gt;

&lt;p&gt;"start": "react-scripts start"&lt;br&gt;
to&lt;/p&gt;

&lt;p&gt;"start": "react-scripts --openssl-legacy-provider start" &lt;/p&gt;

&lt;p&gt;you can see my screen shot, its not more than those previous 2 line.&lt;/p&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%2F8n1o9s0nymt1vg42v4hy.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%2F8n1o9s0nymt1vg42v4hy.PNG" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thank you&lt;br&gt;
Happy Coding&lt;br&gt;
.&lt;br&gt;
osman forhad&lt;br&gt;
Full-Stack Developer💻 (Mobile App &amp;amp; Web App)&lt;br&gt;
&lt;a href="mailto:developer.osmanforhad@gmail.com"&gt;developer.osmanforhad@gmail.com&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to remove a column from Laravel table using migration</title>
      <dc:creator>Osman Forhad</dc:creator>
      <pubDate>Fri, 23 Jul 2021 16:47:41 +0000</pubDate>
      <link>https://dev.to/osmanforhad/how-to-remove-a-column-from-laravel-table-using-migration-275d</link>
      <guid>https://dev.to/osmanforhad/how-to-remove-a-column-from-laravel-table-using-migration-275d</guid>
      <description>&lt;p&gt;I was working with Laravel framework and i create a laravel migration table and working with it but after some times i need to remove a column from my table and its should do using laravel migration. for that what was the process i deed. i want to share may knowledge with you.&lt;/p&gt;

&lt;p&gt;for that the very first step was. i opened my terminal and navigate to project directory after that i was run below command on my terminal:&lt;/p&gt;

&lt;p&gt;php artisan make:migration remove_categorrystatus_from_categories --table=categories&lt;/p&gt;

&lt;p&gt;this command create a migration file for me and then i open this file and wrote my migration schema to remove a column from my database table. when i open the fle i saw there two function one is public function up and another is public function down.&lt;/p&gt;

&lt;p&gt;To remove a column i updated those functions which is like bellow:&lt;br&gt;
//the up function is&lt;br&gt;
public function up()&lt;br&gt;
    {&lt;br&gt;
        Schema::table('categories', function (Blueprint $table) {&lt;br&gt;
            $table-&amp;gt;dropColumn('categorrystatus');&lt;br&gt;
        });&lt;br&gt;
    }&lt;br&gt;
//the down function is&lt;br&gt;
 public function down()&lt;br&gt;
    {&lt;br&gt;
        Schema::table('categories', function (Blueprint $table) {&lt;br&gt;
            $table-&amp;gt;dropColumn('categorrystatus');&lt;br&gt;
        });&lt;br&gt;
    }&lt;/p&gt;

&lt;p&gt;an then i go to my terminal and run below command:&lt;/p&gt;

&lt;p&gt;php artisan migrate&lt;/p&gt;

&lt;p&gt;which was remove the categorrystatus column from my catgories table&lt;br&gt;
.&lt;br&gt;
that's it. all are done&lt;br&gt;
.&lt;br&gt;
Happy Coding.&lt;br&gt;
osman forhad&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to add a new column in Laravel table using migration</title>
      <dc:creator>Osman Forhad</dc:creator>
      <pubDate>Fri, 23 Jul 2021 16:37:07 +0000</pubDate>
      <link>https://dev.to/osmanforhad/how-to-add-a-new-column-in-laravel-table-using-migration-5767</link>
      <guid>https://dev.to/osmanforhad/how-to-add-a-new-column-in-laravel-table-using-migration-5767</guid>
      <description>&lt;p&gt;I was working with Laravel framework and i create a laravel migration table and working with it but after some times i need to add another column on my table and its should make using laravel migration. for that what was the process i deed. i want to share may knowledge with you.&lt;/p&gt;

&lt;p&gt;for that the very first step was. i opened my terminal and navigate to project directory after that i was run below command on my terminal:&lt;/p&gt;

&lt;p&gt;php artisan make:migration add_category_status_to_categories_table --table=categories&lt;/p&gt;

&lt;p&gt;this command create a migration file for me and then i open this file and wrote my migration schema for add new column into my database table. when i open the fle i saw there two function one is public function up and another is public function down.&lt;/p&gt;

&lt;p&gt;To add a new column i updated those functions which is like bellow:&lt;br&gt;
//the up function is&lt;br&gt;
public function up()&lt;br&gt;
    {&lt;br&gt;
        Schema::table('categories', function (Blueprint $table) {&lt;br&gt;
            $table-&amp;gt;enum('category_status', ['active', 'deactive'])-&amp;gt;after('category_slug')-&amp;gt;default('active');&lt;br&gt;
        });&lt;br&gt;
    }&lt;br&gt;
//the down function is&lt;br&gt;
    public function down()&lt;br&gt;
    {&lt;br&gt;
        Schema::table('categories', function (Blueprint $table) {&lt;br&gt;
            $table-&amp;gt;enum('category_status', ['active', 'deactive'])-&amp;gt;after('category_slug')-&amp;gt;default('active');&lt;br&gt;
        });&lt;br&gt;
    }&lt;/p&gt;

&lt;p&gt;all are set now i am ready to migrate my new column schema for that i go to my terminal and run below command:&lt;/p&gt;

&lt;p&gt;php artisan migrate&lt;/p&gt;

&lt;p&gt;and all are done now i seen the category_status column is added after category_slug column on my categories table.&lt;/p&gt;

&lt;p&gt;that's it.&lt;br&gt;
.&lt;br&gt;
Happy Coding.&lt;br&gt;
osman forhad&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
