Zoneminder Fills /dev/shm 100%

After adding a third camera (a Reolink RLC-520) to my Zoneminder server, I found that I couldn’t get all three cameras to come up at the same time. I would restart and 2 would successfully enter the “Running” state but a third (not always the same one, either) would not.

/dev/shm at more “healthy” 71%

I then noticed that /dev/shm was red and at 100% in the status bar. After some research, I found that this is usually caused by the cameras’ resolution being set to high for the RAM the server has.

I lowered my resolution to 1080P on two cameras and 3MP on the third. This dropped the /dev/shm usage to what is seen in the screenshot above.

My server has 8GB of RAM, which I may upgrade soon. If you run into this problem, try lowering the resolution of your camera(s) in Zoneminder’s config for each one.

The Anatomy of a counterfeit Gameboy Advance Cartridge

Fake News!

My second childhood is ruined. Thanks, ebay and bradlebon-5.

Missing the days of my youth and hours wasted playing Gameboy Color and Gameboy Advance, I decided to buy a Gameboy Advance SP. I foolishly sold my original GBA back in 2005. I also foolishly thought a new GBA SP would be $20 or something, right? Nope. You’re lucky to get a beat up specimen for $60. I paid $61 for this one:

And it comes with The Incredibles!

And I thought games would be $5 to $10 a pop without boxes and manuals, right? I was wrong again. But I didn’t find that out until after I had bought Metroid Fusion (eBay), for $9.99 plus shipping. That’s your first sign, for those keeping track of tips on how to spot a fake Gameboy game:

If it’s too good to be true, it’s fake

Search eBay for “Buy it now” listings and compare prices. If everyone wants $55 for The Legend of Zelda: The Minnish Cap except one guy is selling it for $10… then the $10 one is fake. See the screenshot below and play “Spot the asshole selling a counterfeit game”:

Wow, the Brand New one at the top is even cheaper than the pre-owned versions below it. What a deal!

Next step: What condition is it in?

If you’re simply looking for a game to play and not trying to collect cartridges in mint condition, then a little bit a wear on the cart is a good sign that it’s real. Take a look at this one that was for sale for $41 versus my $10 version:

See how the bottom one is worn and faded but the top one looks immaculate? It’s because the top label was printed in 2020 and the bottom was printed in 2002 and spent some time in a cargo pant pocket, most likely.

Check out the inside

Another dead giveaway is what the inside of the cartridge looks like, specifically the PCB (printed circuit board). Most current fake cartridges will have a big black spot that looks like dried tar. This is not there on authentic cartridges.

Notice that the counterfeit cartridge above also has “© 2002 Nintendo AGB-E05-01”. This was previously thought to indicate an authentic cartridge, but no more. Now many of the fakes have this printed on them.

Now I’m all for reproduction games that the seller clearly tells you is not an original, authentic copy. This would help many of us get games to play in situations where we can’t afford the real version. However, it needs to be printed on the label and disclosed in the listing for games sold online. Something like “Reproduction Warning: This is not an original copy of this game”. But, the seller that duped me with Metroid Fusion did not say this. Now that I re-read the description, he seemed pretty guilty by saying “Game plays just fine!!!”. And the “Cartridge comes in factory plastic case…” is misleading. Yeah, it’s “factory” but not Nintendo’s factory!

Description:

With this purchase you will receive “Metroid Fusion” game cartridge for use in a Nintendo Game Boy Advance System. **U.S. VERSION** Cartridge comes in factory plastic case, but no other packaging  included.   Will ship in padded envelope and I ship only within the US… using First Class USPS only.  Will ship within 2 business days. Game plays just fine!!!  You may message me with any questions you may have before purchase is complete.  Great way to stay busy while confined to the house. Takes you back to your younger days!!!

So good luck out there finding authentic Gameboy cartridges. The counterfeiters are getting more sophisticated every day. Let me know in the comments if you have any other good methods for determining if a game is a fake.

Fitbit Notifications with iPhone

I recently decided to start using my Fitbit Charge 3 to receive notifications from my iPhone again. When activated, the Charge 3 can receive SMS, Calendar, and call notifications from your iPhone.

I had the settings in the Fitbit app on my iPhone set to “All Day Sync” and notifications turned on but I still was not receiving notifications on my Fitbit.

I searched online and followed all of the guides that would supposedly fix this, but none of them worked for me.

I finally realized the Fitbit itself had the Notifications setting set to off. All I needed to do was hold down the button when on the Notifications screen, pictured below:

So if you have exhausted other solutions, make sure the Fitbit’s setting is set to receive notifications on the device itself.

