Shared posts

09 Aug 23:54

Welcome to the Neighbourhood: James Acaster

Tom Roche

short (~15 min) piece of moderately amusing UK social humor: probably worth the listen time, but probably more if you're outside UK.

Jayde Adams and guest James Acaster dive into the feisty world of community apps and messageboards, sifting through the angry neighbourhood bins to find disgruntled comedy gold. From biggest beefs to weirdest news, Jayde discovers a hotbed of (largely unintentional) hilarity with graffiti-daubed wheelie bins, stray cats, e-scooters and more. Jayde and the production team would like to hear about what's riling up the neighbours around Britain. Are your groups kicking off? Listeners can submit screenshots of the funniest and freakiest posts and threads to welcometotheneighbourhood@bbc.co.uk. Presenter: Jayde Adams Producer: Cornelius Mendez An unusual production for BBC Radio 4
09 Aug 20:13

Fresh audio product: two views of British politics, Tory and Labour

by Doug Henwood
Tom Roche

both segments VERY EXCELLENT: 1st on Tories at Oxford c1990, 2nd on Starmer and the Blairist coup in Labour

Just added to my radio archive (click on date for link):

August 4, 2022 Simon KuperFinancial Times columnist and author of Chumson the upper-class caste that’s been ruling Britain for a decade • James Meadway, director of the Progressive Economy Forum, on the dispiriting economics of the leader of the Labour Party, the drab Kier Starmer

09 Aug 20:02

8/9/22: FBI's Trump Raid, GOP Reaction, Political Implications, Legal Possibilities, Dark Brandon, Legacy Media, & More!

Tom Roche

EXCELLENT deepdive not just into the Trump raid (and associated horserace--not my thing, but undeniably entertaining) but (*much* more importantly) actual US law regarding document handling (archiving, de- and classification, etc)

Krystal and Saagar break down the FBI's raid of Trump's Mar-a-Lago compound, the GOP reaction, Dark Brandon memes, Maddow's next steps, 'stop the steal' backfiring, GOP ignoring mainstream media, and the legal implications of the FBI raid!


To become a Breaking Points Premium Member and watch/listen to the show uncut and 1 hour early visit: https://breakingpoints.supercast.com/


To listen to Breaking Points as a podcast, check them out on Apple and Spotify


Apple: https://podcasts.apple.com/us/podcast/breaking-points-with-krystal-and-saagar/id1570045623 


Spotify: https://open.spotify.com/show/4Kbsy61zJSzPxNZZ3PKbXl 


Merch: https://breaking-points.myshopify.com/


Tickets: https://www.ticketmaster.com/event/0E005CD6DBFF6D47 


Bradley P. Moss: https://twitter.com/BradMossEsq 

https://markzaid.com/ 

Learn more about your ad choices. Visit megaphone.fm/adchoices

09 Aug 00:17

Irreal: A Graduate Student Research Workflow

by jcs
Tom Roche

