Showing posts sorted by relevance for query Random. Sort by date Show all posts
Showing posts sorted by relevance for query Random. Sort by date Show all posts

Friday, September 10, 2021

Random

Random (pronounced ran-duhm)

(1) Proceeding, made, or occurring without definite aim, reason, or pattern; lacking any definite plan or prearranged order; haphazard.

(2) In statistics, of or characterizing a process of selection in which each item of a set has an equal probability of being chosen (the random sample); having a value which cannot be determined but only described probabilistically.

(3) Of materials used in building and related constructions, lacking uniformity in size or shape.

(4) Of ashlar (stonework), laid without continuous courses and applied without regularity:

(5) In slang (also clipped to “rando” and some on-line sources insist “randy” is also used), something or someone unknown, unidentified, unexpected or out of place; anything odd or unpredictable (not necessarily a pejorative term and used as both noun & adjective).

(6) In slang, someone unimportant; a person of no consequence (always a pejorative).

(7) In printing, the sloping work surface at the top of a compositor's workbench on which type is composed (also called a bank and use now almost exclusive to the UK).

(8) In mining, the direction of a rake-vein.

(9) Speed, full speed; impetuosity, force (obsolete).

(10) In ballistics, the full range of a bullet or other projectile and thus the angle at which a weapon is tilted to gain maximum range (obsolete).

(11) In computing (as pseudorandom), mimicking the result of random selection.

