Random Articles (Page 137)
Have a deep view into what people are curious about.
🔗 Everything Is a File
"Everything is a file" is an idea that Unix, and its derivatives, handle input/output to and from resources such as documents, hard-drives, modems, keyboards, printers and even some inter-process and network communications as simple streams of bytes exposed through the filesystem name space. Exceptions include semaphores, processes and threads.
The advantage of this approach is that the same set of tools, utilities and APIs can be used on a wide range of resources and a number of file types. When a file is opened, a file descriptor is created, using the file path as an addressing system. The file descriptor is then a byte stream I/O interface on which file operations are performed. File descriptors are also created for objects such as anonymous pipes and network sockets - and therefore a more accurate description of this feature is Everything is a file descriptor.
Additionally, a range of pseudo and virtual filesystems exists which exposes internal kernel data, such as information about processes, to user space in a hierarchical file-like structure. These are mounted into the single file hierarchy.
An example of this purely virtual filesystem is under /proc that exposes many system properties as files. All of these files, in the broader sense of the word, have standard Unix file attributes such as an owner and access permissions, and can be queried by the same classic Unix tools and filters. However, this is not universally considered a fast or portable approach. Some operating systems do not mount /proc by default due to security or speed concerns, relying on system calls instead. It is, though, used heavily by Linux shell utilities, such as procps ps implementation and the widely installed on embedded systems BusyBox. Android Toolbox program depend on it as well.
Discussed on
- "Everything Is a File" | 2024-01-24 | 44 Upvotes 23 Comments
🔗 Edward Bernays
Edward Louis Bernays (; German: [bɛɐ̯ˈnaɪs]; November 22, 1891 − March 9, 1995) was an Austrian-American pioneer in the field of public relations and propaganda, referred to in his obituary as "the father of public relations". Bernays was named one of the 100 most influential Americans of the 20th century by Life. He was the subject of a full length biography by Larry Tye called The Father of Spin (1999) and later an award-winning 2002 documentary for the BBC by Adam Curtis called The Century of the Self.
His best-known campaigns include a 1929 effort to promote female smoking by branding cigarettes as feminist "Torches of Freedom" and his work for the United Fruit Company connected with the CIA-orchestrated overthrow of the democratically elected Guatemalan government in 1954. He worked for dozens of major American corporations including Procter & Gamble and General Electric, and for government agencies, politicians, and non-profit organizations.
Of his many books, Crystallizing Public Opinion (1923) and Propaganda (1928) gained special attention as early efforts to define and theorize the field of public relations. Citing works of writers such as Gustave Le Bon, Wilfred Trotter, Walter Lippmann, and his own double uncle Sigmund Freud, he described the masses as irrational and subject to herd instinct—and outlined how skilled practitioners could use crowd psychology and psychoanalysis to control them in desirable ways.
Discussed on
- "Edward Bernays" | 2021-07-01 | 58 Upvotes 35 Comments
- "Edward Bernays" | 2014-02-10 | 14 Upvotes 5 Comments
🔗 Andreas Raab passed away
The Squeak programming language is a dialect of Smalltalk. It is object-oriented, class-based, and reflective.
It was derived directly from Smalltalk-80 by a group at Apple Computer that included some of the original Smalltalk-80 developers. Its development was continued by the same group at Walt Disney Imagineering, where it was intended for use in internal Disney projects. Later on the group moved on to be supported by HP labs, SAP Labs and most recently Y Combinator.
Squeak is cross-platform. Programs produced on one platform run bit-identical on all other platforms, and versions are available for many platforms including the obvious Windows/macOS/linux versions. The Squeak system includes code for generating a new version of the virtual machine (VM) on which it runs. It also includes a VM simulator written in Squeak. For these reasons, it is easily ported.
Discussed on
- "Andreas Raab passed away" | 2013-01-17 | 19 Upvotes 2 Comments
🔗 'No Way to Prevent This,' Says Only Nation Where This Regularly Happens
"'No Way to Prevent This', Says Only Nation Where This Regularly Happens" is the title of a series of articles perennially published by the American news satire organization The Onion satirizing the frequency of mass shootings in the United States and the lack of action taken in the wake of such incidents.
Each article is about 200 words long, detailing the location of the shooting and the number of victims, but otherwise remaining essentially the same. A fictitious resident—usually of a state in which the shooting did not take place—is quoted as saying that the shooting was "a terrible tragedy", but "there's nothing anyone can do to stop them." The article ends by saying that the United States is the "only economically advanced nation in the world where roughly two mass shootings have occurred every month for the past eight years," and that Americans view themselves and the situation as "helpless".
Discussed on
- "'No Way to Prevent This,' Says Only Nation Where This Regularly Happens" | 2023-09-28 | 59 Upvotes 56 Comments
🔗 Maryam Mirzakhani
Maryam Mirzakhani (Persian: مریم میرزاخانی, pronounced [mæɾˈjæm miːɾzɑːxɑːˈniː]; 12 May 1977 – 14 July 2017) was an Iranian mathematician and a professor of mathematics at Stanford University. Her research topics included Teichmüller theory, hyperbolic geometry, ergodic theory, and symplectic geometry. In 2005, as a result of her research, she was honored in Popular Science's fourth annual "Brilliant 10" in which she was acknowledged as one of the top 10 young minds who have pushed their fields in innovative directions.
On 13 August 2014, Mirzakhani was honored with the Fields Medal, the most prestigious award in mathematics. Thus, she became both the first, and to date, the only woman and the first Iranian to be honored with the award. The award committee cited her work in "the dynamics and geometry of Riemann surfaces and their moduli spaces".
On 14 July 2017, Mirzakhani died of breast cancer at the age of 40.
Discussed on
- "Maryam Mirzakhani" | 2020-02-21 | 299 Upvotes 33 Comments
🔗 Scottish Café
The Scottish Café (Polish: Kawiarnia Szkocka) was a café in Lwów, Poland (now Lviv, Ukraine) where, in the 1930s and 1940s, mathematicians from the Lwów School of Mathematics collaboratively discussed research problems, particularly in functional analysis and topology.
Stanislaw Ulam recounts that the tables of the café had marble tops, so they could write in pencil, directly on the table, during their discussions. To keep the results from being lost, and after becoming annoyed with their writing directly on the table tops, Stefan Banach's wife provided the mathematicians with a large notebook, which was used for writing the problems and answers and eventually became known as the Scottish Book. The book—a collection of solved, unsolved, and even probably unsolvable problems—could be borrowed by any of the guests of the café. Solving any of the problems was rewarded with prizes, with the most difficult and challenging problems having expensive prizes (during the Great Depression and on the eve of World War II), such as a bottle of fine brandy.
For problem 153, which was later recognized as being closely related to Stefan Banach's "basis problem", Stanisław Mazur offered the prize of a live goose. This problem was solved only in 1972 by Per Enflo, who was presented with the live goose in a ceremony that was broadcast throughout Poland.
The café building now houses the Szkocka Restaurant & Bar (named for the original Scottish Café) and the Atlas Deluxe hotel at the street address of 27 Taras Shevchenko Prospekt.
Discussed on
- "Scottish Café" | 2021-05-29 | 173 Upvotes 46 Comments
🔗 Great California, Nevada, Oregon Flood of 1862
The Great Flood of 1862 was the largest flood in the recorded history of Oregon, Nevada, and California, occurring from December 1861 to January 1862. It was preceded by weeks of continuous rains and snows in the very high elevations that began in Oregon in November 1861 and continued into January 1862. This was followed by a record amount of rain from January 9–12, and contributed to a flood that extended from the Columbia River southward in western Oregon, and through California to San Diego, and extended as far inland as Idaho in the Washington Territory, Nevada and Utah in the Utah Territory, and Arizona in the western New Mexico Territory. The event dumped an equivalent of 10 feet (3.0 m) of water in California, in the form of rain and snow, over a period of 43 days. Immense snowfalls in the mountains of far western North America caused more flooding in Idaho, Arizona, New Mexico, as well as in Baja California and Sonora, Mexico the following spring and summer, as the snow melted.
The event was capped by a warm intense storm that melted the high snow load. The resulting snow-melt flooded valleys, inundated or swept away towns, mills, dams, flumes, houses, fences, and domestic animals, and ruined fields. It has been described as the worst disaster ever to strike California. The storms caused approximately $100 million (1861 USD) in damage, approximately equal to $3.117 billion (2021 USD). The governor, state legislature, and state employees were not paid for a year and a half. At least 4,000 people were estimated to have been killed in the floods in California, which was roughly 1% of the state population at the time.
Discussed on
- "Great California, Nevada, Oregon Flood of 1862" | 2023-01-16 | 12 Upvotes 15 Comments
🔗 Fork Bomb
In computing, a fork bomb (also called rabbit virus or wabbit) is a denial-of-service attack wherein a process continually replicates itself to deplete available system resources, slowing down or crashing the system due to resource starvation.
Discussed on
- "Fork Bomb" | 2020-02-19 | 140 Upvotes 111 Comments
🔗 The SOLID principles of object-oriented design
In object-oriented computer programming, SOLID is a mnemonic acronym for five design principles intended to make software designs more understandable, flexible and maintainable. It is not related to the GRASP software design principles. The principles are a subset of many principles promoted by American software engineer and instructor Robert C. Martin. Though they apply to any object-oriented design, the SOLID principles can also form a core philosophy for methodologies such as agile development or adaptive software development. The theory of SOLID principles was introduced by Martin in his 2000 paper Design Principles and Design Patterns, although the SOLID acronym was introduced later by Michael Feathers.
Discussed on
- "The SOLID principles of object-oriented design" | 2013-12-15 | 58 Upvotes 19 Comments
🔗 Street dogs in Moscow learn to ride the subway
The city of Moscow, Russia hosts a large population of free-ranging dogs. Many operate in packs and have become accustomed to seeking food from passersby. Some of them who frequent or inhabit the subway have attracted international attention for learning how to use the trains to commute between various locations.
Discussed on
- "Street dogs in Moscow learn to ride the subway" | 2018-07-23 | 63 Upvotes 3 Comments