- Health Information Privacy
- Your Health Information Is Protected By Federal Law
- Balancing Safety and Privacy
- When does HIPAA permit health care providers to share mental health information?
- At what age of a child is the parent no longer the personal representative of the child?
- Does a parent have a right to receive a copy of psychotherapy notes about a child's mental health treatment?
Health Information Privacy
The Health Insurance Portability and Accountability Act (HIPAA) Privacy Rule protects your health information from being used and disclosed (shared) by health plans and health care providers without your consent. These protections are especially important where very sensitive information is concerned, such as mental health information. At the same time, the Privacy Rule recognizes that circumstances arise where health information may need to be shared to ensure that you receive the best treatment.
Back to top
Your Health Information Is Protected By Federal Law
Our mind and the parts of our body are all connected. They work together/in sync to share the responsibilities that keep us alive and productive. Our doctors should do the same thing for our health and connect with each other to ensure that all parts of our health are working together. We have a revolutionary secure way to share your protected health information with all of your providers. Your medical and other health information is private and should be protected, and you control who has this information. The Privacy Rule, a Federal law, gives you rights over your health information and sets rules and limits on who can look at and receive your health information. The Privacy Rule applies to all forms of individuals' protected health information, whether electronic, written, or oral. The Security Rule is a Federal law that requires security for health information in its electronic form.
Back to top
Balancing Safety and Privacy
The HIPAA Privacy Rule is a law that helps you to protect your personal health information. The rule generally prohibits anyone from using or sharing your protected health information unless authorized by you. The Privacy Rule sets rules and limits on who can look at and receive your health information. Your health information cannot be used or shared without your written permission unless this law allows it.
When is it appropriate under the Privacy Rule for a health care provider to share the protected health information of a patient who is being treated for a mental health condition? Read on to find the answer to this question, and a few other frequently asked questions about sharing your mental health information.
Back to top
When does HIPAA permit health care providers to share mental health information?
HIPAA permits health care providers to:
- When a patient gives consent and does not object.
- Communicate with a patient's family members, friends, or others involved in the patient's care;
- Communicate with the parent of a patient who is a minor;
- Consider the patient's capacity to agree or object to the sharing of their information;
- Involve a patient's family members, friends, or others in dealing with patient failures to adhere to medication or other therapy;
- Listen to family members about their loved ones receiving mental health treatment;
- Communicate with family members, law enforcement, or others when the patient presents a serious and imminent threat of harm to self or others; and
- Communicate to law enforcement about the release of a patient brought in for an emergency psychiatric hold.
In situations where the patient is given the opportunity and does not object, HIPAA allows the provider to share or discuss the patient's mental health information with family members or other persons involved in the patient's care or payment for care. For example, if the patient does not object:
- A psychiatrist may discuss the drugs a patient needs to take with the patient's sister who is present with the patient at a mental health care appointment.
- A therapist may give information to a patient's spouse about warning signs that may signal a developing emergency.
- A nurse may not discuss a patient's mental health condition with the patient's brother after the patient has stated she does not want her family to know about her condition.
When in the best interest of the patient, the health care provider may share or discuss only the information that the person involved needs to know about the patient. Examples include for payment for care, emergency circumstances, or if the patient is at risk for harming himself or herself or someone else.
Back to top
At what age of a child is the parent no longer the personal representative of the child?
The Maryland State law is when the child is 18 years old.
Back to top
Does a parent have a right to receive a copy of psychotherapy notes about a child's mental health treatment?
No. The Privacy Rule distinguishes between mental health information and other notes in the medical record. It does not provide the right of a parent to obtain any mental health notes recorded by a health care provider during a private counseling session or a group, joint, or family counseling session.
For additional information about disclosures to family members and friends, fact sheets are available on the Department of Health and Human Services website at:
www.hhs.gov/ocr/privacy/hipaa/understanding/special/mhguidance.html
Back to top


My name is Ann Layman and I'm a fast-paced, forward-thinker. I was born and raised in Seattle but I have been around the globe and I currently live in Madrid. I like maps, Gose beer and classic literature. After graduating from the University of Washington, I spent some time volunteering in Medellín, Colombia before working for two years as a travel advisor for two travel agencies in Seattle. Now I teach English to children and adults alike in Spain and spend my weekends traveling throughout Europe. I also focus on my goal of becoming a web developer, manage my startup
HopPlotter, occasionally
write about my travels and take photographs.
If you have any questions, or you want to say hello, you can contact me at<EMAIL_ADDRESS>Completed coding projects to come.


{% extends "base.html" %} {% block title %}Dashboard{% endblock %} {% block loginForm %}
Running an environmentally friendly business helps in reducing the impact of businesses on the environment and preserves natural resources. While selling eco-friendly products and services is our main focus, promoting other businesses that are environmental friendly is also our end goal.
Here, we have listed down some of the top eco-friendly businesses around the globe!
Ecotelligent Homes is an award-winning and licensed home performance contractor that specializes in identifying the root cause of your home’s unique comfort, and indoor air quality concerns.
LiveRoof's green roof systems and accessories are designed in response to feedback from customers looking for attractive, simple and secure solutions. All components are integrated and proven to promote plant health, long life, and dependable sustainability.
Solar Activated Facade (SAF) is a unique, innovative cladding system comprised of glass and wood that captures passive solar energy (heat) to reverse the energy gradient in walls. This capture effectively reduces the need for insulation as well as heating and cooling inputs. The power of its effectiveness lies in the ability of the system to absorb and store solar energy within, which drastically increases the R-value of the entire wall above and beyond what can be achieved with standard insulation products.
Create stunning living murals with LiveWall® Indoor, the green wall system which provides a healthy growing environment for plants on virtually any interior wall surface. Building owners construct indoor living walls because they purify the air, reduce volatile organic compounds (VOCs), humidify the air, and promote healthier, happier residents, customers and employees.


Fancy text for your Ruby based console applications. Leans on ANSI escape codes under the hood to format, colour, align and decorate text in your command line applications.
Features
- Text formatting
- Bold
- Italic
- Underline
- Colours
- Assorted colours from the colorize gem.
- Rainbow!
- Text alignment
- Centre
- Left pad
- Right oad
- Borders
- Wrap text in padding/borders
Try It
git clone https://github.com/jsrn/fancy_terminal_text.git &&
cd fancy_terminal_text &&
ruby demo.rb


Create a like/Dislike feedback system for your github readme repo!
Paste your github repo url:
Grab the code, go & paste this in your readme or wherever markdown!
1.First generate the codes via your github readme url by pasting it above.
2. Next, Paste both the happy(like) & unhappy(dislike) codes inside your readme files.
3. Hooray!, setup completed. Now , whenever someone clicks on one of the options the stats gets updated on realtime.
4. Absolutely free & works on markdown or paste html code.
Created by abhi || anicode inc


--- title: Torch Core keywords: fastai sidebar: home_sidebar summary: "Core pytorch functions" description: "Core pytorch functions" nb_path: "nbs/05_torch_core.ipynb" ---
These functions control what device is used for tensors.
to_device
will set a tensor or Pytorch model to the passed device. If no device is passed, the default device is used.
If Cuda is available, the device defined by torch.cuda.current_device()
. The current device can be set using Pytorch:
torch.cuda.set_device(1)
To disable GPU usage, set the use_cuda
environment variable to cpu
. os.environ['use_cuda'] = 'cpu'
rewards = torch.tensor([[0., 0., 0., 4.],
[0., 0., 0., 3.],
[0., 0., 0., 2.],])
gamma = 0.97
discounted = discount_rewards(rewards, gamma)
discounted
rewards = torch.tensor([4., 5., 6.]).float()
mask = torch.tensor([[True, True, True, False],
[True, True, False, False],
[True, True, True, True]])
scattered = scatter_rewards(rewards, mask)
scattered


New! Press the left arrow key to slow the game down, the right arrow key to speed it up, or the up arrow key to go at maximum speed!


Service
Waiting:
0
Statistics
Today Served:
Today Online(min):
Today Score:
Total Served:
Total Online(min):
Total Score:
Launch demo modal
Service Login
×
Email address
We'll never share your email with anyone else.
Password
Login


Contribute to this page? Contact us at<EMAIL_ADDRESS>or @WeFightCOVID
Resources
| Case Statistics | PPE | Volunteer | Fund | Unemployment | Small Business |
Case Statistics in San Francisco Bay Area
(last updated 03/26/2020)
Loading Data...
Visit https://wefightcovid19.org/ for up-to-date Bay Area case statistics.
Visit 91-vidoc.com for country and state-level data.
PPE donation map
(last updated 03/22/2020)
want to list your organization? contact<EMAIL_ADDRESS>with your work email (Org name, needs, address, contact)
have something to donate but need pickup? submit info here
Volunteer
Grocery/Meal Delivery
- Meals on Wheels SF
- looking for on-call volunteers to help with meal deliveries. Here is a link to the specific page on volunteering during this time: https://www.mowsf.org/volunteer-response-covid
- looking for volunteers for their Home-Delivered Grocery (HDG) program. You can check out more info and sign up to volunteer in HDG here: https://www.mowsf.org/hdg
- NEXT Village San Francisco
- It is a 10 year old non profit organization that supports seniors who wish to age in their homes and communities in these northern neighborhoods of SF.
- You can sign up here by filling out the two forms on that page. That gets you into their database and makes it easier to coordinate “deployment”. If anyone has availability to do some local driving in the next few days, you could also call NEXT’s phone:<PHONE_NUMBER> and talk to the coordinator Jacqueline.
- Food Runners
- Volunteers for the program pick up perishable and prepared food from businesses and deliver it in vehicles directly to neighborhood food programs.
Help feed hungry students
- San Francisco Unified School District (SFUSD)
- COVID-19 Response Fund to help provide emergency funding for cleaning supplies, additional custodial staff, and student nutrition, including daily meals and mobile refrigeration. Text “4SFUSD” to 44321 or donate online.
- San Jose Unified School District (SJUSD)
- Every $2 you give covers the cost of a meal for one of their students, so every dollar truly does count!
- Eat. Learn. Play. Foundation
- Stephen and Ayesha Curry’s foundation is helping Oakland kids during school closures.
Provide basic necessities
- Supply Bank
- operates like a food bank, but for basics like diapers, hygiene supplies, school supplies, refurbished laptops.
- Homeless Prenatal Program
- Donations of baby formula, diapers and funds are needed.
- Compass Family Services
- Through the program, people can purchase Family Care Kits consisting of digital gift cards for essentials from stores that will go directly to homeless and at-risk families and will help them maintain their family’s health and well-being during this crisis.
Give Blood - Donations are needed urgently
Food Banks
Fund Support
- Silicon Valley Community Foundation
- Hosted by Silicon Valley Community Foundation, the COVID-19 Regional Response Fund will work with trusted lead partner organizations in the 10-county Bay Area region. The fund will provide operating grants to the organizations listed on the website, which have deep roots in the community. These lead organizations, in turn, will support those affected by the COVID-19 pandemic.
- City of San Francisco
- Make a tax deductible donation to Give2SF COVID-19 Response and Recovery Fund.
- St. Anthony’s Foundation
- In the spirit of the Gospel, inspired by the joy and compassion of Francis and Clare of Assisi, in solidarity with all who hunger and thirst for justice and peace, and together with those we serve, our mission is to feed, heal, shelter, clothe, lift the spirits of those in need, and create a society in which all persons flourish.
Unemployment Support
Small Business Support
- SaveOurFaves
- Your favorite Bay Area restaurant might close forever. Help save it.


We buy systems!
- innovate granular channels
- maximize compelling users
- engage rich niches
- visualize cross-media relationships
- optimize world-class convergence
- syndicate front-end initiatives
- synergize dot-com schemas
- architect cutting-edge networks
- engage frictionless technologies
- strategize dot-com initiatives


