Tired of Floating-Point Problems?

Posted on Sun 17 November 2024 in finance • Tagged with python finance

become a programmer superman 3

Have you ever looked at your code and thought, "Why does 0.1 + 0.2 equal 0.30000000000000004?" Do the quirks of floating-point arithmetic keep you awake at night, wondering where all those tiny fractions of a cent are going?

Well, worry no more! Introducing the ultimate life hack: Penny …


Continue reading

Why You Should Never Use Floats/Doubles Primitives for Money

Posted on Sat 16 November 2024 in finance • Tagged with python finance

superman 3: Gus streaching to reach computer

Handling real numbers in computer science is a complex task, especially for fields like finance and astronomy, where precision is critical. Standard floating-point arithmetic is optimized for speed, often at the expense of exact precision. This trade-off has a particularly problematic impact on financial calculations, where even tiny rounding errors …


Continue reading

wedNESday #9 - Exploring NES Graphics

Posted on Wed 01 May 2024 in nes • Tagged with 6502, nes, python, wedNESday

a long time ago

Playing around with NES graphics can be an incredibly fun and rewarding experience. Transitioning from that blank screen to one filled with tiles in a nametable highlights the capabilities and limitations of the platform. It's like a window ready to explode.

Through this post, we might use some terms and …


Continue reading

wedNESday #8 - A long delay

Posted on Wed 24 April 2024 in nes • Tagged with 6502, nes, python, wedNESday

a long time ago

A Long Time Ago

It's been a while since my last update, and if you've been visiting this page eagerly awaiting news, thank you for your patience. Let's dive right in. Recently, I've been using the "wedNESday" project to thoroughly test NES emulators and improve them.

In a Galaxy Far …


Continue reading

Double Dragon

Posted on Wed 22 February 2017 in nes • Tagged with nes, double dragon, wedNESday, review

Double Dragon

Not in the mood to code today, so let's play a classic: Double Dragon. It's hard to explain nowadays what a phenomenal game it was back then. So before reviewing the NES version, which I'm going to play, let's first talk about the game’s history.

At the end eighties …


Continue reading

Ghostbusters

Posted on Thu 16 February 2017 in automation • Tagged with ghostbusters, travis, ci, automation, smartthings

stranger things ghostbusters

I had my childhood in the eighties, and 'course, I used to wake up on staturday morning to watch ghostbusters. Then, when I though for a continuos integration lamp, I know it should have the "prohibed ghost sign"! In this post, I'm gonna show you, how to use your smartthings …


Continue reading

wedNESday #7 - More than just coding

Posted on Wed 15 February 2017 in nes • Tagged with 6502, nes, python

more than coding

One thing that I noticed on opensorce projects, it's more than just coding. Indeed the code itself is the center on wich everything else related to the project gravitates, but there is lot more. Today made some tweaks on my travis continuos integration, and also had a lot of reading …


Continue reading

wedNESday #6 - A bigger blender brain

Posted on Wed 08 February 2017 in nes • Tagged with 6502, nes, python, MCP23017, raspberrypi

Blender Brain

Blender Bigger Brain*

On last week's post, I had a "to do" list over the comments of the "upcoming improvements". So Toshimitsu Kamei came to the rescue again with the IO expander stuff. He sent some study material and sugests a small proof of concept just by following some internet …


Continue reading

wedNESday #5 - It's alive!

Posted on Wed 01 February 2017 in nes • Tagged with 6502, nes, python, raspberrypi

it's alive

First of all, I must thanks Toshimitsu Kamei, without him this post wouln't be possible. Some time ago, he helped me up connecting the RasberryPI's GPIO along with W65C02S. It was fun, although I was kind of clumsy in this meantime, and them now I have to reattach everything. So …


Continue reading

wedNESday #4

Posted on Wed 25 January 2017 in nes • Tagged with nes, emulator, python

Blender Brain

Blender Brain*

Split and Share

I'm splitting the project wedNESday into a guide project. Unfortunelly, it does not have a catch name yet. The goal of this sidekick project is to serve as a lighthouse for thouse who attempt to create an emulator. It's filled with abstract test case scenarios …


Continue reading