coding

Hacktoberfest Week 2: Diving Deeper into Code Contributions

Hacktoberfest Week 2: Diving Deeper into Code Contributions

Greetings, everyone! How’s Hacktoberfest going for you this year? Personally, I’m really enjoying it so far. We’ve now entered the second week of October, which means it’s time for my second pull request (PR) out of the four needed to complete the challenge. This week, I decided to push myself a bit further by contributing to a project’s codebase rather than focusing solely on documentation, as I did in Week 1. Recap of Week 1 In my first PR of Hacktoberfest, I worked on improving project documentation. As a beginner, I wanted to ease into the process with smaller, manageable…
Read More
Unleash Your Shell Scripting Prowess with the ‘Shell Practice Labs’ Course

Unleash Your Shell Scripting Prowess with the ‘Shell Practice Labs’ Course

Embark on an exciting journey to master the art of Shell scripting with the comprehensive 'Shell Practice Labs' course offered by LabEx. This hands-on program is designed to equip you with the essential skills and knowledge to become a proficient Shell programmer, empowering you to streamline your workflow and automate repetitive tasks with ease. Dive into the Shell Scripting Realm Shell scripting is a powerful tool that allows you to harness the full potential of your operating system, automating various tasks and enhancing your productivity. Whether you're a beginner looking to kickstart your Shell scripting journey or an experienced developer…
Read More
Fibonacci, Integer overflow, memoization e um exagero

Fibonacci, Integer overflow, memoization e um exagero

Vamos fazer um exercício. Abaixo deixo um código que retorna o número na posição n da sequência de Fibonacci: public static int fib(int n){ if (n <= 1){ return n; } return fib(n-1) + fib(n-2); } Enter fullscreen mode Exit fullscreen mode Que tal tentarmos mostrar no nosso terminal todos os números da sequência de fibonacci menores que 2147483647? public static int fib(int n){ if (n <= 1){ return n; } return fib(n-1) + fib(n-2); } public static void main(String[] args) { int position = 1; int currentNumber = fib(position); while (currentNumber < 2147483647) { System.out.println(currentNumber); position++; currentNumber = fib(position);…
Read More
Learn how to build AI assisted blog from scratch

Learn how to build AI assisted blog from scratch

In guide you will learn: how to create seo friendly opensource Nuxt instance how to set-up admin panel using opensource node admin framework AdminForth how to add openai plugins to adminforth how to bundle 2 intances (nuxt + node admin) in single docker container how to automatically spawn one EC2 instance and put docker container there how to add ssl for free using cloudflare Guide: https://adminforth.dev/blog/ai-blog/ Source link lol
Read More
6 steps to deploy your React Next.js app with Github pages

6 steps to deploy your React Next.js app with Github pages

Deploying a Next.js app to GitHub Pages can be a bit tricky due to the static nature of GitHub Pages and the dynamic features of Next.js. In this article, I'll walk you through the steps to successfully deploy do it. Prerequisites A GitHub account Node.js and npm installed on your machine A Next.js project ready to deploy Step 1: Install gh-pages npm install gh-pages --save-dev Step 2: Update next.config.mjs Next, you need to update your next.config.js (or next.config.mjs) file to handle the base path and asset prefix correctly. const isProd = process.env.NODE_ENV === 'production'; const nextConfig = { reactStrictMode: true,…
Read More
Connect to Web5 and on a DWN in Web5

Connect to Web5 and on a DWN in Web5

The Web5 JS SDK provides an intuitive interface that allows you to swiftly develop Web5 applications. By using the Web5.connect() method to initialize the SDK, you can quickly access APIs for working with Decentralized Identifiers (DIDs) and Decentralized Web Nodes (DWNs). In this practical guide, we will connect to the free DIF community node instance, located at https://dwn.gcda.xyz, which is hosted on Google Cloud. Let's get started by opening our previously created index.js file and import the Web5 class // index.js import { Web5 } from "@web5/api" Enter fullscreen mode Exit fullscreen mode Connect to Web5 We'll use the Web5.connect()…
Read More
Building a Country-to-Flag Emoji Converter App with Vite, TypeScript, and Tolgee

Building a Country-to-Flag Emoji Converter App with Vite, TypeScript, and Tolgee

Introduction Hello there friends, we're still in the season of Hacktoberfest and in this blog post, we'll build a simple Country-to-Flag Emoji Converter App. We will utilize some great tools and technologies: Vite: A modern build tool that significantly improves the development experience with its fast hot module replacement (HMR) and optimized build processes. Vite is perfect for building fast applications and is particularly well-suited for projects using frameworks like React. TypeScript: A superset of JavaScript that adds static typing. By using TypeScript, we can catch errors early in the development process, making our code more robust and maintainable. It…
Read More
Class va Object

Class va Object

1.Class va ObjectTEST SAVOLLARI:a)C# da class nima?b)Object nima?c)Quyidagi kodning natijasini ayting: class Car { public string Model: public Car(string model) { Model = model; } } Car myCar = new Car("Tesla"); Console.WriteLine(myCar.Model); Enter fullscreen mode Exit fullscreen mode ** TEST JAVOBLARI:**a)Class – bu ob'ektlar uchun andoza yoki shablondir. Sinf ma'lumotlar (field) va xatti-harakatlar (methods, properties) to'plamidan iborat. Bu ma'lumotlar va xatti- harakatlar sinf ichida aniqlanadi va sinfdan yaratilgan har bir ob'ekt uchun alohida bo'ladi. b)Object – bu sinfdan yaratilgan konkret nusxadir. Ob'ekt orqali sinfda aniqlangan ma'lumotlar va xatti-harakatlardan foydalanish mumkin. Sinf deklaratsiyasi faqat shablondir, ob'ekt esa sinfning amaliy hayotdagi ko'rinishidir.…
Read More
How to enable/disable PHP native functions – php.ini Tutorial

How to enable/disable PHP native functions – php.ini Tutorial

In this article I want to give you the step by step procedure to enable or disable php native functions editing the “disable_functions” directive in the php.ini file. Sometimes the default PHP configuration on your server needs to be customized to accommodate the compatibility of your system with the production environment. Why this tutorial I'm the author of Inspector.dev the real-time monitoring package for Laravel and Symfony. This package uses pro_open and proc_close php native functions to perform data transfer from your server to the Inspector API asynchronously. It can also be configured to use the native CURL functions of…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.