Creatively... Do!
  • Home
  • Blog
  • Contact
  • Programming
    • Solitaire
    • Minesweeper
    • Sudoku
    • Pong
    • Mandelbrot
  • Music
    • The Snowman

Blog

  • Home
  • Blog
  • Author: christian_abbott

Viewing posts by christian_abbott

Using SVG and CSS to create Pacman (out of pie charts)

Posted by: christian_abbott in web development 5 years, 2 months ago

Lea Verou has a wonderful talk about various techniques we can use to create a pie chart purely in HTML/CSS. The techniques are clever and interesting, but pie charts are a little boring. So let's modify one of her ideas and create Pacman instead.

read more / 0 comments

How to solve the Impossible Escape puzzle with almost no math

Posted by: christian_abbott in math 7 years, 6 months ago

You and a friend are imprisoned but have a chance for freedom. To earn it, you must walk alone into a separate room where a chess board is laid out with a coin per square randomly showing heads or tails. You are shown a particular square on the chess board, and are then allowed to touch one coin to flip it. Then you must leave without making any contact with your friend. Your friend enters the room and must pick the square which was pointed out to you. You and your friend may discuss a strategy before you enter the room.

read more / 2 comments

How to make iterators out of Python functions without using yield

Posted by: christian_abbott in python 8 years, 9 months ago

The built-in iter() method in Python 2.2 and later hides a neat trick which is not well-known. Typically iter() is used to return an iterator from an iterable object:

read more / 0 comments

How to globally customize exception stack traces in Python

Posted by: christian_abbott in python 8 years, 10 months ago

The Python programming language has some useful flexibility which it can take a while to discover. One such example is exceptions. As programmers, we want as much relevant information as we can get when something goes unexpectedly wrong in our programs. When an unhandled exception bubbles up, Python's default behavior is to print a stack trace, the type of error, and an error description. This is printed to sys.stderr (i.e., the console window, typically), like this:

read more / 1 comment

Is your tango embrace really too firm or too relaxed?

Posted by: christian_abbott in tango 9 years, 5 months ago

Followers, you may be familiar with the scenario where you dance with one leader, and receive feedback that your embrace is too firm, but when you dance with another leader, the same embrace is too light. So, which is it?

read more / 0 comments

  • Page 1 of 3
  • ←
  • 1
  • 2
  • 3
  • →

Recent Posts

  • Using SVG and CSS to create Pacman (out of pie charts)
  • How to solve the Impossible Escape puzzle with almost no math
  • How to make iterators out of Python functions without using yield
  • How to globally customize exception stack traces in Python
  • Is your tango embrace really too firm or too relaxed?

Archive

2017
  • May (1)
2015
  • February (1)
2013
  • November (1)
  • October (1)
  • March (1)
  • February (3)
  • January (4)
2012
  • December (1)

Categories

  • django (2)
  • environment (1)
  • math (2)
  • python (2)
  • tango (5)
  • web development (1)

Authors

  • christian_abbott (13)

Feeds

RSS / Atom
  • Blog
  • Contact
  • Programming
  • Music
©2012-2020 Christian Abbott