Featured Post

My favorite links (ranked)

#1  Linux laptop powertuning painlessly (almost) #2 hard-drive-recovery #3 Chromebook Specifications #4 Internet BMW riders   #5 Findagra...

Wednesday, January 23, 2019

Automated muting - Android Nougat (7.1.1)

Up until very recently I've always enjoyed others' discomfort when they forgot to mute their mobile device in a public settings where electronic intrusions are frowned upon, you know like church or a lecture hall or a movie theater. The laws of averages or karma finally caught up to me and I got bit by this modern annoyance this week. I used the knee jerk reaction, there is an app for that right? Not so fast cliche-man. Turns out after loading 2 of those silly things and wrestling for quite a little while with poorly written application screens I decided neither one was meeting my needs. Uninstall and Uninstall. Then I started digging into the sound settings of my phone Android 7.1.1 (Nougat) OS, Lo and behold...

settings -> sound -> do not disturb -> automatic rules

Here you can add as many time framed rules as you like. My needs are pretty simple, I just have a couple of recurring weekly times where I want to set DND and vibrate notifications only. Here is a screen shot of one of them:

Notes: 1) You can set it to recur based on day of week for any or all of the seven weekdays 2) start and end times for DND period. 3) DND style: Priority notifications only, Alarm notifications only, or Total Silence (not sure how useful the first two are to most folks but they are there if you want to investigate... doctors on call maybe? I am guessing at a potential use case here). 4) Alarm overriding end-time maybe for those that want an alarm sent first to kill the "DND notification firewall" and then sender follows with actual voice or text call maybe? Again, not real sure what real world use of this setting is... feel free to enlighten me in the comments.

One final note of interest here: I also discovered you don't need to try and slide the volume down with the touch screen or hold the volume down button. Doing it with the volume down key means waiting for the auto-repeat to kick in and slowly reduce the volume to vibrate while the annoying advertising electronic "music" in my case fades away like a bad sound effect in a B movie. Android already has a single touch mute if you know the secret handshake...

1) power up device and unlock screen
2) volume down once only
3) touch the bell graphic on the left of the volume slider.... boom muted.

This single touch mute has been around since at least android nougat (5.1) BTW.




Wednesday, January 9, 2019

Fixing google cloud print issues + ubuntu (google classic printers)


Step 1...

sudo cps-auth

copy paste URL into your browser on GCP server

Step 2...

journalctl -xe

examine log to ensure all is well with GCP daemon

NOTES:

Sad to say but Google in their wisdom, or is it greed, has decided to kick "Google Cloud Print" to the curb at the end of calendar year 2020.

Never fear sports fans (and linux folks too!), these folks have ridden to our rescue with a pretty much fully functional replacement for GCP.... www.papercut.com (the mobility print product)

Monday, January 7, 2019

Beautify already correct xml content with easy vi/vim spell...

Need to edit out nodes from massive computer generated xml files that don't feature formatting for human eyes in the interest of preventing early onset blindness? Use this handy vi trick (requires xmllint be installed)...

:%!xmllint --format %

presto human friendly formatting for monolithic xml files with no indenting or newlines etc.

Before....

and voila....

If this throws an error on ubuntu (indicating not installed), install libxml2-utils and all will be well.