Jump to content

Wikipedia talk:Sandbox

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 151.74.14.142 (talk) at 01:00, 2 April 2008 (→‎The fourth dimention ?). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.


[www.internetisseriousbusiness.com] a a 'a' b c —Preceding unsigned comment added by Pborten (talkcontribs) 20:39, 1 April 2008 (UTC)[reply]

The fourth dimention ?

It is said that the fourth dimention of space is time. But As for as I think that time has its own 3 dimentions so it is itself a dimentioned entity rather than assisting other dimentioned entity like space.--Neeraj 21:56, 1 April 2008 (UTC)

No, it's four dimensions of space-time. Time no more "assists" space than space "assists" time. But if you want to have three-dimensional time, go right ahead, it would be damn useful if you could go off on a perpendicular and get a couple of hours sleep-in. JЇѦρ 00:19, 2 April 2008 :::::(UTC)



"what if I don't want to return from the topmost enclosing non-closure, but from a closure 2 levels up? and if I can't, why not?"
I think JavaScript lets you do that, but through an improper use of a differently aimed construct, so I'm writing this just for comparison sake (since this method could make one of the javascript examples to behave like the Smaltalk one on the "^" operator). Furthermore, this method requires an explicit handling of the "exit point", yet it's very easy and maybe obvious: just use throw instead of return and capture the result as an exception, wherever you need it.

Of course, that's not the right way one should use an exception-handling construct, so that'd be perhaps misleading/confusing in a real script, yet that should work as wished. And of course, great troubles might arise when using such an improper return method combined with regular exceptions, yet it's possible to make it work: in example, one could wrap the "exception-like" result into a certain "class" object and verify whether a captured exception is an instance of such a "class". So doing, the throw keyword whould behave quite like the ^ operator in Smalltalk, while return whould be the equivalent of a "normal" procedure end.--151.74.14.142 (talk) 00:29, 2 April 2008 (UTC) xeal[reply]
"Alternatively, I suggest you attempt to write a function in JavaScript that can be used in place of the built-in if-then-else statement (of course the invocation syntax would differ; that's OK)."
I'm not sure this is exactly what you're asking, but at first glance I'd write the following:

// // Implementing the if-else construct as a function which takes three functions as arguments. // The first function passed is the condition to be tested, and is expected to evaluate as // true or false; the second one is the block to be executed if the test condition evaluates to // true, and may optionally return a value; the third is the alternative block to be executed // and may optionally return a value. One of such optional values is returned (null or undefined // if none is supplied). The calling function might assign the result value to a somewhat variable, // or let the function-block to handle it. A preferred way to call this function and easily handle // variables as in a standard if-else statement is throughout internal functions, as shown in // the alertMax function below. // function if_else(ifcond, ifblock, elseblock){ var result = null; var doIF = ( ifcond() ) && ( result = ifblock() ); //when ifcond evaluates to true ifblock is

                                                          //called and results assigned to result,

var doELSE = (! ifcond() ) && ( result = elseblock() ); //otherwise elseblock is called in

                                                               //the same fashion.

return result; }

// // Comparing values by calling if_else function with opportune parameters. // function alertMax( a, b ){ var max = if_else( function(){ return (a >= b); }, function(){ alert( a + " is greater than or equal to " + b); return a; }, function(){ alert( b + " is greater than " + a); return b; } ); //note functions passed as ifblock and elseblock alerts different text;

          //this shows the alternate execution of statements-equivalent functions works.

alert("Max computed value is: " + max); }

alertMax(6, 5); alertMax(8, 9);
--151.74.14.142 (talk) 00:29, 2 April 2008 (UTC) xeal[reply]

Ridvot

DESCRIPTION: Ridvot, French Noun, from local Picard patois, thought to be derived from medieval adj Ribaud (Eng. Ribald ). The ridvot is an ancient root vegetable native to the North of France. Looking like a gnarly cross between the celery root (celeriac) and the parsnip, with rhizoid protuberances, the ridvot is inedible raw. Its coarse skin is light yellow and difficult to peel.

HISTORY: It is thought Julius Caesar briefly mentioned the ridvot in De Bellum Gallicum, when describing the eating habits of the Gaul (tuber turpis). Pliny the Elder also alluded to the ridvot in his Natural Histories, without giving an accurate description of the plant (L. XX) The ridvot was mostly used as a medicinal plant during the Middle-Ages, when the tuber was boiled, mashed and mixed with gruel to be used as an impotence medicine. Because of its close resemblance to the mandragore it was believed to be a potent aid for severe cases of erectile dysfunction. Hence the name ridvot , a local pronunciation of the adjective ribaud (ribald), in Picardie. The vocable is still used nowadays in certain parts of the Oise department to pejoratively describe dissolute youths. The ridvot leaves were also boiled in a bitter concoction for depurative use throughout the Middle Ages. The 18th Century French naturalist Georges-Louis Leclerc, Comte de Buffon, describes the ridvot in his Histoires Naturelles, where the ridvot is linked to the celery root.

RIDVOT AS FOOD AND FODDER: The consumption of ridvot as a vegetable has always been very local and confined to the North of France and certain areas of Belgium. Owing to the reltaive blandness of its taste and the very long cooking time it requires, ridvot has never enjoyed a wde popularity as a food item. Ridvot has therefore been cultivated mostly as fodder for domestic pigs. Ridvot is a hardy plant that requires very little attention and is easy to grow, thus providing cheap and easy fodder also sometimes used for horses and more rarely, for cattle. It was cultivated for human consumption mostly during famines and war times, most notably during the reign of Louis XIV , when the Le Nain brothers depicted it in their paintings. Some lesser-known Fables by Jean de La Fontaine also mentioned ridvot in parables about rural poverty (The Pig and The Boar).

CONTEMPORARY USES OF RIDVOT

After the development of sugar beets cultivation in the 19th century, the ridvot almost disappeared to leave space and soil for the new crops, except in some isolated, local production areas. It was reborn during WWII when French peasants, confronted with war restrictions imposed by the Occupation forces, started to grow it again along with rutabagas and topinambours (Jerusalem artichokes) as a replacement for potatoes. The leaves were also sometimes used as an ersatz for coffee. Ridvot after WWII suffered the same ill reputation as those vegetables and virtually disappeared from tables and memories until the early 00s.

Coinciding with the French fashion for forgotten vegetables (topinambours, rutabagas, panais, crosnes etc.) the ridvot recently underwent a notable resurrection, witnessed in select farmers markets. It appears seasonally on three stars restaurant menus (Alain Passard, Pierre Gagnaire, Ferran Adria) and has been featured in culinary magazines (Elle a Table, Saveurs). It is favored by vegans, and its cultivation being mainly organic it tends to be found on the tables of the Parisian elite. The ridvot culinary consumption is concentrated in the Oberkampf and Canal St-Martin areas of Paris. It should be noted that ridvot is very advantageous in gluten-free diets.

Ridvot culinary uses:

The Ridvot needs to be blanched in boiling water to get rid off an acrid compound that releases a foul smell. After being blanched ridvot is peeled, and either steamed, boiled or roasted. It can then be either detailed, sliced and fried to make chips, or pureed. Its taste is very subtle (some would even say bland) and close to hazelnuts with a faint artichoke flavor. It can be prepared as a side dish with flavorings (with tarragon, chervil, hazelnut oil), saffron, etc.) or in soufflé dishes, presented in *verrines*, often taking the form of *espumas*). It can even be prepared as a dessert in compotes and ice creams. —Preceding unsigned comment added by Ridvot (talkcontribs) 00:37, 2 April 2008 (UTC)[reply]