• Amazon Echo Update After Six Months

    I was just checking my Amazon order history and noticed that I ordered my Amazon Echo six months ago, as of yesterday. Here are some of the impressions that I have after using it in my house for six months, and possibly some comparisons to what I was expecting and how I thought that I would use it. Let me start off by saying, however, that I love the device and am very happy that...
    Read more...
  • Python - Using C Foreign Function Interface

    I write a lot of code in Python – a lot. Normally this doesn’t bother me – I find the language extremely easy to write and read, expressive enough for about 99% of the things that I use it for, and (generally-speaking) fast enough for most tasks. I’ve always been curious about the “interpreted vs. compiled” performance factor with the language. I know that Python is a slower language than C (and honestly, who doesn’t...
    Read more...
  • JavaScript Random Image Maker

    I made a post about how to use Python and Tkinter to randomly generate an image based on an algorithm that “turns” a pencil randomly throughout the course of its execution, based on a specific random seed. I wanted to make the same program available through JavaScript to make it more accessible – here are the results of that. Frame Count: Changes take effect on New Drawing Only Random Seed: Pencil Weight: Weight North: Weight...
    Read more...
  • JavaScript iPad Weight Calculator

    I wanted to move my iPad Weight Calculator to be a completely client-side operation, because using my server to calculate simple mathematical computations (that could easily be done in the user’s browser) was really not the best design decision that I’ve ever made. So I re-wrote it in JavaScript. /* Copyright (c) 2014 Anthony Pusateri All rights reserved. http://apusateri.com Redistribution and use in source and binary forms, with or without modification, are permitted provided that...
    Read more...
  • Google Maps Location Finder

    Testing out a Javascript Google Maps Location Finder. Should use the browser’s navigator property to determine where the user is located and display the location as a map on the screen. Browser will request authorization to use the user’s location before allowing the map to be generated, and will display an error message indicating that GeoLocation is not available if it’s unable to do so. Implementation: /* Copyright (c) 2014 Anthony Pusateri All rights reserved....
    Read more...
  • Because Sometimes I Break Things, Just To Fix Them

    Today, I accidentally uninstalled Apache, PHP, and MySQL from my LAMP server – apparently turning it into an L server. Which was not very useful. In case I do it again, here’s some notes and apache configuration stuff so that I don’t have to rack my brain trying to remember how I had this stuff set up. WordPress Apache Config This is a configuration file for hosting a WordPress site behing Apache. Took me longer...
    Read more...
  • Recording Sound Output with Python, PyAudio, and Soundflower (OSX)

    I recently decided to try writing a script that would record the audio output from my speakers to a file, instead of playing it – Here’s what I had to do in order to get it working. Step 1: Install Soundflower During the actual course of development, this was by no means the first thing that I did – however, I finally came upon this solution as a way to indicate that both input and...
    Read more...