| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This describes the set of shell functions supplied with the source distribution as an interface to the zftp builtin command, allowing you to perform FTP operations from the shell command line or within functions or scripts. The interface is similar to a traditional FTP client (e.g. the ftp command itself, see man page ftp(1)), but as it is entirely done within the shell all the familiar completion, editing and globbing features, and so on, are present, and macros are particularly simple to write as they are just ordinary shell functions.
The prerequisite is that the zftp command, as described in The zsh/zftp Module , must be available in the version of zsh installed at your site. If the shell is configured to load new commands at run time, it probably is: typing ‘zmodload zsh/zftp’ will make sure (if that runs silently, it has worked). If this is not the case, it is possible zftp was linked into the shell anyway: to test this, type ‘which zftp’ and if zftp is available you will get the message ‘zftp: shell built-in command’.
Commands given directly with zftp builtin may be interspersed between the functions in this suite; in a few cases, using zftp directly may cause some of the status information stored in shell parameters to become invalid. Note in particular the description of the variables $ZFTP_TMOUT, $ZFTP_PREFS and $ZFTP_VERBOSE for zftp.
| 25.2 Installation | ||
| 25.3 Functions | ||
| 25.4 Miscellaneous Features |
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
You should make sure all the functions from the Functions/Zftp directory of the source distribution are available; they all begin with the two letters ‘zf’. They may already have been installed on your system; otherwise, you will need to find them and copy them. The directory should appear as one of the elements of the $fpath array (this should already be the case if they were installed), and at least the function zfinit should be autoloaded; it will autoload the rest. Finally, to initialize the use of the system you need to call the zfinit function. The following code in your .zshrc will arrange for this; assume the functions are stored in the directory ~/myfns:
fpath=(~/myfns $fpath) autoload -U zfinit zfinit
Note that zfinit assumes you are using the zmodload method to load the zftp command. If it is already built into the shell, change zfinit to zfinit -n. It is helpful (though not essential) if the call to zfinit appears after any code to initialize the new completion system, else unnecessary compctl commands will be given.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The sequence of operations in performing a file transfer is essentially the same as that in a standard FTP client. Note that, due to a quirk of the shell’s getopts builtin, for those functions that handle options you must use ‘--’ rather than ‘-’ to ensure the remaining arguments are treated literally (a single ‘-’ is treated as an argument).
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Set or show the parameters for a future zfopen with no arguments. If no arguments are given, the current parameters are displayed (the password will be shown as a line of asterisks). If a host is given, and either the user or password is not, they will be prompted for; also, any parameter given as ‘?’ will be prompted for, and if the ‘?’ is followed by a string, that will be used as the prompt. As zfopen calls zfparams to store the parameters, this usually need not be called directly.
A single argument ‘-’ will delete the stored parameters. This will also cause the memory of the last directory (and so on) on the other host to be deleted.
If host is present, open a connection to that host under username user with password password (and, on the rare occasions when it is necessary, account account). If a necessary parameter is missing or given as ‘?’ it will be prompted for. If host is not present, use a previously stored set of parameters.
If the command was successful, and the terminal is compatible with xterm or is sun-cmd, a summary will appear in the title bar, giving the local host:directory and the remote host:directory; this is handled by the function zftp_chpwd, described below.
Normally, the host, user and password are internally recorded for later re-opening, either by a zfopen with no arguments, or automatically (see below). With the option ‘-1’, no information is stored. Also, if an open command with arguments failed, the parameters will not be retained (and any previous parameters will also be deleted). A zfopen on its own, or a zfopen -1, never alters the stored parameters.
Both zfopen and zfanon (but not zfparams) understand URLs of the form ftp://host/path... as meaning to connect to the host, then change directory to path (which must be a directory, not a file). The ‘ftp://’ can be omitted; the trailing ‘/’ is enough to trigger recognition of the path. Note prefixes other than ‘ftp:’ are not recognized, and that all characters after the first slash beyond host are significant in path.
Open a connection host for anonymous FTP. The username used is ‘anonymous’. The password (which will be reported the first time) is generated as user@host; this is then stored in the shell parameter $EMAIL_ADDR which can alternatively be set manually to a suitable string.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Change the current directory on the remote server: this is implemented to have many of the features of the shell builtin cd.
In the first form with dir present, change to the directory dir. The command ‘zfcd ..’ is treated specially, so is guaranteed to work on non-UNIX servers (note this is handled internally by zftp). If dir is omitted, has the effect of ‘zfcd ~’.
The second form changes to the directory previously current.
The third form attempts to change the current directory by replacing the first occurrence of the string old with the string new in the current directory.
Note that in this command, and indeed anywhere a remote filename is expected, the string which on the local host corresponds to ‘~’ is converted back to a ‘~’ before being passed to the remote machine. This is convenient because of the way expansion is performed on the command line before zfcd receives a string. For example, suppose the command is ‘zfcd ~/foo’. The shell will expand this to a full path such as ‘zfcd /home/user2/pws/foo’. At this stage, zfcd recognises the initial path as corresponding to ‘~’ and will send the directory to the remote host as ~/foo, so that the ‘~’ will be expanded by the server to the correct remote host directory. Other named directories of the form ‘~name’ are not treated in this fashion.
Change directory on the remote server to the one corresponding to the current local directory, with special handling of ‘~’ as in zfcd. For example, if the current local directory is ~/foo/bar, then zfhere performs the effect of ‘zfcd ~/foo/bar’.
Produce a long directory listing. The arguments dir-options and dir are passed directly to the server and their effect is implementation dependent, but specifying a particular remote directory dir is usually possible. The output is passed through a pager given by the environment variable $PAGER, or ‘more’ if that is not set.
The directory is usually cached for re-use. In fact, two caches are maintained. One is for use when there is no dir-options or dir, i.e. a full listing of the current remote directory; it is flushed when the current remote directory changes. The other is kept for repeated use of zfdir with the same arguments; for example, repeated use of ‘zfdir /pub/gnu’ will only require the directory to be retrieved on the first call. Alternatively, this cache can be re-viewed with the -r option. As relative directories will confuse zfdir, the -f option can be used to force the cache to be flushed before the directory is listed. The option -d will delete both caches without showing a directory listing; it will also delete the cache of file names in the current remote directory, if any.
List files on the remote server. With no arguments, this will produce a simple list of file names for the current remote directory. Any arguments are passed directly to the server. No pager and no caching is used.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
With no arguments, show the type of data to be transferred, usually ASCII or binary. With an argument, change the type: the types ‘A’ or ‘ASCII’ for ASCII data and ‘B’ or ‘BINARY’, ‘I’ or ‘IMAGE’ for binary data are understood case-insensitively.
Show the status of the current or last connection, as well as the status of some of zftp’s status variables. With the -v option, a more verbose listing is produced by querying the server for its version of events, too.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The commands for retrieving files all take at least two options. -G suppresses remote filename expansion which would otherwise be performed (see below for a more detailed description of that). -t attempts to set the modification time of the local file to that of the remote file: see the description of the function zfrtime below for more information.
Retrieve all the listed files file1 ... one at a time from the remote server. If a file contains a ‘/’, the full name is passed to the remote server, but the file is stored locally under the name given by the part after the final ‘/’. The option -c (cat) forces all files to be sent as a single stream to standard output; in this case the -t option has no effect.
As zfget, but only retrieve files where the version on the remote server is newer (has a later modification time), or where the local file does not exist. If the remote file is older but the files have different sizes, or if the sizes are the same but the remote file is newer, the user will usually be queried. With the option -s, the command runs silently and will always retrieve the file in either of those two cases. With the option -v, the command prints more information about the files while it is working out whether or not to transfer them.
As zfget, but if any of the local files exists, and is shorter than the corresponding remote file, the command assumes that it is the result of a partially completed transfer and attempts to transfer the rest of the file. This is useful on a poor connection which keeps failing.
Note that this requires a commonly implemented, but non-standard, version of the FTP protocol, so is not guaranteed to work on all servers.
This retrieves files from the remote server with arguments behaving similarly to the cp command.
In the first form, copy remote-file from the server to the local file local-file.
In the second form, copy all the remote files rfile1 ... into the local directory ldir retaining the same basenames. This assumes UNIX directory semantics.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Send all the file1 ... given separately to the remote server. If a filename contains a ‘/’, the full filename is used locally to find the file, but only the basename is used for the remote file name.
With the option -r, if any of the files are directories they are sent recursively with all their subdirectories, including files beginning with ‘.’. This requires that the remote machine understand UNIX file semantics, since ‘/’ is used as a directory separator.
As zfput, but only send files which are newer than their remote equivalents, or if the remote file does not exist. The logic is the same as for zfuget, but reversed between local and remote files.
As zfput, but if any remote file already exists and is shorter than the local equivalent, assume it is the result of an incomplete transfer and send the rest of the file to append to the existing part. As the FTP append command is part of the standard set, this is in principle more likely to work than zfcget.
This sends files to the remote server with arguments behaving similarly to the cp command.
With two arguments, copy local-file to the server as remote-file.
With more than two arguments, copy all the local files lfile1 ... into the existing remote directory rdir retaining the same basenames. This assumes UNIX directory semantics.
A problem arises if you attempt to use zfpcp lfile1 rdir, i.e. the second form of copying but with two arguments, as the command has no simple way of knowing if rdir corresponds to a directory or a filename. It attempts to resolve this in various ways. First, if the rdir argument is ‘.’ or ‘..’ or ends in a slash, it is assumed to be a directory. Secondly, if the operation of copying to a remote file in the first form failed, and the remote server sends back the expected failure code 553 and a reply including the string ‘Is a directory’, then zfpcp will retry using the second form.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Close the connection.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Allows you to manage multiple FTP sessions at once. By default, connections take place in a session called ‘default’; by giving the command ‘zfsession sessname’ you can change to a new or existing session with a name of your choice. The new session remembers its own connection, as well as associated shell parameters, and also the host/user parameters set by zfparams. Hence you can have different sessions set up to connect to different hosts, each remembering the appropriate host, user and password.
With no arguments, zfsession prints the name of the current session; with the option -l it lists all sessions which currently exist, and with the option -v it gives a verbose list showing the host and directory for each session, where the current session is marked with an asterisk. With -o, it will switch to the most recent previous session.
With -d, the given session (or else the current one) is removed; everything to do with it is completely forgotten. If it was the only session, a new session called ‘default’ is created and made current. It is safest not to delete sessions while background commands using zftp are active.
Transfer files between two sessions; no local copy is made. The file is read from the session sess1 as file1 and written to session sess2 as file file2; file1 and file2 may be relative to the current directories of the session. Either sess1 or sess2 may be omitted (though the colon should be retained if there is a possibility of a colon appearing in the file name) and defaults to the current session; file2 may be omitted or may end with a slash, in which case the basename of file1 will be added. The sessions sess1 and sess2 must be distinct.
The operation is performed using pipes, so it is required that the connections still be valid in a subshell, which is not the case under versions of some operating systems, presumably due to a system bug.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The two functions zfmark and zfgoto allow you to ‘bookmark’ the present location (host, user and directory) of the current FTP connection for later use. The file to be used for storing and retrieving bookmarks is given by the parameter $ZFTP_BMFILE; if not set when one of the two functions is called, it will be set to the file .zfbkmarks in the directory where your zsh startup files live (usually ~).
If given an argument, mark the current host, user and directory under the name bookmark for later use by zfgoto. If there is no connection open, use the values for the last connection immediately before it was closed; it is an error if there was none. Any existing bookmark under the same name will be silently replaced.
If not given an argument, list the existing bookmarks and the points to which they refer in the form user@host:directory; this is the format in which they are stored, and the file may be edited directly.
Return to the location given by bookmark, as previously set by zfmark. If the location has user ‘ftp’ or ‘anonymous’, open the connection with zfanon, so that no password is required. If the user and host parameters match those stored for the current session, if any, those will be used, and again no password is required. Otherwise a password will be prompted for.
With the option -n, the bookmark is taken to be a nickname stored by the ncftp program in its bookmark file, which is assumed to be ~/.ncftp/bookmarks. The function works identically in other ways. Note that there is no mechanism for adding or modifying ncftp bookmarks from the zftp functions.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Mostly, these functions will not be called directly (apart from zfinit), but are described here for completeness. You may wish to alter zftp_chpwd and zftp_progress, in particular.
As described above, this is used to initialize the zftp function system. The -n option should be used if the zftp command is already built into the shell.
This function is called to implement automatic reopening behaviour, as described in more detail below. The options must appear in the first argument; -n prevents the command from changing to the old directory, while -d prevents it from setting the variable do_close, which it otherwise does as a flag for automatically closing the connection after a transfer. The host and directory for the last session are stored in the variable $zflastsession, but the internal host/user/password parameters must also be correctly set.
This performs matching for completion of remote directory names. If the remote server is UNIX, it will attempt to persuade the server to list the remote directory with subdirectories marked, which usually works but is not guaranteed. On other hosts it simply calls zfget_match and hence completes all files, not just directories. On some systems, directories may not even look like filenames.
This performs matching for completion of remote filenames. It caches files for the current directory (only) in the shell parameter $zftp_fcache. It is in the form to be called by the -K option of compctl, but also works when called from a widget-style completion function with prefix and suffix set appropriately.
Perform remote globbing, as describes in more detail below. varname is the name of a variable containing the pattern to be expanded; if there were any matches, the same variable will be set to the expanded set of filenames on return.
Set the local file lfile to have the same modification time as the remote file rfile, or the explicit time time in FTP format CCYYMMDDhhmmSS for the GMT timezone. This uses the shell’s zsh/datetime module to perform the conversion from GMT to local time.
This function is called every time a connection is opened, or closed, or the remote directory changes. This version alters the title bar of an xterm-compatible or sun-cmd terminal emulator to reflect the local and remote hostnames and current directories. It works best when combined with the function chpwd. In particular, a function of the form
chpwd() { if [[ -n $ZFTP_USER ]]; then zftp_chpwd else # usual chpwd e.g put host:directory in title bar fi }
fits in well.
This function shows the status of the transfer. It will not write anything unless the output is going to a terminal; however, if you transfer files in the background, you should turn off progress reports by hand using ‘zstyle ’:zftp:*’ progress none’. Note also that if you alter it, any output must be to standard error, as standard output may be a file being received. The form of the progress meter, or whether it is used at all, can be configured without altering the function, as described in the next section.
This is used to implement caching of files in the current directory for each session separately. It is used by zfget_match and zfrglob.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Various styles are available using the standard shell style mechanism, described in The zsh/zutil Module. Briefly, the command ‘zstyle ’:zftp:*’ style value ...’. defines the style to have value value; more than one value may be given, although that is not useful in the cases described here. These values will then be used throughout the zftp function system. For more precise control, the first argument, which gives a context in which the style applies, can be modified to include a particular function, as for example ‘:zftp:zfget’: the style will then have the given value only in the zfget function. Values for the same style in different contexts may be set; the most specific function will be used, where strings are held to be more specific than patterns, and longer patterns and shorter patterns. Note that only the top level function name, as called by the user, is used; calling of lower level functions is transparent to the user. Hence modifications to the title bar in zftp_chpwd use the contexts :zftp:zfopen, :zftp:zfcd, etc., depending where it was called from. The following styles are understood:
Controls the way that zftp_progress reports on the progress of a transfer. If empty, unset, or ‘none’, no progress report is made; if ‘bar’ a growing bar of inverse video is shown; if ‘percent’ (or any other string, though this may change in future), the percentage of the file transferred is shown. The bar meter requires that the width of the terminal be available via the $COLUMNS parameter (normally this is set automatically). If the size of the file being transferred is not available, bar and percent meters will simply show the number of bytes transferred so far.
When zfinit is run, if this style is not defined for the context :zftp:*, it will be set to ‘bar’.
Specifies the minimum time interval between updates of the progress meter in seconds. No update is made unless new data has been received, so the actual time interval is limited only by $ZFTP_TIMEOUT.
As described for progress, zfinit will force this to default to 1.
If set to ‘1’, ‘yes’ or ‘true’, filename generation (globbing) is performed on the remote machine instead of by zsh itself; see below.
If set to ‘1’, ‘yes’ or ‘true’, zftp_chpwd will put the remote host and remote directory into the titlebar of terminal emulators such as xterm or sun-cmd that allow this.
As described for progress, zfinit will force this to default to 1.
If set to ‘1’ ‘yes’ or ‘true’, zftp_chpwd will call the function chpwd when a connection is closed. This is useful if the remote host details were put into the terminal title bar by zftp_chpwd and your usual chpwd also modifies the title bar.
When zfinit is run, it will determine whether chpwd exists and if so it will set the default value for the style to 1 if none exists already.
Note that there is also an associative array zfconfig which contains values used by the function system. This should not be modified or overwritten.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The commands for retrieving files usually perform filename generation (globbing) on their arguments; this can be turned off by passing the option -G to each of the commands. Normally this operates by retrieving a complete list of files for the directory in question, then matching these locally against the pattern supplied. This has the advantage that the full range of zsh patterns (respecting the setting of the option EXTENDED_GLOB) can be used. However, it means that the directory part of a filename will not be expanded and must be given exactly. If the remote server does not support the UNIX directory semantics, directory handling is problematic and it is recommended that globbing only be used within the current directory. The list of files in the current directory, if retrieved, will be cached, so that subsequent globs in the same directory without an intervening zfcd are much faster.
If the remote-glob style (see above) is set, globbing is instead performed on the remote host: the server is asked for a list of matching files. This is highly dependent on how the server is implemented, though typically UNIX servers will provide support for basic glob patterns. This may in some cases be faster, as it avoids retrieving the entire list of directory contents.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
As described for the zfopen command, a subsequent zfopen with no parameters will reopen the connection to the last host (this includes connections made with the zfanon command). Opened in this fashion, the connection starts in the default remote directory and will remain open until explicitly closed.
Automatic re-opening is also available. If a connection is not currently open and a command requiring a connection is given, the last connection is implicitly reopened. In this case the directory which was current when the connection was closed again becomes the current directory (unless, of course, the command given changes it). Automatic reopening will also take place if the connection was close by the remote server for whatever reason (e.g. a timeout). It is not available if the -1 option to zfopen or zfanon was used.
Furthermore, if the command issued is a file transfer, the connection will be closed after the transfer is finished, hence providing a one-shot mode for transfers. This does not apply to directory changing or listing commands; for example a zfdir may reopen a connection but will leave it open. Also, automatic closure will only ever happen in the same command as automatic opening, i.e a zfdir directly followed by a zfget will never close the connection automatically.
Information about the previous connection is given by the zfstat function. So, for example, if that reports:
Session: default Not connected. Last session: ftp.bar.com:/pub/textfiles
then the command zfget file.txt will attempt to reopen a connection to ftp.bar.com, retrieve the file /pub/textfiles/file.txt, and immediately close the connection again. On the other hand, zfcd .. will open the connection in the directory /pub and leave it open.
Note that all the above is local to each session; if you return to a previous session, the connection for that session is the one which will be reopened.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Completion of local and remote files, directories, sessions and bookmarks is supported. The older, compctl-style completion is defined when zfinit is called; support for the new widget-based completion system is provided in the function Completion/Zsh/Command/_zftp, which should be installed with the other functions of the completion system and hence should automatically be available.
| [ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on April 26, 2019 using texi2html 5.0.
Zsh version 5.7.1, released on February 3, 2019.


| Be TaskManager Documentation |
The column list view was programmed by Brian Tietz.
Splitter coded by Makhno.
Icon design by A. Sanders.
French translation by Claude Josi with Jean Schwerer, Didier Bertrand and Alain Laporte "Doc" on behalf of MicroBe B.U.G.'s Translation Program.
Spanish translation by Double S.
Japanese translation by Besom.
Italian translation by Mattia Tristo.
Special thanks to Christopher Kohlert for his superb blur code.
Additionally I like to thank everyone who sent me feedback and encuragement.


Docker and Virtualization at first one might say they are very similar however they have some major differences. One major difference is in the basic architecture of the two, for instance containers are hosted on a single physical server and are suitable for running multiple applications over an operating system (OS) kernel. The containers share operating system’s resources such as libraries and reduces the need to reproduce redundant libraries and allows a server to run multiple workloads without having a separate operating system for each load. This helps containers be very lightweight as they do not need to hold redundant libraries that the host OS already has.
Virtual machines (VMs) on the other hand have a host OS and an individual guest OS inside each VM. The guest OS can be completely different from the host OS, for instance a Windows 10 computer can have a running virtualized instance of Ubuntu which has its own libraries and can operate independently and isolated from the host OS. Since the guest OS is isolated, it does not share libraries with the host OS which greatly increase its size and resource consumption.
Another difference containers have that distinguishes them from VMs is that they have access to kernel subsystems. While containers have access to kernel subsystems, they should not have root access. The reason for this is that if they had root access and were compromised, the entire host OS they are running on would be compromised as well which is a huge security risk. VMs on the other hand are their own instances and can provide root access to their applications. Since the VMs are isolated, if they were compromised the root access is limited to the single instance and not the whole system which greatly increases security.
The next major difference between the two is portability. Containers are self-contained packages that can run the required applications and as mentioned above they also have a lightweight architecture. This allows them to be easily ported over multiple platforms. Since applications need to be tested across multiple platforms, this makes them ideal for developmental purposes. Conversely, VMs are isolated server instances with their own OS. They are less able to be ported over multiple platforms since compatibility issues may arise.
In conclusion, containers and VMs have several distinct differences. VMs focus more on security, isolation and can substantially take up more system resources. While containers are lightweight, resource usage varies in relation to load sizes and use less resources than VMs. It may seem like containers are superior to VMs however, the two in actuality excel in their own distinct usages. Containers shine for development purposes while VMs ensure full isolation, security and management of a variety of operating systems. All in all, both concepts have their pros and cons but are very useful and could actually be used together.


How (and why) to become a tech policy activist
by Cory DoctorowCaroline McCarthy is a journalist and ex-googler who now works as an ad-tech exec for a startup that Fox bought and they transfered to Disney when the two companies merged; in this great, impassioned Tedx talk, she lays out the case for being a "tech policy activist" and explains how the field of tech policy, though neglected by politicians and pollsters, is vital to many aspects of our daily lives, and how it fails to decompose neatly on left-right lines and nevertheless demands our close attention lest it be formulated in ways that disappoint or even harm us. It's a great talk, akin in some ways to Schneier's plea for "public interest technologists."


Notebooks
Story: Sorcerers are like lions
Sorcerers are like lions
Title
Sorcerers are like lions
Collection
Summary
The sorcerers see a handsome person and cause him to be ill. The dogs cannot sleep for barking at the sorcerers, and the sick man dies, although he has been doctored. (L VIII.-15. 7298-7303). When a good-looking or 'handsome' person falls ill and dies, the !giten (sorcerers) seize that person. Every time he seems to get better they 'shoot' (bewitch) him again, making him ill, and he never recovers. Their arrows kill people even when they are being 'snored'.
Comments
1) |han≠kass'o heard this story from his mother (|xabbi-an), 2) p.7298v: a place called Jagdt drift is near ||kabbo's place, 3) p.7301v: 'snoring' someone who is really sick, 4) p.7302v: sorcerers shoot (and appear to eat) handsome people, 5) See also Sorcerers shoot with invisible arrows, causing illness and What sorcerers eat and When a good-looking person is ill, 6) This story is found in Book VIII-15
Contributors
|han≠kass'o (Klein Jantje) (VIII)
Date
August 1878
Categories
Custom and daily life, Healing and ailing
Keywords
good-looking people (why they fall ill) , good-looking people (are 'seized' by sorcerers) , good-looking people (die even if doctored) , good-looking people (and sorcerers who are like lions) , handsome people ('good-looking') , handsome people (why they fall ill) , handsome people (are 'seized' by sorcerers) , handsome people (die even if doctored) , handsome people (and sorcerers who are like lions) , illness (caused when sorcerers seize 'handsome' people) , illness (caused by sorcerers who are like lions) , sorcerers (!giten) , sorcerers ('shoot' people while they are being 'snored') , sorcerers (make people ill) , sorcerers (cause sickness) , sorcerers (make handsome people ill) , sorcerers ('seize' people who are handsome) , sorcerers ('eat' handsome people) , sorcerers (their doings) , sorcerers (resemble lions) , sorcerers (shoot with invisible arrows) , sorcerers (their arrows cause illness and kill people) , sorcerers (shoot people while they are being snored) , sorcerers ('eat' people) , healing ('snoring' out of invisible arrows) , healing (of 'good–looking' people) , healing (of illness caused by sorcerers who are like lions) , snoring (healing) , snoring (of 'good–looking' people) , snoring (taking things out) , snoring (and the 'springbok's thing') , snoring (sorcerers kill people while they are being 'snored') , snoring (out the sorcerer's arrow wounds) , snoring (causes a person's heart to 'fall') , snoring (of illness caused by sorcerers who are like lions) , death (sorcerers kill with invisible arrows) , death (of people shot with sorcerer's arrows) , death (while 'snoring') , death (when the heart 'falls' during 'snoring) , death (of people 'eaten' by sorcerers, who are like lions) , death (of 'handsome' or 'good–looking' people) , arrow (sorcerer's) , arrow (invisible) , arrow (used to shoot 'good–looking' people) , arrow (that causes illness and death) , arrow (that bewitches) , arrow (the 'snoring' out of an) , arrow (of the sorcerer, who is like a lion) , lions (sorcerers are like) , name (|xam, for sorcerers is !giten) , name (sorcerers are like lions)
Story Pages
7298-7303


