I was sitting in a hotel room without any Internet access and without much to do... and I made this simple script, to roll die. It uses the date to generate a random number, and then limits it to the specified range, from 0 to N.Here's the code:1 #!/bin/bash2 #3 # Die roll script.4 #5 # Quick and dirty way to generate random numbers between one and N,6 # just like a die roll simulation.7 #8 # Parameters:9 # Optionally, a number of sides for the die, 10# but if this is not supplied, 6 is used by default;11# if a series of parameters is provided, the script 12# rolls a die for each of the parameters.13# Author:14# Konrad Siek 1516# Generates the random number from a date.17function roll {18 expr \( $(date +%N) % "$1" \) + 119}2021# Do the actual die rolls.22if [ "$1" == "" ]23then 24 # If no argument is given, then roll a six-sider.25 roll 626else27 # Roll a die for each of the arguments.28 while [ "$1" != "" ]29 do30 roll $131 shift32 done3334fi35As...
Fargo

Plot Synopsisby Karl WilliamsFilmmaking siblings Joel Coen and Ethan Coen both embraced and poked satirical fun at their rural Minnesota roots with this comedy-drama-thriller that earned seven Oscar nominations, winning for Best Actress and Best Original Screenplay. Frances McDormand stars as Marge Gunderson, a pregnant police chief whose affable,...
Fargo

Plot Synopsisby Karl WilliamsFilmmaking siblings Joel Coen and Ethan Coen both embraced and poked satirical fun at their rural Minnesota roots with this comedy-drama-thriller that earned seven Oscar nominations, winning for Best Actress and Best Original Screenplay. Frances McDormand stars as Marge Gunderson, a pregnant police chief whose affable,...
Platoon

Reviewby Richard GilliamPlatoon is remembered for the striking realism with which it recreated the Vietnam War from the viewpoint of the U.S. soldier. At stark contrast are the story's two protagonists, played by Tom Berenger and Willem Dafoe, the latter at peace with himself despite the hostilities around him, the former representing the corruption...
Platoon

Reviewby Richard GilliamPlatoon is remembered for the striking realism with which it recreated the Vietnam War from the viewpoint of the U.S. soldier. At stark contrast are the story's two protagonists, played by Tom Berenger and Willem Dafoe, the latter at peace with himself despite the hostilities around him, the former representing the corruption...
Giant

Reviewby Mark DemingEven if it hadn't starred three of the most iconic screen figures of the 1950s, George Stevens's Giant would still be an emotionally powerful and visually striking film; adding Rock Hudson, Elizabeth Taylor, and James Dean (in his final performance) to the mix was just the icing on the cake. Dean contributes the highest-caliber...
Giant

Reviewby Mark DemingEven if it hadn't starred three of the most iconic screen figures of the 1950s, George Stevens's Giant would still be an emotionally powerful and visually striking film; adding Rock Hudson, Elizabeth Taylor, and James Dean (in his final performance) to the mix was just the icing on the cake. Dean contributes the highest-caliber...
Modern Times

Plot Synopsisby Hal EricksonThis episodic satire of the Machine Age is considered Charles Chaplin's last "silent" film, although Chaplin uses sound, vocal, and musical effects throughout. Chaplin stars as an assembly-line worker driven insane by the monotony of his job. After a long spell in an asylum, he searches for work, only to be mistakenly arrested...
Modern Times

Plot Synopsisby Hal EricksonThis episodic satire of the Machine Age is considered Charles Chaplin's last "silent" film, although Chaplin uses sound, vocal, and musical effects throughout. Chaplin stars as an assembly-line worker driven insane by the monotony of his job. After a long spell in an asylum, he searches for work, only to be mistakenly arrested...
The Wild Bunch
Plot Synopsisby Lucia Bozzola"If they move, kill 'em!" Beginning and ending with two of the bloodiest battles in screen history, Sam Peckinpah's classic revisionist Western ruthlessly takes apart the myths of the West. Released in the late '60s discord over Vietnam, in the wake of the controversial Bonnie and Clyde (1967) and the brutal "spaghetti...
The Wild Bunch
Plot Synopsisby Lucia Bozzola"If they move, kill 'em!" Beginning and ending with two of the bloodiest battles in screen history, Sam Peckinpah's classic revisionist Western ruthlessly takes apart the myths of the West. Released in the late '60s discord over Vietnam, in the wake of the controversial Bonnie and Clyde (1967) and the brutal "spaghetti...
The power of Dojo i18n
I had said at an early stage that I was going to use Dojos i18n system to translate snippets of text in World Change Network. Now that the time came to actually implement it, I realized I had some learning to do to get all bits and pieces right. As it turned out, using Dojos i18n system for you own purposes is really simple.If you take a look at the unit test for i18n at http://download.dojotoolkit.org/current-stable/dojo-release-1.2.2/dojo/tests/i18n.js you see that it uses three major tricks;1....
The Deer Hunter

Plot Synopsisby Lucia BozzolaOne of several 1978 films dealing with the Vietnam War (including Hal Ashby's Oscar-winning Coming Home), Michael Cimino's epic second feature The Deer Hunter was both renowned for its tough portrayal of the war's effect on American working class steel workers and notorious for its ahistorical use of Russian roulette in...
The Deer Hunter

Plot Synopsisby Lucia BozzolaOne of several 1978 films dealing with the Vietnam War (including Hal Ashby's Oscar-winning Coming Home), Michael Cimino's epic second feature The Deer Hunter was both renowned for its tough portrayal of the war's effect on American working class steel workers and notorious for its ahistorical use of Russian roulette in...
Rocky

Plot Synopsisby Hal EricksonRocky Balboa (Sylvester Stallone), a Philadelphia boxer, is but one step removed from total bum-hood. A once-promising pugilist, Rocky is now taking nickel-and-dime bouts and running strongarm errands for local loan sharks to survive. Even his supportive trainer, Mickey (Burgess Meredith), has given up on Rocky. All this...
Rocky

Plot Synopsisby Hal EricksonRocky Balboa (Sylvester Stallone), a Philadelphia boxer, is but one step removed from total bum-hood. A once-promising pugilist, Rocky is now taking nickel-and-dime bouts and running strongarm errands for local loan sharks to survive. Even his supportive trainer, Mickey (Burgess Meredith), has given up on Rocky. All this...
Dances with Wolves

Plot Synopsisby Judd BlaiseA historical drama about the relationship between a Civil War soldier and a band of Sioux Indians, Kevin Costner's directorial debut was also a surprisingly popular hit, considering its length, period setting, and often somber tone. The film opens on a particularly dark note, as melancholy Union lieutenant John W. Dunbar...
Dances with Wolves

Plot Synopsisby Judd BlaiseA historical drama about the relationship between a Civil War soldier and a band of Sioux Indians, Kevin Costner's directorial debut was also a surprisingly popular hit, considering its length, period setting, and often somber tone. The film opens on a particularly dark note, as melancholy Union lieutenant John W. Dunbar...
Wuthering Heights

Plot Synopsisby Andrea LeVasseurWilliam Wyler's Wuthering Heights is one of the earliest screen adaptations of the classic Emily Brontë novel. A traveler named Lockwood (Miles Mander) is caught in the snow and stays at the estate of Wuthering Heights, where the housekeeper, Ellen Dean (Flora Robson), sits down to tell him the story in flashback. In...
Inscription à :
Articles (Atom)