department of hack
1294 stories

Bullseye freeze

1 Comment

Bullseye is freezing! Yay! (And Trondheim is now below -10.)

It's too late for that kind of change now, but it would have been nice if plocate could have been default for bullseye:

plocate popcon graph

Surprisingly enough, mlocate has gone straight downhill:

mlocate popcon graph

It seems that since buster, there's an override in place to change its priority away from standard, and I haven't been able to find anyone who could tell me why. (It was known that it was request moved away from standard for cloud images, which makes a lot of sense, but not for desktop/server images.)

Perhaps for bookworm, we can get a locate back in the default install? plocate really is a much better user experience, in my (admittely biased) opinion. :-)

Read the whole story
3 days ago
Dang, I haven't used a locate implementation in... I couldn't even tell you. A decade? I have no idea how long ago it stopped being on by default. I wonder if it'd be worth turning on these days. I remember a lot of my early days with Debian it would be the answer to "why is my hard drive chugging so hard while I'm not doing anything?"
Boulder, CO
Share this story

My Git Aliases

1 Share

Overtime key presses really add up, especially when you use certain tools all throughout the day.

Here are the bash and git aliases that I use for git to avoid doing some of these keypresses.

I’m not sure how many times a day I use these shortcuts, or how many key presses I skip, but I’m fairly sure my keyboard is thanking me.

bash alias for git (g)

Even typing git for me seems like a bit much at times. So for years I have has the alias g to avoid the 2 extra keypresses.

For this in your all you need is the following like in your .bashrc file or .bash_aliases file if you have one.

alias g='git'

auto completion

This stackoverflow answer gives the context and steps around the solution for auto completion of such aliases.

The installation includes creating a ~/.bash_completion.d/complete_alias file which is then loaded into your .bashrc or .bash_aliases file as follows.

# Auto completion for bash aliases
source ~/.bash_completion.d/complete_alias

Once loaded you can turn on completion for an alias with the following in your your .bashrc or .bash_aliases file.

complete -F _complete_alias g

git aliases

Git aliases live in your .gitconfig file under the [alias] section, such as:

	d = diff

Command shortcuts

As already expressed in this post, I want to minimize key presses, so I have very short aliases for some frequent normalish git tasks.

d = diff
c = commit -a
pu = pull
co = checkout
mt = mergetool
cp = cherry-pick
cpc = cherry-pick --continue
com = "!f() { git checkout $(git main); }; f"
hash = rev-parse HEAD
setx = update-index --chmod=+x
amm = commit -a --amend
amn = commit -a --amend --no-edit
claim = commit --amend --no-edit --reset-author
ro = "!f() { git reset --hard origin/$(git main); }; f"

Utility shortcuts

Some commands end up needing to know what the main branch is called. This could be master, main or something else. So there is an alias for that too that is used in multiple commands.

main = "!git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@'"


I’m a big fan of simplicity when it comes to keeping things up to date cleanly, without losing things (always stash)

g mop does this for me by stashing any changes, checking out the main branch, resetting incase its referring to the wrong place and doing a pull.

mop = !git stash save "mop" && git com && git ro && git pu 

Some projects that I work on end up with hundreds of git repos checked out in a single directory.

I make use of sem, a command that allows multiple processes to be queued up and run asynchronously to get this done quickly.

mop-all = "!find $GIT_PREFIX -maxdepth 1 -type d -print -exec sem --bg -j 4 git -C {} mop \\; && sem --wait; echo mop-all done; "

This will run the mop command in all directories contained in the current directory, running at most 4 a time.

Gerrit helpers

Lot’s of my time in git is spent interacting with Gerrit, which has a different interaction pattern in terms of submitting code for review.

Many people use cli tools such as git-review, but I prefer to keep it simple. Reading the docs, this is all you need. One command to push a change to be reviewed, another to push a draft.

p = "!f() { git push origin HEAD:refs/for/$(git main)%ready; }; f"
pd = "!f() { git push origin HEAD:refs/for/$(git main)%wip; }; f"


These are cool too:

hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
coauthor-line = "!f() { echo \"Co-authored-by: $(git config <$(git config>"; }; f"

The post My Git Aliases appeared first on Addshore.

Read the whole story
7 days ago
Boulder, CO
Share this story

Insurrection and misinformation is tearing the country into three Americas

1 Comment

The United States, torn apart by insurrection and mass misinformation, is witnessing a political and social realignment unfold in real time: We’re splitting into three Americas.