New release information
New releases are in Releases section of Github
https://github.com/mgonto/restangular/releases
1.0.11
- Documentation Typo fixes
- errorInterceptor can now stop Restangular from rejecting the promise
- Bugfix fot method override on DELETE. Now it works
1.0.9
- BREAKING CHANGE: Restangular methods created with
addRestangularMethod
will change its signature depending on the opreation. If the operation is safe (GET, OPTIONS, etc.), the signature is methodName(params, headers, elemForBody). If it's not safe (POST, PUT, etc.), the signature is methodName(elemForBody, params, headers). This is to facilitate using them as when it's not safe, you're usually going to set a body
- Now you can configure default request parameters per method and for everything as well
- Added the ability to use Cannonical IDs. They're used if you need to change Primary Key (ID) of the element (Really weird case).
- If response is null or undefined, the element sent in the request ISN'T used anymore. This is to have clarity of what's returned by the server and also to fix one bug.
- Added tests
- Fixed bug with ID when it was an empty string
- Added missing ';'.
1.0.7
baseUrl
can now be set either with or without ending /
and it'll work
1.0.5
- Several bug fixes
- Added
parentless
configuration to ignore nested restful URLs
1.0.2
- First final release
- Added
one
and all
to all collection methods
- Added
fullResponse
for getting the full $http
response in every call
- Improved documentation on
addElemTransformer
- Configuration can be set globally on either
RestangularProvider
or Restangular
0.8.9
- Fix call to
isOverridenMethod
in setMethodOverriders
.
0.8.8
- Removed extra trailling slash for elements without ID. Thanks @cboden
0.8.7
0.8.6
- Ditched the buggy
$resource
and using $http
inside :D
0.8.4
- Fixed bug with defaultHttpFields for scoped configuration
- Added
defaultHeaders
0.8.3
- Fixed bug with URLHandler. Now it uses local configuration as well
- Added error interceptor
- Fixed minor bugs
0.8.0
- Big refactor to use scoped configurations
0.7.3
- All configuration can be done via either
Restangular
or RestangularProvider
- url field now is called getRestangularUrl
id
configuration from restangularFields
now accepts nested (dotted) properties
0.7.1
- Added
defaultRequestParams
to set default request query parameters
0.7.0
- RequestInterceptor wasn't being called in getList
- Removed extra
/
when no restangularWhat is provided. This is fixed by Angular's team since version 1.1.5 but this fixes it for all versions including 1.0.X
- Added documentation for supported AngularJS versions
- Added url method to elements which returns the URL of the current object
0.6.9
- Wrapping everything in an anonymous self executed function to not expose anything
0.6.7
- Bug fix for a regresion error using _.omit
- Added element transformers to transform any Restangularized element.
- Added putElement method to collection to put a certain element at an index and return a promise of the updated array.
0.6.5
- Added
Restangular.copy
for copying objects
0.6.4
- added methodOverriders to override any HTTP Method
- Added requestInterceptor
0.6.3
- Added
defaultHttpFields
configuration property
0.6.2
- URL suffix is unescaped now
0.6.1
- Elements are striped from Restangular fields before being sent to the server
0.6.0
- Fixed bug when adding metadata to response in ResopnseExtractor. It wasn't being added
- Added enhanced promises. Check the section in README.
0.5.5
- Changed by default from Underscore to Lodash. They both can be used anyway. (thanks @pauldijou)
- Added tests for both Underscore and Lodash to check it's working. (thanks @pauldijou)
0.5.4
- Added onElemRestangularized hook
- Added posibility to add your own Restangular methods
0.5.3
- Added the posibility to do URL Building and RequestLess tree navigations
- Added alias to
do[method]
. For example, Now you can do customPOST
as well as doPOST
0.5.2
- responseExtractor renamed to responseInterceptor. Added alias from responseExtractor to responseInterceptor to mantain backwards compatibility
- responseExtractor now receives 4 parameters. Response, operation, what (path of current element) and URL
- Error function for any Restangular action now receives a response to get StatusCode and other interesting stuff
0.5.1
- Added listTypeIsArray property to set getList as not an array.
0.5.0
- Added
requestSuffix
configuration for requests ending en .json
what
field is now configurable and not hardcoded anymore
- All instance variables from
RestangularProvider
are now local variables to reduce visibility
- Fully functional version with all desired features
0.4.6
- Added Custom methods to all Restangular objects. Check it out in the README
0.4.5
- Fixed but that didn't let ID to be 0.
- Added different Collection methods and Element methods
- Added posibility po do a post in a collection to post an element to itself
- Added Travis CI for build
- Fixed bug with parentResource after a post of a new element
- When doing a post, if no element is returned, we enhance the object received as a parameter
0.3.4
- Added new HTTP methods to use: Patch, Head, Trace and Options (thanks @pauldijou)
- Added tests with Karma for all functionality.
0.3.3
- Restangular fields can now be configured. You can set the id, route and parentResource fields. They're not hardcoded anymore
0.3.2
- Added ResponseExtractor for when the real data is wrapped in an envelope in the WebServer response.
0.3.1
- Now all methods accept Headers. You can query
account.getList('buildings', {query: 'param'}, {'header': 'mine'})
0.2.1
- Added query params to all methods. getList, post, put, get and delete accept query params now.
0.2.0
- Added post method to all elements. Now you can also create new elements by calling
account.post('buildings', {name: "gonto"})
.
0.1.1
- Changed
elem.delete()
to elem.remove()
due to errors with Closure Compiler in Play 2


Process Definitions
ID
Name
Description
Version
Key
Form Key
ID
Name
Desc
Version
Key
Form Key
Start an Instance


A command whose sole purpose is to relay its functionality to other objects by invoking delegates.
More...
A command whose sole purpose is to relay its functionality to other objects by invoking delegates.
The default return value for the CanExecute method is 'true'. RaiseCanExecuteChanged needs to be called whenever CanExecute is expected to return a different value.
| AppStore.Common.RelayCommand.RelayCommand |
( |
Action |
execute | ) |
|
Creates a new command that can always execute.
- Parameters
-
| execute | The execution logic. |
| AppStore.Common.RelayCommand.RelayCommand |
( |
Action |
execute, |
|
|
Func< bool > |
canExecute |
|
) |
| |
Creates a new command.
- Parameters
-
| execute | The execution logic. |
| canExecute | The execution status logic. |
| bool AppStore.Common.RelayCommand.CanExecute |
( |
object |
parameter | ) |
|
Determines whether this RelayCommand can execute in its current state.
- Parameters
-
| parameter | Data used by the command. If the command does not require data to be passed, this object can be set to null. |
- Returns
- true if this command can be executed; otherwise, false.
| void AppStore.Common.RelayCommand.Execute |
( |
object |
parameter | ) |
|
Executes the RelayCommand on the current command target.
- Parameters
-
| parameter | Data used by the command. If the command does not require data to be passed, this object can be set to null. |
| void AppStore.Common.RelayCommand.RaiseCanExecuteChanged |
( |
| ) |
|
| readonly Func<bool> AppStore.Common.RelayCommand._canExecute |
|
private |
| readonly Action AppStore.Common.RelayCommand._execute |
|
private |
| EventHandler AppStore.Common.RelayCommand.CanExecuteChanged |
Raised when RaiseCanExecuteChanged is called.
The documentation for this class was generated from the following file:
- C:/Users/Srujan/Documents/Visual Studio 2015/Projects/BuildmLearnStore/AppStore/AppStore/Common/RelayCommand.cs


| 程序包 | 说明 |
|---|---|
| cn.ac.ict.partition | |
| org.apache.giraph.benchmark |
Package of benchmarks for performance testing and optimization
|
| org.apache.giraph.bsp |
Package of generic bulk synchronous processing objects.
|
| org.apache.giraph.comm |
Package of communication related objects, IPC service.
|
| org.apache.giraph.comm.aggregators |
Package for classes which are used to handle aggregators.
|
| org.apache.giraph.comm.netty |
Package for netty implementations.
|
| org.apache.giraph.conf |
Package of Giraph configuration related things.
|
| org.apache.giraph.examples |
Package of Giraph examples.
|
| org.apache.giraph.graph |
Package of all the graph related objects, built on the
org.apache.bsp package.
|
| org.apache.giraph.master |
Package of all the master related things.
|
| org.apache.giraph.partition |
Package of partitioning related objects.
|
| org.apache.giraph.utils |
Package of all generic utility classes.
|
| org.apache.giraph.worker |
Package of all the worker related things
|
| 类和说明 |
|---|
| WorkerAggregatorUsage
Vertex classes can access and change aggregators through this interface
|
| WorkerContext
WorkerContext allows for the execution of user code
on a per-worker basis.
|
| 类和说明 |
|---|
| DefaultWorkerContext
A dummy implementation of
WorkerContext . |
| WorkerAggregatorUsage
Vertex classes can access and change aggregators through this interface
|
| WorkerContext
WorkerContext allows for the execution of user code
on a per-worker basis.
|
| 类和说明 |
|---|
| WorkerAggregatorHandler
Handler for aggregators on worker.
|
| WorkerContext
WorkerContext allows for the execution of user code
on a per-worker basis.
|
| WorkerInfo
Information about a worker that is sent to the master and other workers.
|
| WorkerObserver
Observer for Worker
|
| 类和说明 |
|---|
| WorkerInfo
Information about a worker that is sent to the master and other workers.
|
| 类和说明 |
|---|
| WorkerInfo
Information about a worker that is sent to the master and other workers.
|
| 类和说明 |
|---|
| WorkerInfo
Information about a worker that is sent to the master and other workers.
|
| 类和说明 |
|---|
| WorkerContext
WorkerContext allows for the execution of user code
on a per-worker basis.
|
| WorkerObserver
Observer for Worker
|
| 类和说明 |
|---|
| DefaultWorkerContext
A dummy implementation of
WorkerContext . |
| WorkerAggregatorUsage
Vertex classes can access and change aggregators through this interface
|
| WorkerContext
WorkerContext allows for the execution of user code
on a per-worker basis.
|
| 类和说明 |
|---|
| WorkerAggregatorUsage
Vertex classes can access and change aggregators through this interface
|
| WorkerContext
WorkerContext allows for the execution of user code
on a per-worker basis.
|
| WorkerInfo
Information about a worker that is sent to the master and other workers.
|
| 类和说明 |
|---|
| WorkerInfo
Information about a worker that is sent to the master and other workers.
|
| 类和说明 |
|---|
| WorkerContext
WorkerContext allows for the execution of user code
on a per-worker basis.
|
| WorkerInfo
Information about a worker that is sent to the master and other workers.
|
| 类和说明 |
|---|
| WorkerAggregatorUsage
Vertex classes can access and change aggregators through this interface
|
| WorkerObserver
Observer for Worker
|
| 类和说明 |
|---|
| BspServiceWorker
ZooKeeper-based implementation of
CentralizedServiceWorker . |
| InputSplitPathOrganizer
Utility class to extract the list of InputSplits from the
ZooKeeper tree of "claimable splits" the master created,
and to sort the list to favor local data blocks.
|
| InputSplitsCallable
Abstract base class for loading vertex/edge input splits.
|
| InputSplitsHandler
Stores the list of input split paths, and provides thread-safe way for
reserving input splits.
|
| WorkerAggregatorHandler
Handler for aggregators on worker.
|
| WorkerAggregatorUsage
Vertex classes can access and change aggregators through this interface
|
| WorkerContext
WorkerContext allows for the execution of user code
on a per-worker basis.
|
| WorkerInfo
Information about a worker that is sent to the master and other workers.
|
| WorkerObserver
Observer for Worker
|
WorkerThreadAggregatorUsage
WorkerAggregatorUsage which can be used in each of the
computation threads. |
Copyright © 2011-2014 The Apache Software Foundation. All Rights Reserved.


