PHP: TrueType bounding box with GD abram, July 28, 2009July 28, 2009 Just a snippet to print out the values in a bounding box. print_r’s simple outline format just makes it easier to visualize. <?php $im = imagecreatetruecolor(800,600); $arr = imagettfbbox(30,0,’fonts/arial.ttf’,’this is a long string of text!’); print_r($arr); ?> Continue Reading
PHP: transparent PNG over JPEG abram, July 28, 2009July 28, 2009 <?php header(“Content-type: image/jpeg”); $im = imagecreatetruecolor(800,600); // main image output $im2 = imagecreatefromjpeg(‘image1.jpg’); $im3 = imagecreatefrompng(‘../images/template3.png’); imagecopymerge($im,$im2,360,186,0,0,800,600,100); imagecopy($im,$im3,0,0,0,0,800,600); imagejpeg($im); imagedestroy($im); imagedestroy($im2); imagedestroy($im3); ?> Continue Reading
the final layout abram, June 22, 2009August 31, 2017 She’s big and bulky, but you can’t ask for too much when you’re dealing with pre-printed PC boards. The 22k resistor in the gain path makes for extremely high output (in terms of headphones). The 100k stereo potentiometer on the output side should make the noise floor a lot lower… Continue Reading
the first of four… abram, June 18, 2009June 22, 2009 This was my first attempt at building the circuit on the PC board. Unfortunately, I think I’m going to have to get a different board since this one isn’t quite big enough with two opamps. Soldering it is also a bitch considering it’s tiny and my iron tip isn’t as… Continue Reading
two ears. two channels. abram, June 16, 2009June 22, 2009 Double the circuit for stereo. This is a breadboard representation of a single “channel.” Each channel will have its separate PCB with controls. This one lacks a volume pot, but the output was more than enough. 750mW after hooking up the gain path resulted in ripping the ear buds out… Continue Reading
exploring the LM386… abram, June 14, 2009August 22, 2016 In my attempts to recently mod a Peavey Classic 30, I’ve been researching audio amplification like a demented mad scientist scheming to destroy the world. I’ve understood the conceptual model of amplification for a while, but I’ve never actually plunged into the crafting part of it before now. After changing… Continue Reading
it’s bigger than you think abram, March 1, 2009October 26, 2009 Eventually, I was indeed able to stumble my way in the dark to Hotel Venecia without having to sleep outside. The next day I decided to attempt to make my way to Volcán Maderas, the smaller of the two volcanoes. I set out from Charco Verde on foot assuming that… Continue Reading
an introduction to Ometepe abram, February 24, 2009October 26, 2009 I arrived via the ferry that runs from San Jorge to Moyogalpa, the principal port town on the larger of the two islands. As I was heading over on the boat, I was looking at the map of the island trying to figure out where I would stay the night…. Continue Reading
touchdown abram, February 17, 2009February 28, 2009 Having landed at Managua’s International Airport, I’ve been fortunate enough to make my way to Masaya. My anxiety levels dropped about ten fold after a short walk around downtown even at night. Managua is bustling with rampant commercialism that’s next to impossible to escape… especially for someone completely out of… Continue Reading