Thursday, March 19, 2020
Dispositive
Dispositive Dispositive Dispositive By Maeve Maddox This use of the word dispositive in a letter to the editor in my morning paper left me puzzled: Religious dogma and scripture tend to be grab-bags out of which all kinds of often-contradictory points can be made by [whoever] wants to reach in, and who is to say which of them is dispositive? I think I know what the letter-writer meant by dispositive, but I canââ¬â¢t help wondering why he didnââ¬â¢t use a more familiar word when addressing a general audience. Dispositive as an adjective signifies the quality of ââ¬Å"directing, controlling, or disposing of something.â⬠In Scottish law, a ââ¬Å"dispositive clauseâ⬠is the clause of conveyance in a deed, by which the disposition of the property is expressed. In US law, a ââ¬Å"dispositive motionâ⬠is a motion asking a for court order that entirely disposes of one or more claims in favor of the moving party without need for further court proceedings. A dispositive motion does not necessarily seek to dispose of the entire lawsuit. The most common types of dispositive motions are the motion to dismiss and the motion for summary judgment. A dispositive motion may also be used to request that an indictment be dismissed or quashed, or for judgment on pleadings. (uslegal.com) French philosopher Michel Foucault used dispositive (dispositif) as a noun to refer to ââ¬Å"the various institutional, physical, and administrative mechanisms and knowledge structures which enhance and maintain the exercise of power within the social body.â⬠A Google search brings up about 2,210,000 results for ââ¬Å"dispositive.â⬠Here is a sampling of usage: A variety of factors will inform each stage of our inquiry; the factors that we consider today do not constitute an exhaustive list of factors relevant to the mainstreaming issue. Moreover, no single factor is dispositive in all cases. Though the speech at issue concerned the subject matter of his employment, and was expressed within his office rather than publicly, the Court did not consider either fact dispositive, and noted that employees in either context may receive First Amendment protection.à The Chinese middle class, I argue, is aà dispositiveà class.à To grasp the true character of thisà dispositiveà (theoretical fragments focused on the formulation of aà politicalà problem) and its effects, we must jump a step. Historicizing Security Entering the Conspiracy Dispositive Theà Bible, and only theà Bible, is dispositiveà for all Christians. If one cannot in a dispositive way show the non-existence of god, what does the atheistsââ¬â¢ position mean? Dispositive is a useful and meaningful term in specialized contexts, but it seems to me that some speakers may be using dispositive when all they mean is authoritative or conclusive. Want to improve your English in five minutes a day? Get a subscription and start receiving our writing tips and exercises daily! Keep learning! Browse the Vocabulary category, check our popular posts, or choose a related post below:4 Types of Gerunds and Gerund PhrasesEmail EtiquetteComma After Introductory Phrases
Tuesday, March 3, 2020
Using Glob with Directories in Ruby
Using Glob with Directories in Ruby Globbing files (with Dir.glob) in Ruby allows you to select just the files you want, such as all the XML files, in a given directory. Even though Dir.blogà is likeà regularà expressions, it is not. Its very limited compared to Rubys regular expressions and is more closely related to shell expansion wildcards. The opposite of globbing, iterating over all the files in a directory, can be done with the Dir.foreachà method. Example The following glob will match all files ending in .rb in the current directory. It uses a single wildcard, the asterisk. The asterisk will match zero or more characters, so any file ending in .rb will match this glob, including a file called simply .rb, with nothing before the file extension and its preceding period. The glob method will return all files that match the globbing rules as an array, which can be saved for later use or iterated over. #!/usr/bin/env ruby Dir.glob(*.rb).each do|f| puts f end Wildcards and More There are only a few wildcards to learn: * ââ¬â Match zero or more characters. A glob consisting of only the asterisk and no other characters or wildcards will match all files in the current directory. The asterisk is usually combined with a file extension if not more characters to narrow down the search.** ââ¬â Match all directories recursively. This is used to descend into the directory tree and find all files in sub-directories of the current directory, rather than just files in the current directory. This wildcard is explored in the example code below.? ââ¬â Match any one character. This is useful for finding files whose name are in a particular format. For example, 5 characters and a .xml extension could be expressed as .xml.[a-z] ââ¬â Match any character in the character set. The set can be either a list of characters or a range separated with the hyphen character. Character sets follow the same syntax as and behave in the same manner as character sets in regular expressions.{a,b} ââ¬â Match patter n a or b. Though this looks like a regular expression quantifier, it isnt. For example, in regular expression, the pattern a{1,2} will match 1 or 2 a characters. In globbing, it will match the string a1 or a2. Other patterns can be nested inside of this construct. One thing to consider is case sensitivity. Its up to the operating system to determine whether TEST.txt and TeSt.TxT refer to the same file. On Linux and other systems, these are different files. On Windows, these will refer to the same file. The operating system is also responsible for the order in which the results are displayed. It may differ if youre on Windows versus Linux, for example. One final thing to note is the Dir[globstring] convenience method. This is functionally the same as Dir.glob(globstring) and is also semantically correct (you are indexing a directory, much like an array). For this reason, you may see Dir[] more often than Dir.glob, but they are the same thing. Examples Using Wildcards The following example program will demonstrate as many patterns as it can in many different combinations. #!/usr/bin/env ruby # Get all .xml files Dir[*.xml] # Get all files with 5 characters and a .jpg extension Dir[.jpg] # Get all jpg, png and gif images Dir[*.{jpg,png,gif}] # Descend into the directory tree and get all jpg images # Note: this will also file jpg images in the current directory Dir[**/*.jpg] # Descend into all directories starting with Uni and find all # jpg images. # Note: this only descends down one directory Dir[Uni**/*.jpg] # Descend into all directories starting with Uni and all # subdirectories of directories starting with Uni and find # all .jpg images Dir[Uni**/**/*.jpg]
Subscribe to:
Posts (Atom)