Laying out page elements in rows divided using a 12 column grid system.
Design pages so they adapt both the size of elements like images and fonts, but also the relative location of the elements, or more often the boxes the contents are in.
This is writing HTML so it describes the meaning and relationships and hierarchy of the page contents, and not the look and feel of those elements.
Bootstrap is a collection of CSS styles and JavaScript functions that we can use to layout and style our page and manage common user interactions such as pop-up "lightbox" images.
JQuery is another helper JavaScript library to help with visual user interactions. Bootstrap relies on JQuery for many of its advance UI behaviours. As such, it is important that when both these libraries are linked to in the "head" section of a page, the JQueary script tag is prior to the Bootstrap script tag


The Editor Caret API opens up the editor to give information about its carets and to manipulate them.
The whole API is organized around the
EditorCaret
class, an implementation of the javax.swing.text.Caret
managing
all the carets in a single document. Information about carets maintained by
EditorCaret
is stored in the immutable class
CaretInfo
.
Once a caret gets mutated its corresponding caret info becomes obsolete
and new caret info instance gets created lazily.
EditorCaretListener
can be registered to an EditorCaret
to be informed about caret
addition/removal or movement with an
EditorCaretEvent
.
The EditorCaret
mutates its carets in a single transaction.
CaretMoveContext
allows clients implementing
CaretMoveHandler
to manipulate carets. The following code shows how all carets are moved to the
end of the word they are currently on.
editorCaret.moveCarets((CaretMoveContext context) -> {
for (CaretInfo ci : context.getOriginalCarets()) {
Position pos = target.getDocument().createPosition(Utilities.getWordEnd(target, ci.getDot()));
context.setDot(ci, pos);
}
});
Document
changesThe basics of the locking and events model of Swing documents is described in the javadoc of the javax.swing.text.AbstractDocument class. Netbeans documents use the same patterns and so does the Caret API, because of its tight relation to documents. The fundamentals of the Swing documents locking model are that any changes to a document are done under the document's write lock, the document's listeners are notified synchronously on the mutating thread and have full read access to the document, but can't modify it.
EditorCaret
to query or
mutate its carets, should be called with document's read-lock acquired which
will guarantee stability of CaretInfo#getDot()
and
CaretInfo#getMark()
and prevent caret merging as a possible
effect of document modifications.
EditorCaret
needs to notify its listeners that some
of its carets have changed, all the events have to be fired under the
layer's document's read lock. Obviously, the listeners are not allowed to
modify the document from the event notification methods.
The Caret API does not use any special threads and any processing it does is always done on the caller's thread. This means that the above described constraints hardly cause any limitation for practical use.
The Caret API is generally thread-safe meaning that it can be used simultaneously from multiple threads if not stated otherwise. This doesn't change in any way the rule of acquiring a read lock before calling the API. Swing documents generally allow access for multiple readers that can run concurrently.
It may be desirable (especially for NavigationListeners, but possibly for EditorCaretListeners too) to determine what was the reason leading to caret movement. The caller of Caret API which intends to position the caret may provide an optional MoveCaretsOrigin instance to Caret API methods to indicate type of action leading to the movement. This description is used to select NavigationFilters which receive and can modify the movement, and is available to all invoked NavigationFilters or EditorCaretListeners contacted by the Caret API operation.
Only one action type is currently defined by the API - DIRECT_NAVIGATION. This type identifies operations actions, whose only task is to reposition the caret (i.e. left/right, page-up, document-begin) from actions, which position caret as a part of larger task (i.e. search, goto type, ...).
The Caret API implements and extends the concept of swing
NavigationFilters. The Filter
gets notified on CaretInfo
movement; so if more Carets are present,
a NavigationFilter
will see all their moves. Navigation Filters are
called with a special instance of
FilterBypass extending
NavigationFilterBypass. The Filter can downcast the FilterBypass to access extended information
about the current caret's movement:
public void setDot(FilterBypass fb, int dot, Position.Bias bias) {
if (fb instanceof NavigationFilterBypass) {
NavigationFilterBypass nfb = (NavigationFilterBypass)fb;
// get the Origin object created by the caret-moving operation, can query the details
MoveCaretsOrigin origin = nfb.getOrigin();
// get the individual caret in multi-caret scenario
CaretInfo info = nfb.getCaretInfo();
// get the whole EditorCaret
EditorCaret eCaret = nfb.getEditorCaret();
}
}
Navigation filters can be also selectively registered for only certain type of actions described by MoveCaretsOrigin instance.
EditorCaret eCaret = .... ; // obtain EditorCaret
eCaret.setNavigationFilter(
new NavigationFilter() {
// navigation filter implementation, not important for the example
},
new MoveCaretsOrigin(MoveCaretsOrigin.DIRECT_NAVIGATION)
);
Such filters are only called if the caller of Caret API provides a suitable MoveCaretsOrigin description of the move operatoion.
// Action perform method
editorCaret.moveCarets(new CaretMoveHandler() {
@Override
public void moveCarets(CaretMoveContext context) {
...
}
}, new MoveCaretsOrigin(
// The action is a raw movement command
MoveCaretsOrigin.DIRECT_NAVIGATION,
// The approximate direction of the movement; can be 0.
SwingConstants.NORTH)
);
Abstract boilerplate for NavigationFilters
is created,
CascadingNavigationFilter
which allows to chain individual filters. Implementors are encouraged to use it, or otherwise
pass the control to previously registered NavigationFilter
in case the movement
event is not handled by the custom implementation.
As a technical limitation, EditorCaret
has to implement Caret
to be able to work with Swings Text API. The Caret
interface is not
aware of multiple carets and a call to setDot(int)
will only retain
a single caret. For multiple carets a call to moveDot(int)
will move the last
caret only (but it retains other existing carets).+
editorTextComponent.getCaret()
will now always return EditorCaret
instance instead of the original caret implementation org.netbeans.editor.BaseCaret
.
Since clients were expected to only rely on javax.swing.text.Caret
returned type
(except internal code in editor modules) they should not be affected by the change
since EditorCaret
implements Caret
interface.
With official Caret API the clients can start to cast
editorTextComponent.getCaret()
to EditorCaret
type
and use its extended functionality.
Use cases are shown in javadoc documentation of particular methods.


-
Aman Krishna
Gamer
-
Prabodh Tripathi
Probby
-
Kriti
Moti
-
Rishabh Mehta
#MehtaKiSelfie
-
Jibin Sabu Mathews
Bin Ji
-
Nikita Kapoor
Nico
-
Aanisha Mishra
Annie
-
Janpreet Singh
Jenny
-
Abdur Rehman Danish
ARDuino guy
-
Medha Bajpai
Medhavi
-
Eshita Khakharia
Eshie
-
Venkat Bulusu
Venky
-
Ishu Ratna
Issue
-
Ashish Saini
Ashu
-
Sambuddha Nath
Sam!
-
Abhijeet
Abhi
-
Manjur Ansari
MaAn
-
Soubir Kumar
Sobbie
-
Anupam Singh
ANSI


| Date |
Various date utilities |
| date |
Get/set date component of a date-time |
| date<- |
Get/set date component of a date-time |
| DateTimeUpdate |
Changes the components of a date object |
| date_decimal |
Converts a decimal to a date |
| day |
Get/set days component of a date-time |
| day<- |
Get/set days component of a date-time |
| days |
Create or parse period objects |
| days_in_month |
Get the number of days in the month of a date-time |
| ddays |
Create a duration object. |
| decimal_date |
Converts a date to a decimal of its year |
| dhours |
Create a duration object. |
| dmicroseconds |
Create a duration object. |
| dmilliseconds |
Create a duration object. |
| dminutes |
Create a duration object. |
| dmonths |
Create a duration object. |
| dmy |
Parse dates with *y*ear, *m*onth, and *d*ay components |
| dmy_h |
Parse date-times with *y*ear, *m*onth, and *d*ay, *h*our, *m*inute, and *s*econd components. |
| dmy_hm |
Parse date-times with *y*ear, *m*onth, and *d*ay, *h*our, *m*inute, and *s*econd components. |
| dmy_hms |
Parse date-times with *y*ear, *m*onth, and *d*ay, *h*our, *m*inute, and *s*econd components. |
| dnanoseconds |
Create a duration object. |
| dpicoseconds |
Create a duration object. |
| dseconds |
Create a duration object. |
| dst |
Get *d*aylight *s*avings *t*ime indicator of a date-time |
| duration |
Create a duration object. |
| Duration-class |
Duration class |
| durations |
Duration class |
| dweeks |
Create a duration object. |
| dyears |
Create a duration object. |
| dym |
Parse dates with *y*ear, *m*onth, and *d*ay components |
| instant |
Is x a date-time object? |
| instants |
Is x a date-time object? |
| interval |
Utilities for creation and manipulation of 'Interval' objects |
| Interval-class |
Interval class |
| intervals |
Interval class |
| int_aligns |
Utilities for creation and manipulation of 'Interval' objects |
| int_diff |
Utilities for creation and manipulation of 'Interval' objects |
| int_end |
Utilities for creation and manipulation of 'Interval' objects |
| int_end<- |
Utilities for creation and manipulation of 'Interval' objects |
| int_flip |
Utilities for creation and manipulation of 'Interval' objects |
| int_length |
Utilities for creation and manipulation of 'Interval' objects |
| int_overlaps |
Utilities for creation and manipulation of 'Interval' objects |
| int_shift |
Utilities for creation and manipulation of 'Interval' objects |
| int_standardize |
Utilities for creation and manipulation of 'Interval' objects |
| int_start |
Utilities for creation and manipulation of 'Interval' objects |
| int_start<- |
Utilities for creation and manipulation of 'Interval' objects |
| is.Date |
Various date utilities |
| is.difftime |
Is x a difftime object? |
| is.duration |
Create a duration object. |
| is.instant |
Is x a date-time object? |
| is.interval |
Utilities for creation and manipulation of 'Interval' objects |
| is.period |
Create or parse period objects |
| is.POSIXct |
Various POSIX utilities |
| is.POSIXlt |
Various POSIX utilities |
| is.POSIXt |
Various POSIX utilities |
| is.timepoint |
Is x a date-time object? |
| is.timespan |
Is x a length of time? |
| isoweek |
Get/set weeks component of a date-time |
| isoyear |
Get/set years component of a date-time |
| m+ |
Add and subtract months to a date without exceeding the last day of the new month |
| m- |
Add and subtract months to a date without exceeding the last day of the new month |
| make_date |
Efficient creation of date-times from numeric representations |
| make_datetime |
Efficient creation of date-times from numeric representations |
| make_difftime |
Create a difftime object. |
| mday |
Get/set days component of a date-time |
| mday<- |
Get/set days component of a date-time |
| mdy |
Parse dates with *y*ear, *m*onth, and *d*ay components |
| mdy_h |
Parse date-times with *y*ear, *m*onth, and *d*ay, *h*our, *m*inute, and *s*econd components. |
| mdy_hm |
Parse date-times with *y*ear, *m*onth, and *d*ay, *h*our, *m*inute, and *s*econd components. |
| mdy_hms |
Parse date-times with *y*ear, *m*onth, and *d*ay, *h*our, *m*inute, and *s*econd components. |
| microseconds |
Create or parse period objects |
| milliseconds |
Create or parse period objects |
| minute |
Get/set minutes component of a date-time |
| minute<- |
Get/set minutes component of a date-time |
| minutes |
Create or parse period objects |
| month |
Get/set months component of a date-time |
| month<- |
Get/set months component of a date-time |
| months.numeric |
Create or parse period objects |
| ms |
Parse periods with *h*our, *m*inute, and *s*econd components |
| my |
Parse dates with *y*ear, *m*onth, and *d*ay components |
| myd |
Parse dates with *y*ear, *m*onth, and *d*ay components |
| yday |
Get/set days component of a date-time |
| yday<- |
Get/set days component of a date-time |
| ydm |
Parse dates with *y*ear, *m*onth, and *d*ay components |
| ydm_h |
Parse date-times with *y*ear, *m*onth, and *d*ay, *h*our, *m*inute, and *s*econd components. |
| ydm_hm |
Parse date-times with *y*ear, *m*onth, and *d*ay, *h*our, *m*inute, and *s*econd components. |
| ydm_hms |
Parse date-times with *y*ear, *m*onth, and *d*ay, *h*our, *m*inute, and *s*econd components. |
| year |
Get/set years component of a date-time |
| year<- |
Get/set years component of a date-time |
| years |
Create or parse period objects |
| ym |
Parse dates with *y*ear, *m*onth, and *d*ay components |
| ymd |
Parse dates with *y*ear, *m*onth, and *d*ay components |
| ymd_h |
Parse date-times with *y*ear, *m*onth, and *d*ay, *h*our, *m*inute, and *s*econd components. |
| ymd_hm |
Parse date-times with *y*ear, *m*onth, and *d*ay, *h*our, *m*inute, and *s*econd components. |
| ymd_hms |
Parse date-times with *y*ear, *m*onth, and *d*ay, *h*our, *m*inute, and *s*econd components. |
| yq |
Parse dates with *y*ear, *m*onth, and *d*ay components |


