Usage: java -jar selenium-server.jar [-interactive] [options]
-
port <nnnn>: the port number the selenium server should use (default 4444)
-
timeout <nnnn>: an integer number of seconds before we should give up
from threading import Thread | |
from selenium import selenium | |
import time | |
try: | |
import json | |
except ImportError: | |
import simplejson as json | |
USERNAME = "USERNAME" | |
ACCESS_KEY = "ACCESS-KEY" |
$PORT = 4444 | |
#start server | |
java -jar selenium-server-standalone.jar port=$PORT | |
#stop server | |
wget http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer |
EXAMPLES | |
find /tmp -name core -type f -print | xargs /bin/rm -f | |
Find files named core in or below the directory /tmp and delete them. Note that this will work incorrectly if | |
there are any filenames containing newlines, single or double quotes, or spaces. | |
find /tmp -name core -type f -print0 | xargs -0 /bin/rm -f | |
Find files named core in or below the directory /tmp and delete them, processing filenames in such a way that | |
file or directory names containing single or double quotes, spaces or newlines are correctly handled. The -name |
1. USE OF EXTERNAL OPEN SOURCE SOFTWARE | |
a) "Open Source Software" (OSS) is software that allows its recipients to modify and redistribute the source code; as such, "open source" is a copyright and distribution framework and makes no implications regarding technical support or indemnification. In almost all cases, OSS meets the definition of "commercial computer software" and shall be given appropriate statutory preference in accordance with 41 USC 264B (reference (b)) (see also FAR 2.101(b), 12_1.html 12.000, 12.101 (reference (c))). | |
b) Executive agencies, including CFPB, are required to conduct market research when preparing for the procurement of products or services by 41 USC Sec. 253a (reference (e)) (see also FAR 10.001. Market research for software should include OSS. | |
a. There are several positive aspects of OSS that should compel CFPB to seek out OSS when conducting market research on software for Bureau-wide use: | |
i. Publicly available source code enables continuous and broad peer review that |
import csv, codecs, cStringIO | |
class UTF8Recoder: | |
""" | |
Iterator that reads an encoded stream and reencodes the input to UTF-8 | |
""" | |
def __init__(self, f, encoding): | |
self.reader = codecs.getreader(encoding)(f) | |
def __iter__(self): |
all: bison-1 | |
bison-1: bison1.l bison1.y | |
bison -d bison1.y | |
flex -v -obison1.lex.c bison1.l | |
gcc -o $@ bison1.tab.c bison1.lex.c | |
clean: | |
rm -f bison-1 \ | |
bison1.lex.c bison1.tab.h bison1.tab.c |
1. USE OF EXTERNAL OPEN SOURCE SOFTWARE | |
a) "Open Source Software" (OSS) is software that allows its recipients to modify and redistribute the source code; as such, "open source" is a copyright and distribution framework and makes no implications regarding technical support or indemnification. In almost all cases, OSS meets the definition of "commercial computer software" and shall be given appropriate statutory preference in accordance with 41 USC 264B (reference (b)) (see also FAR 2.101(b), 12_1.html 12.000, 12.101 (reference (c))). | |
b) Executive agencies, including CFPB, are required to conduct market research when preparing for the procurement of products or services by 41 USC Sec. 253a (reference (e)) (see also FAR 10.001. Market research for software should include OSS. | |
a. There are several positive aspects of OSS that should compel CFPB to seek out OSS when conducting market research on software for Bureau-wide use: | |
i. Publicly available source code enables continuous and broad peer review that |
(Intro: percussion x 2 + Am x 4)
Am E
From the dusty mesa, her
Dm Am
Looming shadow grows
Am E
Hidden in the branches, of the