I think that everyone has at least once delete a file that they shouldn’t have, either from a USB stick or from the recycle bin of their operating system, finding themselves in the unpleasant situation of no longer being able to undo the deletion. What not everyone knows is that this is an operation that… Continue reading How to Recover Deleted Files with Linux using Sleuth Kit
Author: Nicola Zago
Magento 2.4.6 – Dynamic Properties are deprecated
The problem Dependency Injection (DI) is a core design pattern used extensively in Magento to manage class dependencies. In Magento, DI is implemented primarily through constructor injection, where dependencies are provided directly to class constructors rather than being instantiated within the class itself. There would be a lot of interesting things to say about this… Continue reading Magento 2.4.6 – Dynamic Properties are deprecated
Challenging mathematical open problems
Over time I encountered a lot of interesting mathematical open problems that caught my attention. At some level I tried to understand and/or solve (in vain) them, but they remained in my mind and I hope at some point of my life to see their solution. The first two of these (Riemann Hypothesis and P… Continue reading Challenging mathematical open problems
Computational Models
Computers are very fast circuits able to do several basic logical, mathematical and memory operations and we use long sequences of these operations to perform almost every possible task. They are so fast that we think the elaboration as instantaneous, but if the input is large it may require some time. I still remember the… Continue reading Computational Models
Obfuscation and IOCCC
In modern web programming languages an important concept is minimization of code, where the source code undergoes to a series of transformations (variables and functions are renamed, spaces and new lines removed and so on) in order reduce its size, compromising maintainability and readability in favor of space (and so speed of the download and… Continue reading Obfuscation and IOCCC
One million digits of Pi
Let continue the serie of computation of mathematical constants that we started with Euler Number. This time our target is π, the famous “3.14” ratio between circumference and diameter of a circle. Since out target is to compute one million digits in few minutes this post will use concept of code optimization. Like e, π… Continue reading One million digits of Pi
Mersenne Primes and Perfect Numbers
Primes are a fascinating group of integer numbers. They definition is short and clear (a prime number is a number that can be divided without remainder only by itself and 1), there are infinite primes and “quite frequent” (for number of n digits they are about n/(log n), so one number every log n is… Continue reading Mersenne Primes and Perfect Numbers
Computing 1 million digits of Euler’s Number
With this thread I start a new mathematical and computational branch: the art of computing decimals of particular mathematical constants. The first one will be e, the Euler’s number, about 2.7182818284, which is the base of exponential function ex, the only function equal to its derivative. Its inverse is the natural logarithm ln x, or… Continue reading Computing 1 million digits of Euler’s Number
3D Video Webcam
In nature vertebrates evolved mainly with two different typologies of eyes: Evolution found also other solutions to the problem of perceive depth (like the “radar” of baths), but since usually humans are equipped only with eyes and since I don’t want to make you undergo complex surgeries to test the content of the article, I… Continue reading 3D Video Webcam
Magento 2 csvfile profiler – one request per file
Built-in functionality Magento 2 provides built-in profilers to help developers to solve performance issues. You can enabling the profiler just launching: This sets a semaphore file var/profiler.flag with the chosen profiler type. There are two out-of-the-box profilers: The profiler can track also methods interesting for your development using the functions: One request per file Unfortunately… Continue reading Magento 2 csvfile profiler – one request per file