btwritescode

@btwritescode@mastodon.social

Life-long learner. Software Developer. Fur baby dad. Creator of things that (hopefully) make lives better. #Java, #Angular, and #Ruby are the cause of (and solution to) many of my problems. ⌨️☕️🇨🇦 #Winnipeg is my home.

#fedi22 #programming #productivity #philosophy

This profile is from a federated server and may be incomplete. Browse more on the original instance.

btwritescode, to random

This year's journal off to a good start

btwritescode, to random

I pulled the trigger and bought a 3D printer for Black Friday. I'm now a proud owner of a Bambu P1S.

These things are goddamn magic.

btwritescode,

Obligatory Benchy for the first print

btwritescode, to random

Years ago, when our team started doing more conference calls rather than in-person meetings, we ran into a lot of trouble with people talking over each other.

I created ihavetheconch[dot]com as my tongue-in-cheek way of getting people to only talk one at a time.

The project still lives on today (still works, too!).

https://conch.ssh.btdev.org/

btwritescode,

And yes, it was a reference to Lord Of The Flies ;)

btwritescode, to random

Over the past month, I've been looking into starting my own business. It's a daunting task, having never done anything like this before. There's a thousand things to worry about.

The way to Step 1000 is to tackle Step 1. The trick for me is figuring out what Step 1 actually is.

btwritescode,

@krst Will take a peek, thanks!

btwritescode, to random

I find myself continuously wanting to start new things. I'm like a dog chasing cars.

Lots of motivation with no discipline.

What about just putting the idea on a list and pruning it once a week? Why is my last fascination no longer relevant? Why don't I finish it?

Knee-jerk motivation -- rather than calculated, planned motivation -- is a great way to end up with a graveyard of barely started projects.

Changing focus is fine. Just make it a conscious decision.

btwritescode, to animals
btwritescode, (edited ) to Wyze

A new to get a notification when a package is delivered:

Step 1: automatically forward Amazon shipping emails to a monitored inbox

btwritescode,

Step 2: monitor the inbox using . Extract out the tracking number with a bit of Regex, then use the 17Track API to add the tracking number to my account. Optionally set the carrier if 17Track wasn't able to detect it, based on the info provided in the email.

btwritescode,

Step 3: Set up the 17Track integration in , then create an automation that detects an increase in the delivered package count, then notify as you see fit.

btwritescode,

The 17Track work within could probably be done differently. All credit for the inspiration goes to this GitHub repo. After I realized how to do it I was able to just open the Inspector tool on the 17Track website and implement necessary HTTP calls.

https://github.com/bachya/py17track/

17Track has an official API with webhooks that would probably be better, but that seemed like more effort than I was willing to put in.

btwritescode,

I've only handled Amazon shipping notifications so far, but this should be fairly simple to update for Shopify-based shipping info.

Amazon shipping notifications all seem to have the "X-AMAZON-MAIL-RELAY-TYPE: notification" email header. Shopify-based systems probably have something similar, but I haven't anything physical delivered from a Shopify store in quite a while!

btwritescode, to tasker

I was getting frustrated with the multiple versions of plugin documentation, so I started creating a wiki article with up-to-date information and examples.

While the examples provided showed me what to copy-and-paste, I didn't understand how it all fit together or how to build something from scratch. This is my attempt at reducing pain for future developers (and future me!). Examples, tutorials, gotchas, and more.

https://wiki.brianturchyn.net/programming/tasker-plugins/

btwritescode, to tasker

0.5.0 has been released!

  • ⭐ Tags can now be attached to time entries when creating or toggling them
  • ⭐ API failures are now reported back to
  • ⭐ Starting a time entry now gives you all its details
  • ⭐ Toasts when time entires are created so you know it's working
  • ⚙️ A whole whackload of code cleanup

https://play.google.com/store/apps/details?id=net.brianturchyn.android.timekeeper

