Blog | |
Releases |
Page:
0 ... 5 8 9 10 11 12 13 14 15 16 ... 20 ... 25 ... 30 ... 35 ... 40 ... 45 ... 50 ... 55 ... 60 ... 65 ... 70 ... 75 ... 80 ... 85 ... 90 ... 95
Have you ever needed to know what type of memory stick you have? | |
---|---|
Date: 11/7/2013 Tags: hack | Well Wikipedia has a nice SVG file that will tell you. Hold the piece
of ram up to the screen and it will match one of the outlines
perfectly (if your screen DPI is correct). I had a piece of DDR2 it turns out. I'm sorry, but that's just cool. |
(0) Comments | Add Comment | |
LED Ring Working Prototype | |
---|---|
Date: 2/3/2013 Tags: mc1 axefx led-ring | Here is my LED ring from the previous post working in real
hardware: |
(1) Comment | Add Comment | |
RGB LED ring PCB | |
---|---|
Date: 24/1/2013 Tags: axefx mc1 led | I've been working towards my own RGB LED ring PCB:
|
(0) Comments | Add Comment | |
Intel HD4000 has no DVI output | |
---|---|
Date: 14/1/2013 Tags: HD4000 dvi | Symptoms: Windows 7 boots up, shows the splash and then the
monitor goes to sleep. Problem: The DVI display is not detected, however there is output available on the HDMI port. Solution: Unplug and re-plug the DVI port. (omg indeed) |
(0) Comments | Add Comment | |
Python's .py Windows Association | |
---|---|
Date: 11/10/2012 Tags: python | Posting for future reference: Windows is not passing command line arguments to Python programs executed from the shell. This solved my problem with passing arguments to python scripts without invoking the python binary first. |
(0) Comments | Add Comment | |
Converting audio samples to dB and back | |
---|---|
Date: 26/4/2012 Tags: audio | I've been writing a tool to normalize lots of audio files at once, as well as convert between various loss-less formats (particularly FLAC and WAV). In doing that I needed a way of converting between the raw audio sample maximum and dB. So I present to you my C functions for doing so:
double LinearToDb(int32 linear, int bitDepth) { uint32 MaxLinear = (1 << (bitDepth - 1)) - 1; uint32 ab = linear >= 0 ? linear : -linear; return log10((double)ab / MaxLinear) * 20.0; } int32 DbToLinear(double dB, int bitDepth) { uint32 MaxLinear = (1 << (bitDepth - 1)) - 1; double d = pow(10, dB / 20); return d * MaxLinear; }Another code snippit for Google to index. |
(0) Comments | Add Comment | |