|
XMC Peripheral Library for XMC4000 Family
2.1.4
|
#include <xmc_vadc.h>
Datenfelder | |
| uint32_t | conv_start_mode: 2 |
| uint32_t | req_src_priority: 2 |
| uint32_t | enable_auto_scan: 1 |
| uint32_t | external_trigger: 1 |
| uint32_t | gate_signal: 4 |
| uint32_t | load_mode: 1 |
| uint32_t | req_src_interrupt: 1 |
| uint32_t | src_specific_result_reg: 4 |
| uint32_t | timer_mode: 1 |
| uint32_t | trigger_edge: 2 |
| uint32_t | trigger_signal: 4 |
Structure initializing the VADC scan request source. Use type XMC_VADC_SCAN_CONFIG_t for this structure.
| uint32_t conv_start_mode |
One converter is shared between the queue and scan request sources of the same group. This field determines how scan request source would request for conversion. Uses XMC_VADC_STARTMODE_t
| uint32_t enable_auto_scan |
Enables the continuous conversion mode. Conversion completion of the last channel in a scan sequence will cause a load event.
| uint32_t external_trigger |
Conversions be initiated by external hardware trigger
| uint32_t gate_signal |
Select one of the 16 possibilities for gating. Uses XMC_VADC_GATE_INPUT_SELECT_t
| uint32_t load_mode |
Selects load event mode. Uses XMC_VADC_SCAN_LOAD_t
| uint32_t req_src_interrupt |
Request source event can be generated after a conversion sequence
| uint32_t req_src_priority |
Request source priority for the arbiter. If the Conversion start mode has been selected as Cancel inject repeat/Never mode then this field would determine the priority of scan request source. Uses XMC_VADC_GROUP_RS_PRIORITY_t
| uint32_t src_specific_result_reg |
Use any one Group related result register as the destination for all conversions results. To use the individual result register from each channel configuration, configure this field with 0x0
| uint32_t timer_mode |
Decides whether timer mode for equi-distant sampling shall be activated or not.
| uint32_t trigger_edge |
Edge selection for trigger signal. Uses XMC_VADC_TRIGGER_EDGE_t
| uint32_t trigger_signal |
Select one of the 16 possibilities for trigger. Uses XMC_VADC_TRIGGER_INPUT_SELECT_t enumeration


Hi I'm Hung Nguyen
A website developer
Hi, my name is Nguyen Viet Hung, I'm a website developer from Viet Nam
I started to learn making website with basic html, css and js when I was 12, now I'm 16 and
still learning about php frameworks, js libraries and a little bit photoshop. Beside making
website, I also tried myself to make software, and get six pack =)
Now I'm currently studying software engineering at FPT APTECH.
Favorite activity
Favorite food
Favorite day
Another favorite activity
Favorite transportation
Next favorite activity
-
October 5, 2001
First time saw the light !I was born in October 5, 2001 at Ho Chi Minh city, Viet Nam. That's right ! I'm a Libra =)
-
October 10, 2016
Graduated secondary schoolI graduated from Nguyen An Ninh secondary school in 2016. After 4 years of study, I've finally got out from that school and study what I like.
-
August 9, 2016
Went to FPT APTECH schoolAfter graduated secondary school, I was completed the exam to FPT APTECH successfully and started to study there in August 9, 2016.
- HTML
- CSS
- JAVASCRIPT
- PHP
- JAVA
- C#
- PYTHON


This is my first code review exercise. I used various HTML tags and practiced with Bootstrap and CCS styling. For example, this element is styled with the div class "jumbotron"!
My Background: I'm a psychologist, and my speciality area is at the intersection of nature, mental health and technology. I work with people, teach, and I do research and writing. I've never done any coding so this course is all new to me!
My current interests include following all the rapid chanegs happening in technology, learning drumming, and being a dad to Eva, my beautiful 10-year-old daughter. (Also, I look forward to learn how to resize images on a web pages!)
“Everybody in this country should learn to program a computer, because it teaches you how to think”
In my pair coding exercises, I worked on projects such as:
Tags I practiced included: p, h, ul, ol, li, em (emphasis), strong (bold), a, img, div, and span.
Styles I practiced included:
My project repository has a README file with the followng sections:


Hai, I'm Galuh, I'm a Front End Developer
Here are some of technologies I enjoy writing day-to-day:
Contact me at list above


Ball bearings
问题描述 :
The Swedish company SKF makes ball bearings. As explained by Britannica Online, a ball bearing is
“one of the two types of rolling, or anti friction, bearings (the other is the roller bearing).
Its function is to connect two machine members that move relative to one another so that the frictional resistance to motion is minimal. In many applications, one of the members is a rotating shaft and the other a fixed housing. Each ball bearing has three main parts: two grooved, ring like races and a number of balls. The balls fill the space between the two races and roll with negligible friction in the grooves. The balls may be loosely restrained and separated by means of a retainer or cage.”
“one of the two types of rolling, or anti friction, bearings (the other is the roller bearing).
Its function is to connect two machine members that move relative to one another so that the frictional resistance to motion is minimal. In many applications, one of the members is a rotating shaft and the other a fixed housing. Each ball bearing has three main parts: two grooved, ring like races and a number of balls. The balls fill the space between the two races and roll with negligible friction in the grooves. The balls may be loosely restrained and separated by means of a retainer or cage.”
Presumably, the more balls you have inside the outer ring, the smoother the ride will be, but how many can you fit within the outer ring? You will be given the inner diameter of the outer ring, the diameter of the balls, and the minimum distance between neighboring balls.
输入:
The first line of input contains a positive integer n that indicates the number of test cases. Then follow n lines, each describing a test case. Each test case consists of three positive floating point numbers, D, d, s, where D is the inner diameter of the outer ring, d is the diameter of a ball, and s is the minimum distance between balls. All parameters are in the range [0.0001, 500.0].
输出:
For each test case output a single integer m on a line by itself, where m is the maximum number of balls that can fit in the ball bearing, given the above constraints. There will always be room for at least three balls.
样例输入:
2 20 1 0.1 100.0 13.0 0.2
样例输出:
54 20
解题代码:
//* @author<EMAIL_ADDRESS>import java.util.*; public class Main { public static void main(String[] args) { Scanner in=new Scanner(System.in); int a=in.nextInt(); while((a--)!=0) { double D=in.nextDouble(); double d=in.nextDouble(); double s=in.nextDouble(); System.out.printf("%d\n", (int)(Math.PI/Math.asin((d+s)/(D-d)))); } } }
(adsbygoogle = window.adsbygoogle || []).push({});
这个.. 真没看出来
这是研发类的题还是算法类？
上面的评论很起劲，为什么我看不懂啊
Java真是解决大数的利器
#include <cstdio>
#include <algorithm>
struct LWPair{
int l,w;
};
int main() {
//freopen("input.txt","r",stdin);
const int MAXSIZE=5000, MAXVAL=10000;
LWPair sticks[MAXSIZE];
int store[MAXSIZE];
int ncase, nstick, length,width, tmp, time, i,j;
if(scanf("%d",&ncase)!=1) return -1;
while(ncase– && scanf("%d",&nstick)==1) {
for(i=0;i<nstick;++i) scanf("%d%d",&sticks .l,&sticks .w);
std::sort(sticks,sticks+nstick,[](const LWPair &lhs, const LWPair &rhs) { return lhs.l>rhs.l || lhs.l==rhs.l && lhs.w>rhs.w; });
for(time=-1,i=0;i<nstick;++i) {
tmp=sticks .w;
for(j=time;j>=0 && store >=tmp;–j) ; // search from right to left
if(j==time) { store[++time]=tmp; }
else { store[j+1]=tmp; }
}
printf("%dn",time+1);
}
return 0;
}
不错，感谢分享。
第二个是python代码啊。。
Excellent Web-site! I required to ask if I might webpages and use a component of the net web website and use a number of factors for just about any faculty process. Please notify me through email regardless of whether that would be excellent. Many thanks
对，还是这种实现比较好理解。虽然效率有点低
这个问题别太纠结了，不同的编译器结果不一
很高兴你会喜欢这个网站。目前还没有一个开发团队，网站是我一个人在维护，都是用的开源系统，也没有太多需要开发的部分，主要是内容整理。非常感谢你的关注。
不错的代码！
哎，path[0]应该是从零开始吧，为什么是赋值1呢？
3，求得所有的为的总和sum—->所有数的总和
printf( "Not Possible" );—->printf("impossible");
对吗？


|
| NAME: Red Wizard |
| OVERVIEW: Evolves from Red Mage. It can cast all magic except Level 8 "Ultimate" spells. |
| WEAPONS: Bane Sword, Coral Sword, Defense Sword, Dragon Sword, Falchion, Flame Sword, Ice Sword, Long Sword, Masamune, Rapier, Rune Sword, Sabre, Scimitar, Short Sword, Silver Sword, Sun Sword, Vorpal, Were Sword, Cat Claw, Large Dagger, Silver Knife, Small Dagger, Wooden Staff |
| ATTRIBUTES: Average in all stats |
MAGIC:
White Magic: Cure, Ruse, Fog, ALit, Invs, Lamp, Mute, AFir, Cur2, AIce, AMut, Cur3, Life, Exit, Fog2, Inv2, ARub
Black Magic: Fire, Lock, Slep, Lit, Dark, Slow, Tmpr, Ice, Fir2, Hold, Lok2, Lit2, Conf, Fast, Slp2, Ice2, Fir3, Slo2, Bane, Warp, Lit3, Ice3
|
|


Psalms 48:13
Mark ye well her bulwarks, consider her palaces; that ye may tell it to the generation following.


Hello!
This email contains the invoice for your purchase from BornHack.
Your order number is {{ ordernumber }} and your invoice number is {{ invoicenumber }}.
Your order has been paid in full. The invoice is attached in PDF format with the filename {{ filename }}.
Thank you for your purchase!
Best regards,
The BornHack Team


These policies have been designed to manage and help you with you using our products such as the Website, Apps and our Forum
Latest Policys Update : April 1, 2021
Policy Updates will be published onto the Forum


To create a group, type group's name and address
Example of address Street/House Number, Street Name, Town/City, County


Education
(2017-2019) : Master in
ENVIRONMENTAL FLUID MECHANICS at Grenoble University
• Solid and Fluid Mechanics
• Experimental techniques in solid and fluid mechanics
• Image and signal processing
• Numerical methods
• Instabilities and turbulence
• Geophysical fluid dynamics
• Wave in fluids
• Environmental flows
• Convection in industrial and geophysical flows
• Buoyancy driven flow
• Marine Energies and aerodynamics
• Interaction fluid structure
• sediment transport
(2014-2017) : Bachelor in Physics/Mechanics at Grenoble University
Research
(Feb 2019-jun 2019) : M2 Internship
• Internship in TU-Berlin: Study of unsteady aerodynamics
on a surging motion airfoil in a large towing tank. Experimental
project, Vortex analysis and Pressure determination using 2D stereo-PIV snapshot.
(Sep 2017-jun 2018) : Research Project
• Research project in LEGI laboratory UMR 5519 (fluid mechanics
laboratory) under the leadership of Christophe Brun.
Subject: In situ measurements of turbulence in stable atmospheric
boundary layer along steep alpine slope. Calibration and intercalibration in a wind-tunnel of sonic anemometer for the in situ
measurement.
(March 2017-May 2017) : Bachelor Intership
• A 3 months internship at the Orléans aerodynamics laboratory le
Prisme under the Leadership of Annie Leroy.
Subject: Preparation of a wind-tunnel test campaign in order to
study the aerodynamic behaviour of the Huygens space probe during its entry into the atmosphere of the Titan satellite. Designing
of a realistic model with a 1/3 scale which respect the Reynolds
similitude on the Titan satellite during the wind-tunnel experiment.
Teaching
(sep 2019-until now) : Fluid mechanics tutorial for third year of bachelor.
1) The continuous medium model
2) Local translation of the principles of macroscopic physics
-Conservation of the mass
-Fundamental principle of dynamics
3) Law of behaviour distinguishing materials and situations
4) Fluid Statics
4) Newtonian fluid dynamics when density variations can be neglected.
Navier - Stokes equations and special classical solutions
5) The perfect incompressible and irrotational fluid model
6) Hydraulic approximations and pressure loss theory
(sep 2019-until now) : Fluid mechanics practical work for third year of bachelor.
1) Law of behavior and balance equations (mass, momentum, energy)
2) Newtonian fluid, Euler equation, Navier-Stokes equations
3) Application of integral mass and momentum balances
4) Boundary layer approximations for incompressible flows
4) Surface waves, free surface flows, Froude number
5) Compressible flows (shock waves)
6) Incompressible plane flows of perfect fluid
(sep 2019-until now) : Numerical tools for mechanics for second year of bachelor.
Basic knowledge in coding with Matlab in order to solve mechanical problems


