Quick is a behavior-driven development framework for Swift and Objective-C. Inspired by RSpec, Specta, and Ginkgo.
// Swift
import Quick
import Nimble
class TableOfContentsSpec: QuickSpec {
override class func spec() {
describe("the 'Documentation' directory") {
it("has everything you need to get started") {
let sections = Directory("Documentation").sections
expect(sections).to(contain("Organized Tests with Quick Examples and Example Groups"))
expect(sections).to(contain("Installing Quick"))
}
context("if it doesn't have what you're looking for") {
it("needs to be updated") {
let you = You(awesome: true)
expect{you.submittedAnIssue}.toEventually(beTruthy())
}
}
}
}
}
Nimble
Quick comes together with Nimble — a matcher framework for your tests. You can learn why XCTAssert()
statements make your expectations unclear and how to fix that using Nimble assertions here.
Swift Version
Certain versions of Quick and Nimble only support certain versions of Swift. Depending on which version of Swift your project uses, you should use specific versions of Quick and Nimble. Use the table below to determine which versions of Quick and Nimble are compatible with your project.
| Swift version | Quick version | Nimble version |
|---|---|---|
| Swift 5.2 | v3.0.0 or later | v9.0.0 or later |
| Swift 4.2 / Swift 5 | v1.3.2 or later | v7.3.2 or later |
| Swift 3 / Swift 4 | v1.0.0 or later | v5.0.0 or later |
| Swift 2.2 / Swift 2.3 | v0.9.3 | v4.1.0 |
Documentation
All documentation can be found in the Documentation folder, including detailed installation instructions for CocoaPods, Carthage, Git submodules, Swift Package Manager, and more. For example, you can install Quick and Nimble using CocoaPods by adding the following to your Podfile
:
# Podfile
use_frameworks!
target "MyApp" do
# Normal libraries
target 'MyApp_Tests' do
inherit! :search_paths
pod 'Quick'
pod 'Nimble'
end
end
You can also install Quick and Nimble using Swift Package Manager by adding the following to the dependencies section your Package.swift
:
dependencies: [
.package(url: "https://github.com/Quick/Quick.git", from: "7.0.0"),
.package(url: "https://github.com/Quick/Nimble.git", from: "12.0.0"),
],
Projects using Quick
Over ten-thousand apps use either Quick and Nimble however, as they are not included in the app binary, neither appear in “Top Used Libraries” blog posts. Therefore, it would be greatly appreciated to remind contributors that their efforts are valued by compiling a list of organizations and projects that use them.
Does your organization or project use Quick and Nimble? If yes, please add your project to the list.
Who uses Quick
Similar to projects using Quick, it would be nice to hear why people use Quick and Nimble. Are there features you love? Are there features that are just okay? Are there some features we have that no one uses?
Have something positive to say about Quick (or Nimble)? If yes, provide a testimonial here.
License
Apache 2.0 license. See the LICENSE
file for details.


