Returns the languages for the current request. The languages are determined from the Accept-Language
header and sorted on quality.
When 2 or more entries have the same quality then the order used to return the best match is based on the lowest index on the original list. For example if a user has en-US and en-GB with same quality and this order the best match will be en-US because it was declared as first entry by the client.
The best matched language for the request
Returns the locales for the current request. The locales are determined from the accept-languages
header and
sorted on quality.
When 2 or more entries have the same quality then the order used to return the best match is based on the lowest index on the original list. For example if a user has en-US and en-GB with same quality and this order the best match will be en-US because it was declared as first entry by the client.
the best matched locale for the request
Provides a handler that will be called after the last part of the body is written to the wire. The handler is called asynchronously of when the response has been received by the client. This provides a hook allowing you to do more operations once the request has been sent over the wire. Do not use this for resource cleanup as this handler might never get called (e.g. if the connection is reset).
the handler
the id of the handler. This can be used if you later want to remove the handler.
Add a cookie. This will be sent back to the client in the response.
the cookie
a reference to this, so the API can be used fluently
Add a handler that will be called just before headers are written to the response. This gives you a hook where you can write any extra headers before the response has been written when it will be too late.
the handler
the id of the handler. This can be used if you later want to remove the handler.
Clear the current user object in the context. This usually is used for implementing a log out feature, since the current user is unbounded from the routing context.
the number of cookies.
a set of all the cookies.
the current route this context is being routed through.
all the context data as a map
Fail the context with the specified status code.
This will cause the router to route the context to any matching failure handlers for the request. If no failure handlers match It will trigger the error handler matching the status code. You can define such error handler with {@link Router#errorHandler(int, Handler)}. If no error handler is not defined, It will send a default failure response with provided status code.
the HTTP status code
Fail the context with the specified throwable and 500 status code.
This will cause the router to route the context to any matching failure handlers for the request. If no failure handlers match It will trigger the error handler matching the status code. You can define such error handler with {@link Router#errorHandler(int, Handler)}. If no error handler is not defined, It will send a default failure response with 500 status code.
a throwable representing the failure
Fail the context with the specified throwable and the specified the status code.
This will cause the router to route the context to any matching failure handlers for the request. If no failure handlers match It will trigger the error handler matching the status code. You can define such error handler with {@link Router#errorHandler(int, Handler)}. If no error handler is not defined, It will send a default failure response with provided status code.
the HTTP status code
a throwable representing the failure
true if the context is being routed to failure handlers.
If the context is being routed to failure handlers after a failure has been triggered by calling {@link #fail(Throwable)} then this will return that throwable. It can be used by failure handlers to render a response, e.g. create a failure response page.
the throwable used when signalling failure
a set of fileuploads (if any) for the request. The context must have first been routed to a {@link io.vertx.ext.web.handler.BodyHandler} for this to work.
Get some data from the context. The data is available in any handlers that receive the context.
the type of the data
the key for the data
the data
If the route specifies produces matches, e.g. produces text/html
and text/plain
, and the accept
header
matches one or more of these then this returns the most acceptable match.
the most acceptable content type.
Get the entire HTTP request body as a {@link Buffer}. The context must have first been routed to a {@link io.vertx.ext.web.handler.BodyHandler} for this to be populated.
Get the entire HTTP request body as a {@link JsonObject}. The context must have first been routed to a
{@link io.vertx.ext.web.handler.BodyHandler} for this to be populated.
When the body is {@code null} or the {@code "null"} JSON literal then {@code null} is returned.
Get the entire HTTP request body as a {@link JsonArray}. The context must have first been routed to a
{@link io.vertx.ext.web.handler.BodyHandler} for this to be populated.
When the body is {@code null} or the {@code "null"} JSON literal then {@code null} is returned.
the entire HTTP request body as a string, assuming UTF-8 encoding. The context must have first been routed to a {@link io.vertx.ext.web.handler.BodyHandler} for this to be populated.
Get the entire HTTP request body as a string, assuming the specified encoding. The context must have first been routed to a {@link io.vertx.ext.web.handler.BodyHandler} for this to be populated.
the encoding, e.g. "UTF-16"
the body
Get the cookie with the specified name.
the cookie name
the cookie
the mount point for this router. It will be null for a top level router. For a sub-router it will be the path at which the subrouter was mounted.
Tell the router to route this context to the next matching route (if any). This method, if called, does not need to be called during the execution of the handler, it can be called some arbitrary time later, if required.
If next is not called for a handler then the handler should make sure it ends the response or no response will be sent.
Return the normalised path for the request.
The normalised path is where the URI path has been decoded, i.e. any unicode or other illegal URL characters that
were encoded in the original URL with %
will be returned to their original form. E.g. %20
will revert to a space.
Also +
reverts to a space in a query.
The normalised path will also not contain any ..
character sequences to prevent resources being accessed outside
of the permitted area.
It's recommended to always use the normalised path as opposed to {@link HttpServerRequest#path()} if accessing server resources requested by a client.
the normalised path
The headers:
A container with the parsed headers.
Gets the value of a single path parameter
the name of parameter as defined in path declaration
the actual value of the parameter or null if it doesn't exist
Returns a map of named parameters as defined in path declaration with their actual values
the map of named parameters
Helper to return the user preferred language. It is the same action as returning the first element of the acceptable languages.
the users preferred locale.
Helper to return the user preferred locale. It is the same action as returning the first element of the acceptable locales.
the users preferred locale.
Put some arbitrary data in the context. This will be available in any handlers that receive the context.
the key for the data
the data
a reference to this, so the API can be used fluently
Gets the value of a single query parameter. For more info {@link RoutingContext#queryParams()}
The name of query parameter
The list of all parameters matching the parameter name. It returns an empty list if no query parameter with {@code name} was found
Returns a map of all query parameters inside the query string
The query parameters are lazily decoded: the decoding happens on the first time this method is called. If the query string is invalid
it fails the context
the multimap of query parameters
Remove some data from the context. The data is available in any handlers that receive the context.
the type of the data
the key for the data
the previous data associated with the key
Remove a body end handler
the id as returned from {@link io.vertx.ext.web.RoutingContext#addBodyEndHandler(Handler)}.
true if the handler existed and was removed, false otherwise
Expire a cookie, notifying a User Agent to remove it from its cookie jar.
the name of the cookie
the cookie, if it existed, or null
Remove a cookie from the cookie set. If invalidate is true then it will expire a cookie, notifying a User Agent to remove it from its cookie jar.
the name of the cookie
the cookie, if it existed, or null
Remove a headers end handler
the id as returned from {@link io.vertx.ext.web.RoutingContext#addHeadersEndHandler(Handler)}.
true if the handler existed and was removed, false otherwise
the HTTP request object
Restarts the current router with a new path and reusing the original method. All path parameters are then parsed and available on the params list.
the new http path.
Restarts the current router with a new method and path. All path parameters are then parsed and available on the params list.
the new http request
the new http path.
the HTTP response object
Get the session. The context must have first been routed to a {@link io.vertx.ext.web.handler.SessionHandler} for this to be populated. Sessions live for a browser session, and are maintained by session cookies.
the session.
Set the acceptable content type. Used by
the content type
Set the body. Used by the {@link io.vertx.ext.web.handler.BodyHandler}. You will not normally call this method.
the body
Set the session. Used by the {@link io.vertx.ext.web.handler.SessionHandler}. You will not normally call this method.
the session
Set the user. Usually used by auth handlers to inject a User. You will not normally call this method.
the user
If the context is being routed to failure handlers after a failure has been triggered by calling {@link #fail(int)} then this will return that status code. It can be used by failure handlers to render a response, e.g. create a failure response page.
When the status code has not been set yet (it is undefined) its value will be -1.
the status code used when signalling failure
Get the authenticated user (if any). This will usually be injected by an auth handler if authentication if successful.
the user, or null if the current user is not authenticated.
the Vert.x instance associated to the initiating Router for this context
Generated using TypeDoc
Represents the context for the handling of a request in Vert.x-Web.
A new instance is created for each HTTP request that is received in the {@link Router#handle(HttpServerRequest)} of the router.
The same instance is passed to any matching request or failure handlers during the routing of the request or failure.
The context provides access to the {@link HttpServerRequest} and {@link HttpServerResponse} and allows you to maintain arbitrary data that lives for the lifetime of the context. Contexts are discarded once they have been routed to the handler for the request.
The context also provides access to the Session, cookies and body for the request, given the correct handlers in the application.
If you use the internal error handler
Tim Fox


Ubisoft
Ubisoft Club is a centralized reward system for all Ubisoft titles to manage in-game rewards, challenges and actions, as well as tracking personal and friends’ activities and news.
- Led major client side feature architecture and implementations for Ubisoft Club mobile app launch and updates. 2 million+ downloads, 2400+ daily active users, 4.3 and 4.1 ratings on App Store and Google Play.
- Features included: AI Personal Gaming Assistant with native text to speech; user profile, in-game challenges, player leaderboard; error handling and data refresh. Built with AngularJS, Ionic and Cordova stack.
- Worked on iOS and android hybrid components with Objective-C in Xcode and Java in Android Studio.
- Facilitated internal and testing processes by automating common tasks in game design and testing pipelines with React + Flux and Angular.
- Demonstrated with functional prototype of the mobile app project that migrating framework to Angular2 or React + Flux will result in 93% and 43% performance increase.


| MATLAB 文件帮助: cv.fastNlMeansDenoising | 查看 cv.fastNlMeansDenoising 的代码 | Index |
fastNlMeansDenoising Image denoising using Non-local Means Denoising algorithm
dst = cv.fastNlMeansDenoising(src)
dst = cv.fastNlMeansDenoising(src, 'OptionName',optionValue, ...)
L1
norm) 1-channel, 2-channel,
3-channel or 4-channel image.src
.dst
. Big H
value perfectly removes noise but also removes image details, smaller
H
value preserves details but also preserves some noise. default [3]SearchWindowsSize
- greater denoising time.
Recommended value 21 pixels. default 21Perform image denoising using Non-local Means Denoising algorithm http://www.ipol.im/pub/algo/bcm_non_local_means_denoising/ with several computational optimizations.
This function expected to be applied to grayscale images. For colored images
look at cv.fastNlMeansDenoisingColored. Advanced usage of this functions can
be manual denoising of colored image in different colorspaces. Such approach
is used in cv.fastNlMeansDenoisingColored by converting image to CIELAB
colorspace and then separately denoise L and AB components with different
H
parameter.


This is essentially Pagedown with some slight modifications.
http://code.google.com/p/pagedown/wiki/PageDown
Modifications:
- Work with configurable pretty code processor,
- Opened the configuration object so it can pull configs down into processing channels.
- Fixed some character encoding issues.
- Made MarkdownExtra's a little easier to get running.
- Many subtle problem children were placed in straight-suits.
var markdownC = require("./markdown").Converter; var converter = new markdownC(); var markdownExtra = require("./markdown-extra"); markdownExtra.init(converter); var myHtml = converter.makeHtml( decodeHtmlEntities(text), opts );


Butterfly stroke is performed face down in the water. The legs perform a dolphin kick and while the arms move in a forward circle at the same time.
Backstroke is done while lying on the back. One arm reaches behind the head with a fingertip entry while the other arm is by the side. The legs perform a flutter kick.
Breaststroke is performed face down in the water without rotating the torso. The arms stay in the water and move synchronously, while the legs perform a whip kick. It is possible to keep the head elevated out of the water throughout the stroke, although the head usually dips in and out.
Freestyle swimming competition has limited restrictions of styles. Front crawl is the most common type of stroke used as its the fastest style for swimming on the surface. Done while face down. The arms alternate while the legs perform a flutter kick.
1771 Ang Mo Kio Avenue 1
1 Bishan Street 14
2 Bukit Batok Street 22
1 Choa Chu Kang Street 53
520 Clementi Avenue 3
900 Tiong Bahru Road
601 Aljunied Avenue 1
11 Bedok North Street 1
11 Bedok North Street 1
95 Hougang Avenue 4
100 Tyrwhitt Road
21 Jurong East Street 31
30 Yuan Ching Road
20 Jurong West Street 93
23 Geylang Bahru Lane
111 Wilkinson Road
21 Evans Road
120 Pasir Ris Central
473 Stirling Road
57 Anchorvale Road
101 Bukit Panjang Road
35A Yio Chu Kang Road
1 Tampines Walk
301 Lorong 6 Toa Payoh
3 Woodlands Street 13
202 Ang Mo Kio Avenue 9
351 Yishun Avenue 3


Generate Tables
Progress:
Random Cube
Clean Cube
Clear Cube
Verify Cube
Solve Cube
Preferences
Maximum Moves
Maximum Time
Autocomplete
Colors
Top:
Right:
Front:
Bottom:
Left:
Back:
Blank:
Reset Colors
Solution:
N/A
|<
<|
<
||
>
>
>|


mac2pwd(1) Qualcomm Atheros Open Powerline Toolkit mac2pwd(1) NAME mac2pwd - Qualcomm Atheros Ethernet Device Password Generator SYNOPSIS mac2pwd [options] file [file] [ ... ] DESCRIPTION Read Ethernet MAC addresses from one or more files and print a unique password for each address. Program output is suit‐ able as input to the Qualcomm Atheros HomePlug AV Production Test System or may be used in custom production systems. Input addresses can appear in any order and need not be consecutive. Computed passwords consist of upper case letters and digits with optional group separators. Output consists of address/password pairs in text format. This program may be used to generate passwords for large numbers of non-consecutive MAC addresses that occur in unspeci‐ fied order. It complements program mac2pw which generates passwords for consecutive MAC addresses over a given range. Options exist to modify the password algorithm, password length and character bunching. This program is part of the Qualcomm Atheros Powerline Toolkit. See the AMP man page for an overview and installation instructions. CAVEATS Atheros provides this program as a simple means of generating unique and apparently random device passwords for a large volume of Ethernet devices. Two different password algorithms are implemented but neither one is required for HomePlug AV compliance. Vendors are free to use other methods to generate their own device passwords and are encouraged to do so. Random Method Generate random passwords based on system entropy. A different set of passwords is generated for a given address range with each program execution. There is no correlation at between addresses and passwords. This method secure but requires care when programming and labelling devices at the factory. It may be necessary to maintain a database if regular device maintenance and firmware upgrade are needed. Device Method Generate apparently random passwords based on device address. The same set of passwords will be generated for a given address range with each program execution. This method may be appropriate on system where regular mainte‐ nance and firmware updates are required. This method is not secure because device addresses can be determined using a variety of network management programs. Anyone having access to this program, or the algorithm, could compute the device password and gain access to device features reserved for privileged users. This program does provide features to mitigate the risks of using this method. OPTIONS -b bunch The password bunching factor. Passwords consists of count uppercase letters and digits optionally displayed in groups separated by hyphens. The bunching factor specifies the number of letters and digits in each group. When bunch is 0 or greater than count, bunching is suppressed. Separating hyphens increase overall password length. The minimum is 0 and the maximum is 255. The default is 0 which suppresses bunching. -e Compute passwords based on host system entropy. Passwords consist of uppercase letters [A-Z] optionally grouped using option -b. This method produces a non-repeatable set of unique passwords over a given address range. This method is the default and is secure. -l count The number of letters in the password string. The default count is 16. Overall password length is the sum of count plus the number of delimiters implied by bunch. -m Compute passwords based on target device address. Passwords consist of uppercase letters [A-Z]. This method pro‐ duces a repeatable set of unique passwords over a given address range. This method is not secure. -q Quiet mode. Exclude the MAC address on output. This option can be used in scripts to return the password associ‐ ated with a given MAC address. -v Verbose mode. Prefix each line with a '0' column. The Atheros Production Test System (PTS) uses the first column of a password database file to indicate which addresses and passwords have already been used. -?,--help Print program help information on stdout. This option takes precedence over other options on the command line. -!,--version Print program version information on stdout. This option takes precedence over other options on the command line. Use this option when sending screen dumps to Atheros Technical Support so that they know exactly which version of the Linux Toolkit you are using. ARGUMENTS file The name of a file that contains Ethernet address strings. Individual address strings consist of 12 consecutive hexadecimal digits. Addresses are seperated by whites space. This allows multiple addresses on a line. There is no line length limit. Punctuation is not permitted; however, a hash ('#') or semicolon (';') in any column starts comment text that continues to the end of that line. An error in any input file terminates the program with an error message. EXAMPLES An example input file, mac.txt, is shown below. Comment lines document the file. Blank lines are permitted and multiple addresses appear on one line. This file contains 5 MAC addresses. Punctuation is not permitted within a MAC address. # ================================= # unused MAC addresses; # --------------------------------- 00b052000004 00b052BABE33 00b052BABE34 00b052CAFE05 00b052CAFE01 Another example input file, mac2.txt, appears below. A hash ('#') and a semi-colon (';') are used to hide selected addresses. Hidden addresses are ignored because they are comments. This file contains 7 addresses but only 5 will be recognized. 002b88ffff00 002b887fff00 # 002b88660066 002b88660067 002b88660063 ; 002b8800FFFF 002b88660066 The next example reads the two files shown above and prints 10 addresses, 5 from each file, with associated passwords. Output appears on the console but may be piped to a file or another process. # mac2pwd mac.txt more.mac 00B052000004 8C69GFCXATB8RA9SF52LK79UD 00B052BABE33 MMKGF5SP5DP23KHY27BSLRV2A 00B052BABE34 CVBG6QHJFQVVCYSACPAPBZT79 00B052CAFE05 MCXUABFPC33CPMXWFWYX5N2KC 00B052CAFE01 5GHUWD9YDEL8TCAGEZJ8ESRCC 002B88FFFF00 CJCW4VB2HZ37DAK2XE9CGCWZZ 002B887FFF00 W2W9AQU5TE8K4ZLH7R3K5C6X4 002B88660067 2LWQ5LGBUCDFDYSZYQ2XZSPJ2 002B88660063 62NKW6RM87UBZG34KH87AXXEY 002B88660066 KNQAGGFH9G9XQGR96GR4HK4SS The next example does the the two files, as before but shortens password length and groups password character. Overall password length includes password characters plus delimiters. Option -l sets password length to 16 characters. Option -b sets bunching to 4 characters. # mac2pwd mac.txt more.mac -l 16 -b 4 00B052000004 R5YH-E6XG-TECA-24R8 00B052BABE33 WBQJ-77PC-VQTX-63Q5 00B052BABE34 4M2X-GVUY-6PYH-H5V7 00B052CAFE05 Z8JA-A2MV-49JF-WJZZ 00B052CAFE01 5L7Z-ZXZP-NUFS-RBKE 002B88FFFF00 3RAD-HQPN-92G2-HJKA 002B887FFF00 7YD7-9NJJ-39S7-8ZGF 002B88660067 HZ6K-SBG5-ZL8S-K2DK 002B88660063 MX5K-W7PF-T823-38MJ 002B88660066 PDXL-84QH-GKUN-KVEE The next example is the same but prints output suitable for input to the Qualcomm Atheros PTS because option -v is speci‐ fied. The output format is similar to that produced by the Qualcomm Atheros DB Builder Utility for Windows. # mac2pwd -v mac.txt more.mac 0 00B052000004 ZZYBQP7EAZKBNWWCKKC4HX3AW 0 00B052BABE33 LG7XD97UPSBUHA6F7CU28P3WW 0 00B052BABE34 8BF288CZN4NTBUFSJAQLUYYNF 0 00B052CAFE05 RTK4XHMWKWWD654QRBQGW5UNH 0 00B052CAFE01 EE5YLRXD2EGKS6TSGZZK7ES74 0 002B88FFFF00 BRYJDWYGP79GFWZN8ZU8ZQ3GN 0 002B887FFF00 KEULLGC6PYFAM3FE89TYTSMP6 0 002B88660067 H4STMXB67QR22J39MAZQRHHA5 0 002B88660063 HKF32QX2GCZKGR3XYTMQCWTRB 0 002B88660066 STKF28Q2JXYEMAQZVQSFVTKFB The next example omits the MAC address. This may used to generate random passwords for other purposes. # mac2pwd -q mac.txt more.mac W6QXL6KDY4SZLL538CAMWSH8N PMYLFYMNA5TKYU2S6LBJS6QCR B2P58XQ2L4JSNR6SXEZ6BSVSN GYG6MS8NFEVH8EFBPD483WWCJ 44TQ6FYCVSGP9GLS6YSYRTWFQ GUGPUJ6284X22ZU4RKXAX5T65 LGSV6L9Y9398DFY3Z2TUFBCAJ H95A2FYV3LNT7BBFSLCLHXEH8 JXSY7TMKK6CP3LDWNE3M74G87 V4TEAG2ZX3J3NJHPAJMMQTQNT DISCLAIMER Qualcomm Atheros reserves the right to modify program names, functionality, input format or output format in future tool‐ kit releases without any obligation to notify or compensate toolkit users. SEE ALSO hpavkey(1), hpavkeys(1), keys(1), mac2pw(1), rkey(1) CREDITS Charles Maier<EMAIL_ADDRESS>Pouyan Sepehrdad<EMAIL_ADDRESS>Ning Shang<EMAIL_ADDRESS>open-plc-utils-0.0.3 Mar 2014 mac2pwd(1)


“Sādhū hi kira me mātā,
Patodaṁ upadaṁsayi;
Yassāhaṁ vacanaṁ sutvā,
Anusiṭṭho janettiyā;
Āraddhavīriyo pahitatto,
Patto sambodhimuttamaṁ.
Actually, it turned out to be a good thing,
how my mother spurred me on.
When I heard her words,
advised by my mother,
energetic and resolute,
I realized supreme awakening.
Arahā dakkhiṇeyyomhi,
tevijjo amataddaso;
Jetvā namucino senaṁ,
viharāmi anāsavo.
I’m perfected, worthy of offerings,
master of the three knowledges, seer of the deathless.
I’ve conquered the army of Namuci,
and live without defilements.
Ajjhattañca bahiddhā ca,
ye me vijjiṁsu āsavā;
Sabbe asesā ucchinnā,
na ca uppajjare puna.
Those defilements that were found in me,
internally and externally,
are all cut off without remainder,
and will not arise again.
Visāradā kho bhaginī,
etamatthaṁ abhāsayi;
‘Apihā nūna mayipi,
vanatho te na vijjati’.
My self-assured sister
said this to me:
“Now neither you nor I
have any entanglements.”
Pariyantakataṁ dukkhaṁ,
antimoyaṁ samussayo;
Jātimaraṇasaṁsāro,
natthi dāni punabbhavo”ti.
… Vaḍḍho thero ….
Suffering is at an end;
this bag of bones is my last
in the transmigration through births and deaths;
now there are no more future lives.


Nintendo Just Released A Wacky Ambulance Game
by Gita JacksonA new Nintendo published game, The Stretchers, is just came out on the Nintendo eShop in Europe and Japan. It’s a co-op game where you and a friend load people onto an ambulance and take them to a hospital, and it looks very silly.
The Stretchers comes from the same people that made Little Nightmares, Tarsier Studios, and it manages to make being an EMT seem very wacky. Residents of a town are suddenly struck by dizziness and need your help getting to the hospital. You and a friend will have to manoeuvre a stretcher through obstacles to pick up people and then drive the ambulance to the hospital, careening through fences and people’s backyards as you go.
This seems like the perfect kind of game to throw on at a party, if only because any game where you have to coordinate movement with another player is a recipe for hijinks. You can check out more information and screenshots in the European eShop.


Four cops killed in Naxal attack in Jharkhand’s Latehar district
"The ambush attack took the patrolling party from Chandwa Police Station by surprise. Two of them were home guards,” said a senior police officer.
by Express News ServiceA day after Union Home Minister Amit Shah credited Jharkhand Chief Minister Raghubar Das for “curbing Naxalism” in Jharkhand, four police personnel were killed in Chandwa, Latehaar district in an ambush attack. The attack comes a week before the first phase of elections.
Police said that the attack took place three kilometres from Chandwa police station at around 8.30 pm, when the police party was patrolling.
“The ambush attack took the patrolling party from Chandwa Police Station by surprise. Two of them were home guards,” said a senior police officer.
DGP Kamal Nayan Choubey confirmed the attack. However, no arrests have been so far, said police.
Police said that the deceased have been identified as ASI Sukra Oraon, Yamuna Prasad, and two home guards Sambhu Prasad and Sikander Singh.
“A PCR van of the police was attacked…we are conducting raids in the direction of where the suspects ran away,” said ADG (Ops) ML Meena.
Jharkhand goes to poll on November 30 in 13 constituencies including Latehaar and will be conducted in five phases.
Just after the Lok Sabha elections, five police officers were also killed in an ambush in Saraikela area.
According to Home Ministry data, 19 districts are LWE affected — Bokaro, Chatra, Dhanbad, Dumka, East Singhbhum, Garhwa, Giridih, Gumla, Hazaribagh, Khunti, Koderma, Latehar, Lohardaga, Palamu, Ramgarh, Ranchi, Simdega, Saraikela-Kharaswan, West Singhbhum.


Date:
From
NIJ INFOTECH,
0, A/503, KRISH GOLD,
OPP VIP SCHOOL, NR MATRU,
VILLAGE SOCIETY, NEW INDIA COLONY,
NIKOL, AHMEDABAD, GUJARAT-382350
0, A/503, KRISH GOLD,
OPP VIP SCHOOL, NR MATRU,
VILLAGE SOCIETY, NEW INDIA COLONY,
NIKOL, AHMEDABAD, GUJARAT-382350
To
Invoice
Order ID:
Order ID:
| Subtotal: | |
|---|---|
| Shipping: | |
| Total: |


{% extends 'dash/layout.html' %}
{% block title %}
Dashboard - Statistics
{% endblock %}
{% block content %}
Statistics
Here you can see for each genre the number of movies that have been published in the cinema
| Genre |
Number of movies |
{% for row in common_movie_genre %}
| {{ row.genre }} |
{{ row.genre_count }} |
{% endfor %}
Here you can see how popular each movie genre is among the clients of the cinema
| Genre |
Number of tickets sold |
{% for row in movie_genre_popularity %}
| {{ row.genre }} |
{{ row.genre_count }} |
{% endfor %}
Here you can see how much profit the cinema made out of movies of each genre
| Genre |
Total profit € |
{% for row in movie_genre_profits %}
| {{ row.genre }} |
{{ row.genre_profit }} € |
{% endfor %}
Here you can see for each genre the number of movies of the cinema that have been released in the last 9 months
| Genre |
Number of movies |
{% for row in common_movie_genre_trend %}
| {{ row.genre }} |
{{ row.genre_count }} |
{% endfor %}
Here you can see how popular each movie genre has been among the clients of the cinema in the last 9 months
| Genre |
Number of tickets sold |
{% for row in movie_genre_popularity_trend %}
| {{ row.genre }} |
{{ row.genre_count }} |
{% endfor %}
Here you can see how much profit the cinema made out of movies of each genre that have been released in the last 9 months
| Genre |
Total profit € |
{% for row in movie_genre_profits_trend %}
| {{ row.genre }} |
{{ row.genre_profit }} € |
{% endfor %}
Here you can see for each genre the 3 age groups of clients that have seen more movies of that genre
| Genre / Age group |
Number of tickets sold |
{% for genre in genre_popularity_by_age %}
| {{ genre }} |
|
{% for row in genre_popularity_by_age[genre] %}
| {{ row.age_group }} |
{{ row.ticket_count }} |
{% endfor %}
{% endfor %}
Here you can see the 3 most liked genre of each age group
| Age group / Genre |
Number of tickets sold |
{% for age_group in age_popularity_by_genre %}
| {{ age_group }} |
|
{% for row in age_popularity_by_genre[age_group] %}
| {{ row.genre }} |
{{ row.ticket_count }} |
{% endfor %}
{% endfor %}
Here you can see the 25 most liked actors by the clients of the cinema
| Name |
Surname |
Number of tickets sold |
{% for row in popular_actors %}
| {{ row.name }} |
{{ row.surname }} |
{{ row.ticket_count }} |
{% endfor %}
Here you can see the 25 most liked directors by the clients of the cinema
| Name |
Surname |
Number of tickets sold |
{% for row in popular_directors %}
| {{ row.name }} |
{{ row.surname }} |
{{ row.ticket_count }} |
{% endfor %}
{% endblock %}


MKLoadingView Class Reference
| Inherits from | MKView : UIView |
| Declared in | MKLoadingView.h |
Overview
Overview
MKLoadingView Provides a small view that informs the user of a process taking place. There are two types of loading views that can be displayed.
-
MKLoadingViewTypeIndicator
: Shows a UIActivityIndicatorView. -
MKLoadingViewTypeProgressBar
: Shows a custom drawn progress bar.
Graphics
MKLoadingView does support MKGraphicsStructures, instances look for the following graphics properties:
- fill :
default black
Listeners
MKLoadingView listens for the MKLoadingViewShouldRemoveNotification
to remove itself.
MKLoadingView Supports ARC
Tasks
Creating
-
- initWithType:status:
Returns and intalized instance of MKLoadingView with the given type and status message. -
- initWithType:status:graphics:
Returns and intalized instance of MKLoadingView with the given type and status message.
Behaviors
-
statusText
The text displayed on the view -
type
The type of loading view
Progress Bar
-
progress
A float value between 0.0 and 1.0 representing the amount completed progress.Note This property is only used on MKLoadingViewTypeProgressBar.
Instance Methods
initWithType:status:
Returns and intalized instance of MKLoadingView with the given type and status message.
- (id)initWithType:(MKLoadingViewType)type status:(NSString *)status
Parameters
- type
- : the type of MKLoadingView to create.
- status
- : the status message displayed on the view
Return Value
MKLoadingView instance
Declared In
MKLoadingView.h
initWithType:status:graphics:
Returns and intalized instance of MKLoadingView with the given type and status message.
- (id)initWithType:(MKLoadingViewType)type status:(NSString *)status graphics:(MKGraphicsStructures *)graphics
Parameters
- type
- : the type of MKLoadingView to create.
- status
- : the status message displayed on the view
- graphics
- : the MKGraphicsStuctures instance to apply.
Return Value
MKLoadingView instance
Declared In
MKLoadingView.h
Properties
progress
A float value between 0.0 and 1.0 representing the amount completed progress.
Note This property is only used on MKLoadingViewTypeProgressBar.
@property (nonatomic, assign) CGFloat progress
Declared In
MKLoadingView.h
statusText
The text displayed on the view
@property (nonatomic, strong) NSString *statusText
Declared In
MKLoadingView.h
type
The type of loading view
@property (nonatomic, assign, readonly) MKLoadingViewType type
Declared In
MKLoadingView.h


| I l@ve RuBoard |
Occasionally, it's necessary to force a Windows NT computer to reboot programmatically. You may need to perform a scheduled reboot of the current machine or force a reboot of a remote PC programmatically.
The function win32api.InitiateSystemShutdown() appears perfect for the job.
win32api.InitiateSystemShutdown(machine, message, timeout, bForce, bReboot)
The name of the machine to shutdown or None for the current machine.
A message to be displayed to the user in a dialog while the timeout period expires.
A timeout in seconds, during which time a dialog is displayed warning the user of the pending shutdown. After the timeout expires, the shutdown process begins. If this is zero, the shutdown commences immediately.
Specifies whether applications with unsaved changes are to be forcibly closed. If this parameter is true, such applications are closed. If this parameter is false, a dialog box is displayed prompting the user to close the applications. Note that this implies the user could cancel the shutdown process by selecting Cancel in the dialog his application displays for unsaved data.
Specifies whether the machine is rebooted after the shutdown process.
Let's try this function. Start by rebooting the current machine with a 30-second timeout (without forcing applications shut) and finally restart after shutdown:
>>> import win32api >>> message = "This machine is being rebooted because it has been naughty" >>> win32api.InitiateSystemShutdown(None, message, 30, 0, 1) Traceback (innermost last): File "<interactive input>", line 0, in ? api_error: (5, 'InitiateSystemShutdown', 'Access is denied.')
This will, no doubt, lead you into messing with the Windows NT User Manager, etc., to try to determine how to get permission to do so. You won't have much luck: everything will indicate you should be allowed to restart the machine. The Win32 documentation for this function briefly mentions:
To stop the local computer from shutting down, the calling process must have the SE_SHUTDOWN_NAME privilege. To stop a remote computer from shutting down, the calling process must have the SE_REMOTE_SHUTDOWN_NAME privilege on the remote computer.
But as far as can be seen, you should have the correct privilege. The answer lies in the fact that user rights and privileges are different things. Your user rights typically allow direct access to securable resources, such as files, printers, or the registry, but access to other system resources requires privileges. Your user rights determine the privileges you hold; but by default, most privileges aren't enabled. Programs must explicitly enable the privilege before they perform an operation that requires the privilege.
Privileges are required for fairly obscure tasks, such as rebooting the local or remote machine, changing the system time, creating machine accounts on the network, or loading device drivers. Our example of rebooting a machine is the only place in this book where you encounter privileges, so we will make a slight diversion at this point. Although we discuss only the privileges required to reboot the local or remote machine, the same concept applies when you perform any operation that requires you to enable special privileges.
The process of enabling new privileges is simple. We will discuss briefly the concepts and the code necessary to enable privileges, but for an in-depth discussion of privileges, refer to the Microsoft Windows NT Security documentation.
You use the win32security module to gain access to the necessary functions. The process for enabling a privilege is:
Obtain the current access token using the win32security.OpenAccess-Token() function.
Obtain the ID for the privilege using win32security.Lookup-PrivilegeValue().
Enable the privilege using win32security.AdjustTokenPrivileges().
When you've performed the operation, you need to disable the privilege again. The same process is used: win32security.AdjustTokenPrivileges() supports a flag that allows you to enable or disable the privilege. An example of this code is presented in the next section.
You now have the knowledge to successfully make a win32api.Initiate-SystemShutdown() call.
The code obtains the necessary privileges to reboot the machine, then makes the call to win32api.InitiateSystemShutdown(). Unfortunately, the dialog displayed by Windows NT doesn't include any way to disable the shutdown operation. Once the shutdown has begun, the only way to stop it is programmatically.
To cater to this, the sample application, shown in the following code, initiates a shutdown with a 30-second delay. The code then sleeps for 10 seconds before programmatically aborting the shutdown using win32api.AbortSystem-Shutdown() . If you refer to the Windows NT documentation or Appendix B, you'll notice that this function requires the same privileges needed to initiate the shutdown in the first place. So before aborting the shutdown, you must jump through the same privilege hoops. To assist the process, let's move the code that manages the privileges to a helper function that should be suitable for managing any type of privilege:
# RebootServer.py - Reboots a remove server import win32security import win32api import sys import time from ntsecuritycon import * def AdjustPrivilege(priv, enable = 1): # Get the process token. flags = TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY htoken = win32security.OpenProcessToken(win32api.GetCurrentProcess(), flags) # Get the ID for the system shutdown privilege. id = win32security.LookupPrivilegeValue(None, priv) # Now obtain the privilege for this process. # Create a list of the privileges to be added. if enable: newPrivileges = [(id, SE_PRIVILEGE_ENABLED)] else: newPrivileges = [(id, 0)] # and make the adjustment. win32security.AdjustTokenPrivileges(htoken, 0, newPrivileges) def RebootServer(message="Server Rebooting", timeout=30, bForce=0, bReboot=1): AdjustPrivilege(SE_SHUTDOWN_NAME) try: win32api.InitiateSystemShutdown(None, message, timeout, bForce, bReboot) finally: # Now we remove the privilege we just added. AdjustPrivilege(SE_SHUTDOWN_NAME, 0) def AbortReboot(): AdjustPrivilege(SE_SHUTDOWN_NAME) try: win32api.AbortSystemShutdown(None) finally: # Now we remove the privilege we just added. AdjustPrivilege(SE_SHUTDOWN_NAME, 0) if __name__=='__main__': message = "This server is pretending to reboot\r\n" message = message + "The shutdown will stop in 10 seconds" RebootServer(message) print "Sleeping for 10 seconds" time.sleep(10) print "Aborting shutdown" AbortReboot()
The function AdjustPrivilege() is where you enable the necessary privilege. Notice the specific privilege is passed as a parameter. This makes the function general purpose and so, can be used for any of the Windows NT privileges. Specifically, if you must reboot a remote machine, you should use the privilege SE_REMOTE_SHUTDOWN_NAME.
Running this script from Windows NT, you should see the dialog shown in Figure 16.1. Once the countdown timer reaches 20 seconds before shutdown, the dialog should disappear as the shutdown is aborted.
| I l@ve RuBoard |


Personal detailsName:chandu Address:1-7-107-1 nandyal phone number:+918434526 Email<EMAIL_ADDRESS>linkedin account:Intrestspalying coding dancing |
CAREER OBJECTIVE:To pursue a job in challenging environment that encourages creativity and provides exposure to new technology to achieve professional and personal growth along with the organization. EDUCATIONAL QUALIFICATIONS:
Technical skills:
Hobbiess:
personal skills:
Languages Known:
|


--- layout: page title: Who we are date: 2013-02-18 17:18:33.000000000 -05:00 type: page published: true status: publish categories: [] tags: [] meta: _edit_last: '1' _wp_page_template: full-width-page.php _post_lock_status: unlocked _responsive_layout: default _post_restored_from: a:3:{s:20:"restored_revision_id";i:808;s:16:"restored_by_user";i:1;s:13:"restored_time";i:1436746565;} author: login: rachels email<EMAIL_ADDRESS>display_name: Rachel first_name: Rachel last_name: Staples ---
We study the evolution and ecology of bacteria that may become pathogens and their genetic paths to adaptation.


{% extends "base.html" %} {% block title %}Succesfully registered {% endblock %} {% block content %}
Hello You have succesfullr registered as {{ email }}


Filmoteka
HOME
MY LIBRARY
Watched
Queue
The movie name was entered incorrectly! Please try again.
Prev
1
Next


Hi. I'm Travis. I work in IT. I have a passion for all things technology. I'm always looking to what is next and never want to settle. I also am an adjunct IT professor so I have a passion for teaching technology to students. I'll write about some of that here too. I want to write about my adventures and write about cases I think may help others. I'm always looking to collaborate. Currently I'm very much engrained in VMware technologies so you'll see a lot of that here (and more!). I'm looking to the future and want to transition into SRE/DevOps/K8s (the list is endless) but suffice to say next-generation technologies that will power the infrastructures of tomorrow.


Here we are experimenting with openspin compiled to JS with Emscripten and run in the browser as a webworker. See also msrobots editor/compiler


# -*- coding: utf-8; -*-
#
# Copyright (c) 2015 INRA UMR1095 GDEC
from __future__ import unicode_literals
from django.conf import settings
from django.utils.cache import patch_vary_headers
from django.utils.crypto import constant_time_compare
from django.utils.encoding import force_text
from django.utils.http import same_origin
from django.middleware.csrf import *
from django.middleware.csrf import _sanitize_token, _get_failure_view, _get_new_csrf_key
__date__ = "2015-04-13"
__author__ = "Frédéric Scherma"
[docs]class CsrfViewMiddleware(object):
"""
Middleware that requires a present and correct csrfmiddlewaretoken
for POST/PUT/DELETE requests that have a CSRF cookie, and sets an outgoing
CSRF cookie.
This middleware should be used in conjunction with the csrf_token template
tag.
The CSRF cookie rotate after it was consumed. That mean the client side must
takes care to always sending the latest value of the cookie.
"""
# The _accept and _reject methods currently only exist for the sake of the
# requires_csrf_token decorator.
def _accept(self, request):
# Avoid checking the request twice by adding a custom attribute to
# request. This will be relevant when both decorator and middleware
# are used.
request.csrf_processing_done = True
return None
def _reject(self, request, reason):
logger.warning(
'Forbidden (%s): %s', reason, request.path,
extra={
'status_code': 403,
'request': request,
}
)
return _get_failure_view()(request, reason=reason)
[docs] def process_view(self, request, callback, callback_args, callback_kwargs):
if getattr(request, 'csrf_processing_done', False):
return None
try:
csrf_token = _sanitize_token(
request.COOKIES[settings.CSRF_COOKIE_NAME])
# Use same token next time
request.META['CSRF_COOKIE'] = csrf_token
except KeyError:
csrf_token = None
# Generate token and store it in the request, so it's
# available to the view.
request.META["CSRF_COOKIE"] = _get_new_csrf_key()
# Wait until request.META["CSRF_COOKIE"] has been manipulated before
# bailing out, so that get_token still works
if getattr(callback, 'csrf_exempt', False):
return None
# Assume that anything not defined as 'safe' by RFC2616 needs protection
if request.method not in ('GET', 'HEAD', 'OPTIONS', 'TRACE'):
if getattr(request, '_dont_enforce_csrf_checks', False):
# Mechanism to turn off CSRF checks for test suite.
# It comes after the creation of CSRF cookies, so that
# everything else continues to work exactly the same
# (e.g. cookies are sent, etc.), but before any
# branches that call reject().
return self._accept(request)
if request.is_secure():
# Suppose user visits http://example.com/
# An active network attacker (man-in-the-middle, MITM) sends a
# POST form that targets https://example.com/detonate-bomb/ and
# submits it via JavaScript.
#
# The attacker will need to provide a CSRF cookie and token, but
# that's no problem for a MITM and the session-independent
# nonce we're using. So the MITM can circumvent the CSRF
# protection. This is true for any HTTP connection, but anyone
# using HTTPS expects better! For this reason, for
# https://example.com/ we need additional protection that treats
# http://example.com/ as completely untrusted. Under HTTPS,
# Barth et al. found that the Referer header is missing for
# same-domain requests in only about 0.2% of cases or less, so
# we can use strict Referer checking.
referer = force_text(
request.META.get('HTTP_REFERER'),
strings_only=True,
errors='replace'
)
if referer is None:
return self._reject(request, REASON_NO_REFERER)
# Note that request.get_host() includes the port.
good_referer = 'https://%s/' % request.get_host()
if not same_origin(referer, good_referer):
reason = REASON_BAD_REFERER % (referer, good_referer)
return self._reject(request, reason)
if csrf_token is None:
# No CSRF cookie. For POST requests, we insist on a CSRF cookie,
# and in this way we can avoid all CSRF attacks, including login
# CSRF.
return self._reject(request, REASON_NO_CSRF_COOKIE)
# Check non-cookie token for match.
request_csrf_token = ""
if request.method == "POST":
try:
request_csrf_token = request.POST.get('csrfmiddlewaretoken', '')
except IOError:
# Handle a broken connection before we've completed reading
# the POST data. process_view shouldn't raise any
# exceptions, so we'll ignore and serve the user a 403
# (assuming they're still listening, which they probably
# aren't because of the error).
pass
if request_csrf_token == "":
# Fall back to X-CSRFToken, to make things easier for AJAX,
# and possible for PUT/DELETE.
request_csrf_token = request.META.get(
getattr(settings, 'CSRF_HEADER_NAME') if hasattr(settings, 'CSRF_HEADER_NAME') else 'HTTP_X_CSRFTOKEN',
'')
if not constant_time_compare(request_csrf_token, csrf_token):
return self._reject(request, REASON_BAD_TOKEN)
# rotating token
rotate_token(request)
return self._accept(request)
[docs] def process_response(self, request, response):
if getattr(response, 'csrf_processing_done', False):
return response
# If CSRF_COOKIE is unset, then CsrfViewMiddleware.process_view was
# never called, probably because a request middleware returned a response
# (for example, contrib.auth redirecting to a login page).
if request.META.get("CSRF_COOKIE") is None:
return response
if not request.META.get("CSRF_COOKIE_USED", False):
return response
# Set the CSRF cookie even if it's already set, so we renew
# the expiry timer.
response.set_cookie(settings.CSRF_COOKIE_NAME,
request.META["CSRF_COOKIE"],
max_age=getattr(settings, 'CSRF_COOKIE_AGE') if hasattr(settings, 'CSRF_COOKIE_AGE') else 31449600,
domain=settings.CSRF_COOKIE_DOMAIN,
path=settings.CSRF_COOKIE_PATH,
secure=settings.CSRF_COOKIE_SECURE,
httponly=settings.CSRF_COOKIE_HTTPONLY
)
# Content varies with the CSRF cookie, so set the Vary header.
patch_vary_headers(response, ('Cookie',))
response.csrf_processing_done = True
return response


clear - clear the terminal screen
clear clears your screen if this is possible, including its scrollback
buffer (if the extended “E3” capability is defined).
clear looks in the environment for the terminal type given by the
environment variable TERM, and then in the terminfo database to
determine how to clear the screen.
clear writes to the standard output. You can redirect the
standard output to a file (which prevents clear from actually
clearing the screen), and later cat the file to the screen, clearing
it at that point.
- -T type
- indicates the type of terminal. Normally this option is
unnecessary, because the default is taken from the environment variable
TERM. If -T is specified, then the shell variables
LINES and COLUMNS will also be ignored.
- -V
- reports the version of ncurses which was used in this program, and exits.
The options are as follows:
- -x
- do not attempt to clear the terminal's scrollback buffer using the
extended “E3” capability.
A clear command appeared in 2.79BSD dated February 24, 1979. Later that
was provided in Unix 8th edition (1985).
AT&T adapted a different BSD program (tset) to make a
new command (tput), and used this to replace the clear command
with a shell script which calls tput clear, e.g.,
/usr/bin/tput ${1:+-T$1} clear 2> /dev/null
exit
In 1989, when Keith Bostic revised the BSD tput command to
make it similar to the AT&T tput, he added a shell script for the
clear command:
exec tput clear
The remainder of the script in each case is a copyright
notice.
The ncurses clear command began in 1995 by adapting the
original BSD clear command (with terminfo, of course).
The E3 extension came later:
- •
- In June 1999, xterm provided an extension to the standard control sequence
for clearing the screen. Rather than clearing just the visible part of the
screen using
printf '\033[2J'
- one could clear the scrollback using
printf '\033[3J'
- This is documented in XTerm Control Sequences as a feature
originating with xterm.
- A few other terminal developers adopted the feature, e.g., PuTTY in
2006.
- In April 2011, a Red Hat developer submitted a patch to the Linux kernel,
modifying its console driver to do the same thing. The Linux change, part
of the 3.0 release, did not mention xterm, although it was cited in the
Red Hat bug report (#683733) which led to the change.
- Again, a few other terminal developers adopted the feature. But the next
relevant step was a change to the clear program in 2013 to
incorporate this extension.
- In 2013, the E3 extension was overlooked in tput with the
“clear” parameter. That was addressed in 2016 by
reorganizing tput to share its logic with clear and
tset.
Neither IEEE Std 1003.1/The Open Group Base Specifications Issue 7
(POSIX.1-2008) nor X/Open Curses Issue 7 documents tset or reset.
The latter documents tput, which could be used to replace
this utility either via a shell script or by an alias (such as a symbolic
link) to run tput as clear.
tput(1), terminfo(5)
This describes ncurses version 6.2 (patch 20200212).


Jahctivation next shows!!
Jahctivation and Roots High Teck for Haile I Dub @ Brussels
Jahctivation feat Ras Muffet
jahctivation in Toulouse!!
Fête de la musique à Lille, Jahctivation with Agobun Sound System
Last shows
Jahctivation and Weeding Dub au Kilimandjaro
Jahctivation and Revelation Hi-Fi
studio/productions
booking
graphic design
More info: jahctivation@gmail.com


| Path: | extra/Console_ANSI.rdoc |
| Last Update: | Mon May 14 10:50:30 -0700 2012 |
Win32::Console::ANSI - Ruby extension to emulate ANSI console on Win32 system.
require "Win32::Console::ANSI" puts "\e[1;34mThis text is bold blue.\e[0m" puts "This text is normal."" puts "\e[33;45;1mBold yellow on magenta.\e[0m" puts "This text is normal."
With the Term::ANSIColor module one increases the readability:
require "Win32::Console::ANSI" require "Term::ANSIColor" puts color 'bold blue' puts "This text is bold blue." puts color 'reset' puts "This text is normal." puts colored ("Bold yellow on magenta.", 'bold yellow on_magenta') puts "This text is normal."
And even more with Term::ANSIScreen:
require "Win32::Console::ANSI; require "Term::ANSIScreen qw/:color :cursor :screen/; locate 1, 1; puts "@ This is (1,1)", savepos; puts locate(24,60), "@ This is (24,60)"; loadpos; puts down(2), clline, "@ This is (3,16)"; setscroll 1, 20; color 'black on white'; clline; puts "This line is black on white."; puts color 'reset'; puts "This text is normal."; puts colored ("This text is bold blue.", 'bold blue'); puts "This text is normal."; puts colored ['bold blue'], "This text is bold blue."; puts "This text is normal.";
Windows NT/2000/XP does not support ANSI escape sequences in Win32 Console applications. This module emulates an ANSI console for the script which uses it.
* \e[#A CUU: CUrsor Up: Moves the cursor up by the specified number of lines without changing columns. If the cursor is already on the top line, this sequence is ignored. \e[A is equivalent to \e[1A. * \e[#B CUD: CUrsor Down: Moves the cursor down by the specified number of lines without changing columns. If the cursor is already on the bottom line, this sequence is ignored. \e[B is equivalent to \e[1B. * \e[#C CUF: CUrsor Forward: Moves the cursor forward by the specified number of columns without changing lines. If the cursor is already in the rightmost column, this sequence is ignored. \e[C is equivalent to \e[1C. * \e[#D CUB: CUrsor Backward: Moves the cursor back by the specified number of columns without changing lines. If the cursor is already in the leftmost column, this sequence is ignored. \e[D is equivalent to \e[1D. * \e[#E CNL: Cursor Next Line: Moves the cursor down the indicated # of rows, to column 1. \e[E is equivalent to \e[1E. * \e[#F CPL: Cursor Preceding Line: Moves the cursor up the indicated # of rows, to column 1. \e[F is equivalent to \e[1F. * \e[#G CHA: Cursor Horizontal Absolute: Moves the cursor to indicated column in current row. \e[G is equivalent to \e[1G. * \e[#;#H CUP: CUrsor Position: Moves the cursor to the specified position. The first # specifies the line number, the second # specifies the column. If you do not specify a position, the cursor moves to the home position: the upper-left corner of the screen (line 1, column 1). * \e[#;#f HVP: Horizontal and Vertical Position. Works the same way as the preceding escape sequence. * \e[s SCP: Save Cursor Position: Saves the current cursor position. You can move the cursor to the saved cursor position by using the Restore Cursor Position sequence. * \e[u RCP: Restore Cursor Position: Returns the cursor to the position stored by the Save Cursor Position sequence.
* \e[#J ED: Erase Display: * \e[0J Clears the screen from cursor to end of display. The cursor position is unchanged. * \e[1J Clears the screen from start to cursor. The cursor position is unchanged. * \e[2J Clears the screen and moves the cursor to the home position (line 1, column 1). \e[J is equivalent to \e[0J. (Some terminal/emulators respond to \e[J as if it were \e[2J. Here, the default is 0; it's the norm) * \e[#K EL: Erase Line: * \e[0K Clears all characters from the cursor position to the end of the line (including the character at the cursor position). The cursor position is unchanged. * \e[1K Clears all characters from start of line to the cursor position. (including the character at the cursor position). The cursor position is unchanged. * \e[2K Clears all characters of the whole line. The cursor position is unchanged. \e[K is equivalent to \e[0K. * \e[#L IL: Insert Lines: The cursor line and all lines below it move down # lines, leaving blank space. The cursor position is unchanged. The bottommost # lines are lost. \e[L is equivalent to \e[1L. * \e[#M DL: Delete Line: The block of # lines at and below the cursor are deleted; all lines below them move up # lines to fill in the gap, leaving # blank lines at the bottom of the screen. The cursor position is unchanged. \e[M is equivalent to \e[1M. * \e#\@ ICH: Insert CHaracter: The cursor character and all characters to the right of it move right # columns, leaving behind blank space. The cursor position is unchanged. The rightmost # characters on the line are lost. * \e[#P DCH: Delete CHaracter: The block of # characters at and to the right of the cursor are deleted; all characters to the right of it move left # columns, leaving behind blank space. The cursor position is unchanged. \e[P is equivalent to \e[1P.
* \e[#;...;#m SGM: Set Graphics Mode: Calls the graphics functions specified by the following values. These specified functions remain active until the next occurrence of this escape sequence. Graphics mode changes the colors and attributes of text (such as bold and underline) displayed on the screen. * Text attributes 0 All attributes off 1 Bold on 4 Underscore on 7 Reverse video on 8 Concealed on 21 Bold off 24 Underscore off 27 Reverse video off 28 Concealed off * Foreground colors 30 Black 31 Red 32 Green 33 Yellow 34 Blue 35 Magenta 36 Cyan 37 White * Background colors 40 Black 41 Red 42 Green 43 Yellow 44 Blue 45 Magenta 46 Cyan 47 White \e[m is equivalent to \e0m.
* \e(U Select null mapping - straight to character from the codepage of the console. * \e(K Select Windows to DOS mapping, if the corresponding map exist; no effect otherwise. This is the default mapping (if the map exist, of course). It's useful becarequire "one types the script with a Windows-based editor (using a Windows codepage) and the script prints its messages on the console using another codepage: without translation, the characters with a code greatest than 127 are different and the printed messages may be not readable. The conversion is done by the module Encode if it is installed (it's a standard module with Perl5.8, not Ruby yet). Otherwise, the conversion is limited to the following couples: WinLatin1 (cp1252) to DOSLatin1 (cp850) WinLatin1 (cp1252) to DOSLatinUS (cp437) WinLatin2 (cp1250) to DOSLatin2 (cp852) WinCyrillic(cp1251) to DOSCyrillic (cp855) * \e(#X This escape sequence is I<not> standard! It's an experimental one, just for fun :-) If <i>and only if</i> the console uses an Unicode police, it is possible to change its codepage with this escape sequence. No effect with an ordinary "Raster Font". (For Windows NT/2000/XP the currently available Unicode console font is the Lucida Console TrueType font.) # is the number of the codepage needed, 855 for cp855 for instance.
* Due to DOS-console limitations, the blink mode (text attributes 5 and 25) is not implemented.
Win32::Console, Term::ANSIColor, Term::ANSIScreen.
J-L Morel<EMAIL_ADDRESS>Home page: www.bribes.org/perl/wANSIConsole.html
Gonzalo Garramuņo<EMAIL_ADDRESS>Ruby port
Render unto Cæsar the things which are Cæsar‘s…
This module requires the module Win32::Console. Thanks to Aldo Calpini.
The method used to overload the print function is due to Matt Sergeant (see his module Win32::ASP).
Copyright (c) 2004 Gonzalo Garramuņo. All rights reserved. Copyright (c) 2003 J-L Morel. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License.


The best cookies you will ever have!
Shaped like salmon and made with salmon, everyone is sure to enjoy them!
Come in and try one today!
Everyday
6:00 a.m. to 8:00 p.m.
123 Pike St.
Seattle, WA 98123
Phone:<PHONE_NUMBER>
123 Airport St.
Tukwila, WA 98122
Phone:<PHONE_NUMBER>
123 Space Needle St.
Seattle, WA 98124
Phone:<PHONE_NUMBER>
123 Pill Hill St.
Seattle, WA 98125
Phone:<PHONE_NUMBER>
123 Beach St.
Seattle, WA 98121
Phone:<PHONE_NUMBER>


Skrolodex Example
Bringing new meaning to "slides"
Some boring topic
Point 1
Point 2
Point 1 again cause they're not paying attention
Code looks like you know what you're talking about
function sum(a, b) { return a + b; }
Why not edit some stuff for dramatic effect?
Type
Here


Routing error
The network load-balancer was unable to route the requested address; This is likely to be caused by the corresponding reverse proxy rule has not yet been created or the rule has since been removed from the
Turbine
appliance.


Read Jekyll Quick Start
Complete usage and documentation available at: Jekyll Bootstrap
In _config.yml
remember to specify your own data
This theme is still unfinished. If you’d like to be added as a contributor, please fork! We need to clean up the themes, make theme usage guides with theme-specific markup examples.


Constructor
new Quiz(questions)
Quiz constructor
Parameters:
| Name | Type | Description |
|---|---|---|
questions |
Array.<Question> | Question list |
Members
answers :Array.<Object>
Type:
- Array.<Object>
wrapper :Element
Type:
- Element
Methods
addQuestions(…questions) → {Quiz}
Add new questions to the Quiz
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
questions |
Array.<Question> |
<repeatable> |
Questions to add |
Returns:
The current Quiz
- Type
- Quiz
attachTo(node) → {Quiz}
Set the Quiz to run inside a DOM Element
Parameters:
| Name | Type | Description |
|---|---|---|
node |
String | Element | The Element to run the Quiz in |
Returns:
The current Quiz
- Type
- Quiz
offAnswer() → {Quiz}
Remove every onAnswer callback
Returns:
The current Quiz
- Type
- Quiz
offEnd() → {Quiz}
Remove every onEnd callback
Returns:
The current Quiz
- Type
- Quiz
offTimerStart() → {Quiz}
Remove every onTimerStart callback
Returns:
The current Quiz
- Type
- Quiz
onAnswer(callback) → {Quiz}
Add a callback after each user answer
Parameters:
| Name | Type | Description |
|---|---|---|
callback |
onAnswerCallback |
Returns:
The current Quiz
- Type
- Quiz
onEnd(callback) → {Quiz}
Add a callback at the end of the Quiz
Parameters:
| Name | Type | Description |
|---|---|---|
callback |
onEndCallback |
Returns:
The current Quiz
- Type
- Quiz
onTimerStart(callback) → {Quiz}
Add a callback after each timer start
Parameters:
| Name | Type | Description |
|---|---|---|
callback |
onTimerStartCallback |
Returns:
The current Quiz
- Type
- Quiz
removeQuestions(…ids) → {Quiz}
Remove questions from the Quiz
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
ids |
Array.<String> |
<repeatable> |
Ids of the questions to remove |
Returns:
The current Quiz
- Type
- Quiz
reset() → {Quiz}
Reset the Quiz to its base form
Returns:
The current Quiz
- Type
- Quiz
setTimeLimit(time) → {Quiz}
Set a time limit for each question
Parameters:
| Name | Type | Description |
|---|---|---|
time |
Number |
Returns:
The current Quiz
- Type
- Quiz
start(steps) → {Quiz}
Start the Quiz
Parameters:
| Name | Type | Description |
|---|---|---|
steps |
Number | Array.<Question> | The amount of questions to go through OR the list of questions to ask |
Returns:
The current Quiz
- Type
- Quiz


Map
Donate
View Gardens
Build a Community Garden
About
Volunteer
Contact
Email address
First Name
Last Name
Country
Select your option
Cuba
Jamaica
Haiti
St. Kitts and Nevis
Barbados
Trinidad and Tobago
Why would you like to start a community garden?
Submit request


| Producer Name | Producer JabberID | Producer Endpoint | Service Type | XMPP Server | XMPP Port |
|---|---|---|---|---|---|
| {{ producer.name }} | {{ producer.jabberId }} | {{ producer.endpoint }} | {{ producer.serviceType }} | {{ producer.xmppServer }} | {{ producer.xmppPort }} |
| Producer Name | Producer JabberID | Producer Endpoint | Service Type | XMPP Server | XMPP Port |
|---|---|---|---|---|---|
| {{ localProducer.name }} | {{ localProducer.jabberId }} | {{ localProducer.endpoint }} | {{ localProducer.serviceType }} | {{ localProducer.xmppServer }} | {{ localProducer.xmppPort }} |


I began my studies at Peo Nursery situated in Gaborone Botswana and there after continued with my primary at Thornhill Primary. My primary school experience was quite a bumpy ride due to the fact that I transferred from school to school quite a number of times! After having finished at Thornhill Primary I joined Rainbow Highschool, it was a great experience especially being in a new environment with much older kids. I finally finished my secondary studies in 2018 at Braeside Highschool.
After having finished Highschool I joined Alliance Francaise, Nairobi where i then majored in the French language. I am now a sowftware development student at Moringa School. I would also like to advance my studies in the Achitectural field in the near future!
I once had a dream of becoming a pilot and from that moment on I set my mind and strived towards acheiving what was once said impossible for women to do. I have not had much parental support related to that course but I aspire to study aviation after having finished my first degree!
I am interested in many things, for example:
This is the first website I created, I named it Hello World. I used HTML to create this site, it was easy and sufficient to use and i would recommend it for developer. My First Website


.eslintrc.js |
|
|
2015 December 1 https://github.com/bevry/base http://eslint.org |
/* eslint no-warning-comments: 0 */
'use strict'
const IGNORE = 0, WARN = 1, ERROR = 2, MAX_PARAMS = 4
module.exports = {
|
|
parser: 'babel-eslint', ^ the bundled ESLINT parser is now actually quite good, and supports the ecmaFeatures property |
ecmaFeatures: {
|
|
this property only works with the bundled ESLINT parser, not babel-eslint |
arrowFunctions: true,
binaryLiterals: true,
blockBindings: true,
classes: true,
defaultParams: true,
destructuring: true,
forOf: true,
generators: true,
modules: false, // Disabled due to https://twitter.com/balupton/status/671519915795345410
objectLiteralComputedProperties: true,
objectLiteralDuplicateProperties: true,
objectLiteralShorthandMethods: true,
objectLiteralShorthandProperties: true,
octalLiterals: true,
regexUFlag: true,
regexYFlag: true,
restParams: true,
spread: true,
superInFunctions: true,
templateStrings: true,
unicodeCodePointEscapes: true,
globalReturn: true,
jsx: true,
experimentalObjectRestSpread: true
},
env: {
browser: true,
node: true,
es6: true,
commonjs: true,
amd: true
},
rules: {
|
|
Problems with these rules If we can figure out how to enable the following, that would be great |
|
|
Two spaces after one line if or else: if ( blah ) return Insead of one space: if ( blah ) return |
|
|
No spaces on embedded function: .forEach(function(key, value){ instead of: .forEach(function (key, value) { |
|
|
Else and catch statements on the same line as closing brace: } else { } catch (e) { instead of: } else { |
|
|
Possible Errors The following rules point out areas where you might have made mistakes. |
|
|
ES6 supports dangling commas |
'comma-dangle': IGNORE,
|
|
Don't allow assignments in conditional statements (if, while, etc.) |
'no-cond-assign': [ERROR, 'always'],
|
|
Warn but don't error about console statements |
'no-console': WARN,
|
|
Allow while(true) loops |
'no-constant-condition': IGNORE,
|
|
Seems like a good idea to error about this |
'no-control-regex': ERROR,
|
|
Warn but don't error about console statements |
'no-debugger': WARN,
|
|
Don't allow duplicate arguments in a function, they can cause errors |
'no-dupe-args': ERROR,
|
|
Disallow duplicate keys in an object, they can cause errors |
'no-dupe-keys': ERROR,
|
|
Disallow duplicate case statements in a switch |
'no-duplicate-case': ERROR,
|
|
Disallow empty [] in regular expressions as they cause unexpected behaviour |
'no-empty-character-class': ERROR,
|
|
Allow empty block statements, they are useful for clarity |
'no-empty': IGNORE,
|
|
Overwriting the exception argument in a catch statement can cause memory leaks in some browsers |
'no-ex-assign': ERROR,
|
|
Disallow superflous boolean casts, they offer no value |
'no-extra-boolean-cast': ERROR,
|
|
Allow superflous parenthesis as they offer clarity in some cases |
'no-extra-parens': IGNORE,
|
|
Disallow superflous semicolons, they offer no value |
'no-extra-semi': IGNORE,
|
|
Seems like a good idea to error about this |
'no-func-assign': ERROR,
|
|
Seems like a good idea to error about this |
'no-inner-declarations': ERROR,
|
|
Seems like a good idea to error about this |
'no-invalid-regexp': ERROR,
|
|
Seems like a good idea to error about this |
'no-irregular-whitespace': ERROR,
|
|
Seems like a good idea to error about this |
'no-negated-in-lhs': ERROR,
|
|
Seems like a good idea to error about this |
'no-obj-calls': ERROR,
|
|
Seems like a good idea to error about this Instead of / / used / {ERROR}/ instead |
'no-regex-spaces': ERROR,
|
|
Seems like a good idea to error about this |
'no-sparse-arrays': ERROR,
|
|
Seems like a good idea to error about this |
'no-unexpected-multiline': ERROR,
|
|
Seems like a good idea to error about this |
'no-unreachable': ERROR,
|
|
Seems like a good idea to error about this |
'use-isnan': ERROR,
|
|
We use YUIdoc, not JSDoc |
'valid-jsdoc': IGNORE,
|
|
Seems like a good idea to error about this |
'valid-typeof': ERROR,
|
|
Best Practices These are rules designed to prevent you from making mistakes. They either prescribe a better way of doing something or help you avoid footguns. |
|
|
Meh |
'accessor-pairs': IGNORE,
|
|
This rule seems buggy |
'block-scoped-var': IGNORE,
|
|
Disable complexity checks, they are annoying and not that useful in detecting actual complexity |
'complexity': IGNORE,
|
|
We use blank returns for break statements |
'consistent-return': IGNORE,
|
|
Always require curly braces unless the statement is all on a single line |
'curly': [ERROR, 'multi-line'],
|
|
If we don't have a default cause, it probably means we should throw an error |
'default-case': ERROR,
|
|
Dots should be on the newlines chainableThingy .doSomething() .doSomethingElse() |
'dot-location': [ERROR, 'property'],
|
|
Use dot notation where possible |
'dot-notation': ERROR,
|
|
Unless you are doing == null, then force === to avoid truthy/falsey mistakes |
'eqeqeq': [ERROR, 'allow-null'],
|
|
Always use hasOwnProperty when doing for in |
'guard-for-in': ERROR,
|
|
Warn about alert statements in our code Use one of the suggested alternatives instead Reasoning is they could be mistaken for left over debugging statements |
'no-alert': WARN,
|
|
They are very slow |
'no-caller': ERROR,
|
|
Wow... |
'no-case-declarations': ERROR,
|
|
Seems like a good idea to error about this |
'no-div-regex': ERROR,
|
|
Returns in else statements offer code clarity, so disable this rule |
'no-else-return': IGNORE,
|
|
Seems like a good idea to error about this |
'no-empty-label': ERROR,
|
|
Seems sensible |
'no-empty-pattern': ERROR,
|
|
We know that == null is a null and undefined check |
'no-eq-null': IGNORE,
|
|
Eval is slow and unsafe, use vm's instead |
'no-eval': ERROR,
|
|
There is never a good reason for this |
'no-extend-native': ERROR,
|
|
Don't allow useless binds |
'no-extra-bind': ERROR,
|
|
Don't allow switch case statements to follow through, use continue keyword instead |
'no-fallthrough': ERROR,
|
|
Use zero when doing decimals, otherwise it is confusing |
'no-floating-decimal': ERROR,
|
|
Cleverness is unclear |
'no-implicit-coercion': ERROR,
|
|
A sneaky way to do evals |
'no-implied-eval': ERROR,
|
|
This throws for a lot of senseless things, like chainy functions |
'no-invalid-this': IGNORE,
|
|
Use proper iterators instead |
'no-iterator': ERROR,
|
|
We never use this, it seems silly to allow this |
'no-labels': ERROR,
|
|
We never use this, it seems silly to allow this |
'no-lone-blocks': ERROR,
|
|
Loop functions always cause problems, as the scope isn't clear through iterations |
'no-loop-func': ERROR,
|
|
This is a great idea Although ignore -1 and 0 as it is common with indexOf |
'no-magic-numbers': [WARN, { ignore: [-1, 0] }],
|
|
We like multi spaces for clarity E.g. We like if ( blah ) return foo Instead of: if ( blah ) return foo @TODO would be great to enforce the above |
'no-multi-spaces': IGNORE,
|
|
Use ES6 template strings instead |
'no-multi-str': ERROR,
|
|
Would be silly to allow this |
'no-native-reassign': ERROR,
|
|
We never use this, it seems silly to allow this |
'no-new-func': ERROR,
|
|
We never use this, it seems silly to allow this |
'no-new-wrappers': ERROR,
|
|
We never use this, it seems silly to allow this |
'no-new': ERROR,
|
|
We never use this, it seems silly to allow this |
'no-octal-escape': ERROR,
|
|
We never use this, it seems silly to allow this |
'no-octal': ERROR,
|
|
We got to be pretty silly if we don't realise we are doing this As such, take any usage as intentional and aware |
'no-param-reassign': IGNORE,
|
|
We use process.env wisely |
'no-process-env': IGNORE,
|
|
We never use this, it seems silly to allow this |
'no-proto': ERROR,
|
|
We never use this, it seems silly to allow this |
'no-redeclare': ERROR,
|
|
We never use this, it seems silly to allow this |
'no-return-assign': ERROR,
|
|
We never use this, it seems silly to allow this |
'no-script-url': ERROR,
|
|
We never use this, it seems silly to allow this |
'no-self-compare': ERROR,
|
|
We never use this, it seems silly to allow this |
'no-sequences': ERROR,
|
|
We always want proper error objects as they have stack traces and respond to instanceof Error checks |
'no-throw-literal': ERROR,
|
|
We never use this, it seems silly to allow this |
'no-unused-expressions': ERROR,
|
|
Seems sensible |
'no-useless-call': ERROR,
|
|
Seems sensible |
'no-useless-concat': ERROR,
|
|
We never use this, it seems silly to allow this |
'no-void': ERROR,
|
|
Warn about todos |
'no-warning-comments': [WARN, { terms: ['todo', 'fixme'], location: 'anywhere' }],
|
|
We never use this, it seems silly to allow this |
'no-with': ERROR,
|
|
Always specify a radix to avoid errors |
'radix': ERROR,
|
|
We appreciate the clarity late defines offer |
'vars-on-top': IGNORE,
|
|
Wrap instant called functions in parenthesis for clearer intent |
'wrap-iife': ERROR,
|
|
Because we force === and never allow assignments in conditions we have no need for yoda statements, so disable them |
'yoda': [ERROR, 'never'],
|
|
Strict Mode These rules relate to using strict mode. |
|
|
Ensure that use strict is specified to prevent the runtime erorr: SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode |
'strict': [ERROR, 'global'],
|
|
Variables These rules have to do with variable declarations. |
|
|
We don't care |
'init-declaration': IGNORE,
|
|
Don't allow the catch method to shadow objects as browsers handle this differently Update: We don't care for IE8 |
'no-catch-shadow': IGNORE,
|
|
Don't use delete, it disables optimisations |
'no-delete-var': ERROR,
|
|
We never use this, it seems silly to allow this |
'no-label-var': ERROR,
|
|
We never use this, it seems silly to allow this |
'no-shadow-restricted-names': ERROR,
|
|
We use shadowing |
'no-shadow': IGNORE,
|
|
Makes sense |
'no-undef-init': ERROR,
|
|
Error when an undefined variable is used |
'no-undef': ERROR,
|
|
typeof blah === 'undefined' should always be used |
'no-undefined': ERROR,
|
|
Warn us when we don't use something |
'no-unused-vars': WARN,
|
|
Error when we try and use something before it is defined |
'no-use-before-define': ERROR,
|
|
Node.js and CommonJS These rules are specific to JavaScript running on Node.js or using CommonJS in the browser. |
|
|
Seems to difficult to enforce |
'callback-return': IGNORE,
|
|
We use require where it is appropriate to use it |
'global-require': IGNORE,
|
|
Force handling of callback errors |
'handle-callback-err': ERROR,
|
|
@TODO decide if this is good or not |
'no-mixed-requires': ERROR,
|
|
Disallow error prone syntax |
'no-new-require': ERROR,
|
|
Always use path.join for windows support |
'no-path-concat': ERROR,
|
|
We know what we are doing |
'no-process-exit': IGNORE,
|
|
No need to disallow any modules |
'no-restricted-modules': IGNORE,
|
|
Sometimes sync methods are useful, so warn but don't error |
'no-sync': WARN,
|
|
Stylistic These rules are purely matters of style and are quite subjective. |
|
|
We don't use spaces with brackets |
'array-bracket-spacing': [ERROR, 'never'],
|
|
Disallow or enforce spaces inside of single line blocks |
'block-spacing': [ERROR, 'always'],
|
|
Opening brace on same line, closing brace on its own line, except when statement is a single line |
'brace-style': [ERROR, 'stroustrup', { allowSingleLine: true }],
|
|
Use camel case |
'camelcase': ERROR,
|
|
Require a comma after always |
'comma-spacing': [ERROR, { before: false, after: true }],
|
|
Commas go last, we have tooling to detect if we forget a comma |
'comma-style': [ERROR, 'last'],
|
|
Require or disallow padding inside computed properties |
'computed-property-spacing': [ERROR, 'never'],
|
|
Enabling this was incredibly annoying when doing layers of nesting |
'consistent-this': IGNORE,
|
|
Enable to make UNIX people's lives easier |
'eol-last': ERROR,
|
|
We like anonymous functions |
'func-names': IGNORE,
|
|
Prefer to define functions via variables |
'func-style': [WARN, 'declaration'],
|
|
Sometimes short names are appropriate |
'id-length': IGNORE,
|
|
Camel case handles this for us |
'id-match': IGNORE,
|
|
Use tabs and indent case blocks |
'indent': [ERROR, 'tab', { SwitchCase: WARN }],
|
'jsx-quotes': [ERROR, 'prefer-double'],
|
|
|
Space after the colon |
'key-spacing': [ERROR, {
beforeColon: false,
afterColon: true
}],
|
|
Enforce unix line breaks |
'linebreak-style': [ERROR, 'unix'],
|
|
Enforce new lines before block comments |
'lines-around-comment': [ERROR, { beforeBlockComment: true, allowBlockStart: true }],
|
|
Disabled to ensure consistency with complexity option |
'max-depth': IGNORE,
|
|
We use soft wrap |
'max-len': IGNORE,
|
|
We are smart enough to know if this is bad or not |
'max-nested-callbacks': IGNORE,
|
|
Sometimes we have no control over this for compat reasons, so just warn |
'max-params': [WARN, MAX_PARAMS],
|
|
We should be able to use whatever feels right |
'max-statements': IGNORE,
|
|
Constructors should be CamelCase |
'new-cap': ERROR,
|
|
Always use parens when instantiating a class |
'new-parens': ERROR,
|
|
Too difficult to enforce correctly as too many edge-cases |
'newline-after-var': IGNORE,
|
|
Don't use the array constructor when it is not needed |
'no-array-constructor': ERROR,
|
|
We never use bitwise, they are too clever |
'no-bitwise': ERROR,
|
|
We use continue |
'no-continue': IGNORE,
|
|
We like inline comments |
'no-inline-comments': IGNORE,
|
|
The code could be optimised if this error occurs |
'no-lonely-if': ERROR,
|
|
Don't mix spaces and tabs @TODO maybe [ERROR, 'smart-tabs'] will be better, we will see |
'no-mixed-spaces-and-tabs': ERROR,
|
|
We use multiple empty lines for styling |
'no-multiple-empty-lines': IGNORE,
|
|
Sometimes it is more understandable with a negated condition |
'no-negated-condition': IGNORE,
|
|
Sometimes these are useful |
'no-nested-ternary': IGNORE,
|
|
Use {} instead of new Object() |
'no-new-object': ERROR,
|
|
We use plus plus |
'no-plusplus': IGNORE,
|
|
Handled by other rules |
'no-restricted-syntax': IGNORE,
|
|
We never use this, it seems silly to allow this |
'no-spaced-func': ERROR,
|
|
Sometimes ternaries are useful |
'no-ternary': IGNORE,
|
|
Disallow trailing spaces |
'no-trailing-spaces': ERROR,
|
|
Sometimes this is useful when avoiding shadowing |
'no-underscore-dangle': IGNORE,
|
|
Sensible |
'no-unneeded-ternary': ERROR,
|
|
Desirable, but too many edge cases it turns out where it is actually preferred |
'object-curly-spacing': IGNORE, // [ERROR, 'always'],
|
|
We like multiple var statements |
'one-var': IGNORE,
|
|
Force use of shorthands when available |
'operator-assignment': [ERROR, 'always'],
|
|
Should be before, but not with =, *=, /=, += lines @TODO figure out how to enforce |
'operator-linebreak': IGNORE,
|
|
This rule doesn't appear to work correclty |
'padded-blocks': IGNORE,
|
|
Seems like a good idea to error about this |
'quote-props': [ERROR, 'consistent-as-needed'],
|
|
Use single quotes where escaping isn't needed |
'quotes': [ERROR, 'single', 'avoid-escape'],
|
|
We use YUIdoc |
'require-jsdoc': IGNORE,
|
|
If semi's are used, then add spacing after |
'semi-spacing': [ERROR, { before: false, after: true }],
|
|
Never use semicolons |
'semi': [ERROR, 'never'],
|
|
We don't care if our vars are alphabetical |
'sort-vars': IGNORE,
|
|
Always force a space after a keyword |
'space-after-keywords': [ERROR, 'always'],
|
|
Always force a space before a { |
'space-before-blocks': [ERROR, 'always'],
|
|
function () {, get blah () { |
'space-before-function-paren': [ERROR, 'always'],
|
|
We do this |
'space-before-keywords': [ERROR, 'always'],
|
|
This is for spacing between [], so [ WARN, ERROR, 3 ] which we don't want |
'space-in-brackets': IGNORE,
|
|
This is for spacing between (), so doSomething( WARN, ERROR, 3 ) or if ( WARN === 3 ) which we want for ifs, but don't want for calls |
'space-in-parens': IGNORE,
|
|
We use this |
'space-infix-ops': ERROR,
|
|
We use this |
'space-return-throw-case': ERROR,
|
|
We use this |
'space-unary-ops': ERROR,
|
|
We use this 'spaced-line-comment': ERROR, |
'spaced-comment': ERROR,
|
|
We use this @TODO revise this |
'wrap-regex': ERROR,
|
|
ECMAScript 6 |
|
|
Sensible to create more informed and clear code |
'arrow-body-style': [ERROR, 'as-needed'],
|
|
We do this, no reason why, just what we do |
'arrow-parens': [ERROR, 'always'],
|
|
Require consistent spacing for arrow functions |
'arrow-spacing': ERROR,
|
|
Makes sense as otherwise runtime error will occur |
'constructor-super': ERROR,
|
|
Seems the most consistent location for it |
'generator-star-spacing': [ERROR, 'before'],
|
|
Seems sensible |
'no-arrow-condition': ERROR,
|
|
Seems sensible |
'no-class-assign': ERROR,
|
|
Makes sense as otherwise runtime error will occur |
'no-const-assign': ERROR,
|
|
Makes sense as otherwise runtime error will occur |
'no-dupe-class-members': ERROR,
|
|
Makes sense as otherwise runtime error will occur |
'no-this-before-super': ERROR,
|
|
@TODO This probably should be an error however it is useful for: for ( var key in obj ) { which hopefully is more performant than let (@TODO check if it actually is more performant) |
'no-var': WARN,
|
|
Enforce ES6 object shorthand |
'object-shorthand': ERROR,
|
|
Better performance when running native but horrible performance if not running native as could fallback to bind https://travis-ci.org/bevry/es6-benchmarks |
'prefer-arrow-callback': IGNORE,
|
|
Sure, why not |
'prefer-const': WARN,
|
|
Controversial change, but makes sense to move towards to reduce the risk of bad people overwriting apply and call https://github.com/eslint/eslint/issues/ERROR939 |
'prefer-reflect': WARN,
|
|
Sure, why not |
'prefer-spread': ERROR,
|
|
Too annoying to enforce |
'prefer-template': IGNORE,
|
|
Makes sense |
'require-yield': ERROR
}
}
|


Determined to spread the appreciation, power, and knowledge of computer science
we are
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Facere repellat, perferendis mollitia expedita veniam soluta placeat aspernatur blanditiis. Voluptate incidunt eos esse sed amet ipsum aperiam ipsa dolorem autem aliquid?
 If you’re determined to make something happen and put the dedication into it, then you can make anything.


The BOOST_PP_SEQ_FILTER macro filters a seq according to a
supplied criterion.
Usage
BOOST_PP_SEQ_FILTER(pred, data, seq)
Arguments
- pred
-
A ternary predicate of the form pred(s, data, elem).
This predicate is expanded by BOOST_PP_SEQ_FILTER for each element in seq
with the next available BOOST_PP_SEQ_FOLD_LEFT fold step, the auxiliary data,
and the current element in seq. This macro must return a integral
value in the range of 0 to BOOST_PP_LIMIT_MAG. If this
predicate expands to non-zero for a certain element, that element is included
in the resulting seq.
- data
-
Auxiliary data passed to pred.
- seq
-
The seq to be filtered.
Remarks
This macro expands pred for each element in seq. It builds
a new seq out of each element for which pred returns non-zero.
For maximum efficiency, use BOOST_PP_SEQ_FILTER_S.
See Also
Requirements
Sample Code


--- title: "The Mandelbear's Rough Guide to HTML" tags: [ web, reference, html ] date: "2006-08-19 22:01" mood: "pedantic" picture: "" location: "home" options: "preformatted backdated" itemid: "1737" layout: post ---
Since I've noticed that a couple of new folks have either joined LJ, or posted after a long absence, and since I just spouted off a comment describing the basic HTML tags, here's another take on it, with the rough edges smoothed off.
Here are the essential tags for LJ. You can get away with nothing but these, and let LJ's automatic formatting take care of everything else.
Inside of paragraphs,  (emphasis),  (bold), and occasionally  (italics, used for citations)  (fixed-width), and  (strike-out). You can also use , , <tt>, and <s>, but it's considered cheating.  (underline) can also be used, but it's confusing given the almost universal convention that links are underlined. See what I mean?

 (horizontal rule) and  (image) have their uses; they
are two of the three tags that do not need to be "closed" (see inside the cut).
 tags need two "attributes" between the "img" and the ">":
src="url-of-image"
to point to the image, and
alt="text"
to specify the text that a blind person
or search engine will see in place of the image. If an image is
just there as a spacer or decoration, you can use
alt=" "
.
The final essential tag is
anchor-text, which makes a
link. The "a" comes from "anchor", for reasons that are now mainly
historical. On Livejournal, there are two more handy tags that turn into
special kinds of link: <lj user="username"> (which
doesn't need to be closed) links to a user's profile and journal, and
<lj-cut>...</lj-cut> cuts out a long block of text and
replaces it with a link. Add a text="link-text"
attribute to
replace the default "details".
First of all, don't worry too much about the , , <title>, and  tags. If you're on LJ or some other blogging system, they'll be supplied automagically. Most editors will put them in as well. If not, you can always copy them from some other page.
Secondly, almost all tags have to be "closed" -- if something starts with, for example, <foo>, you have to close it with </foo>, otherwise the browser won't know where to stop fooing. If you see a page that's all italics or bold, that's probably why. In practice you can get away with not closing paragraphs and list items, but it's not advisable. Browsers handle it OK, but some templating systems -- including LJ's -- have trouble. Tags like
 that are "self-closing" can be marked with a slash before the final ">" (i.e.,
) to make them XML-compatible -- this hybrid is called XHTML and you mostly don't need to worry about it.
The most essential tag is
, which sets off a paragraph. You mostly don't need it in LJ, which automatically turns the end of a line into a
 tag, which "breaks" a line.
 is one of the three tags that don't have to be closed. If you want to use
, or any of the fancy stuff mentioned here, on LJ, turn off auto-formatting or you'll get lots of extra white space.
The headings,
 thru
. In practice I use
 only for page titles, and rarely if ever go down as far as
.
The lists:
 and
 for bulletted (unordered) and numbered (ordered) lists, using
 for list items;
 for "definition" lists, with
 for "defined terms" and
 for "definition data".
You can get an indented block of text, commonly used for long quotations, by enclosing it in
...
.
Tables add a whole level of complication, and are rarely worth the trouble unless (a) you really need a table, or (b) you want to make a pretty layout without using css styles. Just for reference, enclose the whole table in a
...
, and each row in
...
. Table headings are enclosed in ...	, and ordinary table data in ...	. You can spend lots of time tweaking tables to get them to look right. It's rarely worthwhile.
One more attribute is often handy: align="..."
. The value
can be "left"
, "right"
, or
"center"
, and you can use them on images, paragraphs, or
table data. To center a whole range of paragraphs, use

And just for completeness, there are these things called "entities" that are used
to get special characters (like "<") into ordinary text. They all start with
an ampersand (&) and end with a semicolon (;). The most useful ones -- absolutely
essential, in fact -- are &
for "ampersand" (&),
<
for "less than" (<), and
>
for "greater than" (>). Another handy one is
for "non-breaking space" -- it looks like a space, but
the browser treats it as a letter and so won't allow it to turn into a line break. Good if
you want to keep an entire phrase, computer command, or tag example on one line.
So there you have it. For more details, all the rest of the tags and attributes I've left out, and an excellent reference, see The Bare Bones Guide to HTML.