Ali Naci Erdem

Personal Blog

  • Computers
  • DIY
  • GitHub
  • LinkedIn
  • Support Me

Computers

The problem with async generators

21st January 2020 / 1 Comment

Let’s imagine that we want to manage cancellation of an async operation using generator functions in javascript. When a secondary event occurs, we can listen for it and force the generator function to return by calling its return method and handle cleanup in the finally block, which will always run before a generator returns. Say … [Read more…]

Posted in: Computers Tagged: async, cancel, cancellation, generator, iterator, JavaScript, js, promise, race, redux-saga, yield

Free SSL for shared hosting

5th January 2020 / Leave a Comment

Are you still paying for your SSL certificates? There is a free and open certificate authority called Let’s Encrypt for some time now and its main usage is through its certbot. This means that it can be fully automated! The bot prepares everything for you implementing the ACME protocol and works by placing a file … [Read more…]

Posted in: Computers Tagged: acme, automate, certbot, cpanel, free, hosting, LEClient, php, shared, ssl

Quick and dirty animaton with async/await

10th June 2018 / Leave a Comment

Animation is a pain if you do not know how it is implemented. Basically, you are updating a value with respect to time. This is generally done by calculating the time elapsed since the last frame and interpolating this value between its initial and final values. The interpolation needn’t be linear, there are many such … [Read more…]

Posted in: Computers Tagged: animation, async, asynchronous, await, Coroutine, event loop, frame, JavaScript, js, Programming, requestanimationframe, yield

Passing Arbitrary Messages with C++

26th March 2018 / Leave a Comment

When I was working on a isometric game engine/map editor a few years back, I thought that it would be a nice idea to use some kind of a messaging mechanism to communicate between different components of the engine. Although that implementation is far from perfect, I will try to explain my intentions behind it … [Read more…]

Posted in: Computers Tagged: c plus plus, c++, control flow, message, Programming, templates, unique_ptr
1 2 3 Next »