CSPICE_TIMDEF_SET sets the default zone/calendar/system definitions
associated with calendar input strings.
Given:
item is the Time subsystem parameter value to set.
[1,c1] = size(item); char = class(item)
or
[1,1] = size(item); cell = class(item)
The parameters and corresponding values:
item Allowed Values
--------- --------------
'CALENDAR' 'GREGORIAN'
'JULIAN'
'MIXED'
'SYSTEM' 'TDB'
'TDT'
'UTC'
'ZONE' 'EST', 'EDT', 'CST', 'CDT',
'MST', 'MDT', 'PST', 'PDT'
'UTC+HR'
'UTC-HR' ( 0 <= HR < 13 )
'UTC+HR:MN' ( 0 <= MN < 60 )
'UTC-HR:MN'
The case of item is not significant.
value the value to associate to 'item'. Note that
value is checked to ensure it is within the range
of allowed values for item. If it is not within
the expected range and appropriate error message
signals.
[1,1] = size(value); double = class(value)
The case of 'value' is not significant.
the call:
cspice_timdef_set( item, value )
returns:
No return value. The routine associates 'item' to 'value'.
Any numerical results shown for this example may differ between
platforms as the results depend on the SPICE kernels used as input
and the machine specific arithmetic implementation.
Example(1):
ITEMS = { 'CALENDAR', 'SYSTEM' };
%
% Retrieve the time definition settings.
%
for i=1:numel(ITEMS)
value = cspice_timdef_get( ITEMS(i) );
fprintf( '%s -> %s\n', char(ITEMS(i)), value )
end
MATLAB outputs:
CALENDAR -> GREGORIAN
SYSTEM -> UTC
Example(2):
ITEMS = { 'CALENDAR', 'SYSTEM' };
%
% Set the calendar to 'MIXED'
%
ITEM = 'CALENDAR';
VALUE = 'MIXED';
cspice_timdef_set( ITEM, VALUE )
%
% Retrieve the time definition settings.
%
for i=1:numel(ITEMS)
value = cspice_timdef_get( ITEMS(i) );
fprintf( '%s -> %s\n', char(ITEMS(i)), value )
end
MATLAB outputs:
CALENDAR -> MIXED
SYSTEM -> UTC
The routines cspice_timdef_get and cspice_timdef_set exist
to allow SPICE toolkit users to alter the default interpretation
of time strings made by the routine cspice_str2et.
Normally, unlabeled time strings are assumed to belong to
the Gregorian Calendar and are UTC times. However, you
may alter the default behavior by calling cspice_timdef_set.
Calendar
--------
You may set the calendar to be one of the following
Gregorian --- This is the calendar used daily the
Western Hemisphere. Leap years occur in this
calendar every 4 years except on centuries
such as 1900 that are not divisible by 400.
Julian --- This is the calendar that was in use prior
to October 15, 1582. Leap years occur every
4 years on the Julian Calendar (including all
centuries.) October 5, 1582 on the Julian
calendar corresponds to October 15, 1582 of the
Gregorian Calendar.
Mixed --- This calendar uses the Julian calendar
for days prior to October 15, 1582 and
the Gregorian calendar for days on or after
October 15, 1582.
To set the default calendar, select on of the above for value
and make the following call.
cspice_timdef_set( 'CALENDAR', value )
System
-------
You may set the system used for keeping time to be UTC (default)
TDB (barycentric dynamical time) or TDT (terrestrial dynamical
time). Both TDB and TDT have no leapseconds. As such the time
elapsed between any two epochs on these calendars does not depend
upon when leapseconds occur.
To set the default time system, select TDT, TDB or UTC for value
and make the following call.
cspice_timdef_set( 'SYSTEM', value )
Note that such a call has the side effect of setting the value
associated with ZONE to a blank.
Zone
-----
You may alter the UTC system by specifying a time zone (UTC
offset). For example you may specify that epochs are referred
to Pacific Standard Time (PST --- UTC-7). The standard
abbreviations for U.S. time zones are recognized:
EST UTC-5
EDT UTC-4
CST UTC-6
CDT UTC-5
MST UTC-7
MDT UTC-6
PST UTC-8
PDT UTC-7
In addition you may specify any commercial time zone by using
"offset" notation. This notation starts with the letters "UTC"
followed by a + for time zones east of Greenwich and - for
time zones west of Greenwich. This is followed by the number
of hours to add or subtract from UTC. This is optionally followed
by a colon ':' and the number of minutes to add or subtract (based
on the sign that follows "UTC") to get the
local time zone. Thus to specify the time zone of Calcutta you
would specify the time zone to be UTC+5:30. To specify the
time zone of Newfoundland use the time zone UTC-3:30.
To set a default time zone, select one of the "built-in" U.S.
zones or construct an offset as discussed above. Then make the
call
cspice_timdef_set( 'ZONE', value );
If you "GET" a 'ZONE' it will either be blank, or have the
form "UTC+/-HR[:MN]"
Note that such a call has the side effect of setting the value
associated with SYSTEM to a blank.
For important details concerning this module's function, please refer to
the CSPICE routine timdef_c.
MICE.REQ
TIME.REQ
-Mice Version 1.0.1, 13-FEB-2015, EDW (JPL)
Edited I/O section to conform to NAIF standard for Mice documentation.
-Mice Version 1.0.0, 14-NOV-2013, EDW (JPL)
Change time software defaults.
Time Zones
Gregorian and Julian Calendars
|


