The White Rabbit

If the only tool you have is a hammer, it is tempting to treat everything as if it were a nail. (Abraham Maslow)


python7 code5 troubleshooting3 algorithm3 java3 data3 kivy3 investing2 problem-solving2 notes2 error2 typescript2 reactjs2 recursion2 iteration2 spring-boot2 junit2 GUI2 oop2 finance1 nextjs-131 build1 about1 cv1 contacts1 bubblewrap1 pwa1 stripe1 nodejs1 api1 javascript1 yarn1 react1 voila1 pip1 php1 wordpress1 jdk1 openjdk1 gradle1 latex1 functools1 ML1


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.


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.


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 react

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


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

Saturday, 24 October 2020

Unbalanced datasets in Machine Learning

Short notes about dealing with unbalanced datasets in Machine Learning.


Monday, 30 March 2020

AttributeError: 'super' object has no attribute '__getattr__'

How did I solve this AttributeError in Kivy.

kivy oop

Sunday, 29 March 2020

Create a simple GUI in Python using Kivy

I'm going to introduce two very basic sample codes to give a simple overview on the Kivy library. It's assumed that you have already installed it.

code GUI kivy

Saturday, 21 September 2019

Using Hyperopt in Python to minimize any function

Hyperopt can be used to optimize black-box functions through Bayesian Optimisation, which is a better approach compared to a purely random guessing.

python data