The White Rabbit

Dress for the job you want, not the job you have.

Tags

Latest

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 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