pullquote:
> [using] Emacs and Org-mode to develop an [efficient method of discovering and curating interesting papers](https://www.cs.mcgill.ca/~ksinha4/post/emacs_research_workflow/) (archived [here](http://web.archive.org/web/20220721000941/https://www.cs.mcgill.ca/~ksinha4/post/emacs_research_workflow/))

Koustuv Sinha is a PhD student in machine learning and natural language processing. Because much of his time is devoted to reading research papers in his field, he’s devoted significant effort into optimizing his workflow.

The TL;DR is that he’s used Emacs and Org-mode to develop an efficient method of discovering and curating interesting papers. It starts with the discovery. For this he uses Elfeed to subscribe to various Arxiv feeds in his areas of interest. He uses the elfeed-score package to rank these papers in the approximate order of his interest in them.

When he reads an abstract in the Elfeed results that seems interesting, he fires off a process that captures the paper’s metadata to his bibliography file; grabs a copy of the paper, renaming it to the bibtext key, and storing it in a central repository; and adds it to an Org file listing the papers we wants to read.

A lot of this is accomplished by leveraging John Kitchin’s org-ref. He calls org-ref functions directly to get and store the paper’s data. It’s a nice example of reusing someone else’s codebase in your own.

Sinha provides a huge number of details in his post so be sure to take a look. If you have similar needs, this is an excellent starting point for your own workflow or even something worth stealing wholesale.

08 Aug 23:18

8/8/22: Senate Legislation, China Escalation, Weapons Shipments, NATO Expansion, Monkeypox, Media Fawning, & More!

Tom Roche

excellent: not the best BP ever, but consistently strong (notably, more *policy* politics than "horserace" politics)

Krystal and Saagar report on Democrats legislation, China tensions rising, weapons flowing to Ukraine, gay marriage vote, Dick Cheney's ad for Liz, Monkeypox hypocrisy, & media fawning!


To become a Breaking Points Premium Member and watch/listen to the show uncut and 1 hour early visit: https://breakingpoints.supercast.com/


To listen to Breaking Points as a podcast, check them out on Apple and Spotify


Apple: https://podcasts.apple.com/us/podcast/breaking-points-with-krystal-and-saagar/id1570045623 


Spotify: https://open.spotify.com/show/4Kbsy61zJSzPxNZZ3PKbXl 


Merch: https://breaking-points.myshopify.com/


Tickets: https://www.ticketmaster.com/event/0E005CD6DBFF6D47 

Learn more about your ad choices. Visit megaphone.fm/adchoices

07 Aug 17:56

Radio War Nerd EP 341 — Unforgetting The Korean War, feat. Blowback cohosts Brendan James & Noah Kulwin

by mail@yashalevine.com (Gary Brecher)
Tom Roche

VERY EXCELLENT: see Blowback free feed [here](https://feeds.redcircle.com/e30b9f10-8c86-432e-9fa0-ba287fb94e7f) and paysite (subscribe to binge all 3 EXCELLENT seasons) [here](https://blowback.show/)

Co-hosts Gary Brecher & Mark Ames
06 Aug 16:47

Reporting from Ukraine: Lindsey Snell

by Katie Halper
Tom Roche

VERY EXCELLENT: 1st 2 of the 4 food groups, but esp Ukraine Truthing

Lindsey Snell, journalist at ishgal.com, crossed the Ukraine border to talk to soldiers and civilians. What she found surprised her:

There are Ukrainian forces who are “openly Neonazis, and we’re still giving them weapons and calling them something that they’re not.” All across the frontlines Lindsey found swastikas, SS symbols, and Wolfsangels. But negative news in Ukraine undermines the West’s mission to bleed Russia and sell more weapons, so corporate US media paints over it.

Lindsey also found that while the western mercenaries who flew over to kill Russians are loving the war, most of the Ukrainians she spoke to, both soldiers and citizens, want it to end.

“The corruption and lack of equipment is worse in Ukraine than anywhere I’ve been, Syria, Iraq, Libya. It’s just so bad.” And for the Ukrainians who are starving, losing their homes, and dying, “there’s no end in sight.”

What’s worse — as is the norm with guests on Useful Idiots — no one in western media will report on Lindsey’s story. “Journalists come and see how corrupt everything is and that the soldiers have nothing, but none of is is reflected in mainstream reporting. It’s very well known but it’s just not getting past the filter of western media.”

Plus, subscribe for the full interview, where Lindsey shares the story of getting kidnapped in Syria, how the war is hurting Europeans, and Turkey’s potential invasion of Syria (that you probably won’t hear about).

It’s all this, and more, on this week’s episode of Useful Idiots. Check it out.

Subscribe now

06 Aug 16:44

651 - The Inebriated Past 12: Jesus’ Brother (8/4/22)

Tom Roche

excellent: just Christman and just history, but well done (excepting some appalling mispronounciations--Pinyin is not so difficult, dude!)

Matt discusses the history of the Taiping Heavenly Kingdom, a rebel state that existed in China from 1851-1864. The rebellion was organized around the landless Hakka people by Hong Xiuquan who, after failing his bureaucratic entrance exams, had a nervous breakdown that led him to believe he was the brother of Jesus Christ. Matt tracks the rise and fall of the kingdom, and how it fits in other proto-socialist movements, and the resonances with the Mormon history he laid out on the last two episodes of the Inebriated Past. Get bonus content on Patreon

Hosted on Acast. See acast.com/privacy for more information.

05 Aug 21:05

Dead Ringers - 8th July

Tom Roche

EXCELLENT: BBC finally drops the Dead Ringer episode from the week of BoJo's resignation (after BBC Sounds delay), and the DR crew cheerfully sodomize the Tory bastards over and over :-)

Topical satire show, featuring characters drawn from the worlds of celebrity and politics.

05 Aug 21:02

Mick Wallace and Clare Daly Want to Save Us from NATO

by Katie Halper
Tom Roche

excellent, including 4 food groups

Click here for the extended episode, including the full interview where Claire and Mick discuss abortion rights in Ireland and the US, mainstream media’s constant attacks and misinformation about them, and why our government and media are too afraid to talk about Assange, the realities of the Ukraine proxy war, and US hegemony.

“Democracy is about having a say in how your country is run. Right now, that’s not happening. The way the system works, the politicians don’t feel under pressure to answer to the majority of the people.”

Mick Wallace and Clare Daly, members of the European Parliament, are Irish progressives. This means they speak out against the proxy war in Ukraine, Julian Assange’s torture, and the Syria dirty war. Elected progressives in the US are quite different.

“From what we can see,” they tell us. “You don’t have any left politics in the US. The Democrats are indistinguishable from the Republicans and Bernie would be seen as just right of center in Europe.”

And what does it take to get actual progressives like Clare and Mick in office?

“Until people take to the streets, it’s going to be very hard for any left wing party to show its head in America.”

Plus, subscribe for the extended interview where Claire and Mick discuss abortion rights in Ireland and the US, mainstream media’s constant attacks and misinformation about them, and why our government and media are too afraid to talk about Assange, the realities of the Ukraine proxy war, and US hegemony.

As Mick always says, “democracy means you can say what you like, but you’ll do what you’re told.”

And that’s this week’s episode of Useful Idiots. Check it out.

Subscribe now

05 Aug 20:19

Dead Ringers - 1st July

Tom Roche

funny

Topical satire show, featuring characters drawn from the worlds of celebrity and politics.

03 Aug 22:49

Michael and Us: Tornado, Earthquake, or Godzilla? w/ Justin Decloux

Tom Roche

EXCELLENT: not much politics, just lots (funny) content from GodzillaWorld

In 1984, Godzilla rose from Tokyo Bay for the first time in nine years for THE RETURN OF GODZILLA. In 1985, an American distributor dramatically recut the movie into GODZILLA 1985. We're joined at long last by Important Cinema Club co-host Justin Decloux to discuss the many structural and ideological changes that were imposed upon Godzilla's big comeback.


Michael and Us is a podcast about political cinema and our crumbling world hosted by Will Sloan and Luke Savage.



Hosted on Acast. See acast.com/privacy for more information.

02 Aug 17:13

650 - Hammer Time feat. Brace Belden (8/1/22)

Tom Roche

EXCELLENT, funny

We’re joined by special investigator Brace Belden to look into the increasingly bizarre saga of the Black Hammer group, which recently made news as subject of a police raid, a suspicious death among their group members, criminal accusations against their leader, and now accusations of being part of a foreign influence operation. We discuss all this as well as the political value of Being Normal.


Dates + Ticket links to TrueAnon’s live shows: https://www.patreon.com/posts/tour-general-no-69113927


Dates + Tickets for OUR live shows (including the Ft. Lauderdale show now rescheduled to 10/30) are here: chapotraphouse.com/live


Streaming tickets for our Pickathon fest set at Noon (PST) next Saturday, 8/6 are available at: https://frqncy.live/pickathon/?r=52e3

Get bonus content on Patreon

Hosted on Acast. See acast.com/privacy for more information.

01 Aug 17:24

Highway to a Benetton Ad (feat. David Broder)

by The Späti Boys
Tom Roche

EXCELLENT (at least, after initial banter, which is just OK): if you thought, "no one could ever do a survey of Italian politics that is both accurate and humorous," your belief is hereby empirically negated.

We sit down with Jacobin's Europe editor David Broder to discuss the future of Italy, Meloni, the future of the world and of course we talk shit about Argentina

FIND OUR GUEST AND HIS WORK:
https://twitter.com/broderly
https://www.nytimes.com/2022/07/22/opinion/italy-draghi-meloni-government.html

HOW TO SUPPORT US:
https://www.patreon.com/cornerspaeti

HOW TO REACH US:
Corner Späti https://twitter.com/cornerspaeti
Julia https://twitter.com/KMarxiana
Rob https://twitter.com/leninkraft
Nick https://twitter.com/sternburgpapi
Uma https://twitter.com/umawrnkl
Ciarán https://twitter.com/CiaranDold

Support Corner Späti

01 Aug 15:38

Episode 196 - Who Speaks for the Trees? (w/ Vijay Prasad)

Tom Roche

Prasad VERY EXCELLENT as usual

Subscribe to Bad Faith on Patreon to instantly unlock our full premium episode library: http://patreon.com/badfaithpodcast   

Marxist historian, commentator, author, and executive-director of Tricontinental: Institute for Social Research Vijay Prasad joins Bad Faith this week to talk about what global revolutions in Sri Lanka, India, Colombia, and other locales around the world can teach Americans trying to cultivate a left revolution here at home. How should the left put pressure on captured union leadership, and how can it hold left politician's accountable? Does the left "eat itself," or is it in a necessary processes of developing a more adversarial theory of change? How does Vijay believe he will see revolution in his lifetime even as he observes the enormous structural barriers to change?

Subscribe to Bad Faith on YouTube for video of this episode. Find Bad Faith on Twitter (@badfaithpod) and Instagram (@badfaithpod).

Produced by Armand Aviram.

Theme by Nick Thorburn (@nickfromislands).

01 Aug 15:37

Dig: Dead Generations w/ Matt Christman

Tom Roche

Matt Christman at maximum intellirant. This is not the banty guy from Chapo, this dude is pissed

Featuring Matt Christman on how American history brought us to this awful present.


Support this podcast at Patreon.com/TheDig 



Hosted on Acast. See acast.com/privacy for more information.

01 Aug 04:47

Yi Tang: Machine Learning in Emacs - Copy Files from Remote Server to Local Machine

by Yi Tang
Tom Roche

EXCELLENT: also discusses (/en passant/) using [package=vterm](https://github.com/akermu/emacs-libvterm) to host remote [tmux](https://en.wikipedia.org/wiki/Tmux) instance

dired-rsync is a great additional to my Machine Learning workflow in Emacs

Table of Contents

For machine learning projects, I tweaked my workflow so the interaction with remote server is kept as less as possible. I prefer to do everything locally on my laptop (M1 Pro) where I have all the tools for the job to do data analysis, visualisation, debugging etc and I can do all those without lagging or WI-FI.

The only usage of servers is running computation extensive tasks like recursive feature selection, hyperparameter tuning etc. For that I ssh to the server, start tmux, git pull to update the codebase, run a bash script that I prepared locally to fire hundreds of experiments. All done in Emacs of course thanks to Lukas Fürmetz’s vterm.

The only thing left is getting the experiment results back to my laptop. I used two approaches for copying the data to local: file manager GUI and rsync tool in CLI.

Recently I discovered dired-rsync that works like a charm - it combines the two approaches above, providing a interactive way of running rsync tool in Emacs. What’s more, it is integrated seamlessly into my current workflow.

They all have their own use case. In this post, I brief describe those three approaches for coping files with a focus on dired-rsync in terms of how to use it, how to setup, and my thoughts on how to enhance it.

Note the RL stands for remote location, i.e. a folder a in remote server, and LL stands for local location, the RL’s counterpart. The action in discussion is how to efficiently copying files from RL to LL.

File Manager GUI

This is the simplest approach requires little technical skills. The RL is mounted in the file manager which acts as an access point so it can be used just like a local folder.

I usually have two tabs open side by side, one for RL, and one for LL, compare the differences, and then copy what are useful and exists in RL but not in LL.

I used this approach on my Windows work laptop where rsync is not available so I have to copy files manually.

Rsync Tool in CLI

The rsync tool is similar to cp and scp but it is much more power:

  1. It copies files incrementally so it can stop at anytime without losing progress
  2. The output shows what files are copied, what are remaining, copying speed, overall progress etc
  3. Files and folders can be included/excluded by specifying patterns

I have a bash function in the project’s script folder as a shorthand like this

copy_from_debian_to_laptop () {
    # first argument to this function
    folder_to_sync=$1
    # define where the RL is 
    remote_project_dir=debian:~/Projects/2022-May
    # define where the LL is 
    local_project_dir=~/Projects/2022-May          
    rsync -avh --progress \
	  ${remote_project_dir}/${folder_to_sync}/ \
	  ${local_project_dir}/${folder_to_sync}
}

To use it, I firstly cd (change directory) to the project directory in terminal, call copy_from_debian_to_laptop function, and use the TAB completion to quickly get the directory I want to copy, for example

copy_from_debian_to_laptop experiment/2022-07-17-FE

This function is called more often from a org-mode file where I kept track of all the experiments.

Emacs’ Way: dired-rsync

This approach is a blend of the previous two, enable user to enjoy the benefits of GUI for exploring and the power of rsync.

What’s more, it integrates so well into the current workflow by simply switching from calling dired-copy to calling dired-rsync, or pressing r key instead of C key by using the configuration in this post.

To those who are not familiar with copying files using dired in Emacs, here is the step by step process:

  1. Open two dired buffer, one at RL and one at LL, either manually or using bookmarks
  2. Mark the files/folders to copy in the RL dired buffer
  3. Press r key to invoke dired-rsync
  4. It asks for what to copy to. The default destination is LL so press Enter to confirm.

After that, a unique process buffer, named *rsync with a timestamp suffix, is created to show the rsync output. I can stop the copying by killing the process buffer.

Setup for dired=rsync

The dired-rsync-options control the output shown in the process buffer. It defaults to “-az –info=progress2”. It shows the overall progress in one-line, clean and neat (not in MacOS though, see Issue 36). Sometimes I prefer “-azh –progress” so I can see exactly which files are copied.

There are other options for showing progress in modeline (dired-rsync-modeline-status), hooks for sending notifications on failure/success (dired-rsync-failed-hook and dired-rsync-success-hook).

Overall the library is well designed, and the default options work for me, so I can have a bare-minimal configuration as below (borrowed from ispinfx):

(use-package dired-rsync
  :demand t
  :after dired
  :bind (:map dired-mode-map ("r" . dired-rsync))
  :config (add-to-list 'mode-line-misc-info '(:eval dired-rsync-modeline-status 'append))
  )

There are two more things to do on the system side:

  1. In macOS, the default rsync is a 2010 version. It does not work with the latest rsync I have on Debian server so I upgrade it using brew install rsync.

  2. There no way of typing password as a limitation of using process buffer so I have to ensure I can rsync without remote server asking for password. It sounds complicated but fortunately it takes few steps to do as in Setup Rsync Between Two Servers Without Password.

Enhance dired-rsync with compilation mode

It’s such a great library that makes my life much easier. It can be improved further to provide greater user experience, for example, keep the process buffer alive as a log after the coping finished because the user might want to have a look later.

At the moment, there’s no easy way of changing the arguments send to rsync. I might want to test a dry-run (adding -n argument) so I can see exactly what files are going to be copied before running, or I need to exclude certain files/folders, or rerun the coping if there’s new files generated on RL.

If you used compilation buffer before, you know where I am going. That’s right, I am thinking of turning the rsync process buffer into compilation mode, then it would inherit these two features:

  1. Press g to rerun the rsync command when I know there are new files generated on the RL
  2. Press C-u g (g with prefix) to change the rsync arguments before running it for dry-run, inclusion or exclusion

I don’t have much experience in elisp but I had a quick look at source code, it seems there’s no easy of implementing this idea so something to add to my ever-growing Emacs wish-list.

In fact, the limitation comes from using lower level elisp functions. The Emacs Lisp manual on Process Buffers states that

Many applications of processes also use the buffer for editing input to be sent to the process, but this is not built into Emacs Lisp.

What a pity. For now I enjoy using it and look for opportunities to use it.

01 Aug 04:33

Laugh Out Loud in the summer with Nour Hadidi and Charles Haycock

Tom Roche

EXCELLENT, both funny: Hadidi (one of my favorite comics) does great short bits, Haycock is just stoopid (but in the good way)

Nour Hadidi puts G-O-D into her S-E-T and thy Y-Y-C Comedy festival, and Charles Haycock describes his fondness, and complex relationship with...couches.
01 Aug 04:32

Laugh Out Loud in the Summer with Heidi Foss and Thomas Calnan

Tom Roche

repeat but good (esp Foss' oneliners)

Thomas Calnan coaches you through the loss of a "pet"....and Heidi Foss had a few too many at the holiday party again. Recorded at the 905 Comedy Festival in 2019
31 Jul 16:56

Radio War Nerd EP 340 — The US Civil War, Part 10: Culture Wars (Live in Brooklyn)

by mail@yashalevine.com (Gary Brecher)
Tom Roche

excellent though uneven: it's a live show for which Ames, Dolan, and co apparently did *not* rehearse, so "technical difficulties" galore

Co-hosts Gary Brecher & Mark Ames
31 Jul 16:54

West prepares to plunder post-war Ukraine with neoliberal shock therapy

Tom Roche

VERY EXCELLENT (as usual from Norton/Multipolarista) analysis of the explicit plans US-EU-WEF have been and continue to make for whatever remains of Ukraine after their sockpuppet shreds and NATO is forced to move the proxy war with Russia to another front

Western governments and corporations met in Switzerland to plan harsh neoliberal economic policies to impose on post-war Ukraine, calling to cut labor laws, “open markets,” drop tariffs, deregulate industries, and “sell state-owned enterprises to private investors.” VIDEO: https://youtube.com/watch?v=rbxudlFTN1E Read more here: https://multipolarista.com/2022/07/28/west-neoliberal-recovery-conference
31 Jul 04:39

Mini Show #48: Kamala Staff, Fetterman Campaign, Instagram Shakeup, Saudi Visit, & More!

Tom Roche

mostly good: the Jason Kander interview is just listenable, Kyle Kulinski is ... better than usual. I advise abending @ 91:11, thus to skip the last 2 interviews, both by Marshall Kosloff who has gotten quite bad lately)

Krystal, Saagar, and friends talk about Kamala Harris, John Fetterman's campaign, Americans moving to Mexico, Olbermann podcast, PTSD, Instagram changes, Saudis & Biden, Taiwan tension, & more!


To become a Breaking Points Premium Member and watch/listen to the show uncut and 1 hour early visit: https://breakingpoints.supercast.com/


To listen to Breaking Points as a podcast, check them out on Apple and Spotify


Apple: https://podcasts.apple.com/us/podcast/breaking-points-with-krystal-and-saagar/id1570045623 


Spotify: https://open.spotify.com/show/4Kbsy61zJSzPxNZZ3PKbXl 


Merch: https://breaking-points.myshopify.com/


Tickets: https://www.ticketmaster.com/event/0E005CD6DBFF6D47 


Kyle Kulinski: https://www.youtube.com/c/SecularTalk


Marshall Kosloff: https://www.youtube.com/channel/UC3O3P7AsOC17INXR5L2APHQ


Jason Kander: https://www.harpercollins.com/products/invisible-storm-jason-kander?variant=39935556911138

Learn more about your ad choices. Visit megaphone.fm/adchoices

31 Jul 01:32

This 1997 movie perfectly predicted today’s Ukraine war propaganda

Tom Roche

VERY EXCELLENT, and funny: not just on "Wag the Dog" the movie, but also today's multipolar world, the evil that the neocon-shitlib complex is doing to prevent losing The Unipolar Moment, US politics, and much, much more

The 1997 Hollywood film "Wag the Dog" perfectly predicted the propaganda tactics the US government and media would use decades later in its wars in Ukraine, Iraq, Syria, Libya, and beyond. In this special joint episode, Multipolarista host Benjamin Norton is joined by Sina Rahmani of The East Is a Podcast to discuss the movie and how shockingly relevant it still is today. VIDEO: https://youtube.com/watch?v=BIZFAOtD5rM Support The East Is a Podcast at https://patreon.com/east_podcast Follow Sina at https://twitter.com/urorientalist
30 Jul 14:31

Drift-Backs and Crazy Frog (Feat: David Adler)

by The Späti Boys
Tom Roche

excellent

We have on David Adler from the Progressive International to talk about drift-backs in the Aegean Sea that Forensic Architecture reported on (https://aegean.forensic-architecture.org/) and lighten up the episode with a little talk about Crazy Frog and Nick's new career as a 'Heat Influencer'

HOW TO FIND OUR GUEST
https://twitter.com/davidrkadler
https://progressive.international/

HOW TO SUPPORT US:
https://www.patreon.com/cornerspaeti

HOW TO REACH US:
Corner Späti https://twitter.com/cornerspaeti
Julia https://twitter.com/KMarxiana
Rob https://twitter.com/leninkraft
Nick https://twitter.com/sternburgpapi
Uma https://twitter.com/umawrnkl
Ciarán https://twitter.com/CiaranDold

Support Corner Späti

29 Jul 15:12

Peter Prevos: Simulating Text Files with R to Test the Emacs Denote Package

by Peter Prevos
Tom Roche

testing shows [Denote](https://protesilaos.com/emacs/denote) outperforms [Org-roam](https://www.orgroam.com/) for large-scale (==10k) notes databases (not to be confused with [Lotus Notes databases](https://en.wikipedia.org/wiki/HCL_Domino))

Emacs is the most user friendly piece of software ever invented by humanity. I use it for 90% of my computing task, including keeping my digital knowledge garden with notes. Several notes packages exist, with Org Roam as the most popular and fully-featured. I have used this package for a while now, but it relies on a database and has grown a feature set far beyond my needs.

Protesilaos (Prot) Stavrou is developing the Denote package that goes back to the basics of Emacs. The defining feature of this package is a file-naming convention that acts as metadata to find your notes. The basic structure is: YYYMMDDTHHMMSS--file-name-dashed__keyword1_keyword2.extension. The filename starts with a timestamp at one second resolution to ensure unique file names (unless you create more than one per second). This timestamp also acts as the unique identifier to link notes. The timestamp is followed by two dashes and the sluggified file name. Two underscores after the file name indicate the start of the keywords, separated by one underscore. This convention provides a convenient heuristics to find notes based on dates, title and keywords. Denote supports either Org mode, plain text or Markdown files.

The simplicity of Denote allows for it to be easily integrated with other Emacs packages and it can be easily extended with some Emacs Lisp code. I am working on a package to integrate it with Citar so that notes can be linked to a bibliography.

I decided to have a play with this package and considered moving away from Org Roam to the monastic simplicity of Denote. But before I decided to convert my existing knowledge base, I wanted to see how it behaves with thousands of files in a single folder. Rather then converting my existing files, I decided to generate some random files to see how it performs.

Generating Random Text Files for Emacs Denote

My coding chops in R are much better than Emacs Lisp, so I decided to write some R code to generate random text files and take Denote through its paces.

This code uses the Collins Scrabble Word list to generate random file names and keywords. Download this file to your working directory before using this code. The code reads the file and generates a set of 50 keywords. Random timestamps are set somewhere in the distant future. Each file has a template for the front matter.

  ## Simulate n files in denote folder

  ## Initiation
  library(stringr)

  n <- 10000
  k <- 50

  wordlist <- readLines("collins-scrabble-words-2019.txt")
  wordlist <- tolower(words)
  tag_words <- sample(words[nchar(wordlist) <= 5], k)
  timestamps <- Sys.time() + sample(600E6:666E6, n)
  template <- c("#+title:      ",
                "#+date:       ",
                "#+filetags:   ",
                "#+identifier: ")
  denote_directory <- "~/denote-sim/"
  dir.create(denote_directory)

This next code snippet generates n Org mode files in the denote_directory folder. Titles are extracted by sampling the word list and the tags (keywords) are sampled from the 50 defined tags. The front matter includes the tile, the creation date, the keywords (called filetags in Org mode) and the identifier. The Lorem Ipsum generator in the stringr package generates some paragraphs of text. The last part of the code generates some links to random posts.

  ## Generate n random posts

  for(i in 1:n) {
      title <- paste(sample(wordlist, sample(2:5, 1)), collapse = "-")
      tags <- paste(sample(tag_words, sample(4, 1)), collapse = "_")
      identifier <- format(timestamps[i], "%Y%m%dT%H%M%S")
      front_matter <- c(paste0(template[1],
                               str_to_title(str_replace_all(title, "-", " "))),
                        paste0(template[2],
                               paste0("[", format(timestamps[i], "%F %a %H:%M"), "]")),
                        paste0(template[3],
                               paste0(":", str_replace_all(tags, "_", ":"), ":")),
                        paste0(template[4], identifier))
      links_list <- vector()
      for (j in 1:(sample(1:5, 1))) {
          links_list[j] <- paste0("- ", "[[denote:",
                                  sample(format(timestamps, "%Y%m%dT%H%M%S"), 1), "]]")
      }
      content <- c(front_matter,
                   "",
                   stringi::stri_rand_lipsum(1),
                   "",
                   paste("*", str_to_title(paste(sample(wordlist,
                                                        sample(1:3, 1)),
                                                 collapse = " "))),
                   links_list)
      filename <- paste0(denote_directory, identifier, "--", title, "__", tags, ".org")
      writeLines(content, filename)
  }

Generating thousands of files will take a few minutes …

Using this code I generated ten thousands notes and used this to test the Denote package to see it if works at a large scale. This tests shows that Prot's approach is perfectly capable of working with thousands of notes. Just for kicks, I also synchronised these files with an Org Roam setup. My laptop struggled with the computational load and I was unable to properly access the files as it struggled with the large number of files. So case, closed - I am moving to Denote and teach myself more Emacs Lisp to build my ideal zettelkasten.

As seen on R Bloggers

28 Jul 16:45

Russian Orthodox Converts in Appalachia

by Sean Guillory
Tom Roche

VERY EXCELLENT

27 Jul 21:52

Iran & Russia pledge to cut US dollar from global trade, strengthen China alliance

Tom Roche

EXCELLENT

Russian President Vladimir Putin visited Iran, signed a $40 billion energy cooperation agreement, and pledged to strengthen their economic and military alliance with China. Moscow and Tehran also called to drop the US dollar and use local currencies for trade. VIDEO: https://youtube.com/watch?v=n60R8NooXa0 SOURCES: https://multipolarista.com/2022/07/23/iran-russia-dollar-china-alliance
27 Jul 21:52

CIA director admits media myth ‘Havana Syndrome’ is not foreign attack

Tom Roche

EXCELLENT: short, like shooting the proverbial (Anglophone corporate-funded media) "fish in a barrel"

After the corporate media spent years spreading the fake "Havana Syndrome" conspiracy theory, CIA Director William Burns admitted there is no evidence that a foreign country like Russia, China, or Cuba has attacked US spies and diplomats with "sonic attacks" or "directed energy weapons." VIDEO: https://youtube.com/watch?v=R_BI7eiNdjE Credit to Kawsachun News: https://kawsachunnews.com/cia-director-admits-theres-no-havana-syndrome Our report "CIA’s ‘Havana Syndrome’ conspiracy implodes: Here are media’s worst fake news stories": https://multipolarista.com/2022/01/23/cia-havana-syndrome-conspiracy-media
27 Jul 21:51

Democracy Now! 2022-07-27 Wednesday

Tom Roche

VERY EXCELLENT: much better than yesterday/Tuesday, and *waaay* better than Monday's Jan-6 snoozefest

Democracy Now! 2022-07-27 Wednesday

  • Headlines for July 27, 2022
  • A Pelosi Visit to Taiwan Could Inflame Tensions Between U.S. & China, with Little Benefit to Taiwanese
  • Economist Jayati Ghosh: Global Debt Crisis Is Perfect Storm of Unrest, Economic Disaster, Starvation
  • Richard Wolff: Fed Rate Hikes Are "Body Blow" to Workers Reeling from Pandemic, Growing Inequality

Download this show

27 Jul 15:32

Modeling Entrainment with Machine Learning

by Jiwen Fan
Tom Roche

more great work from [Journal of Advances in Modeling Earth Systems](https://agupubs.onlinelibrary.wiley.com/journal/19422466) aka JAMES

Two Paluch diagrams, one showing a large-eddy simulation and one showing the new machine learning model.
Editors’ Highlights are summaries of recent papers by AGU’s journal editors.
Source: Journal of Advances in Modeling Earth Systems

The mixing between cumulus clouds and the nearby environment is one of the greatest sources of uncertainty in climate modeling. The air mass flux that crosses into a cloud is called “entrainment” and out of a cloud is called “detrainment”. Entrainment and detrainment rates are highly stochastic and complex functions of properties of cumulus clouds and the nearby environment.

Shin and Baik [2022] develop a stochastic mixing model using a machine learning (ML) technique that models the mixing process of convection. The authors found that the ML model predicts entrainment and detrainment rates better than previously proposed parameterizations, with the inputs of cloud and environment properties.

The single-column model simulations with the new mixing model produce realistic mean and variance of various shallow cumulus properties. The simulation results also suggest that most of the cloud variabilities are generated from the mixing process. This paper is an example of the cutting-edge integration of physical understanding and machine learning techniques.

Citation: Shin, J., & Baik, J.-J. (2022). Parameterization of stochastically entraining convection using machine learning technique. Journal of Advances in Modeling Earth Systems, 14, e2021MS002817. https://doi.org/10.1029/2021MS002817

—Jiwen Fan, Editor, Journal of Advances in Modeling Earth Systems

Text © 2022. The authors. CC BY-NC-ND 3.0
Except where otherwise noted, images are subject to copyright. Any reuse without express permission from the copyright owner is prohibited.