|
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.lang.Throwable java.lang.Exception javax.transaction.xa.XAException
public class XAException
The XAException is thrown by the Resource Manager (RM) to inform the Transaction Manager of an error encountered by the involved transaction.
| Field Summary | |
|---|---|
int |
errorCode
The error code with which to create the SystemException. |
static int |
XA_HEURCOM
The transaction branch has been heuristically committed. |
static int |
XA_HEURHAZ
The transaction branch may have been heuristically completed. |
static int |
XA_HEURMIX
The transaction branch has been heuristically committed and rolled back. |
static int |
XA_HEURRB
The transaction branch has been heuristically rolled back. |
static int |
XA_NOMIGRATE
Resumption must occur where the suspension occurred. |
static int |
XA_RBBASE
The inclusive lower bound of the rollback codes. |
static int |
XA_RBCOMMFAIL
Indicates that the rollback was caused by a communication failure. |
static int |
XA_RBDEADLOCK
A deadlock was detected. |
static int |
XA_RBEND
The inclusive upper bound of the rollback error code. |
static int |
XA_RBINTEGRITY
A condition that violates the integrity of the resource was detected. |
static int |
XA_RBOTHER
The resource manager rolled back the transaction branch for a reason not on this list. |
static int |
XA_RBPROTO
A protocol error occurred in the resource manager. |
static int |
XA_RBROLLBACK
Indicates that the rollback was caused by an unspecified reason. |
static int |
XA_RBTIMEOUT
A transaction branch took too long. |
static int |
XA_RBTRANSIENT
May retry the transaction branch. |
static int |
XA_RDONLY
The transaction branch was read-only and has been committed. |
static int |
XA_RETRY
Routine returned with no effect and may be reissued. |
static int |
XAER_ASYNC
There is an asynchronous operation already outstanding. |
static int |
XAER_DUPID
The XID already exists. |
static int |
XAER_INVAL
Invalid arguments were given. |
static int |
XAER_NOTA
The XID is not valid. |
static int |
XAER_OUTSIDE
The resource manager is doing work outside a global transaction. |
static int |
XAER_PROTO
Routine was invoked in an inproper context. |
static int |
XAER_RMERR
A resource manager error has occurred in the transaction branch. |
static int |
XAER_RMFAIL
Resource manager is unavailable. |
| Constructor Summary | |
|---|---|
XAException()
Create an XAException. |
|
XAException(int errcode)
Create an XAException with a given error code. |
|
XAException(String s)
Create an XAException with a given string. |
| Method Summary |
|---|
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int errorCode
public static final int XA_RBBASE
public static final int XA_RBROLLBACK
public static final int XA_RBCOMMFAIL
public static final int XA_RBDEADLOCK
public static final int XA_RBINTEGRITY
public static final int XA_RBOTHER
public static final int XA_RBPROTO
public static final int XA_RBTIMEOUT
public static final int XA_RBTRANSIENT
public static final int XA_RBEND
public static final int XA_NOMIGRATE
public static final int XA_HEURHAZ
public static final int XA_HEURCOM
public static final int XA_HEURRB
public static final int XA_HEURMIX
public static final int XA_RETRY
public static final int XA_RDONLY
public static final int XAER_ASYNC
public static final int XAER_RMERR
public static final int XAER_NOTA
public static final int XAER_INVAL
public static final int XAER_PROTO
public static final int XAER_RMFAIL
public static final int XAER_DUPID
public static final int XAER_OUTSIDE
| Constructor Detail |
|---|
public XAException()
public XAException(String s)
s
- The String
object containing the exception
message.public XAException(int errcode)
errcode
- The error code identifying the exception.
|
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.


SWAN knows the suppliers that bring people to advertisers. This increases accountability, transparency and enables audit.
{{ .AuditWinnerHTML }}
The SWAN ID is used to verify the entire supply chain.
{{ .ID }}
The SWAN ID contains all this information.
{{ .IDUnpacked }}
{{ .AuditFullHTML }}
{{ .TreeAsJSON }}


Products
Dashboard
Photo
David Tramp
Online
Users
Customers
Sale
Reviews
Newsletter
Orders
Log out
REVIEW
edit
Review has been editted!
Something went wrong! Try again
Edit Review
Review:
Phonenumber:
Name:
E-mail:


About Me
I'm third year undergraduate computer science student at Jaypee University of Engineering & Technology Guna, Madhya Pradesh. I grew up in Gorakhpur & did my higher secondry from KV No.2 FCI Gorakhpur & senior secondry from KV No.1 AFS Gorakhpur.
A small bit of heading html tags introduced in beginning of school days. Soon after, i learned about SQL & C++ from school curriculam itself! But I be geared towards computer science engineering.
Here in JUET ! I'm part of Mozilla Phoenix Club (MPC JUET), Training & Placement Cell (T&P).As a part of MPC, We organized session and workshop for fresher's and directed them towards open source activities.
Apart from technical activites, I played badminton & chess. I'm also a Web-Series fantic & I used to read newspaper & magzines in library during my free time.


|
Documentation section for informations about project, installation, etc.
This site is the only source of informations/documentation for VQ (well,
at this time, may be some day someone will write some nice guide :-).
Developers sections includes: authors, history of repository, source code
documentation. SourceForge section includes links to: forums, mailing
lists and tracker (where you can report bugs, modification requests).
| Version 4 Released |
| Packagers wanted |
| Developers wanted |
|


{% import "bootstrap/wtf.html" as wtf %} {% from "_macros.html" import render_formgroup, warn_message %}


Welcome to my simple blog. It has some of my favorite links
Entry 1
Entry 2
Entry 2 - sub-content
Favorite Photos
Here's a screenshot of a game I wrote:
Here's my favorite image from my domain:


