from bash to python to find the space bug

I spent two days going nuts over a Python script not recognizing directories properly when passing them from a bash script. I was doing something like: (passing in a list of directories from command line to python) python main.py --result_dir "folder/dir_1, folder/dir_2" And in the python script main.py, parse the list of strings and on… result_dir_list = [f for f in result_dir.split(',')] # some operations following For now the code doesn’t work....

February 1, 2025

concatenate images

When I have to show a series of experiment results plottings, I used to use Meitu (a phone photoshop app) to first airdrop all images to my iphone, concatenate all the images, and them airdrop back to my mac. Not anymore now I got my hands on Imagemagick (https://imagemagick.org/). ImageMagick® is a free, open-source software suite, used for editing and manipulating digital images. It can be used to create, edit, compose, or convert bitmap images, and supports a wide range of file formats, including JPEG, PNG, GIF, TIFF, and Ultra HDR....

January 31, 2025

Series Catalog | Glenn Gould vs. Mozart's Greatest Concerto

It all began when I stumbled upon a surprising revelation—some people, including legendary pianist Glenn Gould, weren’t fans of Mozart. I was skeptical and maybe a little defensive at first—like come on, how dare him? Ready to sabotage his argument and him, I decided to first watch his infamous television lecture, How Mozart Became a Bad Composer. But instead of finding material for a rebuttal, I discovered Gould’s opinion was a nuanced, masterful analysis—a critical gem in musical discourse....

January 30, 2025

Glenn Gould vs. Mozart's Greatest Concerto | V. Bonus Episode with Bernstein

It was not only Mozart that Glenn Gould clashed with: Leonard Bernstein with Glenn Gould. Photo by Don Hunstein, 1957; Courtesy of Sony Classical [Glenn Gould’s] April 1962 performance of Brahms’ first piano concerto, with the New York Philharmonic and Leonard Bernstein conducting, gave rise to an extraordinary situation in which Mr. Bernstein disagreed with Gould’s interpretation so vehemently that he felt it necessary to warn the audience beforehand. (Cait Miller)...

January 29, 2025

Glenn Gould vs. Mozart's Greatest Concerto | IV. the piano sonata that Glenn recommends (K.333)

In Glenn Gould’s critical commentary on Mozart’s especially late piano concerti, he nevertheless adores Mozart’s early works: In his early works Mozart came very close to realizing the possibilities for experiment that would exist within even the most stylized form. His early sonatas concertos and Symphonies were extraordinarily flexible and inventive to a degree that he never quite equaled later on. My Mozart preference is for the work of his teenage years and as far as the piano sonatas are concerned those which he wrote during and shortly after his visit to Paris, which took place during his 22 year....

January 28, 2025

Glenn Gould vs. Mozart's Greatest Concerto | III. the piano concerto that Glenn dislikes for being too 'boring' (K.491)

So, what is the concerto that Glenn Gould criticized so harshly? It’s Mozart’s Piano Concerto No. 24 in C minor (K.491). Mozart composed K.491 during the winter of 1785–86 (FYI, Mozart was 30 then and he died five years later), a period when he was also devoting to the creation of his late operatic masterpieces, such as Le Nozze di Figaro, Don Giovanni, and later Die Zauberflöte (in other words, concerti appointments are the composition chores he was possibly trying to get over with)....

January 27, 2025

Glenn Gould vs. Mozart's Greatest Concerto | II. Commentaries

Glenn’s commentary on Mozart (How Mozart Became a Bad Composer) is inspiring, even beyond its musical context. Glenn is an original thinker—eloquent and masterful—yet he didn’t spend a single moment making his audience’s experience easier. The speed of his thoughts, the density of his information, and the impromptu free flow of his words were mesmerizing, even as he buried his argument beneath layers of complex ideas. Though Glenn seemed to critique Mozart harshly, beneath the surface of his sharp words and seemingly scathing remarks lay a deep respect for Mozart’s genius....

January 26, 2025

Glenn Gould vs. Mozart's Greatest Concerto | I. The Original Words

The famous Bach interpreter Glenn Gould (who is considered as among the most famous and celebrated pianists of the 20th century), famously commented negatively on Mozart. In 1968, Gould presented a segment of the weekly public television series Public Broadcast Library. His topic was “How Mozart Became a Bad Composer.” (source: OpenCulture) Glenn monologued a 40min critical masterclass, accompanied by a piano—filled by piano snippets dissecting Mozart to the core, and Glenn’s sparkling satrical humor....

January 25, 2025

Crowdsourcing Digital Public Goods | A Field Experiment on Metadata Contributions

Linfeng visited SUFE to give a talk on his job market paper “Crowdsourcing Digital Public Goods | A Field Experiment on Metadata Contributions”. He interviewed for School of Computing and Artificial Intelligence though I think he is more of an economist. Abstract This study explores why people choose to contribute metadata, which is data about data. Using a field experiment conducted with more than 3,000 authors of AEA journal articles, our control message reduces the uncertainty about the future value of metadata, whereas those from the treatment conditions additionally make the private or social benefits of metadata salient....

January 24, 2025

Birdwatch as 'Community Notes' on Twitter

Following the blog about Birdwatch’s mechanism design, here’s some latest news about it: Community Notes, formerly known as Birdwatch, is a feature on X (formerly Twitter) where contributors can add context such as fact-checks under a post, image or video. It is a community-driven content moderation program, intended to provide helpful and informative context, based on a crowd-sourced system. Notes are applied to potentially misleading content by a bridging algorithm not based on majority rule, but instead agreement from users on different sides of the political spectrum....

January 23, 2025