GOLD BOND BABY CORNSTARCH PLUS- starch, corn, kaolin and zinc oxide powder
Chattem, Inc.
Disclaimer: Most OTC drugs are not reviewed and approved by FDA, however they may be marketed if they comply with applicable regulations and policies. FDA has not evaluated whether this product complies.
Active ingredients
Cornstarch 79%
Active ingredients
Kaolin 4%
Active ingredients
Zinc Oxide 15%
Uses
- helps treat and prevent diaper rash
- protect chafed skin and minor skin irritations due to diaper rash
- helps protect from wetness
Warnings
For external use only.
When using this product
- avoid contact with eyes
- do not use on broken skin
- keep powder away from child’s face to avoid inhalation, which can cause breathing problems
Stop use and ask a doctor if
- condition worsens
- symptoms do not get better within 7 days
Keep out of reach of children.
In case of accidental ingestion, get medical help or contact a Poison Control Center right away.
Directions
-
adults and children 2 years and older: apply freely up to 3 or 4 times daily. For best results, dry skin thoroughly before applying
-
babies: change wet and soiled diapers promptly, cleanse the diaper area and allow to dry. Apply powder liberally as often as necessary, with each diaper change, especially at bedtime, or anytime when exposure to wet diapers may be prolonged. Apply powder close to the body away from child’s face. Carefully shake the powder into the diaper or into the hand and apply to diaper area.
Inactive ingredients
silica, fragrance (227-071)
PRINCIPAL DISPLAY PANEL
Cornstarch Plus Gold Bond® Baby Powder
Medicated Healing Since 1908®
Triple Action Relief
Helps prevent & Treat Diaper Rash Chafing Minor Skin Irritations
Net wt 4 oz (113 g) 0073 5 6 0 - 04
Chattem, Inc.


What would you least like to be called?
If you could make a potion to guarantee one of the following, which would it be?
Which instrument is most pleasing to your ears?


