Ohio DA to forecasters .. We’re setting an example!

Ohio prosecutor seeks death penalty for Punxsutawney Phil after bad forecast Posted by Jason Samenow on March 21, 2013 at 4:38 pm

As severe cold grips the eastern U.S. on March 21, Punxsutawney Phil’s forecast for an early spring is best described as an epic failure. The prosecuting attorney of Butler County, Ohio, Michael Gmoser, wants the groundhog to pay for his flawed prediction, with his life.

via Ohio prosecutor seeks death penalty for Punxsutawney Phil after bad forecast.

But we must be careful, we may be setting a dangerous precedence, creating slippery slope, one in which we would likely be left without any weather forecasters across the nation. Off to the Appellate, Phil!

It’s all in good fun of course. There’s also the slight possibility that I’ve been watching entirely too much Law & Order this week.

Fixing the Nook app for OSX

Although I usually read books on paper on the iPad, I downloaded the Nook app for OSX this evening.  Downloaded just fine, opened fine, but never made it past the splash screen. The animated “Nook” logo flashed across, froze, and sat there. For a long time.

Restarted several times with the same result, even downloaded it again and reinstalled with the same results.  As of right now, the latest version is 3.0.0 which was released in March 2012, so not a lot of recent work has gone into it.  Some google searches resulted in quite a few other people having the same problem with no real answer or updates from the B&N folks.

The solution as it turns out, is a very easy fix.  In your /applications/ folder (where the Nook app is installed) create a new folder, call it “NookforMac” and drag the app in there. Make sure the app is closed, re-open it, and viola. Should work just fine.

Credit to kateB over at openkase for the workaround.

Update:  Well, this solution worked for about a week, then the problem returned.  The solution for that was to wait until the app launched, and froze on the nook animation. Right clicking in the grey-space around the logo and selecting ‘reload’ got the app to load the rest of the way (although it took a couple of times).

 

WordPress, Jetpack stats graph, and broken images in the admin bar – and a solution

Get ready for it, this is…a blog post about a blog.

I recently upgraded to WordPress 3.5.1, the upgrade went off without a hitch, save one problem.  The sparkline graph from the Jetpack plugin was displaying as a broken link.  If you’re not familiar with the term “sparkline” don’t worry, I didn’t know what it was called until I started doing searches.  The sparkline is a small traffic graph that appears in the admin bar when  you’re logged into your WordPress account; it shows your site traffic for the last 48-hours.

After looking all over the web, in the WordPress and Jetpack forums I found people with similar issues, but none of their resolutions fit my particular issue.  I tried disabling plugins one at a time, that made no difference.  I deactivated Jetpack and then linked it again. No difference.  Removed Jetpack altogether and reinstalled, same result.

Through the WordPress forums I was able to get in touch with Jeremy, a Happiness Engineer with Automattic who helped me figure out the root cause. Big thanks to him for taking the time to work with me. Here’s how we diagnosed the issue.

View the xmlrpc.php file in the root of your WordPress directory with a web browser. It should return the text “XML-RPC server accepts POST requests only.”  If that message is the first line of the page, then your problem may lie elsewhere.  If there are any empty lines or spaces above that message then you have a php script introducing whitespace before the headers are printed, and Jetpack hates this. That additional whitespace could be coming from plugins, themes, or any custom hacks to the WordPress core.

Since I had already disabled all the plugins, I knew it couldn’t be coming from them.  Next up, switch back to the default theme. When I did that the sparkline appeared right away, so it was something in the theme, so the next step is to go through all the php files in the theme and look for empty lines before the php tags, or empty lines between closing and opening tags, functions.php would be the most likely location.

In my case, there were so many included files in the functions.php file that it was becoming quite tedious to look through them all and since a theme update was available I went ahead and tarballed up the ….. Continue reading WordPress, Jetpack stats graph, and broken images in the admin bar – and a solution

OSX – Imaging an SD card for use on a Raspberry Pi

My new Pi and it’s memory card arrived at the house yesterday afternoon. I got everything unboxed, downloaded the latest image from the Pi website and fired up Disk Utility on my Mac and was ready to start imaging. But it’s not quite that simple, the Disk Utility can’t verify the image as being valid, so we have to do this from the command line. But relax, it’s not hard to do.

First insert the SD card into the card reader, open a command prompt and run this command:

elmo:~ jgs$ df -h Filesystem Size Used Avail Capacity iused ifree %iused Mounted on /dev/disk1s1 29Gi 2.1Mi 29Gi 1% 0 0 100% /Volumes/NO NAME