View ${payment_method.id}
ID
${payment_method.id}
Customer
${payment_method.id}
Account
${payment_method.id}
Brand
${payment_method.card.brand}


Collection
s and Map
s.See: Description
| Interface | Description |
|---|---|
| BoundedQueue<E> |
A capacity restricted
Queue . |
| SortedCollection<E> |
A
Collection which maintains its elements in sorted order. |
| Sortedlist<E> |
A
SortedCollection which may contain duplicate elements and allows
users to access or remove elements by their integer index. |
| Class | Description |
|---|---|
| ForwardingPeekingIterator<E> |
A
PeekingIterator which forwards all its method calls to another
PeekingIterator . |
| MoreIterators |
Static utility methods which operate on or return
Iterator s. |
| MoreLists |
Static utility methods which operate on or return
List s. |
| MoreMaps |
Static utility methods which operate on or return
Map s. |
| MoreQueues |
Static utility methods which operate on or return
Queue s. |
| MoreSets |
Static utility methods which operate on or return
Set s. |
| RankList<E> |
A
List optimized for efficient random access insertion
and removal operations. |
| Skiplist<E> |
A
Sortedlist implementation based on a modified skip list. |
| Skiplist.Builder<B> |
A builder for the creation of
Skiplist instances. |
| SkiplistSet<E> |
Note: This class should only be used for testing.
|
| Sortedlists |
Static utility methods which operate on or return
Sortedlist s. |
| Treelist<E> |
A
Sortedlist implementation, based on a modified Red-Black Tree. |
| Treelist.Builder<B> |
A builder for the creation of
Treelist instances. |
| TreeQueue<E> |
An optionally bounded priority
Queue based on a modified Red-Black Tree. |
| TreeQueue.Builder<B> |
A builder for the creation of
TreeQueue instances. |
| TreeSet<E> |
Note: This class should only be used for testing.
|
| UnmodifiableListIterator<E> | |
| UnmodifiablePeekingIterator<E> |
A
PeekingIterator that does not support remove() . |
Collection
s and Map
s.