WITNESS LIST Appropriations-S/C on Education Committee February 17, 2003-7:00A Budget For: Edwards, Susan (Texas Community College Teachers Association) Halton, John C. (Texas Engineering and Technical Consortium) Mayes, Gray (Texas Instruments; Texas Engineering and Technical Consortium) McDonald, Carol L. (Independent Colleges and Universities of Texas, Inc.) Pulley, Tegwin (Texas Instruments; Texas Engineering and Technical Consortium) On: Alexander, John H. (Midwestern State University) Brown, Dr. Don W. (Higher Education Coordinating Board) Crowe, Bill (Texas Association of Community Colleges) Daniel, David (Texas Association of Community Colleges) Flack, Teri E. (Higher Education Coordinating Board) Floyd, Brenda (Texas Woman's University) Gallant, Danny R. (Stephen F. Austin State University) Garcia, Rey (Texas Association of Community Colleges) Gilliam, Cynthia (Cindy) (North Harris Montgomery Community College District) Leslie, Dr. Bruce H. (Houston Community College System) Maxwell, Valarie (Midwestern State University) Pickelman, John (Self and North Harris Montgomery Community College District) Rogers, Jesse W. (Midwestern State University) Scott, Tom (University of Texas System) Slade, Priscilla (Texas Southern University) Smith, Roland K. (Stephen F. Austin State University) Stuart, Ann (Texas Woman's University) Thomas, Ph.D., Gayla B. (Texas Southern University) Troyer, Ph.D., Diane K. (Self and North Harris Montgomery Community College District; Cy Fair College) Tuggle, Robert (Texas Woman's University) Wallace, Randy (University of Texas System) Willeford, Pamela (Higher Education Coordinating Board)


To make a bautofill textbox, give it the 'bautofill' class!
Above are two examples of bautofill text boxes. The data from the text boxes is populated from JSON arrays of strings. In the case of the top example, this is provided directly in the HTML. The bottom is provided via JavaScript. You can of course populate these lists using AJAX!


523.xalancbmk_r
IBM Corporation, Apache Inc, plus modifications for SPEC®
purposes by Michael "Magic Man" Wong, Christopher "El Diablo" Cambly
Primary contact: ccambly [at] ca.ibm.com
XSLT processor for transforming XML documents into HTML, text, or other XML document types
This program is a modified version of Xalan-C++, an XSLT processor written in a portable subset of C++ .
Xalan-C++ version 1.10 is a robust implementation of the W3C Recommendations for XSL Transformations (XSLT) and the XML Path Language (XPath). It works with a compatible release of the Xerces-C++ XML parser: Xerces-C++ version 3.0.1. Xalan-C++ (named after a rare musical instrument) implements the W3C Recommendation 16 November 1999 XSL Transformations (XSLT) Version 1.0 and the XML Path Language (XPath) Version 1.0. XSLT is the first part of the XSL stylesheet language for XML. It includes the XSL Transformation vocabulary and XPath, a language for addressing parts of XML documents.
You use the XSLT language to compose XSL stylesheets. An XSL
stylesheet contains instructions for transforming XML documents
from one document type to another document type (XML, HTML, or
other). In structural terms, an XSL stylesheet specifies the
transformation of one tree of nodes (the XML input) into another
tree of nodes (the output or transformation result).
Modifications for SPEC® benchmarking purposes include:
1. combining code in a way that makes it a standalone
executable
2. removing compiler incompatibilities and improving
standard conformance
3. change the output to display intermediate
values
4. removing large part of unexecuted code that causes
differences between platforms
5. finding the test data and contributing fixes to the
code to read the large 100 MB test data
6. Moving all the include locations to fit better into
the SPEC harness.
An XML document and an XSL Stylesheet.
An HTML document
C++
None
Xalan-C++ (which became 523.xalancbmk_r) was submitted to SPEC by a member company under the Apache License, v2.0.
Please see details in the document SPEC CPU®2017 Licenses.
Last updated: $Date: 2019-07-28 19:29:02 -0400 (Sun, 28 Jul 2019) $
Copyright © 2017-2019 Standard Performance Evaluation Corporation (SPEC®)


public class OsFilter
extends java.lang.Object
| Constructor and Description |
|---|
OsFilter() |
| Modifier and Type | Method and Description |
|---|---|
OsFilter |
architecture(CpuArchitecture architecture)
Method allow to restrict target CPU architecture of operating system
|
OsFilter |
edition(java.lang.String edition)
Method allow to restrict operating system edition.
|
java.util.function.Predicate<TemplateMetadata> |
getPredicate() |
OsFilter |
type(OsType osType)
Method allow to restrict operating system vendors.
|
OsFilter |
type(java.lang.String osType)
Method allow to restrict operating system vendors.
|
OsFilter |
version(java.lang.String version)
Method allow to restrict operating system version.
|
public OsFilter type(OsType osType)
public OsFilter type(java.lang.String osType)
osType
- is not null string value of operating system vendorOsFilter
java.lang.NullPointerException
- if osType
is nullpublic OsFilter architecture(CpuArchitecture architecture)
architecture
- is value of CpuArchitecture
OsFilter
java.lang.NullPointerException
- in case when architecture is nullpublic OsFilter version(java.lang.String version)
version
- is not null string representation of operating system version ("6", "7")OsFilter
java.lang.NullPointerException
- when version is nullpublic OsFilter edition(java.lang.String edition)
edition
- is not null string representation of operating system edition ("Datacenter", "Business").OsFilter
java.lang.NullPointerException
- if edition
is nullpublic java.util.function.Predicate<TemplateMetadata> getPredicate()


Description of the Problem
https://www.lintcode.com/problem/nuts-bolts-problem/description
399. Nuts & Bolts Problem Given a set of n nuts of different sizes and n bolts of different sizes. There is a one-one mapping between nuts and bolts. Comparison of a nut to another nut or a bolt to another bolt is not allowed. It means nut can only be compared with bolt and bolt can only be compared with nut to see which one is bigger/smaller. We will give you a compare function to compare nut with bolt. Example Given nuts = ['ab','bc','dd','gg'], bolts = ['AB','GG', 'DD', 'BC']. Your code should find the matching bolts and nuts. one of the possible return: nuts = ['ab','bc','dd','gg'], bolts = ['AB','BC','DD','GG']. we will tell you the match compare function. If we give you another compare function. the possible return is the following: nuts = ['ab','bc','dd','gg'], bolts = ['BC','AA','DD','GG']. So you must use the compare function that we give to do the sorting. The order of the nuts or bolts does not matter. You just need to find the matching bolt for each nut.
Idea to solve the problem
Quick Sorting/Customized comparison
My codes
/**
* public class NBCompare {
* public int cmp(String a, String b);
* }
* You can use compare.cmp(a, b) to compare nuts "a" and bolts "b",
* if "a" is bigger than "b", it will return 1, else if they are equal,
* it will return 0, else if "a" is smaller than "b", it will return -1.
* When "a" is not a nut or "b" is not a bolt, it will return 2, which is not valid.
*/
public class Solution {
/**
* @param nuts: an array of integers
* @param bolts: an array of integers
* @param compare: a instance of Comparator
* @return: nothing
*/
// Total runtime 2392 ms. Your submission beats 91.00% Submissions!
public void sortNutsAndBolts(String[] nuts, String[] bolts, NBComparator compare) {
if ( nuts == null || bolts == null || nuts.length != bolts.length ) return;
quicksort(nuts, bolts, 0, nuts.length-1, compare);
}
public void quicksort(String[] nuts, String[] bolts, int left, int right, NBComparator compare) {
if ( left >= right ) return;
int pos = partitionNuts(nuts, bolts[left], left, right, compare);
pos = partitionBolts(bolts, nuts[pos], left, right, compare);
quicksort(nuts, bolts, left, pos-1, compare);
quicksort(nuts, bolts, pos + 1, right, compare);
}
public int partitionNuts(String[] nuts, String key, int left, int right, NBComparator compare) {
if ( left >= right ) return -1;
for ( int i = left ; i <= right; i++) {
if ( compare.cmp(nuts[i], key) == 0 ) {
swap(nuts, i, left);
}
}
String key1 = nuts[left];
int i = left, j = right;
while (i < j ) {
while (i < j && compare.cmp(key, nuts[j]) >= 0 ) j--;
if (i= right ) return -1;
for ( int i = left ; i <= right; i++) {
if ( compare.cmp(key , bolts[i]) == 0 ) {
swap(bolts, i, left);
}
}
String key1 = bolts[left];
int i = left, j = right;
while (i < j ) {
while (i < j && compare.cmp(bolts[j],key) >= 0 ) j--;
if (i


Add New Car
--->Forecasting
--->Initital Blueprint(Upload Image)
--->Market Study(Upload File)
Market study:
Proceed to next phase..


A Caterwaul bug
Not all bugs are created equal. They range from the stupidly obvious mistakes of late-night coding to the intriguingly subtle nonlocal consequences of reasonable design decisions. In my experience, most bugs tend towards the obvious side of this scale. But sometimes I run into a legendary bit of pathology that is so convoluted or mysterious that it qualifies as a work of art. Yesterday I was fortunate enough to encounter one of these in Caterwaul.
I was a little worried about it because I had seen it happen at least once before and had no idea why. The symptom was that, for some input programs that made heavy use of syntax quotation,
waul
would die with output similar to the following:
node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ TypeError: Object , has no method 'reach' at eval at <anonymous> (waul-1.2:140:119) at [object Object].each (eval at <anonymous> (waul-1.2:140:119)) at [object Object].reach (eval at <anonymous> (waul-1.2:140:119)) at eval at <anonymous> (waul-1.2:140:119) at [object Object].each (eval at <anonymous> (waul-1.2:140:119)) at [object Object].reach (eval at <anonymous> (waul-1.2:140:119)) at eval at <anonymous> (waul-1.2:140:119) at [object Object].each (eval at <anonymous> (waul-1.2:140:119)) at [object Object].reach (eval at <anonymous> (waul-1.2:140:119)) at eval at <anonymous> (waul-1.2:140:119)
One of the problems with writing your own programming language is that you also have to write your own debugger. Right now Caterwaul has no debugger, so figuring out why this was happening was
a real challenge. Fortunately, I had a hunch: I suspected that I was building a syntax tree with a string child instead of a syntax tree child. Caterwaul lets you use either as a convenience,
but the push()
method of syntax trees doesn't do that conversion. So I refactored push()
to use the same logic as the constructor and figured that would take care of
it.
It didn't.
Instead, I saw this in the generated output:
... .call(this, ..., , , , , , , , );
Node was understandably unhappy. Also strange was that my .qse
literal expression refs had been replaced by variables called e1
, e2
, etc (normally they'd
be called qse1
, qse2
, ...). At first I thought I had some macro that was re-expanding something and generating anonymous expression refs, so I poked around. To my
surprise, no macro like this existed in the Caterwaul standard library. This meant that the bug was in the Caterwaul core itself.
I copied the failing program and started trimming it down until the problem went away. I found out that constructs like 'g[_x]'.qse /-f/ y
would cause an e
variable
to be created. As soon as I got rid of the /-f/ y
, the qse
would behave normally. I then tried it out on the REPL and found the same strange behavior:
$ waul -c js_all waul> '"foo".qse /-f/ bar'.qse.toString() 'f(qse_h_azCSgoP86KF16yaWYRruza)' <- notice: no 'bar'! waul> '"foo".qse / z /-f/ bar'.qse.toString() 'f(qse_j_azCSgoP86KF16yaWYRruza,z,bar)' <- now it's there
At this point it was clear that it was some strange case of the infix function syntax. After some more poking around and random guesses, I found that calling flatten()
on
expression refs didn't work correctly. It turns out that tree coercion had a subtle bug in this function (it's written on one line in the Caterwaul source):
as: function (d) { return this.data === d ? this : new this.constructor(d).push(this); }
This appeared to be doing the right thing: Either return the node or wrap it in a new d
node and return that. It would be appropriately generic, too: new
this.constructor
would be closed over the node type.
And that's when everything made sense. Expression refs aren't instantiated like regular nodes. Most syntax trees take the "data", or their name, as the first argument. So if you said new
caterwaul.syntax('foo')
, you'd have a syntax tree representing the identifier foo
. But the expression ref and closure ref constructors are front-loaded to take the value
before the name. The name is entirely optional; normally Caterwaul will just use a gensym.
The result of this was that when flatten
was called on an expression ref, the expression ref was parenting itself with another expression ref, not a regular syntax node.
Expression refs don't have children, so this caused the original expression ref to be hidden and replaced by a nullary comma node. Expression refs serialize to their data, so the nullary comma
would be serialized as just ',', hence the syntactically incorrect output.
Long story short, it turns out that as
is an anomaly among tree transform methods in that it shouldn't respect type closure. The fix was to write it this way:
as: function (d) { return this.data === d ? this : new caterwaul_global.syntax(d).push(this); }
If only all bugs could be this cool.


{% trans 'Support for geographically distributed researchers' %}
{% trans 'Parsifal is a powerful platform that provides full support for researchers geographically distributed to work on the same Systematic Literature Review. There is no limit of authors per review.' %}


Category:Reference Manual
reference
type_header =
Lexical_structure_(ref):IDENTIFIER [ type_parameters ]
[ ':' Type_expressions_(ref):type { ',' type } ] where_constraints
Type header is similar to .NET. The main difference is the optional
type_parameters list, defined below.
type_attributes = Attributes_(ref):attributes
type_parameters =
[ Lexical_structure_(ref):IDENTIFIER { ',' IDENTIFIER } ]
where_constraints =
{ 'where' Lexical_structure_(ref):IDENTIFIER ':' Type_expressions_(ref):type { ',' type } }
When defining polymorphic type one has to specify list of type variables
in declaration. It can have following form:
An optional list of where
parameters can be used to add constraints to
the type variables.
where a : Nemerle.Collections.IEnumerable, IComparable
where b : Nemerle.Collections.IDictionary
type_declaration =
type_alias
| interface_declaration
| class_like_declaration
| variant_declaration
| enum_declaration
| delegate_declaration
type_alias =
type_attributes 'type' type_header '=' Type_expressions_(ref):type ';'
Much like typedef
in C.
interface_declaration =
type_attributes 'interface' type_header '{' { interface_member } '}'
class_like_declaration =
type_attributes 'class' type_header '{' { type_member } '}'
| type_attributes 'struct' type_header '{' { type_member } '}'
| type_attributes 'module' type_header '{' { type_member } '}'
A module is much like a class, but all module members are static. There
is no need to place static attributes on module members. It is also not
possible to create instances of module types.
Struct types are like classes, but they are passed by value and cannot
inherit from other types.
variant_declaration =
type_attributes 'variant' type_header '{' { variant_option } '}'
variant_option =
Lexical_structure_(ref):IDENTIFIER [ '{' {
Type_members_(ref):field_definition } '}' ]
| Type_members_(ref):type_member
A variant declaration consists of a type name and a list of bar-separated
variant options enclosed in brackets.
The variant option describes the constructor associated with this variant
type. An option may take an argument. Option name must be capitalized.
Variants (unlike variant options) can also have other members (methods
and fields). These fields and methods are inherited by all the options.
enum_declaration =
type_attributes 'enum' type_header '{' {
'|' Lexical_structure_(ref):IDENTIFIER [ '=' Lexical_structure_(ref):literal ] } '}'
Enums are like variants, but cannot take arguments. They are passed by
value and can be used with bitwise operations.
delegate_declaration =
type_attributes 'delegate' Type_members_(ref):method_header


Open the socket to see the time...
Open
Close
Press open to open socket...
Once socket is open you can send messages down it
Send


 More...
|
| |
|
| IndirectDraw (IndirectDraw &&) noexcept=default |
| | Move constructor.
|
| |
|
IndirectDraw & | operator= (IndirectDraw &&) noexcept=default |
| | Move assignment.
|
| |
|
void | bind () const noexcept |
| | Bind this draw call to the OpenGL indirect buffer target.
|
| |
| void | drawCall (const int drawMode, const void *indirect=nullptr) const noexcept |
| | Bind this buffer and also perform an indirect draw call. More...
|
| |
|
void | beginWriting () const noexcept |
| | Prepare this buffer for writing, waiting on its sync fence.
|
| |
|
void | endWriting () const noexcept |
| | Signal that this buffer has finished being written to.
|
| |
|
void | endReading () noexcept |
| | Signal that this buffer has finished being read from.
|
| |
| void | setCount (const GLuint count) noexcept |
| | Specify how many vertices will be rendered. More...
|
| |
| void | setPrimitiveCount (const GLuint primitiveCount) noexcept |
| | Specify how many primitives will be rendered. More...
|
| |
| void | setFirst (const GLuint first) noexcept |
| | Specify the offset to the first vertex to be rendered. More...
|
| |
A helper class for performing an indirect-draw-call.
◆ IndirectDraw()
| IndirectDraw::IndirectDraw |
( |
const GLuint & |
count, |
|
|
const GLuint & |
primitiveCount, |
|
|
const GLuint & |
first, |
|
|
const GLbitfield |
storageFlags = GL_DYNAMIC_STORAGE_BIT |
|
) |
| |
Construct an Indirect Draw Object.
Custom Constructor.
- Parameters
-
| count | the number of vertices to draw. |
| primitiveCount | the number of times to draw this object. |
| first | offset to the first vertex. |
| storageFlags | storage type flag. |
◆ drawCall()
| void IndirectDraw::drawCall |
( |
const int |
drawMode, |
|
|
const void * |
indirect = nullptr |
|
) |
| const |
|
noexcept |
Bind this buffer and also perform an indirect draw call.
drawCall
- Parameters
-
| drawMode | either GL_TRIANGLES, GL_POINTS, GL_LINES, etc. |
| indirect | an indirect pointer. |
◆ setCount()
| void IndirectDraw::setCount |
( |
const GLuint |
count | ) |
|
|
noexcept |
Specify how many vertices will be rendered.
setCount
- Parameters
-
◆ setFirst()
| void IndirectDraw::setFirst |
( |
const GLuint |
first | ) |
|
|
noexcept |
Specify the offset to the first vertex to be rendered.
setFirst
- Parameters
-
| first | the offset to the first rendered vertex. |
◆ setPrimitiveCount()
| void IndirectDraw::setPrimitiveCount |
( |
const GLuint |
primitiveCount | ) |
|
|
noexcept |
Specify how many primitives will be rendered.
setPrimitiveCount
- Parameters
-
| primitiveCount | the number of primitives to be rendered. |
The documentation for this class was generated from the following files:


Statement
For my project one, I have decided to emulate the experience of a zoo. The experience of visiting a zoo in real life is quite fascinating; in zoos, you are able to see exotic creatures and animals from all over the planet that you would have never been able to see otherwise. Watching animals exhibit their typical daily behaviors in their natural habitats makes for an entertaining and wholesome viewing experience, and this is the experience that I wanted to capture in my website. I sought to create quirky GIFs of animals in their natural habitats to intrigue the user in the same way watching animals at a zoo would intrigue someone. My project one functions more so as a video game than a website in this regard; video games are essentially emulations of real life, so I thought it would be appropriate to draw heavy inspiration from video games for my project.


To keep connected with us please login with your personal info
Hello Friend !
Enter your personal details and start journey with us
To keep connected with us please login with your personal info
Enter your personal details and start journey with us


Passphrase Generator
Passphrases are considered easier to remember for humans and harder to crack for machines, famously explained in this comic:
The challenge then is to have a good word list to pick from. There are various measurements on how many words one person would use which could be as low as a thousand. Note there is a huge difference between recognize and use.
Passphrases and dices
In a recent Toot exchange ospalh pointed me to Diceware, a method to use dice rolls and a word list to determine a passphrase. Usually one uses the regular 6 sides dices and 5 dices, which lets you pick from a 7776 member word list. The EFF published a version using the 20-sided dice from Dungeon and Dragons as well as various word lists.
Wordlists
An attacker who doesn't know that they are dealing with a passphrase, using conventional cracking methods stands little chance to decipher the phrase. However as the defender you must assume, they know your word list, so it is imperative to keep it long, while maintaining the odds to remember (in any case you can use some extra brain). SOme of the word lists you can find online:
- Arnold Reinhold's Diceware list, 1995, 7776 entries
- EFF list from 2016, 2016, 7776 entries (introduced here)
- Fandom generated word lists by EFF for the 20 side dice
- Game of Thrones, 2018, 4000 entries
- Harry Potter, 2018, 4000 entries
- Star Track, 2018, 4000 entries
- Star Wars, 2018, 4000 entries
Math.random() to replace dices
Let's roll (pun intended) our own passphrase generator. To make it a little more fun these are our constrains:
- passphrase has 5 elements: 4 words and one 6 digit number
- the number appears at a random position
- elements are separated by a
-
(for readability, in active use you might just filter them out)
Read more
Posted by Stephan H Wissel on 24 July 2023 | Comments (0) | categories: Java WebDevelopment


val dispatch: Dispatch
dispatches game and state messages
dispatch - dispatches game and state messages
dispatch


Misk Initiatives Center signs 12 deals to develop youth talent
Saudi Minister of Foreign Affairs Prince Faisal bin Farhan met US Secretary of State Mike Pompeo in Washington on Thursday.
In his Twitter account, Prince Faisal said: “Saudi-US have a long-standing strategic partnership.
“We affirmed the strong ties between our countries and the joint efforts in confronting terrorism in the region and the world.”


Conflict Urbanism
     Aleppo
About
Neighborhoods
                   i
Visualize
Description
Select Layer for more information
  Zoom Level: 13

Center for Spatial Research, Columbia University


@import common.commercial.hosted.HostedGalleryPage @(page: HostedGalleryPage)(implicit request: RequestHeader) @import views.html.hosted._ @import conf.Configuration @import views.support.FBPixel
@* "utf-8" meta tag needs to be first according to AMP spec *@ @fragments.metaData(page, amp = true)


I am publishing this as an initial design to let people comment on it. The idea is to take all the best bits of EmonTX v3.4 and any other stuff that we have learnt about since then and use a chip that is faster than the Arduino.
The Particle Photon seems like a good replacement and best of all is web connected already.
Once we get the hardware sorted we can get to work on the software. People have already ported some bits of the required software to the Photon's predecessor (Core). But a pre-built shield isn't available, hence this project.
1. All the Analogue inputs will be used for Voltage and Current detection.
2. All the Digital IOs will be exposed to allow other stuff to be connected e.g. OLED display, temperature sensor, pulse, IR etc.
Note : The diagram symbol used for the LMV321 is wrong. I couldn't find a nice 5 pin op-amp symbol in Fritzing to use! Pin numbers used are correct.
Go on. Have your say.
Re: EmonTX shield using the Particle (formerly Spark) Photon
This looks like an interesting project --- I have a SparkFun Photon Red Board on the way.
It has a P1 Particle module on a board / shield which should make the hardware hookups easier and sells for only $39.95.
Definitely be watching this thread for info as more software is developed for it.
Re: EmonTX shield using the Particle (formerly Spark) Photon
I too would have gone that way, if the emontx shield had kept up with the improvements.
So decided that creating a new one was not a bad plan. So took the opportunity to develop the board that takes all the best bits.
Just waiting for the comments and then I can move to building a sample batch.
Re: EmonTX shield using the Particle (formerly Spark) Photon
Robert and dBC mentioned that a 3 phase monitoring will need 3 ac inputs. I'll see if I can design 3 inputs to configurable either as CT inputs or AC inputs. We have the ADCs so might as well use them, right.
Re: EmonTX shield using the Particle (formerly Spark) Photon
I had the same idea this morning. I would like to help.
I see some nice advantages with the Photon:
- More analog inputs than the Arduino and more processing power.
- No need for RF by using the Wifi (cost reduction)
- Possible standalone solution without raspberry pi. (cost reduction). Directly posting to emoncms.org or own webserver/nas.
It would be nice to have full 3 phase monitoring and maybe 1 phase solar installation.
Re: EmonTX shield using the Particle (formerly Spark) Photon
Does anyone know of a 3 channel op-amp that I can use instead of 3 separate LMV321 in case I need to include 3 phase monitoring on the board?
Otherwise, I've had no further feedback to the initial thoughts.
Re: EmonTX shield using the Particle (formerly Spark) Photon
No! They tend to come as 1-channel, 2-channel or 4-channel. Have you thought about looking at the LMV321 data sheet - the TI version at least. [BIG HINT! BIG, BIG HINT! ! !]
Re: EmonTX shield using the Particle (formerly Spark) Photon
My "vote" on getting this project up and running is to first do it as a considerably simpler single phase monitoring system. If you have boards made up for this --- put me down for a couple.
As for op-amps, I have been searching for some components myself to do some proto- typing. The only LMV321's I can find all have SMD/SMT cases --- not very friendly for this use.
I did order some LM358 op-amps in a Dip 8 Pkg at a very low cost 10 for $2.07 with free shipping. I think Robin has used the LM358 in some of his designs.
http://www.amazon.com/gp/product/B00CL588O2?psc=1&redirect=true&ref_=oh_...
Re: EmonTX shield using the Particle (formerly Spark) Photon
Why can't we use 1 op-amp for all sensors?
The documentation states: "Only one op.amp is needed, the current sensors can share the bias supply and connect to amplifier output (“mid-point”) with little fear of interaction between the inputs (which can be troublesome in some circumstances)."
http://openenergymonitor.org/emon/buildingblocks/acac-buffered-voltage-bias
Re: EmonTX shield using the Particle (formerly Spark) Photon
If we are going to attempt a proper 3 phase monitoring system then we need 3 op amps all on separate channels.
The op amp output can be shared by the CTs.
Re: EmonTX shield using the Particle (formerly Spark) Photon
If you're using the op. amp. as the bias source, you only need one. If you're using it to isolate/amplify, you need 4. I think we need an outline circuit diagram of your 3-phase arrangement.
Re: EmonTX shield using the Particle (formerly Spark) Photon
I'm going to start with just the 1 for single phase and bias source.
But why 4? Even for 3 phase I would have thought you needed only 3.
Also does anyone know which ADC is connected to which Photon pins
Re: EmonTX shield using the Particle (formerly Spark) Photon
"But why 4?"
3 to buffer/amplify each phase and 1 for the common bias.
Re: EmonTX shield using the Particle (formerly Spark) Photon
I am having a slow day today, so forgive me.
So in a single phase setup, how come we have just one doing both the buffer/amplification and the bias?
Re: EmonTX shield using the Particle (formerly Spark) Photon
"Also does anyone know which ADC is connected to which Photon pins"
From the Photon Docs:
A0~A7 12-bit Analog-to-Digital (A/D) inputs (0-4095), and also digital GPIOs.
https://docs.particle.io/datasheets/photon-datasheet/
Re: EmonTX shield using the Particle (formerly Spark) Photon
What I meant is, I know the ARM chip used in the Photon has 3 ADCs, so does anyone know if the ADCs are dedicated to the pins or do they just use some algorithm to divide the load between them?
Re: EmonTX shield using the Particle (formerly Spark) Photon
"I am having a slow day today, so forgive me
So in a single phase setup, how come we have just one doing both the buffer/amplification and the bias"
In the diagram in http://openenergymonitor.org/emon/buildingblocks/acac-buffered-voltage-bias, the op.amp. is purely providing a low impedance (whatever the output impedance of the op.amp. is in voltage follower mode, probably a few ohms) bias supply. It is not doing any amplification at all. When you said you needed one per phase, I thought you wanted to use an op.amp. as a switched gain amplifier (as per the Atmel application note) to improve the sensitivity at low currents, which is a common complaint from those who want to measure just a few watts.
I can't see any advantage in having multiple op.amps and multiple bias supplies.
There might be some value in measuring the bias supply by each ADC (assuming they are multiplexed); that would be justified if the difference in the ADC readings around the midpoint due to non-linearity errors was 'significant'. (I'll leave you to decide what that means - I'd suggest more than 1 count, because the software filter works down to a fraction of 1 count. It depends on what the minimum current you want a reliable reading for is, and the errors you can accept.)
Re: EmonTX shield using the Particle (formerly Spark) Photon
My basic need is to measure current and voltage as accurately as possible. The only reason we started talking about using more than 1 op-amp was to satisfy the use within a 3 phase installation. Lets leave that to one side for the moment.
If we are going to only use this within a single phase installation can we stick with the design as above. Or are there any further suggestions to improve on the design?
Re: EmonTX shield using the Particle (formerly Spark) Photon
so does anyone know if the ADCs are dedicated to the pins
See my comment here: http://openenergymonitor.org/emon/node/10428#comment-34308
That's based on a quick perusal of the datasheet mind, no personal experience, so you might want to confirm that with your own research.
use some algorithm to divide the load between them
That'll be your job, and what I was referring to when I wrote "If you're prepared to put the coding effort in...". There'll be lots of fun design decisions to play with there. If your mid-rail and ADCs are as stable as I think they will be, you might be able to use all sorts of strategies, like have each ADC read the mid-rail once-in-a-while (every second instead of every 10usecs for example) and run with that for its subtractions until the next second. Since each ADC can read the mid-rail for itself, I don't think there are any issue with offset errors between the ADCs.
It looks like you can even configure it for simultaneously triggered conversions. So you might set it up so that one is reading V, and the other two are reading CT1 and CT2, and then say "GO"... that alleviates the typical phase shift introduced by the software starting the conversions, though you'd still need to deal with all the other sources of phase error (external and internal).
I think the first thing you're going to have to do is throw out the Photon programming manual and hit the ST datasheet and use that as your manual for all things ADC related. (OK, maybe the second thing: using the existing synchronous library calls is probably a good way to make sure the hardware is working the way you intended).
Or are there any further suggestions to improve on the design?
I'd probably put anti-aliasing filters on all your inputs. There are plenty of references on the web that will talk you through that... including the datasheet for just about any ADC, or any CPU containing an ADC. You can see a picture of one doing its thing in this thread: http://openenergymonitor.org/emon/node/9956#comment-26546
Re: EmonTX shield using the Particle (formerly Spark) Photon
You might want to keep an eye on this thread too: http://openenergymonitor.org/emon/node/11309#comment-34553
Re: EmonTX shield using the Particle (formerly Spark) Photon
@dBC any suggestions on how to go about the anti-aliasing filter?
Re: EmonTX shield using the Particle (formerly Spark) Photon
Google is your friend in this case. Here are a few I just found:
https://www.maximintegrated.com/en/app-notes/index.mvp/id/928
http://www.ti.com/tool/antialiasingcalc
and an application note from your own vendor:
http://www.st.com/web/en/resource/technical/document/application_note/CD00211314.pdf
You'll need to know your sampling rate which you may not know for sure still you start banging on the ADC registers, so you might need to tweak the filter later, but as the ST note says, it's not super-critical. You want the corner frequency at about half the sampling rate, and above any frequencies of interest in the signal.
The only other tip I'd add is to put the exact same filter on all your inputs, including V. That way any phase shift they introduce will be roughly the same across all your inputs.
Re: EmonTX shield using the Particle (formerly Spark) Photon
I would encourage keeping this as simple as possible and a usable product as soon as possible. The EmonTx, in my experience has more than adequate accuracy / resolution without anti-aliasing filters and the Photon will have considerable higher resolution capability.
By far most of my difficulties have been with the limited radio range of the EmonTx. I have large PV installations on farms at both my location and my sons, where the Utility main feed / connection panels are over 100 feet from the house and other out buildings. Signal drop outs are a problem.
Hopefully, the Photons WiFi range will be an improvement, even if I need to add access points.
In 3 or 4 months, the Particle Electron with Cellular – Connected Capability will be available, which will make the radio range a moot problem. I have them on pre-order.
https://store.particle.io/?product=particle-electron
Re: EmonTX shield using the Particle (formerly Spark) Photon
I agree with sd solar. Lets keep this idea alive and try to make a usable design first. If someone can tell us what components we need to place for the anti-aliasing filter we can implement it. But personally I am not experienced enough to figure it out by myself an be sure it wil work as expected.
If everything works like we want we can just make a V2 version with improvements.
Lets list what features we want:
We have 8 ADC inputs to work with.
-1 input for monitoring the bias source?
-1 input for AC Voltage monitoring (Or 3 for the 3 phase variant)
-6 inputs for CT sensors? (Or 4 for the 3 phase variant)
Do we want other sensor inputs? Do we prepare something for the digital IO pins?
Lets say we make it possible to break out al the pins of the photon. How do we do that? Make it arduino shield compatible? Or is there a better way?
I also started drawing a schematic.
You can view it at https://easyeda.com/Roeland54/Photon_emon_shield-lFDBzUSs2
Re: EmonTX shield using the Particle (formerly Spark) Photon
The schematic looks good. In my case, I don’t have any need / use for the digital IO pins at the location I will be installing the Photon.
I have done a very similar circuit on a prototype board, but using a LM358 op amp In a dual 8 pin pkg for the bias and the outputs from the CT’s and voltage adapter are right on.
The real challenge, for me is going to be getting the code correct and flashed.
Officeboy has published some extensive work on this at:
https://github.com/officeboy/EmonCore
I have tried modifying his for my setup and flashing the Photons firmware, but the result is it now won’t even go on line and connect with the Cloud. I then have to force it into Safe Mode and re-flash a known good firmware before it will connect again.
This type of coding is way above my pay grade.
Re: EmonTX shield using the Particle (formerly Spark) Photon
I got a decently good design but was quoted an insane figure to turn it into a PCB.
If there are people on here who could help with designing a PCB, for a fee of course then we may be able to get this out for people to play and develop on.
Re: EmonTX shield using the Particle (formerly Spark) Photon
I will try to design a pcb. It wil be a smd pcb. I'm going to try to make 1 pcb that can be used for 3 phase or Single phase. If jou want 3 phase jou can put the components for 3 phase on the board. Then you wil have 4 ct's and 3 ac inputs.
For single phase you wil have 6 ct's and 1 ac input.
It wil make the pcb a little bigger but I think it is worth it to have 1 design to meet both requirements.
Anyone having a request about the pcb size/shape?
updated schematic : https://easyeda.com/Roeland54/Photon_emon_shield-lFDBzUSs2
Re: EmonTX shield using the Particle (formerly Spark) Photon
Will be make the pcb gerber files available to all? In that case we can collaborate?
Re: EmonTX shield using the Particle (formerly Spark) Photon
What problem is L1 trying to solve, and how does it solve it?
Re: EmonTX shield using the Particle (formerly Spark) Photon
I will share the design files to all and I will need some collaboration. I am not a pcb expert. The last time I designed a pcb was in school 8 years ago.
I copied L1 from the emontcV3.4 design. It is a ferrite bead to filter out noise from the microcontroller.
I don't know if it is really necessary.
Re: EmonTX shield using the Particle (formerly Spark) Photon
There's more on L1 here: http://openenergymonitor.org/emon/node/11130 and here: http://openenergymonitor.org/emon/node/6196
Re: EmonTX shield using the Particle (formerly Spark) Photon
In particular, in one of those threads I wrote "L1 was included by mistake, carried over from a previous version. If you had checked the pcb layout, you would have found that it's actually shorted out by copper, and hasn't been removed from the assembly process because it costs more to do that than to leave it."
In particular, you need to keep the analogue and digital sides totally separate, except for one common ground point and a filter separating the digital power from the analogue power and reference voltage. It seems that in the emonTx, the largest noise contribution comes in via the analogue reference. It is well worth taking a lot of care with the analogue inputs, as noise limits the performance of the emonTx even though it's only a 10-bit ADC. If you're not a pcb expert specializing in low-level analogue stuff, you need to do a lot of reading - some of the better sources are the application notes for high-end ADCs.
I like the idea of a common pcb, populating it for 1-phase or 3-phase as appropriate.
If you are having any digital inputs or outputs, arrange an adequate number of ground and supply terminals adjacent so that you have a choice of connecting the sensor / output between Gnd or Vcc. Provision for wire-ended pull-up or pull-down resistors could be useful, as would be provision for wire-ended burden resistors on the CTs and voltage divider resistors on the VTs.
Re: EmonTX shield using the Particle (formerly Spark) Photon
Doesn't look like I have anyone ready to turn my design into a PCB.
I had aimed for a completely through hole design for maximum flexibility. And the only part that needed to be replaced was the op amp with the LM358.
What I had done was used the left hand ground for all the analogue inputs. And the right hand ground was reserved for the digital inputs.
To reduce the part count and to avoid someone putting both VT and CT into one input I added a jumper to switch the input between being a VT or a CT. You can still use the 1K and the 2 protection diodes for either.
Re: EmonTX shield using the Particle (formerly Spark) Photon
That ST Micro application note referenced above (from your own vendor no less!) touches on most of the issues you need to consider for good analog results. Much of it is directed at someone designing the entire board, but some of it will apply to your "shield". Because you're using the Photon module you'll be at the mercy of how well they followed those guidelines, and that probably depends on how concerned they were with permitting good low-noise low-level analog measurements.
It might be worth doing some up-front tests on the Photon to see how well it behaves. A really simple test is to inject a stable low-ripple low voltage into one of the analog inputs and then have the f/w read it repeatedly and measure the PtoP noise in A/D units. Ideally it'll be 0 or 1 even while doing other stuff like wifi transmitting the results.
Re: EmonTX shield using the Particle (formerly Spark) Photon
@Roeland54
Just looking at your schematic. I think there is a major error. I assume your stereo jack are the switching type that short pins 2&3 and 4&5 if no plug is inserted? On the V3 shield i understand this is used to detect if a CT is plugged in or not. That works on the V3 boards as each has its own bias reference made up of a resistor divider. Shorting the bias to ground is ok and only a small amount of current is drawn from the voltage rail through the 470k ohm resistor. But in your case, you have the op amp supplying the bias reference. So if ANY one of the CT's isn't plugged in, the output of the op amp is pulled directly to ground. This affects ALL the inputs.
Please correct me if i'm wrong. Just wanting to help....
Re: EmonTX shield using the Particle (formerly Spark) Photon
@Robert Wall: Thank you for the feedback.
- I removed L1 from the schematic.
- I will read up on using ADC's.
- Are the internal pull up/down resistors of the Photon STM micocontroller not good enough?
Still not sure if I should add the digital I/O breakouts.
- Added wire ended resistors for the CT & VT inputs
@MattyZee: Thanks for spotting the major error. Could we solve this by adding a 470K resistor between pin4 of the jack and the ground? Or we could delete the connection to the ground completely. Do we need the detection?
Re: EmonTX shield using the Particle (formerly Spark) Photon
"Do we need the detection?"
The answer to that is, will you get 'noise' output when no CT is connected and will it be troublesome, or do you otherwise need or want to know, i.e. so that you don't send a string of zero values for non-existent inputs?
The idea (on the emonTx) is if the input is a solid zero at power-up, there is no plug in the socket. That's not quite the same as no CT. If you retain the detection facility, you need a lowish value resistor (say 2.2 kΩ at a guess, which will still give a low impedance source but not cost excessive current to be supplied by the op.amp even with nothing plugged in anywhere) between the op-amp output and each socket, not between the socket and ground.
If you don't want detection, by far the best solution is to leave the switched short to ground off completely.
Re: EmonTX shield using the Particle (formerly Spark) Photon
Ok thanks. I will leave the the detection off. I think the sensor configuration changes rarely in most setups and we could make it configurable by a web interface.
Re: EmonTX shield using the Particle (formerly Spark) Photon
First pcb version "ready" at https://easyeda.com/Roeland54/Photon_emon_shield-lFDBzUSs2
Re: EmonTX shield using the Particle (formerly Spark) Photon
I've also got a PCB ready. But I've taken a different route to the design. I'll publish my design next week.
Re: EmonTX shield using the Particle (formerly Spark) Photon
Finally!
Here is my take on using all the best bits and working it into a single Photon OEM board.
Features:
1. 8 CT inputs.
2. 3 VT inputs.
3. Switch 3 inputs between CT or VT via jumper.
4. Switch 1 input between CT or Voltage Bias Ref.
5. Voltage terminals accessible on the wire end terminal block.
6. All the Digital and analogue inputs are accessible.
7. The Digital inputs can be pulled up or down as required.
8. The Rj45 connector is also available to connect OEM sensors as required.
9. The board should be able to take the Electron as well, when it's released later.
10. Deliberately went for a through hole version to allow components to be either changed or not added at all.
Comments? Before I make up a few board for people to have a play with.
This wouldn't have been possible without Robert, Robin and dBC. So thank you guys.
Re: EmonTX shield using the Particle (formerly Spark) Photon
Nice to see your take on it. I have few questions.
Is it possible to upload a higher resolution schematic I can't read some component values & the PCB design with visible traces?
What are the dimensions of the PCB ?
Can you explain how you determined the capacitor value at the input of the ADC's?
Re: EmonTX shield using the Particle (formerly Spark) Photon
That's awesome! Can you use at least 6 CT's and 3 VT's simultaneously? If so I'm in for a few of these.
JD
Re: EmonTX shield using the Particle (formerly Spark) Photon
The Photon only has 8 inputs. So max you can have 3 VTs and 5 CTs. Or any combination inbetween.
All the digital inputs are free for you to what you want.
The good thing is that you can connect an I2C display to D0 and D1 using 2 4K7 pull up resistors. This then becomes a stand alone monitor and display too.
Re: EmonTX shield using the Particle (formerly Spark) Photon
I'm getting an initial batch of boards made up.Those interested just drop me a PM and we'll take it from there. Do people want fully populated boards, just PCBs or PCB kits.
I just changed the design slightly to add a 5V power line as well, incase some sensors are better run via 5V (remember the emonTX v2 where the board runs at 3.3 but the temperature sensor runs at 5V)
Also all Photon pins are also now accessible. And in case you are wondering what those cut-outs on the board are for, they are for some kind of USB plug strain relief. I wasn't too happy with the USB plug just hanging off the photon unsecured.
Re: EmonTX shield using the Particle (formerly Spark) Photon
I am just getting wrapped up enough with life projects to get back into this. What are you using on the software end? Is the Cinezaster/EmonLib still a good working library? What code are you running? And Bruce, how is your PCB working out?
Re: EmonTX shield using the Particle (formerly Spark) Photon
My pcb will have to wait until the new year unfortunately. Am told Tis the season to be jolly not soldering.


Over the last 40 years, cancer survival rates in the UK have doubled.
In the 1970s just a quarter of people survived. Today that figure is half.
Our ambition is to accelerate progress and see three-quarters
of patients surviving the disease within the next 20 years.
4 million visitors per month to www.cruk.org
£44.7m raised online last year
Manifesto
We’re an award winning London based digital agency that loves ideas, design and technology
We aim to make people’s lives better, easier, fairer, more interesting or fun with great strategy, engaging campaigns and rock solid technology.
What do we want?
Less manual steps
Deploy whenever
Confidence in Tests
So what Tech did we use?
Drupal
3000 contributors for Drupal 8
30,000 Modules availble for Drupal 7
Harmony
Jenkins
Open source
Hundereds of plugins
Very popular
Github
Pull Requests
Web Hooks
Behat & Selenium
Given I am on "event/signup"
When I fill in "Last name" with "X"
And I press "Complete my registration"
Then I should see "Last name should be at least 2 characters long"
EC2
treat servers like cattle, not pets
run tests in parallel over multiple instances
Pre baked AMI
Putting it together
Conclusion
benifits we have received from this approach and also, make the QAs feel part of the process and take ownership of the context files that they create, etc.. ?
Vertical Slides
Slides can be nested inside of each other.
Use the Space key to navigate through all slides.
Basement Level 1
Nested slides are useful for adding additional detail underneath a high level horizontal slide.
Basement Level 2
That's it, time to go back up.
Slides
Not a coder? Not a problem. There's a fully-featured visual editor for authoring these, try it out at http://slides.com.
Point of View
Press ESC to enter the slide overview.
Hold down alt and click on any element to zoom in on it using zoom.js. Alt + click anywhere to zoom back out.
Touch Optimized
Presentations look great on touch devices, like mobile phones and tablets. Simply swipe through your slides.
You can override background transitions per-slide.
<section data-background-transition="zoom">
Pretty Code
function linkify( selector ) {
if( supports3DTransforms ) {
var nodes = document.querySelectorAll( selector );
for( var i = 0, len = nodes.length; i < len; i++ ) {
var node = nodes[i];
if( !node.className ) {
node.className += ' roll';
}
}
}
}
Code syntax highlighting courtesy of highlight.js.
Marvelous List
No order here
Or here
Or here
Or here
Fantastic Ordered List
One is smaller than...
Two is smaller than...
Three!
Tabular Tables
Item
Value
Quantity
Apples
$1
7
Lemonade
$2
18
Bread
$3
2
Clever Quotes
These guys come in two forms, inline:
“The nice thing about standards is that there are so many to choose from” and block:
“For years there has been a theory that millions of monkeys typing at random on millions of typewriters would
reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.”
Intergalactic Interconnections
You can link between slides internally,
like this.
Speaker View
There's a speaker view. It includes a timer, preview of the upcoming slide as well as your speaker notes.
Set data-state="something" on a slide and "something"
will be added as a class to the document element when the slide is open.
State Events
Additionally custom events can be triggered on a per slide basis by binding to the data-state name.


The world is a wild and lovely place. Here a little insight to the ones we think are the most epic.
Santa Barbara (Spanish for "Saint Barbara") is the county seat of Santa Barbara County in the U.S. state of California. Situated on a south-facing section of coastline, the longest such section on the West Coast of the United States, the city lies between the steeply rising Santa Ynez Mountains and the Pacific Ocean. Santa Barbara's climate is often described as Mediterranean, and the city has been promoted as the "American Riviera".[11] As of 2014, the city had an estimated population of 91,196,[12] up from 88,410 in 2010, making it the second most populous city in the county after Santa Maria[13] while the contiguous urban area, which includes the cities of Goleta and Carpinteria, along with the unincorporated regions of Isla Vista, Montecito, Mission Canyon, Hope Ranch, Summerland, and others, has an approximate population of 220,000. The population of the entire county in 2010 was 423,895.[14] In addition to being a popular tourist and resort destination, the city economy includes a large service sector, education, technology, health care, finance, agriculture, manufacturing, and local government. In 2004, the service sector accounted for fully 35% of local employment.[15] Education in particular is well represented, with four institutions of higher learning on the south coast (the University of California, Santa Barbara, Santa Barbara City College, Westmont College, and Antioch University). The Santa Barbara Airport serves the city, as does Amtrak. U.S. Highway 101 connects the Santa Barbara area with Los Angeles to the southeast and San Francisco to the northwest. Behind the city, in and beyond the Santa Ynez Mountains, is the Los Padres National Forest, which contains several remote wilderness areas. Channel Islands National Park and Channel Islands National Marine Sanctuary are located approximately 20 miles (32 km) offshore.
Amsterdam (/ˈæmstərdæm, ˌæmstərˈdæm/;[9][10] Dutch: [ɑmstərˈdɑm] (About this sound listen)) is the capital and most populous municipality of the Kingdom of the Netherlands. Its status as the capital is mandated by the Constitution of the Netherlands,[11] although it is not the seat of the government, which is The Hague.[12] Amsterdam has a population of 851,373 within the city proper, 1,351,587 in the urban area,[13] and 2,410,960 in the Amsterdam metropolitan area.[8] The city is located in the province of North Holland in the west of the country. The metropolitan area comprises much of the northern part of the Randstad, one of the larger conurbations in Europe, with a population of approximately 7 million.[14] Amsterdam's name derives from Amstelredamme,[15] indicative of the city's origin around a dam in the river Amstel. Originating as a small fishing village in the late 12th century, Amsterdam became one of the most important ports in the world during the Dutch Golden Age (17th century), a result of its innovative developments in trade. During that time, the city was the leading centre for finance and diamonds.[16] In the 19th and 20th centuries the city expanded, and many new neighborhoods and suburbs were planned and built. The 17th-century canals of Amsterdam and the 19–20th century Defence Line of Amsterdam are on the UNESCO World Heritage List. Since the annexation of municipality Sloten in 1921 by the municipality of Amsterdam, the oldest historic part of the city lies in Sloten (9th century). As the commercial capital of the Netherlands and one of the top financial centres in Europe, Amsterdam is considered an alpha world city by the Globalization and World Cities (GaWC) study group. The city is also the cultural capital of the Netherlands.[17] Many large Dutch institutions have their headquarters there, and seven of the world's 500 largest companies, including Philips and ING, are based in the city. [18] In 2012, Amsterdam was ranked the second best city to live in by the Economist Intelligence Unit (EIU)[19] and 12th globally on quality of living for environment and infrastructure by Mercer.[20] The city was ranked 3rd in innovation by Australian innovation agency 2thinknow in their Innovation Cities Index 2009.[21] The Amsterdam seaport to this day remains the second in the country, and the fifth largest seaport in Europe.[22] Famous Amsterdam residents include the diarist Anne Frank, artists Rembrandt van Rijn and Vincent van Gogh, and philosopher Baruch Spinoza. The Amsterdam Stock Exchange, the oldest stock exchange in the world, is located in the city center. Amsterdam's main attractions, including its historic canals, the Rijksmuseum, the Van Gogh Museum, Stedelijk Museum, Hermitage Amsterdam, Anne Frank House, Amsterdam Museum, its red-light district, and its many cannabis coffee shops draw more than 5 million international visitors annually.[23] It is also the world's most multicultural city with at least 177 nationalities represented.
Bacon ipsum dolor amet velit strip steak exercitation, quis beef ribs tempor leberkas occaecat do prosciutto laborum. Fugiat in cow, spare ribs qui short ribs exercitation shankle t-bone sint sausage bacon pork belly cupim. Chicken minim quis, alcatra boudin voluptate pastrami strip steak velit. Beef hamburger pastrami ball tip. Strip steak fatback tongue, culpa voluptate swine et burgdoggen. Magna jerky frankfurter incididunt cow ut in pork enim tail ham turkey sunt andouille. Beef exercitation voluptate, flank tongue tail culpa. Pastrami sed ground round salami landjaeger, prosciutto in. Brisket pancetta chicken, elit pariatur excepteur ut tri-tip labore consequat picanha do jerky. Pancetta consectetur anim enim quis. Does your lorem ipsum text long for something a little meatier? Give our generator a try… it’s tasty!
Bacon ipsum dolor amet velit strip steak exercitation, quis beef ribs tempor leberkas occaecat do prosciutto laborum. Fugiat in cow, spare ribs qui short ribs exercitation shankle t-bone sint sausage bacon pork belly cupim. Chicken minim quis, alcatra boudin voluptate pastrami strip steak velit. Beef hamburger pastrami ball tip. Strip steak fatback tongue, culpa voluptate swine et burgdoggen. Magna jerky frankfurter incididunt cow ut in pork enim tail ham turkey sunt andouille. Beef exercitation voluptate, flank tongue tail culpa. Pastrami sed ground round salami landjaeger, prosciutto in. Brisket pancetta chicken, elit pariatur excepteur ut tri-tip labore consequat picanha do jerky. Pancetta consectetur anim enim quis. Does your lorem ipsum text long for something a little meatier? Give our generator a try… it’s tasty!


Add the ebean
plugin that will perform enhancement during the gradle build.
plugins { id('idea') id('java') id('io.ebean') version '13.6.5' }
dependencies { ... compile 'io.ebean:ebean:13.6.5' // query bean generation annotationProcessor 'io.ebean:querybean-generator:13.6.5' testCompile 'io.ebean:ebean-test:13.6.5' ... }
For Kotlin we change the annotationProcessor to kapt
as we see below
and use the kotlin-querybean-generator
which will generate the query beans as
Kotlin rather than Java.
dependencies { ... compile 'io.ebean:ebean:13.6.5' // query bean generation kapt 'io.ebean:kotlin-querybean-generator:13.6.5' testCompile 'io.ebean:ebean-test:13.6.5' ... }
Add a ebean
section to control the debug level of enhancement.
ebean { debugLevel = 1 }
Gradle by default suppresses output logging. If we want to see SQL, DDL, Transaction logging etc we
need to set testLogging.showStandardStreams = true
in the test section like:
test { testLogging.showStandardStreams = true }
Below is a example output from ./gradlew clean test
. Specifically we can see:
$ ./gradlew clean test > Task :compileJava ebean-enhance> cls: org/example/domain/BaseDomain msg: enhanced ebean-enhance> cls: org/example/domain/Customer msg: enhanced > Task :test enhancement prior to running tests Gradle suite > Gradle test > org.example.domain.CustomerTest.saveAndFind STANDARD_OUT 14:48:49.900 [Test worker] INFO io.ebean.internal.DefaultContainer - DatabasePlatform name:db platform:h2 14:48:50.063 [Test worker] TRACE io.ebean.TXN - txn[1001] Begin 14:48:50.064 [Test worker] INFO io.ebean.DDL - Executing db-create-all.sql - 1 statements 14:48:50.064 [Test worker] DEBUG io.ebean.DDL - executing 1 of 1 create table customer ( id bigint auto_increment not... 14:48:50.076 [Test worker] DEBUG io.ebean.TXN - txn[1001] Commit 14:48:50.086 [Test worker] DEBUG io.ebean.SQL - txn[1002] insert into customer (name, start_date, comments, version) values (?,?,?,?); --bind(Hello Rob,2018-01-30,[LOB],1) 14:48:50.098 [Test worker] DEBUG io.ebean.SUM - txn[1002] Inserted [Customer] [1] 14:48:50.098 [Test worker] DEBUG io.ebean.TXN - txn[1002] Commit 14:48:50.122 [Test worker] DEBUG io.ebean.SQL - txn[1003] select t0.id, t0.name, t0.start_date, t0.version from customer t0 where t0.id = ? ; --bind(1, ) 14:48:50.124 [Test worker] DEBUG io.ebean.SUM - txn[1003] FindBean type[Customer] origin[D88YBi.A.A] exeMicros[3052] rows[1] bind[1, ] 14:48:50.129 [Test worker] DEBUG io.ebean.SQL - txn[1004] select t0.id, t0.name, t0.start_date, t0.version from customer t0 where t0.id is not null ; --bind() 14:48:50.130 [Test worker] DEBUG io.ebean.SUM - txn[1004] FindMany type[Customer] origin[D88YBm.A.A] exeMicros[0] rows[0] predicates[t0.id is not null ] bind[] hello Hello Rob .. started on: 2018-01-30 14:48:50.136 [Test worker] DEBUG io.ebean.SQL - txn[1005] select t0.id, t0.name, t0.start_date, t0.version from customer t0 where t0.name like ? and t0.id > ? ; --bind(BatOutOfHell%,1) 14:48:50.136 [Test worker] DEBUG io.ebean.SUM - txn[1005] FindMany type[Customer] origin[D88YBj.A.A] exeMicros[1619] rows[0] predicates[t0.name like ? and t0.id > ? ] bind[BatOutOfHell%,1] bats:BeanList size[0] list[] BUILD SUCCESSFUL in 1s


https://nmap.org/ncrack/
https://github.com/nmap/ncrack
Ncrack is a high-speed network authentication cracking tool. It was built to help companies secure their networks by proactively testing all their hosts and networking devices for poor passwords. Security professionals also rely on Ncrack when auditing their clients. Ncrack was designed using a modular approach, a command-line syntax similar to Nmap and a dynamic engine that can adapt its behaviour based on network feedback. It allows for rapid, yet reliable large-scale auditing of multiple hosts.
Ncrack's features include a very flexible interface granting the user full control of network operations, allowing for very sophisticated bruteforcing attacks, timing templates for ease of use, runtime interaction similar to Nmap's and many more. Protocols supported include SSH, RDP, FTP, Telnet, HTTP(S), POP3(S), IMAP, SMB, VNC, SIP, Redis, PostgreSQL, MySQL, MSSQL, MongoDB, Cassandra, WinRM and OWA.
Ncrack is released as a standalone tool and can be downloaded from the section below. Be sure to read the Ncrack man page to fully understand Ncrack usage. If you are a developer and want to write your own Ncrack modules, studying the Ncrack Developer's Guide would be the first step.
Downloading Ncrack
Ncrack is available for many different platforms, including Linux, *BSD, Windows and Mac OS X. There are already installers for Windows and Mac OS X and a universal source code tarball that can be compiled on every system. You can also download the latest version straight from the SVN repository. Older versions are available from the dist directory. For the more security-paranoid (smart) users, GPG detached signatures and SHA-1 hashes for each release are available in the sigs directory (verification is similar to the Nmap verification instructions).
Specific details and instructions are available for the source code distribution, Windows binaries, and Mac OS X binaries, and Current development source.
Source code distribution
The Ncrack tarball compiles under Windows, Mac OS X, Linux and other UNIX platforms like *BSD. The standard procedure of compilation on most UNIX systems usually goes like this:
tar -xzf ncrack-0.6.tar.gz
cd ncrack-0.6
./configure
make
su root
make install
Ncrack release tarball: ncrack-0.6.tar.gz
Windows binaries
Ncrack has been ported to Windows and has been tested on Windows XP so far. Since this is an experimental version, please notify us for any problems or successful results on other platforms.
There is a ready-to-use Windows installer available, which makes the whole procedure of getting and deploying Ncrack, painless:
Ncrack release Windows installer: ncrack-0.6-setup.exe
Mac OS X binaries
Ncrack has been ported to Mac OS X and there is a disk image file containing an installer:
Ncrack release Mac OS X installer: ncrack-0.6.dmg
Current Development Version
The Ncrack Git repository is on Github so you can always get the latest development version by pulling from there.


PullToRefresh A small, but powerful Javascript library crafted to power your webapp's pull to refresh feature. No markup needed, highly customizable and dependency-free!
To use this component you need install with the command:
mobileui install pulltorefresh
See the PullToRefresh documentation and its resources at github.com/BoxFactura/pulltorefresh.js.
See this example:


[§445-134.17] Recordkeeping. A copy of all pawn transactions shall be kept on the pawnshop premises and open to inspection by the proper authorities for a period of one year after the maturity date. [L 1992, c 192, pt of §2]


Master of Data Science - VUW.
Will attempt to DIY everything.
Always up for a new project.
Eco-Minimalist.
I primarily use Python, R and SAS but have experience with other languages including SQL and MATLAB.
RStudio, Excel, Git, PowerBI, Tableau, PostgreSQL, LaTeX, you name it and I can probably work it!


Noteworthy Features
- Entry Point (this page)
- entry point at root level, so it can use relative paths, allowing it to be proxied
- no logic, only wiring
- Test
- fake does exactly what we need, and we can tell how it works by looking at it
- 'requestCount' ensures we don't get a false positive if an event is not fired
- behavior of jquery deferred allows test to be synchronous
- Component
- composable, given an http communication mechanic, return a dom element
- no hoisting, it is obvious when everything is defined
- no anonymous functions, you can tell what each does by its name
- multiple vars in same scope not initialized when declared, so can set breakpoint on each assignment
- single vars in same scope initialized when declared
- collaborator is constructor injected, so easy to fake
- each async call names its destination, so it is easy to follow the code flow
- no knowledge of parent element, or its location in dom, or even if it is attached to the dom
- avoided the need to use 'this' or 'bind' or 'new'


Originally from Southern California, I've moved across the country a few times to expand my education and experience the community, culture, and food in each city. For my B.A., I studied Graphic Design at the University of Buffalo. Afterwards, I worked for a few years as a designer and marketing specialist in the apparel and jewelry industry.
In 2016, I decided to go back to school for a Certificate in Front-End Web Development at Seattle University to expand my knowledge about current coding in HTML, CSS, JavaScript, popular task runners, plug-ins, and frameworks used in the development community. After finishing the program, I'm happy to express that I immediately applied my skills in the education and human capitol management community.
Like to chat? Send me an email or message on social media. I'm likely to respond within 24-48 hours.


With the popularization of internet and social networks, data is becoming each day a more valuable asset. Companies are investing in the collection and analysis of user data in order to know better their customers and to define the business strategies. Big data and data analytics are the new trends in the tech world, but what about the privacy? How can we protect our personal data? The truth is that our personal data is everywhere. Have you ever tried to google your name? Well, you'll probably see that the internet knows more about you than you expected. We share our information when we use the social networks like facebook, twitter, linkedin. We share our information when we buy something on amazon. We share our information when check in in places through apps. We are sharing our information all the time. Companies realized that they can use all this information in their benefit. They can process the information to get real valuable data. Depending on the industry the data can be used in a different way to generate a business competitive advantage. One example is the use of customer data to define marketing strategy. When you buy something in amazon you will see that there are suggestions of what else you could buy. These suggestions are made based on your web clickstream history. They know which products you have already checked, so they can analyze what you would probably buy. This is only one example of how an ecommerce business can increase the sales by analyzing data. The problem is that the use of personal information can sometimes go too far. A case that became very famous and illustrates very well the abuse of information usage happened with Target, a big american retail chain. Target was analyzing the changes in the shopping habits to predict woman's pregnancy, then they could make the relevant advertisements. This "marketing activity" resulted in a dad finding out that his teenager daughter was pregnant before she had told anyone. This is only one example, but it is clear that the violation of privacy is a huge issue for big data and analytics solutions. Regulators, legislators and citizens have already raised the concerns about the unrestrained use of personal information. This discussion will not end soon, it is just starting. The organizations need to start planning privacy strategies to be able to keep the data exploration without affecting the citizens rights.


About Us
BRIAN LEMONS    LinkedIn
    GitHub
Brian is an Army Veteran and aspiring Software Engineer.
He served for 4 years as an Airborne Soldier and Signal Support Systems Specialist is Anchorage, Alaska.
Upon exiting the military, Brian had a passion for technology and building projects.
He decided he wanted to combine these passions and build projects from the ground up.
Now, Brian is enrolled in Code Fellows, and aspires to become a Full Stack JavaScript Developer
DON BANDY     LinkedIn     GitHub
Don is an Army Veteran and aspiring Software Engineer.
He served for 4 years as an Airborne Infantryman at Fort Lewis, Washington.
Don has a passion for entreprenerial adventures and technology.
After having managed several development teams, he decided that he was tired of missing out on the action and wanted to join the fun.
PATRICK JARRETT (PJ)     LinkedIn     GitHub
PJ served in the United States Marine Corps for 8 years and got out in 2019.
He is currently working in the private security sector for an international company as a Security Detail Supervisor.
He chose to go into the software engineering field not only to better himself, but his family as well.
Patrick is passionate about finding different ways to create more interactive versions of user-friendly websites.
WENHAO PIAO     LinkedIn     GitHub
Wenhao is a Software Development Engineer Apprentice with Amazon Web Services(AWS).
He is an Army veteran with a Master of Science in Electrical Engineering.
He worked in the medical field in the U.S. Army and served for 4 years.
After the Army, he worked as an Engineering Program Manager Intern at Oracle.
He is a hard worker, team player, problem-solver, and most importantly he loves coding and learn new technologies.
One of his plans for this year is to learn python and machine learning after work hours.


Merchants who wish to integrate with LitecoinZ can do so via the self-hosted HTTP API provided by the LtzCore toolkit. LtzCore is a fork of the industry standard BitCore toolkit for Bitcoin, and offers a streamlined method of confirming payments for web applications. LtzCore is built using the Node.js platform and integrates well with many modern web frameworks.


data class GASurface
GASurface(capabilities: List<GACapability>)
val capabilities: List<GACapability>
fun hasAudio(): Boolean
fun hasScreen(): Boolean


Hello,
I'm Protik Kumar Das
A
I am a creative prorgammer. I try to do something new and unique everyday. I am currently 16 years old. I am from Bangladesh. I do funny exeperiments by creating and re-creating many things. You can check it out in my GitHub profile.
Check Out


Nagaraj, Guru Vignesh
1001382893
States between 2 to 8 million
State
{% for row in rows %}
{{ row[0] }}
{% endfor %}
States between 8 to 40 million
State
{% for row1 in rows1 %}
{{ row1[0] }}
{% endfor %}


---
layout: single
author_profile: true
title: Home
tagline: Finn Rietz.dev
header:
overlay_color: "#000"
overlay_filter: "0.5"
overlay_image: /assets/img/rpsls.gif
caption: Banner info
---
About me
Hey, I'm Finn Rietz, an AI enthusiast and computer scientist from Germany.
I am currently employed as a Ph.D. student at the Adaptive and Interpretable Learning Systems Lab, funded by the WASP program.
Starting from 01.03.23, I am also appointed as leader of the WASP Reinforcement Learning (RL) cluster, which is a group of ~50 RL and Robotics researchers.
My research interests are, broadly speaking, Deep Reinforcement Learning (DRL), Transfer Learning, and Robotics.
I believe that the DRL framework has immense potential for industry automation and optimization, but also think that the intransparency and data inefficiency of deep neural network-based AI systems must be addressed for safe and efficient real-world employment of these technologies.
About this site
This sites is subject to mainly two ideas:
Firstly, I want to contribute to the community and share my insight about topics I care about, especially where I experienced a lack of material or documentation.
However, you might also find me writing about topics that are already well covered, in which case I simply wanted to take my spin on a topic.
This addresses the blog posts you find on this website, which are meant to be of educational nature, at least to some extent.
Secondly, this website serves as my digital business card.
Hence, you find some of my projects on here as well.
These aim at illustrating a part of my skill-set and, unlike the blog posts, they are not primarily meant to be educational resources (although they might still be informational for some).
I might also write about purely for fun projects that I did.
Latest Post
{% assign posts = site.posts %}
{% for post in posts limit:1%}
{% include archive-single.html %}
{% endfor %}


Wallpaper Colors
Prominent Colors
K Mean Color
Cros Tokens
This is the current color palette for CrOS, generated from cros_ref_colors.json5 and cros_sys_colors.json5 .
The value column shows the current color for that token with the current system palette in whatever light/dark theme you are currently using. The formula columns show how a sys token is calculated from a ref token.
Last updated [loading]
| Token | Value |
|---|
| Token | Value | Light Formula | Dark Formula |
|---|


|
Standard Reference Data Program |
Data Gateway |
Chemistry WebBook |
Go To: Top, Constants of diatomic molecules, References, Notes / Error Report
Data compilation copyright by the U.S. Secretary of Commerce on behalf of the U.S.A. All rights reserved.
Data compiled by: J.E. Bartmess
HS- + H+ =
| Quantity | Value | Units | Method | Reference | Comment |
|---|---|---|---|---|---|
| ΔrH° | 1468. ± 12. | kJ/mol | Endo | Rempala and Ervin, 2000 | gas phase |
| ΔrH° | 1469.8 ± 0.42 | kJ/mol | D-EA | Breyer, Frey, et al., 1981 | gas phase |
| ΔrH° | 1469. ± 8.8 | kJ/mol | G+TS | Bartmess, Scott, et al., 1979 | gas phase; value altered from reference due to change in acidity scale |
| ΔrH° | 1470. | kJ/mol | N/A | Shiell, Hu, et al., 1900 | gas phase; 0K:350.125±0.009 kcal/mol, corr to 298K from Gurvich, Veyts, et al., With EA( Breyer, Frey, et al., 1981)BDE(0K)=89.97±0.05 |
| ΔrH° | 1473. ± 8.8 | kJ/mol | G+TS | Cumming and Kebarle, 1978 | gas phase |
| Quantity | Value | Units | Method | Reference | Comment |
| ΔrG° | 1441. ± 13. | kJ/mol | H-TS | Rempala and Ervin, 2000 | gas phase |
| ΔrG° | 1443. ± 8.4 | kJ/mol | IMRE | Bartmess, Scott, et al., 1979 | gas phase; value altered from reference due to change in acidity scale |
| ΔrG° | 1443.1 ± 0.42 | kJ/mol | H-TS | Shiell, Hu, et al., 1900 | gas phase; 0K:350.125±0.009 kcal/mol, corr to 298K from Gurvich, Veyts, et al., With EA( Breyer, Frey, et al., 1981)BDE(0K)=89.97±0.05 |
| ΔrG° | 1446. ± 8.4 | kJ/mol | IMRE | Cumming and Kebarle, 1978 | gas phase |
Go To: Top, Gas phase ion energetics data, References, Notes / Error Report
Data compilation copyright by the U.S. Secretary of Commerce on behalf of the U.S.A. All rights reserved.
Data compiled by: K.P. Huber and G. Herzberg
| State | Te | ωe | ωexe | ωeye | Be | αe | γe | De | βe | re | Trans. | ν00 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| X 1Σ+ | The analysis of the shape of the photodetachment cross section curve Steiner, 1968 leads to ground state constants which are indistinguishable from those of SH (X 2Π), confirming theoretical predictions by Cade, 1967. |
| 1 | From D00(SH) and the electron affinities of SH and S. |
| 2 | From the photodetachment cross section Steiner, 1968. |
Go To: Top, Gas phase ion energetics data, Constants of diatomic molecules, Notes / Error Report
Data compilation copyright by the U.S. Secretary of Commerce on behalf of the U.S.A. All rights reserved.
Rempala and Ervin, 2000
Rempala, K.; Ervin, K.M.,
Collisional activation of the Endoergic Hydrogen Atom Transfer Reaction S-(2P) + H2 -> SH- + H,
J. Chem. Phys., 2000, 112, 4579. [all data]
Breyer, Frey, et al., 1981
Breyer, F.; Frey, P.; Hotop, H.,
High Resolution Photoelectron Spectrometry of Negative Ions: Rotational Transitions in Laser-Photodetachment of OH-, SH-, and SD-,
Z. Phys. A, 1981, 300, 7. [all data]
Bartmess, Scott, et al., 1979
Bartmess, J.E.; Scott, J.A.; McIver, R.T., Jr.,
The gas phase acidity scale from methanol to phenol,
J. Am. Chem. Soc., 1979, 101, 6047. [all data]
Shiell, Hu, et al., 1900
Shiell, R.C.; Hu, X.K.; Hu, Q.J.; Hepburn, J.W.,
A determination of the bond dissociation energy (D-0(H-SH)): Threshold ion-pair production spectroscopy (TIPPS) of a triatomic molecule,
J. Phys. Chem. A, 1900, 104, 4339-4342. [all data]
Gurvich, Veyts, et al.
Gurvich, L.V.; Veyts, I.V.; Alcock, C.B.,
Hemisphere Publishing, NY, 1989, V. 1 & 2, Thermodynamic Properties of Individual Substances, 4th Ed. [all data]
Cumming and Kebarle, 1978
Cumming, J.B.; Kebarle, P.,
Summary of gas phase measurements involving acids AH. Entropy changes in proton transfer reactions involving negative ions. Bond dissociation energies D(A-H) and electron affinities EA(A),
Can. J. Chem., 1978, 56, 1. [all data]
Steiner, 1968
Steiner, B.,
Photodetachment of Electrons From SH-,
J. Chem. Phys., 1968, 49, 5097. [all data]
Cade, 1967
Cade, P.E.,
Hartree-Fock wavefunctions, potential curves, and molecular properties for OH-(1Σ+) and SH-(1Σ+),
J. Chem. Phys., 1967, 47, 2390. [all data]
Go To: Top, Gas phase ion energetics data, Constants of diatomic molecules, References
| ΔrG° | Free energy of reaction at standard conditions |
| ΔrH° | Enthalpy of reaction at standard conditions |
Copyright for NIST Standard Reference Data is governed by the Standard Reference Data Act.
|
Standard Reference Data Program |
Data Gateway |
Chemistry WebBook |
If you have comments or questions about this site, please contact us.