Author Archives: rendon

Must read

Retries Exponential Backoff And Jitter AWS SDK Retry behavior Error retries and exponential backoff in AWS Example in Java The following example is not meant to be complete, its goal is to give you a good idea of how to … Continue reading

Posted in Posts, SoftwareEngineering | Leave a comment

Isolate the rightmost (least-significant) bit

Fast & elegant: Tests Output Brute force Output for the new version Practice 231. Power of Two 191. Number of 1 Bits Related concepts Two’s complement

Posted in Algorithms & Data structures, Posts, ShortPosts | Leave a comment

Generate files with random bytes

The following command grabs 20 Mb of random bytes from /dev/urandom and saves it to rnd.bin: Generate a bunch of files:

Posted in Posts, ShortPosts, SoftwareEngineering | Leave a comment

Kadane’s algorithm

I just learned about this algorithm, which is considered a dynamic programming approach, however. However, depending on the implementation, it might not resemble dynamic programming at all. Check out the implementation presented on Wikipedia: That does not look like dynamic … Continue reading

Posted in Algorithms & Data structures, Posts | Leave a comment

AES encryption in Go

Here is a program I wrote to learn how to use the Go libraries for AES encryption. Build & run I hope it helps. References Advanced Encryption Standard Advanced Encryption Standard (Wikipedia)

Posted in Posts, SoftwareEngineering | Leave a comment

Build C/C++ libraries with debugging support

I’ve been debugging a program which uses certain library on CLion. The IDE is great, but I cannot see most of the code from the library, the debugger shows me assembly code, and that’s not very helpful. The solution was … Continue reading

Posted in Posts, SoftwareEngineering | Leave a comment

Hello-World AWS Encryption SDK C/C++ program

In one of my projects, I need to encrypt and decrypt data in C, specifically using the AWS Encryption SDK. The SDK supports C, but the documentation is not very clear, in my opinion, so I decided to share my … Continue reading

Posted in Posts, SoftwareEngineering | Leave a comment

Hello-World CGO program

I’m sharing my first CGO program, I hope it helps. File structure: hello.c hello.h main.go Build & run References I followed Cgo: First steps tutorial, but the examples provided didn’t compile for me (see error down below), I had to … Continue reading

Posted in Posts, SoftwareEngineering | Leave a comment

Interesting programming problems

The following problems were either difficult to solve, provided a valuable learning, or both. I’m putting them here so as not to forget a bout them. Drinks Three Pairwise Maximums FashionabLee Captain Flint and Crew Recruitment

Posted in Algorithms & Data structures, Posts | Leave a comment

Merriam-Webster’s Word of the day & week – July 10

Word of the day aphelion deracinate legerdemain sound emulate bromide histrionic Other words I didn’t know or wasn’t sure about its meaning or pronunciation: perihelion apogee perigee AU uproot befits glistering Phaehon sleight of hand adroitness sleight sly scrapping resonance … Continue reading

Posted in ESL, Posts | Leave a comment