Reading List

Currently Reading

  1. Angel Fire East by Terry Brooks
  2. The Unicorn Project

2020

  1. The Thorn Birds by Colleen McCullough (5/5)
  2. The Road by Cormac McCarthy (4/5)
  3. Wards of Faerie: The Dark Legacy of Shannara by Terry Brooks (5/5)
  4. Bloodfire Quest: The Dark Legacy of Shannara by Terry Brooks (5/5)
  5. Witch Wraith: The Dark Legacy of Shannara by Terry Brooks (5/5)
  6. Running With the Demon by Terry Brooks (4/5)
  7. A Knight of the Word by Terry Brooks (4/5)

2019

  1. Blood Meridian by Cormac McCarthy (5/5)
  2. One Hundred Years of Solitude by Gabriel García Márquez (Didn’t Finish)
  3. The Shallows: What the Internet Is Doing to Our Brains by Nicholas Carr (Rating: 3/5)
  4. Revelation Space by Alastair Reynolds (5/5)
  5. Redemption Ark by Alastair Reynolds (5/5)
  6. Absolution Gap by Alastair Reynolds (5/5)

2018

  1. Animal Farm by George Orwell
  2. 12 Rules for Life: An Antidote to Chaos by Jordan Peterson
  3. No Country for Old Men by Cormac McCarthy

2017

  1. Brave New World by Aldous Huxley (5/5)

2015

  1. On Writing: A Memoir of the Craft by Stephen King
  2. Ur by Stephen King
  3. The Dark Tower: The Wind Through the Keyhole by Stephen King
  4. The Gunslinger by Stephen King
  5. The Drawing of the Three (Dark Tower 2) by Stephen King
  6. The Waste Lands (Dark Tower 3) by Stephen King
  7. Wizard and Glass (Dark Tower 4) by Stephen King
  8. Wolves of the Calla (Dark Tower 5) by Stephen King
  9. Song of Susannah (Dark Tower 6) by Stephen King
  10. The Dark Tower (Dark Tower 7) by Stephen King
  11. From a Buick 8 by Stephen King
  12. Prepper’s Home Defense: Security Strategies to Protect Your Family by Any Means Necessary by Jim Cobb
  13. The Trial by Franz Kafka
  14. The Autobiography of Benjamin Franklin by Benjamin Franklin
  15. Hackers & Painters by Paul Graham
  16. The Antichrist by Friedrich Nietzsche
  17. Zen and the Art of Motorcycle Maintenance by Robert M. Pirsig
  18. The Circle by Dave Eggers (5/5)
  19. Freakonomics: A Rogue Economist Explores the Hidden Side of Everything by Stephen J. Dubner and Steven D. Levitt (4/5)
  20. Walden and Other Writings by Henry David Thoreau (5/5)

2014

  1. 1984 by George Orwell (5/5)
  2. Ubik by Philip K. Dick (5/5)
  3. Catch-22 by Joseph Heller (5/5)
  4. State of Fear by Michael Crichton
  5. Watership Down by Richard Adams (5/5)
  6. Second Variety by Philip K. Dick
  7. Bell Jar by Sylvia Plath
  8. The Last Stand by Stephen King (5/5)
  9. The Postman by David Brin

How to Import a MySQL Database Dump or Backup

Now that we have covered how to make a backup of your MySQL database, we can go over how to import the backup. To do this, you can use the cat command:

cat thebackupfile.sql | mysql -D mydatabase -u myusername -p

This command uses cat to write your database to stdout and then pipes it into mysql. You’ll need to have your database created first, but you can do that with:

mysql -u myusername -p -e "create database mydatabase"

Write id3 tags based on filename with Mac OS

Throughout my various backup schemes, my id3 tags get clobbered. I wrote a script to rewrite the tags based on the filename and directory structure of an mp3 collection:

ID3 Tag Namer Script

As the comment in the script says:

/*
 * Music needs to be in /Users/username/Music/
 * in format Artist/Album/00 Title.mp3
 *
 * id3lib required
 */

You can get id3lib with homebrew: `brew install id3lib`

Tiling App for Mac OS

Coming from Windows and Linux distros, I was used to using a tiling application with my desktop. This is a program that allows you to move windows to fill certain portions of your display with keyboard shortcuts. For example, in Windows 7+, holding down the windows key and pressing left or right will fill the left or right half of the screen with that window.

If you’re looking for this on Mac OS, check out Spectacle. It works great and it’s very customizable.

Update June 8, 2020: Spectacle is no longer supported so I have switched to Rectangle.