You’ll end up with a lot more that what I’m showing you above, but in the interests of keeping it simple, I cropped out the extra disks and drives attached.  You’ll want to locate the SD card you plan on using either by the size of the disk or the name. Mine was new out of the box and was actually called “NO NAME” so it was easy to find.

Next fire up Disk Utility, and under the name of the SD card “unmount” any partitions that are listed, but don’t eject the media.

So we’ve identified the drive as /dev/disk1. It’s very important to make sure you have the correct disk, running the command we’re about to run has the potential to erase your entire hard disk if not used carefully. Always triple check the destination.

Once you’ve done that, go back to your terminal window and run this command – but alter it first to fit your system!!  The if (input file) parameter should point to the .img file and the of (output file) should point to the SD card.

sudo dd bs=1m if=/path/to/file/2012-12-16-wheezy-raspbian.img of=/dev/disk1

From the command line there won’t be any output while the program executes, which is slightly annoying, but there’s a way to force it to show us the progress. There are several ways to do this, depending on the OS you’re running, and sometimes these commands are not interchangeable and can kill the process. For OSX you’ll want ….. Continue reading OSX – Imaging an SD card for use on a Raspberry Pi

Raspberry Pi Model B on the way…

It’s been a good long while since I’ve written anything techie (or otherwise) here, been busy and lacked motivation.  Today I ordered my  Raspberry Pi Model B along with a Adafruit Pi Cobbler Breakout Kit and some other assorted goodies.  I’m pretty excited to get my hands on it, unfortunately the estimated delivery date is towards the end of January.

The possibilities seem relatively endless, there’s a myriad of forum posts in their official forums from members of the community that have done some pretty amazing things with them. Yeah, I know, they’ve been on the market for a while now, this is really tie first time I’ve taken the time to do any research on them. More to come on this, guaranteed.

If you’re still scratching your head wondering what it’s all about, check out this Google Tech Talk by Rob Bishop, he’s one of the engineers that has been dedicating their free time developing this product.

It’s a great cause, with a nice side effect of empowering techies to create some cool stuff.

Running pogoplug behind a squid proxy (ipcop)

So I’ve done a couple of articles about my new filesharing appliance the PogoPlug over the last year. Absolutely fantastic device, use it often remotely.

One thing that I’ve been unable to get working so far was the native OS application. The application allows you to map a drive directly to the drives connected to the appliance, hence the last article about installing a samba server on it. This issue probably won’t apply to most folks, my home network is a little unique compared to the average person buying a commercial router from Linksys, Belkin or the like. Skip to the bottom for the commands if you’re not interested in my reasons for splitting the networks.

So, I have two completely separate networks at the house. One is wired, and the other is wireless, they interconnect through some various switches but ultimately demarc on an IPCop firewall. The wired network is where my home servers and toys connect (SlingBox, ssh server, pogoplug) whereas the wireless is mostly computers or smartdevices.

With this setup, I don’t have any want or need to proxy traffic from the wired network as they’re essentially all services. From the wireless where we actually surf however, I like to run URLFiler and Advanced Proxy on the IPCop box to get filter out ad servers and malicious and adult websites. The problem with doing this is that the clients need an UNFILTERED direct connection to both the PogoPlug device and the main PogoPlug server out in internet land. Until today I mostly used the samba share to get around this, but it started bothering me and after some poking around I came up with a very easy solution.

You may be asking, why not just add an exception in squid? Well, it doesn’t seem to work through the IPCop interface. And modifying the actual config files would do the job, but the next time IPCop restarts or I add something in the web interface, it would wipe out the manual changes I made. So, lets fall back to good old iptables and prerouting!

By adding these two rules, we save a whole lot of headaches, and the software works perfectly:

/sbin/iptables -t nat -A CUSTOMPREROUTING -p tcp –dport 80 -d service.pogoplug.com -j ACCEPT /sbin/iptables -t nat -A CUSTOMPREROUTING -p tcp –dport 80 -d [POGOPLUG_IP] -j ACCEPT

The first line allows an unfiltered connection ….. Continue reading Running pogoplug behind a squid proxy (ipcop)

Munin plugins and system configuration..

Munin is a great open-source monitoring solution for servers. I’ve used it in the past and was really happy with the results, but when I was using it my server was just a little VPS and running the server and node on the same box caused some system resource issues. But now having colo equipment in the rack at DimeNOC I decided to give it another go.

….. Continue reading Munin plugins and system configuration..

Installing Samba on your pogoplug