@Documented @Retention(value=RUNTIME) @Target(value=TYPE) public @interface TupleConstructor
It allows you to write classes in this shortened form:
@TupleConstructor
class Customer {
String first, last
int age
Date since
Collection favItems
}
def c1 = new Customer(first:'Tom', last:'Jones', age:21, since:new Date(), favItems:['Books', 'Games'])
def c2 = new Customer('Tom', 'Jones', 21, new Date(), ['Books', 'Games'])
def c3 = new Customer('Tom', 'Jones')
The @TupleConstructor
annotation instructs the compiler to execute an
AST transformation which adds the necessary constructor method to your class.
A tuple constructor is created with a parameter for each property (and optionally field and super properties). A default value is provided (using Java's default values) for all parameters in the constructor. Groovy's normal conventions then allows any number of parameters to be left off the end of the parameter list including all of the parameters - giving a no-arg constructor which can be used with the map-style naming conventions.
The order of parameters is given by the properties of any super classes with most super first
(if includeSuperProperties
is set) followed by the properties of the class followed
by the fields of the class (if includeFields
is set). Within each grouping the order
is as attributes appear within the respective class.
Limitations:
LinkedHashMap
or if there is a single Map, AbstractMap or HashMap property (or field)| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
callSuper
Should super properties be called within a call to the parent constructor.
|
String[] |
excludes
List of field and/or property names to exclude from the constructor.
|
boolean |
force
By default, this annotation becomes a no-op if you provide your own constructor.
|
boolean |
includeFields
Include fields in the constructor.
|
boolean |
includeProperties
Include properties in the constructor.
|
String[] |
includes
List of field and/or property names to include within the constructor.
|
boolean |
includeSuperFields
Include fields from super classes in the constructor.
|
boolean |
includeSuperProperties
Include properties from super classes in the constructor.
|
public abstract String[] excludes
public abstract String[] includes
public abstract boolean includeFields
public abstract boolean includeProperties
public abstract boolean includeSuperFields
public abstract boolean includeSuperProperties
public abstract boolean callSuper
public abstract boolean force
force=true
then the tuple constructor(s) will be added regardless of
whether existing constructors exist. It is up to you to avoid creating duplicate constructors.


Resources.
The inspiration for our project is a paper presented at the 2019 Intelligent User Interfaces conference (see link below). In this paper, the authors attempt to create an AI that can autonomously provide human-readable explanations to complement decisions made by another AI playing the game of the frogger. We implemented our own decision generator for Pac-Man from a combination of ideas we read about in this paper and our own original strategies.
Automated Rationale Generation: A Technique for Explainable AI and its Effects on Human PerceptionsWe adapted a pre-built Pac-Man game written in Python 2.7, provided by the Berkeley CS Department.
Berkeley Pac-Man Codebase


VISUDH AJIVAM PVT LTD is one of the best digital platform for health care services integrated with pharmacies, doctors, labtests, diagnosis centres across India to provide world class Healthcare facilities to individuals across the country.
Visudh AJIVAM PVT LTD is one of the best for diagnosis. It has various diagnosis centers all over the country.
Set up an appointment, Call or Mail us.
Visudhajivam is India's Largest Online medical store. Find the nearest one.
To revolutionise the Healthcare sector through this healthtech platform so that each and every citizen of India can get the best medical needs at there allowing budget.
Visudh AJIVAM PVT LTD is on a mission to take hand in hand with public and help them across their medical needs with making the user friendly digital platform without any Hassel at right time.
VISUDH AJIVAM PVT LTD is one of the best digital platform for health care services integrated with pharmacies, doctors, labtests, diagnosis centres India world class facilities to individuals across the country.
10 years of Experienced as Nurologist. Sucessfully handled 500+ cases.
5+ years of Experienced as Cardiologist. Sucessfully handled 200+ cases.
15+ years of Experienced as Anesthesiologist. Sucessfully handled 800+ cases.
10+ years of Experienced as Neurosurgeon. Sucessfully handled 400+ cases.
10+ years of Experienced in Emergency medicine. Sucessfully handled 800+ cases.
8+ years of Experienced as general Surgeon. Sucessfully handled 500+ cases.
Simple and affordable price for some of our services
Once per User
Conatct our doctors as per your choice
Free Consultation by our doctors
Unlimited Consultations
Unlimited Messages
Priority Listing
Pirority Listing
Unlimited Consultation
Free Medicines
Feel Free to contact us and ask your doubts.
Surya nagar road no.3 Bijulia talab road ward no.8,
Ramgarh cantt, Ramgarh Jharkhand, 829122,
India
<EMAIL_ADDRESS>+91<PHONE_NUMBER>
Yes we have a big contacts with medicine delvery service
Yes we do have online cunsulting with our expert doctors.
Yes we have
yes ofcourse we have the booking service too


Bali
Bali is more than a place; it's a mood, an aspiration, a tropical state of mind.
Discover the uniquenessYogyakarta
Yogyakarta is known to be the soul of Indonesia, keeping the spirit in perfect balance and harmony.
Adventure cultureSurabaya
Surabaya's name derives from the Javanese words Suro, meaning shark, and Boyo, meaning crocodile.
Uncover the city


datamanagerpkg Package¶
GalaxyCommunication_data_manager
Module¶
This module illustrates how to write GalaxyCommunication_data_manager.pyc and ProtonCommunication_data_manager.py Basically it is just a sphinx test for the documentation
-
datamanagerpkg.GalaxyCommunication_data_manager.
CNV_Input_Dict
(galaxyWeb, historyID)¶ returns (data_Input_CNVID)
Descriptions:
This function return a dictionnary whitch contains datasets id for CNV input files. This dictionnary contains a bcsummary and bcmatrix keys.
Parameters:
Parameters: - galaxyWeb (GalaxyInstance) – a connection to your galaxy instance
- historyID (string) – a galaxy history ID
Returns: data_Input_CNVID
Return type: dictionnary
-
datamanagerpkg.GalaxyCommunication_data_manager.
Create_History
(galaxyWeb, workflow_Name)¶ returns (historyDict)
Descriptions:
This function create a new galaxy history where the data will be load.
Parameters:
Parameters: - galaxyWeb (GalaxyInstance) – a connection to your galaxy instance
- workflow_Name (string) – part of the name of the history
Returns: historyDict
Return type: dict
-
datamanagerpkg.GalaxyCommunication_data_manager.
Run_CNV_Workflow
(galaxyWeb, data_Input_CNVID, historyID)¶ returns (int)
Descriptions:
This function retrieve the CNV workflow and execute it. Use a dictionnary as input.
Parameters:
Parameters: - galaxyWeb (GalaxyInstance) – a connection to your galaxy instance
- data_Input_CNVID (dictionnary) – a dictionnary output from function CNV_Input_Dict
- historyID (string) – a galaxy history ID
Returns: 1
Return type: int
-
datamanagerpkg.GalaxyCommunication_data_manager.
addAllWorkflow
(galaxyWeb, workflow_Dir)¶ returns (int)
Descriptions:
This function aims to load all workflows on a folder such as ‘/nas_Dir/workflow’ for the current users.
Parameters:
Parameters: - galaxyWeb (GalaxyInstance) – a connection to your galaxy instance
- workflow_Dir (string) – path to the workflow directory
Returns: 0 or 1
Return type: int
Note
This function need to be used only one time when the
Galaxy user api key is generated
-
datamanagerpkg.GalaxyCommunication_data_manager.
createUserApikey
(galaxyWeb, userID)¶ returns (userApiKey)
Descriptions:
This function aims to return the galaxy users dictionnary.
Parameters:
Parameters: - galaxyWeb (GalaxyInstance) – a connection to your galaxy instance
- userID (string) – the current user ID in Galaxy
Returns: userApiKey
Return type: string
Note
In this function I can not use the users.get_current_user() function from bioblend because I use the Galaxy Master ApiKey
-
datamanagerpkg.GalaxyCommunication_data_manager.
galaxyConnection
(base_url, apiKey)¶ returns (GalaxyInstance)
Descriptions:
This function aims to create a connection to the Galaxy server.
Parameters:
Parameters: - base_url (string) – an url which point to your galaxy instance
- apiKey (string) – a valid galaxy API key
Returns: GalaxyInstance
Return type: GalaxyInstance
-
datamanagerpkg.GalaxyCommunication_data_manager.
mainCNV
(expDict, base_url, apiKey)¶ returns (historyID)
Descriptions:
This function execute the CNV routine. From a run of the Ion Proton, The routine will connect the user to Galaxy, create an history, upload the CNV input files to it and run the CNV workflow.
Parameters:
Parameters: - expDict – a dictionnary output from ProtonCommunication_data_manager.copyData().
- base_url (string) – an url which point to your galaxy instance
- apiKey (string) – a valid galaxy API key
Returns historyID: the galaxy history where the data and the CNV run are located
Rtype historyID: a dictionnary
-
datamanagerpkg.GalaxyCommunication_data_manager.
returnGalaxyUsers
(galaxyWeb)¶ returns (usersDict)
Descriptions:
This function aims to return the galaxy users dictionnary.
Parameters:
Parameters: galaxyWeb (GalaxyInstance) – a connection to your galaxy instance Returns: usersDict Return type: Dictionnary Note
In this function I can not use the users.get_current_user() function from bioblend because I use the Galaxy Master ApiKey
-
datamanagerpkg.GalaxyCommunication_data_manager.
upload_To_History_CNV
(galaxyWeb, expDict, historyID)¶ returns (int)
Descriptions:
This function upload to a specific history the CNV data.
Parameters:
Parameters: - galaxyWeb (GalaxyInstance) – a connection to your galaxy instance
- expDict (dictionnary) – a result dictionnary output from the ProtonCommunication script
- historyID (string) – a galaxy history ID
Returns: 1
Return type: int
Main_data_manager
Module¶
ProtonCommunication_data_manager
Module¶
The module ProtonCommunication_data_manager.py was designed to be able to connect to the HEGP Ion Proton and copy Data easily. It can be used with GalaxyCommunication_data_manager.py which assure the Data-Manager_Galaxy Job routine.
This script use the The Torrent Suite Software Development Kit to communicate with the Ion Proton. ProtonCommunication_data_manager fullfill three main goals: - retrieve the Data - Select the data you want to use - Copy them throught the network
-
datamanagerpkg.ProtonCommunication_data_manager.
CheckExperiments
(nb_limit, idpwd, base_url)¶ returns (dictionnary)
Descriptions:
- This function aims to return a dictionnary, which contains the ‘n’
- last experiments. It also return the run status and if the run is Complete or not. For that purpose you need to provide the following parameters.
Parameters:
Parameters: - nb_limit (int) – the ‘n’ number of experiments to check out
- idpwd (string) – the user ID to connect to the proton
- idpwd – the user ID to connect to the proton(To add)
- base_url (string) – the Ion Proton URL
Returns: dict
Return type: dict
This function retrieve the n last experiment of the Ion Proton. it returns a dictionnary which contains 5 elements. {RunName: {cnvFileName;status;ftpStatus;date;id;resultsQuery}}
Note
Dictionnary structure: {RunName: {cnvFileName;status;ftpStatus;date;id;resultsQuery}}
- RunName : the experiments run name
- cnvFileName : the sting match for the bcsummary and bcmatrix file
- status : run status either ‘pending’ or ‘run’
- ftpStatus : if the data can be download, either ‘Complete’ or ‘’
- date : project date
- id : project id in the ion proton
- resultsQuery: astring to the result folder `
-
datamanagerpkg.ProtonCommunication_data_manager.
CheckResConsistency
(expDict, ssh)¶ returns (dictionnary)
Descriptions:
This function check data consistency for one dictionnary before performed a scp command. Quality control need to be handle in this function. add a key coverageAnalysis_out which point to the right folder coverageAnalysis_out which contains the bed file ColonLungV2.20140523
Parameters:
Parameters: - expDict – a dictionnary output from QueryResults()
- ssh (sshConnection) – sshConnection from sshConnection() :type expDict: dict
Returns: dict
Return type: dict
-
datamanagerpkg.ProtonCommunication_data_manager.
CheckResultsConsistency
(expDict, ssh)¶ returns (dictionnary)
Descriptions:
This function check data consistency for a a dict of dictionnary before performed a scp command. Quality control need to be handle in this function. add a key coverageAnalysis_out which point to the right folder coverageAnalysis_out which contains the bed file ColonLungV2.20140523
Parameters:
Parameters: - expDict – a dictionnary output from QueryResults()
- ssh (sshConnection) – sshConnection from sshConnection() :type expDict: dict
Returns: dict
Return type: dict
-
datamanagerpkg.ProtonCommunication_data_manager.
FindResults
(expDict, idpwd, base_url)¶ returns (dictionnary)
Descriptions:
This function find the result folder absolut path. it retuns a dictionnary and add the filesystempath to the current dictionnary.
Parameters:
Parameters: - expDict (dict) – a directory output from the the CheckExperiments() function
- idpwd (string) – the user ID to connect to the proton
- idpwd – the user ID to connect to the proton(To add)
- base_url (string) – the Ion Proton URL
Returns: dict
Return type: dict
- This function retrieve the result path associated with an
experiments name from the Ion Proton.
- it returns a dictionnary which contains 2 new elements
from the current dictionnary.
{RunName: {resultsName;runPath;...}}
Note
Dictionnary structure: {RunName: {resultsName;runPath;cnvFileName;status;ftpStatus;date;id;resultsQuery}}
- resultsName; : the experiments result name
- runPath : the path to the current result folder in the Ion Proton
-
datamanagerpkg.ProtonCommunication_data_manager.
QueryResults
(resultsQuery, idpwd, base_url)¶ returns (dictionnary)
Descriptions:
This function find the result folder absolut path associated to an identified resultsQuery. it returns a dictionnary and add the filesystempath to the current dictionnary.
Parameters:
Parameters: - resultsQuery – a string resultsQuery output from CheckExperiments()
- idpwd (string) – the user ID to connect to the proton
- idpwd – the user ID to connect to the proton(To add)
- base_url (string) – the Ion Proton URL
Returns: dict
Return type: dict
- This function retrieve the result path associated with an
experiments name from the Ion Proton.
- it returns a dictionnary which contains 2 new elements
from the current dictionnary.
{RunName: {cnvFileName;resultsName;runPath;}}
Note
Dictionnary structure: {RunName: {resultsName;runPath;cnvFileName}}
- resultsName; : the experiments result name
- runPath : the path to the current result folder in the Ion Proton
-
datamanagerpkg.ProtonCommunication_data_manager.
copyData
(currentExp, ssh)¶ returns (dictionnary)
Descriptions:
This function copy data trought scp and perform checksum. Add the key bcmatrix and bcsummary to the current directory. if some rename opperation need to be performed it as to been done here.
Parameters:
Parameters: - currentExp (dict) – a directory output from CheckResultsConsistency()
- ssh (sshConnection) – sshConnection from sshConnection()
Returns: dict
Return type: dict
-
datamanagerpkg.ProtonCommunication_data_manager.
mainGetCNVData
(base_url, idpr, severName, experimentLimit)¶
-
datamanagerpkg.ProtonCommunication_data_manager.
sshConnection
(severName, idpwd)¶ returns (sshConnection)
Descriptions:
This function allow an ssh connection through the pakito python module. the goal here is to establish a connection before performed an scp bash command.
Parameters: :param severName: name of the linux machine to connect throught ssh :param idpwd: the user ID to connect to the proton :param idpwd: the user ID to connect to the proton(To add) :type severName: string :type idpwd: string :type idpwd: string :returns: sshConnection :rtype: sshConnection
addWorkflow
Module¶
-
datamanagerpkg.addWorkflow.
CNV_Input_Dict
(galaxyWeb, historyID)¶
-
datamanagerpkg.addWorkflow.
Create_History
(galaxyWeb, workflow_Name)¶
-
datamanagerpkg.addWorkflow.
Run_CNV_Workflow
(galaxyWeb, data_Input_CNVID, historyID)¶
-
datamanagerpkg.addWorkflow.
addAllWorkflow
(galaxyWeb, workflow_Dir)¶
-
datamanagerpkg.addWorkflow.
mainCNV
(pathToFile, apiKey, inputAbsolutPath)¶
-
datamanagerpkg.addWorkflow.
upload_To_History
(galaxyWeb, filesPath, historyID, inputAbsolutPath)¶


Get a lifetime of VPN coverage with VPN Unlimited for just $39
It’s no secret that accessing public Wi-Fi networks leaves you susceptible to hackers, but a private network can also be just as dangerous if it isn’t secured properly. That’s why browsing the web with a VPN is a good idea, no matter which network you’re connected to. With KeepSolid’s VPN Unlimited, you’ll get the best VPN coverage for just $39.
VPN Unlimited protects your devices with military-grade encryption and directs outgoing web traffic to one of KeepSolid’s 400+ worldwide servers, preventing hackers from peeking at your data. You can customize your security further with a variety of VPN protocols as well, including Open VPN, L2TP/IPSec, and KeepSolid Wise. VPN Unlimited also lets you set trusted networks and favorite servers for a more personalized browsing experience.
Your bandwidth won’t be throttled while using VPN Unlimited, so you don’t have to sacrifice speed for security. Additionally, you’ll be able to bypass geographic restrictions on websites and streaming services from anywhere in the world, so you can binge Netflix and Hulu even when you’re abroad.
Hackers are getting bolder each year, so using a VPN is necessary to ensure the safety and privacy of your data. You can get lifetime VPN coverage through VPN Unlimited today for $39.
Don’t wait for Black Friday—you can get these top-sellers at deep discounts today!
Prices subject to change


--- layout: page title: About header-img: "img/about-bg.png" ---
Self-paced Software Engineering Bootcamp Student


The TMBlockStream API call is a general purpose block transfer function. This function simply does a stream of TMTouchByte(s) of all of the 'num_tran' bytes in the 'tran_buffer' data buffer. The values returned from the TMTouchByte(s) are placed back into the 'tran_buffer' data buffer. This call returns a byte length greater than or equal to 0 for success or one of the HARDWARE SPECIFIC error values described for a failure. This API call is similar to TMBlockIO but without the TMTouchReset at the beginning of communication. The maximum number of 'num_tran' is 1023 bytes.
short far pascal TMBlockStream(
For a description of the above types, see the TMEX Type Descriptions.
Parameters
session_handle
Specifies the session handle returned from the API function TMExtendedStartSession that specifies the desired 1-Wire network port. This parameter is required by most TMEX API functions.
tran_buffer
Specifies a pointer to a memory location that contains the data to write and then read from the 1-Wire network.
num_tran
Specifies the number of bytes in the ‘tran_buffer’ to transfer to and from the 1-Wire network.
Return Value
>=0 => length of data sent and received from the 1-Wire network
<0 => TMEX Hardware Specific Error Return Code
See Also


How much ETH would you like to increase?
How much ETH would you like to decrease?
How much ETD would you like to pay back?


--- layout: post title: "Keeping the Bootcamp Fun Alive!" authors: ["Jeff Hollister"] date: 2014-06-05 time: "14:00:00" tags: ["Bootcamps", "University of Rhode Island"] ---
In the later part of 2013, I started the process of co-hosting a Bootcamp with Peter August and Judith Swift both from the University of Rhode Island (URI). During our discussions it became quite clear that as fantastic as the bootcamps are, it would be even better if we could extend the opportunities for learning. We tossed around several ideas but eventually decided we would try a special topics course at URI. Thus, Scientific Computing and Programming for Coastal Resource Managment was born. We opened the course up to any of the bootcamp participants who had an interest; official enrollment in the course was not required. In the end we had about 10 participants who attendend regularly, including a few students who enrolled for credit. Pete August (URI), Adam Smith (URI), and myself co-taught the course.
The content of the course was mostly determined by the students, with some classes led by myself, Adam, and Pete. Since the content was largely up to the interests of the class, we did need a way to reinforce the lessons taught in the bootcamp. To do this, we used blog posts, written in R Markdown, and turned in via Pull Requests as the mechanism for adding content to the course and reinforcing some of the version control lessons. In the end, the course covered material from spatial data handling in R, to image processing in R, to pivot table like operations in R, to extracting zip codes from messy data.
While this first run of the course was certainly experimental (and somewhat improvisational), the students indicated that it was helpful to have the extended exposure to R and computing. Some of the specifics we learned:
So, given that the experience was a positive one we fully intend to offer this course again. We plan to do it as part of a sequence with an initial bootcamp—perhaps a Data Carpentry bootcamp—followed by the course. This additional opportunity helps keep the bootcamp experience and learning going and gives the students some directed guidance on how they can apply what they learned in the bootcamp to some of their own research questions.


Welcome to The Pumpkin Hunt App
This is a simple scavengeer hunt type app for a Pumpkin Themed party! Enjoy!
If you need support or have any questions, contact me at<EMAIL_ADDRESS>or
submit an issue


Four-year colleges: bachelor’s degree-seeking students (NCES)
First-time, full-time degree-seeking undergraduates seeking a bachelor's degree.
Four-year colleges: other degree-seeking students (NCES)
First-time, full-time undergraduates seeking any non-bachelor's degree or certificate. Expected graduation time for these programs varies.
Two-year colleges: all degree-seeking students (NCES)
First-time full-time degree seeking students at 2-year colleges. The expected completion time for these programs varies.
Four-year public colleges: Full-time undergraduate students (VSA)
The Voluntary System of Accountability data includes information on transfer students and continuing enrollment for participating public four-year colleges.
| College | Grad. rate 150% time |
Grad. rate 100% time |
Completions per 100 students | Spending per completion | Student aid per recipient | Students with Pell Grants |
Data is available in CSV format, which can be opened in Excel. A larger set of files containing data for all colleges and states is also available.


Use the arrow keys to move the blocks. When two tiles of the same number touch, they merge into one. When a tile reaches 256, it locks up. You get a point for each 256 block you complete
created by henry tran, ripping off 2048 by gabriele cirulli, who cloned 2048 by saming, who based his clone on 1024 by veewo studio, which is conceptually similar to threes by asher vollmer.


MacBook Air (M1, 2020) 13 inch with 8-Core CPU and 7-Core GPU 256Gb Storage with Optional Microsoft 365 Family
Galaxy S20 FE 128GB Depth: 8.4 MM 6.5" (Full Rectangle) Super AMOLED Infinity-O display, Gorilla 3 glass & TPU protective film. 1080 x 2400 (FHD+) resolution. 407ppi Android 10.0
Sony WH-1000XM3 Noise Cancelling Wireless Bluetooth NFC High Resolution Audio Over-Ear Headphones with Mic/Remote, Silver


---
start: 2015-10-17 09:00
edition: 4
talk: "speaker.html"
about: "
\"Quest For Quality\"
This time in Gurgaon, we are having a mix of some of the most relevant and trending topics in the world of Software Testing and not limiting to one aspect of testing as we had in our earlier vodQA versions.
vodQA, as a preferred platform for the QA community pan India is turning 5 years with this edition. This time its not that you are just an audience listening to ThoughtWorkers but also have a chance to speak to your fellow testing community.
The speaker registrations are now open and we invite you to submit your talks for the upcoming edition of vodQA.
"
agenda:
-
time: "4:00"
title: "About the Technology Radar"
speaker: "Avinash Chugh"
-
time: "4:15"
title: "Developing cross-platform apps with Xamarin"
speaker: "Sanchit Bahal & Bharti Nagpal"
subtitle: "Use the power of C# to create native apps across iOS, Android, and Windows Phone. Learn how you can share code across mobile platforms and still deliver native user experience and native performance."
-
time: "5:00"
title: "Consul - A tool for service discovery and configuration"
speaker: "Arnav Kumar"
subtitle: "Consul is great way for services to register themselves, and then discover others via DNS or HTTP. Backed by a lightweight and efficient gossip protocol (serf), Consul can also detect unhealthy hosts or unavailable services. Find out how you can add this to your DevOps toolkit."
-
time: "5:30"
title: "Break"
-
time: "6:00"
title: "'Dashing'-ly beautiful dashboards"
speaker: "Sumedha Verma & Riya Kataria"
subtitle: "Learn how this handsome, Sinatra-based framework from Shopify can help create dashboards that look great on large monitors."
-
time: "6:30"
title: "Isomorphic JavaScript — Workshop with Flux, React, and ES6"
speaker: "Harsha Ivaturi & Ashutosh Devbrat"
subtitle: "Experience the world of 'Isomorphic JavaScript' - JS apps that can run both client-side and server-side. Build a front-end app using React and Flux in EcmaScript 6 (ES6). See how React lets you build reusable view components over the unidirectional data-flow paradigm of the Flux architecture."
-
time: "8:00"
title: "Networking & Dinner"
subtitle: "(served at our premises)"
---


Advanced Usage¶
CLI options¶
In addition to the basic CLI commands showing in the previous section, there are options you can add to the commands which allow you to get your configuration faster.
Option that applies to all commands:¶
| –project_root, -p: | |
|---|---|
| Alternative to cd into the project root before using ‘logme ini’. You can add this flag to specify the project root. This is where you want the logme.ini file to be located. Can be either relative or absolute path. |
Note
If you use the -p flag with logme init, and if the destination directory does not exist, you can add a ‘–mkdir’ or ‘-mk’ flag to create the directory. ‘–mkdir/-mk’ flag is only available for logme init.
Option that applies to ‘logme init’ and ‘logme add config_name’:¶
| –level, -lvl: | Master level for the logger configuration. |
|---|---|
| –formatter, -f: | Master level formatter of the logger configuration. |
| –log-path, -lp: | If you use a FileHandler for your logger, this is the log file path for the handler. This must be absolute path. |
Logger Delegation¶
If you are making a distributed or installable package, and you still want to include logging. You can easy do this with logme package.
The following are the simple steps:
- Have only the NullHandler set to ‘active’ in your project root logme.ini file. This will ensure logging messages do not get output unless the configuration is changed.
- In your __init__.py file, make a module logger, like so:
logger = logme.log(scope='module')
- Import this logger throughout your project. Take note that this means the whole project will be logged with this single logger.
- If user need to see the logging messages, they can then import the logger and change the configuration. There are two ways to reset the logging configuration, see below:
I: Using logme config name:¶
Assuming if the user of the package also have initialized in their project root, you can reset the configuration by directly passing in the configuration name with config_name argument.
Example:
from your_project import logger
logger.reset_configuration(config_name='my_own_logger')
II: Using a config dictionary:¶
Configuration can also be passed in as a dictionary with config argument.
config structure:
{
'level': 'string',
'format': 'string',
'handler1': {
'active': True,
'level': 'string', # Optional
'formatter': 'string', # Optional
'handler_arg1': 'mixed', # This is the argument you pass into specific handler
'handler_arg2': 'mixed',
}
}
Example:
from your_project import logger
config = {
"level": "DEBUG",
"format": "{levelname}: {message}",
"StreamHandler": {
"active": True,
"level": "DEBUG",
},
"FileHandler": {
"active": True,
"level": "DEBUG",
"filename": "/var/log/mylog.log",
},
}
}
logger.reset_configuration(config=config)


DeviceConnections¶
Contains a class that represent connections between populations
-
class
classes.DeviceConnections.
DeviceConnections
(sourcePop, targetPop, connTypes=None, synapsesObj=None, i=None, j=None, w=None)[source]¶ Bases:
object
Class that represent connections between populations
Return a new DeviceConnections object
Parameters: - sourcePop (DevicePopulation obj) – population that represent the source of the connection
- targetPop (DevicePopulation obj) – population that represent the destination of the connection
- connTypes (string; array, string) – type of the connections to be implemented (see below)
- synapseObj (Synapses obj) – brian2 synapse object containing all the connections.
- i (array, int) – list of indexes of the source neurons to be connected (can be also a single value)
- j (array, int) – list of indexes of the destination neurons to be connected (can be also a single value)
- w (array, int) – list of connection weights
Note
Remember that in Dynap-se there are 4 types of connections: fast excitatory, fast inhibitory, slow excitatory and slow inhibitory. They can be specified insert in connType one of the following strings:
- fast excitatory: “fExc”
- slow excitatory: “sExc”
- fast inhibitory: “fInh”
- slow inhibitory: “sInh”
With this object is possible to connect neurons in two different ways. These ways are applied with the following order of priority:
- specifying a Brian2 synapse object containing the connections that must be performed.
- See this link: <http://brian2.readthedocs.io/en/2.0rc/user/synapses.html> for more details on it. It is necessary to specify just the source population, target population and the synapse object. The weights are extracted directly from this last one, EVEN IF THEY ARE NEGATIVE!
- specifying connection manually, writing the source connections neuron on i, the destination connection neurons on j
- and the weights on w. It is the same way used by Brian2 simulator, but less flexible. If you want more flexibility, consider using synapse object for the connection
If a combination of the two methods is specified (i.e. synapse_object and w), the one with higher priority will be applied.
If no connTypes is specified, the type of connection (excitatory/inihbitory, fast/slow) are determined by the type of the source neurons, in a biologically plausible way (a neuron has only synapses of the same type). If a connType is written, the connections assume all the specified type. In this way it is possible to create non biological connections, i.e. a neuron that is excitatory and inhibitory at the same time.
connTypes can be also an array of strings. In this case, every connection can be either one of the type specified before
Note
It is also compatible with NCSBrian2Lib (Connections object)
Examples
Create connections between two DevicePopulations using a Synapse object:
p1 = NeuronGroup(10, ...) # Define populations... p2 = NeuronGroup(10, ...) syn = Synapses(p1, p2, ...) # define synapses with brian2 syn.connect("i == j and i < 10") # connect first 10 to first 10 syn.w = 1 _p1 = DevicePopulation(p1, ...) # create device populations _p2 = DevicePopulation(p2, ...) devConn = DeviceConnections(_p1, _p2, synapsesObj = syn)
Another possibility is to specify i, j and w:
i = np.arange(10) # Connect first 10 of p1 j = np.arange(10) # To first 10 of p2 w = np.ones(10) # with unitary weights devConn = DeviceConnections(_p1, _p2, i = i, j = j, w = w)
Create biologically plausible connections:
_p1 = DevicePopulation(p1, ..., neuronsType = "fExc") # define population types _p2 = DevicePopulation(p2, ..., neuronsType = "fExc") devConn = DeviceConnections(_p1, _p2, synapsesObj = syn) # fast excitatory connections
Create not biologically plausible connections:
devConn_exc = DeviceConnections(_p1, _p2, synapsesObj = syn) # fast excitatory connections devConn_inh = DeviceConnections(_p1, _p2, synapsesObj = syn, connTypes = "fInh") # fast inhibitory connections # Same populations with both excitatory and inhibitory connections


Implements interfaces:
Located in /Ldap/EntryIterator.php (line 2)
Create a new Sso_Ldap_EntryIterator providing an array of DNs to iterate over and a Sso_Ldap_Connection object.
Filter the contained entries excluding matched items. Provide an array of attribute => value matches. Can also handle partial matches using * and ? as wildcard characters. And you can optionally provide the second parameter to enable fuzzy matching.
Filter the contained entries excluding items that do not match. Provide an array of attribute => value matches. Can also handle partial matches using * and ? as wildcard characters. And you can optionally provide the second parameter to enable fuzzy matching.
Remove the specified $dn from the iterator.
Set the fuzzy search tollerance used when using fuzzy filtering. Is an integer specifying the lowest similarity % that will cause a match. Default is 60.
Sort the entries in the collection by the provided $attributes, optionally only specifying a particular $class to sort (will ignore other objectClasses). The attributes should take the format of either array(column,column,...) or array(column => direction). Direction is either asc or desc. Returns the sorted iterator.
Documentation generated on Thu, 23 Jul 2009 17:17:47 +0100 by phpDocumentor 1.4.2


SIMPATICO
Reviewed by Harvey Karten Fine Line Features/Emotion Films Director: Matthew Warchus Writer: Matthew Warchus, David Nicholls, play by Sam Shepard Cast: Nick Nolte, Jeff Bridges, Sharon Stone, Catherine Keener, Albert Finney
Just as the "in" thing to say is "the book is better than the movie," the appropriate way to describe a movie that has come out of a staged play is that they should have left it off- Broadway where it belongs. August Strindberg's "Miss Julie," David Mamet's "Oleanna," Paul Rudnick's "Jeffrey"--all have been compromised or downright ruined by being "opened up" on the big screen. Not only do filmed plays look either claustrophobic or artificially extended when put on the huge silver screen: the language, which is usually the key attribute of a staged work, gets lost. Sam Shepard's play, "Simpatico," is a good example of a work whose language simply disperses into the alfalfa-perfumed air of Kentucky where many of its scenes take place.
Directed with a star-studded cast by Matthew Warchus--who has done impressive work on Broadway with his Tony- nominated hit "Art" and is known for solid work on London's West End ("Falstaff," "Hamlet,")--Warchus is out of his element with this rambling movie, whose rhythms and poetry are squandered amid a convoluted tale. Dealing with some of Sam Shepard's favorite themes--the interior and exterior landscapes of American society, the death or betrayal of the American dream, the search for comfortable roots-- "Simpatico" takes a good deal of time to find its cadence, leading the audience to wonder when some sense will be made of its characters' feelings of alienation. Flashing back frequently to the more carefree, optimistic days of his protagonists, Warchus unveils a story of youthful ideals and limitless dreams, puncturing the illusions of two uninteresting men and one bimbo-ish woman who pulled a scam that didn't quite work out and who are haunted not only by memories but by their current ties to the past.
The movie opens on a shaggy Vinnie (Nick Nolte) who has been leading a low-profile life in Cucamonga, California, having been involved in a shady deal with his friend, Carter (Jeff Bridges)--who is now a multimillionaire horse breeder in Kentucky. In a more carefree time they had been involved in a racing scam involving the switching of slow, long-shot horses by fast ones, and in blackmailing the racing commissioner, Simms (Albert Finney), into silence. But there is no honor among these thieves. Carter runs off with Vinnie's wife Rosie (Sharon Stone), Simms takes on a new identity with a new, satisfying career, and Carter is himself blackmailed by Vinnie. When Vinnie decides to come clean and go public with evidence, Carter is drawn into an intricate plot involving a naive supermarket checker, Cecilia (Catherine Keener), who acts as liaison between Vinnie and Simms.
Kimberly Williams, Liam Waite and Shawn Hatosy perform in the roles of the young Rosie, Carter and Vinnie respectively while Sharon Stone is wasted in a thankless role of the unhappy, if fabulously rich, wife of Carter, lounging about her estate like a torpid character out of Tennessee Williams. The most energetic performance comes from Albert Finney, who has made lemonade from lemons by performing in the role of a man who is now intensely involved in a career tracing the bloodlines of horses. Despite decent performances from Nick Nolte and Jeff Bridges, who switch roles before our eyes--the one lightening up graphically as he shucks the albatross of his past criminal acts while the other deteriorates into a paranoid scuzz--"Simpatico" barely leaves the starting gate before it falters and bogs down like a Central Park buggy horse pitted against Native Dancer.
Rated R. Running Time: 106 minutes. (C) 2000 Harvey Karten<EMAIL_ADDRESS>The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


Webcredits is an extremely simple way to model decentralized payments, balances and wallets on the world wide web, using Linked Data. This specification deals with credits between counterparites, a ledger that stores balances, and a wallet to allow discovery.
This document in an informal draft discussed in the w3c web payments community group.
<#this> a cc:Credit; cc:source <#alice> ; cc:destination <#bob> ; cc:amount 11.11 .
The Source indicates the source of the credit.
The Destination indicates the destination of the credit.
The Amount indicates the amount of the credit.
A cc:timestamp is an optional field of type xsd date
A cc:description is an optional field of type xsd string
A cc:currency is an optional field of type anyURI
<#alice> cc:amount 1.23 . <#bob> cc:amount 3.77 .
The Amount indicates the balance of the agent.
A wallet is a container of a ledger, it is the authority by which the ledger is defined. It also will show how to find balances, and change the state of the ledger.
An API will typically be a self describing resource which will allow you to get the balance for a given user or recent transactions. Functions of the API SHOULD include getting a balance for a user, and list transactions for a user. Pagination is encouraged, but out of scope of this spec.
An inbox is where you POST a new credit which SHOULD return an HTTP 200 or 201 if accepted.
<#this> a Wallet ; cc:inbox <#inbox> ; cc:currency <#mark> ; cc:api <#api> .
The api shows where to get balances and add new credits.
The inbox shows where to send new web credits.
The currency is the default currency of that wallet.


--- layout: post title: 'Watch This: 70-Minute Video Review of Star Wars: The Phantom Menace | /Film' categories: [] tags: [] status: publish type: post published: true meta: _original_post_id: '' _original_import_author: John Duprey author: ---
My friend Jamie sent me this link. I bet you can't stop watching if you know the Star Wars series at all - all seven parts!


Evelyn Goodhart
LETTERS
Last week I
asked Evelyn's niece, Mary Anne Stiles, if was okay to post Evelyn's letters
here. She gave the okay and said: " Yes, please feel free to include Aunt
Weenie's letter. I have also been enlightened
by the info on places she had lived after her mother died. She moved to
Pittsburgh when I was a little girl, and I have wonderful memories of
visiting her and doing so many fun things."
Evelyn shared a
little about her family with me in 2009, shortly before her death. I surely wish I had met her earlier in both
our lives. My friend Helen Weiss first
told me about Evelyn in 2007:
from
Helen Weiss, 2007:
I remember Howard very well and I
still keep in contact with his daughter Evelyn Goodhart b. 23 Sep 1917, who
lives in Pa.  That put me in care of many relatives. I lived with Uncle John in Calais, OH,
Grandma Sarah & Grandpa Charles Everett & Margaret & George
Atkinson in Batesville, OH. Grandma
& Grandpa moved to Batesville from Calais, OH. Mom's sister Ada moved to Bridgeport OH where I lived with her
and my sister & her daughter in the winter then my summers with other
relatives. Oh well! I turned out OK. I was living in Washington DC when the second World War
began. I left there because it was
below zero, and my health did not permit it.
My sister was married then. I
went to her farm, where I had lived for some time. From there I went to Greensburg, Pa for 3 months then to
Pittsburgh where I was for many years and where I was when I had my stroke in
2002. My niece Mary Anne (Gert's
daughter) moved me nearer her farm where I now live, and at 91 I won't move I'm
sure."
from
Evelyn, February, 2009:
"Grandpa
& Grandma Everett are buried beside Dad and Mom, Howard & Josie
Goodhart, in the large graveyard in Cambridge,Oh. Oh yes! I will be too, I
hope. My stone date has to be changed,
it's in 19's."
"I
lived at Dean's first home for almost 3 years after I had my stroke. I believe I was 88 yrs old at that
time. I am 91 yrs. old now. Never thought I'd last that long. I live at Dean's farm, one mile from
Dilltown at this time. Only God knows
how much longer I'll be there."
"We
had almost 20 inches of snow here in the mountains and very cold, below zero
some nights."
Last modified
March 5, 2017 by BK.
Provided by Betty Latta Kitchen
Click here for the Short-Cut Table of Contents


I'm a developer that likes to get stuck into programming and can adapt to the situation, always eager learn and grow professionally within the web industry.
I utilise the skills from my learning experience by developing solutions to problems that may arise.
Have a look through my site
Lets talkProvided improvements as well as managed the websites. Implemented a PWA (Progressive Web App) and displaying loaders for the UK site on the holidays section. Furthermore providing design concepts regarding the redesign on the test domain site.
Working with HTML5, CSS3, jQuery/JavaScript and workflow using FTP
An advanced version of a todos list which offers several options to sort by e.g. sort by recent/edited as well as able to change your todos. Saves your todos to local storage so they are still there when you return.
This project was for demonstrating my vanilla JS DOM manipulation skills.
Built with HTML5, CSS, JavaScript ES6 and using momentjs library,
A FullStack web application which detects mulitple or single faces on the image url supplied. Uses the Clarifai face detection model of the API.
Built using React, Sass, Node, Express.js and postgreSQL. Deployed using Heroku.
PodPoints is a FullStack web project I built which allows you to register, play episodes and earn points for finishing each episode.
You can also check out the leaderboard for where you currently rank amongst others!
The project uses Listen Notes API and is deployed using Heroku.
Built with React, Sass, Redux (state management), Express/Node and PostgreSQL


I have no idea how you could make it without our sht till today. It solves the exact f-ing problem you just have! And it's sooo f-ing simple.
Just scroll the f-k down finally, will ya!?
Scrool the sht out of it!Just f-ing look at it!
With technology, everything is f-ing possible! So we love technology like there is no tomorrow. Sometimes we love technology so much, we take it to a nice dinner somewhere cosy, where they have candles and sht and then we take it home, where... You know...
Without history, there's no technology. Without technology, tehere's no us. Without us, there's no motivation and no teamwork.
Robots are cool. Especialy when touching humans.
Here mr. Sun, accept this f-ing tree as a symbol of our naturness.
What!? Yeah!  Bam!
WHAT THE F-K!? Daaaaaamn that's f-ing awesome! We are f-ing awesome!
Because "F-k that sht." --Buddha, 1987
Now keep scrolling. Please.
Let's talk money
"To earn money, one has to spend some first." --Socrates, 1892 b.c.
| Choose your plan | U-Broke | The only plan making sense | I have more money than brains |
|---|---|---|---|
| Technology | |||
| History | |||
| Robots | |||
| Nature | |||
| Nature and technololgy | |||
| Nature, technology, robots | |||
| YOUR INVESTMENT | $500 | $2500 | $399999999999999999999 |
Choose wisely now!  Trust us. We have a great website.
Holy f-k that's some serious webdesign!
"Yeah you great, now f-k off, I'm on the phone."
--Monica Beach
"Guy in suit gave me 100 bucks if he can take picture of my id. Now they say I own multilevel scam."
--Horace White
"That not funny! Where my money?"
--Rajesh Nahasapeemapetilon
"That nice lady in red dress told me that if I get 100 more people to join this company I won't loose my home."
--Oma Grandmason
"I'm vegan."
--Richard Soccer
Yeah, that's right, best f-ing gallery you've ever seen.
Something's f-ed. Try:
If it didn't help a single f-ing bit, you're f-ed.
If this is taking more than 30 f-ing seconds, something's seriously f-ed. Try:
If it didn't help a single f-ing bit, you're f-ed.
Achieve.

Huh!?
Confused? No need. This is an example template of an extremely nice and responsive minisite or microsite. It is completely free to use! Source code and more info is available on Github.
Special kudos goes to these people/projects which this site utilizes heavily:


--- rel_ver: 0.7.2 layout: release-notes --- Overview NLPCraft 0.7.2 brings about several important bug fixes. First full public release of the new nlpcraft.{sh|cmd} management utility. 🙌 New NLPCRAFT-152 - Create 'project' command for nlpcraft.{sh|cmd} script. NLPCRAFT-153 - Create 'model' command for nlpcraft.{sh|cmd} script. NLPCRAFT-165 - Update website docs for new conversation syntax for terms. NLPCRAFT-164 - Remove KEYS file from source repo. NLPCRAFT-168 - Add 'sqlgen' command to nlpcraft.{sh|cmd} script. 🤖 Enhancements NLPCRAFT-163 - Check that matched intent contains at least one token from current question (i.e. not all tokens are from STM). NLPCRAFT-166 - Model misses default constructor error. NLPCRAFT-171 - CLI stop server error. 🧐 Fixes NLPCRAFT-142 - Probe connected, but its models are not loaded. NLPCRAFT-161 - Conversation property should be added into term. NLPCRAFT-162 - CLI issues.
NLPCraft 0.7.2 brings about several important bug fixes. First full public release of the new nlpcraft.{sh|cmd} management utility.
nlpcraft.{sh|cmd}


Jump to
Sections of this page
Accessibility help
Press
alt
+
/
to open this menu
Facebook
Create New Account
Log in to Facebook
Log In
Forgotten account?
·
Sign up for Facebook
English (UK)
অসমীয়া
বাংলা
हिन्दी
नेपाली
اردو
Español
Português (Brasil)
Français (France)
Deutsch
Italiano
Sign Up
Log In
Messenger
Facebook Lite
Watch
People
Profiles
Pages
Page categories
Events
Places
Games
Locations
Marketplace
Groups
Instagram
Local
Fundraisers
Services
About
Create ad
Create Page
Developers
Careers
Privacy
Cookies
AdChoices
Terms
Account security
Login help
Help
Settings
Activity log
Facebook © 2019


--- layout: page title: "Scala in Depth" prev: kindle_split_020.html next: kindle_split_022.html book_path: books/scala-in-depth-joshua-d-suereth--_oeb/ --- {% include JB/setup %} {% raw %}
Chapter 2. The core rules
Figure 2.1. REPL return values
Figure 2.2. Immutable versus mutable service worst-case scenario
Figure 2.3. Immutable versus mutable service “one golden run” scenario
Chapter 3. Modicum of style—coding conventions
Chapter 4. Utilizing object orientation
Figure 4.1. Simulation class hierarchy
Chapter 6. The Type System
Chapter 7. Using implicits and types together
Chapter 8. Using the right collection
Figure 8.1. Generic collections hierarchy
Figure 8.2. Example index trie with a branching factor of two
Figure 8.3. Update to trie with sharing
Figure 8.4. Vector’s array structure with branching factor of 2
Figure 8.5. Internal structure of a list
Figure 8.6. Changing evaluation semantics
Chapter 9. Actors
Figure 9.3. Modified scatter-gather search
Figure 9.4. Failure zones for scatter-gather example
Chapter 11. Patterns in functional programming


Become a part of our community by joining other individuals, organizations & families in supporting Lifeline. Watch our promotional video, share it with friends, and contact us to see where you'll fit best in our ministry. Join us!


Explanations for {{keytermtask.keyterm.keyterm}} submitted by
{% if learner.role == 'Admin' %}
all students in this course
{% elif learner.role == 'Learn' %}
you, and your colleagues
{% endif %}
{% timezone 'UTC' %}
You must vote before {{keytermtask.keyterm.deadline_for_voting|date:"d F Y" }} {{keytermtask.keyterm.deadline_for_voting|time:"H:i" }} (UTC) [what is this?]; you have {{keytermtask.keyterm.deadline_for_voting| timeuntil }} left. Click on the image to read the details.
{% if not after_voting_deadline %}
As of {% now "d F Y" %} at {% now "H:i:s" %} (UTC): you have {{votes_left}} more vote{{votes_left|pluralize}} left.
{% endif %}
{% endtimezone %}
{% if learner.role == 'Admin' %}
Download all as PDF
{% endif %}


A JSONSchema validator that uses code generation to be extremely fast
npm install is-my-json-valid
It passes the entire JSONSchema v4 test suite except for remoteRefs
and maxLength
/minLength
when using unicode surrogate pairs.
Simply pass a schema to compile it
``` js var validator = require(‘is-my-json-valid’)
var validate = validator({ required: true, type: ‘object’, properties: { hello: { required: true, type: ‘string’ } } })
console.log(‘should be valid’, validate({hello: ‘world’})) console.log(‘should not be valid’, validate({}))
// get the last list of errors by checking validate.errors // the following will print [{field: ‘data.hello’, message: ‘is required’}] console.log(validate.errors) ```
You can also pass the schema as a string
js
var validate = validator('{"type": ... }')
Optionally you can use the require submodule to load a schema from __dirname
js
var validator = require('is-my-json-valid/require')
var validate = validator('my-schema.json')
is-my-json-valid supports the formats specified in JSON schema v4 (such as date-time). If you want to add your own custom formats pass them as the formats options to the validator
``` js var validate = validator({ type: ‘string’, required: true, format: ‘only-a’ }, { formats: { ‘only-a’: /^a+$/ } })
console.log(validate(‘aa’)) // true console.log(validate(‘ab’)) // false ```
You can pass in external schemas that you reference using the $ref
attribute as the schemas
option
``` js var ext = { required: true, type: ‘string’ }
var schema = { $ref: ‘#ext’ // references another schema called ext }
// pass the external schemas as an option var validate = validator(schema, {schemas: {ext: ext}})
validate(‘hello’) // returns true validate(42) // return false ```
is-my-json-valid supports filtering away properties not in the schema
``` js var filter = validator.filter({ required: true, type: ‘object’, properties: { hello: {type: ‘string’, required: true} }, additionalProperties: false })
var doc = {hello: ‘world’, notInSchema: true} console.log(filter(doc)) // {hello: ‘world’} ```
When the verbose
options is set to true
, is-my-json-valid
also outputs:
value
: The data value that caused the errorschemaPath
: an array of keys indicating which sub-schema failed``` js var schema = { required: true, type: ‘object’, properties: { hello: { required: true, type: ‘string’ } } } var validate = validator(schema, { verbose: true })
validate({hello: 100}); console.log(validate.errors) // [ { field: ‘data.hello’, // message: ‘is the wrong type’, // value: 100, // type: ‘string’, // schemaPath: [ ‘properties’, ‘hello’ ] } ] ```
Many popular libraries make it easy to retrieve the failing rule with the schemaPath
:
```
var schemaPath = validate.errors[0].schemaPath
var R = require(‘ramda’)
console.log( ‘All evaluate to the same thing: ‘, R.equals( schema.properties.hello, { required: true, type: ‘string’ }, R.path(schemaPath, schema), require(‘lodash’).get(schema, schemaPath), require(‘jsonpointer’).get(schema, [””].concat(schemaPath)) )) // All evaluate to the same thing: true ```
By default is-my-json-valid bails on first validation error but when greedy is set to true it tries to validate as much as possible:
``` js var validate = validator({ type: ‘object’, properties: { x: { type: ‘number’ } }, required: [‘x’, ‘y’] }, { greedy: true });
validate({x: ‘string’}); console.log(validate.errors) // [{field: ‘data.y’, message: ‘is required’}, // {field: ‘data.x’, message: ‘is the wrong type’}] ```
Here is a list of possible message
values for errors:
is required
is the wrong type
has additional items
must be FORMAT format
(FORMAT is the format
property from the schema)must be unique
must be an enum value
dependencies not set
has additional properties
referenced schema does not match
negative schema matches
pattern mismatch
no schemas match
no (or more than one) schemas match
has a remainder
has more properties than allowed
has less properties than allowed
has more items than allowed
has less items than allowed
has longer length than allowed
has less length than allowed
is less than minimum
is more than maximum
is-my-json-valid uses code generation to turn your JSON schema into basic javascript code that is easily optimizeable by v8.
At the time of writing, is-my-json-valid is the fastest validator when running
If you know any other relevant benchmarks open a PR and I’ll add them.
MIT


Quiz Board
Click on the correct answer once on every container.
1.What is jQuery?
A library of already written javascript functions
A programming language for the web
None of the above
2.Which of the following represent an inline element?
Paragraph
Orderly lists
"a" - tag
span
3.Which of the following is not a github terminal command?
git grab
git clone
git branch
4.Which of this is a data type?
Numbers
Boolan
Strings
Decimals
5.The following are HTML DOM mouse event except
Onclic
Mousedown
mouse over
Click here to submit
Submit


This page covers the classes that define the UVM report server facility.
| UVM Report Server | This page covers the classes that define the UVM report server facility. |
| uvm_report_server | uvm_report_server is a global server that processes all of the reports generated by a uvm_report_handler. |
| uvm_default_report_server | Default implementation of the UVM report server. |
uvm_report_server is a global server that processes all of the reports generated by a uvm_report_handler.
The uvm_report_server is an abstract class which declares many of its methods as pure virtual. The UVM uses the uvm_default_report_server class as its default report server implementation.
| uvm_report_server | |
| uvm_report_server is a global server that processes all of the reports generated by a uvm_report_handler. | |
| Methods | |
| set_max_quit_count | count is the maximum number of UVM_QUIT actions the uvm_report_server will tolerate before invoking client.die(). |
| get_max_quit_count | returns the currently configured max quit count |
| set_quit_count | sets the current number of UVM_QUIT actions already passed through this uvm_report_server |
| get_quit_count | returns the current number of UVM_QUIT actions already passed through this server |
| set_severity_count | sets the count of already passed messages with severity severity to count |
| get_severity_count | returns the count of already passed messages with severity severity |
| set_id_count | sets the count of already passed messages with id to count |
| get_id_count | returns the count of already passed messages with id |
| get_id_set | returns the set of id’s already used by this uvm_report_server |
| get_severity_set | returns the set of severities already used by this uvm_report_server |
| set_message_database | sets the uvm_tr_database used for recording messages |
| get_message_database | returns the uvm_tr_database used for recording messages |
| do_copy | copies all message statistic severity,id counts to the destination uvm_report_server the copy is cummulative (only items from the source are transferred, already existing entries are not deleted, existing entries/counts are overridden when they exist in the source set) |
| execute_report_message | Processes the provided message per the actions contained within. |
| compose_report_message | Constructs the actual string sent to the file or command line from the severity, component name, report id, and the message itself. |
| report_summarize | Outputs statistical information on the reports issued by this central report server. |
| set_server | Sets the global report server to use for reporting. |
| get_server | Gets the global report server used for reporting. |
pure virtual function void set_max_quit_count( int count, bit overridable = 1 )
count is the maximum number of UVM_QUIT actions the uvm_report_server will tolerate before invoking client.die(). when overridable = 0 is passed, the set quit count cannot be changed again
pure virtual function int get_max_quit_count()
returns the currently configured max quit count
pure virtual function void set_quit_count( int quit_count )
sets the current number of UVM_QUIT actions already passed through this uvm_report_server
pure virtual function int get_quit_count()
returns the current number of UVM_QUIT actions already passed through this server
pure virtual function void set_severity_count( uvm_severity severity, int count )
sets the count of already passed messages with severity severity to count
pure virtual function int get_severity_count( uvm_severity severity )
returns the count of already passed messages with severity severity
pure virtual function void set_id_count( string id, int count )
sets the count of already passed messages with id to count
pure virtual function int get_id_count( string id )
returns the count of already passed messages with id
pure virtual function void get_id_set( output string q[$] )
returns the set of id’s already used by this uvm_report_server
pure virtual function void get_severity_set( output uvm_severity q[$] )
returns the set of severities already used by this uvm_report_server
pure virtual function void set_message_database( uvm_tr_database database )
sets the uvm_tr_database used for recording messages
pure virtual function uvm_tr_database get_message_database()
returns the uvm_tr_database used for recording messages
function void do_copy ( uvm_object rhs )
copies all message statistic severity,id counts to the destination uvm_report_server the copy is cummulative (only items from the source are transferred, already existing entries are not deleted, existing entries/counts are overridden when they exist in the source set)
pure virtual function void execute_report_message( uvm_report_message report_message, string composed_message )
Processes the provided message per the actions contained within.
Expert users can overload this method to customize action processing.
pure virtual function string compose_report_message( uvm_report_message report_message, string report_object_name = "" )
Constructs the actual string sent to the file or command line from the severity, component name, report id, and the message itself.
Expert users can overload this method to customize report formatting.
pure virtual function void report_summarize( UVM_FILE file = 0 )
Outputs statistical information on the reports issued by this central report server. This information will be sent to the command line if file is 0, or to the file descriptor file if it is not 0.
The run_test method in uvm_top calls this method.
static function void set_server( uvm_report_server server )
Sets the global report server to use for reporting.
This method is provided as a convenience wrapper around setting the report server via the uvm_coreservice_t::set_report_server method.
In addition to setting the server this also copies the severity/id counts from the current report_server to the new one
// Using the uvm_coreservice_t: uvm_coreservice_t cs; cs = uvm_coreservice_t::get(); your_server.copy(cs.get_report_server()); cs.set_report_server(your_server); // Not using the uvm_coreservice_t: uvm_report_server::set_server(your_server);
static function uvm_report_server get_server()
Gets the global report server used for reporting.
This method is provided as a convenience wrapper around retrieving the report server via the uvm_coreservice_t::get_report_server method.
// Using the uvm_coreservice_t: uvm_coreservice_t cs; uvm_report_server rs; cs = uvm_coreservice_t::get(); rs = cs.get_report_server(); // Not using the uvm_coreservice_t: uvm_report_server rs; rs = uvm_report_server::get_server();
Default implementation of the UVM report server.
| uvm_default_report_server | |||
| Default implementation of the UVM report server. | |||
| Class Hierarchy | |||
| |||
| Class Declaration | |||
| |||
| enable_report_id_count_summary | A flag to enable report count summary for each ID | ||
| record_all_messages | A flag to force recording of all messages (add UVM_RM_RECORD action) | ||
| show_verbosity | A flag to include verbosity in the messages, e.g. | ||
| show_terminator | A flag to add a terminator in the messages, e.g. | ||
| new | Creates an instance of the class. | ||
| The uvm_report_server implements the uvm_object::do_print() such that print method provides UVM printer formatted output of the current configuration. | |||
| Quit Count | |||
| get_max_quit_count | |||
| set_max_quit_count | Get or set the maximum number of COUNT actions that can be tolerated before a UVM_EXIT action is taken. | ||
| get_quit_count | |||
| set_quit_count | |||
| incr_quit_count | |||
| reset_quit_count | Set, get, increment, or reset to 0 the quit count, i.e., the number of COUNT actions issued. | ||
| is_quit_count_reached | If is_quit_count_reached returns 1, then the quit counter has reached the maximum. | ||
| Severity Count | |||
| get_severity_count | |||
| set_severity_count | |||
| incr_severity_count | |||
| reset_severity_counts | Set, get, or increment the counter for the given severity, or reset all severity counters to 0. | ||
| id Count | |||
| get_id_count | |||
| set_id_count | |||
| incr_id_count | Set, get, or increment the counter for reports with the given id. | ||
| message recording | The uvm_default_report_server will record messages into the message database, using one transaction per message, and one stream per report object/handler pair. | ||
| set_message_database | sets the uvm_tr_database used for recording messages | ||
| get_message_database | returns the uvm_tr_database used for recording messages | ||
| Message Processing | |||
| execute_report_message | Processes the provided message per the actions contained within. | ||
| compose_report_message | Constructs the actual string sent to the file or command line from the severity, component name, report id, and the message itself. | ||
| report_summarize | Outputs statistical information on the reports issued by this central report server. |
bit enable_report_id_count_summary=1
A flag to enable report count summary for each ID
bit record_all_messages = 0
A flag to force recording of all messages (add UVM_RM_RECORD action)
bit show_verbosity = 0
A flag to include verbosity in the messages, e.g.
”UVM_INFO(UVM_MEDIUM) file.v(3) @ 60: reporter [ID0] Message 0”
bit show_terminator = 0
A flag to add a terminator in the messages, e.g.
”UVM_INFO file.v(3) @ 60: reporter [ID0] Message 0 -UVM_INFO”
The uvm_report_server implements the uvm_object::do_print() such that print method provides UVM printer formatted output of the current configuration. A snippet of example output is shown here:
uvm_report_server uvm_report_server - @13 quit_count int 32 'd0 max_quit_count int 32 'd5 max_quit_overridable bit 1 'b1 severity_count severity counts 4 - [UVM_INFO] integral 32 'd4 [UVM_WARNING] integral 32 'd2 [UVM_ERROR] integral 32 'd50 [UVM_FATAL] integral 32 'd10 id_count id counts 4 - [ID1] integral 32 'd1 [ID2] integral 32 'd2 [RNTST] integral 32 'd1 enable_report_id_count_summary bit 1 'b1 record_all_messages bit 1 `b0 show_verbosity bit 1 `b0 show_terminator bit 1 `b0
function int get_max_quit_count()
function void set_max_quit_count( int count, bit overridable = 1 )
Get or set the maximum number of COUNT actions that can be tolerated before a UVM_EXIT action is taken. The default is 0, which specifies no maximum.
function int get_quit_count()
function void set_quit_count( int quit_count )
function void incr_quit_count()
function void reset_quit_count()
Set, get, increment, or reset to 0 the quit count, i.e., the number of COUNT actions issued.
function bit is_quit_count_reached()
If is_quit_count_reached returns 1, then the quit counter has reached the maximum.
function int get_severity_count( uvm_severity severity )
function void set_severity_count( uvm_severity severity, int count )
function void incr_severity_count( uvm_severity severity )
function void reset_severity_counts()
Set, get, or increment the counter for the given severity, or reset all severity counters to 0.
function int get_id_count( string id )
function void set_id_count( string id, int count )
function void incr_id_count( string id )
Set, get, or increment the counter for reports with the given id.
The uvm_default_report_server will record messages into the message database, using one transaction per message, and one stream per report object/handler pair.
virtual function void set_message_database( uvm_tr_database database )
sets the uvm_tr_database used for recording messages
virtual function uvm_tr_database get_message_database()
returns the uvm_tr_database used for recording messages
virtual function void execute_report_message( uvm_report_message report_message, string composed_message )
Processes the provided message per the actions contained within.
Expert users can overload this method to customize action processing.
virtual function string compose_report_message( uvm_report_message report_message, string report_object_name = "" )
Constructs the actual string sent to the file or command line from the severity, component name, report id, and the message itself.
Expert users can overload this method to customize report formatting.
virtual function void report_summarize( UVM_FILE file = 0 )
Outputs statistical information on the reports issued by this central report server. This information will be sent to the command line if file is 0, or to the file descriptor file if it is not 0.
The run_test method in uvm_top calls this method.
Default implementation of the UVM report server.
class uvm_default_report_server extends uvm_report_server
count is the maximum number of UVM_QUIT actions the uvm_report_server will tolerate before invoking client.die().
pure virtual function void set_max_quit_count( int count, bit overridable = 1 )
returns the currently configured max quit count
pure virtual function int get_max_quit_count()
sets the current number of UVM_QUIT actions already passed through this uvm_report_server
pure virtual function void set_quit_count( int quit_count )
returns the current number of UVM_QUIT actions already passed through this server
pure virtual function int get_quit_count()
sets the count of already passed messages with severity severity to count
pure virtual function void set_severity_count( uvm_severity severity, int count )
returns the count of already passed messages with severity severity
pure virtual function int get_severity_count( uvm_severity severity )
sets the count of already passed messages with id to count
pure virtual function void set_id_count( string id, int count )
returns the count of already passed messages with id
pure virtual function int get_id_count( string id )
returns the set of id’s already used by this uvm_report_server
pure virtual function void get_id_set( output string q[$] )
returns the set of severities already used by this uvm_report_server
pure virtual function void get_severity_set( output uvm_severity q[$] )
sets the uvm_tr_database used for recording messages
pure virtual function void set_message_database( uvm_tr_database database )
The uvm_tr_database class is intended to hide the underlying database implementation from the end user, as these details are often vendor or tool-specific.
virtual class uvm_tr_database extends uvm_object
returns the uvm_tr_database used for recording messages
pure virtual function uvm_tr_database get_message_database()
copies all message statistic severity,id counts to the destination uvm_report_server the copy is cummulative (only items from the source are transferred, already existing entries are not deleted, existing entries/counts are overridden when they exist in the source set)
function void do_copy ( uvm_object rhs )
Processes the provided message per the actions contained within.
pure virtual function void execute_report_message( uvm_report_message report_message, string composed_message )
Constructs the actual string sent to the file or command line from the severity, component name, report id, and the message itself.
pure virtual function string compose_report_message( uvm_report_message report_message, string report_object_name = "" )
Outputs statistical information on the reports issued by this central report server.
pure virtual function void report_summarize( UVM_FILE file = 0 )
Sets the global report server to use for reporting.
static function void set_server( uvm_report_server server )
Gets the global report server used for reporting.
static function uvm_report_server get_server()
Convenience function for uvm_top.run_test().
task run_test ( string test_name = "" )
intended to set the central report server to server
pure virtual function void set_report_server( uvm_report_server server )
intended to return the current global report_server
pure virtual function uvm_report_server get_report_server()
A flag to enable report count summary for each ID
bit enable_report_id_count_summary=1
A flag to force recording of all messages (add UVM_RM_RECORD action)
bit record_all_messages = 0
A flag to include verbosity in the messages, e.g.
bit show_verbosity = 0
A flag to add a terminator in the messages, e.g.
bit show_terminator = 0
Creates an instance of the class.
function new( string name = "uvm_report_server" )
The do_print method is the user-definable hook called by print and sprint that allows users to customize what gets printed or sprinted beyond the field information provided by the `uvm_field_* macros, Utility and Field Macros for Components and Objects.
virtual function void do_print ( uvm_printer printer )
function int get_max_quit_count()
Get or set the maximum number of COUNT actions that can be tolerated before a UVM_EXIT action is taken.
function void set_max_quit_count( int count, bit overridable = 1 )
function int get_quit_count()
function void set_quit_count( int quit_count )
function void incr_quit_count()
Set, get, increment, or reset to 0 the quit count, i.e., the number of COUNT actions issued.
function void reset_quit_count()
If is_quit_count_reached returns 1, then the quit counter has reached the maximum.
function bit is_quit_count_reached()
function int get_severity_count( uvm_severity severity )
function void set_severity_count( uvm_severity severity, int count )
function void incr_severity_count( uvm_severity severity )
Set, get, or increment the counter for the given severity, or reset all severity counters to 0.
function void reset_severity_counts()
function int get_id_count( string id )
function void set_id_count( string id, int count )
Set, get, or increment the counter for reports with the given id.
function void incr_id_count( string id )
sets the uvm_tr_database used for recording messages
virtual function void set_message_database( uvm_tr_database database )
returns the uvm_tr_database used for recording messages
virtual function uvm_tr_database get_message_database()
Processes the provided message per the actions contained within.
virtual function void execute_report_message( uvm_report_message report_message, string composed_message )
Constructs the actual string sent to the file or command line from the severity, component name, report id, and the message itself.
virtual function string compose_report_message( uvm_report_message report_message, string report_object_name = "" )
Outputs statistical information on the reports issued by this central report server.
virtual function void report_summarize( UVM_FILE file = 0 )


To use this custom control in a XAML file in another project, complete the following steps:
- Add a reference to this project.
- Add the following line to the root element of the XAML file where you wish to use this control:
xmlns:MyNamespace="clr-namespace:WPF_Library;assembly=WPF_Library"
- Use the control in the XAML file:
<MyNamespace:CustomControl/>


"""This module contains lots of helper functions."""
import asyncio
import csv
import inspect
import json
import os
import pickle
import pwd
import re
import threading
from collections import defaultdict
from contextlib import ContextDecorator, contextmanager
from datetime import datetime
from functools import partial, wraps
from io import BytesIO
from itertools import chain, tee
from timeit import default_timer
from typing import Any, Callable
import toolz
from bs4 import BeautifulSoup
from kivymd.app import MDApp
from kivymd.toast import toast
from kivymd.uix.filemanager import MDFileManager
from PIL import Image
from pony.orm import db_session
[docs]COLOR2MEANING = {
"highlight_yellow": "words",
"highlight_blue": "phrases",
"highlight_pink": "sentences",
"highlight_orange": "",
}
"""
Dictionary relating highlight colors to the things that are highlighted with them.
Currently only ``COLOR2MEANING["highlight_yellow"] = "words"`` is used.
"""
MEANING2COLOR = {val: key for key, val in COLOR2MEANING.items()}
# GENERAL
[docs]class CD:
"""Context manager for changing the current working directory to :attr:`new_path`."""
def __init__(self, new_path):
self.new_path = os.path.expanduser(new_path)
self.saved_path = None
def __enter__(self):
self.saved_path = os.getcwd()
os.chdir(self.new_path)
def __exit__(self, etype, value, traceback):
os.chdir(self.saved_path)
[docs]def save_dict_to_csv(some_dict, out_path):
"""Save dictionary as row to csv."""
is_first_entry = not os.path.exists(out_path)
with open(out_path, "a") as file:
writer = csv.DictWriter(file, fieldnames=some_dict.keys())
if is_first_entry:
writer.writeheader()
writer.writerow(some_dict)
[docs]def load_dicts_from_csv(path):
"""
Load csv. Has to have the keys as first line.
Returns:
: List of dictionaries.
"""
with open(path) as read_obj:
return list(csv.DictReader(read_obj))
[docs]def smart_loader(path):
"""
Use file ending of path to determine which function to use to load file.
Supported file endings:
* .p (pickle)
* .csv
* .json
Args:
path: Path of file to load.
Returns:
: Loaded object.
"""
ext = path.split(".")[-1]
if ext == "p":
with open(path, "rb") as file:
return pickle.load(file)
with open(path) as file:
if ext == "json":
return json.load(file)
if ext == "csv":
return load_dicts_from_csv(path)
raise Exception
[docs]def smart_saver(obj, path):
"""
Use file ending of path to determine which function to use to save file.
Supported file endings:
* .p (pickle)
* .csv
* .json
Args:
obj: Object to save.
path: Path where object should be stored.
"""
ext = path.split(".")[-1]
if ext == "p":
with open(path, "wb") as file:
pickle.dump(obj, file)
if ext == "json":
with open(path, "w") as file:
json.dump(obj, file, indent=4, sort_keys=True)
if ext == "csv":
save_dict_to_csv(obj, path)
[docs]def merge_or_last(args):
"""If all args are list, returns merged list. Else returns last arg."""
if all(isinstance(a, list) for a in args) and len(args) > 1:
return list(chain(*args))
return args[-1]
[docs]def smart_dict_merge(*args):
"""If values are lists they are merged, else the last element is chosen as new value."""
return toolz.merge_with(merge_or_last, *args)
[docs]def now_string():
"""Return current time in the format ``YYYY-MM-DD_HH:MM:SS``."""
return str(datetime.now()).split(".")[0].replace(" ", "_")
# KIVY
[docs]def set_screen(screen_name):
"""Set current screen to the one with name ``screen_name``."""
MDApp.get_running_app().root.set_screen(None, screen_name)
# KINDLE EXPORT PARSING
[docs]def dict_from_kindle_export(file_path):
"""
Extract highlighted parts and sorts them by color in a dictionary.
Args:
file_path: Path to an html-file exported from kindle.
Returns:
:Dictionary `{"highlight_color_1" : ["list", "of" , "highlighted parts", ...],...}`
"""
with open(file_path) as file:
soup = BeautifulSoup(file, "lxml")
heading_tags = soup.select("div.noteHeading span")
highlight_dict = defaultdict(list)
for tag in heading_tags:
highlight_dict[tag["class"][0]].append(tag.find_next().text.strip())
return highlight_dict
[docs]def split_on_condition(seq, condition):
"""Return two lazy generators for ``True`` and ``False`` respectively."""
condition_true, condition_false = tee((condition(item), item) for item in seq)
return (i for p, i in condition_true if p), (i for p, i in condition_false if not p)
[docs]def pop_unchanged(dictionary):
"""Pop all values from dict where key=val."""
return [dictionary.pop(key) for key in list(dictionary) if dictionary[key] == key]
[docs]def word_list_from_kindle(path):
"""
Use :const:`MEANING2COLOR` `["words"]` to extract the list of words highlighted in this specific color.
Args:
path: Path to html-file exported by kindle.
Returns:
: List of highlighted words.
"""
color = MEANING2COLOR["words"]
return dict_from_kindle_export(path)[color]
[docs]def word_list_from_txt(path):
"""
Return list of words read as lines from txt-file.
Args:
path: Path to txt-file. Each line should correspond to a word (or phrase).
"""
with open(path) as file:
words = file.read().splitlines()
return words
[docs]def word_list_from_kobo(path):
"""Parse kobos .annot-file and return list of notations."""
with open(path) as file:
soup = BeautifulSoup(file, "lxml")
words = [tag.text for tag in soup.select("annotation text")]
return words
# Image resizing
[docs]def compress_img_bytes(bytes_image, width=512):
"""Compress image given as bytes (e.g. as content of :class:`requests.Response`)."""
img = Image.open(BytesIO(bytes_image))
if img.size[0] > width:
resize = (width, width * img.size[1] // img.size[0])
img = img.resize(resize, Image.ANTIALIAS)
output = BytesIO()
img.save(
output,
format="JPEG",
optimize=True,
)
return output.getvalue()
[docs]def compress_img(path, width=512):
"""
Use the :class:`~PIL.Image` class to reduce the resolution of an image at ``path`` and overwrites it.
If the image already has smaller width, nothing is done.
Args:
path: Path to image-file.
width: New width of image (Default value = 512)
"""
img = Image.open(path)
if img.size[0] > width:
resize = (width, width * img.size[1] // img.size[0])
img = img.resize(resize, Image.ANTIALIAS)
img.save(path, optimize=True)
[docs]def pick_val(whitelist, dictionary):
"""Return filtered dictionary, whose values are in ``whitelist``."""
return toolz.valfilter(lambda k: k in whitelist, dictionary)
# Threading
[docs]def start_workers(worker_fn, num):
"""Start a number of ``num`` workers in separate threads.
Args:
worker_fn: Function to be started
num: Number of threads/workers
"""
workers = [threading.Thread(target=worker_fn, name="worker") for _ in range(num)]
for worker in workers:
worker.start()
@toolz.curry
[docs]def start_thread(func, fn_arg, **kwargs):
"""
Wrapper-function to call ``func`` in new thread.
Every kwarg that fits the signature of ``func`` is plugged into ``func``, the others are used in the constructor of
:class:`threading.Thread`.
Note:
The :meth:`toolz.curry` decorator enables partial evaluation without extra use of partial.
Examples:
>>> def f(x,y="y",z="z"):
... print("Hello from",threading.current_thread().name)
... print(x,y,z)
>>> callback = start_thread(f,z="non_default_z",name="print_thread")
>>> callback(2)
Hello from print_thread
2 y non_default_z
"""
sig = inspect.signature(func)
fn_parameters = sig.parameters
fn_kwargs = toolz.keyfilter(lambda k: k in fn_parameters, kwargs)
thread_kwargs = toolz.keyfilter(lambda k: k not in fn_parameters, kwargs)
thread = threading.Thread(
target=partial(func, fn_arg, **fn_kwargs), **thread_kwargs
)
thread.start()
[docs]def run_in_thread(func):
"""Call ``func`` in new thread."""
@wraps(func)
def run(*k, **kw):
new_thread = threading.Thread(target=func, args=k, kwargs=kw)
new_thread.start()
return new_thread
return run
[docs]class AppBusyContext(ContextDecorator):
"""Set app.busy to ``True`` and back to its previous value."""
previous_state = None
def __enter__(self):
self.previous_state = MDApp.get_running_app().busy
MDApp.get_running_app().busy = True
return self
def __exit__(self, *exc):
MDApp.get_running_app().busy = self.previous_state
return False
[docs]def app_busy(func):
"""Call function in new thread and set app.busy = ``True`` in the meantime."""
@wraps(func)
def wrapper(*args, **kwargs):
return run_in_thread(AppBusyContext()(func))(*args, **kwargs)
return wrapper
[docs]def update_word_state_dict(word, state):
"""Set state in app.word_state_dict."""
MDApp.get_running_app().word_state_dict[word] = state
@db_session
[docs]def set_word_state(word, state):
"""Set state in the data-base entry of the card of the current template."""
MDApp.get_running_app().get_current_template_db().get_card(word).state = state
[docs]def not_implemented_toast(*_):
"""Display toast notifying user that the function is not implemented."""
toast("Not implemented yet.")
[docs]def get_username():
"""Return name of currently active user."""
return pwd.getpwuid(os.getuid())[0]
[docs]def is_duplicate(word):
"""Check if word is already present in the app.word_state_dict."""
return word in MDApp.get_running_app().word_state_dict
@contextmanager
[docs]def get_file_manager(ext=None, callback=None):
"""Get file manager.
Context manager to temporarily set `ext` and `callback` of file_manager.
"""
app = MDApp.get_running_app()
if getattr(app, "file_manager") is None:
app.file_manager = MDFileManager()
file_manager = app.file_manager
try:
file_manager.close()
except AttributeError:
pass
file_manager.ext, ext = ext, app.file_manager.ext
file_manager.select_path = partial(
close_and_callback,
file_manager=file_manager,
callback=callback,
old_callback=file_manager.select_path,
)
try:
yield file_manager
finally:
file_manager.ext, ext = ext, app.file_manager.ext
[docs]def close_and_callback(file_path, file_manager=None, callback=None, old_callback=None):
"""Helper-function for :func:`get_file_manager`."""
file_manager.close()
callback(file_path)
if old_callback:
file_manager.select_path = old_callback
[docs]def contains_newline(match):
r"""Return '\n' or " "."""
return "\n" if "\n" in match[0] else " "
[docs]def remove_whitespace(some_string):
"""Replace each group of whitespaces by a simple space (or by a newline if at least one is in the match)."""
return re.sub(r"\s+", contains_newline, some_string).strip()
@contextmanager
[docs]def timer():
"""Print execution time."""
start = default_timer()
yield lambda: print(default_timer() - start)
print(default_timer() - start)
[docs]async def async_wrapper(functions, *args):
"""Gather async functions."""
return await asyncio.gather(*[a(*args) for a in functions])
[docs]def async_get_results(functions: Callable[[Any], dict], *args):
"""Get merged dict from gathered async-run."""
return smart_dict_merge(asyncio.run(async_wrapper(functions, *args)))


--- page: 'reference-detail' title: 'ons-splitter' name: 'ons-splitter' collection: 'components' reference: true docCategory: 'js' componentCategory: control ---
A component that enables responsive layout by implementing both a two-column layout and a sliding menu layout.
<ons-splitter>
<ons-splitter-content>
...
</ons-splitter-content>
<ons-splitter-side side="left" width="80%" collapse>
...
</ons-splitter-side>
</ons-splitter>
| Name | Type Default Value |
Description |
|---|---|---|
| var | String | Variable name to refer this split view. Optional Works only during initialization |
| ons-destroy | Expression | Allows you to specify custom behavior when the "destroy" event is fired. Optional Works only during initialization |
| Signature | Description |
|---|---|
| openRight([options]) | Open right ons-splitter-side menu on collapse mode. |
| openLeft([options]) | Open left ons-splitter-side menu on collapse mode. |
| closeRight([options]) | Close right ons-splitter-side menu on collapse mode. |
| closeLeft([options]) | Close left ons-splitter-side menu on collapse mode. |
| loadContentPage(pageUrl) | Show the page specified in pageUrl in the ons-splitter-content pane. |
| loadContentPage(pageUrl) | Show the page specified in pageUrl in the ons-splitter-content pane. |
| leftIsOpened() | Determines whether the left ons-splitter-side on collapse mode is opened. |
| rightIsOpened() | Determines whether the right ons-splitter-side on collapse mode is opened. |
| getDeviceBackButtonHandler() | Retrieve the back-button handler. |
| on(eventName, listener) | Add an event listener. |
| once(eventName, listener) | Add an event listener that's only triggered once. |
| off(eventName, [listener]) | Remove an event listener. If the listener is not specified all listeners for the event type will be removed. |
Open right ons-splitter-side menu on collapse mode.
| Name | Type | Description |
|---|---|---|
| options | Object | Parameter object. |
| options.callback | Function | This function will be called after the menu has been opened. |
Open left ons-splitter-side menu on collapse mode.
| Name | Type | Description |
|---|---|---|
| options | Object | Parameter object. |
| options.callback | Function | This function will be called after the menu has been opened. |
Close right ons-splitter-side menu on collapse mode.
| Name | Type | Description |
|---|---|---|
| options | Object | Parameter object. |
| options.callback | Function | This function will be called after the menu has been closed. |
Close left ons-splitter-side menu on collapse mode.
| Name | Type | Description |
|---|---|---|
| options | Object | Parameter object. |
| options.callback | Function | This function will be called after the menu has been closed. |
Show the page specified in pageUrl in the ons-splitter-content pane.
| Name | Type | Description |
|---|---|---|
| pageUrl | String | Page URL. Can be either an HTML document or an <ons-template> . |
Show the page specified in pageUrl in the ons-splitter-content pane.
| Name | Type | Description |
|---|---|---|
| pageUrl | String | Page URL. Can be either an HTML document or an <ons-template> . |
Determines whether the left ons-splitter-side on collapse mode is opened.
Returns: Whether the left ons-splitter-side on collapse mode is opened.
Determines whether the right ons-splitter-side on collapse mode is opened.
Returns: Whether the right ons-splitter-side on collapse mode is opened.
Retrieve the back-button handler.
Returns: Device back-button handler.
Add an event listener.
| Name | Type | Description |
|---|---|---|
| eventName | String | Name of the event. |
| listener | Function | Function to execute when the event is triggered. |
Add an event listener that's only triggered once.
| Name | Type | Description |
|---|---|---|
| eventName | String | Name of the event. |
| listener | Function | Function to execute when the event is triggered. |
Remove an event listener. If the listener is not specified all listeners for the event type will be removed.
| Name | Type | Description |
|---|---|---|
| eventName | String | Name of the event. |
| listener | Function | Function to execute when the event is triggered. |


Location:
Protocol:
This page is served from a Node.js app that demonstrates how to redirect http
traffic to https
using the Express framework.
If you're seeing this page, the protocol above should be https
even if the original URL used http
.
Git Repository: https://github.com/aerwin/https-redirect-demo


| Name |
Father/Husband Name |
Address |
Phone Number |
Age |
Id Card No |
Coming From |
Going To |
Profession |
|
|
| {{user.name}} |
{{user.relativeName}} |
{{user.address}} |
{{user.phoneNumber}} |
{{user.age}} |
{{user.idCardNumber}} |
{{user.comingFrom}} |
{{user.goingTo}} |
{{user.profession}} |
|
|


0
%
Yes, I got it!
Skip This
Check Total Price
Book Now
50% construction completed as on 25th September 2014
50% construction completed as on 25th September 2014
°C
Swimming Pool
click around to explore


Callsign to transmit as
APRS passcode
Comment text to send with beacon
APRS-IS Server Hostname
Port is fixed to TCP 14580
APRS Symbol
APRS SmartBeacon™
Beacon is sent every Low Rate and is propotional upto High Rate.
Low Speed (km/h)
Low Rate (sec)
High Speed (km/h)
High Rate (sec)
Beacon is also sent if turn angle changes enough.
Turn Minimum Angle (deg)
Turn Slope
Turn Minimum Rate (sec)
cancel


I am experienced in Mobile App and Front End Development, being a programmer whose best results come as a result of working in teams and implementing agile methodologies.
Currently I perform contract programming work according to requests, and advise others in regards to their code.
I used tools to develop mobile apps using the newest technologies.
I was part of the development process for many mobile applications used by financial organizations.
Average Grade: 4.21
GPA: 3.56
Apart from being a web developer, I enjoy most of my time listening to japanese pop music, following many action and comedy movies and anime, and playing platforming video-games.
I am also an aspiring photographer, who enjoys walking around nature and sightseeing when visiting a new city. Also, I like to try new foods whenever I travel, hoping to find new enjoyable experiences.