Search and Replacement Techniques

Search and Replacement Techniques:

From time to time it’s a good idea to turn back to the basics. Even after years of Emacs usage you will potentially find things you overlooked before – or new ways established without you noticing.
This week I searched for workflows to find and replace matches with Emacs. In this post I will summarize the different techniques I found and hopefully provide you with some new methods you might want to try or incorporate into your own workflow. I will contrast “the old way” with the “modern way” in each section, but notice that by modern I don’t necessarily mean better.
“Old” just means that the method has been built-in for a long time and “modern” means, external packages or newer additions to stock Emacs are used to achieve the task. As Emacs is big and the community even bigger the described methods are not near complete. Feel free to add you own suggestions in the comments.

(Via with-emacs)

Also on:

How Carlos Ghosn has been spending his days in a cell in Kosuge

How Carlos Ghosn has been spending his days in a cell in Kosuge:

Since his arrest on suspicion of tax evasion, ousted Nissan Chairman Carlos Ghosn has been occupying a cell at the Tokyo Detention Center in Kosuge, Katsushika Ward. Nikkan Gendai launched a series of daily columns about the incident, and in its fourth installment, which appeared in the Nov 30 edition, it introduced readers to how Ghosn has spent the previous 10 days.

The first thing the article points out is that despite Ghosn’s high social standing, no special exceptions are being made in terms of his treatment at the facility.

“The wake-up call comes at 7 a.m.,” says author Toshio Sakamoto, who formerly worked as a guard at Kosuge. “After the roll call and breakfast, he’ll undergo interrogation. Lunch is served from 11:50. I suppose there may be more interrogation sessions from afternoon, but these are interrupted by 30 minutes of outdoor exercise and bathing on certain days. Then comes supper from 4:20 p.m. Afterwards, interrogations may continue until lights out at 9 p.m.”

(Via Japan Today)

I hear that outside of Japan and parts of Europe this isn’t getting much press. How Carlos Ghosn’s incarceration goes interests me. Not that I plan to visit a Japanese jail, I want to make clear.

Also on:

Why You Should Directly Support as Many News Sources as Possible

Why You Should Directly Support as Many News Sources as Possible:

By now most people understand that there’s a serious problem with the news, but I’m not sure how many know how fundamental it is.

Here’s the underlying issue:

  1. The companies that make the news we consume are for-profit businesses.
  2. These companies aren’t just pressured to increase profits, but will go out of business if they don’t constantly adapt to their competition.
  3. The best way to make money for a news site is to sell ads.
  4. Outrage is one of the most powerful methods of getting someone to engage with a story, so that is what we’re seeing more of.
  5. This has effectively destroyed traditional journalism, since companies producing news have no choice but to create stories that will get more attention and ad views.

It’s not a reporter problem, or a media company problem—it’s an incentive problem.

The business model for modern media companies is advertisement, and that business model conflicts directly with the public interest of informing people through balanced coverage.

Advertisements are the center of the media universe because they pay the bills, so if you’re a reporter or an editor, you must do whatever you can to get people to click links. There is no amount of complaint or criticism or nostalgia that will fix this. It’s the business model.

But there’s a solution. We must transition to a world where media companies receive their livelihood from their customers instead of sponsors. We must adopt the subscription model.

I also converted to a subscription model for this site, which wasn’t easy since I could easily make several thousand a month from sponsorships.

Once a company is getting paid from their customers instead of sponsors, they’re free to provide the value that their customers actually want and need. And they’ll no longer have to worry about whether a sponsor will dislike their content.

Here are a few of the sources I subscribe to:

  1. The New York Times Subscribe
  2. The Economist Subscribe
  3. The Wall Street Journal Subscribe
  4. The New Yorker Subscribe
  5. Wired Subscribe
  6. Sam Harris’ Waking Up Podcast Subscribe
  7. Ben Thompson’s Stratechery Subscribe

That seems like a lot (and I might actually be missing a couple) but I am thrilled to do it.

This is how you fight back. You fight back by directly supporting your favorite sources. Free them. Help them. Liberate them from the bondage of advertising dependency.

So many of the worldwide problems we face are too massive for individuals to make a dent. Global warming is a major problem, and recycling at your house is little more than a spiritual win. Same with giving to a major charity. You know it does good, but it feels like thimbling the ocean.

