Disable Windows 10 user accounts

Chris Downey

Founder, VaxCalc Labs and creator of Autovist and the Vaccine Ingredients Calculator.

Latest posts by Chris Downey (see all)

I allow my sons to use my Windows 10 laptop, but they are having a hard time controlling their usage.  Here is a quick way to completely disable an account so that it does not show up on the login screen – with the added benefit of being able to bring it back when you wish.

net user thing1 /active:no

To enable the account, set active to yes.

Converting postgres time zones

Chris Downey

Founder, VaxCalc Labs and creator of Autovist and the Vaccine Ingredients Calculator.

Latest posts by Chris Downey (see all)

I’ve always found working with time zones to be a bit confusing.  Here is a simple way to convert from UTC to any time zone.

Continue reading “Converting postgres time zones”

Simple, effective parental control for your Mac

Chris Downey

Founder, VaxCalc Labs and creator of Autovist and the Vaccine Ingredients Calculator.

Latest posts by Chris Downey (see all)

Today, I whipped together a simple, effective parental control script for our shared Macbook Air.  For many months, our homeschooled son has been easily distracted by videos and messages when he is supposed to be working hard on crafting a good paragraph.  Apples parental controls are a massive #FAIL – deselecting the default apps do not work and you cannot just simply turn off the Internet.

Continue reading “Simple, effective parental control for your Mac”

Disable Spring when debugging gems

Chris Downey

Founder, VaxCalc Labs and creator of Autovist and the Vaccine Ingredients Calculator.

Latest posts by Chris Downey (see all)

I spent a good 45 minutes puzzled as to why byebug wasn’t working from within a gem I’m debugging.  Even more confusing was that when I set byebug in the gem code along with some debugging code, and stepped into the gem, I saw my code edits along with the call to byebug… but the new code was never reached, it was as if it was being skipped right over.  Odd.

Went for a cup of coffee and to ponder this….

Finally, I figured out that spring was preloading the app and keeping the gems loaded – even after I changed the gem code.

For now, I’m going to keep spring disabled by setting DISABLE_SPRING=1 in my .env file.

How to search for methods on a massive Ruby object

Chris Downey

Founder, VaxCalc Labs and creator of Autovist and the Vaccine Ingredients Calculator.

Latest posts by Chris Downey (see all)

While debugging Autovist today, I wanted to see what methods the Tweet object supported (from the Twitter gem, which wraps the Twitter API) in order to figure out why the message was null.  As you can see below, it doesn’t have a nice way of dumping out all values for inspection.  🙁

Continue reading “How to search for methods on a massive Ruby object”

Math tip for teaching a dyslexic child

Chris Downey

Founder, VaxCalc Labs and creator of Autovist and the Vaccine Ingredients Calculator.

Latest posts by Chris Downey (see all)

An excellent tip from a friend on teaching math to a dyslexic child.  (As a dyslexic myself, I found this method very appealing much easier to read.)