Now published at https://programmingisterrible.com/post/696130032656171008/questions-i-have-been-asked-about-photography
... and some answers I have given which may or may not help you.
Practice.
import array | |
import math | |
import time | |
import os | |
import usb.device | |
from uac2 import AudioInterface | |
print("Okay, configuring the audio interface now...") |
""" | |
KMK keyboard for Pimoroni Keybow. | |
WARNING: This doesn't currently function correctly on the Raspberry Pi Zero, | |
some of the keys are stuck in the 'pressed' position. There's either a bug in | |
the keypad implementation on the rpi0, or the pin numbers don't match the pins | |
in linux. | |
This is a 4x3 macro pad designed to fit the rpi's GPIO connector. Each key is | |
attached to a single GPIO and has an APA102 LED mounted underneath it. |
Now published at https://programmingisterrible.com/post/696130032656171008/questions-i-have-been-asked-about-photography
... and some answers I have given which may or may not help you.
Practice.
#!/usr/bin/python3 | |
import serial | |
import sys | |
# DECtalk output over serial with command resetting | |
ser = serial.Serial('/dev/ttyUSB0',9600,timeout=1) # open serial port with 9600 8N1 defaults | |
print(ser.name) # check which port was really used | |
for line in sys.stdin: |
https://abs.twimg.com/fonts/chirp-regular-web.woff | |
https://abs.twimg.com/fonts/chirp-bold-web.woff | |
https://abs.twimg.com/fonts/chirp-heavy-web.woff | |
https://abs.twimg.com/fonts/chirp-medium-web.woff |
# If you, like me, have all of your various source-code-like projects in ~/src/ | |
# this is how to give yourself per-project shell history. | |
# | |
# I wish I'd done this years ago. | |
# | |
# First, in your .bashrc file, you redefine the cd, pushd and popd builtins to be "do the builtin bit, | |
# then do one other thing (set_src_history.sh, below) like so: | |
cd () { |
Using these URLs, you can listen to CBC radio streams with applications like VLC or Transistor. The files are M3U playlists, so you can use them as-is, edit them to suit your tastes, or use individual URLs.
This playlist contains the .m3u8
URLs from the CBC Listen website, which uses the HLS (HTTP Live Streaming) protocol. The audio stream is broken up into multiple tiny files, which are then fed into the .m3u8
playlist file that delivers them to your computer in the right order. This should work with modern media players.
This legacy playlist uses good old-fashioned MP3 streams found on PublicRadioFan.com. It will work with older programs like Winamp that don't support HLS. I don't know how lo
Get ON my lawn is a software philosophy that believes good software grows better with time.
Get on my lawm shuns trends and salesmen disguised as programmers.
Get on my lawn shuns the fancy new framework.
[[source]] | |
url = "https://pypi.org/simple" | |
verify_ssl = true | |
name = "pypi" | |
[packages] | |
pybluez = "*" | |
pillow = "*" | |
packbits = "*" |
#!/bin/bash | |
# http://twitter.com/bradTTC/status/1024344192061853696 | |
# blame gnomon | |
# prereqs: curl, awk, flac, metaflac, strings, grep | |
declare src='https://beta.ttc.ca/about-the-ttc/public-service-announcements' | |
declare alt='http://www.ttc.ca/sethrogen/index.jsp' | |
declare -i i=0 j=1 |