I know there are a bunch of articles online about installing samba on Pogoplug (or openpogo enabled) devices. I read quite a few of them and still ran into trouble installing it on my appliance so I though I’d do a quick write-up of how I got things rolling.

First, you need to install the OpenPogo base package. Very detailed and effective directions are available here.  A couple of notes about OpenPogo before you go running off though. First, it requires an external USB drive to install on, and run from. Second, if you remove the USB drive (perhaps mistakenly thinking you were done with it) the filesystem that was on there is dismounted and everything running from it stops. And finally, the USB stick will have to be reformatted into a linux ext2 or ext3 format which means you’ll lose any existing data on it. Best to find an older 1GB stick and use that for this as the packages seem rather small.

Ok, so once you’ve installed the OpenPogo software onto your external USB drive, rebooted, mounted, etc, what you’ll need to do is run ipkg to install Samba. You should be able to execute this command to kick it off:

-bash-3.2#  ipkg install samba2

This kicks off the download and installation process which I imagine under ideal circumstances should take care of the whole thing for you. If it did, skip this section and see the configuration part below. I’ll warn you though, the downloads were very slow for me, took about twenty minutes to download the seven meg file even though I was able to wget it to my linux box much faster.

The problem I had was an invalid MD5 checksum when using the automatic installer, so I resorted to manually downloading the file, then installing it.

-bash-3.2#  cd /root -bash-3.2# mount -o rw,remount / -bash-3.2# ipkg download samba2 -bash-3.2# ipkg install samba2_2.2.12-2_arm.ipk

Once the install has completed successfully, you should turn on the server by running this command:

-bash-3.2# /opt/etc/init.d/S80samba start

After which you can verify that the ….. Continue reading Installing Samba on your pogoplug

New gadget: Pogoplug

After reading some reviews on Engadget and Gizmodo I broke down and purchased a PogoPlug from buy.com (they were on special for $47.99 at the time, $79 at the time of this writing).

Pogoplug is an appliance that you can connect to your home network which runs a custom version of linux. The device has a gigabit ethernet port, three USB 2.0 ports on the back and one on the front. Basically, you plug your external USB hard-drives into this thing and it makes your files available to you no matter where you roam.

Best part (for home users) is that there are no firewall rules that need to be put on your home router or custom firewall. The device heartbeats out to their servers in the cloud and make the whole thing possible without a lick of configuration being required. Caveat: UDP has to be unfiltered outbound for this to work, so “real” firewalls may have to have allow statements put in them.

So, with your purchase of the hardware, you get lifetime support and access to your personal “storage in the cloud”. This can be accomplished remotely (or locally) via the web client or samba/windows shares. You also have the option to share files and folders with the world, individual users, etc. There’s even a client that runs on the Mac, PC and iPhone to access files directly and see them as locally mounted drives. If you happen to be on the same network your connections go directly to the device and not through the Pogoplug servers.

From my iPhone, I’ve been able to stream movies over WiFI and 3G with great quality. The Pogoplug device will convert audio and video files on the fly to allow streaming to the iPhone/iPod/iPad/PC/Mac, etc. Sweet little deal, if you happen to have a bunch of movies or music on your external drive(s).

Through the use of OpenPogo you can even install custom software on the appliance like samba, squid, bittorrent, a webserver, etc! Since this little guy runs on linux, the possibilities are endless really.

Been using this for a couple of weeks now, and I’m really impressed. The company announced just a few days ago that a new firmware update ….. Continue reading New gadget: Pogoplug

And Netflix/iPhone arrives!

Just yesterday Netflix released their much awaited iPhone app (or I should say, Apple approved and published their app to the iTunes store). So far I’m pretty impressed with it.

The application allows you to obviously browse your instant queue, watch whatever you like and resume where you left off should you change directions on them. One thing I was surprised to see when I first logged into the application was that I was using all six of my licenses. Very much akin to the iTunes “authorized computers” schema. I was directed to their website where I had the option to kill devices, some of which I had not streamed on in quite some time. The message on that screen said that devices can be added and removed pretty much at will, so no big deal there.

So, back to the app. The video quality is very good, comparable to a downloaded movie from the store (or one you ripped). WiFI was very fast obviously, but 3G wasn’t really too far behind it, took a few moments to load and buffer, but solid after that.

I’m really glad I stuck with my grandfathered unlimited data plan with AT&T, I could see how getting an application like this approved would benefit them greatly financially as users on a limited data plan burn through their megabytes and gigabytes without a second thought. Careful out there, oh limited bandwidth users. Everyone else, burn it up! Cheers.