btwritescode, to tasker

My current obsession is sticking little NFC stickers on anything and everything to automate stuff with as the trigger.

🚰 Tag on the water bottle? Scan to log water consumption.
🐕 Tag next to the dog leash? Start the time entry for walking my dog.
📺 Two on the back of the TV remote for watching YouTube or movies (the movie one dims the lights).
👕 One on the washing machine to start a timer to remind me to put the clothes in the dryer.

btwritescode, to Wyze

I ended up using for a bunch of other data collection tasks:

☁️ I've always suspected that the cloudier it is, the less happy I am. I track cloud coverage and temps every 4 hours via OpenWeatherMap
🦣 Does posting to social media impact my mood? Count today's Mastodon posts
🗣️ What does the impact of using social media have on my day? Pull data from the API for my productivity score and a few categories
☑️ WIP: How many tasks did I complete in a day?

An n8n flow chart showing the logic to track cloud coverage, actual temperature, and "feels like" temperature every four hours, then storing in a Postgres database.
An n8n flow chart showing the logic to retrieve productivity stats from the RescueTime API, then storing that data in a Postgres database.

btwritescode, to Wyze

Been going down the rabbit hole over the past few months. What previously started as a bunch of manual inputs is slowly getting more automated.

Yesterday's contribution was pulling data from the Fitbit API for weight, steps, sleep quality, and water consumption. Using , it looks a little something like this.

Anything that'll be accurate just after midnight I collect shortly after at 1am. Other things like my weight or sleep stats get collected at noon.

btwritescode, to Java

There's a JEP draft currently underway to support Markdown in documentation comments.

I'd love for this to become a part of OpenJDK. Having to use HTML gives developers one more reason to not write docs. Markdown is also much easier to read in its source code form. (Ironically, JEP 1 states that JEPs should be written in Markdown. It's fitting to extend this to Java comments!)

I'll definitely be keeping an eye on this.

https://openjdk.org/jeps/8316039

btwritescode, to random

Eating tortilla chips last night threw off my whole morning routine.

Having a snack? May as well sit down and watch a bit of YouTube.
1 or 2 videos turned into 5 or 6. 5 minutes turned into 30. And now I'm going to bed late.
And if I want to get in 7 hours of sleep, then my morning starts later. But my work day always starts at the same time.
So something has to give. My time to work on my personal projects, reading, journaling.

One small decision has such a big compounding effect.

btwritescode, to android

Well, after a bit of fumbling, I'm releasing the first version of my first app, Timekeeper.

Timekeeper is a plugin to automate interacting with Track for time tracking. My main use case is things like scanning NFC tags around the house when I'm doing various things.

It only does some basic time entry starting and stopping now, but it's a good starting point. If that's something you might benefit from, consider checking it out.

https://play.google.com/store/apps/details?id=net.brianturchyn.android.timekeeper

btwritescode, to android

Last month, I started going down the rabbit hole of learning how to make apps.

The whole mobile development ecosystem feels totally foreign to me. Jetpack Compose has definitely made the experience smoother for me, having dabbled with Flutter a few years ago. Still, the brain hurts.

Day by day, it gets a little easier to figure out how things piece together.

btwritescode, to random

I've dismissed entire books because the author has made a point I've disagreed with. Maybe that's too harsh of an approach.

Rick Rubin's note to the reader could sit in the preface of many books. It's a good reminder.

btwritescode, to HomeAutomation

It's all fun and games until your robot vacuum runs over a pile of cat vomit and starts stinkin' up the place 🤢

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • tacticalgear
  • cubers
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • osvaldo12
  • ngwrru68w68
  • GTA5RPClips
  • provamag3
  • InstantRegret
  • everett
  • Durango
  • cisconetworking
  • khanakhh
  • ethstaker
  • tester
  • anitta
  • Leos
  • normalnudes
  • modclub
  • megavids
  • lostlight
  • All magazines