Skip to content

Code Calamity

Hodgepodges from a coder's mind

  • Posts
  • Projects
  • Guides
  • Contributors
  • About

ThreadPools explained – In the deep end

Posted on December 18, 2017 by Chris Griffith Coding Overview 1

Thread and Multiprocessing Pools are an underused feature of Python. In my opinion, they are the easiest way to dip your feet into concurrency, and yet still the method I use most often. They allow you to easily offload CPU or I/O bound tasks to a...

Share this:

  • Reddit
  • Twitter
  • Facebook
  • Email
Continue reading...

The Birthday Paradox – The Proof is in the Python

Posted on October 18, 2017 by Chris Griffith Coding Overview 1

This month is my wife’s, mother’s and my own birthday, all within a span of nine days. What are the odds of that? No idea, I’m no statistician. However, as a developer, I thought it would be fun to prove (or disprove?) the Birthday Paradox with...

Share this:

  • Reddit
  • Twitter
  • Facebook
  • Email
Continue reading...

Reusables – Part 2: Wrappers

Posted on September 4, 2017 by Chris Griffith Coding Overview 0

Spice up your code with wrappers! In Python, a wrapper, also known as a decorator, is simply encapsulating a function within other functions. @wrapper def my_func(a, b=2): print(b) @meta_decorator(foo=”bar”) def my_other_func(**kwargs): print(kwargs) In Reusables, all the wrappers take arguments, aka meta decorators, so you will at...

Share this:

  • Reddit
  • Twitter
  • Facebook
  • Email
Continue reading...

Reuse the work of others for profit! (Vega 64 Edition)

Posted on August 13, 2017 by Chris Griffith Coding Opinion 0

As I sit here, anxious for the new AMD Vega 64 to be released, I decide to keep myself busy writing some Python code….designed to text me as soon as a new “rx vega 64” search term showed up on Amazon (I have the patience of...

Share this:

  • Reddit
  • Twitter
  • Facebook
  • Email
Continue reading...

Is it easier to ask for forgiveness in Python?

Posted on June 27, 2017 by Chris Griffith Coding Overview Tutorial Uncategorized 0
Yes, we are looking for graphic artists

Is Python more suited for EAFP or LBYL  coding styles? It has been debated across message boards, email chains, stackoverflow, twitter and workplaces. It’s not as heated as some other battles; like how spaces are better than tabs, or that nano is indisputably the best terminal...

Share this:

  • Reddit
  • Twitter
  • Facebook
  • Email
Continue reading...
Page 10 of 13« First«...89101112...»Last »

A home for professional coders’ articles, opinions and ideas.

Search

Recent Posts

  • Box 7 is out! But should you use it?
  • Enabling Animated AVIF in Firefox 111
  • Raspberry PI 8mm Scanner
  • Python patterns only beginners use
  • Using AVIF and HEIF images with Python / PIL
  • AMD improves video encoding yet again! This time with Pre-Analysis
  • AMD Re-introduces the B-frame!

Categories

Tags

4k amd amf basic box chunking code coding DASH encoding fastflix ffmpeg h264 hardware hardware encoding hdr hdr10 hevc HLS Intel learning multiprocessing Nvidia overview pi pil pillow python python 3 raspberry raspberry pi raspberrypi server SSIM subprocess tutorial uhd upload vce vcn video vmaf windows x264 x265
  • RSS - Posts
  • RSS - Comments

Code Calamity © 2023. All Rights Reserved.

Powered by WordPress. Theme by Alx.

 

Loading Comments...