Erik Peña

Ramblings of a Madman


ESP8266 Button Debounce

ESP8266 Button Debounce


Posted By on Aug 2, 2015

When using the Arduino Core for the ESP8266 module, I ran into a situation where I needed to debounce a hardware button to cut out incorrect reading.  I found many examples online that showed how to debounce including examples on Arduino’s website and another from an Instructables tutorial.  However, I am very specific when it comes to how code is implemented and all the examples contained more than necessary global variables.  So, I decided to implement my own debouncer for push buttons.

Read More

You probably found this document because you you’ve heard that the ESP8266 module has been taking the IoT community by storm.  I’ve been playing around with the ESP8266 module for some time now and have started gathering notes on things to be considered when developing for the ESP8266.

Read More
OSX Yosemite and Apache

OSX Yosemite and Apache


Posted By on Feb 4, 2015

With the latest release of OSX Yosemite, the Web server hosting option comes disabled with no System Preferences to re-enable it.  However, the components within OSX are still there and just need to be manually configured and initiated.

Read More
Bulk Renaming File Names in Linux

Bulk Renaming File Names in Linux


Posted By on Jan 3, 2015

Summary

In my home, I have a Synology NAS that I use to store media files which can then be viewed by multiple devices within my home.  When I format the file names of the media files a certain way, my applications that I have running on my Raspberry Pis are able to scrape enhanced metadata from the internet and give me additional details.

One thing that I am always running into is when I source files that have file names that I need to scrub in order to fit a format of my choosing.  Doing this manually is daunting and my time is better spent doing other things.  For example, I can get content from the Internet Archive, which is a web site dedicated to serving Open Source video content.  

Read More

Ever been in a situation where

1) The executable is .NET based

and

2) You needed to get a capture of a SOAP request against an external service

and

3) You didn’t have access to the codebase to roll configuration logic to point to a proxy

and

4) Fiddler would not work as a standalone on the system

and

5) You couldn’t use Wireshark because the OS of the system is Windows Server 2008 R2 (Wireshark is dependant on NPF.sys which is not existent on Server 2008)

and

6) You couldn’t install the NPF Windows Service because the system is in production?

Read More

I happened to come across a first generation AppleTV that my co-worker sold me for steal of a deal. The reason it was so cheap though ($35, FTW!) was that it was missing the original hard drive (which had failed anyways). In order for this block of metal and circuit to be worth anything, it needed a new hard drive with the iOS version for AppleTV.

Read More

A while back, I had built a friend a website for his scrap metal collection service. He mainly needed it just so he had a presence on the interwebz and so that he could host links to external resources his customers may need (e.g. “Affidavit in Lieu of Title”, “Abandoned Vehicle Report”, etc.). All-in-all, it turned out to be a good website. Wish I could link it to demo the end product. The site has since been taken down due to his contract terms expiring with the Web Host. I still have the source though.

Read More