I'm closing in on 500 posts over the last 10 years, I know it isn't much but considering I don't actually post that much it's rather remarkable. I've also had well over 1 million views! So stay tuned because if you like to read my blog, I have some plans will bring even more of my ramblings to your screen.
Thursday, March 30, 2017
Wednesday, March 29, 2017
More Ergonomics
It turns out I write quite a bit about ergonomics, and those are some of my most popular posts which is surprising but not too surprising since that is one thing that affects everyone.
Desk Ergonomics - Every Diagram on the internet is wrong!
Make the Apple Magic Trackpad Ergonomic
Ergonomics of Using a Cell Phone
Ergonomics
All these issues are still valid, in fact maybe even more so. Sit-stand desks are more popular than ever, but they still aren't good enough. Companies like Fitbit and Apple have pushed wearable devices to help but relatively few people wear them and I'm not sure how much they really help. I personally don't wear a device like a Fitbit or Apple Watch. If this is an interesting subject to you as a reader of this blog, write a comment or like this post so I know to write more. I have a lot more information and access to people who know even more and I believe sharing information is good.
Posted by
Chris Bensen
at
7:00 AM
0
comments
Labels: ergonomics
Tuesday, March 21, 2017
C++: Convert Unicode String to ANSI String
I've seen so many examples and questions of how to convert between unicode string and ANSI string using C++. So here is by far the easiest way to do this conversion that I've implemented:
Posted by
Chris Bensen
at
7:00 AM
0
comments
Wednesday, March 1, 2017
Adding a Private Key to macOS Keychain
On macOS, the native SSH client can use the built-in keychain directly which is awesome because you don't have to type in the password every time. To add your private key to the keychain simply use the command:
ssh-add -K /path/of/private/key
For example if your private key's filename is ~/.ssh/id_rsa, you would use the command:
ssh-add -K ~/.ssh/id_rsa
You will then be prompted to enter your password. From now on it's all automatic. Viola!
Update: There appears to be an issue in macOS Sierra where the password is only stored for the currently session. You can follow a thread here. I'll add more information as I run across it.
Posted by
Chris Bensen
at
7:00 AM
0
comments
Monday, January 30, 2017
Make Bootable macOS Sierra USB Install Drive
1. Format drive with the defaults using Disk Utility and name it "Untitled".
2. Download macOS Installer App from Mac App Store (Note: If you use this installer it will not be usable again).
3. Open Terminal and run:
5. Plug in the USB drive.
6. Turn the machine on and hold down the Option (ALT) key until you get a list of drives.
7. Choose the installer, and follow the directions.
Posted by
Chris Bensen
at
7:00 AM
0
comments
Friday, January 13, 2017
Blurred Faces in Final Cut Pro X
This is by far the best tutorial on blurred faces or censoring I've come across for Final Cut Pro X. The only thing I'd add is I suggest starting from the beginning, add the keyframe for the position and scale, then use the left and right arrow keys to jog and move the shape to the new position for each frame.
Posted by
Chris Bensen
at
7:00 AM
0
comments
Monday, January 9, 2017
Spam Email Tips
Spammers like to validate that you read your email. They get a lot of satisfaction from this. Also they sell the data. Reading email isn't inherently bad like it was in the past, but there are still some pitfalls such as executing Javascript or loading remote images. Gmail strips Javascript so your'e good there. But they do load remote images by default. From Gmail help:
Choose to show or not show images
- Open Gmail.
- In the top right, click Settings
.
- Click Settings.
- Scroll down to the "Images" section.
- Select Always display external images or Ask before displaying external images. If you chose the "Ask before displaying external images" setting, messages that have images will have a "Display images below" option.
- At the bottom of the page, click Save Changes.
Posted by
Chris Bensen
at
7:00 AM
0
comments
Thursday, December 15, 2016
Reduce Hard Drive Size When Running Windows 10 in a VM
- Click Start, and then type cmd in the Start Search box.
- In the search results list, right-click Command Prompt, and then click Run as Administrator.
- When you are prompted by User Account Control, click Continue.
- At the command prompt, type powercfg.exe /hibernate off, and then press Enter.
- Type exit, and then press Enter to close the Command Prompt window.
Posted by
Chris Bensen
at
7:00 AM
0
comments
Tuesday, December 6, 2016
Bash Script Arugments
I write a lot of bash scripts. It's really out of laziness. Here is a script that allows parsing of specific arguments and passthrough of all other arguments. There are obviously many ways to do this but this is one of the ways that I've found to work best.
# Here is a boolean argument
ARG_NAME_1="-arg1"
ARG_VALUE_1=false
# Here is an argument with a value
ARG_NAME_2="-debug:"
ARG_VALUE_2=""
# Argument parsing.
ARGS=()
for i in "$@"; do
if [[ "$i" == ${ARG_NAME_1} ]]; then
ARG_VALUE_1=true
if [[ "$i" == ${ARG_NAME_2}* ]]; then
ARG_VALUE_2 =${i:${#ARG_NAME_2}}
else
ARGS+=("\"$i\"")
fi
done
eval AppToLaunch $(IFS=$' '; echo "${ARGS[*]}")
Posted by
Chris Bensen
at
7:00 AM
0
comments
Thursday, December 1, 2016
CAD for 3D Printing
I've been doing a lot of 3D printing with a Lulzbot Taz 5 lately and I've been working with lots of different CAD programs. I purchased ViaCAD and it's a pretty good program but it crashes once in a while and when it crashes, I loose the entire file, not just my work but the entire file! So I've been looking for an alternative. I run a Mac so I'd prefer to use something native to the platform rather than run a Windows VM. Here's a short list of the paid programs:
- SolidWorks
- Inventor
- Rhino
- Fusion360
- Moment of Inspiration
- SketchUp
- Metasequoia
Now for the free stuff:
- FreeCAD
- LibreCAD
- OpenSCAD
- 123 Design
- Antimony
- TinkerCAD
Posted by
Chris Bensen
at
7:00 AM
0
comments
Wednesday, November 30, 2016
Holloween 2016 - Harry Potter
In Halloween tradition we did another Halloween trick-or-treat garage. I did an mini Maker's Fair showing off the stuff that I build. I 3D Printed over 200 LED candles and suspended them over my driveway. I made a wand that actually did stuff although this video doesn't show it. I have a self stirring spoon, moving pictures, walls that look like stained glass, Dumbledoor's Chair and lots and lots of other small details. Leave a note in the comments if you have any questions or cool Harry Potter projects you want to share or just want to ask how I did something. If I get time I'll post some how to's but let me know if you're interested so I know what to focus on.
Posted by
Chris Bensen
at
7:00 AM
0
comments
Tuesday, October 18, 2016
Review: Dell Ultra HD 4k Monitor P2715Q 27-Inch Screen LED-Lit Monitor
I've been looking for a second monitor for some time now. I currently run an Apple 30" Cinema Display, which is awesome by the way. Between the Missus and myself we have three of them. They are heavy however and not super energy efficient. The Dell P2715Q came down to $450 on Amazon last December (10 months ago) so I picked one up. You can find other in depth reviews of the monitor around the web, here's one for example P2715q review, because I want to say some bad things about this monitor.
Overall the monitor isn't bad. It is light, it is considerably smaller than 30" monitor, the stand is OK and the monitor holds it's tilt angle better than some monitors. The controls are standard Dell controls. The resolution is amazing! 4K is really nice, if your computer can drive it. Make sure it can drive it because one of my older Mac Books is old and the interpolated resolution leaves a lot to be desired. The Display Port sucks. They have a bad display port chipset in it and it won't wake the Mac at times.
But now I have to get to my scathing review. It died after owning it for 10 months. Honestly, I hardly used it. I believe the power supply went belly up. It is under warranty so I called Dell. I won't bother going into details, but I can say based off my overall experience I suggest looking elsewhere for computer hardware. I will never buy another Dell monitor or computer again. I'm currently on the phone trying to figure out why they sent me an email saying they were going to call me over 2 hours ago and to wait around for that call for 2 hours. They have no idea. It's been over a week now since my initial call and they plan to send me a refurbished unit as a replacement but they have to verify my purchase. Apparently that will be a little while longer. On the plus side the person I spoke with today was very nice. Anyway, I said I wouldn't go into details but I think all that's worthwhile.
So, in summary, I like the monitor, looks great, functions good, it's a good monitor, but don't buy one because it will die and you'll send a week of your life trying to get a replacement.
Posted by
Chris Bensen
at
7:00 AM
0
comments