Why it matters: America, in its modern foundational components, is breaking into blue America, red America, and Trump America — all with distinct politics, social networks and media channels.

The existential question for Republicans, and perhaps for America, is whether Trump America — animated by the likes of Newsmax + Rush Limbaugh + Tucker Carlson + Parler (or whatever replaces it) — eclipses the traditional Red America in power in the coming years.

  • The danger: Parts of Trump America, canceled by Twitter and so many others, are severing their ties to the realities of the other Americas, and basically going underground. There will be less awareness and perhaps scrutiny of what's being said and done.
  • Axios' Sara Fischer reports that Apptopia shows a surge in downloads for conservative-friendly social networks — Parler, MeWe and Rumble — in the past two days, following Trump bans by mainstream social media and tech.

The big picture: The Republican Party is splitting into two, starting with the relatively small Never Trumpers breaking off in 2016 and joined four years later by a new slice of establishment Republicans repulsed by President Trump's post-election actions.

  • We have no clue how big this faction will grow. But it seems clear that the Trump vs. them saga will dominate the coming months, and maybe years.

There's no hard evidence yet that Trump America has shrunk significantly, despite the lies about the election and mob assault on the U.S. Capitol.

  • There is hard evidence Trumpers are flocking to social media groups and hard-right outlets like Newsmax to get and share news that reinforces their views.
  • It'll take a while to determine if voters share the anti-Trump views of Senate Majority Leader Mitch McConnell or Sen. Lisa Murkowski (R-Alaska).
  • Twitter's decision to permanently suspend Trump forces this faction further underground.

Blue America is ascendant in almost every area:

  • It won control of the House, Senate and White House; dominates traditional media; owns, controls and lives on the dominant social platforms; and has the employee-level power at Big Tech companies to force corporate decisions.

The bottom line: Now, more than ever, is the time to read and reflect: Our nation is rethinking politics, free speech, the definition of truth and the price of lies. This moment — and our decisions — will be studied by our kid's grandkids.

Read the whole story
7 days ago
"blue America, red America, and Trump America" - I would really like to see some evidence that "red" is now a distinct faction, as opposed to just the somewhat less unhinged end of a continuum from "a 1990s amount of racist and determined that government should not function" to "thinks the world is run by pedophile space lizards but in a Protocols of the Elders of Zion kind of way". I'm not saying a real schism here is impossible, but I'm probably not going to believe it until I have a conversation with any traditionally Republican voter I know who actually behaves like they have meaningful disagreements with Donald Trump and his internet neonazi fanbase.
Boulder, CO
Share this story



Read the whole story
11 days ago
Boulder, CO
Share this story

So Many Caring People In This World

1 Share

When I was a boy and I would see scary things in the news, my mother would say to me, “Look for the helpers. You will always find people who are helping.” To this day, especially in times of “disaster,” I remember my mother’s words and I am always comforted by realizing that there are still so many helpers – so many caring people in this world.

– Fred Rogers

This photo doesn’t have amazing lighting or fantastic composition. In fact, it looks ordinary. It’s only when you know its story that the beauty shines through.

In 2019, Fremont, NE had been cut off by flooding. People were trying to get in and out of the town, and couldn’t. The only way in or out was from the small airport. About 50 pilots from Nebraska and Iowa (and me from Kansas) came over to help. Every plane you see here — and more that I couldn’t fit in the frame — was at Millard Airport, Omaha, flying people and supplies into and out of Fremont. Estimates are that we flew over 1000 people and tons of supplies that weekend. All safely.

I remember flying the family with a 1-week-old baby that had gone to Omaha for a doctor appointment and then couldn’t get home for three days. I remember the elderly couple and their dog that I flew out of Fremont, the former Marine riding in the co-pilot seat next to me, cracking jokes with me as we went. I remember the group of ladies that were laughing as I gave them the required seat belt briefing, the mom with her kids, the man that had to get to work, and packed a few day’s supplies in his backpack, unsure when he’d be able to get back home. It was the first some had ever been in a plane.

There were so many helpers. People all over Omaha brought supplies to Millard airport. Others had just shown up at both airports to help organize and make lists of passengers and match them up with different size planes. Someone at Millard had a trailer and golf cart for supplies. When I’d land at Fremont, before I was even out of the plane, highschoolers had already swarmed it and were helping to unload supplies or help passengers out. One time when I got back to Millard, I found lunch: a pizza place had donated pizza for the pilots, and then a restaurant in Fremont did too. With so many extra planes in the sky, Omaha ATC was slammed and still did a fantastic job.

