Forgotten audio formats: The Highway Hi-Fi
If only we could still play our vinyl records while speeding down country lanes.
Adding a New Component
Fire TV Stick: A Review
It’s been a bit since I got a Fire Stick during their $20 for Prime Members sale.
I’ve used the Chromecast and Roku stick/box, and the Fire Stick has a lot going for it and a lot…not. Unlike the Chromecast, it does have a remote control, so it is most similar to the Roku stick in functionality.
Now, the difference comes in specifications. The Fire Stick has the best specifications of any of the three. That means smoother execution.
However, the issue with the Fire Stick, as with the entire Fire line, is the limitation of the Amazon App Store. The apps that are in the store mirror those developed on other Android platforms…Amazon’s OS being a fork of Android. However, many developers don’t develop a version of their application for the platform, leaving many gaps.
So, if you want the standard video providers…this is an excellent option. It’s small, expensive, supports many hours of video watching.
But if you expect to get a lot of independent development beyond that, you are going to be disappointed.
[asa]B00GDQ0RMG[/asa]
Pinboard Switches from One-Time to Annual Fee
Bookmarking site Pinboard has announced that effective January 1st, 2015, it will discontinue the one-time signup fee and instead offer a $11/year plan, as well as the existing $25/year archival plan.
However, anyone who is an existing member, or who signs up before January 1st, will be grandfathered in.
As someone who has 32,000 bookmarks in Pinboard of articles I found of interest, I would recommend the service. It is flexible enough to be whatever you want it to be.
For me, as an archival customer, it is a record of every online source I read and found of interest that I know will be there(as it is archived on the Pinboard server). I can search that for any article I remember reading.
Other people use it in other ways. It can be social, it can be a Read It Later service…I used to use a Read It Later service, when what I really wanted was an archive.
So, if you are interested, give it a try before the price goes up.
Let’s Build a Server: Part 2 – Monitoring
Last time, in Part 1, we discussed setting up a firewall and an email relay so notifications from the firewall could get to us.
Now, in Part 2, we’re going to talk about more signal. Server monitoring and alerting. Our primary software for monitoring is Monit.
Monit has a single configuration file, but many distributions, including mine, set up a /etc/monit.d folder so you can divide your monit configuration into different files.
Once it is running, you can monitor its status by running
monit status
It will show the status of whatever is monitoring. There is also an optional web component, if you want to check status in a web browser.
What can you monitor?
Monit can monitor any program and restart it if it crashes.
check process nginx with pidfile /var/run/nginx.pid
start program = "/bin/systemctl start nginx.service"
stop program = "/bin/systemctl stop nginx.service"
if failed host 127.0.0.1 port 80
protocol http then restart
if 5 restarts within 5 cycles then timeout
As you can see, the simple scripting language allows you to not only restart, execute programs, but alert the user.
Not only can it make sure something is running, but it can monitor its resource usage, as well as system resource usage. It can monitor processes, network connections, programs and scripts, files, directories, etc.
An Alternative to Email Alerts
The default for an alert is to send an alert email, but for bigger emergencies, a phone push notification is also useful.
Monit provides a simple instruction on how to set it up for Pushover. There is also the alternative of PushBullet.
Pushover costs $5 per platform(Android, iOS, Desktop) to use on as many devices as you want. There is a per application limit of 7,500 messages per month. Pushbullet is, by comparison, free. The basic difference as I see it is that Pushbullet is more geared toward the consumer, and Pushover is more geared toward developers in how it was initially set up. They do have similar feature sets though.
Here is Monit’s suggested Pushover script, which can be run instead of an email alert.
/usr/bin/curl -s
-F "token=your_mmonit_or_monit_app_token"
-F "user=your_pushover_net_user_token"
-F "message=[$MONIT_HOST] $MONIT_SERVICE - $MONIT_DESCRIPTION"
https://api.pushover.net/1/messages.json
Here is an alternative version for Pushbullet
curl -u <your_access_token_here>: -X POST https://api.pushbullet.com/v2/pushes --header 'Content-Type: application/json' --data-binary '{"type": "note", "title": "$MONIT_HOST", "body": "$MONIT_SERVICE - $MONIT_DESCRIPTION"}'
Conclusion
In all cases, monit allows you to monitor your system and take action based on a change in performance. The complexity of your rules is entirely up to you. But, if you give thought to their setup, you can not only be told when there is a server emergency, but the system can take action to fix it.
A Bluetooth Toothbrush is on Sale…What?
I subscribe to the Amazon Deals of the Day, and often there is something worth considering on them. Today, the Deal of the Day is an Oral-B Pro 5000 SmartSeries Bluetooth Electric Rechargeable Power Toothbrush.
And there is the what…I get the motorized toothbrush idea…it is like having professional dental tools in your home. However…bluetooth?
“Bluetooth communication between brush and smartphone provides real-time feedback on brushing habits, helping you achieve amazing results. It acts like a dental professional in your bathroom, guiding your brushing experience and providing feedback in real-time to help you brush thoroughly and gently for the dentist-recommended 2 minutes. ”
So, my smartphone can tell me I need to brush my teeth, and I should do it better? According to the reviews, I can also monitor my brushing, shop for brush heads, get achievement badges.
I’m not sure I’m comfortable with the Quantified Self philosophy that is becoming so popular…there are some things that aren’t interesting to record.
Right now, anyone want to buy a bluetooth toothbrush…I’m predicting next I’ll be able to compete with other brushers for points…gamification is popular too.
Let’s Build a Server: Part 1 – The Firewall
Necessity is the mother of invention. It is once again time to upgrade the Gadget Wisdom servers. And, as I have committed to writing more here, I will be writing some articles on server construction.
Now, this will all be done using a Virtual Private Server, so the hardware is outside of the scope of this series.
The first piece of software I usually install on network accessible servers is the ConfigServer Security & Firewall(CSF). This is a firewall with login/intrusion detection, and security. Most distributions of Linux come with some sort of firewall, but this set of scripts works with iptables to be much more secure.
CSF provides scripting for a firewall, and handles login failure handling for a variety of stock services, as well as unsupported services using regular expressions.
There are a lot of options in the CSF configuration file…read through the description of each…decide which ports you want open, and deploy. CSF will automatically update itself when there is a new version.
In order to ensure notifications from the firewall and other administrative notifications are read, you will likely wish to arrange for the ability to send mail. However, you may not need or wish the trouble of setting up a mail server. The simpler solution is to set up an SMTP relay.
The example below configures Postfix, available with many Linux distributions, for use with a gmail account. Add the following lines to the bottom of your /etc/postfix/main.cf
smtp_use_tls=yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous
Create a file with your gmail credentials.
smtp.gmail.com user@gmail.com:PASSWORD
Then secure the file.
chmod 640 /etc/postfix/sasl_passwd*
postmap /etc/postfix/sasl_passwd
Now, any external email will route through your gmail account. We have now protected our server from a variety of attacks, and ensured, if there is a problem, we’ll be notified of it.
There are alternatives to Gmail. For example, Mandrill offers 12,000 emails per month for free, and 20 cents per thousand after that, and Sendgrid offers 200 emails, and 10 cents per thousand.
You can use Mandrill or Sendgrid instead of Gmail by using the below credentials.
[smtp.mandrillapp.com]:587 USERNAME:API_KEY
[smtp.sendgrid.net]:587 USERNAME:PASSWORD
Related articles
How To Install and Setup Postfix(n0where.net)
KeyCDN: A Review
In a continuing effort to get the best combination of services and pricing, I often review my choice of provider. While it is a pain to migrate services, things do change over time.
As a small site, I want the benefits of a CDN, but the monthly cost of one is not within my budget. Which is why I explore pay-per-use CDNs. Metering means that I can prepay for a few GBs of traffic and it can last me a while. I wrote about this back in 2013, when I was talking about how new providers intrigued me.
After some problems with other incumbents, I was once again looking for new options, and came upon KeyCDN, which is a Swiss CDN that is well regarded so far. I’ve been using them for about six months now. They offer $0.04 per GB for the first 10TB. And in the last six months, they’ve continued to add features.
Here are a few of their features:
- Pay Per Use Pricing – So no minimum monthly costs
- A Free Trial(although most of these services have that)
- Unlimited Zones that can be aliased as subdomains on your site.
- SSL – Shared or Custom SSL. Shared SSL is them using their certificate. If you want to alias the CDN zone as a subdomain on your site, you need to buy a certificate from them or supply your own.
- SPDY Support
- Push Zones(if you want them to store the content, not just pull and cache it from your site)
- Cost is $0.90/GB per month.
- They added rsync support after I signed up, in addition to FTP, allowing you to sync your static site to them if you want.
- Export log files to your own syslog server
- An API if you want to control your zones
They keep adding more features….or I keep noticing them. Until I started writing this, I didn’t know they had added syslog support. Which brings me to my only real criticism of KeyCDN. The last time I looked intently, I don’t think I saw the feature. So they certainly could be better at conveying new features to me.
Whenever I’ve needed help, they have been prompt in their response and have worked with me.
But there is so much here I don’t take advantage of that I wish to. This is a basic review, but I may go into more detail in future. I’d like to try to play with their API, as they have a PHP library on Github and I’ve been working on my PHP skills as part of maintaining this site, which runs WordPress(written in PHP).
So, give them a try…if you do, try my links…I wouldn’t mind the extra few credits in my account. If you have any questions, please send a message or leave a comment.
Responsible Disclosure: I am a customer of KeyCDN, and I am using my affiliate link, which provides me with extra CDN credit. However, my decision to finally get around to reviewing them is due to the responsiveness of their support and their feature set.
Related articles
Is KeyCDN The Content Delivery Solution For Your Website?(makeuseof.com)
Who Needs a Smartwatch? Why not Just a Pod?
When I tried out the Pebble Smart Watch, the main thing that interested me about it was the ability to know there was something that might need my attention. The vibrator in the Pebble is powerful enough to vibrate itself off my nightstand when not being worn.
The simplicity of the Pebble, compared to the increased complexity of Android Wear watches, makes it an appealing option.
But a new company, Simple Matters, led by designer Bob Olodort, is going even simpler. Olodort created one of my favorite classic devices, the stowaway keyboard…something I wish they’d remake.
The first product being released by Olodort is called the Ditto. It’s a tiny pod with an optional clip which acts as a remote vibrating notification device for your phone. You can set vibration patterns from their app.
It’s simple…it does one thing, and uses a battery that only needs replacing every 4-6 months.
The Ditto is currently in a Kickstarter, but partially, it is said, for publicity purposes. For $29, you can get a Ditto…assuming it is made and meets its $100,000 goal. The device will ultimately have a $49 MSRP.