Not so with this.

This type of direct digital support is so new, and so powerful, that small numbers make a difference.

Don’t sit this one out. Don’t decry the downfall of journalism from the safety of your computer. Do something.

Bring your favorite sources to mind and go sign up to at least one of them.

Be part of the solution.


  1. If you can’t support your favorite sources for financial reasons, that’s fine. Just vow to do so as soon as you can.
  2. Since you asked, you can support my work here. Subscribe

(Via Daniel Miessler)

I totally agree with Daniel. With the exceptions of the Wall Street Journal and the New Yorker and Sam Harris’ podcast I have subscribed to the outlets on the list. I’m far less of a fan of Wired these days, so I wouldn’t include it.

I would add:

  1. The Atlantic Monthly Subscribe
  2. Marketplace from APM Subscribe
  3. The Financial Times Subscribe

I won’t let this devolve into another anti-subscription rant, but remember to reflect on all of your subscriptions — services, applications, entertainment, and news — in your financial calculations. These things sneak up on you and your wallet.

I will point out that subscribing to any of these is almost always better going direct to the source and not through a third party like Apple or Amazon unless there is a specific way you want to consume the news, such as reading the Atlantic on your iPad in the Kindle app. When you go through a third party they take a cut up to 30%. Also, if your news source doesn’t have a deal going on for subscriptions, send them an email or give them a call.

Also on:

Stoicism As Inoculation To The Politicalization Of Terrorism And Security Theater

Jon Meacham on Marcus Aurelius:

I stumbled across a Newsweek article about Marcus Aurelius, from 2010, written by author and political commentator Jon Meacham.  Meacham won a Pulitzer prize in 2009 for his biography of US president Andrew Jackson.

Meacham’s article, A Case for Optimistic Stoicism, was inspired by the attempted Al Qaeda bombing of Northwest Airlines Flight 253, which was bound from Amsterdam to Detroit Metropolitan Airport in the US.  I wanted to write a little about this article because I think it deserves to be read and because it seems to me that Meacham has actually understood the essence of Stoicism better than many others who have attempted to write about it.  Though he’s not a scholar of this particular subject he clearly “gets it” and the Stoic doctrine he gets is one that’s really quite central to the whole philosophy.

… That’s what I would simply describe as a philosophical attitude toward the stark reality of terrorism.  One type of folly denies the reality of these threats and buries its head in the sand.  Another type of folly accepts them but exaggerates our inability to cope and throws its arms up in the air in despair.  What people find so difficult about Stoicism is that it does neither of these foolish things.  Stoics like the Roman emperor Marcus Aurelius could … calmly accept adversity while nevertheless patiently fighting back against it, even though the odds seemed stacked against them or the battle seemed interminable.  Life, as Marcus said, is warfare.  It never ends.  The good man accepts this, without complaint, and he remains at his post anyway, standing guard against the enemy.

(Via How to Think Like a Roman Emperor)

Donald Robertson misses another type of people, those who make political hay out of half measures, hand waving, and pseudoscience substituting for security — a.k.a. Security Theater — instead of taking meaningful if maybe unpopular actions to identify and address risks to mitigate threats.

Also on:

The New Chevy Silverado Trail Boss Stalling on Detroit’s Hockey Arena Ice Is a Perfect Metaphor

The New Chevy Silverado Trail Boss Stalling on Detroit’s Hockey Arena Ice Is a Perfect Metaphor:

If Detroiters know anything, they know about cars, hockey and disappointment. Their experience in all three came in handy yesterday when a brand-new 2019 Chevrolet Silverado Trail Boss stalled on the ice at the Little Caesars Arena, the new home of the Detroit Red Wings.

The Silverado was supposed to make a few laps of the ice during the second intermission before returning to dry land, but unfortunately it “ground to a halt” near center ice, breaking down just as crews were readying the Zambonis, as GM Authority dutifully reports. Eventually Chevy’s people were able to get the truck running and sheepishly limped it off of the ice before the third period start. Luckily, the Wings were working last night and beat the St. Louis Blues 4 to 3.

(Via Deadspin)

Ooph. That’s one ugly truck, which has ho bearing really. But tell me “Trail Boss” isn’t some kind of branding or label or anything but the title of the driver.

Also on: