Tutorial by Examples: er

For this example to work you'll need a JDBC driver compatible to the system the database is running on. An opensource one that allows you to connect to DB2 databases on an IBM System i can be found here: JT400 Even though this example is DB2 specific, it works for almost every other system if you e...
Some times you need to debug python code which is executed by another process and and in this cases rpdb comes in handy. rpdb is a wrapper around pdb that re-routes stdin and stdout to a socket handler. By default it opens the debugger on port 4444 Usage: # In the Python file you want to debu...
--- person_table: - &person001 fname: homer lname: simpson role: dad age: 33 - &person002 fname: marge lname: simpson role: mom age: 34 - &person003 fname: pe...
--- person_table: - &person001 fname: homer lname: simpson role: dad age: 33 - &person002 fname: marge lname: simpson role: mom age: 34 - &person003 fname: pe...
--- person_table: - &person001 fname: homer lname: simpson role: dad age: 33 - &person002 fname: marge lname: simpson role: mom age: 34 - &person003 fname: pe...
@Provider public class IllegalArgumentExceptionMapper implements ExceptionMapper<IllegalArgumentException> { @Override public Response toResponse(IllegalArgumentException exception) { return Response.serverError().entity("Invalid input: " + exception.getMessage(...
archive: create an unversioned archive of a repository revision bundle: create a changegroup file clone: make a copy of an existing repository export: dump the header and diffs for one or more changesets graft: copy changes from other branches onto the current branch incoming: show new change...
bookmarks, bookmark: create a new bookmark or list existing bookmarks branch: set or show the current branch name branches: list repository named branches config, showconfig, debugconfig: show combined config settings from all hgrc files files: list tracked files help: show help for a given t...
FNR contains the number of the input file row being processed. In this example you will see awk starting on 1 again when starting to process the second file. Example with one file $ cat file1 AAAA BBBB CCCC $ awk '{ print FNR }' file1 1 2 3 Example with two files $ cat file1 AAAA BBBB...
If you try to submit tasks to a shutdown Executor or the queue is saturated (only possible with bounded ones) and maximum number of Threads has been reached, RejectedExecutionHandler.rejectedExecution(Runnable, ThreadPoolExecutor) will be called. The default behavior is that you'll get a Rej...
When you have a Stream you need to map but want to preserve the initial values as well, you can map the Stream to a Map.Entry<K,V> using a utility method like the following: public static <K, V> Function<K, Map.Entry<K, V>> entryMapper(Function<K, V> mapper){ retu...
Functions which return a character vector Base R has two functions for invoking a system command. Both require an additional parameter to capture the output of the system command. system("top -a -b -n 1", intern = TRUE) system2("top", "-a -b -n 1", stdout = TRUE) ...
var MY_AJAX_ACTION_URL = "path/to/controller.php"; var table = $('#user_list_table').DataTable({ "autoWidth": true, "paging": true, "searching": true, "ordering": true, "language": { ...
You can use browser.debugger() to stop the execution. You can insert it any place in your code and it will stop the execution after that line until you don't command to continue. Note: To run the tests in debugger mode you have to issue command like this: `protractor debug <configuration.fi...
C++14 Parameter pack unpacking traditionally requires writing a helper function for each time you want to do it. In this toy example: template<std::size_t...Is> void print_indexes( std::index_sequence<Is...> ) { using discard=int[]; (void)discard{0,((void)( std::cout <&...
<svg width="400px" height="200px"> <text x="1em, 2em, 3em, 4em, 5em" y="3em, 4em, 5em"> Individually Spaced Text </text> </svg> The Text element supports individual placement of letters by accepting an array of values for...
Interfaces and implementations (types that implement an interface) are "detached". So it is a rightful question how to check at compile-time if a type implements an interface. One way to ask the compiler to check that the type T implements the interface I is by attempting an assignment us...
A simple worker pool implementation: package main import ( "fmt" "sync" ) type job struct { // some fields for your job type } type result struct { // some fields for your result type } func worker(jobs <-chan job, results chan<- result) ...
To convert String to and from Data / NSData we need to encode this string with a specific encoding. The most famous one is UTF-8 which is an 8-bit representation of Unicode characters, suitable for transmission or storage by ASCII-based systems. Here is a list of all available String Encodings Stri...
Returns a string value in reversed order. Parameters: string expression. Any string or binary data that can be implicitly converted to varchar. Select REVERSE('Sql Server') -- Returns 'revreS lqS'

Page 179 of 417