This is a very hard thing to find so finally documenting here. When setting up a new Android tablet, to get messages to properly sync from Google Fi, you must open https://messages.google.com/web in Chrome and then go into the menu to right associated with that web page and scroll down to install on desktop. That's what makes the magic link from the messages app back into Fi.
Saturday, May 3, 2025
Tuesday, April 23, 2024
Endorphins from Good Questions
Does anyone else get a serotonin blast or endorphins when then generate a good question (to the web, to an expert, to a rando)?
Recently, I've had two unrelated experineces where I finally had generated enough context on a subject to generate good, actionable, valid questions that subsequently furthered my work and exploration of a new topic. It's such a jolt to my system that I love this.
I used to get the same kind of feelings (and neurochemical feedback) from completing a hard problem, or getting a program to run, etc. But these days, it's mostly just around generating a sufficiently good question that I'm no longer blocked in my work. Totally splendiferous.
I have nothing to link here sadly. It's just a blog post about feelings.
NOTE: I've had some of these sensations when working with Google AI and Microsoft Github Copilot. Asking great questions, i.e., prompting, is key to a useful productive interaction with these AI tools.
Tuesday, November 14, 2023
Restart the Mac menubar Dock etc to recover Mission Control
I've switched to a Mac full-time a few months ago. One weird thing keeps occuring--I'm unable to make menubar selections (which I first notice actually with a keyboard shortcut: Ctrl-Up Arrow or Ctrl-Down Arrow). It's unclear why this happens but typically happens after connecting my mac to an external monitor and then waking it up (although the problem is not instantaneous at that point--it occurs shortly thereafter).
I've tried the normal tips to get the menubar to respond such as killing all Dock processes and similar.
What does appear to work is simply lifting the lid of my Mac. It triggers a "hard" redraw on all of the graphics and restores the menubar functionality and voila! the Mission Control features mentioned above resume proper functionality. (I immediately close the lid which triggers a 2nd redraw but you get the gist.)
Tuesday, April 4, 2023
Slack autohides channels now by default
Slack also eliminated the ability to search for channel names (no idea why).
So, you need to ENABLE the "Show and sort" ALL button. And or enable Show.... All your conversations in the preferences.
Wednesday, January 4, 2023
A little K8s, Gitea, Helm, Postgres, stuff
Had a discussion at work about what data gitea puts into postgres. Kind of a scaling/sizing discussion. Mainly, the stateful info needs to be stored and it's not especially dynamic. (That's my short take on the findings.)
I found via google some useful information on seblab's blog: https://blog.seblab.be/
and I'm sure there could be a lot more. I like the way seblab sets up a problem/situation and works it out.
Thursday, October 13, 2022
Stop finding semicolons and start finding plus signs.
I frequently need to use the GNU find command to recursively look through a directory. Less often, I also need to execute a command on the results. There are two well documented ways to execute that command.
The first is to pipe the output of find into xargs and run the command there. Here's an example.
find . -iname \*yaml -print0 | xargs -0 ls -alFhtr
The second (and a bit handier if you can remember the proper invocation) is to just add an exec to the find command. I've historically used the find, exec, {} \; method. I've just studied up on that semicolon and along the way was exposed to the find exec {} + method. It doesn't require an escape character as bash (and other shells presumably) don't have a special meaning for +. And + actually means "clomp all the find results together and pass them into the command" which is particularly handy for date comparisons and for other reasons. So try this:
find . -iname \*yaml -exec ls -alFhtr {} +
Tuesday, August 30, 2022
helm knows what your kubernetes ConfigMap started with
Today I asked my teammates how I might retrieve or recreate a missing ConfigMap. Our systems use helm to deploy ... deployments and one of the suggested this little gem:
helm get all -n namespace deploymentname |tee deploymentname.yaml
Therein you will likely find the initial contents of the CM and can recreate it. (I just yanked out the rest of the yaml and then applied that file.)
Tuesday, December 21, 2021
github ssh keys are finicky
Okay, github uses some hash magic to figure out what account is affiliated with a particular ssh key. If you have two accounts using the same key, it has to guess (and does so poorly) about which user is trying to write.
Moreover, it tries keys somewhat sequentially. If the first in our ssh-agent (via ssh-add -L) is associated with a user, that's the only one it tries. If not, I believe it will go onto the next one (but again, if that second key is associated with multiple github users, it's going to hash to a specific user.) This is all because you can't tell github what user to use. De facto, the key is hashing to one and only one user and it ass/u/mes that is the user it will end up using.
But, the sad sad sad part is that it will not give you any more information.
You can set a specific "id" to use in our .ssh/config file like this:
Host github.com
Identityfile /home/USERNAME/.ssh/id_githubonly_rsa
Wednesday, October 27, 2021
elevator=none elevator=noop are both overcome by events
You can't just pass in on the kernel commandline "elevator=none". If you do in ~5.3 or newer, you'll see:
[ 0.105899] Kernel parameter elevator= does not have any effect anymore.
Please use sysfs to set IO scheduler for individual devices.
Monday, April 5, 2021
xorriso is the bomb
So, I wanted to remaster the SystemRescue iso. A trivial (20 character addition) was needed. I could not for the life of me figure out how to do this.
The answer (after 3-4 different multi-hour sessions trying to figure this out) was to use a tool called: xorriso. And to bear in mind that the iso itself needs to be bootable via an ISO or burnt CD/DVD as well as via UEFI and possible even via USB. This means it needs to be an everything bagel (so to speak). I found the "howto" for another distro and used that technique with the slight differences for the system rescue iso (which buries the efiboot.img under archiso since it is arch linux based.)
There was also this handy little guide re: xorriso. That was part of figuring this out. (I've always used genisoimage and friends prior to needing to remaster this.)
Thursday, April 1, 2021
ugly code that works
I had the thought, "ugly code that works", as I finished a PR today. Project isn't technically open sourced (YET!) so I can't say much more but man, I worked sooooo long and hard on this trivial problem that I needed to vent.
The solution to the problem was to do something in cloud-init. Do the same thing in a systemd unit. And all of that was just to work around a sysctl issue. The solution is ugly code that works (in particular as it has a sleep 180 embedded in a script.) There is no reason in the world that I should be writing a systemd unit that calls a two line script where one line is sleep 180. But, there was no way to get the sysctl working with a systemd.path unit. (I tried, repeatedly.)
And the code works. I also then (after getting a merge) googled, "ugly code that works", and saw someone has already written this blog (though thankfully it wasn't me this time). See: https://dev.to/tonetheman/ugly-code-that-works-4i7l
"Do not be afraid to write ugly code that works." Also, don't be too surprised if it does break. Ugly code can be fragile also.
Wednesday, March 31, 2021
terraform is logical but not natural
So, you basically "re-declare" when you define/invoke the submodule. See: https://stackoverflow.com/questions/53853790/terraform-how-to-pass-environment-variables-to-sub-modules-in-terraform
In my case, I'm building "N" VMs in submodules and there is a "vms.tf" that has the "module "NAME" {} invocation (and of course there are "N" of these) so I had to do something like:
module "FIRST" {variableone = var.variableone}
variable "variableone" {and then
description = "Cascade environment variable in terraform"
default = ""}
export variableone="myvaluegoeshere"
Monday, March 15, 2021
It's been a minute and a few years....
So, I just noticed it's been a minute since I last posted. I typically only post things that I need to find again in the future--and apparently that's been less often lately.
Today, I needed to figure out WHY IN THE WORLD my LG 4K HDMI monitor was popping throughout the day. And, indeed I did, but first, how did I get here?
I am a longtime Ubuntu user. This machine was built with Ubuntu in 2017-11 and upgraded to LTS release in 2018. I do daily apt updates but recently bit the bullet and brought it up to 2020 LTS release. That went very well and I see a number of improvements. However, it also started making a LOUD popping noise that I couldn't tie to any particular user activity.
A bit of googling later and I found that it was likely related to snd_hda_intel module and its power_save settings. power_save defaults to 1 (on this machine and similar) as it is a laptop and power_save is a good thing for a laptop. However, 98% of the time, it is now running primarily as a desktop. You know, COVID-19 and nowhere to go....
I confirmed the issue by further googling and found my friend Major Hayden's post when I ran into this same thing: https://major.io/2019/03/04/stop-audio-pops-on-intel-hd-audio/ it has a better writeup, more detail etc. But I post here so that I can easily find this myself for future me. I also thanked past Major here: https://twitter.com/davidmedberry/status/1371588276176363521
Friday, October 25, 2019
Deja Vu All Over Again
Two days after Cray hired me, their merger with Hewlett Packard Enterprise (HPE) completed, so I'm back at HP (but now HPE). Most of the impact of that change occurs on January 1, 2020.
So not only the yogiberra-ism of "Deja Vu All Over Again" but also the godfather-ism of "When I thought I was out, they pull me back in."
Monday, July 1, 2019
ansible tower token authentication
ansible authentication methods and tokens
I'll come back here when I have something more substantive to say about this. The PAT token is dead easy, straight-forward and has naught to do with Point After Try.
Friday, April 12, 2019
letsencrypt with certbot
when using certbot (more on that below). The simple and easily googleable fix was to remove the ubuntu awscli package and pip install a newer version:'AWSHTTPSConnection' object has no attribute 'server_hostname'
sudo apt-get remove awscli
pip install --upgrade awscliI'd recommend doing that pip install in a venv (python virtual environment), especially if you have other "cloud tools" installed that way.
Now, why was I doing this and what does the title really mean? Most websites these days need to have an "SSL Cert" that is a signature by a certification authority. Really folks, you need to be doing this these days. Many businesses will not let you browse to a site that has a self signed cert and won't let you browse to a non-https site at all. But this is super easy as Let's Encrypt and certbot do all the work. I merely followed the steps here:
https://hackernoon.com/easy-lets-encrypt-certificates-on-aws-79387767830b
(Make sure you have certbot installed first. Your OS may have it packaged or "brew install certbot" on a Mac.)
And as with all of my recent posts, this is just mostly so I won't spend another 1/2 day trying to remember or recreate this.
And in all fairness, there are also a number of Ansible playbooks and/or roles for doing this. Here's some info on that:
https://github.com/geerlingguy/ansible-role-certbot
https://docs.ansible.com/ansible/2.5/modules/letsencrypt_module.html
https://docs.ansible.com/ansible/latest/modules/acme_account_module.html(Ansible letsencrypt module was renamed more generically as "ACME" as it actually uses ACME and Let's Encrypt adheres to that web standard.)
Saturday, February 23, 2019
More fun with Ansible
When I explored ARA I first became familiar with Ansible Callbacks (that get called at the conclusion of tasks, plays, etc.) And I've been needing to make some modifications (filters, etc) to the PLAY RECAP at the end of an Ansible play. Note that there are numerous callbacks pre-written listed here, but occasionally you need to write a custom one. In this case, I just wanted a better understanding of what those pre-written ones can do. And, lo and behold, there's a nicely documented page that shows you that.
Thank you Random Hero.
Saturday, February 9, 2019
Weird tab behavior in Google Chrome
Switching to a new window (with only one tab) would work fine but as soon as another tab was opened, the same behavior.
Survived through reboots, chrome upgrades etc.
I think I have isolated this to either a funky (dirty?) keyboard or flakey mouse. Once I disconnected both the external keyboard and mouse, things returned to normal. Now doing the bisect to see if mouse or keyboard. One note: My kitchen has been under renovation for the last month. Consequently, I've done a lot more "eating over the keyboard" than normal, so maybe I just dropped some weird crumb that effectively doees control-pageup repeatedly (or some other previous tab command over and over.) I didn't notice this behavior in other "tab oriented" programs (such as gnome terminal or Firefox.)
Updates here if I further resolve this.
Oh and some search terms in case anyone else runs into this:
ubuntu
chrome
chrome-beta
(occurred in both)
tab switching
autotab switching
tab bug
google chrome tab bug
google chrome tab autoswitching bug
(Oh and for those playing along at home: restarted chrome numerous times, disabled all extensions, rebooted, upgraded Chrome, upgraded all Ubuntu packages--basically did all the "best practices" I could think of to work around this. The only work around seems to be disconnecting mouse and keyboard (which were plugged into a USB C dongle providing legacy USB connections.) System is HP Spectre x360 15" touch with 8th gen i7 running Ubuntu 18.04.2
Mouse seems to be working fine.
Blew some dust/gunk/ick out of my keyboard and now everything seems to be working again. (The peripherals are attached in the same order, same location.) So LIKELY the keyboard? The world may never know (and I'm sure the world will never care.)
Tuesday, November 27, 2018
TIL: Ansible engine raw module "needs" gather_facts: no
Ansible Playbooks are instructions for running ansible modules against a target host. They can be very very simple. Here's one of the simplest:
---
- name: A very simple playbook
hosts: all
tasks:
- name: pingo
ping:
Friday, August 10, 2018
Life of a #Remotee
So I need to be able to work remote. But I don't want to take all my gear with me, so I leave some of it at home and plugged in. And mosh allows me to connect/reconnect etc.
I (re-)discovered mosh last weekend when prepping for a trip. I didn't want to carry my bulky laptop to the mountains that day, so I set up remote access through my cable modem. Of course, it's trivial to set up a port forward from my new Google Wifi AP and routers to my home machine. But that gives you connectivity, not persistence. So I pulled down the "mobile shell" mosh and set it up quickly.
IT JUST WORKS.®™
I decided to do this blog post after typing internally:
So, I started a mosh session from home to home last Sunday. I've been to Denver Airport. on-board a Southwest flight, Saint Louis hotel, Saint Louis enterprise customer, and back, and that session just keeps running. I had heard of mosh before but using it is even easier. I used to "work around" this with screen sessions but mosh is even simpler than that.
So, setup is easy peasy. Install mosh. Find a UDP port you can forward back to your persistent (home) node. You probably also want to forward back a TCP port for ssh.
mosh --ssh="ssh -p$SOMEPORT" -p $SOMEUDP $HOMEIP
You can find your home ip (from home) with this:
export HOMEIP=$(curl ifconfig.co) # but I save this to a file as well so maybeexport HOMEIP=$(curl ifconfig.co |tee ~/bin/myhomeip)
You can port forward the default ssh port (22) or something slightly more obscure. The default UDP port range for mosh starts at 60000 through 61000. I picked a port in that range.
Both the SOMEPORT and SOMEUDP need port forwarded (using your router setup) to the actual node you want to use.
One other thing you will want to check out as a #remotee is wireguard. I'll write it up once I've switched my vpn-ness over to it. Wireguard currently uses some packages to install a kernel module that gets built with out of tree dpdk. See wireguard, hat tip to Jess Frazelle for Dockerfiles mentioning Wireguard and oh yeah, this guy.
Saturday, July 21, 2018
Fedora Kernel (well 4.17 kernel) issue resolvable
However, that bit me recently when I upgraded to Fedora 28. The built-in Intel dual-band AC 8260 (rev 3a) failed to work on the newer 4.17 kernel. This led me down some dark roads as I switched to an rc 4.18 kernel which had even more problems (though that kernel did have working iwlwifi.)
A productive Saturday morning, led me to patch and test my 4.17 Fedora 28 kernel successfully. The short version is you need to revert one change in the kernel as detailed here:
https://lkml.org/lkml/2018/7/1/104
and then build Fedora kernel rpms (which I haven't done in more than a decade and a lot has changed in that decade). See:
https://fedoraproject.org/wiki/Building_a_custom_kernel
and it has one thing out of date as well. The command:
should be just:
PS. In linkifying this post, I see that 4.17 COULD HAVE BEEN A CONTENDER for Linux kernel 5.0. That would have scared me enough to hold off... oh well. YMMV. Enjoy.
Wednesday, June 27, 2018
TIL: boto3 can't parse env variables properly
boto3 can't parse environment variables for AWS credentials properly
export AWS_ACCESS_KEY_ID=WHACKADOODLEGGGET5Q
Thursday, June 7, 2018
Find your libvirt instances...
I recently had a need to utilize Ansible for a demo and created a slug of VMs to use in my ansible inventory. However, there is no way (no obvious way?) I can find with virsh or virt-manager to determine what IP got assigned to a VM. A bit of digging shows that when using the cloud-images, dhcp is used to acquire an IP address and that dnsmasq manages those IP addresses.
In my case, these VMs were attached to virbr0 and it is that instance of dnsmasq that I needed to inspect.
Like most of my very short blog posts, I'm just writing this down so I can find it myself the next time I need it. In this case the file that "issued" the IP addresses is:
/var/lib/libvirt/dnsmasq/virbr0.status
That shows the MAC and IP address associations (but no indication of "which" libvirt domain they were actually associated.) A further exercise for me and the reader will be to tie the domain back to the IP address (if possible.)
One other related note: If you use "virt-clone" to clone a cloud-image that has been previously booted, it will typically boot fine but WITHOUT an IP address. This is due to cloud-init not properly re-running. Blowing away some of the first run cloud-init stuff takes care of that.
sudo rm -rf /var/lib/cloud
sudo rm -rf /var/log/cloud-init*
Thursday, August 3, 2017
Replacing Android device with a new one
TIL it ain't so easy to enable root login in ubuntu
Please login as the user "ubuntu" rather than the user "root".
Sunday, June 5, 2016
Android Tap & Go... Almost as Easy as It Sounds
I had no luck googling for this issue or solution so noting it here for others to find. The phrase, "Sorry, Something Went Wrong" will appear on your new phone shortly have making the sync chime.
Wednesday, May 11, 2016
TIL From Users Today
Monday, July 27, 2015
Time Warner Cable (TWC) OpenStack Summit Talks in Tokyo -- Vote Now
Many of these are our experience running an OpenStack Cloud in production at Time Warner Cable. Others are particular areas of interest. And one is just for fun....
Click the shiny link to vote up or vote down, however you feel.
Description
|
Abstract Author
|
Forum
Tech/Ops/Bus |
More Info... Voting (link to abstract on openstack.org)
|
---|---|---|---|
Duct Tape, Bubble Gum, and Bailing Wire | Eric Peterson, TWC, GoDaddy and others | Ops | |
Fernet Tokens: Why They're Better and How to Switch | Matt Fischer and the Frenet team | Ops | |
Moving a Running OpenStack Cloud | Matt Fischer Eric Peterson | Ops | |
Customer Pain Points Revealed in TWC's OpenStack | Kevin Kirkpatrick David Medberry | Ops | |
Building the right underlay, lessons learned | Sean Lynn Darren Kara | Ops | |
Monitoring OpenStack with Monasca -- Totally Worth the Effort | Brad Klein Ryan Bak | Ops/Monitoring | |
Overcoming the Challenges. LBaaS in practice at TWC | Jason Rouault Sean Lynn | Ops | |
Upgrading OpenStack Without Breaking Everything (Including Neutron!) | Clayton O'Neill Sean Lynn | Ops | |
Integration & Deployment Testing of an OpenStack Cloud | Clayton O'Neill Matt Fischer | Ops | |
OpenStack Trivia | David Medberry Kevin Kirkpatrick | Community |
|
Owls, Cats, Toads, Rats: Managing Magical Pets - VM persistence | David Medberry Craig Delatte | Enterprise IT Strategies | |
Other Ways to Contribute | David Medberry Eric Peterson | How To Contribute | |
LibVirt: Where are we today? | David Medberry Sean Lynn | Related OSS Projects | |
OpenVSwitch: Where are we today? | David Medberry Sean Lynn | Related OSS Projects |
|
Monitoring: How to get the outcomes you want and want the outcomes you get! | Steve Travis Ryan Bak Brad Klein | Monitoring / Operations | |
An all SSD Ceph cluster: Tips, Tricks, and lessons | Bryan Stillwell Craig Delatte | OPS | |
The evolution of Openstack Storage Services at TWC | Adam Vinsh Craig Delatte | Enterprise IT strategies | |
Building a self-repairing cloud with AI | Ryan Bak | Monitoring / Operations | |
Configuring Swift Using Puppet-swift: considerations and examples.
| Adam Vinsh | OPS |
|
Thursday, May 28, 2015
Request for Reviews from Online Stores
And if I could have expressed this in a brief way, it would have been a tweet.
And, no, don't file a patent for this. I freely grant this info to the world....
Sunday, May 17, 2015
OpenStack, a really big deal
I'm at 36,000 feet over NW USA headed to Vancouver from Denver on United UA 323. By sight alone, I've identified 10 different companies sending folks to OpenStack (and I'm sure there are many more companies represented on the flight that I don't know.) About 30 folks that I know (or at least know of) are on this very flight for a week of design, operations notes exchange, and marketing. WOW. I'm expecting more than 6,000 folks in YVR this week--maybe 7-8K.
Friday, March 27, 2015
Cinder Multi-Backend GOTCHA
Unfortunately, this had the really bad side-effect of dropping the "host" that was providing just "cluster01" service. All attached volumes continued to work fine. However, it became impossible to launch new instances with these volumes, terminate (properly) instances with these volumes, or delete these older volumes.
The fix (once you understand the problem) is very straightforward:
cinder-manage volume update-host --currenthost cluster01 --newhost cluster01@ceph
NOTE: Don't do this unless these are really the same services. Presumably safe if you have a single cinder backend and are prepping for multi-backend.
Wednesday, March 11, 2015
OpenStack Clients on Mac OS Yosemite
As we all know, "pipin' ain't easy". I held off upgrading to Yosemite for a long time so as not to break my functioning Mac with OpenStack clients. However, I found time and reason to upgrade last weekend and had helped several others through the Mac client solutions a week prior.
Alas, it was not to be a sweet journey for me. I endedup with the dreaded xmlrpc_client issue. Some coworkers determined that you could resolve this by uninstalling "six" and then reinstalling "six". Unfortunately that doesn't really work. A "sudo -H pip uninstall six" did do the right thing, but "easy_install six" never succeeded. And I should note the reason that six in pip doesn't work in the first place is that the Mac OS Yosemite itself has a downrev version of six installed.
The trick, at least in my case, was to "type -a easy_install" and note that there are two versions of easy_intall. Pick the second one and you are off to the races. Here's the steps if you are still reading:
dmbp:~ dmedberry$ sudo easy_install six #fails
Password:
Traceback (most recent call last):
File "/usr/bin/easy_install-2.7", line 7, in
from pkg_resources import load_entry_point
File "/Library/Python/2.7/site-packages/pkg_resources/__init__.py", line 3020, in
working_set = WorkingSet._build_master()
File "/Library/Python/2.7/site-packages/pkg_resources/__init__.py", line 616, in _build_master
return cls._build_from_requirements(__requires__)
File "/Library/Python/2.7/site-packages/pkg_resources/__init__.py", line 629, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/Library/Python/2.7/site-packages/pkg_resources/__init__.py", line 807, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: setuptools==1.1.6
dmbp:~ dmedberry$ type -a easy_install
easy_install is /usr/bin/easy_install
easy_install is /usr/local/bin/easy_install
dmbp:~ dmedberry$ sudo /usr/local/bin/easy_install six