Coding Tidbit

Software articles that can be consumed quickly

  • Home
  • About
  • July 7, 2019

    Bring Your Animations to H264/HEVC Video

      Table of Contents Introduction Red Video One JPEG Video Two JPEG Video Text Animation Video Introduction Last year, I introduced a single header windows-based software-based video encoder for OpenGL that works on Windows 7 and above. See the above video demo! I have decoupled it from the OpenGL thread and make it simpler to […]

  • July 7, 2019

    What Web Developers Need to Know About Content Security Policy

    Introduction Content Security Policy (CSP) is a computer security standard introduced by the World Wide Web Consortium (W3C) to prevent cross-site scripting (XSS) and clickjacking attacks. Explained simply, CSP is a whitelist of origins of content that is allowed to load or execute on a webpage. We’ll look at the three versions of CSP and […]

  • July 7, 2019

    Bring Your C++ Code to the Web

      Table of Contents Introduction Installing Windows Subsystem For Linux Installing Emscripten Hello World Programs Calling JavaScript Code from C/C++ Calling C/C++ code from JavaScript Cross Platform Introduction WebAssembly’s predecessor, asm.js converts C/C++, Rust code into a low level JavaScript to run on the web browser. The unveiling of WebAssembly on March 2017 has enabled […]

  • April 1, 2019

    C++23: fullptr to replace nullptr

    Coming in C++ 2023, detailed in the AF0401 proposal, fullptr_t is fully recommended as the invalid pointer type to replace current nullptr_t which first standardized in C++11. nullptr is defined as a pointer value with all its bits set to zeroes while fullptr has its bits set to ones (the address of the last addressable […]

  • January 27, 2019

    Countries of Top 200 CodeProject Members

    Note: the data is taken at 2019-01-26. In CodeProject, a place where like-minded programmers share knowledge: There are 2 main ways to gain reputation points, either by answering questions in the Quick Answers section or writing quality articles. A third way to gain points is to post a good comment/message in forum or article thread […]

  • January 15, 2019

    UWP Storage Wrapper

    Introduction UWP Storage is a persistent name-value storage API for UWP apps. This article showcases a wrapper written in C++/CX that makes it easier to use in C++/CX. Though C# usage is already easy without the wrapper, the comparison of both with and without wrapper are still shown. C++/CX Writing and Reading Primitive Value In […]

  • January 14, 2019

    C++11 std::div() Benchmark

    Download source at Github Update: rand() overhead in benchmark has been removed by filling the array with random values beforehand. C++11 standard introduces std::div() and its siblings on the premise of some compiler can take advantage of the available machine code that compute quotient and remainder of division together. The C++ reference noted, and (updated) […]

  • January 14, 2019

    Not Every Memory Allocation Failure is OOM

    Introduction As with many C++ programmers with C background, bring their C habits to C++ programming as shown in the below code where a massive array is allocated and pointer is then checked for failed allocation in presence of null address. It works this way for C malloc. Unfortunately, C++ new does not work like […]

  • January 14, 2019

    H264 Video Encoder for OpenGL

    Download the source from GitHub Though this long article has more lines than the encoder library itself, this is a very simple and easy to read and understand article. If you have read my other articles before, you will be comfortable to know I do not write complicated stuff. Table of Contents Introduction Running the […]

  • August 3, 2018

    Thinking Within the Box

    No, your eyes aren’t playing tricks on you. You have not misread it. The blog title is not a typo! It is, in fact, intentional. I assure you this is not a click bait. It is not thinking outside the box but thinking within the box, per se. These two approaches couldn’t be more different, […]

←Previous Page
1 … 4 5 6 7 8
Next Page→

Blog at WordPress.com.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
 

Loading Comments...
 

    • Follow Following
      • Coding Tidbit
      • Already have a WordPress.com account? Log in now.
      • Coding Tidbit
      • Edit Site
      • Follow Following
      • Sign up
      • Log in
      • Report this content
      • View site in Reader
      • Manage subscriptions
      • Collapse this bar