The Best in their Field
E-shop is powered by (Future Solution for business) ltd. It’s a total market place where we create a E-Commerce platform for rural producers as they can easily sell their products at anywhere of the world .It is the first e-commerce solution provider in Bangladesh. The online transaction gateway provided by Brac Bank .Amar Desh Amar Gram is a project powered by FSB(Future Solutions for Business)ltd, (http://www.fsb.com.bd) is an IT solution provider company with an excellent track record of over 9 years of successful IT business in UK and Bangladesh. It aims to create a Digital Bangla Community by breaking down the digi- tal divide. The project achieves its purpose by establishing infrastructure (in the form of village e-centres) is required for the e-commerce and then is able to pro- vide additional services and income through digitizing information on local government, school and training. Focusing on the application of ICT for rural devel- opment especially in areas of trade, health, agriculture, human rights and to carry out surveys, analyze data, for development of rural skills and lifestyle. To resource manpower through skill development training, particularly for the unemployed youth groups and adolescents girls, in use of ICT, data collection, com- pilation, analysis and information sharing among various stakeholders aiming towards sustainability of such effort. Mission Statement Amar Desh Amar Gram; an first initiative of Bangladesh. Where by establishing an ICT based network connecting rural life with city life and vice versa. Amar Desh Amar Gram plat- forms nine pillars which not only covers ecommerce through, but also covers aspects such as culture, tourism, press, government services, education, entertain- ment hubs, etc bringing aspects of city lifestyles to the rural people which they never dreamt of. 1. Microsoft Training to the Communities: Since 2003, Micro- soft has been committed to providing technology skills training to people across the country. In partnership with thousands of nonprofit organizations, we have reached more than 27 million people. Microsoft is partnering with nonprofit organizations that provide technology access and training in their local communi- ties to help people find employment. As a country of paradox why we are lagging behind we need to utilize this service provided by Microsoft. Microsoft is part- nering with nonprofit organizations across the country to provide individuals with the technology training they need to find employment. We are providing more than $5 million in cash and up to $10 million in software and training curriculum for information technology (IT) skills to support these organizations who will provide support services to help individuals to address barriers to employment and prepare for the challenge of looking for a job in today’s economy. Resources may include the following:
Career counseling
Technology skills training
Other job training resources
Additional support services (for example, childcare,Maternal health care ,Employment transportation, and housing) Each of these organizations and their part- ners represent a unique program and delivery model, serving diverse populations. We are placing a special focus on underserved communities, including women and young workers (ages 18-25) who have greater barriers to employment and re-employment than the broader population. Together, we hope that we can meet the needs of the thousands of individuals and families who could benefit from this type of support.


Use Watson Natural Language Classifier to predict spam.
The training dataset: The SMS Spam Collection v.1 is a public set of SMS labeled messages that have been collected for mobile phone spam research. It has one collection composed by 5,574 English, real and non-encoded messages, tagged according being legitimate (ham) or spam. More information can be found here. More information can be found here.
Get the code in GitHub or view the docs.


This C module realizes pattern-matching with dos-style wildcard characters '*' and '?'. This module doesn't offer the power of "regular expressions", but might be slightly easier to use. '*' matches zero or more instances of any characters, while '?' matches one (no more, no less) instance of any character. '\*' matches '*', '\?' matches '?' and '\\' matches '\', but in string literals you will have to type them as '\\*','\\?' and '\\\\', since the compiler parses '\\' as a single backslash. '*' is "greedy", so that with "variation", "v*i" matches "variati", instead of "vari" that would be matched if '*' was non-greedy. This module works with more complex patterns than early MS-DOS implementations, so that "c*p*d" matches "crepitud" in "decrepitude".
int WCMatchPos(char *string, char *wildcard, char **begin, char **end,int icase);
Example:
WCMatchPos("garage","a*g",&beg,&end,1);
Where you have previously declared char *beg,*end;
so
that beg and end are of type "pointer-to-character".
The example
would make
int WCMatch(char *string, char *wildcard,int icase);
This is a front-end to WCMatchPos, return value is similar and you don't have to provide pointers to pointers to chars, if such things don't interest you. For example:
if (WCMatch(filename,"*.txt",1)) puts("It is a text file!");
But do note that '*'-wildcards at the beginning of pattern are often unnecessary and only slow down the algorithm. If you only care about the truth value, you might as well use ".txt" as a wildcard. It only matches the ".txt"-part, so that if you want to include the full file name into match (ie utilize the return value apart from zero-nonzero distinction, or in conjunction with WCMatchPos), you might want to use the full form "*.txt", even though it's slower.
char *WCReplaceOne(char *string, char *wildcard, char *replacewith, char *resultbuf,int icase);
This function results in 'resultbuf' containing the same value as 'string', except that the first occurence of wildcard will be replaced by the string contained in 'replacewith'. For example:
char *word="Mountain";
char result[300];
WCReplaceOne(word,"u*a",".......", result,0);
Would result in 'result' containing the string 'Mo.......in'. Note that you must allocate enough memory for the result, otherwise the program will crash (if you are lucky).
int WCPossible(char *string, char *wildcard,int icase);
You won't probably need this function, it checks if it's possible for wildcard to match string, but it can and will return false positives. It's used internally for optimization, as it's much faster than the actual matching functions.


public abstract class Pitch
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int[] |
circleOfFifths
The circle of fifths relative to root.
|
static int[] |
dorian
The dorian scale relative to root.
|
static float |
LOG2
The constant log(2) = 0.6931472.
|
static int[] |
major
The major scale relative to root.
|
static int[] |
minor
The minor scale relative to root.
|
static int[] |
pentatonic
Pentatonic.
|
static java.lang.String[] |
pitchNames
Pitch names for scale starting at C.
|
| Constructor and Description |
|---|
Pitch() |
| Modifier and Type | Method and Description |
|---|---|
static float |
forceFrequencyToScale(float freq,
int[] scale) |
static int |
forceToScale(int pitch,
int[] scale)
Takes a pitch and returns that pitch adjusted downwards to the nearest pitch in the given scale.
|
static int |
forceToScale(int pitch,
int[] scale,
int notesPerOctave)
Takes a pitch and returns that pitch adjusted downwards to the nearest pitch in the given scale.
|
static float |
ftom(float frequency)
Convert frequency to MIDI note number.
|
static int |
getRelativeMidiNote(int scaleTonic,
int[] scaleData,
int scaleIndex)
Calculate the MIDI note that would be required given the tonic of a scale, the numbers
in the scale relative to the tonic, and the index using zero based reference
For example, with Midi Note C3 (60), using the Major scale, and scaleIndex of 8 (being major 9th)
we would get 60 + 12 + 2 = 74 (D4)
|
static float |
mtof(float midi)
Convert MIDI note number to frequency.
|
static double |
shiftPitch(float frequency,
int midiDegree)
Shift the Pitch based on the number of semitones
|
public static final float LOG2
public static final java.lang.String[] pitchNames
public static final int[] dorian
public static final int[] major
public static final int[] minor
public static final int[] circleOfFifths
public static final int[] pentatonic
public static final float ftom(float frequency)
frequency
- the required frequency.public static final float mtof(float midi)
midi
- the required MIDI note number.public static final int forceToScale(int pitch, int[] scale, int notesPerOctave)
pitch
- the pitch to modify.scale
- the scale to use.notesPerOctave
- how many notes in your octave (12 if you're not sure).public static final int forceToScale(int pitch, int[] scale)
pitch
- the pitch to modify.scale
- the scale to use.public static final float forceFrequencyToScale(float freq, int[] scale)
public static int getRelativeMidiNote(int scaleTonic, int[] scaleData, int scaleIndex)
scaleTonic
- The note number that would be the zero index of the scalescaleData
- An array of notes for which to define our scalescaleIndex
- The index within the scale to find the value to addpublic static double shiftPitch(float frequency, int midiDegree)
frequency
- The frequency we want shiftedmidiDegree
- the number of semitones we want to shift


GetWaterWiseBuffalo.org is a website run by Buffalo Water ("we", "us", "our"). This Privacy Policy describes how the GetWaterWiseBuffalo.org website (the "Site") collects, uses, and protects your personal information. By submitting your personal information on the Site, you agree to the terms in this Privacy Policy. If you do not agree with these terms, please do not use the Site. You can go to buffalowater.org to apply for the Residential Affordable Water Program.
We will only use your personal information to:
Help you get and keep Residential Affordable Water Program benefits and any other Pathways To Affordable Water program benefits that you apply for on future versions of the Site ("GetWaterWiseBuffalo.org" herein refers to all such programs).
Suggest other services or assistance programs that may be useful to you. We will only use your personal information in order to present those services or programs to you as an option but will never send your personal information to any other services or programs without your permission.
We will not knowingly disclose or sell your personal information to any third party, except as provided in this privacy policy.
We will take all reasonable measures to protect your personal information.
We collect all information that you provide through the Site, including your name, address, contact information, financial information, and similar information for other individuals that you include on your Residential Affordable Water Program application (the "Application"). We also collect and store copies of any documents you upload, like pictures of your pay stubs, rent receipts, etc. We do not store any of this information unless you electronically sign your Application and click 'Submit Application' at the end.
In addition to the information you provide, we automatically collect and store information about your visit to the Site:
Domain from which you access the Internet.
IP address (an IP or internet protocol address is a number that is automatically given to a computer connected to the Web).
Operating system on your computer and information about the browser you used when visiting the site.
Date and time of your visit.
Pages you visited.
Address of the website that connected you to the Site (such as google.com or bing.com).
We use this information to understand how the Site is used, improve the Site, and monitor usage for security purposes. This data is stored separately from the personal information you submit in the Application.
We will not collect personal information from you without your knowledge and consent, except in a few limited circumstances as described in this policy.
We currently retain all data indefinitely unless you specifically request that we delete it. You can make this request by emailing us at<EMAIL_ADDRESS>We only use your personal information to help you receive assistance on your water bill. For example:
We submit your Application to Buffalo Water.
We may remind you to submit documents, depending on your contact preferences.
We will send you a confirmation message when we have successfully submitted your Application information to Buffalo Water. We may also send you a message if there is a problem submitting your information to Buffalo Water and additional information is needed. Outside of those cases:
We will not send you an email unless you consent to email communication in the application or you email us first. Every automated email will include a link to unsubscribe.
Once you submit your Application on the Site, we share this information with Buffalo Water.
We also disclose your personal information to Buffalo Water employees, contractors, and affiliated organizations that need to know the information in order to provide the services of the Site.
Besides individuals affiliated with the Site, we do not share your personal information with any other individuals or organizations, except to the minimal extent required by law.
Protecting your personal information is extremely important to us, and we take all reasonable measures to do so. Here are some specific security practices we use:
When you enter your information on our site, we encrypt the transmission of that information using transport layer security (TLS).
We store your Application information and documents on Heroku PostgreSQL database and on AWS S3, which is a trusted third party data storage service. Heroku is a cloud platform used to deploy and operate web applications. For more information on Heroku, see: https://www.heroku.com/policy/security. For more information on AWS S3, see: https://aws.amazon.com/s3/.
Although we try our best to protect the privacy of your personal information, we cannot guarantee complete security. The transmission of information via the Internet is not completely secure. Unauthorized entry or use, hardware or software failure, and other factors, may compromise the security of user information at any time.
We may change this Privacy Policy from time to time. Please check this page frequently for updates as your continued use of this site after any changes in this Privacy Policy will constitute your acceptance of the changes.
This version of the policy is effective April 29, 2020.
If you have any questions, comments, concerns, or complaints with the Site, please contact us by email at<EMAIL_ADDRESS>We will do our best to resolve the issue.


{% extends 'base.html' %} {% load static %} {% block content %}
Setting your project showcase to public will make the project and team page available to the general public on the "Showcase" section of the this website.
Your project details (e.g. description, technologies and screenshots) will be visible and if your name is selected above your full name will be displayed with a link to your website as defined in on your profile page.
This will allow you to show or hide the full team or some individuals in the team to showcase your skills and add to your portfolio. It can also be changed at any time.


Uses of Class
unifeat.gui.ParameterPanel
Package
Description
-
Uses of ParameterPanel in unifeat.gui.classifier
Modifier and TypeClassDescriptionclass
This java class is used to create and show a panel for the parameter settings of the decision tree classifier.class
This java class is used to create and show a panel for the parameter settings of the k-nearest neighbours classifier. -
Uses of ParameterPanel in unifeat.gui.classifier.svmClassifier
Modifier and TypeClassDescriptionclass
This java class is used to create and show a panel for the parameter settings of the support vector machine classifier. -
Uses of ParameterPanel in unifeat.gui.featureSelection.embedded
Modifier and TypeClassDescriptionclass
This java class is used to create and show a panel for the parameter settings of the multiple support vector machine method based on recursive feature elimination (MSVM_RFE). -
Uses of ParameterPanel in unifeat.gui.featureSelection.embedded.decisionTreeBased
Modifier and TypeClassDescriptionclass
This java class is used to create and show a panel for the parameter settings of the decision tree based method. -
Uses of ParameterPanel in unifeat.gui.featureSelection.filter
Modifier and TypeClassDescriptionclass
This java class is used to create and show a panel for the parameter settings of the incremental relevance-redundancy feature selection based on ant colony optimization, version1 (IRRFSACO_1) method.class
This java class is used to create and show a panel for the parameter settings of the incremental relevance–redundancy feature selection based on ant colony optimization, version2 (IRRFSACO_2) method.class
This java class is used to create and show a panel for the parameter settings of the Laplacian score method.class
This java class is used to create and show a panel for the parameter settings of the microarray gene selection based on ant colony optimization (MGSACO) method.class
This java class is used to create and show a panel for the parameter settings of the relevance–redundancy feature selection based on ant colony optimization, version1 (RRFSACO_1) method.class
This java class is used to create and show a panel for the parameter settings of the relevance–redundancy feature selection based on ant colony optimization, version2 (RRFSACO_2) method.class
This java class is used to create and show a panel for the parameter settings of the relevance-redundancy feature selection(RRFS) method.class
This java class is used to create and show a panel for the parameter settings of the unsupervised feature selection based on ant colony optimization (UFSACO) method. -
Uses of ParameterPanel in unifeat.gui.featureSelection.filter.rsm
Modifier and TypeClassDescriptionclass
This java class is used to create and show a panel for the parameter settings of the random subspace method (RSM) method. -
Uses of ParameterPanel in unifeat.gui.featureSelection.wrapper.ACOBased
Modifier and TypeClassDescriptionclass
This java class is used to create and show a panel for the parameter settings of the basic ant colony optimization (BasicACO) method.class
This java class is used to create and show a panel for the parameter settings of the optimal ant colony optimization (OptimalACO) method. -
Uses of ParameterPanel in unifeat.gui.featureSelection.wrapper.GABased
Modifier and TypeClassDescriptionclass
This java class is used to create and show a panel for the parameter settings of the basic genetic algorithm (BasicGA) method.class
This java class is used to create and show a panel for the parameter settings of the hybrid genetic algorithm using local search (HGAFS).class
This java class is used to create and show a panel for the parameter settings of the simple genetic algorithm (Simple GA). -
Uses of ParameterPanel in unifeat.gui.featureSelection.wrapper.PSOBased
Modifier and TypeClassDescriptionclass
This java class is used to create and show a panel for the parameter settings of the basic particle swarm optimization (BasicPSO) method.class
This java class is used to create and show a panel for the parameter settings of the binary particle swarm optimization (BPSO) method.class
This java class is used to create and show a panel for the parameter settings of the continuous particle swarm optimization (CPSO) method.class
This java class is used to create and show a panel for the parameter settings of the hybrid particle swarm optimization method using local search (HPSO-LS).class
This java class is used to create and show a panel for the parameter settings of the particle swarm optimization version 4-2 (PSO(4-2)) method.


I'm a senior deep learning performance software engineer in the TensorRT team at NVIDIA.
I received my Ph.D. in Computer Engineering from Purdue University in December 2021.
I interned in the Systems Research Group at Microsoft Research Redmond in Summer 2017.
I work on computer systems, with a recent focus on systems for machine learning.
Research
Computer systems: operating systems, compiler, architecture, and runtime systems for emerging applications and hardware.
NVIDIA (2022 - now): TensorRT for high-performance deep learning inference on NVIDIA GPUs.
Purdue (2015 - 2021): system for machine learning and real-time data analytics on modern hardware, e.g., many-core CPUs, hybrid memory (DRAM + 3D-stacked memory), and tiny microcontrollers, aiming to improve system performance and enable new use cases.
ICT-CAS (2012 - 2015): OS kernel (memory subsystem & drivers), system virtualization (QEMU & KVM), and RPC systems (with RDMA).
Publications
Systems Support for Data Analytics by Exploiting Modern Hardware Hongyu Miao
PhD Dissertation, Purdue University
West Lafayette, IN, December 2021
[
PDF |
Slides
]
Towards Out-of-core Neural Networks on Microcontrollers Hongyu Miao and Felix Xiaozhu Lin
The 7th ACM/IEEE Symposium on Edge Computing (SEC 2022)
Seattle, WA, December 2022
[
PDF
] Best Paper Award
StreamBox-HBM: Stream Analytics on High Bandwidth Hybrid Memory Hongyu Miao, Myeongjae Jeon, Gennady Pekhimenko, Kathryn S. McKinley, and Felix Xiaozhu Lin
The 24th ACM International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS 2019)
Providence, RI, April 2019
[
PDF |
Slides |
Poster |
Website
]
StreamBox: Modern Stream Processing on a Multicore Machine Hongyu Miao, Heejin Park, Myeongjae Jeon, Gennady Pekhimenko, Kathryn S. McKinley, and Felix Xiaozhu Lin
The 2017 USENIX Annual Technical Conference (USENIX ATC 2017)
Santa Clara, CA, July 2017
[
PDF |
Slides |
Poster |
Website
]
Tell Your Graphics Stack That the Display Is Circular Hongyu Miao and Felix Xiaozhu Lin
The 17th International Workshop on Mobile Computing Systems and Applications (HotMobile 2016)
St. Augustine, FL, February 2016
[
PDF |
Slides |
Poster
]


--- title: Minimill Project Template featured_image: projects/gulp.jpeg link: https://github.com/minimill/project-template date: 2015-11-01 ---
When Jeff Hilnbrand and I started Minimill, we thought that one of our biggest comptetitive advantages over other design agencies could be our design and development speed. We work very well together and communicate well. But we also needed first-class tools to design and develop rapid iterations together.
When it comes to software engineering, fast usually means sloppy. But not always. In an effort to automate all of the best practices that I like to employ in websites, I built the Minimill Project Template, a static site generator powered by Gulp.
The installation is just three commands, and then the project template will:
All with the command:
{% highlight bash %} gulp serve {% endhighlight %}The result is that it's really easy to get started on a new project. Just clone the repo, make a few modifications, and I can jump right into implementing pages.


Liverpool star Gomez’s difficult week ends on low note
LONDON, Nov 17 — Liverpool full-back Joe Gomez’s rollercoaster week, from the high of beating Manchester City last Sunday to being booed at Wembley on Thursday, ended with him missing England’s final Euro 2020 qualifier in Kosovo due to a sore knee.
The 22-year-old — whose Liverpool team-mate Jordan Henderson also misses the trip to Kosovo with a viral infection — featured in the headlines earlier in the week after City striker Raheem Sterling confronted him at England’s training centre on Monday, the day after Liverpool’s 3-1 victory over City.
Gomez was booed when he came on as a substitute in the 7-0 mauling of Montenegro, while Henderson missed it due to a one-match ban.
Victory assured England of a place at the finals.
“Jordan Henderson and Joe Gomez will miss England’s final Uefa Euro 2020 qualifier in Kosovo on Sunday,” read a statement from the Football Association (FA).
“Henderson arrived in camp with a viral infection that has not fully cleared.
“Meanwhile, his Liverpool team-mate Gomez sustained a knock to the knee in training on Friday and has not recovered sufficiently enough to travel.
“The pair have returned to their club meaning the Three Lions will head to Pristina on Saturday with a 23-man squad.”
England may have assured themselves of a place in the finals but Southgate wants a win today to ensure they are seeded in the top six.
Sterling is expected to play a role after being dropped for the Montenegro game due to the Gomez incident, for which he apologised.
Kosovo will be in the play-offs next March having progressed through the Nations League, so their dream of reaching a first major tournament finals is still alive. — AFP


Visualizing spatial data with Python¶
%matplotlib inline
import pandas as pd
import geopandas
import matplotlib.pyplot as plt
countries = geopandas.read_file("zip://./data/ne_110m_admin_0_countries.zip")
cities = geopandas.read_file("zip://./data/ne_110m_populated_places.zip")
rivers = geopandas.read_file("zip://./data/ne_50m_rivers_lake_centerlines.zip")
GeoPandas visualization functionality¶
Basic plot¶
countries.plot()
<AxesSubplot:>
Adjusting the figure size¶
countries.plot(figsize=(15, 15))
<AxesSubplot:>
Removing the box / x and y coordinate labels¶
ax = countries.plot(figsize=(15, 15))
ax.set_axis_off()
Coloring based on column values¶
Let’s first create a new column with the GDP per capita:
countries = countries[(countries['pop_est'] >0 ) & (countries['name'] != "Antarctica")]
countries['gdp_per_cap'] = countries['gdp_md_est'] / countries['pop_est'] * 100
and now we can use this column to color the polygons:
ax = countries.plot(figsize=(15, 15), column='gdp_per_cap')
ax.set_axis_off()
ax = countries.plot(figsize=(15, 15), column='gdp_per_cap', scheme='quantiles', legend=True)
ax.set_axis_off()
Combining different dataframes on a single plot¶
The .plot
method returns a matplotlib Axes object, which can then be re-used to add additional layers to that plot with the ax=
keyword:
ax = countries.plot(figsize=(15, 15))
cities.plot(ax=ax, color='red', markersize=10)
ax.set_axis_off()
ax = countries.plot(edgecolor='k', facecolor='none', figsize=(15, 10))
rivers.plot(ax=ax)
cities.plot(ax=ax, color='C1')
ax.set(xlim=(-20, 60), ylim=(-40, 40))
[(-20.0, 60.0), (-40.0, 40.0)]
Adding a background map with contextily¶
The contextily package allow to easily add a web-tile based backgroubd (basemap) to your GeoPandas plots.
Currently, the only requirement is that your data is already in the WebMercator projection (EPSG:3857).
# selecting the cities in Europe
cities_europe = cities[cities.within(countries[countries['continent'] == 'Europe'].unary_union)]
# converting to WebMercator
cities_europe2 = cities_europe.to_crs(epsg=3857)
ax = cities_europe2.plot()
import contextily
ax = cities_europe2.plot(figsize=(10, 6))
contextily.add_basemap(ax)
ax = cities_europe2.plot(figsize=(10, 6))
contextily.add_basemap(ax, url=contextily.providers.Stamen.TonerLite)
<ipython-input-21-a1532d0bea4a>:2: FutureWarning: The "url" option is deprecated. Please use the "source" argument instead.
contextily.add_basemap(ax, url=contextily.providers.Stamen.TonerLite)
Using geoplot
¶
The geoplot
packages provides some additional functionality compared to the basic .plot()
method on GeoDataFrames:
High-level plotting API (with more plot types as geopandas)
Native projection support through cartopy
https://residentmario.github.io/geoplot/index.html
import geoplot
import geoplot.crs as gcrs
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-24-6454558c30bd> in <module>
----> 1 import geoplot
2 import geoplot.crs as gcrs
ModuleNotFoundError: No module named 'geoplot'
fig, ax = plt.subplots(figsize=(10, 10), subplot_kw={
'projection': gcrs.Orthographic(central_latitude=40.7128, central_longitude=-74.0059)
})
geoplot.choropleth(countries, hue='gdp_per_cap', projection=gcrs.Orthographic(), ax=ax,
cmap='magma', linewidth=0.5, edgecolor='white')
ax.set_global()
ax.outline_patch.set_visible(True)
#ax.coastlines()
Using cartopy
¶
Cartopy is the base matplotlib cartographic library, and it is used by geoplot
under the hood to provide projection-awareness.
http://scitools.org.uk/cartopy/docs/latest/index.html
The following example is taken from the docs: http://geopandas.readthedocs.io/en/latest/gallery/cartopy_convert.html#sphx-glr-gallery-cartopy-convert-py
from cartopy import crs as ccrs
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-23-41c2a845ae0b> in <module>
----> 1 from cartopy import crs as ccrs
ModuleNotFoundError: No module named 'cartopy'
# Define the CartoPy CRS object.
crs = ccrs.AlbersEqualArea()
# This can be converted into a `proj4` string/dict compatible with GeoPandas
crs_proj4 = crs.proj4_init
countries_ae = countries.to_crs(crs_proj4)
# Here's what the plot looks like in GeoPandas
countries_ae.plot()
# Here's what the plot looks like when plotting with cartopy
fig, ax = plt.subplots(subplot_kw={'projection': crs})
ax.add_geometries(countries_ae['geometry'], crs=crs)
# Here's what the plot looks like when plotting with cartopy and geopandas combined
fig, ax = plt.subplots(subplot_kw={'projection': crs})
countries_ae['geometry'].plot(ax=ax)
Interactive web-based visualizations¶
There are nowadays many libraries that target interactive web-based visualizations and that can handle geospatial data. Some packages with an example for each:
Bokeh: https://bokeh.pydata.org/en/latest/docs/gallery/texas.html
GeoViews (other interface to Bokeh/matplotlib): http://geo.holoviews.org
Altair: https://altair-viz.github.io/gallery/choropleth.html
Plotly: https://plot.ly/python/#maps
…
Another popular javascript library for online maps is Leaflet.js, and this has python bindings in the folium and ipyleaflet packages.


{% extends "global/Page.html" %} {% load staticfiles otree %} {% block title %} Results {% endblock %} {% block content %}
{% if player.id_in_group == 1 %}
{% if accepted %}
{% if accepted_by_timeout %}
The responder timeout, offer was accepted by default
{% else %}
The responder decided to accept your offer
{% endif %}
You keep {{ group.kept }} for yourself. The responder gets {{ offer }}
.
{% else %}
The responder decided to decline your offer. None will get any gil
{% endif %}
{% else %}
{% if accepted %}
You decided to accept the offer.
You get {{ offer }} for yourself. The proposer gets {{ group.kept }}.
{% else %}
You decided to decline the offer. None will get any gil
{% endif %}
{% endif %}
{% next_button %}


|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.beans.PropertyEditorSupport
public class PropertyEditorSupport
This is a support class to help build property editors.
It can be used either as a base class or as a delagatee.
| Constructor Summary | |
|---|---|
PropertyEditorSupport()
Constructs a PropertyEditorSupport object. |
|
PropertyEditorSupport(Object source)
Constructs a PropertyEditorSupport object. |
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Register a listener for the PropertyChange event. |
void |
firePropertyChange()
Report that we have been modified to any interested listeners. |
String |
getAsText()
Gets the property value as a string suitable for presentation to a human to edit. |
Component |
getCustomEditor()
A PropertyEditor may chose to make available a full custom Component that edits its property value. |
String |
getJavaInitializationString()
This method is intended for use when generating Java code to set the value of the property. |
Object |
getSource()
Returns the bean that is used as the source of events. |
String[] |
getTags()
If the property value must be one of a set of known tagged values, then this method should return an array of the tag values. |
Object |
getValue()
Gets the value of the property. |
boolean |
isPaintable()
Determines whether the class will honor the painValue method. |
void |
paintValue(Graphics gfx,
Rectangle box)
Paint a representation of the value into a given area of screen real estate. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a listener for the PropertyChange event. |
void |
setAsText(String text)
Sets the property value by parsing a given String. |
void |
setSource(Object source)
Sets the source bean. |
void |
setValue(Object value)
Set (or change) the object that is to be edited. |
boolean |
supportsCustomEditor()
Determines whether the propertyEditor can provide a custom editor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyEditorSupport()
PropertyEditorSupport
object.
public PropertyEditorSupport(Object source)
PropertyEditorSupport
object.
source
- the source used for event firing| Method Detail |
|---|
public Object getSource()
PropertyEditorSupport
is returned.
public void setSource(Object source)
The source bean is used as the source of events for the property changes. This source should be used for information purposes only and should not be modified by the PropertyEditor.
source
- source object to be used for eventspublic void setValue(Object value)
setValue
in interface PropertyEditor
value
- The new target object to be edited. Note that this
object should not be modified by the PropertyEditor, rather
the PropertyEditor should create a new object to hold any
modified value.public Object getValue()
getValue
in interface PropertyEditor
public boolean isPaintable()
isPaintable
in interface PropertyEditor
public void paintValue(Graphics gfx, Rectangle box)
If the PropertyEditor doesn't honor paint requests (see isPaintable) this method should be a silent noop.
paintValue
in interface PropertyEditor
gfx
- Graphics object to paint into.box
- Rectangle within graphics object into which we should paint.public String getJavaInitializationString()
Example results are "2", "new Color(127,127,34)", "Color.orange", etc.
getJavaInitializationString
in interface PropertyEditor
public String getAsText()
getAsText
in interface PropertyEditor
Returns "null" is the value can't be expressed as a string.
If a non-null value is returned, then the PropertyEditor should be prepared to parse that string back in setAsText().
public void setAsText(String text) throws IllegalArgumentException
setAsText
in interface PropertyEditor
text
- The string to be parsed.
IllegalArgumentException
public String[] getTags()
getTags
in interface PropertyEditor
public Component getCustomEditor()
The higher-level code that calls getCustomEditor may either embed the Component in some larger property sheet, or it may put it in its own individual dialog, or ...
getCustomEditor
in interface PropertyEditor
public boolean supportsCustomEditor()
supportsCustomEditor
in interface PropertyEditor
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
in interface PropertyEditor
listener
- An object to be invoked when a PropertyChange
event is fired.public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
in interface PropertyEditor
listener
- The PropertyChange listener to be removed.public void firePropertyChange()
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2004, 2010 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.


FirebaseArrayDelegate Protocol Reference
| Conforms to | NSObject |
|---|---|
| Declared in | FirebaseArrayDelegate.h |
Overview
A protocol to allow instances of FirebaseArray to raise events through a delegate. Raises all Firebase events except FEventTypeValue.
– childAdded:atIndex:
Delegate method which is called whenever an object is added to a FirebaseArray. On a FirebaseArray synchronized to a Firebase reference, this corresponds to an FEventTypeChildAdded event being raised.
- (void)childAdded:(id)object atIndex:(NSUInteger)index
Parameters
object |
The object added to the FirebaseArray |
|---|---|
index |
The index the child was added at |
Discussion
Delegate method which is called whenever an object is added to a FirebaseArray. On a FirebaseArray synchronized to a Firebase reference, this corresponds to an FEventTypeChildAdded event being raised.
Declared In
FirebaseArrayDelegate.h
– childChanged:atIndex:
Delegate method which is called whenever an object is chinged in a FirebaseArray. On a FirebaseArray synchronized to a Firebase reference, this corresponds to an FEventTypeChildChanged event being raised.
- (void)childChanged:(id)object atIndex:(NSUInteger)index
Parameters
object |
The object that changed in the FirebaseArray |
|---|---|
index |
The index the child was changed at |
Discussion
Delegate method which is called whenever an object is chinged in a FirebaseArray. On a FirebaseArray synchronized to a Firebase reference, this corresponds to an FEventTypeChildChanged event being raised.
Declared In
FirebaseArrayDelegate.h
– childRemoved:atIndex:
Delegate method which is called whenever an object is removed from a FirebaseArray. On a FirebaseArray synchronized to a Firebase reference, this corresponds to an FEventTypeChildRemoved event being raised.
- (void)childRemoved:(id)object atIndex:(NSUInteger)index
Parameters
object |
The object removed from the FirebaseArray |
|---|---|
index |
The index the child was removed at |
Discussion
Delegate method which is called whenever an object is removed from a FirebaseArray. On a FirebaseArray synchronized to a Firebase reference, this corresponds to an FEventTypeChildRemoved event being raised.
Declared In
FirebaseArrayDelegate.h
– childMoved:fromIndex:toIndex:
Delegate method which is called whenever an object is moved within a FirebaseArray. On a FirebaseArray synchronized to a Firebase reference, this corresponds to an FEventTypeChildMoved event being raised.
- (void)childMoved:(id)object fromIndex:(NSUInteger)fromIndex toIndex:(NSUInteger)toIndex
Parameters
object |
The object that has moved locations in the FirebaseArray |
|---|---|
fromIndex |
The index the child is being moved from |
toIndex |
The index the child is being moved to |
Discussion
Delegate method which is called whenever an object is moved within a FirebaseArray. On a FirebaseArray synchronized to a Firebase reference, this corresponds to an FEventTypeChildMoved event being raised.
Declared In
FirebaseArrayDelegate.h


Redmi Note 5 now receiving MIUI 11 stable update - Gizchina.com
by Efe UdinRedmi Note 5 now receiving MIUI 11 stable update
3.9 (78.33%) 12 votes
Today, the Xiaomi Redmi Note 5 which was released in March 2018 got a new stable update (MIUI V11 0.2.0 stable version). Although this update is MIUI 11, it is still based on the Android 9 Pie system. Amongst other features, this smartphone will now support face unlock application, photo-text watermark editing, Xiaoai voice wake-up feature, gaming features such as a phone docking window, etc.
The specific update log is as follows:
- App Lock: Adds support for unlocking apps via face
- Clock: Fix the problem that the timer page button clicks blink; fix the problem that the clock flashes on a special date.
- Calculator: Fix the problem that the calculator crashes when the little Xiaoai does not turn on
- Album: Add photo text watermark editing, added a variety of art watermark styles
- Weather: Adds cloudy and hazy animations; optimized 15-day trend interface adaptation; optimized large font and screen density related issues
- Settings: optimize the settings page for the system application
- Xiaoai: Adds voice wake-up feature
- Game Acceleration: Adds the phone floating window function which allows the phone to display the gaming state using the floating window
This update is currently rolling out to Xiaomi Redmi Note 5 units in China. However, it shouldn’t take long for the global counterparts of this device to get the update. As usual, all units will not receive the OTA update at the same time, thus you may want to check settings > system update for available updates.


I'm a student at Moringa.
I attended primary school at St.Domominic's Primary located in mwiki.
Here I was able to discover my talent in dancing which I did and am still doing though not professionally yet.
I went on to high school at Kairi high school which is in Gatundu north
I finished high school but couldn't finnish my university course due to school fees issues
so I had to look for a job and I got one as a primary where I taught maths, science and languages.
I worked on and off till I heard about Moringa.I applied and thankfully am here today doing what I love. programming
I worked as a primary school teacher for about three years.
My hobbies are : swimming, research, travelling ..
My Skills are : dance, teaching, instrument playing ,thait is, keyboard and drumset
Interests : technolgy, finding new things and new positive challenges.
I have a thirst for knowledge and specifically in technology.
I have always wanted to know how websites and applications work behind the scenes and moringa has given me not only a chance but also a way to make that happen.


Glitch from to . start now end now
Download !
Double click on play, the download will happen at the end of the video.
After that just refresh


We use some essential cookies to make this website work.
We'd like to set additional cookies to understand how you use this service, remember your settings and improve government services.
We also use cookies set by other sites to help us deliver content from their services.
We use some essential cookies to make this website work. We'd like to set additional cookies to understand how you use GOV.UK, remember your settings and improve government services. We also use cookies set by other sites to help us deliver content from their services.
Your cookie preferences have been saved. You can change your cookie settings at any time.


ptargrep - Apply pattern matching to the contents of files in a tar archive
ptargrep [options] <pattern> <tar file> ...
Options:
--basename|-b ignore directory paths from archive
--ignore-case|-i do case-insensitive pattern matching
--list-only|-l list matching filenames rather than extracting matches
--verbose|-v write debugging message to STDERR
--help|-? detailed help message
This utility allows you to apply pattern matching to the contents of
files contained in a tar archive. You might use this to identify all files in
an archive which contain lines matching the specified pattern and either print
out the pathnames or extract the files.

Multiple tar archive filenames can be specified - they will each
be processed in turn.
- --basename (alias -b)
- When matching files are extracted, ignore the directory path from the
archive and write to the current directory using the basename of the file
from the archive. Beware: if two matching files in the archive have the
same basename, the second file extracted will overwrite the first.
- --ignore-case (alias -i)
- Make pattern matching case-insensitive.
- --list-only (alias -l)
- Print the pathname of each matching file from the archive to STDOUT.
Without this option, the default behaviour is to extract each matching
file.
- --verbose (alias -v)
- Log debugging info to STDERR.
- --help (alias -?)
- Display this documentation.
Copyright 2010 Grant McLean<EMAIL_ADDRESS>This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.


jsI18n is a simple javascript library for putting I18n on the client side.
It's simple. Just put in a reference to "jsi18n.js" and your locale files, and add the data-trans attribute to the elements whose contents you want to translate, like this:

Default value

Then call jsI18n.processPage
after the page has finished
loading. A simple way to do this is to put the code in the
onload event of the body tag.
This will look up the relevant text for the keyword "cat" in the translation table for the current locale and replace the contents of the tag with that text. If the keyword is undefined, or if the current locale is not set, the default value (original content) will be used.
To get a full example, check out the source of this readme!
Sometimes you want to translate element attributes, such as the alt and title attributes for images or the value attribute for input elements. The proper way to do this is to specify attribute_name=key in the data-trans attribute. Multiple attribute translations can be specified by separating the assignments by a semicolon:

This works for any kind of element, not just input and img elements.
Important! Using this notation, the content of the
element is translated by specifying html=key
in
data-trans.
var cat = jsI18n.translate("cat")
cat == jsI18n.t("cat") //Short form
Just call jsI18n.setLocale(locale)
. It is up to you how to
retrieve the locale value.
The locale files are just javascript files that call
the function jsI18n.addLocale(locale, translations)
,
where locale is a string used as an identifier, and translations
is an associative array mapping keys to actual translations.
So, using our cat example we would put the following in sv.js:
var translations = {"cat":"Katt", "dog":"Hund"}
jsI18n.addLocale("sv", translations")
Important:Make sure you include your locale files into your HTML after you have included "jsi18n.js".
There are a few things you should think about before using this approach for internationalization.
You can translate individual nodes (parts of the page) by calling
jsI18n.processNode(node)
, e.g.
jsI18n.processNode(document.getElementById('to_translate'))
.
Test it!


Try out our Premium Member services: Virtual Legal Assistant, Query Alert Service and an ad-free experience. Free for one month and pay only if you like it.
BEFORE THE NATIONAL GREEN TRIBUNAL NEW DELHI, (PRINCIPAL BENCH) APPEAL No. 29/2011 1. M/s Baba Bricks Field Village Darji Goan Lakhaiya & Charda, Tehsil Nanpara, District Bahraich, Uttar Pradesh Appellant/Petitioner versus 1. UP Pollution Control Board, Lucknow Through its Chairman, Picup Bhawan III Floor, B Block, Vibhuti Khand Gomti Nagar, Lucknow - 226 010 2. Regional Officer UP Pollution Control Board, 8/2/46 Rakebganj Faizabad, Uttar Pradesh - 224 001 3. Ram Gopal S/o Shri Rangi la Village Darji Gaon Lakhaiya Charda Tehsil Nanpara District Bahraich Uttar Pradesh - 271 801 Respondents 1 Counsel for Appellant: Mr. Javed Ahmad Counsel for Respondents: Mr. Daleep Kumar Dhayani Mr. Pradeep Mishra JUDGMENT
PRESENT:
Justice A.S. Naidu (Acting Chairperson) Vijai Sharma (Expert Member) .....................................................................................................................
Dated: February 2nd, 2012 ..................................................................................................
JUDGMENT BY THE BENCH This Appeal is filed assailing the legality of the order dated September 12th, 2011, passed by Special Secretary, Environment Department, UP Government, in exercise of the powers conferred upon him under Section 31 of the Air (Prevention and Control of Pollution) Act 1981.
2. With a view to avoid unnecessary detail, the short facts leading to the present Appeal are as follows:
(i) The Appellant is the owner of a piece of land, Gata No. 870, situated at Village Lakhaiya Pargana Charda, Tehsil Nanpara, District Bahraich, Uttar Pradesh.
(ii) The Appellant intended to establish a Brick Kiln over the said land and filed an Application before the competent authority for granting license / no objection certificate, 2 under the Air (Prevention and Control of Pollution) Act, 1981. The authorities after due process granted no objection certificate on October 1st, 2009 for establishment of Brick Kiln.
(iii) After obtaining the no objection certificate, the Appellant, it is averred, took steps for setting up the Brick Kiln. Thereafter, it is alleged, some frivolous allegations were made by the adversaries and rivals of the Appellant before the Authorities. After receiving the complaint, the Sub-Divisional Magistrate, Nanpara, by order dated October 10th, 2009, called upon the Appellant to show cause and produce the relevant documents relating to the establishment of the Brick Kiln. The said direction was duly complied with by the Appellant, within the time prescribed.
(iv) That the Sub-Divisional Magistrate conducted a field enquiry, recorded the statements of the complainant and other villagers and being satisfied submitted a report in favour of the Appellant, to the District Magistrate. Thereafter, the Appellant established his Kiln and obtained registration certificate.
(v) While the matter stood thus, it is alleged, he received the order dated October 21st, 2009 from the Regional Officer of Uttar Pradesh Pollution Control Board (U.P PCB), Faizabad, revoking the no objection certificate granted to the Appellant. The Appellant being aggrieved, assailed the said order before the High Court of Allahabad in Writ Petition No. 11816/2009. The said writ petition was disposed of granting liberty to the petitioner to move an 3 application against the impugned order before the appropriate authority. In consonance with the direction, the Appellant, it is submitted, filed an application before U.P PCB on December 23rd, 2009. After receipt of the application from the Appellant, it appears, the Regional Officer, U.P PCB, conducted the site inspection, which revealed that the Brick Kiln in question was installed at a place other than the place for which no objection was granted. It also did not satisfy the guidelines set forth by the District Board. That apart, the Brick Kiln was set-up at a distance of 80 meters from Abadi lands with thick population. After considering the facts and circumstances, by a well discussed order dated January 19th, 2010, the U.P PCB rejected the petition filed by the Appellant and confirmed the order cancelling the no objection certificate.
(vi) The Appellant once again approached the Hon'ble High Court challenging the order passed by the Board but the Hon'ble High Court of Allahabad dismissed the application, permitting the Appellant to prefer an Appeal in accordance with law. Thereafter, the Appellant filed an appeal under Section 31(2) of the Air Act, 1981, which was registered as AIR Appeal No. 2/2010. The Appellate Authorities, as would be evident from the judgment, dated September 12th, 2011 (Annexure A-1), discussed the facts and circumstances, and came to the conclusion that the findings arrived at by the Board do not suffer from any infirmity and dismissed the Appeal.
43. The said order is impugned before this Tribunal. In the course of hearing, Mr. Javed Ahmad, Learned Counsel for the Appellant, submitted that if another opportunity is granted to the Appellant to make a fresh application for granting no objection certificate in respect of his personal lands, he would withdraw this Appeal.
4. Learned Counsel for the Respondents, however, submitted that the Appellant having misused the no objection certificate granted in his favour not only by changing the site, but also by flouting the siting criteria as evident from the findings of the authorities, under the Air Act, the present Appeal should be dismissed. It is further submitted that the Appellant not having come to the Court with clean hands, is not entitled to any relief.
5. We heard Learned Counsel for the parties at length. In view of the submissions made by Mr. Javed Ahmad, Learned Counsel appearing for the Appellant, that he does not want to press this Appeal and wants to withdraw the same, we find no reason to go into the merits of the case. Accordingly, we permit the Appellant to withdraw the Appeal, but then we grant liberty to the Appellant to file a fresh application before the competent authority in respect of the lands, that satisfy the siting criteria for a Brick Kiln. If such an application is filed enclosing all relevant documents, the competent Authority shall do well to conduct a site inspection, complete the formalities and dispose of the said application strictly in accordance with law. The said exercise should be completed as expeditiously as possible. This Appeal is accordingly disposed of as withdrawn.
Vijai Sharma Justice A.S. Naidu Expert Member Acting Chairperson 5 6


Interested in HTML, CSS, Javascript
I enjoy writing front-end code with these technologies -
You can contact me via - Github


--- layout: default title: Balls risk measurement task summary and demo. ---
Source code is here.
Number of fake balls:
Score multiplicator:


--- title: NIFI REST API keywords: fastai sidebar: home_sidebar summary: "Automates the Nifi dataflows " description: "Automates the Nifi dataflows " nb_path: "nbs/index.ipynb" ---
Dataflows can be fully automated using the Nifi API. This project taps and un-taps a dataflow by tracking the incoming/outgoing flowfiles.
More specifically, it turns on an initial processor and records the flowfiles generated by inspecting an incoming connection. After this, a middle processor is turned on. When all the flowfiles are registered in a outcoming connection, a final processor is turned on. Before finishing, it returns the pipeline to its initial state.
The following example represents the actions on the dataflow that get automated by the nifi_api library.
Here is a recording of the Nifi UI when the tool is being executed on this dataflow:
The Nifi cluster used for testing is in the Cloudera Public Cloud and needs basic authentication credentials for accessing. The following environmental variables are necessary to access the cluster:
- CLOUDERA_USER=user
- CLOUDERA_PASS=password
- CLOUDERA_CLUSTER=https://<url_clustername>.cloudera.site/<clustername>
- CLOUDERA_NIFI_REST=/cdp-proxy-api/nifi-app/nifi-api/
For a pip
installation run:
pip install nifi-api
Consider the template Test_API.json
in the root folder, this is the template used in What automates?
section.
Write the data structure with the Nifi Ids (located in view configuration -> settings -> Id) of the processors and connections:
from nifi_api.environment import DataFlowIds
ids = {
"in_connection": {
"Id": "cc549c6e-0177-1000-ffff-ffffb5d2aba2",
"name": "First"
},
"out_connection": {
"Id": "51ab3b24-084f-1309-0000-00001946f2c7",
"name": "Final"
},
"in_processor": {
"Id": "36c62ad6-d606-3b04-9743-d77b6249608c",
"name": "First"
},
"middle_processor": {
"Id": "cc54862f-0177-1000-ffff-ffffe7325a20",
"name": "Middle"
},
"out_processor": {
"Id": "51ab3b1e-084f-1309-a135-aa0100d7186b",
"name": "Final"
},
}
data_ids = DataFlowIds(ids)
Instantiate and run:
from nifi_api.dataflow import DataFlow
dataflow = DataFlow(
dataflow_ids=data_ids,
delay_seconds_after_start=5,
delay_seconds_between_checks=5,
)
dataflow.run()


INCLUDE_HTML stdhead
CREATE
edit
Header:
Owner:
add
owner
header
date start
EXECUTE db_to_html_with_render.sh


public class AppLocale
AppLocale is a android library to update the app language dynamically.
public static AppLocale INSTANCE
AppLocale is a android library to update the app language dynamically.
public static boolean isInitial()
If the desiredLocale
has not been changed yet.
desiredLocale
public static void setInitial(boolean p)
If the desiredLocale
has not been changed yet.
desiredLocale
@Nullable public static AppLocaleRepository getAppLocaleRepository()
A interface AppLocaleRepository
to persist the supportedLocales
, the currentLocale
and
the desiredLocale
.
public static void setAppLocaleRepository(@Nullable AppLocaleRepository p)
A interface AppLocaleRepository
to persist the supportedLocales
, the currentLocale
and
the desiredLocale
.
@NotNull public static LocaleMatchingStrategy getLocaleMatchingStrategy()
The localeMatchingStrategy
used to determine the new currentLocale
after a change
to the desiredLocale
.
localeMatchingStrategy
,
currentLocale
,
desiredLocale
public static void setLocaleMatchingStrategy(@NotNull LocaleMatchingStrategy p)
The localeMatchingStrategy
used to determine the new currentLocale
after a change
to the desiredLocale
.
localeMatchingStrategy
,
currentLocale
,
desiredLocale
@NotNull public static java.util.List<java.util.Locale> getSupportedLocales()
public static void setSupportedLocales(@NotNull java.util.List<java.util.Locale> p)
@NotNull public static java.util.Locale getCurrentLocale()
The locale currently used by the app.
public static void setCurrentLocale(@NotNull java.util.Locale p)
The locale currently used by the app.
@NotNull public static java.util.Locale getDesiredLocale()
The locale which should ideally be used by the app.
Setting a new desiredLocale
will lead to a new currentLocale
as defined by the
localeMatchingStrategy
.
desiredLocale
,
currentLocale
,
localeMatchingStrategy
public static void setDesiredLocale(@NotNull java.util.Locale value)
The locale which should ideally be used by the app.
Setting a new desiredLocale
will lead to a new currentLocale
as defined by the
localeMatchingStrategy
.
desiredLocale
,
currentLocale
,
localeMatchingStrategy
@JvmStatic public static void addLocaleChangedListener(@NotNull LocaleChangedListener listener)
Add a listener for changes to the currentLocale
currentLocale
@JvmStatic public static void removeLocaleChangedListener(@NotNull LocaleChangedListener listener)
Remove a listener for changes to the currentLocale
currentLocale
@JvmStatic @NotNull public static android.content.Context wrap(@NotNull android.content.Context context)
Wraps the context with a ContextWrapper which provides the AppLocaleResources instead of the default resources. If the provided context is already wrapped, it will be returned unchanged by this method.


GPCRmd, in collaboration with
Exscalate4Cov, contributes to the fight against the COVID-19 pandemic by applying their expertise to develop a web platform for the dissemination of molecular dynamics simulations for SARS-CoV-2 related proteins. For that, it will provide a collection of online tools to easily visualize, analyze and share such data.


TripBuilder
Sign Up
Login
My Itineraries
Templates
Venice
Trip to Venice
France
Trip to France
Dubai
Trip to Dubai


FTP
home
Home
power_settings_new
Disconnect
Host Name
Port Number
Default port: 21
Username
Leave blank for none
Password
Leave blank for none
navigate_next
Connect
Directory List
keyboard_arrow_left
home
refresh
cached
more_vert
Rename {Field}
Name
close
Cancel
done
Confirm
Create Folder
Folder Name
Name of the folder should be different from existing folders.
close
Cancel
done
Confirm
Listing Options
Viewing Options
1-Column
2-Column
3-Column
visibility_off
Hidden Items
settings
System Items
folder
Directories
help
Others
archive
Archives
code
Codes
picture_as_pdf
Documents
landscape
Images
music_note
Music
movie
Videos
Choose File
File
close
Cancel
publish
Upload
add
publish
add
keyboard_arrow_up


Nyzo version 510 (commit on GitHub) adds UDP messaging for block votes. This messaging, however, is not yet active by default.
This version affects only the verifier. The sentinel does not accept incoming connections, and it does not send block votes.
Please read and understand the release notes before updating, as this version requires some manual steps not required of most updates.
If you are too rushed to read the full release notes right now, these are the two additional manual steps required for this update. First, open port 9446 to UDP only (port 9444 should remain open to TCP only). Second, run this command on your verifier after you have updated to flush firewall rules:
sudo iptables -F
Nyzo previously used TCP for all messages. A new connection is established for each message. This results in significant computational, networking, and memory overhead. To improve verifier performance and stability, this version adds the option of using UDP for sending of block votes. While other message types may be tested with UDP in the future, block votes comprise the vast majority of messages in Nyzo. Sending just this one message over UDP minimizes the complexity of changes while providing a significant reduction in network traffic and the local computing resources required to support that traffic.
To allow more time for performance testing, this version does not activate UDP messaging by default. Individual verifiers may choose to activate UDP, but those verifiers should be watched closely to ensure adequate performance scores.
The README file has been changed with instructions for opening port 9446 to incoming UDP traffic. This is an important step. If you activate UDP and do not open the UDP port, your verifier will lose all block votes sent by UDP-capable verifiers.
In the BlacklistManager class, use of iptables has been eliminated completely.
This removal includes removal of the command to flush firewall rules, so some rules may be left from previous blacklisting by the verifier. If you are unfamiliar with iptables, run this command once after updating your verifier to this version to ensure that old rules are eliminated:
sudo iptables -F
The Message.fetch() method has been changed to accept a Node object as an IP/port source. This is more concise, and it also allows the message class to dynamically choose between TCP and UDP based on the properties of the Node object and the type of message. In all places where Message.fetch() is used an an appropriate Node object is available, this method is now used. If an appropriate node object is not available, then the Message.fetchTcp() method, which is functionally equivalent to the old Message.fetch() method, is used instead.
In the FieldByteSize class, an overload of the string() method has been added to allow a maximum string byte length to be specified. This is used by NodeJoinMessageV2 and NodeJoinResponseV2 to enforce a limit on nickname length.
The MeshListener class has been modified to listen to UDP traffic in addition to TCP. The static alive field has been split into aliveTcp and aliveUdp. A fixed-size buffer has been added for receiving UDP packets.
The TCP socket is functionally unchanged, and the UDP listener is a tight loop that reads packets from a DatagramSocket.
UDP messages are read from the incoming packet using the same Message.fromBytes() method that is used for incoming TCP messages. Unlike the TCP listener, which responds to all valid messages, the UDP listener does not yet send responses to any incoming messages.
In the response() method of MeshListener, a response to the new node-join message has been added.
A DatagramSocket has been added to the Message class. This is used for outgoing UDP messages.
This modified fetch() method now determines whether to use TCP or UDP based on the message type and whether the Node accepts UDP.
The Message.fetch() method that accepts an IP and TCP port has been renamed to fetchTcp() to avoid confusion, and the Message.sendUdp() method has been added. The sendUdp() method uses the same blacklist-avoidance logic as its TCP counterpart, and it does not currently look for any response to messages.
A discardMessageLength parameter has been added to Message.fromBytes() to allow for the difference in how the TCP and UDP byte arrays for incoming messages are obtained.
Deserialization of NodeJoinMessageV2 and NodeJoinResponseV2 has been added to the Message.processContent() method.
Overloads of Message.putString() and Message.getString() have been added to allow specification of the maximum byte length of the string in the message. These methods are used for the nickname fields of the new node-join message and response.
The port field of Node has been renamed to portTcp, and the portUdp field has been added.
To maintain compatibility of messages containing serialized Node objects, the UDP port is not serialized. Also, this port is unnecessary in those messages, as initial communication between two verifiers will always happen over TCP, at which time UDP port information can be exchanged.
The NodeManager.updateNode() method is now aware of UDP-capable nodes.
While the TCP port is updated with each node update, the UDP port is only updated when the new UDP port is valid. This prevents v1 node-join messages and responses from deactivating UDP for a verifier, but it also means that once UDP is activated for a node, it cannot be disabled without changing the IP of that node.
The NodeManager.sendNodeJoinRequests() method now contains code for sending both the v1 and v2 node-join requests. The v2 code is currently commented out. This code does work, however, and all of the other pieces of the UDP mechanism are active in this version. So if you activate this code, your verifier will begin to receive over UDP instead of TCP all block-vote messages from verifiers running version 510 or later.
The v1 node-join message will be removed completely in a later version. It is currently still necessary for maintaining connections to verifiers running 509 or earlier.
The node-join messages sent to trusted entry points are still using the v1 message. When enough of the cycle has updated to version 510 or later, this will be changed to the v2 message.
The file for verifier performance scores has been updated to another new filename. This will cause scores of all verifiers to reset to zero. This will allow a few days of leeway in which no verifiers should be removed for their performance scores. When version 511 is released, the performance scores will be reset again to ensure that all verifiers in the cycle start at a common point with the updated scoring system.
The PortMessage interface has been removed from BootstrapRequest, and the port can no longer be specified in the public constructor. In previous versions, the port was included in this message, and it was used to update the port with the NodeManager. With the advent of the sentinel, NodeManager updates were restricted to node-join and node-join-response messages only. Elimination of the PortMessage interface from this class makes the code easier to understand. While the port is no longer used, it is still serialized and deserialized to maintain message compatibility and signature integrity.
The PortMessage interface has also been removed from the NewBlockMessage class.
In a change unrelated to the addition of UDP, the VerifierRemovalTallyStatusResponse is now sorted on descending vote count to improve readability of the response.


Environment.sortedDistance module¶
sortedDistance: define function to measure of sortedness of permutations of [0..N-1].
-
Environment.sortedDistance.
weightedDistance
(choices, weights, n=None)[source]¶ Relative difference between the best possible weighted choices and the actual choices.
>>> weights = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9] >>> choices = [8, 6, 5, 2] >>> weightedDistance(choices, weights) # not a bad choice 0.8333... >>> choices = [8, 6, 5, 7] >>> weightedDistance(choices, weights) # best choice! 1.000... >>> choices = [3, 2, 1, 0] >>> weightedDistance(choices, weights) # worst choice! 0.3333...
-
Environment.sortedDistance.
manhattan
(permutation, comp=None)[source]¶ A certain measure of sortedness for the list A, based on Manhattan distance.
>>> perm = [0, 1, 2, 3, 4] >>> manhattan(perm) # sorted 1.0...
>>> perm = [0, 1, 2, 5, 4, 3] >>> manhattan(perm) # almost sorted! 0.777...
>>> perm = [2, 9, 6, 4, 0, 3, 1, 7, 8, 5] >>> manhattan(perm) 0.4
>>> perm = [2, 1, 6, 4, 0, 3, 5, 7, 8, 9] # better sorted! >>> manhattan(perm) 0.72
-
Environment.sortedDistance.
kendalltau
(permutation, comp=None)[source]¶ A certain measure of sortedness for the list A, based on Kendall Tau ranking coefficient.
>>> perm = [0, 1, 2, 3, 4] >>> kendalltau(perm) # sorted 0.98...
>>> perm = [0, 1, 2, 5, 4, 3] >>> kendalltau(perm) # almost sorted! 0.90...
>>> perm = [2, 9, 6, 4, 0, 3, 1, 7, 8, 5] >>> kendalltau(perm) 0.211...
>>> perm = [2, 1, 6, 4, 0, 3, 5, 7, 8, 9] # better sorted! >>> kendalltau(perm) 0.984...
-
Environment.sortedDistance.
spearmanr
(permutation, comp=None)[source]¶ A certain measure of sortedness for the list A, based on Spearman ranking coefficient.
>>> perm = [0, 1, 2, 3, 4] >>> spearmanr(perm) # sorted 1.0...
>>> perm = [0, 1, 2, 5, 4, 3] >>> spearmanr(perm) # almost sorted! 0.92...
>>> perm = [2, 9, 6, 4, 0, 3, 1, 7, 8, 5] >>> spearmanr(perm) 0.248...
>>> perm = [2, 1, 6, 4, 0, 3, 5, 7, 8, 9] # better sorted! >>> spearmanr(perm) 0.986...
-
Environment.sortedDistance.
gestalt
(permutation, comp=None)[source]¶ A certain measure of sortedness for the list A, based on Gestalt pattern matching.
>>> perm = [0, 1, 2, 3, 4] >>> gestalt(perm) # sorted 1.0...
>>> perm = [0, 1, 2, 5, 4, 3] >>> gestalt(perm) # almost sorted! 0.666...
>>> perm = [2, 9, 6, 4, 0, 3, 1, 7, 8, 5] >>> gestalt(perm) 0.4...
>>> perm = [2, 1, 6, 4, 0, 3, 5, 7, 8, 9] # better sorted! >>> gestalt(perm) 0.5...
>>> import random >>> random.seed(0) >>> ratings = [random.gauss(1200, 200) for i in range(100000)] >>> gestalt(ratings) 8e-05...
-
Environment.sortedDistance.
meanDistance
(permutation, comp=None, methods=(<function manhattan>, <function gestalt>))[source]¶ A certain measure of sortedness for the list A, based on mean of the 2 distances: manhattan and gestalt.
>>> perm = [0, 1, 2, 3, 4] >>> meanDistance(perm) # sorted 1.0
>>> perm = [0, 1, 2, 5, 4, 3] >>> meanDistance(perm) # almost sorted! 0.722...
>>> perm = [2, 9, 6, 4, 0, 3, 1, 7, 8, 5] >>> meanDistance(perm) 0.4
>>> perm = [2, 1, 6, 4, 0, 3, 5, 7, 8, 9] # better sorted! >>> meanDistance(perm) 0.61
Warning
I removed
kendalltau()
andspearmanr()
as they were giving 100% for many cases where clearly there were no reason to give 100%…
-
Environment.sortedDistance.
sortedDistance
(permutation, comp=None, methods=(<function manhattan>, <function gestalt>))¶ A certain measure of sortedness for the list A, based on mean of the 2 distances: manhattan and gestalt.
>>> perm = [0, 1, 2, 3, 4] >>> meanDistance(perm) # sorted 1.0
>>> perm = [0, 1, 2, 5, 4, 3] >>> meanDistance(perm) # almost sorted! 0.722...
>>> perm = [2, 9, 6, 4, 0, 3, 1, 7, 8, 5] >>> meanDistance(perm) 0.4
>>> perm = [2, 1, 6, 4, 0, 3, 5, 7, 8, 9] # better sorted! >>> meanDistance(perm) 0.61
Warning
I removed
kendalltau()
andspearmanr()
as they were giving 100% for many cases where clearly there were no reason to give 100%…


Compile
Save
Reboot
Example Contracts
Currency
Conway's Game of Life
Self-destruct
Track incoming funds
Versions
eosiolib dawn-v3.0.0
C++17 language (clang 6-ish)
C++14 library subset
Boost 1.66.0 subset
Recent Changes
Added global constructors
Added Binaryen optimization
Limitations
Not implemented: RTTI, Exception handling
See also
Non-EOS mode
Fork me on Github
Upload Contract
Endpoint
Account
Private Key
Compile
Upload
Result
Push Transaction
Endpoint
Private Key
Transaction
Post Transaction
Result


King's Music Store
Sign up for Newsletter!
PLEASE READ THIS
Welcome to the King's Music Store Subscription Page.
IMP NOTE:
Please input manually if your desired Genre is not included under the "Other" field.
please fill out the comment box to let us know what other genre should be added.
Fill in the form below:
Personal Details
First Name:
Last Name:
Age:
Under 18
18 to 25
26 to 35
36 to 45
46 to 55
over 55
Email:
Password:
I am interested in:
Heavy Metal
Country
Western
Rock & Roll
Folk
Pop
Blues
Jazz
Disco
Opera
Other
Give us a Feedback
Enter the comment here..
About
Resume
Web Skills
Form


| Name or ID number | Training category | Expiry date | Status | |
|---|---|---|---|---|
|
|
{{ training.category.category }} | {{ training.expires ? (training.expires | date: 'd MMM y') : '-' }} |
{{ flagText }}
|
There are no matching results
Make sure that your spelling is correct.


Since August of 2015 I have worked as a Software Engineer for MeterHero, a utility conservation start-up located in Oakland, California. Over the course of my time there, I have built several administrative features, including a user tagging system utilizing the Intercom API and a utility assigning system for users.
As 50% of the development team, I helped to build a "Communities" feature for MeterHero. The company had decided to make a change in it's business model, going from offering sponsored rebates to users that conserved water and energy, to becoming a social network of sorts, giving users the ability to join communities where they could track their utility data alongside others. In the course of 2 weeks, we re-purposed old and unused tables in our schema, and created a front facing feature using Ember.js, a framework that neither of us had any experience with. In the end, we succeeded in launching the feature that would become the forefront of MeterHero's new mission, "Communities."
As a design-centric programmer, I was also thrilled to be able to redesign the entire front page of the website twice. Both times, I worked closely with our Design/UX lead to create a mobile-responsive front page that featured hand-drawn assets and utilized both flex-box and Sass.


Recent IT graduate from Deakin University.
I love designing and creating websites.
Hi, I am Pratistha Sthapit. I recently graduated from Deakin University with a Bachelor of IT with a double major in Programming and Mobile and apps development.
During my study at Deakin, I held six mentor roles 6 mentor roles of Student committee member, Student mentor, Peer Assisted Learning Mentor, Maths mentor, Student Central Ambassador and Wellbeing ambassador. In these roles I worked collaboratively with other mentors to support Deakin students with academic and social transition. I have developed goal setting, planning and professional communication skills and provided training and encouraged team effort among co-mentors to fellow students.
When I am not coding, you’ll find me baking or painting.
I enjoy designing and building websites and mobile apps. I create responsive websites and mobile apps using HTML5, CSS3, JavaScript and Java. I use Adobe XD to build wireframes of the websites and mobile apps.
Check out my projects


Hold on! It's probably not that bad! 😁
You probably ran into one of those scenarios:
You just installed or updated Arbify. In that case you will still need to run docker-compose run --rm arbify docker/arbify/upgrade.sh
If it's none of the above, something bad probably happened. Check the status and/or logs of the docker-compose services.
If you think that this issue is our fault, please report it to us on GitHub including your docker-compose logs.
This page will automatically refresh after 10 seconds. 👀


Application Overview
Allows viewing how a NetFusion based application was composed from plug-in components.
A composite application consists of the following types of plug-ins:
- Host
-
The assembly representing the executable process. This will most often be a ASP.NET Core WebApi project.
There can only be one Host plug-in assembly.
- Application
-
Plug-in components containing logic pertaining to the business application solution. There will usually
be application plugins for the following: Domain, Api, Application, and Infrastructure
- Core
-
Plug-in components containing cross-cutting implementation specific components. Theses type of
plug-ins are not specific to any given business application and can be optionally shared across
applications.
A plug-in invokes logic during the boot strap process by defining one or more PluginModule derived classes.
These derived class instances have their methods invoked at specific times during the boostrap process.


I'm Nicole
Hello there, awesome person! Here are my favorite websites:
reddit
My favorite site is
GitHub
!
pinterest


stop smoking
Set stop smoking time,
wether calculating per box or per bin, per week or per day!
Get results: health, time, money.
Stop Smoking Date
day
month
year
00
00
00
1
2
3
4
5
6
7
8
9
0
<
Stop Smoking Time
hour
minute
meridiem
units declaration
box cigarettes
bin tabako + ..
per day
per week
0000.00
00.00
00
smoking minutes
01
smokers in country
50%
Health & Success
Money is time.


This is a test.
Upload a spreadsheet to send it as JSON
File input:
File must have [ .xlsx | .xls | .xml | .ods ] extension.


Vessel.js is a JavaScript library for conceptual ship design with an object-oriented paradigm. Vessel.js represents the vessel as an object, which is used to simulate different functionalities and behaviors. Currently, the library includes methods for hydrostatic and stability calculations.
The library is developed by Ship Design and Operation Lab at Norwegian University of Science and Technology (NTNU) in Ålesund.
Dowload the latest version here:
Import Vessel.js in html by using the following script:
<script src="Vessel.js"></script>
When contributing, fork the repository and send pull requests with your commits. If your modifications are only to files related to examples and you have pull request authorization, you can approve them by yourself. If not, then wait for review and approval by the development team.
You are also welcome to create issues reporting bugs or suggesting improvements and features for development.
Vessel.js tutorials are available on the ObservableHQ notebook collection. Don't know where to start? Try the learning guide.


Having nuked 3 SD cards I moved my system to a USB HDD about a year ago, and it ran well, except after about 9 months I started getting disk errors, which eventually prevented me from running a dd backup routine.
Eventually, at the weekend, the whole lot ground to a halt, I couldn't access it via IP or SSH, and upon checking the HDD, I found lots of serious problems, so I decided to start again, using the new 'low write load' image.
However, despite getting the system to function via the SD card, I'm struggling getting it to run via a USB HDD.
The process that I followed was to start with a 8GB SD card with the 'low write load' image installed, and which worked OK when booted, and allowed me to SSH in the the Pi and also via it's IP. So far so good!
I setup my USB HDD as follows via my windows laptop running a Debian Live disk;
- sdb1 = a backup & storage volume, holding about 40GB of pre-existing data not associated with emoncms.
- sdb2 = a 10GB FAT32 formatted volume (to house the emoncms root files.
- sdb3 = a 10GB FAT32 formatted volume (to house the emoncms data files.
Firstly, I replicated the volumes from the SD card to the HDD using $ sudo dd if=/dev/sdc2 of=/dev/sdb2 bs=4M and $ sudo dd if=/dev/sdc3 of=/dev/sdb3 bs=4M and which seemed to go well, no errors reported and I could see the various files in sdb2 & sdb3 which were now listed as ext4 & ext2 format respectively.
I edited the HDD /etc/fstab to show sda2 & sda3 (the allocated volume addresses by the Rasp Pi), and also the cmdline.txt on the SD card to show sda2 as 'root' as per the guide.
But when I assemble the Raspi and HDD, emoncms is not accessible via IP or SSH, although the 4 Raspi's LEDs are lit and the RFM2PI LED flashes every few seconds.
....very close to reaching for my 7lb hammer and starting a new hobby!
Paul
Re: 'Low write load' image on HDD
Hello Paul, I found I needed to use at least ext2 with raspbian because raspbian requires the ability to set mixed permissions and ownership on files, could that be the problem I wonder?
If you can create an ext2 partition with a block size of 1024 bytes rather than default 4096 bytes that will better suited to emoncms, see the note here: https://github.com/emoncms/emoncms/blob/bufferedwrite/docs/install.md
Re: 'Low write load' image on HDD
But wouldn't that format be automatically created, as I've used dd to replicate the volumes from the SD card to the HDD?
Re: 'Low write load' image on HDD
Ah yes sorry, Im not sure what could be the cause, can you connect up a hdmi display to the pi to see if its giving any errors?
Re: 'Low write load' image on HDD
It does show errors, but I'm not sure what it all means;
--------------------------------------------------------------------
fsck: WARNING: bad format on line 7 of /etc/fstab
/dev/sda3: Superblock last mount time (Thu Jul 31 12:17:29 2014,
now = Mon Jul 28 18:07:00 2014) is in the future.
/dev/sda3: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY
(i.e., without -a or -p options)
fsck died with exit status 4
failed (code 4).
[FAIL] File system check failed. A log is being saved in /var/log/fsck/checkfs if that location is writable. Please repair the file system manually. ... failed!
[warn] A maintenance shell will be started. CONTROL-D will terminate this shell and resume system boot ... (warning).
Give root password for maintance
(or type Control-D to continue):
------------------------------------------------------------------
I've attached a keyboard, and have got a prompt. Looked at the error log 'checkfs' and it shows pretty much the same info as above.
Running $ sudo fdisk -l does list sda1, sda2, and sda3
and $ lsblk shows;
Re: 'Low write load' image on HDD
Hi Paul,
I've seen this a few times basically there's a time discrepancy between the time recorded on the boot partition and sda3, because the image was written on the 28th and that's the time it thinks it is at boot but the sda3 has a timestamp for today.
it's a daft system and not always easy to get around. sometime just running ctrl-d will work but other times not. the time it referencing is kept in /etc/fake-hwclock.data on the root partition, I have in the past just deleted the contents of that file so it has to look up the time and date.
Try ctrl-D if that doesn't work, try booting to an sd card, update the time, mount the hdd and copy over the timestamp ,
sudo fake-hwclock
sudo mkdir /media/hdd
sudo mount /dev/sda2 /media/hdd
sudo cp /etc/fake-hwclock.data /media/hdd/etc/fake-hwclock.data
Then reboot back to the hdd, it should no longer have an issue with the time difference, but there no guarantees :-)
Paul
Re: 'Low write load' image on HDD
Paul, Ctrl-D worked for me, and that appears to have resolved the issue, which has taken 3 days for me to sort out! - I wish I had posted earlier!
Just one other question, whilst locking the file system I get a message 'mount: you must specify the filesystem type', is that normal?
pi@raspberrypi ~ $ rpi-rw
Filesystem is unlocked - Write access
type ' rpi-ro ' to lock
pi@raspberrypi ~ $ rpi-ro
mount: you must specify the filesystem type
Filesystem is locked - Read Only access
type ' rpi-rw ' to unlock
Paul
Re: 'Low write load' image on HDD
As you are booting to hdd you'll need to edit /usr/bin/rpi-rw and /usr/bin/rpi-ro to point to /dev/sda2 rather than /dev/mmcblk0p2, I've not seen it before but you shouldn't need to specify the file system.
Paul
Re: 'Low write load' image on HDD
Aaah, I think this error has been created because I only have the 'boot' partition on my SD card, and don't have the other two 'root' & 'data' partitions, and looking at the files you have highlighted, they were trying to access them on the SD card.
Does the emoncms guide need amending to include a change, as I assume we are currently probably wrongly locking & unlocking the file system on the SD card (when we should be locking/unlocking the file system on the HDD).
However, the flaw in this is that having changed both files to point to sda2, I still get the same result!
Paul
Re: 'Low write load' image on HDD
Sorry, i haven't tried running a hdd read-only so cannot speak from experience, have you tried writing to a file to confirm if it is RO or RW, I assume it's not RO although the message isn't explicit.
The guide doesn't' mention rpi-rw or rpi-ro, it should highlight the edits required if they are to be used on hdd, but it does mention switching the root partition to RW also.
Trystan may well be able to confirm from experience if rpi-rw/ro work with hdd image
Paul
Re: 'Low write load' image on HDD
Will it help if I delete /etc/fake-hwclock.data prior to creating the image? I could do that for the next update.
I've experienced the rpi-rw error too, sometimes it appears to just get stuck in write mode and gives that error. I think something must have a write lock.
Re: 'Low write load' image on HDD
Trystan - This should only be an issue if like Paul, users alter the image. If Paul had for example, just put the image on the hdd and booted to it, all the partitions would be equally time stamped and the time updated in due course. when he created his own partitions, new times were introduced by his linux live cd but not to fake-hwclock since it wasn't the os in use.
Changing partition sizes and adding partitions using a second machine, after running on new image on hdd should not pose an issue either as I believe there is an "ignored time difference" built in so if on returning to the pi a new partition is apparently dated 30mins in the future its ignored (that's from memory and I cannot recall if its 1hr or 1day etc)
I think this will crop up again, so it may well be worth pre-empting this in the image but I'm unsure of the "right" method you could try deleting the file and/or it's contents and see what messages you get booting with a screen to determine which is better a missing or empty /etc/fake-hwclock.data.
Paul - does the rpi-ro error still occur if you remove "errors=remount-ro" from the /dev/sda2 line of the /etc/fstab? Just a test not a solution I'm afraid. I have some distant memory of experiencing something like this when trying to lock the /boot partition sometime ago
Paul
Re: 'Low write load' image on HDD
Paul, yes the error still exists if I remove 'errors=remount-ro' from fstab.
...and rpi-ro does not prevent sda2 from being written to.
Is it necessary to keep sda2 as read only, and would ro interfere with other software such as node-red or my blog site installed in sda2?
Paul
Re: 'Low write load' image on HDD
There's no requirement to run it in read only mode, its just for peace of mind, to be sure that the os isnt doing lots of writing to a file that might cause sd card wear. As your running other things and your using a harddrive you might need to use read-write
Re: 'Low write load' image on HDD
If you want to revert to a fully RW system to re-enable caching and retain logfiles when rebooting etc the original files were retained with a .orig extension when the "change to RO script" was run.
To revert the original fstab will need editing to boot to the hdd and also add the extra partition(s).
sudo nano /etc/fstab.orig
once you have made the fstab changes, to reinstate the originals (including the updated fstab), delete the rpi-ro/rw batch files and reboot, run
sudo mv /etc/default/rcS.orig /etc/default/rcS
sudo mv /etc/fstab.orig /etc/fstab
sudo mv /etc/mtab.orig /etc/mtab
sudo rm /usr/bin/rpi-rw
sudo rm /usr/bin/rpi-ro
sudo shutdown -r now
Paul
Re: 'Low write load' image on HDD
Just followed your post, and made the changes, and the kb_wrtn/s has understandably increased from 0.6 kb_wrtn/s to 3.06 kb_wrtn/s.
Paul
PS. I presume that I no longer need the temp volumes in fstab;
tmpfs /tmp tmpfs nodev,nosuid,size=30M,mode=1777 0 0
tmpfs /var/log tmpfs nodev,nosuid,size=30M,mode=1777 0 0
Re: 'Low write load' image on HDD
Correct, they were temporary locations set up in RAM at every boot-up, only needed because the main partition was RO.
Paul


Note that the state of your domain should be Active to be able to use it from Odoo side. To verify it follow the instruction How do I verify my domain
Click on added domain name and see all the information needed to configure your Incoming and Outgoing mail feature.
If you use sandbox domain, add Authorized Recipient first (sandbox domains are restricted to authorized recipients)
Navigate to Routes menu and create a new route
Set the following fields and values:
Now everything is ready to move to Odoo configuration.
At first, activate the developer mode. Then go to Settings → Technical → Email → Outgoing Mail Servers menu and populate the following fields:
Once the fields are populated, click Test Connection button to check the connection to smtp server. If everything is ok, you can see popup message Connection Test Succeeded! Everything seems properly set up! and you are able to send messages now.
Note that to setup incoming mailing, it is not required to setup Incoming Mail Server.
Open Settings → General Settings menu:
Save the changes.
Setup mailgun API credentials in Settings → Parameters → System Parameters menu. Create new parameter:
Now you can configure mail aliases for users. Go to Settings → Users menu and open user form (e.g. for Administrator). Then switch to Preferences tab and select an existing alias or create new one in the Alias field.
Open the user's related partner and set Email - the email is used for replying on user messages
Everything is done! It's time to send/receive email messages now!
Contact us by email or fill out request form


|
QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.30
|
Public Member Functions | |
| Impl (std::string name="") | |
| std::string | name () const override |
| bool | isWeekend (Weekday) const override |
| bool | isBusinessDay (const Date &) const override |
| void | addWeekend (Weekday) |
| Public Member Functions inherited from Calendar::Impl | |
| virtual | ~Impl ()=default |
| virtual std::string | name () const =0 |
| virtual bool | isBusinessDay (const Date &) const =0 |
| virtual bool | isWeekend (Weekday) const =0 |
Private Attributes | |
| std::string | name_ |
| unsigned int | weekend_mask_ = 0 |
Additional Inherited Members | |
| Public Attributes inherited from Calendar::Impl | |
| std::set< Date > | addedHolidays |
| std::set< Date > | removedHolidays |
Definition at line 42 of file bespokecalendar.hpp.
|
explicit |
Definition at line 26 of file bespokecalendar.cpp.
|
overridevirtual |
Implements Calendar::Impl.
Definition at line 28 of file bespokecalendar.cpp.
Implements Calendar::Impl.
Definition at line 32 of file bespokecalendar.cpp.
Implements Calendar::Impl.
Definition at line 36 of file bespokecalendar.cpp.
| void addWeekend | ( | Weekday | w | ) |
Definition at line 40 of file bespokecalendar.cpp.
|
private |
Definition at line 50 of file bespokecalendar.hpp.
|
private |
Definition at line 51 of file bespokecalendar.hpp.


Flexible office space
Phone: +234 1 295 4757
12 Landbridge Avenue, Oniru Estate,
Victoria Island, Lagos, Nigeria
A world class business hub made up of flexible
serviced offices and state of the art training facilities
© 2018 - Canton Concourse.
12 Landbridge Avenue, Oniru Estate, Victoria Island,
Lagos, NigerIa.
Phone: +234 1 295 4757, +234<PHONE_NUMBER>
info@cantonconcourse.com


This command is similar to npm install
, except it’s meant to be
used in automated environments such as test platforms, continuous integration, and deployment – or any situation
where you want to make sure you’re doing a clean install of your dependencies.
npm ci
will be significantly faster when:
package-lock.json
or npm-shrinkwrap.json
file.node_modules
folder is missing or empty.In short, the main differences between using npm install
and npm ci
are:
package-lock.json
or
npm-shrinkwrap.json
.
package.json
, npm ci
will exit with an error, instead of updating the package lock.npm ci
can only install entire projects at a time: individual dependencies cannot be added with
this command.node_modules
is already present, it will be automatically removed before npm
ci
begins its install.package.json
or any of the package-locks: installs are essentially
frozen.Make sure you have a package-lock and an up-to-date install:
Run npm ci
in that project
Configure Travis to build using npm ci
instead of npm install
:
# .travis.yml
install:
- npm ci
# keep the npm cache around to speed up installs
cache:
directories:
- "$HOME/.npm"