1650s: From the earlier randon, from the Middle English randoun & raundon, from the Old French randon, a derivative of randir (to run; to gallop) of Germanic origin (related to the Old High German rinnan (to run) (from which Modern French gained randonnée (long walk, hike), from either the Frankish rant (a running) & randiju (a run, race) or the Old Norse rend (a run, race), both from the Proto-Germanic randijō, from rinnaną (run), from the primitive Indo-European r̥-nw- (to flow, move, run).  It was cognate with the Middle Low German uprinden (to jump up) and the Danish rende (to run).  The development of the adjective to mean “having no definite aim or purpose, haphazard, not sent in a special direction” evolved in the 1650s from the mid-sixteenth century phrase “at random” (at great speed) which picked up the fourteenth century sense from the Middle English noun randon & randoun (impetuosity; speed).  In English, the meaning closely mirrored that in the Old French randon (rush, disorder, force, impetuosity), gained from Frankish or other Germanic sources.  The spelling shift in Modern English from -n to –m was not unusual (seldom, ransom et al).  Random is a noun & adjective, randomness & randomosity are nouns, randomize is a verb and randomly is an adverb; the noun plural is randoms.

A “random person” is one variously unknown, unidentified, unexpected or out of place.

In general use, the meanings related to speed (full speed; force, trajectory of delivery etc) faded from use between the fourteenth & seventeenth centuries but persisted in the field of ballistics where “random” described the limit of the range of a bullet or other projectile (thus the angle at which a weapon was tilted to gain the maximum range.  Even that was largely obsolete by the early twentieth century but the idea of the angle being “a random” persists still in pockets in the UK to describe a sloping work surface on which printers compose pages (although few now use physical metal type).  The now familiar twenty-first century slang use can be either pejorative (someone unimportant; a person of no consequence) or neutral tending to the amused (something or someone unknown, unidentified, unexpected or out of place; anything odd or unpredictable).  The modern adoption appears to have its origin in 1980s US college student slang when “a person who does not belong on our dormitory floor” was so described; from this the hint of “inferior, undesirable” was perhaps inevitable.  “Rando” seems to be the standard abbreviation but some on-line sources also list “randy” which would seem to risk confusion or worse.

School lunch social engineering: Some sources recommend parents cut their children’s sandwiches in random ways.  The theory is it helps train their minds to accept change and helps them learn to adapt.

In computing, random access memory (RAM) had since the 1980s become familiar as one of a handful of the critical specifications of a computer (CPU, RAM, drive space) and the origin of the terms dates from IBM’s labs in the early 1950s when it was used to describe a new form of memory which could be read non-sequentially.  The modern RAM used by personal computers, servers, smart phones etc is an evolution from the original memory model; in the world of the early mainframes there was simply storage which could fulfil the functions now performed by both RAM and media like hard disks & solid state drives.  RAM is now a well-known commodity but the companion ROM (Read-Only Memory) is understood only by nerds and only an obsessional few of them give it much thought.  RAM volatile in that the contents are inherently temporary lost when the device is powered-down or re-started; it can thus be thought of as using static electricity for data storage.  That characteristic means it’s fast, affording the most rapid access by the CPU (Central Processing Unit) so is used to hold whatever data is at the time most in demand and that can be parts of the operating system, applications or documents.  ROM is non-volatile and whatever is written to ROM remains even if a device is switched-off; it’s thus used for essential, information like firmware and hardware information.

In mathematics and statistics, random does have precise definitions but in general use it’s used also as a vague synonym for “typical or average”.  To a statistician, the word implies “having unpredictable outcomes to the extent all outcomes are equally probable and if any statistical correlation is found to exist it will be wholly coincidental.  Thus, although all dictionaries list the comparative as more random and the superlative as most random, a statistician will insist these are as absurd as “very unique” although even among mathematicians phrases like “increasingly random” or “tending to randomness” are probably not unknown.  For others, the forms are useful and the colloquial use to mean “apropos of nothing; lacking context; unexpected; having apparent lack of plan, cause or reason” is widely applied to events, even those which to a specialist may not be at all random and may even be predictable.  For most of us, any sub-set of numbers which appears to have no pattern will appear random but mathematicians need to be more precise.  In the strict, technical sense, a true random number set exists only when two conditions are satisfied: (1) the values are uniformly distributed over a defined interval or set and (2) it is impossible to predict future values based on past or present ones.  In the pre-computer age, creating random number lists was challenging and subsequent analysis has found some of the sets created by manual or mechanical means were not truly random although those which were sufficiently large probably were functional for the purposes to which they were put.

“Random news” is something strange, unexpected and often amusing.    

Now, random number generators (RNG) are used and they can exist either in hardware or software and there are two types (1) pseudorandom number generators (PRNG) and true random number generators (TRNG).  A software algorithm, a PRNG emulates a TRNG by mimicking the selection of a value to approximate true randomness, the limitation being the algorithm being based on a distribution (the origin of the term pseudorandom) which can only produce something ultimately deterministic and predictable (although to determine the pattern can demand much computational power).  Relying on a seed number, if that can be isolated, other numbers can be predicted although, if the subset is large, for many purposes, what PRNGs generate is functional.  TRNGs don’t use an algorithm (although their processes can be represented by one) but are instead based on an unpredictable physical variable such as radioactive decay of isotopes, airwave static, or the behaviour of subatomic particles, the latter now favoured for their utterly unpredictable movements, now called “pure randomness”.  So random is the behaviour of subatomic particles that their observation appears to be immune to measurement biases which can (at least in theory) afflict other methods.

Random numbers are important in a number of fields including (1) statistical sampling and experimentation where it’s essential to select a random sample to ensure that the results are representative of the entire population, (2) cryptography where random numbers are used to generate the encryption keys which ensure the security of data and communications, (3) simulation and modelling where there’s a need to replicate real-world scenarios, (4) gaming & gambling where the need exists to create unpredictable outcomes and (5) randomized controlled trials (RCT), notably in medical and scientific research where true randomness is needed to assist in the assessment of the effectiveness of treatments, interventions, or policies.

Thursday, September 30, 2021

Kitsch

Kitsch (pronounced kich)

(1) Something though tawdry in design or appearance; an object created to appeal to popular sentiment or undiscriminating tastes, especially if cheap (and thus thought a vulgarity).

(2) Art, decorative objects and other forms of representation of dubious artistic or aesthetic value (many consider this definition too wide).

1926: From the German kitsch (literally “gaudy, trash”), from the dialectal kitschen (to coat; to smear) which in the nineteenth century was used (as a German word) in English in art criticism describe a work as “something thrown together”.  Among “progressive” critics, there was a revival in the 1930s to contrast anything thought conservative or derivative with the avant garde.  The adjective kitchy was first noted in 1965 though it may earlier have been in oral use; the noun kitchiness soon followed. Camp is sometimes used as a synonym and the two can be interchangeable but the core point of camp is that it attributes seriousness to the trivial and trivializes the serious.  Technically, the comparative is kitscher and the superlative kitschest but the more general kitschy is much more common.  The alternative spelling kitch is simply a mistake and was originally 1920s slang for “kitchen” the colloquial shortening dating from 1919.  Kitsch & kitchiness are nouns, kitschify, kitschifying & kitschified are verbs and kitschy is an adjective; the noun plural is kitsch (especially collectively) or kitsches.  Kitschesque is non-standard.

Kitsch can become ironic.  Lava lamps were in the 1970s briefly fashionable as symbols of the modern but were soon re-classified kitsch.  In the twenty-first century, such was the demand that re-creations of the originals became available, bought because they were so kitsch.

For something that lacks and exact definition, kitsch is probably surprisingly well-understood as a concept although not all would agree on what objects are kitsch and what are not.  Nor does is there always a sense about it of a self-imposed exclusionary rule; there are many who cherish objects they happily acknowledge are kitsch.  As a general principle, kitsch is used to describe art, objects or designs thought to be in poor taste or overly sentimental.  Objects condemned as kitsch are often mass-produced, clichéd, gaudy (the term “bling” might have been invented for the kitsch) or cheap imitations of something.  It can take some skill to adopt the approach but other items which can compliments such a thing include rotary dial phones and three ceramic ducks flying up the wall (although when lava lamps were in vogue, lava lamp buyers probably already thought the kitsch.

Lindsay Lohan: Prom Queen scene in Mean Girls (2004).  If rendered in precious metal and studded with diamonds a tiara is not kitsch but something which is the same design but made with anodized plastic and acrylic Rhinestones certainly is.

Führerkitsch: A painting attributed to Adolf Hitler.

The Nazi regime devoted much attention to spectacle and representational architecture and art was a particular interest of Adolf Hitler (1889-1945; Führer (leader) and German head of government 1933-1945 & head of state 1934-1945).  Hitler in his early adulthood had been a working artist, earning a modest living from his brush while living in Vienna in the years before World War I (1914-1918) and his landscapes and buildings were, if lifeless and uninspired, competent enough to attract buyers.  He was rejected by the academy because he could never master a depiction of the human form, his faces especially lacking, something which has always intrigued psychoanalysts, professional and amateur.  Still, while his mind was completely closed to any art of which he didn’t approve, he was genuinely knowledgeable about many schools of art and better than many he knew what was kitsch.  However, the nature of the “Führer state” meant he had to see much of it because the personality cult built around him encouraged a deluge of Hitler themed pictures, statuettes, lampshades, bedspreads, cigarette lighters and dozens of other items.  A non-smoker, he ordered a crackdown on things like ashtrays but generally the flow of kitsch continued unabated until the demands of the wartime economy prevailed.

To the Berghof, his alpine headquarters on the Bavarian Obersalzberg near Berchtesgaden, Barvaria, there were constant deliveries of things likes cushions embroidered with swastikas in which would now be called designer colors and more than one of his contemporaries in their memoirs recorded that the gifts sometimes would be accompanied by suggestive photographs and offers of marriage.  Truly that was “working towards the Führer”.  At the aesthetic level he of course didn't approve but appreciated the gesture although they seem never to have appeared in photographs of the house’s principle rooms, banished to places like the many surrounding buildings including the conservatory of Hans Wichenfeld (the chalet on which the Berghof was based).

Hitler's study in the Berghof with only matched cushions (left) and the conservatory (centre & right) with some pillowshams (embroidered with swastikas and the initials A.H.).

In the US, Life magazine in October 1939 (a few weeks after the Nazis had invaded Poland) published a lush color feature focused on Hitler’s paintings and the Berghof, the piece a curious mix of what even then were called “human-interest stories”, political commentary and artistic & architectural criticism.  One heading :“Paintings by Adolf Hitler: The Statesman Longs to Be an Artist and Helps Design His Mountain Home” illustrates the flavor but this was a time before the most awful aspects of Nazi rule were understood and Life’s editors were well-aware a significant proportion of its readership were well disposed towards Hitler’s regime.  Still, there was some wry humor in the text, assessing the Berghof as possessing the qualities of a “…combination of modern and Bavarian chalet” styles, something “awkward but interesting” while the interiors, “…designed and decorated with Hitler’s active collaboration, are the comfortable kind of rooms a man likes, furnished in simple, semi-modern, sometimes dramatic style. The furnishings are in very good taste, fashioned of rich materials and fine woods by the best craftsmen in the Reich.”  Life seemed to be most taken with the main stairway leading up from the ground floor which was judged “a striking bit of modern architecture.”  Whether or not the editors were aware Hitler thought “modern architecture” suitable only for factories, warehouses and such isn’t clear.  They also had fun with what hung on the walls, noting: “Like other Nazi leaders, Hitler likes pictures of nudes and ruins” but anyway concluded that “in a more settled Germany, Adolf Hitler might have done quite well as an interior decorator.  There was no comment on the Führer’s pillows and cushions.

Whatever Life’s views on him as potential interior decorator, decades later, his architect was prepared to note the dictator’s “beginner’s mistake” in the building’s design.  In Erinnerungen (Memories or Reminiscences) and published in English as Inside the Third Reich (1969)), Albert Speer (1905–1981; Nazi court architect 1934-1942; Nazi minister of armaments and war production 1942-1945) recalled:

A huge picture window in the living room, famous for its size and the fact that it could be lowered, was Hitler s pride.  It offered a view of the Untersberg, Berchtesgaden, and Salzburg. However, Hitler had been inspired to situate his garage underneath this window; when the wind was unfavorable, a strong smell of gasoline penetrated into the living room.  All in all, this was a ground plan that would have been graded D by any professor at an institute of technology. On the other hand, these very clumsinesses gave the Berghof a strongly personal note. The place was still geared to the simple activities of a former weekend cottage, merely expanded to vast proportions.

He commented also on the pillowshams: “The furniture was bogus old- German peasant style and gave the house a comfortable petit-bourgeois look.  A brass canary cage, a cactus, and a rubber plant intensified this impression.  There were swastikas on knickknacks and pillows embroidered by admiring women, combined with, say, a rising sun or a vow of "eternal loyalty."  Hitler commented to me with some embarrassment: "I know these are not beautiful things, but many of them are presents.  I shouldn't like to part with them."

Führerkitsch: A painting attributed to Adolf Hitler.

Dutifully, Hitler acknowledged the many paintings which which were little more than regime propaganda although the only works for which he showed any real enthusiasm were those which truly he found beautiful.  However, he knew there was a place for the kitsch… for others.  In July 1939, while being shown around an exhibition staged in Munich called the “Day of German Art”, he complained to the curator that some German artists were not on display and after being told they were “in the cellar”, demanded to know why.  The only one with sufficient strength of character to answer was Frau Gerhardine "Gerdy" Troost (1904–2003), the widow of the Nazi’s first court architect Paul Troost (1878–1934) and one of a handful of women with whom Hitler was prepared to discuss anything substantive.  Because it’s kitsch” she answered.  Hitler sacked the curatorial committee and appointed his court photographer (Heinrich Hoffmann (1885–1957)) to supervise the exhibition and the depictions of happy, healthy peasants and heroic nude warriors returned.  Hitler must have been satisfied with Herr Hoffman's selections because in November that year he conferred on him the honorific "professor", a title he would award as freely as he would later create field marshals.  

Kitsch: One knows it when one sees it.

What is kitsch will be obvious to some while others will remain oblivious and the disagreements will happen not only at the margins.  Although there will be sensitive souls appalled at the notion, it really is something wholly subjective and the only useful guide is probably to borrow and adapt the threshold test for obscenity coined by Justice Potter Stewart (1915–1985; associate justice of the US Supreme Court 1958-1981) in Jacobellis v Ohio (1964):

I shall not today attempt further to define the kinds of material I understand to be embraced within that shorthand description and perhaps I could never succeed in intelligibly doing so. But I know it when I see it…

Kitsch also has a history also of becoming something else.  As recently as the 1970s, tea-towels, placemats, oven mitts, serving trays and plenty else was available in the West adorned with depictions of indigenous peoples, often as racist tropes or featuring the appropriation of culturally sensitive symbols.  These are now regarded as kitsch only historically and have been re-classified as examples variously (depending on the content) of cultural insensitivity or blatant racism.

Kitsch at work: Lava Lamps and Random Number Generation

Some may have dismissed the Lava Lamp as "kitsch" but the movement of the blobs possesses properties which have proved useful in a way their inventor could never have anticipated.  The US-based Cloudflare is a “nuts & bolts” internet company which provides various services including content delivery, DNS (Domain Name Service), domain registration and cybersecurity.  In some aspects of the internet, Cloudflare’s services underpin as many as one in five websites.  For many reasons, the generation of truly random numbers is essential for encryption and other purposes but to create them continuously and at scale is a challenge.  It’s a challenge even for home decorators who want a random pattern for their tiles, their difficulty being that however a large number of tiles in two or more colors are arranged, more often than not, at least one pattern will be perceived.  That doesn’t mean the tiles are not in a random arrangement, just that people’s expectation of “randomness” is a shape with no discernible pattern whereas in something like a floor laid with tiles, in a random distribution of colors, it would be normal to see patterns; they too are a product of randomness in the same way there’s no reason why if tossing a coin ten times, it cannot all ten times fall as a head.  What interior decorators want is not necessarily randomness but a depiction of randomness as it exists in the popular imagination.

Wall of EntropyCloudflare, San Francisco.  Had this been in an installation in a New York gallery in 1985, it would have been called art.  

For most purposes, computers can be good enough at generating random numbers but in the field of cryptography, they’re used to create encryption keys and the concern is that what one computer can construct, another computer might be able to deconstruct because both digital devices are working in ways which are in some ways identical.  For this reason, using a machine alone has come to be regarded as a Pseudo-Random Number Generator (PRNG) simply because they are deterministic.  A True Random Number Generator (TRNG) uses something genuinely random and unpredictable and this can be as simple as the tiny movements of the mouse in a user’s hand or elaborate as a system of lasers interacting with particles.

One of Cloudflare’s devices encapsulating unpredictability (and thus randomness) is an installation of 100 lava lamps, prominently displayed on a wall in their San Francisco office.  Dubbed Cloudflare’s “Wall of Entropy”, it uses an idea proposed as long ago as 1996 which exploited the fluid movements in an array of lava lamps being truly random; as far as is known, it remains impossible to model (and thus predict) the flow.  What Cloudflare does is every few milliseconds take a photograph of the lamps, the shifts in movement converted into numeric values.  As well as the familiar electrical mechanism, the movement of the blobs is influenced by external random events such as temperature, vibration and light, the minute variations in each creating a multiplier effect which is translated into random numbers, 16,384 bits of entropy each time.

Wall of EntropyCloudflare, San Francisco.  Note the arrangement of colors which avoids any two being together, in the horizontal or vertical, something which probably was a deliberate choice rather than randomness although, there's no reason why, had the selection truly been random, this wouldn't have been the result.  Were there an infinite number of Walls of Entropy, every combination would exist including ones which avoid color paring and ones in which the colors are clustered.  What Cloudflare have done in San Francisco is make the lamps conform to the popular perception of randomness and that's fine because the colors have no effect on the function

Sunday, October 17, 2021

Lava

Lava (pronounced lah-vuh or lav-uh)

(1) The molten, fluid rock that issues from a volcano or volcanic vent (sometimes accumulating, occasionally permanently) in a volcano’s “lava lake”.

(2) The rock formed when this solidifies, occurring in many varieties differing greatly in structure and constitution.

(3) In fashion, as “lava dress” (sometimes volcano dress), a long, flowing gown, classically in orange and black fabric, styled to recall a vertiginous lava flow.

(4) A shade of red which tends to orange, recalling the color of red-hot, molten lava.

(5) As Lava Lamp, the trademarked name of a electric decorative lamp made of a transparent, (usually tapered) cylinder containing a liquid in which a colored wax (or wax-like substance) is stimulated by the heat of the light bulb to change into randomly separating, seemingly luminous shapes which constantly rise and descend.

1740–1750: From the Italian lava (molten rock issuing from a volcano), from the Neapolitan or Calabrian dialectal lava (avalanche, torrent or stream; downpour overflowing the streets).  The original use in Italian was to describe flash flood rivulets after downpours and only later to the streams of molten rock from Mount Vesuvius.  The once commonly supposed link with the Latin lavāre (to wash) (from the primitive Indo-European root leue- (to wash) was based on the idea of “a liquid flowing” but is now thought one of those creations of the medieval imagination and it’s just as unlikely there’s was any relationship with the Arabic لابة‎ (lāba) (black volcanic rock).  Lava is also wholly unrelated to larva (an early stage of growth for some insects and amphibians) which was from the Latin larva (ghost-like, masked) which may have been from the Etruscan Lār (Etruscan praenomen; titulary god) which appeared usually as Lares (guardian deities).  The alternative etymology is from the Latin labes (sliding down, falling), which influenced lābī (to slide, fall or slip) (a labina an “avalanche or landslide”).  The only adjective in modern use is lavalike (or lava-like).  The old adjectives lavatic (1805), lavic (1822) & laval (1883) all fell into disuse by the twentieth century (although their occasional revival in the technical literature would not be unsurprising) and lavaesque seems never to have been coined.  The palindromic Laval did endure in France as both a locality name and surname and is remembered because of Pierre Laval (1883–1945), Prime Minister of France 1931-1932, 1935-1936 & de facto prime minister in the Vichy Government 1942-1944.  He was executed by a French firing squad in 1945.  Lava is a noun and the obsolete lavatic, lavic & lavalike were adjectives; the noun plural is lavas.

Lindsay Lohan in Pucci triangle lava-print bikini, The Bahamas, May 2007.

The terms lava and magma (from the Ancient Greek μάγμα (mágma) (paste)) are sometimes used interchangeably but to geologists and volcanologists the distinction is that Magma is molten rock which exists beneath a planet’s surface and become lava only when it flows from a volcano or volcanic vent.  Magma thus does not always become lava, sometimes cooling and solidifying as rock beneath the surface and sometimes collecting in a magma chamber.  A magma chamber differs from a lava lake in that the pleasingly alliterative latter describes the (usually large) large pool of molten lava that forms in a volcanic crater (although volcanologists do use the term also of lava which “sticks” to a volcano’s surface and doesn’t flow further.  They also in some cases call the extrusive igneous rock formed when it hardens and cools “lava” although this is not in general use, laypeople associating both “magma” and “lava” with the material in its molten state.

Lava lake, Mount Erebus, Antarctica.  Some 60 m (200 feet) in diameter, it sits within a small pit crater within the post-caldera summit and is phonolite in composition.  It may or may not remain a permanent feature.

The rock formations created by cooled magma at Mount Erebus proved especially interesting to those researching the history of the Earth’s magnetic field.  Geophysicist Dr Catherine Constable (b 1958) was studying the data used to refine a model explaining the mechanism of the earth’s occasional magnetic field reverses (from the familiar north & south polarity to the reverse where they swap) and found lava to be a substance keeping a perfect recorder of the field.  All magmas contain enough iron-rich minerals to detect the field and these align themselves toward the field as the lava freezes. As a result, the magnetic field at that moment is recorded: set in time and set in stone.  Over geological time, quite what the frequency (or the rapidity) of the shift isn’t clear and while studies suggest historically there’s be a swap every few hundred thousand years, it’s been almost a million years since the last so while one “might” be (over)due, Dr Constable says there’s no available evidence one is in progress or even imminent.

Catriona Gray (b 1994; Miss Universe 2018) in lava dress by Filipino designer Mak Tumang (b 1986) which used a image of lava flowing down Mayon Volcano, rendered in Swarovski crystals, Bangkok’s Impact Arena, Thailand, December 2018 (left) and lava flow on Tungurahua volcano, Huambalo, Ecuador (right).

Catriona Gray on the catwalk, lava flowing.

Lava cup-cakes

Lava cakes can pay tributes to volcanologists in different ways.  They can feature a magna chamber which, upon slicing can feed a lava flow or they can formed with an exposed crater in which sits a lava lake.  Professional chefs can produce the effects with room-temperature “lava” but usually these are for display and the cakes work best with hot, melted chocolate and obsessives use a variety of ingredients (peanut butter, raspberries, orange colored icing et al) to attempt to emulate the variegated colors of the real stuff.  They work best with dark chocolate but sweeter types can be used (or a blend).  Lava cakes can be made at larger scales but the laws of physics (both thermal and structural) mean full-sized constructions can be challenging (and messy) so most produce lava cup-cakes.  Because, in a sense, lava cakes are a kind of civil engineering, some very complex recipes have been created but the following will make 6-8 cup-cakes (depending on the size of the muffin tins) and it has the virtue of simplicity:

Ingredients

4 tablespoons of unsalted butter at room temperature (plus some with which to grease the muffin tray).

A third of a cup of granulated sugar (plus some to sprinkle in the muffin tray).

3 large eggs.

A third of a cup of all-purpose flour.

A quarter teaspoon of salt.

8 ounces of dark chocolate, melted (for best results, delay the melt process until ready to blend (step (8) below).

6-8 squares (from the standard blocks) of dark chocolate.

Icing (confectioners') sugar, for dusting.

Whipped cream or ice cream, for serving (optional).

Fruit for serving (optional and most choose a red or orange variety).

Instructions

(1) Preheat oven to 400°F (205°C).

(2) Grease the cups of muffin tray with butter, ensuring the coasting is light and consistent.

(3) Sprinkle some granulated sugar over the muffin tray and ensure each has buttered cup has a consistent coating.  Shake off any excess grains.

(4) Spoon some granulated sugar into each cup, swirling to make sure the cup is completely lined.

(5) Blend the butter and granulated sugar until the mix is creamy.

(6) To this mix, as the eggs, one at a time, blending them in after each addition.

(7) To this mix, beat in flour and salt (on a low speed) until combined.

(8) To this mix, add the molten chocolate, and beat until combined.  Don’t be off-put if the mix seems either more or less viscous that you might expect.

(9) Pour mix into the greased cups. Fill only to half-way.

(10) In the centre of each cup, place one of the chocolate squares.

(11) Add the remaining mix to each cup but, because the mix will expand, don’t fill higher than three-quarters.

(12) Put tray into the heated oven, baking until the middle of the cakes no longer jiggle (should be no more than 8-12 minutes and if left too long, they’ll cease to be lava cup-cakes and become chocolate cup-cakes).  Because there’s some risk of spillage, place baking paper underneath the tray.

(13) Remove tray from oven and allow it to sit for 7-8 minutes.

(14) Up turn tray on a plate or other suitable flat surface and remove cup-cakes so the conical aspect resembles volcano.

(15) Dust with the icing (confectioner's) sugar and serve with vanilla ice cream or whipped cream, adding some sort of fruit if desired.  Upon being sliced, the magma should ooze out, lava-like.

The Lava Lamp

The decorative lava lamp was invented in 1963 by Edward Craven Walker (1918-2000), a Word War II (1939-1945) RAF (Royal Air Force) pilot who was inspired by a rigged-up egg-timer he saw in a pub, the device made with oil and water in a bottle.  Oil and water being two immiscible (unable to mix) fluids, the timer worked by shaking the bottle, the egg deemed to be ready when the resulting blobs of oil had re-coagulated.  Knowing the world was well-supplied with cheap, reliable egg-timers, Craven saw little point in “making a better mousetrap” but he found the behavior of the blobs a pleasing piece of art and in his garage experimented with different fluids until he found a pleasing combination which produced just the effect he’d envisaged.  The characteristic shape of the lamp came about because the one seen in the pub used a standard cocktail shaker and the container in which Craven undertook his early research was an orange-squash bottle which was made in a similar shape; it proved ideal.  They work by the heat-soak from the incandescent light-bulb raising the temperature of the blobs, lowering both their density and the liquid's surface tension.  As the warmed blobs rise, they cool, lose buoyancy thus descend to the base where a wire with an active current breaks their surface tension, inducing re-coagulation.

Although associated with psychedelia, as well as lurid colors (the range expanded since the introduction of LEDs), lava lamps with plain black blobs in clear fluid are available.

The first lava lamp patent (Lava Lamp is a registered trademark in some jurisdictions) was applied for in 1963 and they were first displayed in 1965.  Very popular in the early-mid 1970s, by the 1980s the fad had passed, not because of the popular association of them with stoners imagined sitting staring at one for hours while the Grateful Dead played on the turntable (endlessly on repeat) but because they’d come to be thought of as plastic kitsch.  However, they never quite went away and while there are spikes in demand (associated usually with some appearance in some prominent piece of popular culture), there is clearly a constant demand for those who just like the look while others furnish according to retro schemes or like the odd ironic piece among their conspicuous good taste.

Lava Lamps and Random Number Generation

US-based Cloudflare is a “nuts & bolts” internet company which provides various services including content delivery, DNS (Domain Name Service), domain registration and cybersecurity.  In some aspects of the internet, Cloudflare’s services underpin as many as one in five websites.  For many reasons, the generation of truly random numbers is essential for encryption and other purposes but to create them continuously and at scale is a challenge.  It’s a challenge even for home decorators who want a random pattern for their tiles, their difficulty being that however a large number of tiles in two or more colors are arranged, more often than not, at least one pattern will be perceived.  That doesn’t mean the tiles are not in a random arrangement, just that people’s expectation of “randomness” is a shape with no discernible pattern whereas in something like a floor laid with tiles, in a random distribution of colors, it would be normal to see patterns; they too are a product of randomness in the same way there’s no reason why if tossing a coin ten times, it cannot all ten times fall as a head.  What interior decorators want is not necessarily randomness but a depiction of randomness as it exists in the popular imagination.

Wall of EntropyCloudflare, San Francisco.  Had this been in an installation in a New York gallery in 1985, it would have been called art.  

For most purposes, computers can be good enough at generating random numbers but in the field of cryptography, they’re used to create encryption keys and the concern is that what one computer can construct, another computer might be able to deconstruct because both digital devices are working in ways which are in some ways identical.  For this reason, using a machine alone has come to be regarded as a Pseudo-Random Number Generator (PRNG) simply because they are deterministic.  A True Random Number Generator (TRNG) uses something genuinely random and unpredictable and this can be as simple as the tiny movements of the mouse in a user’s hand or elaborate as a system of lasers interacting with particles.

One of Cloudflare’s devices encapsulating unpredictability (and thus randomness) is an installation of 100 lava lamps, prominently displayed on a wall in their San Francisco office.  Dubbed Cloudflare’s “Wall of Entropy”, it uses an idea proposed as long ago as 1996 which exploited the fluid movements in an array of lava lamps being truly random; as far as is known, it remains impossible to model (and thus predict) the flow.  What Cloudflare does is every few milliseconds take a photograph of the lamps, the shifts in movement converted into numeric values.  As well as the familiar electrical mechanism, the movement of the blobs is influenced by external random events such as temperature, vibration and light, the minute variations in each creating a multiplier effect which is translated into random numbers, 16,384 bits of entropy each time.

Wall of EntropyCloudflare, San Francisco.  Note the arrangement of colors which avoids any two being together, in the horizontal or vertical, something which probably was a deliberate choice rather than randomness although, there's no reason why, had the selection truly been random, this wouldn't have been the result.  Were there an infinite number of Walls of Entropy, every combination would exist including ones which avoid color paring and ones in which the colors are clustered.  What Cloudflare have done in San Francisco is make the lamps conform to the popular perception of randomness and that's fine because the colors have no effect on the function.

Monday, March 14, 2022

Swap

Swap (pronounced swop)

(1) To exchange, barter, or trade, as one thing for another.

(2) To substitute (one thing) for another (sometimes used in the forms swap-out & swap-in).

(3) To make an exchange.

(4) In finance, the verbal shorthand for a number of transactions (credit default swaps, currency swaps etc).

(5) In computer programming, exchanging two variables in the memory of a computer

(6) In computer operating systems, as swap partition, a partition of the physical data storage media used for paging to augment random access memory (RAM).

(7) In instrumentation as the acronym SWAP (Sun Watcher using Active Pixel System Detector and Image Processing), a space instrument used on solar satellites.

(8) In instrumentation as the acronym SWAP (Solar Wind At Pluto), a space instrument used in the observation of Pluto (which should still be a planet).

(9) In international development as the acronym SWAp (Sector-Wide Approach), a paradigm in the sector.

(10) In Cambridge University slang, a social meal at a restaurant between two university societies, usually involving drinking and banter; commonly associated with fining and pennying; the crewdate is the Oxford University equivalent.

Circa 1200: From the Middle English swappen (to swap (the original meeting was “to hurl, to strike, strike hands (in bargaining)”) and cognate with the dialectal German schwappen (to slosh, slop, to clap, box (the ears)).  Swap is a noun or verb, swapper a noun, swapped & swapping are adjectives or verbs (used with or without objects).  The alternative spelling, restricted mostly to the UK is swop.  The plural is swaps,

The seemingly strange etymological path from Middle English swappen ("to hurl" or "to strike") to the modern meaning of “swap” is thought to be an allusion to striking hands together when making an exchange, the handshake sealing the deal (ie the swap) as it were; the evolution of the word thus imitative of the sound of hitting or slapping.  The origin of swappen was the Middle English swippen (to strike, hit), from the Old English swipian (to scourge, strike, beat, lash), from the Old English swappian, a secondary form of the Old English swāpan (to swoop), from the Old Norse svipa (to swoop, flash, whip, look after, look around) which begat also swipe.  The verb (circa 1200) was the first form in the sense of "to strike, strike the hands together.  The sense of "to exchange, barter, trade" dates from the 1590s, the noun in this sense first recorded in the 1620s. Although swap-meets are an ancient institution of the barter economy known to many cultures and pre-dating antiquity, the term “swap-meet” seems not to have existed prior to 1968 when added to American English.

Bill Clinton (b 1946; US president 1993-2001) leaving the Martha's Vineyard Annual Swap Meet.

In 1890, the US Board on Geographic Names (BGN) introduced a policy avoiding the use of apostrophes in the possessive form in place names, the intent being: (1) a standardization convention to remove confusion, (2) to simplify the printing of maps by ensuring there were fewer clashes with special characters and (3) to remove another source of imaginative interpretation by lawyers.  An additional benefit was realized when computer databases began to be created and, especially in the early post-war years, many problems in indexing and formatting were avoided by restricting entries to letters & numbers.  The BGN does make the odd exception in the case of places of historical significance and Martha's Vineyard was one of the few places to emerge with apostrophe intact.

Swap files and operating systems

A swap file (known also as virtual memory) is a file (with special attributes) stored on a hard disk (or SSD) where data is written if the physical random access memory (RAM) available becomes insufficient for the stable functioning of the operating system.  RAM is preferable for operations because, being essentially static electricity, it is so much faster than even the fastest forms of hard disk or SSD.  

Older versions of Windows used pagefile.sys as a page file but since Windows 10, the function has been split into pagefile.sys and swapfile.sys which by default reside in the root of the system (c:\) drive and, for good reason, are hidden from the user.  Pagefile.sys stores data from installed (third-party) applications while swapfile.sys handles data from Windows and applications installed from the Microsoft Store.  In years gone by, there were advantages to be had in terms of speed and storage by tweaking swapfile settings (the size and the volume on which it sat) and some disabled it entirely if they had a surfeit of RAM.  Those with long memories will recall even a time when Windows permitted a choice between a temporary and permanent swap file and there were reasons why one could be preferable to the other.  However, with modern versions of Windows, it shouldn’t be disabled because many applications require it to exist and without one, simply won’t start.  For what most people do most of the time, it’s best to ignore the settings and just allow the operating system to set the configuration, even though on a machine with much RAM, the swap file is used seldom.

However, for nerds and megalomaniacs, it remains possible to tinker although, unless simulating one’s own thermonuclear explosions or modelling the global climate, few are likely to notice much difference.  It needs to be done with caution because if the swap file is too big then system will slow because RAM is often ignored whereas if it is too small, there comes a point at which that becomes functionally the same as disabling feature.  Computer magazines used to publish ways to calculate the ideal size, either by (1) a calculation based on the size of the hard drive and installed RAM and (2), a calculation which involved assessing a typical use of physical RAM but most now concede that on modern PCs (ie 8 or more GB RAM), it’s best to allow the operating system handle the allocation.  Users can still experiment but Microsoft cautions the swap file size should never be set to more than twice the size of physical RAM; instability is assured.  There are different rules and parameters for Windows Server; because of the way Windows is written, there are special settings and system administrators have to make allowances so in event of system crashes, there’s sufficient space for dump files which can reveal much.  For those who don’t, in another context, wish anything to be revealed, page files can be encrypted although, while secure, that does impose some overhead on disk input/output.

Under Linux, the golden rule long was that a swap size should be double the installed RAM but that hardly applies to modern machines, indeed, on some boxes, that may no longer even be possible.  Many Linux distributors are actually silent on the matter, perhaps reflecting the not improbable assumption their users are nerdier than the Windows crowd and will likely work things out themselves but some do provide guidance.

(1) Red Hat suggest a swap size of 20% of RAM for modern systems (which they define as 4GB or more RAM).

(2) CentOS suggests (2a) twice the size of RAM if RAM is less than 2 GB or (2b) size of RAM + 2 GB if RAM size is greater than 2 GB.

(3) Ubuntu notes (3a) if hibernation is used, a swap of the size of RAM plus the square root of the RAM size is necessary, (3b), if RAM is less than 1 GB, swap size should be at least the size of RAM and at most double the size of RAM & (3c) if RAM is more than 1 GB, swap size should be at least equal to the square root of the RAM size and at most double the size of RAM.

In their hearts, all Unix guys really long for the world of the mainframes where the distinctions between ram and disk space really didn’t exist and for most users, the same thing applies under Linux: it’s usually best just to let the system decide.

Swap Films

“Swap” films are a common trope in commercial cinema, done so often one wonders if the screen-writers might not be ungrateful were the scripts for such things handed to AI (artificial intelligence) bots; it must be a thankless task to try to come up with some original take on the concept.  Probably, every twenty-odd years, scripts could be recycled and few except pedantic critics would notice.  Swap films with the Freaky Friday title have appeared four times since 1976 (another is threatened) and at least two others have been made which follow variations of the plotline.  The Parent Trap franchise is built around a different sort of swap, one which doesn’t depend on any aspect of the supernatural.  Using the title there have been two feature-length films and three made television features with Disney said to have another release in the pipeline.  This swap theme (two characters changing places for some purpose) has been used in fiction (in print and on screen) literally dozens of times in genres as varied as rom-coms (romantic comedy), fantasy and horror.

Swap Movie DVD twin-packs: The Parent Trap and Freaky Friday.