Skip to content Skip to sidebar Skip to footer
Showing posts with the label Language Agnostic

Finding Blank Regions In Image

This question is somewhat language-agnostic, but my tool of choice happens to be a numpy array. Wha… Read more Finding Blank Regions In Image

Finding K-nearest Neighbors For A Given Vector?

Given that I have the following in my knowledge-database: 1 0 6 20 0 0 6 20 1 0 3 6 0 0 … Read more Finding K-nearest Neighbors For A Given Vector?

Clean And Type-safe State Machine Implementation In A Statically Typed Language?

I implemented a simple state machine in Python: import time def a(): print 'a()' r… Read more Clean And Type-safe State Machine Implementation In A Statically Typed Language?

Python Threads - Critical Section

What is the 'critical section' of a thread (in Python)? A thread enters the critical secti… Read more Python Threads - Critical Section