Compiler
Imp to Vminus Compiler
This file implements a compiler from a (slight variant of) the Software
Foundations Imp language (see
Imp.v) to Vminus. Importantly, this variant of
Imp and the Vminus language share the same notion of global, mutable memory
states, so the compilation of Imp identifiers into Vminus addresses is trivial.
The compiler and its correctness proof demonstrate the use of
monotonic state-—essentially the idea that the compiler only "extends" the
state, either by generating new fresh identifiers.
For the sake of simplicity, this compiler doesn't perform any optimizations. It
uses a straightforward strategy of translating each Imp assignment command to a
separate Vminus block, which makes stating the correctness invariants easier, at
the expense of generating poor straight-line code.
The compiler will also serve as a vehicle for exploring QuickChick testing.
An example of translating Imp to Vminus:
An Imp program:
IFZ Z THEN X ::= 1;; Y ::= 2 ELSE SKIP
And one possible translation to Vminus:
l0:
%
z =
load Z
cbr %
z l1 l3
l1: //
block for X ::= 1
store X 1
br l2
l2: //
block for Y ::= 2
store Y 2
br l3
l3:
ret
The Compilation Monad
One issue in building a compiler that targets an SSA language like
Vminus is generating the identifiers used for labels and local variables. A key
part of the correctness proof will be establishing the freshness and uniqueness
properties of these identifiers.
The
FRESH monad provides a compilation context for expressions and commands.
FRESH is just a state monad in which the state keeps track of the list of
generated uids so that we can generate fresh names.
Notation FRESH := (ST (list uid)).
A monad operation that generates a unique identifer uid. Note that the the
Atom library guarantees that uid is distinct from any element of ids.
Definition fresh : FRESH uid :=
fun ids ⇒
let uid := Uid.fresh ids in
(uid::ids, uid).
We can run the monad computation starting from any initial list of uids
that should be avoided.
Definition strun {A:Set} (m:FRESH A) (l:list uid) : A :=
snd (m l).
Compiling binops.
The result of compiling an expression is a Vminus value that stores the
result, plus a sequence of intructions (if any) needed to compute that value.
We can factor all of the shared code for compiling binary operations into a
monadic combinator. It first compiles the left expression, then the right
expression. Then it generates a fresh local identifier that will hold the
computed result. The instruction sequence concatenates the code for the two
subexpressions and appends the instruction that performs the binary
operation.
Definition comp_bop
(b:bop) (e1 e2: FRESH (val * list insn))
: FRESH (val * list insn) :=
'(v1, c1) <- e1;
'(v2, c2) <- e2;
'r <- fresh;
mret (val_uid r, (c1 ++ c2 ++ [(r, cmd_bop b v1 v2)]))
.
Compiling arithmetic expressions.
The translation of an Imp
aexp is mostly handled by
comp_bop.
The only interesting case is that for compiling Imp identifiers.
However, since the Imp global state and Vminus global state are the
same, we simply translate a reference to an Imp identifier into a load
from that identifier, treated as an address.
Fixpoint comp_aexp (a:aexp) : FRESH (val * list insn) :=
match a with
| ANum n ⇒ mret (val_nat n, [])
| AId i ⇒ 'r <- fresh; mret (val_uid r, [(r, cmd_load i)])
| APlus a1 a2 ⇒ comp_bop bop_add (comp_aexp a1) (comp_aexp a2)
| AMinus a1 a2 ⇒ comp_bop bop_sub (comp_aexp a1) (comp_aexp a2)
| AMult a1 a2 ⇒ comp_bop bop_mul (comp_aexp a1) (comp_aexp a2)
end.
Compiling boolean expressions.
Vminus doesn't have booleans, it has only natural numbers, so we have
to translate Imp values
BTrue and
BFalse to
val_nat 1 and
val_nat 0
respectively.
Vminus does not have any unary operations, so logical negation translates into a
comparison with
0.
Fixpoint comp_bexp (b:bexp) : FRESH (val * list insn) :=
match b with
| BTrue ⇒ mret (val_nat 1, [])
| BFalse ⇒ mret (val_nat 0, [])
| BEq a1 a2 ⇒ comp_bop bop_eq (comp_aexp a1) (comp_aexp a2)
| BLe a1 a2 ⇒ comp_bop bop_le (comp_aexp a1) (comp_aexp a2)
| BAnd b1 b2 ⇒ comp_bop bop_and (comp_bexp b1) (comp_bexp b2)
| BNot b1 ⇒ comp_bop bop_eq (comp_bexp b1) (mret (val_nat 0, []))
end.
Command compilation strategy
To compile Imp commands to Vminus, observe that a single Imp command
such as
IFZ or
WHILE will translate into a collection of Vminus basic
blocks. Therefore the command compiler will need to produce that list of
blocks, as well as have the infrastructure provide a mechanism for indicating
how the blocks should be connected to form a control-flow graph.
For this compiler, we've chosen to follow the invariant that when translating an
Imp command
c, the compiler receives the label of the
continuation block to
which control should pass after executing the code corresponding to
c. The
output of the command compiler is a label that designates the entry block of
the command. These choices inform the structure of the compiler, which
traverses the Imp program from right-to-left, threading the control as required.
Another consequence of this decision is that the easiest way to compile
assignment commands is to place each such command into its own basic block.
This simplifies the compiler invariants (since we don't have to keep track of
"partially completed" blocks, and (as we will see) makes relating the Imp
operational semantics to the Vminus semantics of the compiler output.
There are alternatives that could produce "nicer" Vminus code (e.g. by placing
sequences of assignment commands into the same basic block, or by traversing the
Imp program left-to-right), but those alternatives would have a significant
impact on the simulation relation between the source Imp and target Vminus code.
Note: This compilation strategy also does not introduce phi nodes into the
generated code. This design is in-line with the usual way of compiling an
imperative language to a language like Vminus (or LLVM). Introduction of phi
nodes is done as a later phase in the compiler, sometimes called "register
promotion".
Compiling store commands and conditional branches
Before diving into the full compiler, it is useful to create two helper
functions, each of which is responsible for generating code that corresponds to
the last half of a basic block.
comp_store emits code that computes an arithmetic expression
a and
stores the result into the address
v. The
k argument is the "continuation
label" that is jumped to following the
store.
Definition comp_store (a:aexp) (v:addr) (k:lbl) : FRESH (list insn) :=
'x <- fresh;
'y <- fresh;
'(i, is) <- comp_aexp a;
mret (is ++ [ (x, cmd_store v i);
(y, cmd_tmn (tmn_jmp k)) ])
.
Similarly, comp_cond generates the instructions leading up to a
conditional branch. It takes two continuation labels, one for each branch.
Definition comp_cond (b:bexp) (l1 l2:lbl) : FRESH (list insn) :=
'(v, is) <- comp_bexp b;
'x <- fresh;
mret (is ++ [ (x, cmd_tmn (tmn_cbr v l1 l2)) ] )
.
Compiling Imp Commands
Just as we needed to thread the list of generated identifiers through the
expression compiler, we also need to maintain some state when compiling
commands.
- list of used block labels
- list of used uids
- list of blocks making up the "current" control-flow graph, to which new
blocks will be added
We define another monad, called
CMD that, in addition to letting us
generate fresh local identifiers, also keeps track of block labels and generated
blocks.
Definition cstate := (list lbl * list uid * list block)%type.
Notation CMD := (ST cstate).
Generate a fresh block label
Definition fresh_lbl : CMD lbl :=
fun cs ⇒
let '(ls, is, bs) := cs in
let l := Lbl.fresh ls in
(l::ls, is, update bs l [], l).
Lift a computation from the FRESH monad into the CMD monad.
Definition liftF {T} (ec:FRESH T) : CMD T :=
fun cs ⇒
let '(ls, is, cfg) := cs in
let (is', r) := ec is in
(ls, is', cfg, r).
Update the instructions at the block with lbl l to have the list of instructions b
Definition add_insns (l:lbl) (b:list insn) : CMD unit :=
fun cs ⇒
let '(ls, is, cfg) := cs in
(ls, is, update cfg l b, tt).
Compiling Imp Commands
The input
lr is the "continuation" label of the block to which control
should return after the command is done. The output is the label of the
entry block for the command.
Note how compiling a sequence
[c1;;c2] threads the control through the
commands in reverse order.
Fixpoint comp_com (c:Imp.com) (lr:lbl) : CMD lbl :=
match c with
| CSkip ⇒ mret lr
| CAss i a ⇒
'l <- fresh_lbl;
'b <- liftF (comp_store a i lr);
'_ <- add_insns l b;
mret l
| CSeq c1 c2 ⇒
'l <- comp_com c2 lr; comp_com c1 l
| CIf b c1 c2 ⇒
'l1 <- comp_com c1 lr;
'l2 <- comp_com c2 lr;
'lh <- fresh_lbl;
'b <- liftF (comp_cond b l1 l2);
'_ <- add_insns lh b;
mret lh
| CWhile b c ⇒
'lh <- fresh_lbl;
'lb <- comp_com c lh;
'b <- liftF (comp_cond b lb lr);
'_ <- add_insns lh b;
mret lh
end.
Top-level Compiler
To turn an Imp command into a full Vminus program, we need to provide the
command compiler with the label of the "initial continuation", which is just the
label of a block that immediately halts the program by executing the
tmn_ret
instruction. The result of the program is a pair of labels,
e for the entry
point (obtained by compiling the command
c), and the exit label
r.
Definition comp_prog (c:com) : CMD (lbl * lbl) :=
'r <- fresh_lbl;
'x <- liftF fresh;
'_ <- add_insns r [(x, cmd_tmn tmn_ret)];
'e <- comp_com c r;
mret (e, r).
We can "run" a computation the CMD monad by supplying it with empty lists
of uids, labels, and blocks. The result is easy to package up as ListCFG
control-flow graph.
Definition compile (c:com) : ListCFG.t * lbl * lbl :=
let '(_, _, bs, (le, lr)) := comp_prog c ([], [], []) in
((le, bs), le, lr).


I was tagged today on twitter asking about categorical variables in lavaan
. I will say I have not done much with categorical predictors either endogenous or exogenous. I did a quick reproducible example of exogenous variables, and I will refer you to the help guide for lavaan
here.
You will need both the lavaan
and psych
packages to reproduce this code. Ironically, this data is binary outcome data (the epi
dataset in psych
), which wasn’t intentional, I just knew it was a good dataset to work with to test how to do exogenous categorical variables.
First, let’s make a model that works (I do assume you know a bit about lavaan
here, feel free to ask questions):
#load libraries and data
library(psych)
library(lavaan)
DF = epi
#lavaan model syntax
epi.model = 'latent =~ V1+V2+V3+V4
latent2 =~ V5+V6+V7+V8'
#analyze the model
epi.fit = cfa(model = epi.model,
data = DF)
#show a summary
summary(epi.fit)
The cfa
and summary
did not throw any errors, so the model at least runs smoothly, even if it is not a “good” model. For good measure, you can also use semPlot
to create a picture of this two-factor model:
library(semPlot)
#semPaths with basic options
semPaths(epi.fit,
whatLabels = "std",
edge.label.cex = 1)
Next, I created a fake dummy coded variable with three levels, although you could scale this easily with more levels:
DF$category = c(rep("group", nrow(epi)/3),
rep("group2", nrow(epi)/3),
rep("group3", nrow(epi)/3))
DF$category = as.factor(DF$category)
When I tried to run a new model with the category
variable, lavaan
was not happy:
Warning message:
In lav_data_full(data = data, group = group, cluster = cluster, :
lavaan WARNING: unordered factor(s) with more than 2 levels detected in data: category
Fine, let’s dummy code them with the gloriously easy dummy.code
function in psych
:
#dummy code and combine with DF
DF_dc = cbind(DF, dummy.code(DF$category))
However, I will warn you that psych
does give you K columns where K = levels. Real dummy coding is K - 1 columns, so I find it odd that psych
gives you K output. For example, it took our group
, group2
, group3
labels and transformed them into three new columns with 0 as not my group and 1 as my group. Therefore, I will advise you to pick your favorite combination of K - 1 levels, and do not use all of them or you will create a singular matrix that will be difficult to troubleshoot in any regression based analysis. Here’s an example of that error:
Error in lav_samplestats_icov(COV = cov[[g]], ridge = ridge, x.idx = x.idx[[g]], :
lavaan ERROR: sample covariance matrix is not positive-definite
I can add the first two to the model predicting one of the latents using ~
for regression rather than =~
for create a latent:
#model syntax
epi.model2 = 'latent =~ V1+V2+V3+V4
latent2 =~ V5+V6+V7+V8
latent ~ group
latent ~ group2'
#analyze the model with the new DF
epi.fit2 = cfa(model = epi.model2,
data = DF_dc)
#summarize the model
summary(epi.fit2)
In your output, you will get two new lines for regression:
Regressions:
Estimate Std.Err z-value P(>|z|)
latent ~
group 0.026 0.014 1.847 0.065
group2 -0.001 0.014 -0.082 0.935
The interpretation here would be that group = group 1 versus group 3 was related to/predicted latent
at 0.026, so the difference in latent
for group 1 to group 3 was 0.026. The second variable would be group2 = group 2 versus group 3, and they basically have no difference on latent
. You can learn more about dummy coding here.
Here’s the picture of that analysis:
semPaths(epi.fit,
whatLabels = "std",
edge.label.cex = 1)
Remember that any endogenous variables will get automatically correlated … so now we have a second latent variable hanging out in space we would want to either predict with our dummy coded variables or do something with. So, I would probably either add the correlation between latents back in with: latent ~~ latent2
or add in the regressions for using the categoricals to predict latent2: latent2 ~ group
and latent2 ~ group2
.
More lavaan help can be found on my youtube channel!.


| 012:053 Khan | : |
"And I free not myself (from the blame). Verily, the (human) self is inclined to evil, except when my Lord bestows His Mercy (upon whom He wills). Verily, my Lord is Oft-Forgiving, Most Merciful." |
| 012:053 Maulana | : |
And I call not myself sinless; surely (man's) self is wont to command evil, except those on whom my Lord has mercy. Surely my Lord is Forgiving, Merciful. |
| 012:053 Pickthal | : |
I do not exculpate myself. Lo! the (human) soul enjoineth unto evil, save that whereon my Lord hath mercy. Lo! my Lord is Forgiving, Merciful. |
| 012:053 Rashad | : |
"I do not claim innocence for myself. The self is an advocate of vice, except for those who have attained mercy from my Lord. My Lord is Forgiver, Most Merciful." |
| 012:053 Sarwar | : |
"I do not think that I am free from weakness; all human souls are susceptible to evil except for those to whom my Lord has granted mercy. My Lord is certainly All-forgiving and All-merciful." |
| 012:053 Shakir | : |
And I do not declare myself free, most surely (man's) self is wont to command (him to do) evil, except such as my Lord has had mercy on, surely my Lord is Forgiving, Merciful. |
| 012:053 Sherali | : |
'And I do not hold my own self to be free from weakness - surely the soul is prone to enjoin evil - save that whereon my Lord has mercy. Surely, my Lord is Most Forgiving, Merciful.' |
| 012:053 Yusufali | : |
"Nor do I absolve my own self (of blame): the (human) soul is certainly prone to evil, unless my Lord do bestow His Mercy: but surely my Lord is Oft-forgiving, Most Merciful." |
Concepts/Themes Covered: أركان الإسلام > التوحيد > توحيد الله تعالي > ربوبيته جلّ وعلا Pillars of Islam> Islamic> Oneness of Allah> His Divinity, the Great and Almighty الإيمان > الغيب > الغيب النفسي > النفس Faith> The Unseen World> The Psychological Secret> The Self
This tool uses eight English parallel translations for the Holy Quran imported from Mr. Clay Smith. You can also visit Qurany Concepts for browsing the Quran themes or topics. If you want to search the Holy Quran for keywords, please visit Qurany Keywords.


All locations open 6 a.m. to 8 p.m. everday!
They're cookies made into the shape of a salmon, and actually made with salmon (though the fish is ground up so fine that you can't even taste it!) that is the ideal match for a steaming cup of coffee on a gray Seattle morning. Or gray Seattle afternoon... whatever.
We currently have 5 stores looking to expand and take over the great city of mordor!
- 1st and Pike: Barad-Dur, Mordor, Middle Earth
- Seatle Center: The platuea of Gorgoroth, Mordor, Middle Earth
- SeaTac: The Sea of Nurnen, Mordor, Middle Earth
- Captitol Hill: Mount Doom, Mordor, Middle Earht
- Alki: The Black Gate, Mordor, Middle Earth
Company Motto:
Rock in the pool
So nice and cool
So juicy sweet!
Now we wish
To catch a fish
So juicy sweet!
Products
You can Salmomiformes your very own salmon cookies with our state of the art salmon forming cookie cutter!
Buy our special pink shrimp paste frosting! Its pink!...and PASTE!!!
Buy your lover a fishies in love shirt and support our love the world drive. All proceeds go to us and we say I love you to every customer who buys a shirt.


Restart Clock
Seconds:
Sentiment
Total Tweets
Per Second
Positive:
0
0.00
Neutral:
0
0.00
Negative:
0
0.00


Biosyn
is a
deep learning-based biomedical entity normalization framework by searching for the most 'semantically' similar term from the dictionary. The following results show the top 10 predictions.
Example:
Note:
* Only '
disease' type is available at the moment.
* The disease dictionary is July 6, 2012 version of MEDIC dictionary as described in the paper.
* Abbreviations need to be expanded before inserted. (e.g., SARS -> Severe Acute Respiratory Syndrome)


Title: {{task.title}}
Description: {{task.description}}
Assigned to: {{task.assignee}}
Created on: {{ timeStampToDate(task.createdOn) | date:'medium' }}
Creator: {{task.creatorEmail}}
Comments:
Don't disclose personal info
{{message.value.length}} / 256


The Main Screen is where CSV files can be imported and specific
quarters (or the entire year) can be selected for report generation.
From this screen, rules cannot be created. However, clicking on
the "Rules" button will pop up a screen for modifying rules.
To import .csv files. click the browse button on the right side of
the panel. A screen will pop up prompting you to browse for a file.
Find a .csv file and click open. The pop up will close and the text
field will then show the absolute path of the selected file.
You can now press the "Import" button to import the data into
memory. This may take a few minutes to complete. It is
also possible to import a .csv file if you already know its
absolute pathname: just enter it into the text field under "CSV file".
After importing the .csv file, the list labeled "Municipality (County)"
will be populated with the Municipality/County combinations found
in the .csv file.
To create specify what kid of reports you wish to generate, press the
"reports" button to bring up a new pop up. The help page on the Reports
window explains creating custom reports in further detail.
To create a report for a specific quarter, just select the appropriate
radio button. Once the quarter is selected, any others will be deselected.
Now, when the "Generate Reports" is clicked, the reports will be generated
for the selected quarter or the entire year if selected.


Chapter 9 Modeling data
9.1 Load packages and set plotting theme
library("knitr") # for knitting RMarkdown
library("kableExtra") # for making nice tables
library("janitor") # for cleaning column names
library("tidyverse") # for wrangling, plotting, etc.
theme_set(theme_classic() + #set the theme
theme(text = element_text(size = 20))) #set the default text size
$set(comment = "",
opts_chunkfig.show = "hold")
9.2 Modeling data
9.2.1 Simplicity vs. accuracy trade-off
# make example reproducible
set.seed(1)
= 20 # sample size
n_samples = 2 # number of parameters in the polynomial regression
n_parameters
# generate data
= tibble(x = runif(n_samples, min = 0, max = 10),
df.data y = 10 + 3 * x + 3 * x^2 + rnorm(n_samples, sd = 20))
# plot a fit to the data
ggplot(data = df.data,
mapping = aes(x = x,
y = y)) +
geom_point(size = 3) +
# geom_hline(yintercept = mean(df.data$y), color = "blue") +
geom_smooth(method = "lm", se = F,
formula = y ~ poly(x, degree = n_parameters, raw = TRUE)) +
theme(axis.ticks = element_blank(),
axis.title = element_blank(),
axis.text = element_blank())
# make example reproducible
set.seed(1)
# n_samples = 20
= 3
n_samples
= tibble(x = runif(n_samples, min = 0, max = 10),
df.pre y = 2 * x + rnorm(n_samples, sd = 1))
# plot a fit to the data
ggplot(data = df.pre,
mapping = aes(x = x,
y = y)) +
geom_point(size = 3) +
# geom_hline(yintercept = mean(df.pre$y), color = "blue") +
geom_smooth(method = "lm", se = F,
formula = y ~ poly(x, 1, raw = TRUE)) +
theme(axis.ticks = element_blank(),
axis.title = element_blank(),
axis.text = element_blank())
9.2.2 Error definitions and best estimators
Let’s start with some simple data:
= tibble(observation = 1:5,
df.data value = c(1, 3, 5, 9, 14))
And plot the data
ggplot(data = df.data,
mapping = aes(x = "1",
y = value)) +
geom_point(size = 3) +
scale_y_continuous(breaks = seq(0, 16, 2),
limits = c(0, 16)) +
theme(panel.grid.major.y = element_line(color = "gray80", linetype = 2),
axis.title.x = element_blank(),
axis.text.x = element_blank(),
text = element_text(size = 24))
This is what the sum of absolute errors looks like for a given value_predicted
.
= 7
value_predicted
= df.data %>%
df.data mutate(prediction = value_predicted,
error_absolute = abs(prediction - value))
ggplot(data = df.data,
mapping = aes(x = observation,
y = value)) +
geom_segment(mapping = aes(x = observation,
xend = observation,
y = value_predicted,
yend = value
),color = "blue",
size = 1) +
geom_line(data = tibble(x = c(1, 5),
y = value_predicted),
mapping = aes(x = x,
y = y),
size = 1,
color = "green") +
geom_point(size = 4) +
annotate(x = 1,
y = 15.5,
geom = "text",
label = str_c("Prediction = ", value_predicted),
size = 8,
hjust = 0,
vjust = 1,
color = "green") +
annotate(x = 1,
y = 13.5,
geom = "text",
label = str_c("Sum of absolute errors = ", sum(df.data$error_absolute)),
size = 8,
hjust = 0,
vjust = 1,
color = "blue") +
annotate(x = 5,
y = value_predicted,
geom = "text",
label = parse(text = str_c("{hat(Y)","==b[0]}==", value_predicted)),
hjust = -0.1,
size = 8) +
scale_x_continuous(breaks = df.data$observation,
labels = parse(text = str_c('e[',df.data$observation,']', "==", df.data$error_absolute)),
limits = c(1, 6)) +
scale_y_continuous(breaks = seq(0, 16, 2),
limits = c(0, 16)) +
theme(panel.grid.major.y = element_line(color = "gray80", linetype = 2),
axis.title.x = element_blank(),
text = element_text(size = 24))
Play around with the code below to see how using (1) the sum of absolute errors, or (2) the sum of squared errors affects what estimate minimizes the error.
= seq(0, 50, 0.1)
value_predicted # value_predicted = seq(0, 10, 1)
= tibble(observation = 1:5,
df.data value = c(1, 3, 5, 9, 140))
# function that calculates the sum absolute error
= function(prediction){
fun.sum_absolute_error = df.data$value
x = sum(abs(x-prediction))
sum_absolute_error return(sum_absolute_error)
}
# function that calculates the sum squared error
= function(prediction){
fun.sum_squared_error = df.data$value
x = sum((x-prediction)^2)
sum_squared_error return(sum_squared_error)
}
= tibble(
df.model estimate = value_predicted,
sum_absolute_error = map_dbl(value_predicted, fun.sum_absolute_error),
sum_squared_error = map_dbl(value_predicted, fun.sum_squared_error)
)
ggplot(data = df.model,
mapping = aes(x = estimate,
# y = sum_absolute_error)) +
y = sum_squared_error)) +
geom_line(size = 1) +
# labs(y = "Sum absolute error")
labs(y = "Sum of squared errors")
| Error definition | Best estimator |
|---|---|
| Count of errors | Mode = most frequent value |
| Sum of absolute errors | Median = middle observation of all values |
| Sum of squared errors | Mean = average of all values |
= 0
mu = 1
sigma
= mu
mean = mu
median = mu
mode
ggplot(data = tibble(x = c(-3, 3)),
mapping = aes(x = x)) +
stat_function(fun = "dnorm",
size = 1) +
geom_segment(mapping = aes(x = median,
xend = median,
y = dnorm(median),
yend = 0),
color = "green",
size = 2) +
geom_segment(mapping = aes(x = mode,
xend = mode,
y = dnorm(mode),
yend = 0),
color = "red",
size = 2) +
geom_segment(mapping = aes(x = mean,
xend = mean,
y = dnorm(mean),
yend = 0),
color = "blue",
size = 2) +
labs(y = "density") +
scale_x_continuous(breaks = -2:2,
expand = c(0, 0)) +
scale_y_continuous(expand = expansion(add = c(0.001, 0.1)))
= 1
rate
= rate
mean = rate * log(2)
median = 0
mode
ggplot(data = tibble(x = c(-0.1, 3)),
mapping = aes(x = x)) +
stat_function(fun = "dexp",
size = 1) +
geom_segment(aes(x = median,
xend = median,
y = dexp(median),
yend = 0),
color = "green",
size = 2) +
geom_segment(aes(x = mode,
xend = mode,
y = dexp(mode),
yend = 0),
color = "red",
size = 2) +
geom_segment(aes(x = mean,
xend = mean,
y = dexp(mean),
yend = 0),
color = "blue",
size = 2) +
labs(y = "density") +
scale_x_continuous(breaks = 0:2,
expand = c(0, 0)) +
scale_y_continuous(expand = expansion(add = c(0.001, 0.1)))
9.2.3 Sampling distributions for median and mean
# make example reproducible
set.seed(1)
= 40 # size of each sample
sample_size = 1000 # number of samples
sample_n
# draw sample
= function(sample_size, distribution){
fun.draw_sample = 50 + rnorm(sample_size)
x return(x)
}
# generate many samples
= replicate(n = sample_n,
samples fun.draw_sample(sample_size, df.population))
# set up a data frame with samples
= matrix(samples, ncol = sample_n) %>%
df.sampling_distribution as_tibble(.name_repair = ~ str_c(1:sample_n)) %>%
pivot_longer(cols = everything(),
names_to = "sample",
values_to = "number") %>%
mutate(sample = as.numeric(sample)) %>%
group_by(sample) %>%
mutate(draw = 1:n()) %>%
select(sample, draw, number) %>%
ungroup()
# turn the data frame into long format and calculate the mean and median of each sample
= df.sampling_distribution %>%
df.sampling_distribution_summaries group_by(sample) %>%
summarize(mean = mean(number),
median = median(number)) %>%
ungroup() %>%
pivot_longer(cols = -sample,
names_to = "index",
values_to = "value")
And plot it:
# plot a histogram of the means with density overlaid
ggplot(data = df.sampling_distribution_summaries,
mapping = aes(x = value, color = index)) +
stat_density(bw = 0.1,
size = 2,
geom = "line") +
scale_y_continuous(expand = expansion(mult = c(0, 0.01)))
9.3 Hypothesis testing: “One-sample t-test”
= read_table2(file = "data/internet_access.txt") %>%
df.internet clean_names()
── Column specification ─────────────────────────────────────────────────────────────────────────────────────────────────────────────
cols(
State = col_character(),
Internet = col_double(),
College = col_double(),
Auto = col_double(),
Density = col_double()
)
%>%
df.internet mutate(i = 1:n()) %>%
select(i, internet, everything()) %>%
head(10) %>%
kable(digits = 1) %>%
kable_styling(bootstrap_options = "striped",
full_width = F)
| i | internet | state | college | auto | density |
|---|---|---|---|---|---|
| 1 | 79.0 | AK | 28.0 | 1.2 | 1.2 |
| 2 | 63.5 | AL | 23.5 | 1.3 | 94.4 |
| 3 | 60.9 | AR | 20.6 | 1.7 | 56.0 |
| 4 | 73.9 | AZ | 27.4 | 1.3 | 56.3 |
| 5 | 77.9 | CA | 31.0 | 0.8 | 239.1 |
| 6 | 79.4 | CO | 37.8 | 1.0 | 48.5 |
| 7 | 77.5 | CT | 37.2 | 1.0 | 738.1 |
| 8 | 74.5 | DE | 29.8 | 1.1 | 460.8 |
| 9 | 74.3 | FL | 27.2 | 1.2 | 350.6 |
| 10 | 72.2 | GA | 28.3 | 1.1 | 168.4 |
# parameters per model
= 1
pa = 0
pc
= df.internet %>%
df.model select(internet, state) %>%
mutate(i = 1:n(),
compact_b = 75,
augmented_b = mean(internet),
compact_se = (internet-compact_b)^2,
augmented_se = (internet-augmented_b)^2) %>%
select(i, state, internet, contains("compact"), contains("augmented"))
%>%
df.model summarize(augmented_sse = sum(augmented_se),
compact_sse = sum(compact_se),
pre = 1 - augmented_sse/compact_sse,
f = (pre/(pa-pc))/((1-pre)/(nrow(df.model)-pa)),
p_value = 1-pf(f, pa-pc, nrow(df.model)-1),
mean = mean(internet),
sd = sd(internet)) %>%
kable() %>%
kable_styling(bootstrap_options = "striped",
full_width = F)
| augmented_sse | compact_sse | pre | f | p_value | mean | sd |
|---|---|---|---|---|---|---|
| 1355.028 | 1595.71 | 0.1508305 | 8.703441 | 0.0048592 | 72.806 | 5.258673 |
= 1
df1 = 49
df2
ggplot(data = tibble(x = c(0, 10)),
mapping = aes(x = x)) +
stat_function(fun = "df",
geom = "area",
fill = "red",
alpha = 0.5,
args = list(df1 = df1,
df2 = df2),
size = 1,
xlim = c(qf(0.95, df1 = df1, df2 = df2), 10)) +
stat_function(fun = ~ df(x = .,
df1 = df1,
df2 = df2),
size = 0.5) +
scale_y_continuous(expand = expansion(add = c(0.001, 0.1))) +
labs(y = "Density",
x = "Proportional reduction in error")
We’ve implemented a one sample t-test (compare the p-value here to the one I computed above using PRE and the F statistic).
t.test(df.internet$internet, mu = 75)
One Sample t-test
data: df.internet$internet
t = -2.9502, df = 49, p-value = 0.004859
alternative hypothesis: true mean is not equal to 75
95 percent confidence interval:
71.3115 74.3005
sample estimates:
mean of x
72.806
9.4 Building a sampling distribution of PRE
Here is the general procedure for building a sampling distribution of the proportional reduction in error (PRE). In this instance, I compare the following two models
- Model C (compact): \(Y_i = 75 + \epsilon_i\)
- Model A (augmented): \(Y_i = \overline Y + \epsilon_i\)
whereby I assume that \(\epsilon_i \sim \mathcal{N}(0, \sigma)\).
For this example, I assume that I know the population distribution. I first draw a sample from that distribution, and then calculate PRE.
# make example reproducible
set.seed(1)
# set the sample size
= 50
sample_size
# draw sample from the population distribution (I've fixed sigma -- the standard deviation
# of the population distribution to be 5)
= tibble(observation = 1:sample_size,
df.sample value = 75 + rnorm(sample_size, mean = 0, sd = 5))
# calculate SSE for each model, and then PRE based on that
= df.sample %>%
df.summary mutate(compact = 75,
augmented = mean(value)) %>%
summarize(sse_compact = sum((value - compact)^2),
sse_augmented = sum((value - augmented)^2),
pre = 1 - (sse_augmented/sse_compact))
To generate the sampling distribution, I assume that the null hypothesis is true, and then take a look at what values for PRE we could expect by chance for our given sample size.
# simulation parameters
= 1000
n_samples = 50
sample_size = 75 # true mean of the distribution
mu = 5 # true standard deviation of the errors
sigma
# function to draw samples from the population distribution
= function(sample_size, mu, sigma){
fun.draw_sample = mu + rnorm(sample_size,
sample mean = 0,
sd = sigma)
return(sample)
}
# draw samples
= n_samples %>%
samples replicate(fun.draw_sample(sample_size, mu, sigma)) %>%
t() # transpose the resulting matrix (i.e. flip rows and columns)
# put samples in data frame and compute PRE
= samples %>%
df.samples as_tibble(.name_repair = ~ str_c(1:ncol(samples))) %>%
mutate(sample = 1:n()) %>%
pivot_longer(cols = -sample,
names_to = "index",
values_to = "value") %>%
mutate(compact = mu) %>%
group_by(sample) %>%
mutate(augmented = mean(value)) %>%
summarize(sse_compact = sum((value - compact)^2),
sse_augmented = sum((value - augmented)^2),
pre = 1 - sse_augmented/sse_compact)
# plot the sampling distribution for PRE
ggplot(data = df.samples,
mapping = aes(x = pre)) +
stat_density(geom = "line") +
labs(x = "Proportional reduction in error")
# calculate the p-value for our sample
%>%
df.samples summarize(p_value = sum(pre >= df.summary$pre)/n())
# A tibble: 1 x 1
p_value
<dbl>
1 0.394
Some code I wrote to show a subset of the samples.
%>%
samples as_tibble(.name_repair = "unique") %>%
mutate(sample = 1:n()) %>%
pivot_longer(cols = -sample,
names_to = "index",
values_to = "value") %>%
mutate(compact = mu) %>%
group_by(sample) %>%
mutate(augmented = mean(value)) %>%
ungroup() %>%
mutate(index = str_extract(index, pattern = "\\-*\\d+\\.*\\d*"),
index = as.numeric(index)) %>%
filter(index < 6) %>%
arrange(sample, index) %>%
head(15) %>%
kable(digits = 2) %>%
kable_styling(bootstrap_options = "striped",
full_width = F)
| sample | index | value | compact | augmented |
|---|---|---|---|---|
| 1 | 1 | 76.99 | 75 | 75.59 |
| 1 | 2 | 71.94 | 75 | 75.59 |
| 1 | 3 | 76.71 | 75 | 75.59 |
| 1 | 4 | 69.35 | 75 | 75.59 |
| 1 | 5 | 82.17 | 75 | 75.59 |
| 2 | 1 | 71.90 | 75 | 74.24 |
| 2 | 2 | 75.21 | 75 | 74.24 |
| 2 | 3 | 70.45 | 75 | 74.24 |
| 2 | 4 | 75.79 | 75 | 74.24 |
| 2 | 5 | 71.73 | 75 | 74.24 |
| 3 | 1 | 77.25 | 75 | 75.38 |
| 3 | 2 | 74.91 | 75 | 75.38 |
| 3 | 3 | 73.41 | 75 | 75.38 |
| 3 | 4 | 70.35 | 75 | 75.38 |
| 3 | 5 | 67.56 | 75 | 75.38 |
9.5 Additional resources
9.5.1 Reading
- Judd, C. M., McClelland, G. H., & Ryan, C. S. (2011). Data analysis: A model comparison approach. Routledge. –> Chapters 1–4
9.5.2 Datacamp
9.6 Session info
Information about this R session including which version of R was used, and what packages were loaded.
sessionInfo()
R version 4.0.3 (2020-10-10)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Catalina 10.15.7
Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] forcats_0.5.1 stringr_1.4.0 dplyr_1.0.4 purrr_0.3.4
[5] readr_1.4.0 tidyr_1.1.2 tibble_3.0.6 ggplot2_3.3.3
[9] tidyverse_1.3.0 janitor_2.1.0 kableExtra_1.3.1 knitr_1.31
loaded via a namespace (and not attached):
[1] Rcpp_1.0.6 lubridate_<IP_ADDRESS> lattice_0.20-41 ps_1.6.0
[5] utf8_1.1.4 assertthat_0.2.1 digest_0.6.27 R6_2.5.0
[9] cellranger_1.1.0 backports_1.2.1 reprex_1.0.0 evaluate_0.14
[13] highr_0.8 httr_1.4.2 pillar_1.4.7 rlang_0.4.10
[17] readxl_1.3.1 rstudioapi_0.13 Matrix_1.3-2 rmarkdown_2.6
[21] labeling_0.4.2 splines_4.0.3 webshot_0.5.2 munsell_0.5.0
[25] broom_0.7.3 compiler_4.0.3 modelr_0.1.8 xfun_0.21
[29] pkgconfig_2.0.3 mgcv_1.8-33 htmltools_<IP_ADDRESS> tidyselect_1.1.0
[33] bookdown_0.21 fansi_0.4.2 viridisLite_0.3.0 crayon_1.4.1
[37] dbplyr_2.0.0 withr_2.4.1 grid_4.0.3 nlme_3.1-151
[41] jsonlite_1.7.2 gtable_0.3.0 lifecycle_1.0.0 DBI_1.1.1
[45] magrittr_2.0.1 scales_1.1.1 cli_2.3.0 stringi_1.5.3
[49] farver_2.1.0 fs_1.5.0 snakecase_0.11.0 xml2_1.3.2
[53] ellipsis_0.3.1 generics_0.1.0 vctrs_0.3.6 tools_4.0.3
[57] glue_1.4.2 hms_1.0.0 yaml_2.2.1 colorspace_2.0-0
[61] rvest_0.3.6 haven_2.3.1


+++ draft = false date = "2006-10-03T01:14:24-03:00" title = "Fixing a zope database with fsrecover.py" tags = ["zope2", "cookbook"] created = "2006-10-03T01:00:12-03:00" modified = "2006-10-03T14:40:26-03:00" permaLink = "http://play.pixelblaster.ro/blog/archive/2006/10/03/fixing-a-zope-database-with-fsrecover.py" author = "Tiberiu Ichim" aliases = [ "/blog/archive/2006/10/03/fixing-a-zope-database-with-fsrecover.py" ] +++
Due to hardware corruption I have a broken Data.fs that won't pack. To fix it the fsrecover.py script from the ZODB module can be used. For example, this is how to run the script to repair the broken database (I have zope installed in /opt/Zope2.8):
cd /opt/Zope2.8/lib/python/
python ZODB/fsrecover.py -v 1 /mnt/raid/Data.fs /mnt/raid/Data.fs.fixed
The reason to run the fsrecover script with ZODB in front is that it imports from the ZODB module. Normally the ZODB module wouldn't be in the python path, so using this trick solves this problem. The -v 1 argument makes fsrecover print the information on the current processed transaction.


Sets the filter to be used to exclude items from the collection of items returned by the data source.
public void LoadFilter(string filter);
LoadFilter method allows programmatically apply filter to grid (and underlying data source), as if it was selected by end user in filter menus for ADVG columns.
AdvancedDataGridView will parse provided filter string, splitting it to filters for individual columns. Each column filter will be tested in compliance with column data type. If column filter is recognized as custom filter, it will be added to list of custom filters for this column. If filter is not custom filter, AdvancedDataGridView will try to use it as value source for checklist filter. In any case, control will build new filter string according to recognized filter parts and generate FilterStringChanged event, passing new filter string in FilterString property of FilterEventArgs parameter. AdvancedDataGridView will also apply generated filter to binding source associated with DataSource property.
Filter string may consist of one or more column filters, delimited with AND:
(column_filter) [AND (column_filter) ...]
In general, column filter consists of column name, relational operator and data value expression.
Column name should always be enclosed in square brackets. In may include uppercase or lowercase characters,
digits and underscore (_) character. For example: [My_column_1]
.
Available relational operators depend on column data type and filter type (custom or checklist filter),
as described later in this manual.
Data value expression may be single value, value range (for BETWEEN operator) or comma-separated list
of values. Data value expression for custom filter may also contain wildcard character % (any string of zero
or more characters), as described later in this manual.
The exact syntax of column filter depends on column data type, and differs between custom filter and checklist
filter for the same column.
If column data type allows 'empty' values (null
, DbNull.Value
or
String.Empty
), following syntax may be used to select these values in column:
[column_name] IS NULL
Following are column filter syntax and rules for different data types.
| Relation | Syntax |
|---|---|
| Equal |
|
| Not equal |
|
| Less then |
|
| Less then or equal |
|
| Greater then |
|
| Greater then or equal |
|
| Between |
|
Checklist filter may consist of one or more equality filters, separated with OR:
Convert(column_name,'System.String') LIKE '%value%' [ OR Convert(column_name,'System.String') LIKE '%value%' ...]
TimeStamp values must conform to the W3C XML Schema Part 2: Datatypes recommendation for duration.
| Relation | Syntax |
|---|---|
| Equal |
|
| Not equal |
|
Checklist filter may consist of one or more equality filters, separated with OR:
Convert(column_name,'System.String') LIKE '%value%' [ OR Convert(column_name,'System.String') LIKE '%value%' ...]
| Relation | Syntax |
|---|---|
| Equal |
|
| Not equal |
|
| Less then |
|
| Less then or equal |
|
| Greater then |
|
| Greater then or equal |
|
| Between |
|
| Syntax | Description |
|---|---|
|
Rows with listed values are shown in control |
|
Rows with listed values are hidden in control |
| Relation | Syntax |
|---|---|
| Equal |
|
| Not equal |
|
| Less then |
|
| Less then or equal |
|
| Greater then |
|
| Greater then or equal |
|
| Between |
|
| Description | Syntax |
|---|---|
|
Rows with listed values are shown in control |
|
Rows with listed values are hidden in control |
If string value, used in either custom or checklist filter, contains apostroph (') character, this character must be doubled in filter. For example, to show only rows that contain value "that's it" in column Column1, use:
Column1 LIKE '%that''s it%'
| Relation | Syntax |
|---|---|
| Equals |
|
| Not equal |
|
| Begins with |
|
| Not begins with |
|
| Ends with |
|
| Not ends with |
|
| Contains |
|
| Not contain |
|
| Syntax | Description |
|---|---|
|
Rows with listed values are shown in control |
|
Rows with listed values are hidden in control |
| Relation | Syntax |
|---|---|
| Equals |
|
| Not equal |
|
| Begins with |
|
| Not begins with |
|
| Ends with |
|
| Not ends with |
|
| Contains |
|
| Not contain |
|
| Syntax | Description |
|---|---|
|
Rows with values selected in checklist are shown in control |
|
Rows with values excluded from checklist are shown in control |


AssignmentReviewSettings extends Entity
AssignmentReviewSettings class
Tags
Table of Contents
- $_propDict : array<string|int, mixed>
- The array of properties available to the model
- __construct() : mixed
- Construct a new Entity
- getDurationInDays() : int|null
- Gets the durationInDays The number of days to allow input from reviewers.
- getId() : string|null
- Gets the id Read-only.
- getIsEnabled() : bool|null
- Gets the isEnabled If true, access reviews are required for assignments from this policy.
- getODataType() : string|null
- Gets the ODataType
- getProperties() : array<string|int, mixed>
- Gets the property dictionary of the Entity
- getRecurrenceType() : string|null
- Gets the recurrenceType The interval for recurrence, such as monthly or quarterly.
- getReviewers() : UserSet|null
- Gets the reviewers If the reviewerType is Reviewers, this collection specifies the users who will be reviewers, either by ID or as members of a group, using a collection of singleUser and groupMembers.
- getReviewerType() : string|null
- Gets the reviewerType Who should be asked to do the review, either Self or Reviewers.
- getStartDateTime() : DateTime|null
- Gets the startDateTime When the first review should start.
- jsonSerialize() : array<string|int, mixed>
- Serializes the object by property array Manually serialize DateTime into RFC3339 format
- setDurationInDays() : AssignmentReviewSettings
- Sets the durationInDays The number of days to allow input from reviewers.
- setId() : Entity
- Sets the id Read-only.
- setIsEnabled() : AssignmentReviewSettings
- Sets the isEnabled If true, access reviews are required for assignments from this policy.
- setODataType() : Entity
- Sets the ODataType
- setRecurrenceType() : AssignmentReviewSettings
- Sets the recurrenceType The interval for recurrence, such as monthly or quarterly.
- setReviewers() : AssignmentReviewSettings
- Sets the reviewers If the reviewerType is Reviewers, this collection specifies the users who will be reviewers, either by ID or as members of a group, using a collection of singleUser and groupMembers.
- setReviewerType() : AssignmentReviewSettings
- Sets the reviewerType Who should be asked to do the review, either Self or Reviewers.
- setStartDateTime() : AssignmentReviewSettings
- Sets the startDateTime When the first review should start.
Properties
$_propDict
The array of properties available to the model
protected
array<string|int, mixed>
$_propDict
Methods
__construct()
Construct a new Entity
public
__construct([array<string|int, mixed> $propDict = array() ]) : mixed
Parameters
- $propDict : array<string|int, mixed> = array()
-
A list of properties to set
Return values
mixed —getDurationInDays()
Gets the durationInDays The number of days to allow input from reviewers.
public
getDurationInDays() : int|null
Return values
int|null —The durationInDays
getId()
Gets the id Read-only.
public
getId() : string|null
Return values
string|null —The id
getIsEnabled()
Gets the isEnabled If true, access reviews are required for assignments from this policy.
public
getIsEnabled() : bool|null
Return values
bool|null —The isEnabled
getODataType()
Gets the ODataType
public
getODataType() : string|null
Return values
string|null —The ODataType
getProperties()
Gets the property dictionary of the Entity
public
getProperties() : array<string|int, mixed>
Return values
array<string|int, mixed> —The list of properties
getRecurrenceType()
Gets the recurrenceType The interval for recurrence, such as monthly or quarterly.
public
getRecurrenceType() : string|null
Return values
string|null —The recurrenceType
getReviewers()
Gets the reviewers If the reviewerType is Reviewers, this collection specifies the users who will be reviewers, either by ID or as members of a group, using a collection of singleUser and groupMembers.
public
getReviewers() : UserSet|null
Return values
UserSet|null —The reviewers
getReviewerType()
Gets the reviewerType Who should be asked to do the review, either Self or Reviewers.
public
getReviewerType() : string|null
Return values
string|null —The reviewerType
getStartDateTime()
Gets the startDateTime When the first review should start.
public
getStartDateTime() : DateTime|null
Return values
DateTime|null —The startDateTime
jsonSerialize()
Serializes the object by property array Manually serialize DateTime into RFC3339 format
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed> —The list of properties
setDurationInDays()
Sets the durationInDays The number of days to allow input from reviewers.
public
setDurationInDays(int $val) : AssignmentReviewSettings
Parameters
- $val : int
-
The value of the durationInDays
Return values
AssignmentReviewSettings —setId()
Sets the id Read-only.
public
setId(string $val) : Entity
Parameters
- $val : string
-
The id
Return values
Entity —setIsEnabled()
Sets the isEnabled If true, access reviews are required for assignments from this policy.
public
setIsEnabled(bool $val) : AssignmentReviewSettings
Parameters
- $val : bool
-
The value of the isEnabled
Return values
AssignmentReviewSettings —setODataType()
Sets the ODataType
public
setODataType(string $val) : Entity
Parameters
- $val : string
-
The ODataType
Return values
Entity —setRecurrenceType()
Sets the recurrenceType The interval for recurrence, such as monthly or quarterly.
public
setRecurrenceType(string $val) : AssignmentReviewSettings
Parameters
- $val : string
-
The value of the recurrenceType
Return values
AssignmentReviewSettings —setReviewers()
Sets the reviewers If the reviewerType is Reviewers, this collection specifies the users who will be reviewers, either by ID or as members of a group, using a collection of singleUser and groupMembers.
public
setReviewers(UserSet $val) : AssignmentReviewSettings
Parameters
- $val : UserSet
-
The value to assign to the reviewers
Return values
AssignmentReviewSettings —The AssignmentReviewSettings
setReviewerType()
Sets the reviewerType Who should be asked to do the review, either Self or Reviewers.
public
setReviewerType(string $val) : AssignmentReviewSettings
Parameters
- $val : string
-
The value of the reviewerType
Return values
AssignmentReviewSettings —setStartDateTime()
Sets the startDateTime When the first review should start.
public
setStartDateTime(DateTime $val) : AssignmentReviewSettings
Parameters
- $val : DateTime
-
The value to assign to the startDateTime
Return values
AssignmentReviewSettings —The AssignmentReviewSettings


{% extends 'public/base.html' %} {% load static %} {% block content %}
Your Order has been Confirmed. Check your Email for Order Summery.
{% else %}
Your Order did not Confirmed. Plaese Try Again
{% endif %} Having trouble? Contact us
Continue to Shopping


--- title: 2018 Resolutions layout: post tags: - resolutions - new year ---
New Year’s resolutions are an interesting idea.  You just set a goal to workout 8 days a week and, even though you never went to the gym last year, suddenly you will turn your life around. Extreme (and impossible) example maybe, but they can get out of hand very easily and because of that they have become a modern day trope in many ways.
That being said, I do think when set appropriately they are a good way to motivate yourself to make smaller changes in your life and focus on things you want to spend your time and effort on. Therefore, despite my misgivings above I have some resolutions to make below.
I might have made a joke about exercise in the example above, but I do believe that exercise is important and have some more attainable goals than 8 days of exercise a week.
I have always been on and off with running and never took it very seriously until I ran a half marathon in October of 2015. I remember training for that by going on long runs multiple days a week and it was awesome. I haven’t done a race longer than a 5K since, and therefore haven’t felt the urge to run like that again. While running another half marathon or even farther is a long term goal, for this year I want to try to run 500 miles. This seems like a lofty goal considering my biggest year on Strava so far was 2015 with 291.1 miles,1 but most of those miles were short treadmill runs. I hadn’t explored the idea of running distances until late in that year.
With most of January gone I am at 27.5 miles and have about a week left to get the rest of the 14.17 miles. I think that’s pretty good for the coldest month of the year. Still this past week I’ve been slacking/sick and hopefully posting this will get me back out there.
The other side of my exercise goal is to go to the gym and lift. While running is good exercise I also play ultimate frisbee. To get better at my explosiveness and have more strength in general I need to be in the gym not just going on long runs. An added benefit of going to the gym is that it will help keep me from getting injured in both running and ultimate. So to keep this goal I want to go to the gym and lift 100 times this year. This means picking up some slack from this month though because I’ve only been 4 times out of 8.3 average I need.
Between these two goals I think I will have my work cut out for me.
Another area I want to focus on is in my personal projects. This has always been a struggle for me. When I get done with my day to day work finding the motivation to work on a side project or task can be hard. Setting goals for this can help me narrow my focus and accomplish a little at a time.
That’s right this post is part of a resolution. I haven’t posted on here since 2016 and I think that shows how stagnant I have been in my projects. So while this isn’t a goal to complete n
projects in a year, it can function as that because if I don’t at least work on the projects then I will have nothing to post about. My goal is to write 2 posts a month. Seems pretty easy except for the fact that there is 1 week left in January and this is my first post, so keep a lookout for the next one!
Finally, my last goal is to read more. I felt like last year I didn’t read at all and I miss it. I have already started this and am enjoying it a lot. I am going to try to read 10 books this year. I was initially thinking 12 to keep it at one a month, but already I am thinking I want the ability to read longer books and not feel the pressure of having to rush through them.
Rather than getting into specifically when I am going to read or run, what I think is more important is making daily decisions based on these goals. When I plan my day I should think about whether I want time for a run or the gym. That means easily knowing where I sit with these goals. To that end as part of a personal project, and hopefully a future blog post, I plan on making dashboard of sorts that shows my progress on these goals. I am using Strava to record my runs, FitBit for my gym days, the blog posts can be counted easily, and books can be a manual list. I’ve already been brainstorming on this but I hope to put this to actual code soon and get it up and running so I can actually use it.
With these lofty goals in mind I hope they help me strive to make myself better this year.


A standalone build of socket.io-client
is exposed automatically by the
socket.io server as /socket.io/socket.io.js
. Alternatively you can
serve the file socket.io.js
found in the dist
folder.
<script src="/socket.io/socket.io.js"></script>
<script>
var socket = io('http://localhost');
socket.on('connect', function(){});
socket.on('event', function(data){});
socket.on('disconnect', function(){});
</script>
// with ES6 import
import io from 'socket.io-client';
const socket = io('http://localhost');
A slim build (without JSON3
, a JSON polyfill for IE6/IE7, and debug
) is also available: socket.io.slim.js
.
Socket.IO is compatible with browserify and webpack (see example there).
Add socket.io-client
to your package.json
and then:
var socket = require('socket.io-client')('http://localhost');
socket.on('connect', function(){});
socket.on('event', function(data){});
socket.on('disconnect', function(){});
See API


Horse racing: Storm the Court wins Breeders' Cup Juvenile in upset
Storm the Court fended off a late challenge from fellow longshot Anneau d'Or to win the Breeders' Cup US$2 million Juvenile by a neck in a stunning upset at Santa Anita Park on Friday.
ARCADIA, Calif.: Storm the Court fended off a late challenge from fellow longshot Anneau d'Or to win the Breeders' Cup US$2 million Juvenile by a neck in a stunning upset at Santa Anita Park on Friday.
Dennis' Moment, the 4-5 favourite, stumbled as he left the gate from his position on the inside post and ended up finishing last.
That opened the door to the other 2-year olds and 45-1 Storm the Court took full advantage as jockey Flavien Prat managed to maintain the lead he built up early in the race even as 25-1 Anneau d'Or closed quickly down the stretch.
Wrecking Crew finished third in the 1-1/16 mile race on dirt, which is often seen as a preview of contenders in next year's Triple Crown races.
"All of us are extremely excited about this," Storm the Court owner Justin Border said.
"Special thanks to Flavien for sticking with a horse with such a big heart and on behalf of all the owners and partners of Storm the Court, we're proud to be on his team," he said.
"He just represents a lot of good things with racing."
Santa Anita Park has been under scrutiny for a spate of horse deaths this year but no horses were injured during the nine races on Friday, which played out before a crowd of 41,243.
Racing resumes on Saturday, highlighted by the US$6 million Breeders' Cup Classic.
(Editing by Sandra Maler)


will_deutsch_jewish_art_challah_shabbat_jews.jpg BUY PRINT
Perhaps Rap’s biggest contribution to the spoken word was the phonic device ‘ah’. This tool made it possible to rhyme words that end in -er with words that end in -ou and occasionally could be used to create entirely new words. For example in Jay-Z’s 1998 single ‘Can I Get A…’ he speaks the following words:
“Do you need a ball-ah
To go shopping at the mall-ah
Brag, tell your friends what I bought y-ah”
Brilliantly, three dissimilar words are brought together by one sound. Unfortunately, I am not rapper. As this is the case I found it very hard to rhyme anything with ‘Challah’, save for one word in the second to last line of the following sonnet I wrote:
Oh delicious loaves of braided bread
Both are uncovered on Friday night as a group
And are quickly torn apart instead
To be used as mops for sauce and soup
Come Saturday morning there is only one loaf left
It will get exactly what it deserves
So into slices it is cleft
and covered with butter and preserves
After all of this, should any remain
Remember to keep it in boxes or bags with covers
By all means do not refrain
From using it to make sandwiches with leftovers.
Whether you enjoy Kabbalat Shabbat, the torah service or Havdallah
Come the weekend, it’s hard to argue with a good ol’ piece of Challah.


If you are providing App Inventor as a service to other users, your privacy policy and terms of service should go here.


Optical images of air-cut/air-healed and air cut/water-healed p(MMA/nBA) copolymers as a function of time and the corresponding tensile analysis. Self-healing of 50/50 p(MMA/nBA) copolymers damaged in air and healed in ambient (A1–D1) and aqueous (A2–D2) environments. Tensile analysis of undamaged/damaged cycle (A3) and air/water-healed copolymer films at 30 (B3), 90 (C3), and 150 (D3) min.


Freebie alert: How to get 50,000 email subscribers in 8 months
Noah Kagan
December 17, 2014
This video will show you the exact steps I took to grow my blog and how you can do the same
In the past couple of months, I've done a couple of presentations for Hubspot and others big companies sharing the story of how I got 50,000 email subscribers for my personal blog Okdork in only 8 months.
People raved about how much they learned.
Today, I want to share that exact presentation with you ... for free.

Here's a super quick preview of what it looks like:
Ready to get the entire value-packed 30-minute video and start growing your mailing list?
Get it NOW in 3 easy steps:
- Install SumoMe (the free toolkit to grow your business) on your site. This is 100% FREE and takes less than a minute. If you already have SumoMe on your site, go to step 2.
- Click "Get This" at the bottom of this page or go here.
- Log in with your SumoMe account information and enjoy :-)
If you're having any trouble installing SumoMe, go here.
So why am I requiring you to install SumoMe to get this video?
Because I honestly believe that SumoMe will significantly improve your business.
It'll get you more email subscribers, more traffic, and you'll be joining 20,000 other sites using SumoMe including theCHIVE, JeffGordon.com, and many more.
Did I forget to mention? SumoMe is 100% free (seriously) and works on every single site :-)
Ready to get your own 50,000 email subscribers? First install SumoMe and then go here to watch this presentation NOW!
25 Comments
Most Helpful ▼ / Most Recent