I of course took no photos of the people I carried, but I have thought of them often in the last year.

This photo is of Millard airport, Omaha, loading up supplies. Look at all these helpers. I think it’s one of the most beautiful sights I’ve ever seen.

Today there are billions of helpers in this world. The obvious ones: the truck drivers, the health care workers, the grocery store workers. And also the non-obvious ones: all the people that are wearing masks, practicing social distancing, forgoing Christmas gatherings, for the good of others, despite the hardship and heartbreak it may cause.

If you didn’t know the story of this photo, you wouldn’t know these planes were all helpers in time of disaster. We don’t know the story of all the people we see in our world today, but chances are good that many of them are helpers also.

When you know their story, the beauty shines through.

May we all be able to see the beauty that still surrounds us this Christmas.

Read the whole story
15 days ago
Boulder, CO
Share this story

Colorado’s top weather and climate events of 2020

1 Comment

The year has finally come to a close, and I think we can all agree that we don't feel bad shutting the door on 2020. While we welcome 2021, let's look back at some of the most memorable weather and climate events that occurred in Colorado this past year.

Boulder Snow
On October 10, 2019 3.8 inches of snow fell in Boulder. Not anything memorable, except it started off Boulder's snowiest season on record. On April 17, 2020 16.9 inches of snow accumulated, bringing Boulder's seasonal total to a whopping 152 inches. This smashed the previous record of 143.2 inches set back in 1909. The long-term average snowfall for a season is 88.3 inches. 2019-2020 was 63 inches over the average!

Daily accumulation of snowfall for the 2019-2020 season at the BOULDER COOP station.

June Derecho
Derechos are commonly found in the midwestern to eastern states. While one of the most memorable weather events in the country this year will be the August derecho that wreaked havoc across Iowa and Illinois, there is something quite notable about the June derecho that started in Utah and swept across Colorado. This is the only derecho in modern records to impact Colorado. Damaging wind reports spanned the entire state. In fact, 91 severe wind reports were logged (58mph or greater), beating the state's previous record of 30 severe wind reports on May 22, 2006.

Maximum wind gusts on June 6, 2020 at ASOS stations across Colorado. Wind gusts are in miles per hour.

Maximum wind gusts for the state ranged from the 40s to the 70s. The highest wind gust in the state reported for the day was 110mph at Winter Park. Thankfully damage was pretty minimal. But the extreme winds as the storm swept through will remain in our memories for a long time!

Akron Wind Event
Only three days after the derecho, and unrelated to that storm, a thunderstorm with severe straight-line winds devastated the small town of Akron, in northeast CO.

Here are more images captured by Kiara Janae from this event:

Twitter user @kiarajanaeguy3 took pictures of the damage from the thunderstorm that swept through Akron on June 9, 2020.

Wind gusts topped 100 mph in northeast CO. The big surprise is that the wind speeds and the damage were not from a tornado, but from straight line winds. Not only did the winds down power lines and trees, it damaged a multitude of farming equipment and a hanger at a local airport.

Record Evaporation
Early June was a rough time for the Eastern Plains. Following a dry winter and spring, croplands were further stressed by a major evaporative event. The event had all the characteristics of a flash drought, with the exception that the region was already in drought at the time. Evaporative demand is a totally normal part of our summers. With a combination of winds, low relative humidity, and warm temperatures, it's the amount of water that the atmosphere wants to take from the surface. But what we saw in June was off-the-charts high. Winds across the central plains of the U.S. were extreme. Temperatures were hot, in the upper 90s, quite impressive for early June. What little moisture might have remained in the soils at the start of summer was quickly stripped away.

Hot August
August 2020 was the hottest August on record for Colorado, dating back to 1895. Warmer than average months are pretty common these days. But to have the warmest on record, during the hottest time of the year, definitely leaves its mark!

The statewide average temperature for August (taking into account all the maximum and minimum temperatures for all locations around the state) is 66°F. August 2020 clocked in at 69.9°F, almost 4° warmer than average. A total of 559 daily maximum temperature records were broken around the state during the month, and 9 monthly records were broken. A high elevation station, Middle Creek, recorded its highest temperature in its history, 85°F on August 2, 2020 and then broke that record on August 4 with 87°F.

Colorado statewide average temperature for August, 1895-2020.

