Ingap.dev - A Personal Dev Blog

It is better to be approximately right than precisely wrong. (Warren Buffet)

Latest

Thursday 28 November 2024

How to setup Raspberry Pi Server: SSH Keys, PuTTY, and Git Integration

Setting up a secure headless Raspberry Pi server is becoming more and more intuitive. Here are the key steps and time-saving tricks you need to know. Learn proper SSH key configuration, PuTTY setup tricks, and seamless GitHub repository integration for efficient development.

raspberry putty git linux

Thursday 21 November 2024

How Much Power Does Your Fluid System Need? Quick Power Calculator Guide

Get a quick estimate of the power needed for your fluid system - from theoretical hydraulic power to real-world requirements. Free calculator for fast engineering calculations.

tools design power

Thursday 1 August 2024

Slow Productivity: The Key to Meaningful Accomplishment

Discover how embracing slow productivity can lead to better work-life balance and higher quality output. Learn practical strategies to overcome burnout and achieve sustainable success in knowledge work.

productivity books

Thursday 20 June 2024

Turning Ideas into Business: A Solopreneur's Guide

Learn how to transform your ideas into a successful business by targeting the right audience and following key principles for solopreneur success.

SaaS B2B

Tuesday 18 June 2024

[SOLVED] OmitWithTag Type error when runing npm run build

How to resolve OmitWithTag type errors when building a Next.js 13 project with App router.

nextjs-13

Sunday 9 June 2024

[SOLVED] Tailwind CSS Build Issues in Next.js 13 with the App Router

In this blog post, we address an issue encountered when integrating Tailwind CSS with Next.js 13 using the App Router.

nextjs-13

Tuesday 4 June 2024

[SOLVED] Setting Up Next.js App with GitHub in 5 minutes

A quick guide to create a Next.js app and connect it to a private GitHub repository, avoding errors like 'Repository not found' or 'remote origin already exists'.

nextjs-13 github

Monday 20 May 2024

[SOLVED] Adsense Not Working On NextJS 13 Blog

How to fix Adsense not showing on a NextJS 13 blog using the app Router.

adsense

Monday 20 May 2024

Developers Connecting on X? Let's run this experiment.

A collective approach for developers to grow their X followers.

X networking growth

Sunday 19 May 2024

Should You Use Credit-Based Payment Systems in Digital Services?

Credit-based payments can be a beneficial choice in many scenarios. They often provide flexibility, help reduce costs, and can boost user engagement. This makes them a potentially effective option for digital content, e-learning, gaming, and SaaS platforms.

payments SaaS

Sunday 12 May 2024

Why We Think We're Always Right

Discover how our own thinking tricks us into believing we're always right, influencing our choices and views.

bias mindset

Saturday 11 May 2024

Syntax Highlighting for Markdown in Next.js 13 (The Right Way)

Enhance your Next.js 13 project with this detailed guide on implementing PrismJS for dynamic syntax highlighting in Markdown-rendered content.

nextjs-13 markdown

Saturday 11 May 2024

TypeScript Is Here to Stay

Explore why TypeScript is capturing developers' interest despite criticism. This post dives into TypeScript's robust type system, its advantages for project scalability, and its growing popularity as evidenced by GitHub trends.

TypeScript JavaScript Software Development Programming

Saturday 27 April 2024

Automating Interactive Bash Scripts with Expect

Learn how to automate interactive Bash scripts using Expect, an essential tool for scripting automated interactions with programs that require user input.

bash automation expect

Saturday 27 April 2024

Common Pitfalls to Avoid in ReactJS, CSS, and Ionic Framework

Explore common pitfalls in ReactJS, CSS, and Ionic development and learn how to avoid them to build more robust applications and save your time.

reactjs css ionic framework

Friday 26 April 2024

Bash Commands You Should Master (Even in the GPT Era)

Explore essential Bash commands that every linux system administrator should master. This guide provides examples to enhance efficiency in Linux environments for those looking to streamline their command-line skills.

bash linux server

Wednesday 4 October 2023

Uncaught SyntaxError: Identifier 'originalPrompt' has already been declared (at prompt.js:1:1)

Embark on a journey to unravel the mystery of the SyntaxError in prompt.js.

troubleshooting

Wednesday 13 September 2023

How Much Time Does It Take to Become Wealthy?

Have you ever wondered how long it would take you to become rich? Do you have a specific goal in mind, such as a certain net worth, income level, or lifestyle? Or are you just curious about the possibilities and opportunities that wealth can offer?

investing finance

Thursday 1 June 2023

Patterns of fraudolent stocks - Part I

Fraudulent patterns in the stock market can cost you money and ruin your investments. In this post I am going to explore one of this patterns in 6 different phases.

investing

Tuesday 2 May 2023

[SOLVED] Error: Failed to collect page data for /[variable]

