Blog new

Getting Data from Dynamic Models in Laravel

$model="App\\".$passed_variable; return $model::findOrFail($id);

Changing channels on your HDHR Prime Via Mythweb

In an earlier post, I explained how I use VLC to watch TV instead of MythTV due to the overhead of MythTV on OSX. VLC streams TV beautifully, and as long as I don't have an upcoming recording, everything works out fine. I also added a 'play' button to the Mythweb TV listings which communicates to...

Poor Man's Crontab-based plant Timer

With a Linux box in the basement, a firecracker X10 device, an X10 Appliance Module, and some grow lights, you too can have a poor-man's timer for starting seedlings. Sure timers only cost $20 bucks, but isn't hacking one more fun? Start with Heyu software. If you are dabbling with X10 and don't...

Setting Up Your SSH Tunnel

There are times I wish I could get a second opinion about DNS resolution at work, and times when I simply want to check in on my home network (are the kids playing Minecraft instead of finishing homework?). Nothing makes this easier than an SSH tunnel. An SSH tunnel is a secure path to a remot...

Disabling OSX Finder's AirDrop Shortcut From Hell

AirDrop is a great thing for transferring files to and from your Apple universe products when it works. Unfortunately, it doesn't work enough to merit a Finder shortcut. Especially when that Finder shortcut is also the same shortcut for Chrome's force refresh. ⌘ ⇧ R I accidentally attempt...

Building an M3U Playlist in PHP!

Since my last post about using HDHR in VLC, I've upgraded the firmware to 2013-12-12 (the latest as of this writing). This new firmware seems to be a lot more stable for http streaming. If that's the case, why not build out an .m3u playlist listing all of the channels I subscribe to that pulls in...

DD-WRT and Blocking Steam

Kids and their videogames are hard to separate sometimes. While it's always better to teach the kids to moderate themselves, sometimes having a little help doesn't hurt. This is pretty easy to do using DD-Wrt if you have it installed on your router already. If you don't, I'd suggest you look into it...

Removing 'Suggested Videos' From Your Facebook Page

If you're like me, your Facebook feed is filled with videos of Bernie Sanders that your friends have shared. Unfortunately, Facebook also has a "Suggested Videos" list that comes after the video your friend posted. The unfortunate part being that these are sometimes negative in nature or slanted tow...

What's Your Favorite Wordpress Hook?

I recently wrote a cover letter for a job and they asked applicants to answer this question. If you're new to Wordpress on the programming side, hooks are ways you can insert code into various stages of the processing and display of pages and data. For instance, Woocommerce, a great Wordpress plugin...