Ausnahme gefangen: SSL certificate problem: certificate is not yet valid ๐Ÿ“Œ Fearless Debugging

๐Ÿ  Team IT Security News

TSecurity.de ist eine Online-Plattform, die sich auf die Bereitstellung von Informationen,alle 15 Minuten neuste Nachrichten, Bildungsressourcen und Dienstleistungen rund um das Thema IT-Sicherheit spezialisiert hat.
Ob es sich um aktuelle Nachrichten, Fachartikel, Blogbeitrรคge, Webinare, Tutorials, oder Tipps & Tricks handelt, TSecurity.de bietet seinen Nutzern einen umfassenden รœberblick รผber die wichtigsten Aspekte der IT-Sicherheit in einer sich stรคndig verรคndernden digitalen Welt.

16.12.2023 - TIP: Wer den Cookie Consent Banner akzeptiert, kann z.B. von Englisch nach Deutsch รผbersetzen, erst Englisch auswรคhlen dann wieder Deutsch!

Google Android Playstore Download Button fรผr Team IT Security



๐Ÿ“š Fearless Debugging


๐Ÿ’ก Newskategorie: Programmierung
๐Ÿ”— Quelle: wordaligned.org

Jurassic Jigsaw

My thanks to Eric Wastl for another excellent Advent of Code. Iโ€™ve now worked through all 25 puzzles, some simple, some tough, some familiar, some new; all beautifully set and highly enjoyable.

Day 20, Jurrasic Jigsaw, took me longest by far to complete. The puzzle is easy to understand. You have to assemble jigsaw pieces into a seascape. For part one, you need to find the corner pieces. For part two, you must locate monsters in the seascape.

Here, a jigsaw piece is a monochrome square, represented like so:

..##.#..#.
##..#.....
#...##..#.
####.#...#
##.##.###.
##...#.###
.#.#.#..##
..#....#..
###...#.#.
..###..###

And this is the sea monster:

                   # 
#    ##    ##    ###
 #  #  #  #  #  #

The twist was that the jigsaw pieces could be rotated and flipped over before matching them up. Once matched, the edges of the pieces were to be removed. Implementing the rotate, flip, match and remove code proved fiddly, and I was pleased to get this working and producing correct results for the supplied example.

Unfortunately my code produced the wrong answer for part two, the bit where you have to locate sea monsters. So, I would need to debug.

Fear of Debugging

Like it or not, debugging is a key part of software development.

Generally, I do like it. Thereโ€™s satisfaction to be had in paring scope, retracing steps, then making the right fix, improving test coverage, and generally leaving the world a better place.

What I donโ€™t like, though โ€” what scares me โ€” is the suspicion the bug lurks in the worst possible place. What if itโ€™s in a library we donโ€™t have the source for? Or if itโ€™s a timing issue caused by some erratic locking? Or if thereโ€™s an issue with the compiler for the most obscure platform. Or, in this particular case, that the code to fiddle with jigsaw pieces has a bug โ€” a bug subtle enough to pass the examples but fail the real thing.

Itโ€™s not unreasonable to fear the worst. At some point the issues mentioned above will cause bugs, bugs which are hard to fix. We need to be ready.

Fear, though, is the wrong mindset. Debugging requires you to be calm, methodical and detached. Much as an artist draws what they see and not what they know, a programmer must observe and follow the evidence. A second pair of eyes is always useful; simply explaining the issue to a colleague gives you another perspective.

Here be Monsters

I was working on my own on the Advent of Code. I could have tried explaining to a rubber duck, but didnโ€™t. Instead I examined and traced my code. I checked and double-checked the flip, rotate, match and remove logic. I printed out intermediate state. I walked to the sea-front and back. I slept on it.

Fearing the worst turned out to be the wrong strategy.

What did work was reading the problem statement again, carefully. At last I saw it! Somehow, a rogue character had wormed its way into my inputs. The sea monster I had used looked like this:

                   #
#    ##    ##    ###
 #  #  #  #  #  #

when it should have been:

                  # 
#    ##    ##    ###
 #  #  #  #  #  #

Since both monsters appear the same number of times in the example seascape, my test case failed to catch the bug.

So, with a single, simple, whitespace correction, my advent of code was complete. One of lifeโ€™s ironies is that when you lose something you find it in the last place you look. Itโ€™s not always so with debugging: a bug can exist in many different places and sometimes the fix causes the codebase to unravel, requiring a chain of additional fixes, but, in this case, finding the bug fixed it.

Seascape with monsters

A monster can exist in many different places, and in this case finding the monster fixed it

...



๐Ÿ“Œ Fearless Debugging


๐Ÿ“ˆ 40.47 Punkte

๐Ÿ“Œ Fearless Interview


๐Ÿ“ˆ 27.06 Punkte

๐Ÿ“Œ Fearless Security: Thread Safety