100° to Snow?!
In a month that typically transitions us from summer to fall, September 2020 gave us all a bit of weather whiplash. Labor day weekend, September 5-7, temperatures across the Front Range urban corridor and Eastern Plains topped out in the upper 90s and low 100s. On September 6, 2020 the La Junta Municipal Airport recorded a 108°, the hottest September temperature ever reported in Colorado.

A strange word was in the forecast – snow. Many Front Range locations hadn't seen a snow event occur in September in the 21st century. Surely it couldn't be possible with this summer heat? But the forecast panned out. On September 9-10 snow fell across the entire state. Widespread 2-6 inches across the lower elevations with 8-18 inches over the higher elevations. Monte Vista, located in the San Luis Valley, received a whopping 14 inches of snow.

The most notable record from this event is the short time period between a 100° day and measurable snowfall. Three stations in the country, one in South Dakota and two in Colorado, set the national record for the shortest period between the two extremes. At La Junta: 101° on Sept. 7, 3.4" of snow on Sept. 9; At Ordway: 104° on Sept. 7, 3.9" of snow on Sept. 9.

You can read more about this wild week of weather we had here.

The year started off promising, with snowpack heading in the right direction. In fact, most mountain areas received near average peak snowpack by early April. Unfortunately, April moisture quickly shut off and dry conditions dominated the rest of the year.

Loop of weekly drought depictions from the U.S. Drought Monitor over Colorado for 2020.

At the beginning of January, 50% of the state was in a drought category, according the U.S. Drought Monitor. But no part of the state was experiencing the worst drought categories (D3, extreme drought, and D4, exceptional drought). The December 29 map shows 100% of the state in drought, over 75% in the D3 or worse categories, and over 25% in the worst category, D4. This is the first time since the 2012 drought that the entire state has experienced drought conditions. And unfortunately, although considered very rare (a 1-in-50 to 1-in-100 year event), our state has seen D4 conditions 4 times since the turn of the century.

The biggest ingredients to drive the severity of this drought? 1) early meltout of snowpack, dry spring, very hot summer, no monsoon moisture, warm and dry fall. Let's keep our fingers crossed that our state recovers sooner rather than later from this extreme drought.

Historic Wildfire Season
As drought conditions quickly expanded across the state in the summer, one impact we normally expect surprisingly didn't show up. Our previous drought years (2002, 2012, 2018) were coupled with large and devastating wildfires early in the summer. But June 2020 passed with almost no activity. Then July passed quietly as well. July 31, the Pine Gulch Fire in western CO started. Shortly after, the Grizzly Creek Fire started (and shut down I-70 for 2 weeks) near Glenwood Canyon and the Cameron Peak Fire started in northern CO.

What would soon become apparent is that this wildfire season would be one that Colorado had never experienced before. Instead of June and July being the most active wildfire months, instead September and October would be. Prior to 2020, the largest wildfire in the state's history was the Hayman Fire in 2002 (at over 130,000 acres). And it seemed impossible our state could possibly see a wildfire top out over 200,000 acres.

Smoke plume from the Cameron Peak Fire, as seen from Loveland on October 14. The fire grew around 60,000 acres that day, fueled by dry relative humidity and high winds.

But as the wildfire "season" came to a close, some tragic new records came forward. Three wildfires, Pine Gulch, Cameron Peak, and East Troublesome would grow larger than the previous state record. The Cameron Peak Fire would become the state's largest on record at 203,000 acres. And East Troublesome Fire would come close, with 193,000 acres. It also holds the daunting title of being the only known fire to jump over the Continental Divide.

A Chilly Take
Despite the heat and drought, we have seen some notable cold events this fall and winter. In late October, 32 monthly records of coldest minimum temperature were broken in Colorado. Hebron, a CoAgMET station located in the frigid valley of North Park, reported a low temperature of -33°F on October 27. This is the coldest October temperature ever recorded in the state.

Cold December temperatures made headlines as well. On December 30, Antero Reservoir, located in the chilly valley of South Park, recorded a -50°F low temperature. It not only ties the record for Colorado's coldest December temperature, it's also the coldest temperature for 2020 over the entire Contiguous U.S.

While we don't know for sure what 2021 will bring, one thing is for certain - we should always be prepared for wild weather and crazy climate extremes in Colorado.

Happy New Year!

Read the whole story
16 days ago
this is fine dot jpeg
Boulder, CO
Share this story
Next Page of Stories