post office
Compose telegram
Close post office
X
Sender:
Recipient:
Date:
X
Sender:
Recipient:
Date:


PDF text checker
Drag and drop a PDF or enter the URL to a publicly accessible PDF and click "Check PDF" to check whether it has selectable text.
PDFs without selectable text will need to be processed with an OCR tool before they can be used with Hypothesis.


@* * Copyright 2010-2017 Artima, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *@ @plusPage("ScalaTest + Play") {
The ScalaTest + Play integration library makes it fun and easy to test Play applications with ScalaTest. For an overview, see the documentation on the Play Framework website:
To see which versions of of ScalaTest + Play match up with which versions of ScalaTest and Play, look at the Releases section on the README of the github page for ScalaTest + Play.


My Concert History
I am an avid fan of all things guitar, and also of many styles of music in general. Over the years I have been to many great concerts. Some of them in giant amphitheaters/arenas and others in smaller venues. Whether the artist had amazing virtuosity, or just some unique sound that no one else comes close to, these shows all left me wanting more. Here are some of the great artists I have seen in my life.
The Blues Gods
BB King and Buddy Guy influenced almost every guitar player that came after them. BB died last year at almost 90 years old, and the music world was quick to voice their appreciation for his contributions to the history of guitar playing and music in general. Buddy Guy just celebrated his 80th birthday and still has more energy than most people 50 years his junior. He is the last living Mississippi blues legend, and he is still one of the best guitar players around. He was kind of like Jimi Hendrix, 10 years before Hendrix. I am privileged to have seen both of them 3 times.
60's Legends
Eric Clapton, Jeff Beck, and Carlos Santana all grew up idolizing BB King and Buddy Guy. They all got to play with Jimi Hendrix. Jimi Hendrix considered Eric Clapton his favorite guitarist. Eddie Van Halen said Clapton was his biggest influence. The Gibson Les Paul guitar was discontinued and out of production until Clapton started playing one in the mid-sixties. It has since become one of the most iconic guitars of the last fifty years. The Eric Clapton concert I attended in 2001 was the best show I ever saw. His playing was fluid and wonderful on every song. His whole band was made up of seasoned masters and they were on fire the whole night.
Carlos Santana became huge after blowing away the crowd at Woodstock 69'. Santana's first three albums went number one and he has continued to be a groundbreaking player ever since. Everything about his playing is completely unique to him. He sounds like nobody else. His band is bigger than most rock bands, has a lot of percussion, and produces a groove like no other band I have ever seen. I have never seen more people who obviously aren't dancers getting down like they have no control over themselves than I saw at that Santana show.
Jeff Beck is probably the most unique guitar player alive. He uses the volume knob, tone knobs, and whammy bar on his guitar all at once to make it sound like a host of other instruments. He plays instrumentals that are everything from the hardest rock to classical, jazz, blues, fusion, rockabilly, funk, r&b, electronic, modern and any other style you can name. I saw him play shortly after BB King died, and he played a version of "The Thrill is Gone" that only he could have played as tribute to his idol. Watching him do his thing was definitely among the most impressive displays of talent I have ever seen.
Acoustic Shows
Dave Matthews became hugely famous during my formative years. For a few years in the 90's, his music was all over TV and radio. I saw The Dave Matthews Band in an outdoor amphitheatre while I was in college. The original lineup of his band was still intact, and they were phenomenal. Dave is not a virtuosic player who can dazzle you with technical prowess, but he is a very good rhythmic/melodic player with his own chord fingerings that make his playing unique. I was pleasantly surprised at how good him and his band were.
Tim Reynolds is best known for his performances with Dave Matthews. He is an absolute master of the instrument. He can fingerpick like a flamenco player, or play with a pick with great speed and precision. His fingers are incredibly strong and he bends the strings like they are as flimsy as rubberbands. I saw him play alone in a theater with a looper. A looper is a machine that records a short bit of music, and then plays it over and over again. It allows the player to record multiple lines of music and layer them together to sound like many players are playing at the same time. I had no idea what to expect seeing him alone without Dave Matthews. I was in awe of his abilities and the great music he produced that night.
Leo Kottke is one of the great legends in the history of the guitar. He has the unique ability to play two separate musical lines at the same time on a guitar. This is much harder to do on a guitar as opposed to a piano, because you are only pushing the notes down with one hand. In addition to this ability, he also has an encyclopedic knowledge of chords and uses different string tunings on almost every song. He can play with a slide as good as anyone, and also incorporates a lot of string bending into his unique musical phrasing. I saw Leo in a small club venue, and I couldn't take my eyes off of his hands doing their thing that night.
Local Favorites
The Urge are probably the most popular band from St. Louis. I have seen the Urge 7 or 8 times, and every time the local crowd is just as pumped to see them as they were in the 90's when they initially became famous. Their album "Receiving the Gift of Flavor" was one of those albums that is great from the first track to the last. They usually play almost every song from that album, and the crowd sings every word.
Lately I have gotten to really like a local "Grateful Dead" cover band called "The 710 Band". They are middle aged guys who have been playing together for over 30 years, and they play bars around town. The vocals, rhythm playing, and solos are always great. They play "Grateful Dead" songs with a more thumping, pulsating groove than most Dead bands, and I actually prefer their versions of some of the songs to the Dead's. They have a pretty regular following, and when they play "Sugaree" or "Shakedown Street", the crowd really gets into it. The also throw in some Bob Dylan and Credence Clearwater Revival songs, but play them in the same wonderful groove as the Dead songs. Do yourself a favor and check them out, even if you're not familiar with the Dead.


Profile
Friends
Addtional Information
Additional information about Denis
Student at
Sofia University
Born in Smolyan Living in Sofia Working at
None


The toursite and booking page come bundled with a default theme
you can change the theme color by picking color of your choice below
Select any color below and click Apply


Sign In
Resister
View Cart
Wishlist
Compare
0
What are you Looking for ?
x
X
Close
HOME
SHOP
PAGES
BLOG
PORTFOLIO
WOMEN
MEN
BUY THEME!
SHOPPING CART
x
Home
/
Women
X
CLOSE
COLLECTIONS
Womens
Mens
Trending
Best Seller
SHOPPING BY
CLEAR ALL
PRODUCT TYPE
COLOR
PRICE
VENDOR
Womens
(
0
)
FILLTER
Featured
Price Ascending
Price Decending
Best Seller
NO MORE PRODUCTS
×


Saving the planet one craft at a time.
Don't have access to a nearby recycling bin?
Don't want to throw away a bag from your favorite store?
But there's no need to worry... You can CRAFT CYCLE!!!... It's simpler than you think!!
Fun Fact:
Landfills are overflowing,
and landfill waste contributes to
the production of methane,
too much methane in the atmosphere
leads to the greenhouse effect,
which is linked to global warming
and the depleting of many
of our natural resources.
Just find the item(s) you want to reuse and there are easy crafts below!
WATER BOTTLES |
CANS |
CARDBOARD |
PENCIL STUBS |
MAGAZINES |
PILL BOTTLES |
TOILET PAPER |
WRAPPERS |
CHOPSTICKS |
TIRES |
MILK JUGS |
CLOTHING |


{% extends "base_bootstrap.html" %} {% block content %}
Your username and password didn't match. Please try again.


Algorithm 53
Task
Enter the sides
a, b, c
of a parallelepiped and print the diagonal (in cm):
Side a:
Side b:
Side c:
Result


|
This is how I look Like ^_^ |
Name: Marcus Hon Xu En Course: Diploma in Mechanical engineering School: MAE Year: 3 Email<EMAIL_ADDRESS>|
INTEREST
I have many interest and hobbies here are some of the main ones:
I am passionate about archery, I find in relaxing enjoyable and if I practice regularly its also gives me a good workout
I also enjoy watching Formula 1 since 2017 when I first watched the Singapore GP Live on the television


Segyio is a small LGPL licensed C library for easy interaction with
SEG-Y and Seismic Unix formatted seismic data, with language bindings for Python and Matlab. Segyio is an attempt to create an easy-to-use, embeddable, community-oriented library for seismic applications. Features are added as they are needed; suggestions and contributions of all kinds are very welcome.
importrandomguesses_made=0name=raw_input('Hello! What is your name?\n')number=random.randint(1,20)print'Well, {0}, I am thinking of a number between 1 and 20.'.format(name)whileguesses_made<6:guess=int(raw_input('Take a guess: '))guesses_made+=1ifguess<number:print'Your guess is too low.'ifguess>number:print'Your guess is too high.'ifguess==number:breakifguess==number:print'Good job, {0}! You guessed my number in {1} guesses!'.format(name,guesses_made)else:print'Nope. The number I was thinking of was {0}'.format(number)


This project uses bootstrap, HTML, and CSS. It is a sample travel site for visiting Thailand.
This project uses HTML and CSS. It is a sample site for a cupcake shop.
This project uses HTML and CSS. It is a sample site for an endangered species non-profit.
This project uses HTML and CSS. It is a sample travel site for visiting an island.


| brglm | Bias reduction in Binomial-response GLMs |
| brglm.control | Auxiliary for Controlling BRGLM Fitting |
| brglm.fit | Bias reduction in Binomial-response GLMs |
| checkModifications | Additive Modifications to the Binomial Responses and Totals for Use within 'brglm.fit' |
| confint.brglm | Computes confidence intervals of parameters for bias-reduced estimation |
| confint.profile.brglm | Computes confidence intervals of parameters for bias-reduced estimation |
| gethats | Calculates the Leverages for a GLM through a C Routine |
| glm.control1 | Auxiliary for Controlling BRGLM Fitting |
| lizards | Habitat Preferences of Lizards |
| modifications | Additive Modifications to the Binomial Responses and Totals for Use within 'brglm.fit' |
| modifiedScoreStatistic | Objectives to be profiled |
| pairs.profile.brglm | Plot methods for 'profile.brglm' objects |
| penalizedDeviance | Objectives to be profiled |
| plot.profile.brglm | Plot methods for 'profile.brglm' objects |
| print.brglm | Bias reduction in Binomial-response GLMs |
| print.profile.brglm | Calculate profiles for objects of class 'brglm'. |
| print.summary.brglm | Bias reduction in Binomial-response GLMs |
| profile.brglm | Calculate profiles for objects of class 'brglm'. |
| profileObjectives | Objectives to be profiled |
| separation.detection | Separation Identification. |
| summary.brglm | Bias reduction in Binomial-response GLMs |


Lets Us Code For You!
Cheapest Rates.. Best Service..
CiperLabs can build you an amazing web site. If you need a personal website or an official website CiperLabs can create an attractive site for you! We have different packages as for your needs. If you want more you can always make a custom request for us.
Learn MoreCiperlabs can host your website for you. If you have a website and you haven't host it yet ciperlabs can help you with that for the lowest price. You can choose how much space you needed and get our service.
Make sure of makeing your website on top of google results! You have a good website but your website is not in the top google results ? then what is the use of that website? Ciperlabs can make sure that your website on top of google results.
Do you have a website without a Domain? Then ciperlabs is here to help you. We can provide you a Domain name for the cheapest price. You can get this facility free if you uses our full packages.
* Conditions Apply


`
www.donskytech.com
One
Two
Three
×
ESP32 Robot Car Using Websockets
Speed Settings
Slow
Normal
Fast


Full name:
org.jszip.maven:jszip-maven-plugin:0.1-alpha-9:run
Description:
Attributes:
| Name | Type | Since | Description |
|---|---|---|---|
| classesDirectory | File | - | The directory containing generated classes. User property is: project.build.outputDirectory. |
| testClassesDirectory | File | - | The directory containing generated test classes. User property is: project.build.testOutputDirectory. |
| warSourceDirectory | File | - | Root directory for all html/jsp etc files Default value is: ${basedir}/src/main/webapp. |
| Name | Type | Since | Description |
|---|---|---|---|
| connectors | Connector[] | - | List of connectors to use. If none are configured then the default
is a single SelectChannelConnector at port 8080. You can override
this default port number by using the system property jetty.port on
the command line, eg: mvn -Djetty.port=9999 jszip:run. Consider
using instead the <jettyXml> element to specify external
jetty xml config file. |
| customLessScript | File | - | Directory containing the less processor. Default value is: src/build/js/less-rhino.js. |
| encoding | String | - | The character encoding scheme to be applied when reading SASS
files. Default value is: ${project.build.sourceEncoding}. |
| lessCompress | boolean | - | Compress CSS. Default value is: true. User property is: jszip.less.compress. |
| lessExcludes | List | - | A list of <exclude> elements specifying the less files (by
pattern) that should be excluded from processing. |
| lessFailOnError | boolean | - | Indicates whether the build will continue even if there are
compilation errors. Default value is: true. User property is: jszip.less.failOnError. |
| lessForceIfOlder | boolean | - | Force compilation even if the source LESS file is older than the
destination CSS file. Default value is: false. User property is: jszip.less.forceIfOlder. |
| lessIncludes | List | - | A list of <include> elements specifying the less files (by
pattern) that should be included in processing. |
| lessSkip | boolean | - | Skip compilation. Default value is: false. User property is: jszip.less.skip. |
| mappings | Mapping[] | - | The artifact path mappings for unpacking. User property is: mappings. |
| pluginDescriptor | PluginDescriptor | - | This plugin's descriptor User property is: plugin. |
| runModule | String | - | The module that the goal should apply to. Specify either
groupId:artifactId or just plain artifactId. User property is: jszip.run.module. |
| runPackages | String[] | - | List of the packaging types will be considered for executing this
goal. Normally you do not need to configure this parameter unless
you have a custom war packaging type. Defaults to war |
| sassExcludes | List | - | A list of <exclude> elements specifying the sass files (by
pattern) that should be excluded from processing. |
| sassFailOnError | boolean | - | Indicates whether the build will continue even if there are
compilation errors. Default value is: true. User property is: jszip.sass.failOnError. |
| sassForceIfOlder | boolean | - | Force compilation even if the source Sass file is older than the
destination CSS file. Default value is: false. User property is: jszip.sass.forceIfOlder. |
| sassIncludes | List | - | A list of <include> elements specifying the sass files (by
pattern) that should be included in processing. |
| sassSkip | boolean | - | Skip compilation. Default value is: false. User property is: jszip.sass.skip. |
| showErrorExtracts | boolean | - | Indicates whether to show extracts of the code where errors occur. Default value is: false. User property is: jszip.less.showErrorExtracts. |
| systemProperties | SystemProperties | - | System properties to set before execution. Note that these
properties will NOT override System properties that have been set
on the command line or by the JVM. They WILL override System
properties that have been set via systemPropertiesFile. Optional. |
| useTestScope | boolean | - | If true, the <testOutputDirectory> and the dependencies of
<scope>test<scope> will be put first on the runtime
classpath. Default value is: false. |


By João Silva for the CERN Spring Campus 2014
University of Oviedo, Gijón, Spain
{
"name": "João Silva",
"country": "Portugal",
"employer": "CERN",
"title": "Software Engineer",
"technologies": [
"Java",
"JavaScript",
"Groovy",
"Grails",
"Activiti Workflow"
],
"email"<EMAIL_ADDRESS>}
→
Netscape Navigator
The Dawn of JavaScript, how it all began. How many of you recognize this logo?
It's the logo of Netscape Navigator, one of the world's first web browsers, and the dominant one in terms of usage share in the 1990s. But, most importantly, it was the browser for which JavaScript was originally developed.Glue language
Originally, it was called Mocha, then rebranded LiveScript, to match the LiveWire server-side product of Netscape, and later, to JavaScript, mainly for marketing reasons, as Java was very popular at the time, and Netscape wanted to capitalize that popularity.
But it has very little to do with Java. In fact, it was inspired by other two languages: Scheme and Self. From Scheme, a functional language based on Lisp, it took first-class functions and closures. A first-class function is essentially the ability of a language to pass a function as an argument to another function, to return a function from a function, or to assign a function to a variable.
From Self, it took prototypes, a style of OOP in which behaviour reuse (inheritance) is performed via a process of cloning existing objects. There are no explicit classes, like in Java. With prototypes, objects inherit from existing objects, you can't get more object-oriented with this.It was originally designed as a glue language, to provide form validations and adding interactivitiy to web pages.
And to understand why, you have to think about the time when JavaScript was invented. In 1995, when use of telephone modems was widespread, a round-trip to the server was a very expensive operation. Suppose you were filling an online form, and then you click the submit button. It could take 30s to get back an answer from the server. Now imagine how annoying it would be if after waiting, you received an error from the server, telling you that you forgot to fill in the e-mail. Very annoying! So Netscape invented JavaScript, which allowed you to perform validations on the client (the browser), before the form was submitted to the server.Internet Explorer vs Netscape Navigator
standardize the syntax and semantics of a general purpose, cross-platform, vendor-neutral scripting language
Google's open source JavaScript engine
It uses a Just-in-Time compiler to compile JavaScript source code directly into machine code when it is first executed. There is no intermediate bytecode, no interpreter.
Then it has a profiler which identifies hot functions, and recompiles them with another compiler, which produces even more optimized code
It's blazingly fast
It has a module system, which allows you to encapsulate your code, and split large projects into multiple files
We have test frameworks, which allows you to easily unit test your code
Code quality tools, which help you detect errors and potential problems in your code, ans also to enforce code conventions (e.g. duplicate variable names, not inserting a semicolon at the end of each statement
Package manager, similar to Maven for Java
Task runner, similar to Ant for Java, which allows you to define lists of tasks to be executed sequentially (e.g. first you run tests, then you minify your files, then you deploy them
Monoglot programming
Server-side JavaScript
Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.
The basic thesis of node.js is that I/O needs to be done differently.
Source: Ryan Dahl's JSConf node.js presentation
var results = db.query('select * from bigtable'); // Blocking
// Process results
fs.writeFile('/var/log/', 'bla');
var response = JSON.stringify(results);
Most web applications are I/O bound, not CPU bound
Node.js was designed to exploit this imbalance
The slim dark green bars represent the time your app devotes to processing and the grey bars the time spent waiting for I/O to complete.
As you can see, the vast majority of time is spent on I/O, waiting. That's because most web applications are I/O bound, not CPU bound! Node.js was designed to exploit this imbalance because better software can multitask.
It relies on the premise that time spent waiting for I/O far outweighs the time spent executing application logic. If your application is more CPU-intensive (calculating Pi up to a trillion digits), then Node.js is not the right platform. You'll block the event loop.
var results = db.query('select * from bigtable');
// Process results
db.query('select * from bigtable', function(results) {
// Process results
});
JavaScript fits perfectly the event loop model with first-class functions and closures
var fs = require('fs');
fs.readFile('hello.txt', function(err, data) {
if (err) throw err;
console.log(data);
});
var net = require('net');
var server = net.createServer(function (socket) {
socket.write('Welcome to the echo server\r\n');
socket.pipe(socket);
});
server.listen(1337);
var http = require('http');
var server = http.createServer(function (request, response) {
response.writeHead(200, {'Content-Type': 'text/html'});
response.end('
Hello World
');
});
server.listen(1337);
console.log('Server running at http://<IP_ADDRESS>:1337/');
web application framework for node.js
Express is a minimal and flexible node.js web application framework, providing a robust set of features for building single and multi-page, and hybrid web applications.
var http = require("http");
var fs = require("fs");
http.createServer(function(req, res) {
// Homepage
if (req.url == "/") {
res.writeHead(200, { "Content-Type": "text/html" });
res.end("Welcome to the homepage!");
}
// About page
else if (req.url == "/about") {
res.writeHead(200, { "Content-Type": "text/html" });
fs.readFile(__dirname + "/about.html", function (err, data) {
res.end(data);
});
}
// 404'd!
else {
res.writeHead(404, { "Content-Type": "text/plain" });
res.end("404 error! File not found.");
}
}).listen(1337);
var express = require("express");
var app = express();
app.get("/", function(request, response) {
response.send("
Welcome to the home page!
");
});
app.get("/about", function(request, response) {
response.render("about.html");
});
app.all("*", function(request, response) {
response.send(404, "404 error! File not found.");
});
app.listen(1337);
Map different requests to specific handlers
var express = require("express");
var app = express();
app.post("/action/:id?", function(request, response) {
var id = request.params.id;
response.send(id ? "hello " + id : "hello");
});
app.get("/json", function(request, response) {
response.send({ foo: "bar" });
});
app.all("*", function(request, response) {
response.send(404, "404 error! File not found.");
});
app.listen(1337);
var express = require('express');
var bodyParser = require('body-parser');
var app = express();
app.use(bodyParser());
app.get('/', function(req, res) {
res.send('<form method="post" action="/">' +
'Name: <input type="text" name="username" />' +
'<input type="submit" />' +
'</form>');
});
app.post('/', function(req, res) {
// Always sanitize your data to prevent XSS, remember Derek's presentation!
res.send('¡Bienvenido!, ' + sanitize(req.body.username));
});
app.listen(1337);
doctype html
html(lang="en")
head
title =pageTitle
body
h1 Welcome to the #{pageTitle}!
p Jade is a cool, high-performance templating engine for Node.js.
var express = require('express');
var app = express();
app.get('/', function(req, res) {
res.render('index.jade', { pageTitle: 'CERN Spring Campus 2014' });
});
html
body
h1 Profound Quotes
block content
extends layout
block content
p The cave that you fear to enter holds the treasure you seek.
var express = require('express');
var app = express();
app.set('view engine', 'jade');
app.get('/', function(req, res) {
res.render('quotes');
});
<!DOCTYPE html>

Profound Quotes

The cave that you fear to enter holds the treasure you seek.

Middle layer between Express and the network
var express = require('express');
var app = express();
// A middleware is a function (request handler) with three arguments
var ensureAuthenticated = function(req, res, next) {
if (req.isAuthenticated()) {
var username = req.username;
req.user = User.findByUsername(username);
return next();
}
return res.redirect("/login");
};
app.use(ensureAuthenticated);
app.get('/', function(req, res) {
res.send('Welcome ' + req.user);
});
app.configure(function () {
app.set('views', __dirname + '/views');
app.use(staticProvider(__dirname + '/public');
app.use(bodyParser());
app.use(csrf());
app.use(session());
});
app.configure('development', function () {
app.use(errorHandler({
dumpExceptions: true,
showStack: true
});
app.disable('emails');
});
app.configure('production', function () {
app.use(errorHandler());
app.enable('emails');
});
open-source document database
MongoDB (from "humongous") is an open-source document database, and the leading NoSQL database.
Next Generation Databases mostly addressing some of the points: being non-relational, distributed, open-source and horizontally scalable.
Source: http://martinfowler.com/bliki/AggregateOrientedDatabase.html
Data stored as whole documents
Source: http://docs.mongodb.org/manual/core/crud-introduction/
1. Embedded Data Models
2. Normalized Data Models using References
Source: http://docs.mongodb.org/manual/core/read-operations-introduction/
db.collection.find()
SQL
Source: http://docs.mongodb.org/manual/core/write-operations-introduction/
db.collection.insert()
SQL
db.collection.update()
SQL
db.collection.remove()
SQL
db.collection.mapReduce()
Superheroic JavaScript MVW Framework
AngularJS is what HTML would have been, had it been designed for building web-apps. Declarative templates with data-binding, MVW, MVVM, MVC, dependency injection and great testability story all implemented with pure client-side JavaScript!
<!DOCTYPE html>

<title>Hola Mundo, AngularJS - CERN Spring Campus 2014</title>

Name: <input type="text" ng-model="name" />

Hola {{ name }}

Demo
Automatic synchronization of data between the model and view components
Source: http://docs.angularjs.org/guide/databinding
Formats the value of an expression for display to the user
{{ expression | filter1 | filter2 }}

Name: <input type="text" ng-model="name" />

Hello {{ name }}

Hello {{ name | uppercase }}

Hello {{ name | lowercase }}

Demo
Contains presentation logic and binds the view with the model using scopes

Message: <input type="text" ng-model="newMessage"/>
<button ng-click="add()">Add</button>

Messages

 {{ message }}

function ChatController($scope) {
$scope.messages = ["I <3 sidra", "Save the whales!"];
$scope.add = function() {
$scope.messages.push($scope.newMessage);
$scope.newMessage = "";
}
}
ContactController is nothing but a plain vanilla JavaScript function.
There is an object $scope which we pass as an argument. This object is used to bind the controller with view. It decouples the view from the controller
Initially, we set the initial state of the angular scope. We then define the add() function, which is bound to Add button using an attribute ng-click. ng-click binds the click event on the button or link or any clickable element with the function that is defined within $scope. So in this case, whenever Add button is clicked, the add() method on $scope will be called.Demo
Logical entities used to structure your application
var myModule = angular.module('myModule',[]);
myModule.controller('ChatController', function($scope) {
// Controller logic
});
Singleton objects or functions that carry out specific tasks
var chatApp = angular.module('chatApp', []);
chatApp.service('ChatService', function() {
this.getLastMessages = function() {
// Ajax call to read messages from database
return [
"I <3 sidra",
"Save the whales!"
]
}
this.saveMessage = function(message) {
// Ajax call to save message to the database
}
});
If your controller is also responsible for making ajax calls to fetch and update data, this is a violation of the SRP principle.
Logic like that (and other business logic) should instead be abstracted out into a separate service, then injected into the objects that need to use it.Components are created by the container and provided (injected) as requested
var chatApp = angular.module('chatApp', []);
chatApp.service('ChatService', function() {
// ...
});
chatApp.controller('ChatController', function($scope, ChatService) {
$scope.messages = ChatService.getLastMessages();
$scope.add = function() {
ChatService.save($scope.newMessage);
$scope.messages.push($scope.newMessage);
$scope.newMessage = "";
}
});
Extend the HTML vocabulary
<pacman></pacman>
var app = angular.module('app',[]);
app.directive('pacman', function() {
return {
restrict: 'E', // E = Element, A = Attribute, C = Comment
replace: true,
template: "

"
};
});
var blink = angular.module('blink', [])
.directive('blink', function($timeout) {
return {
restrict: 'E',
transclude: true,
scope: {},
controller: function($scope, $element) {
function showElement() {
$element.css("display", "inline");
$timeout(hideElement, 1000);
}
function hideElement() {
$element.css("display", "none");
$timeout(showElement, 1000);
}
showElement();
},
template: '',
replace: true
}
});


Welcome, this is grande.js
"Make every detail perfect and limit the number of details to perfect." - Jack Dorsey
Style your text to how you think and put the feeling into your words. Just select any text and choose how you want it to look from the menu.
- Create a bulleted list simply by typing "- " and hitting enter
- Assign the most important tasks in your day by starting the line with "1. "
- What's on your mind today?
Let your users express themselves. Take a look at the project on Github here.


Please do not use Gmail's mailbox when register. If you use Hotmail，Live and Outlook mailbox for registration, and can not receive the validate email sent by our system, please register by other mailbox.
为了获得更好的浏览效果，建议您使用IE7.0及以上版本浏览器或谷歌Chrome浏览器登陆本站点
For better browsing effects. Please use ie7.0 or above or google Chrome to surf this website.
申请指南/Application Instructions:下载/Download
申请密西根学院请点击/Apply JI-SJTU：


About Kalamazooo Beer Exchange
The Kalamazoo Beer Exchange (KBE) is a two-story multi-tap bar and grill located in the restored Globe Building downtown. While they don’t brew their own, KBE offers 28 rotating draught beers from around the world.
What makes 2014's Best Bar in Michigan such an exciting experience is that they base prices of their draught beers on real-time sales, like the stock market. When the Beer Market opening bell rings at 6pm, the real fun begins. For the rest of the night “market crashes” are imminent, during which all drafts drop to ridiculous prices.
It becomes an ever-changing happy hour and each visit differs from the last. Crazy things happen and energy flows through the room as people rush for a new glass when the market crashes (we’ve seen an aromatic IPA cost nearly as little as a Bud Light, seriously.)
The Kalamazoo Beer Exchange also offers a unique menu of reimagined traditional pub dishes. Their open kitchen design allows visitors to see the hands that passionalty prepare mouth-watering bar staples with a twist.
The Brew
With 28 beers on tap, every beer palette will be satisfied. Check out their menu to see everything that's on tap now. Some current favorites include:
- Sapient Trip Ale Dark Horse Brewing Company, Marshall, MI
- Huma Lupa Licious Short's Brewing Company, Bellaire, MI
- Enjoy By 7. 04. 14 Stone Brewing Company, Escondido, CA
- Edmund Fitzgerlad Great Lakes Brewing Company, Cleveland, OH
Location & Hours
- 211 East Water Street
Kalamazoo, MI 49007 - Phone:<PHONE_NUMBER>
- Hours
- Monday–Saturday 11am – 1am
- Grill 11am–11pm
- Beer Market opening bell rings at 6pm daily


---
title: Sunday night music - Eddie Vedder & The Heartbreakers
comments: true
tags:
- Music
blogger_orig_url: http://stickmanscorral.blogspot.com/2012/05/sunday-night-music-eddie-vedder.html
---
Eddie Vedder really does have the most awesome voice around, doesn't he? [Note: I will fight you if you disagree.]
Not that he does anything spectacular by his own standards here... But, still, it's just a sublime rendition of this Tom Petty favourite.
And with that, back to my DSGE models...