๐Ÿ“ˆ 27.06 Punkte

๐Ÿ“Œ Fearless Security: Memory Safety


๐Ÿ“ˆ 27.06 Punkte

๐Ÿ“Œ Fearless Security: Thread Safety


๐Ÿ“ˆ 27.06 Punkte

๐Ÿ“Œ Fearless Security: Memory Safety


๐Ÿ“ˆ 27.06 Punkte

๐Ÿ“Œ Envy Gaming verspricht, zu handeln, nachdem Dallas Fuel's 'Fearless' รผber Rassismus spricht, den er und seine ...


๐Ÿ“ˆ 27.06 Punkte

๐Ÿ“Œ Taylor Swift - "Fearless": Darum musste sie ihr altes Album neu aufnehmen | RA Christian Solmecke


๐Ÿ“ˆ 27.06 Punkte

๐Ÿ“Œ Signifydโ€™s Fearless Payments empowers PSPs to increase authorization rates


๐Ÿ“ˆ 27.06 Punkte

๐Ÿ“Œ Fearless Distroless


๐Ÿ“ˆ 27.06 Punkte

๐Ÿ“Œ Fearless Distroless


๐Ÿ“ˆ 27.06 Punkte

๐Ÿ“Œ The Debugging Book โ€” Tools and Techniques for Automated Software Debugging


๐Ÿ“ˆ 26.81 Punkte

๐Ÿ“Œ Compiling C# to WASM with Mono and Blazor then Debugging .NET Source with Remote Debugging in Chrome DevTools


๐Ÿ“ˆ 26.81 Punkte

๐Ÿ“Œ Debugging a background task on a time trigger


๐Ÿ“ˆ 13.41 Punkte

๐Ÿ“Œ VB2016 preview: Debugging and Monitoring Malware Network Activities with Haka


๐Ÿ“ˆ 13.41 Punkte

๐Ÿ“Œ App Developers Spend Too Much Time Debugging Errors in Production Systems


๐Ÿ“ˆ 13.41 Punkte

๐Ÿ“Œ Debugging a background task on a time trigger


๐Ÿ“ˆ 13.41 Punkte

๐Ÿ“Œ TP-LINK TDDP Debugging Service Credentials schwache Authentisierung


๐Ÿ“ˆ 13.41 Punkte

๐Ÿ“Œ VB2016 preview: Debugging and Monitoring Malware Network Activities with Haka


๐Ÿ“ˆ 13.41 Punkte

๐Ÿ“Œ How to configure WinDbg for kernel debugging


๐Ÿ“ˆ 13.41 Punkte

๐Ÿ“Œ VB2016 paper: Debugging and monitoring malware network activities with Haka


๐Ÿ“ˆ 13.41 Punkte

๐Ÿ“Œ Debugging and Monitoring Malware Network Activities with Haka


๐Ÿ“ˆ 13.41 Punkte

๐Ÿ“Œ Versehentlich aktiviertes Debugging-Tool gefรคhrdet Cisco Data Center Network Manager


๐Ÿ“ˆ 13.41 Punkte

๐Ÿ“Œ TP-LINK TDDP Debugging Service Pufferรผberlauf


๐Ÿ“ˆ 13.41 Punkte

๐Ÿ“Œ App Developers Spend Too Much Time Debugging Errors in Production Systems


๐Ÿ“ˆ 13.41 Punkte

๐Ÿ“Œ Versehentlich aktiviertes Debugging-Tool gefรคhrdet Cisco Data Center Network Manager


๐Ÿ“ˆ 13.41 Punkte

๐Ÿ“Œ TP-LINK TDDP Debugging Service Credentials schwache Authentisierung


๐Ÿ“ˆ 13.41 Punkte

๐Ÿ“Œ Time Travel Debugging is now available in WinDbg Preview


๐Ÿ“ˆ 13.41 Punkte

๐Ÿ“Œ Debugging Tool Left on OnePlus Phones, Enables Root Access


๐Ÿ“ˆ 13.41 Punkte

๐Ÿ“Œ Chrome DevTools 101: DEBUGGING JavaScript


๐Ÿ“ˆ 13.41 Punkte

๐Ÿ“Œ Essential JavaScript Debugging Tools


๐Ÿ“ˆ 13.41 Punkte

๐Ÿ“Œ New Monero Crypto Mining Botnet Leverages Android Debugging Tool


๐Ÿ“ˆ 13.41 Punkte

๐Ÿ“Œ Effective Browser JavaScript Debugging


๐Ÿ“ˆ 13.41 Punkte

๐Ÿ“Œ TP-LINK TDDP Debugging Service Pufferรผberlauf


๐Ÿ“ˆ 13.41 Punkte

๐Ÿ“Œ Android Support Removed from Intel Graphics Driver Debugging Tool for Linux


๐Ÿ“ˆ 13.41 Punkte











matomo