Skip to content

Blog

Run an application forever on linux made easy: Case of a javascript project

Introduction

If you're looking to turn your application into a background process, you have come to the right tutorial, always using the fastest way.

Instead of just writing theory, we we use a real world example i've worked on.

To run a Java application as a background process and keep it running forever, you can use a process manager like systemd on Linux. Here's how you can set up a systemd service to run your Java application:

Certainly! Here are the steps named as per their actions:

Step 1: Create Service File

Create a new systemd service file for your Java application using a text editor:

sudo nano /etc/systemd/system/myapp.service

Step 2: Configure Service

Paste the following configuration into the file, replacing <jar-file-name> with the name of your JAR file:

Managing Local Modifications and Remote Changes in Git

Introduction

Git is, without discussion, a powerful version control system that enables collaborative development.

Ever found yourself in a twist trying to mix changes you made with updates from others in Git?

It's like trying to blend your cooking style with someone else's recipe without making a mess. Git's awesome for team coding, but when your tweaks clash with online updates, how do you sort it out ?

Indeed, when local modifications clash with remote changes, navigating these conflicts efficiently becomes crucial. Let's explore different strategies to handle this situation effectively.

JavaScript Fundamentals: A Beginner's Guide to Essential Concepts and Best Practices

Introduction

Are you new to JavaScript or looking to refresh your understanding of its fundamental concepts?

Dive into this beginner-friendly guide to explore the core principles and best practices in JavaScript!

JavaScript code

JavaScript (ES6), short for ECMAScript 6, is a major version of the JavaScript programming language. It introduces new features, syntax enhancements, and advanced programming concepts. This documentation is tailored for beginners and individuals seeking to recall the fundamentals of JavaScript. Let's embark on this learning journey together!

Overview

In this comprehensive guide, you will learn:

  • Essential JavaScript data types, control structures, and functions
  • Error handling techniques and best practices
  • The use of classes, objects, arrays, and maps in JavaScript
  • Comparison operators and logical operations
  • Control structures including if/else, switch/case, for loops, and while loops
  • Best practices for variable declaration and scope
  • Tips for writing clean and maintainable JavaScript code

Ready to elevate your JavaScript skills? Let's get started!

Managing Python Dependencies: Navigating pip, pipenv, poetry, conda and more

Introduction

In the realm of Python development, a crucial aspect is managing project dependencies effectively.

Python-logo-notext

This guide delves into four prominent tools—pip, pipenv, poetry, conda and more—each offering distinct approaches to dependency management. Grasping their strengths, weaknesses, and use cases empowers you to make informed decisions for your projects.

Step-by-Step Guide to Identifying and Terminating Processes on Specific Ports

Introduction

This markdown provides a step-by-step guide to identify and terminate processes running on a specific port, catering to both Unix-based and Windows systems.

Handling Processes on a Port

Suppose you encounter an OSError: [Errno 98] Address already in use error while trying to run an application that requires port 8000. This commonly happens when another process is already using the same port.

Method 1: Using curl to Test the Port

One way to check if a process is using port 8000 is by attempting to access it:

curl 127.0.0.1:8000

Unveiling the Code Chronicles: Navigating Software Licenses

Introduction

Ever glanced at those cryptic licenses in software projects—like the MIT License, Apache License, or GPL—and wondered, 'What do they mean for me?'

Whether you're a code wizard or just dipping your toes in tech, understanding these licenses is like decoding a secret language. Which one suits your project best? What's the deal when you borrow or tweak someone else's code?

This document unravels the mystery, diving into the world of software licenses. Discover their quirks, choose wisely between the MIT, Apache, or GPL licenses, and learn the ropes for handling borrowed or tweaked code. Get ready to crack the code of software licenses!

Please note that the information provided here is for educational purposes only and should not be construed as legal advice.

Mastering Git Merge Strategies: A Developer's Guide

Introduction

Have you ever found yourself tangled in a web of Git branches, unsure of the best path to weave your changes together?

The world of version control can be a maze, especially when deciding between Git's merge strategies. Fear not! This guide is your compass through the wilderness of rebases and merges, shedding light on the best routes to keep your repository history tidy and your sanity intact.

Mergevsrebase

Git offers two primary trails: the rebase, known for its clean and linear history, and the merge, preserving the unique storylines of each branch. Join us on this journey as we navigate the pros, cons, and conflict resolution techniques, empowering you to choose the right path for your project's narrative.

So, this document provides guidance on using Git merge strategies, specifically focusing on the rebase and merge options.

pandoc: convert most files without online services

Introduction

Pandoc is a versatile document conversion tool that can convert Markdown documents to PDF, HTML, Word DOCX, and many other formats. Pandoc provides a wide range of options to customize the output of the converted document. Here is a list of some of the most commonly used options:

  • -s: Create a standalone document with a header and footer.
  • -o: Specify the output file name.
  • --from: Specify the input format explicitly.
  • --to: Specify the output format explicitly.

Seaborn in Practice: Syntax and Guide

Seaborn is a powerful data visualization library in Python that provides a high-level interface for drawing attractive and informative statistical graphics. One common misconception about Seaborn and programming in general is the necessity to remember all the syntax. In reality, it's more about understanding the tool's capabilities and how to leverage its functions to visualize data effectively.

So, what can i do exactly with seaborn ?

import the library

import seaborn as sns
sns.set(style="whitegrid")