If you encounter the error 'Failed to collect page data for /[variable]' when you deploy your Next.js app on Vercel, it means that your app is trying to generate a page for a dynamic route but it fails. Here's how I fixe this error.

nextjs-13 build

Tuesday 4 April 2023

Problem Solving: A Checklist For Programmers

Problem solving is a vital skill for programmers, as they often have to create solutions for complex and novel challenges. It involves breaking down a problem into smaller and manageable parts, applying logic and reasoning, testing and debugging, and evaluating the outcomes. The following checklist is based on my personal experience and useful tips for solving competitive programming challenges.

problem-solving notes

Friday 31 March 2023

Problem Solving 101: A Beginner's Guide

Problem solving is a crucial ability that can be applied in any profession as well as in our daily life. Various fields such as engineering, business, medicine, mathematics, computer science, philosophy, and social organization have their own specialized techniques and methods. Let's explore the general problem-solving process more in details.

problem-solving notes

Monday 27 March 2023

About me

Who's behind this blog? Short self-introduction. Contacts, links and further websites are provided for more details.

about cv contacts

Friday 24 March 2023

[SOLVED] Problem with Keystore during bubblewrap build for PWA export to Google Play

Keystore and Key are successfully generated by bubblewrap init first, but something goes wrong duirning build. A simple workaround made it work very quickly.

error troubleshooting bubblewrap pwa

Thursday 9 March 2023

How to pass custom parameters to Stripe payment links?

An easy way to pass user defined parameters to Stripe payment links without using hooks and fetch them later.

stripe nodejs typescript api reactjs

Thursday 9 March 2023

Store/Update state object after asynchronous changing its value in ReactJS

State variables can be changed as soon as they change values. Here's how to do it using useCallback() function.

reactjs code

Monday 6 March 2023

Sort Map Object in Javascript by values

A simple one-liner to convert a Javascript/Typescript Map Object to an array sorted according to the Map's value.

code typescript javascript

Wednesday 11 January 2023

[SOLVED] YARN create react app not working: the nearest package directory...

ERROR: the nearest package directory doesn't seem to be part of the project declared in [...]

yarn reactjs

Thursday 15 December 2022

[CODE] Integer partition function in Python (recursive and iterative)

The integer partition function p(n) is the number of ways of writing n as a sum of positive integers, where the order of the summands does not matter. Let's see how to implement it recurively and iteratively.

recursion iteration algorithm python

Tuesday 8 November 2022

From recursive to iterative functions (step by step)

Recursive and iterative algorithms are two ways of solving problems. A recursive algorithm calls itself repeatedly until it reaches a base case, while the iterative one uses a loop to repeat operations until a condition is met. Both can achieve the same results but have different advantages and disadvantages. In this article, we will see how to turn a recursive into an iterative function step-by-step.

recursion iteration algorithm python

Saturday 22 October 2022

Bellman-Ford algorithm [Python Code]

The Bellman-Ford algorithm finds the shortest path from a given source node to all other nodes allowing edges with negative weights. Here's a ready to use Python code implementing it.

python code algorithm

Friday 6 May 2022

[SOLVED] Cannot import name 'environmentfilter' from 'jinja2'

I got this problem after installing Voilà from the Anaconda Terminal. Fixed by simply adjusting Jinja2 version using the pip command below.

voila error troubleshooting pip python

Friday 6 May 2022

[Solved] Failed to load ApplicationContext. BeanCreationException...

Error creating bean with name '...'. IllegalArgumentException: warning no match for this type name. [Java, Spring Boot, JUnit]

spring-boot junit java

Monday 28 March 2022

[SOLVED] Hyperopt Early Stopping

Hyperopt is used for black-box optimization. Let's see how to set up conditions for early stopping once results are satisfying enough.

python data

Wednesday 23 March 2022

Calculate correlation coefficient between arrays of different length

Can the Pearson coefficient be computed between two numeric arrays, if these have different size? Let's what does it mean.

python code data

Tuesday 22 June 2021

[SOLVED] Failed to load ApplicationContext. NoSuchBeanDefinitionException...

When executing any of the JUnit test cases within the Spring Framework in Eclipse a NoSuchBeanDefinitionException is arising. 'No qualifying bean of type ... available: expected at least 1 bean which qualifies as autowire candidate'. Fixed by replacing test class annotation as follows.

spring-boot junit java

Tuesday 2 March 2021

Setting up a Java development environment in 3 steps on Windows

Set up a Java development (tested here on Windows 10) using Chocolately, JDK and Gradle and an IDE of your choice.

java jdk openjdk gradle

Thursday 3 December 2020

[SOLVED] Error: 'File not found' in Texmaker on Windows 10 [LateX]

Solving this error message on Texmaker 5.0.4 using Miktex 20.11

latex

Tuesday 3 November 2020

[Python] Kivy: Bind button to a class method with arguments

Here's how to bind an object's event to a class method in Kivy, a Python framework for creating cross-platform applications.

functools GUI kivy oop