Artifact API¶
Note
This guide assumes you have performed the steps in the Moving Pictures tutorial. The table.qza
and sample-metadata.tsv
files generated in that tutorial are used here.
The Artifact API is a Python 3 application programmer interface (API) for QIIME 2. The Artifact API supports interactive computing with QIIME 2 using the Python 3 programming language. This API is intended for advanced/technical users. The Artifact API has been optimized for use in the Jupyter Notebook, which is currently our primary target for use of this API. The Artifact API is a part of the QIIME 2 framework; no additional software needs to be installed to use it. This API is automatically generated, and its availability depends on which QIIME 2 plugins are currently installed. To see this in action, begin by uninstalling the q2-feature-table
plugin.
conda uninstall q2-feature-table
Then, open a Python interpreter such as IPython and enter the following command. You should get an error message telling you that the plugin you’re trying to access is not available. Leave the interpreter by typing exit
.
>>> from qiime2.plugins import feature_table
ImportError: cannot import name 'feature_table'
>>> exit
Next, reinstall the q2-feature-table
and q2-diversity
plugins (q2-diversity
was uninstalled automatically when we uninstalled q2-feature-table
above because it depends on q2-feature-table
).
conda install --override-channels -c qiime2 -c defaults q2-feature-table q2-diversity
Open your interpreter, and you should now be able to import this plugin:
>>> from qiime2.plugins import feature_table
We’ll now explore some of the same methods and visualizers introduced in the Moving Pictures tutorial, this time in the Python interpreter instead of the command line interface. First, we’ll load a QIIME 2 Artifact
, in this case a feature table. We’ll then pass that to the q2-feature-table
plugin’s rarefy
method, which will return a new Artifact.
>>> from qiime2 import Artifact
>>> unrarefied_table = Artifact.load('table.qza')
>>> rarefy_result = feature_table.methods.rarefy(table=unrarefied_table, sampling_depth=100)
>>> rarefied_table = rarefy_result.rarefied_table
While we recommend working with QIIME 2 Artifacts
directly, it is possible to access the underlying data in one or more compatible views (Python objects/data structures or file formats). For example, you may want to access the rarefied feature table that was just created as a biom.Table
object. You can do this as follows:
>>> import biom
>>> biom_table = rarefied_table.view(biom.Table)
>>> print(biom_table.head())
# Constructed from biom file
#OTU ID L1S105 L1S140 L1S208 L1S257 L1S281
b32621bcd86cb99e846d8f6fee7c9ab8 25.0 31.0 27.0 29.0 23.0
99647b51f775c8ddde8ed36a7d60dbcd 0.0 0.0 0.0 0.0 0.0
d599ebe277afb0dfd4ad3c2176afc50e 0.0 0.0 0.0 0.0 0.0
51121722488d0c3da1388d1b117cd239 0.0 0.0 0.0 0.0 0.0
1016319c25196d73bdb3096d86a9df2f 11.0 17.0 12.0 4.0 2.0
You can also view the artifact’s data as a pandas.DataFrame
object:
>>> import pandas as pd
>>> df = rarefied_table.view(pd.DataFrame)
>>> df.head()
b32621bcd86cb99e846d8f6fee7c9ab8 99647b51f775c8ddde8ed36a7d60dbcd \
L1S105 25.0 0.0
L1S140 31.0 0.0
L1S208 27.0 0.0
L1S257 29.0 0.0
L1S281 23.0 0.0
...
A powerful feature of QIIME 2 is that you can export different types of views from QIIME artifacts as illustrated here, then operate on the resulting data types, and import those data back into QIIME. This is useful if there are some operations that are available on the view’s data type (e.g., the pandas.DataFrame
) that are not available through the QIIME API. An important caveat is that you will lose all artifact provenance in the process, because QIIME can’t track what happens to data outside of QIIME. You can import the pandas.DataFrame
back into a new QIIME artifact as follows:
imported_artifact = Artifact.import_data("FeatureTable[Frequency]", df)
The rarefied_table
artifact can be passed to methods of other QIIME 2 plugins. Here we’ll compute the Observed OTUs alpha diversity metric using the q2-diversity
plugin. The resulting Artifact
will be of type SampleData[AlphaDiversity]
, and we can access a pd.Series
as a view of this Artifact
.
>>> from qiime2.plugins import diversity
>>> alpha_result = diversity.methods.alpha(table=rarefied_table, metric='observed_otus')
>>> alpha_diversity = alpha_result.alpha_diversity
>>> alpha_diversity.view(pd.Series)
L1S105 24
L1S140 19
L1S208 25
L1S257 30
L1S281 29
L1S57 23
L1S76 20
L1S8 17
...
Name: observed_otus, dtype: int64
Finally, we can save our Artifacts
as .qza
files and exit the interpreter as follows:
>>> rarefied_table.save('rare.qza')
'rare.qza'
>>> alpha_diversity.save('oo.qza')
'oo.qza'
>>> exit
Another powerful feature of QIIME 2 is that you can combine interfaces. For example, you could develop a Python script that automatically processes files for you to generate results as we just did, and then perform analysis of those files using the command line interface or the QIIME 2 Studio. For instance, you could now continue your analysis and view some results on the command line as follows:
qiime diversity alpha-group-significance --i-alpha-diversity oo.qza --m-metadata-file sample-metadata.tsv --o-visualization oo-group-significance.qzv


This API is derived by calling wsimport on the ICAT server. To use it see the SOAP manual in the icat.server documentation
Installation and accessing from maven is explained in ICAT Clients Installation.


--- layout: post ---
Affiliated with UCLA?
If you are affiliated with UCLA and would like to receive certification of completion for this workshop, be sure to Log in and Enroll in WI+RE's CCLE site before completing this workshop.
Not affiliated with UCLA?
No problem! All of our workshops and activities are open access and freely available to all! Enjoy the activities!


Toggle navigation
Basics
Why_angular?
What is Angular Js
Two Way Data Binding
Localization
ng Grid
Custom Components
Custom Service
Custom Directive


{% include 'common/resources-head.html' %}
{% include 'common/user/navbar.html' %}
Settings
Notify email
{% include 'common/resources-scripts.html' %}


ECG data from physio.net CEBS database for demo of real-time streaming.
The display shows streaming data for a pair of electrocardiogram sensors, a respiratory band and a seismocardiogram. The scenario is where someone is reported with chest pains and a health worker has attached sensors and is seeking a diagnosis from a remote cardiac specialist. The Arena Web Hub uses WebSockets for signalling events, property updates and for invoking actions and receiving the responses. The HTTP and Web Sockets connections are encrypted using transport layer security. A secure JSON Web Token is used for access control. The Web Hub automatically validates data against the data model in the thing description.


---
layout: null
section-type: about
title: About
---
It appears you are using an Adblocking technology!
## About
Welcome to my site! My name is Nick, and I'm a Junior at Ball State University. Programming is more than
just a hobby of mine, and I put together this site to demonstrate just that. I am currently working with
the Ball State University Digital Corps, and I am learning fast! My role at the Corps has me working with both front end
and back end development. Some technologies I am actively exploring are: PHP, SQL, Angular JS, Android, and iOS.
Please be sure to check out my resume and take a look around.
Special thanks to everyone on Github who contributed to the personal theme!


We appreciate your help, and will get back to you at the e-mail address you provided.
[ Close window ]


Simulative Adaptive Control Theory.
View on GitHub
Matrix set&get
Matrix dimensions
Matrix eigenvalues
Matrix kernel,pow,rank,generalvector
Matrix jordan normal transform
Controllability, Observability Matrix
Hautus Controllability and Observability Matrix
Check Stability of Eigenvalues (TODO)
Matrix operations


{% extends "authome/default.html" %} {% block title%}Email sign in -- Please input email verification code{% endblock title%} {% block real_content %}


Grid Column Width Initialization
All columns are provided pixel width
Some columns are provided pixel width, the others are auto
Some columns are provided too much width, the others are auto
Some columns are provided percentage width
Some columns are provided percentage width with total 100%
Some columns are provided too much percentage width
Mixed up: px, em, percentage, auto
Grid of autoWidth
AutoResize column width
Create grid with display: none
All columns are provided pixel width
Some columns are provided pixel width, the others are auto
Some columns are provided too much width, the others are auto
Some columns are provided percentage width
Some columns are provided too much percentage width
Mixed up: px, em, percentage, auto


Webinar: On Semiconductor presents Power over Ethernet (PoE)
by Alun WilliamsPower over Ethernet (PoE) is the subject of the next webinar on Electronics Weekly, hosted by two experts from On Semiconductor, taking place at 10:30am (UK time) on 28 November 2019.
This webinar will cover an introduction to Power over Ethernet, namely briefly discuss the basics of power transfer and its characteristics, and the stages of the power initialization cycle (detection, classification, inrush limiting).
It will also highlight the new features and capabilities of 802.3bt, and the ON Semiconductor PoE products that are 802.3bt capable, with their accompanying reference designs and evaluation boards.
Learn more about the themes covered in the webinar here.
The presenters are: Mike Sandyck (Product Marketing Manager, ON Semiconductor) and Joris Lemahieu (Applications Engineer in the Energy Management Business Unit, On Semiconductor).
Webinar details:
Date: 28 November 2019
Time: 10:30am (UK Time)
Length: 1 hour
The event is free to attend.
The context for the webinar is that growing demand for higher power capability of the Power over Ethernet resulted in the new IEEE 802.3bt standard, published in October 2018.


Here is a subtitle for this table
| Village ID | Approved Family Category | NIC No | Date | Name Of Wife | Name Of Husband | Address | DOB | Age at the time of Marriage | Job Status | Education Level | Address | Number Of Living Children | Pregnancy details | Family Planning Methods details | Safe For Rubella | Date of cervical mucoustest | Other Details | Number Of Young Children | ||||||||||||||
| Pregnancy | Result | 1 | 2 | 3 | 4 | |||||||||||||||||||||||||||
| 1 | 2 | 3 | 4 | 1 | 2 | 3 | 4 | Method | Date | Method | Date | Method | Date | Method | Date | |||||||||||||||||
| {{family.village_id}} | {{family.Approved_family_category}} | {{family.Identity_number}} | {{family.Date | date: 'yyyy/MM/dd' }} | {{family.Name_of_wife}} | {{family.Name_of_husband}} | {{family.Address}} | {{family.Date_of_birth | date: 'yyyy/MM/dd' }} | {{family.Age_at_the_time_of_marriage}} | {{family.Job_status}} | {{family.Education_level}} | {{family.Number_of_living_children}} | {{family.Pregnancy_details__Pregnancy__First}} | {{family.Pregnancy_details__Pregnancy__Second}} | {{family.Pregnancy_details__Pregnancy__Third}} | {{family.Pregnancy_details__Pregnancy__Fourth}} | {{family.Pregnancy_details__Result__First}} | {{family.Pregnancy_details__Result__Second}} | {{family.Pregnancy_details__Result__Third}} | {{family.Pregnancy_details__Result__Fourth}} | {{family.Family_planning_methods__First__Method}} | {{family.Family_planning_methods__First__Date | date: 'yyyy/MM/dd' }} | {{family.Family_planning_methods__second__Method}} | {{family.Family_planning_methods__second__Date | date: 'yyyy/MM/dd' }} | {{family.Family_planning_methods__third__Method}} | {{family.Family_planning_methods__third__Date | date: 'yyyy/MM/dd' }} | {{family.Family_planning_methods__fourth__Method}} | {{family.Family_planning_methods__fourth__Date | date: 'yyyy/MM/dd' }} | {{family.Safeforrubella}} | {{family.Dateofcervicalmucoustest}} | {{family.Otherdetails}} | {{family.numberofyoungchildren}} |
Here is a subtitle for this table
| ID | Name | Country | City | Salary |
|---|---|---|---|---|
| 1 | Dakota Rice | Niger | Oud-Turnhout | $36,738 |
| 2 | Minerva Hooper | Curaçao | Sinaai-Waas | $23,789 |
| 3 | Sage Rodriguez | Netherlands | Baileux | $56,142 |
| 4 | Philip Chaney | Korea, South | Overland Park | $38,735 |
| 5 | Doris Greene | Malawi | Feldkirchen in Kärnten | $63,542 |
| 6 | Mason Porter | Chile | Gloucester | $78,615 |


The first Friday night each month at JavaJam is a special night. Join us from 8pm to 11pm for some music you won't want to miss.
Eagles performs with their classical music.
CDs are now available.
A timeless classic from George Michael
Old songs.
Old stories.
CDs are now available


College Survey
Title:
First Name:
Last Name:
Address:
City:
County:
Zip code:
Country:
Check your gender:
Male
Female
Check your current college year:
Freshman
Sophomore
Junior
Senior
Do you plan to do a Masters/Phd?
Yes
No


{{employee.first_name}} {{employee.last_name}}
Employee ID
First Name
Last Name
Email Address
{{employee.id}}
{{employee.first_name}}
{{employee.last_name}}
{{employee.email}}


By utilising the power of Natural Language Processing and data gathered from test letters we have developed an online reference letter analyser.


---
title: Practical - Branch and Merge with Git
layout: presentation
---
# Computational Science Seminar
### Branching and merging with Git
Will Usher, Tom Russell & Roald Lemmen
---
# Agenda
1. Introduction
1. Introduction to git
1. Practical 1 (30 min)
1. Branching and merging
1. Practical 2 (45 min)
1. Next steps
---
## Resources
These slides are available from:
- https://nismod.github.io/presentations/git-branching-merging.html
An introduction to Git is available from:
- https://nismod.github.io/presentations/a-short-intro-to-git.html
Further resources are available from the website:
- https://nismod.github.io/git-novice/
A list of commands used in the session is available for quick reference:
- https://nismod.github.io/git-novice/commands/
---
# Recap
* Session will introduce version control, and move onto more advanced topics of
branching and merging
* 2 hours available for both theory and practice
* Version control (and git in particular) has a steep learning curve – do ask
for help getting started
* There are many resources for self learning
* Software Carpentry
* Courses within the University of Oxford / Lynda.com
* The Research Support team in SOGE
---
## What is Git?
* version control system
* keep track of changes
* Other examples:
* File naming: program_v1.py, program_v2.py
* Microsoft Word Track changes
* Other repository systems such as: Subversion (SVN) or Concurrent Version System (CVS)
---
## The git architecture
* The Git 'Three-tree-architecture'
![Three tree architecture](../fig/three-tree-commit.png)
---
## The git workflow
- **commit**
a small set of changes, which accumulate to make a **history** of commits
--
- **repository**
a place for a project
--
- **remote** repository
a place to share a project
--
- **branch**
a way to separate work on new versions, bug-fixes or features
--
- **merge**
a way to incorporate changes from one branch into another
---
## Commits
![Changes Are Saved Sequentially](../fig/play-changes.svg)
---
## Repository
![Stage changes to a repository](../fig/git-repository.svg)
---
## Remote
![Remote Repository After Creation](../fig/git-remote.svg)
---
## Remote
![Remote Repository After remote-add](../fig/git-remote.1.svg)
---
## Remote
![Remote Repository After First Push](../fig/git-remote.2.svg)
---
## Branch
![Different Versions Can be Saved](../fig/versions.svg)
---
## Merge
![Multiple Versions Can be Merged](../fig/merge.svg)
---
## Summary
Starting out
`git init`
`git clone`
--
Committing
`git add ...`
`git commit -m "..."`
--
Information
`git status`
`git log`
---
## Summary
Remotes
`git push`
`git pull`
--
Branches
`git branch ...`
`git merge ...`
`git checkout ...`
--
**......Questions?**
--
...then let's get ready
---
# Practical 1
## Installing Git
Windows:
* Download and install:
`http://git-scm.com/download/win`
Linux (most debian-based distributions)
* Download and install:
`apt-get install git-all`
Others:
https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
---
# Practical 1
## Configuring Git
```
git config --global user.name "Will Usher"
git config --global user.email<EMAIL_ADDRESS>git config --global color.ui "auto"
git config --global core.editor notepad` or alternative editor
```
* These settings are stored in stored in $root/.git/.gitconfig
* The email address should be the same as the one configured in your remote repository (such as Github)
---
# Practical 1
## Line endings
Windows and Mac/Linux handle line endings differently, and we want to be able to
share files between operating systems.
Git has a setting that _should_ let us set a sensible default.
On Windows, set it to `true`:
```bash
git config --global core.autocrlf true
```
On Mac or Linux, set it to `input`:
```bash
git config --global core.autocrlf input
```
---
# Practical 1
## Objectives
* Make sure all computers are setup correctly
* Recap the Git Basics
## Exercise
We are are looking for cool places in Oxford. We would like to ask the community (you!), to help us develop a map of recommendations. This can be anything, from a good bar, restaurant, activity to a museum.
```
Assignment: Add 5 recommendations to the map
```
Gitlab repository: https://gitlab.ouce.ox.ac.uk/mert2014/topic-map.git
Find lat-lon coordinates: http://geojson.io/
---
# Branching and merging
Objectives:
* Gain an understanding of Git commit-identifier and HEAD
* Gain a deeper understanding of branching and merging
* Demonstrate branch, merge and merge conflicts
---
## Commit identifiers (Hash) values in Git
Each commit contains
* Metadata
* File changes
* Parent identifier - SHA (Secure Hash Algorithm)
---
## HEAD in Git
How does git know what branch you are currently on?
* Git keeps a special pointer called HEAD
* HEAD is a reference to the identifier of the last commit in the currently checked-out branch
---
## HEAD in Git
* The HEAD moves forward with each commit
* HEAD helps easily switch your work environment to other branches
![Branching](../fig/git-branching.png)
---
## Basic branching
Create a new branch
`git branch ...`
--
Show branches
`git branch`
--
Checkout a branch
`git checkout ...`
--
Make a change, stage the change and commit
`git add ...`
`git commit -m "..."`
--
(Optional) Change in-between branches
`git checkout ...`
---
## Basic merging
Check out the receiving branch
`git checkout ...`
--
Merge changes into the receiving branch
`git merge ...`
---
## More about merging
Two types of merging:
--
* Fast-forward merge
* If no commits have been made to receiving branch since branching
* Append commits on tip of the receiving branch
* No additional commit will be made
---
# Fast-forward merge
---
# Fast-forward merge
---
## More about merging
* True merge
* If additional commits were made to the receiving branch
* and git can solve the merge by an inbuilt strategy
* Merge commit will be made
---
## More about merging
---
## More about merging
---
## More about merging
* But what if git can't solve the merge?
--
--
* Merge conflicts
* Branches have conflicting modifications in a file
* Error message will pop up (CONFLICT (content): Merge conflict in ...)
* Git marks the conflict in file
---
## Merge conflicts
Three options in case of a merge conflict:
* 1) abort merge to return to stage before merge attempts
`git merge --abort`
--
* 2) solve merge manually (edit temporary file, remove flags and save)
`git add `
`git commit -m "Merged branch manually"`
--
* 3) use merge tool
`git mergetool --tool`
---
## Merge conflicts
* Git will mark the file
```
print('Hello, dog!')
<<<<<<< HEAD
print('Hello, cat!')
=======
>>>>>>> master
```
--
* Which can just be resolved using a standard text editor
--
* Or a more advanced one with support for this, such as Visual Studio Code:
---
# Practical 2
## Objectives:
* Understand the Git workflow
* Practice checkout, commit, branching and merging
* Learn how to resolve merge conflicts
* Learn how to contribute to a Git project
## Exercise
```
Assignment: We would like to ask your help, to rate the contents on the map.
Change the rating to whatever you like, and merge this into the master branch.
```
---
## Git workflow
* https://guides.github.com/introduction/flow/
---
## Git Documentation
`git --help`
Git manual
- https://git-scm.com/docs/git
Git book
- https://git-scm.com/book/en/v2
Cheatsheet from Github
- https://education.github.com/git-cheat-sheet-education.pdf
---
## Thanks!
Questions?
[https://nismod.github.io/presentations/a-short-intro-to-git.html](https://nismod.github.io/presentations/a-short-intro-to-git.html)
<EMAIL_ADDRESS><EMAIL_ADDRESS>roald.lemmen@ouce.ox.ac.uk


Hollywood films are often condemned for stressing style over substance, but that's not a charge that can be levelled at "Apt Pupil," an odd attempt at combining a thriller about Nazism with a disturbing study of a teen gone wrong. Director Bryan Singer's first film since his acclaimed debut "The Usual Suspects," "Pupil" demonstrates Singer's eye for framing shots and his skill in bringing out the best in his stars. Even so, there's something amiss here. Exactly what's wrong is difficult to pinpoint. "Pupil" is crowned by a relentlessly creepy, well-nuanced performance by Ian McKellen as Kurt Dussander, a war criminal who eluded capture 40 years ago and is now alive and well and living in suburbia under the name Arthur Denker. Rather than milk Dussander for easy chills, McKellen fills out the man's psychological profile to demonstrate how his long-dormant violent impulses slowly bubble up to the surface after being reawakened by overly curious high school senior Todd (Brad Renfro). For obvious reasons, Dussander is not itching to relive his glory days and McKellen pulls off the difficult feat of actually making viewers feel sorry for this man who sent hundreds to their deaths. Renfro also hits all the right notes as honor-student Todd slowly and quietly slips into the grip of a dangerous obsession. In some ways, he's even scarier than Dussander because his immaturity makes him less predictable and prone to abrupt mood swings. The film's first hour sets up a potentially riveting look at the contrasts and commonalities of these two men, both of whom have a penchant for fairly twisted mind games. But since "Pupil" is based on a novella by Stephen King, you know there's eventually going to be a whopper of a murder eventually; in this case, the victim is an unlucky transient (played by the excellent Canadian actor Elias Koteas from "Exotica") who calls on Dussander at the wrong time. The rest of the movie is standard body-in-the-basement melodrama, as a meddling guidance counselor (David Schwimmer), Todd's blissfully ignorant parents and various investigators drift in and out of the plot. "Pupil" is exceedingly well-made, beautifully photographed and sharply edited, but it's not difficult to see why it's been sitting on the Sony shelves for so many months (the film bears a 1997 trademark at the end). All the artistry of Singer, Renfro, McKellen and company can't obscure the fact that the movie never seems sure of what it's about or what it wants to say. Is this a cautionary tale about letting sleeping dogs lie? Is it a thriller with a strong homoerotic bent? Is it a story that aims to contrast the horrors of the Holocaust with the trendy anti-everything attitude found in so many of today's kids? "Apt Pupil" wants to be all of these things but has no idea how to pull its various parts together. Instead of leaving viewers shaken the movie is more likely to leave them shaking their heads, wondering exactly what they've been watching for the last two hours. James Sanford
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


Vim documentation: usr_40
main help file*usr_40.txt* For Vim version 7.2. Last change: 2006 Jun 21 VIM USER MANUAL - by Bram Moolenaar Make new commands Vim is an extensible editor. You can take a sequence of commands you use often and turn it into a new command. Or redefine an existing command. Autocommands make it possible to execute commands automatically. |40.1| Key mapping |40.2| Defining command-line commands |40.3| Autocommands Next chapter: |usr_41.txt| Write a Vim script Previous chapter: |usr_32.txt| The undo tree Table of contents: |usr_toc.txt|
*40.1* Key mapping A simple mapping was explained in section |05.3|. The principle is that one sequence of key strokes is translated into another sequence of key strokes.  The simplest form is that one key is mapped to a sequence of keys. Since the function keys, except <F1>, have no predefined meaning in Vim, these are a good choice to map. Example: :map <F2> GoDate: <Esc>:read !date<CR>kJ This shows how three modes are used. After going to the last line with "G", the "o" command opens a new line and starts Insert mode. The text "Date: " is inserted and <Esc> takes you out of insert mode. Notice the use of special keys inside <>. This is called angle bracket notation. You type these as separate characters, not by pressing the key itself. This makes the mappings better readable and you can copy and paste the text without problems. The ":" character takes Vim to the command line. The ":read !date" command reads the output from the "date" command and appends it below the current line. The <CR> is required to execute the ":read" command. At this point of execution the text looks like this: Date: Fri Jun 15 12:54:34 CEST 2001 Now "kJ" moves the cursor up and joins the lines together. To decide which key or keys you use for mapping, see |map-which-keys|. MAPPING AND MODES The ":map" command defines remapping for keys in Normal mode. You can also define mappings for other modes. For example, ":imap" applies to Insert mode. You can use it to insert a date below the cursor: :imap <F2> <CR>Date: <Esc>:read !date<CR>kJ It looks a lot like the mapping for <F2> in Normal mode, only the start is different. The <F2> mapping for Normal mode is still there. Thus you can map the same key differently for each mode. Notice that, although this mapping starts in Insert mode, it ends in Normal mode. If you want it to continue in Insert mode, append an "a" to the mapping. Here is an overview of map commands and in which mode they work: :map Normal, Visual and Operator-pending :vmap Visual :nmap Normal :omap Operator-pending :map! Insert and Command-line :imap Insert :cmap Command-line Operator-pending mode is when you typed an operator character, such as "d" or "y", and you are expected to type the motion command or a text object. Thus when you type "dw", the "w" is entered in operator-pending mode. Suppose that you want to define <F7> so that the command d<F7> deletes a C program block (text enclosed in curly braces, {}). Similarly y<F7> would yank the program block into the unnamed register. Therefore, what you need to do is to define <F7> to select the current program block. You can do this with the following command: :omap <F7> a{ This causes <F7> to perform a select block "a{" in operator-pending mode, just like you typed it. This mapping is useful if typing a { on your keyboard is a bit difficult. LISTING MAPPINGS To see the currently defined mappings, use ":map" without arguments. Or one of the variants that include the mode in which they work. The output could look like this: _g :call MyGrep(1)<CR> v <F2> :s/^/> /<CR>:noh<CR>`` n <F2> :.,$s/^/> /<CR>:noh<CR>`` <xHome> <Home> <xEnd> <End> The first column of the list shows in which mode the mapping is effective. This is "n" for Normal mode, "i" for Insert mode, etc. A blank is used for a mapping defined with ":map", thus effective in both Normal and Visual mode. One useful purpose of listing the mapping is to check if special keys in <> form have been recognized (this only works when color is supported). For example, when <Esc> is displayed in color, it stands for the escape character. When it has the same color as the other text, it is five characters. REMAPPING The result of a mapping is inspected for other mappings in it. For example, the mappings for <F2> above could be shortened to: :map <F2> G<F3> :imap <F2> <Esc><F3> :map <F3> oDate: <Esc>:read !date<CR>kJ For Normal mode <F2> is mapped to go to the last line, and then behave like <F3> was pressed. In Insert mode <F2> stops Insert mode with <Esc> and then also uses <F3>. Then <F3> is mapped to do the actual work. Suppose you hardly ever use Ex mode, and want to use the "Q" command to format text (this was so in old versions of Vim). This mapping will do it: :map Q gq But, in rare cases you need to use Ex mode anyway. Let's map "gQ" to Q, so that you can still go to Ex mode: :map gQ Q What happens now is that when you type "gQ" it is mapped to "Q". So far so good. But then "Q" is mapped to "gq", thus typing "gQ" results in "gq", and you don't get to Ex mode at all. To avoid keys to be mapped again, use the ":noremap" command: :noremap gQ Q Now Vim knows that the "Q" is not to be inspected for mappings that apply to it. There is a similar command for every mode: :noremap Normal, Visual and Operator-pending :vnoremap Visual :nnoremap Normal :onoremap Operator-pending :noremap! Insert and Command-line :inoremap Insert :cnoremap Command-line RECURSIVE MAPPING When a mapping triggers itself, it will run forever. This can be used to repeat an action an unlimited number of times. For example, you have a list of files that contain a version number in the first line. You edit these files with "vim *.txt". You are now editing the first file. Define this mapping: :map ,, :s/5.1/5.2/<CR>:wnext<CR>,, Now you type ",,". This triggers the mapping. It replaces "5.1" with "5.2" in the first line. Then it does a ":wnext" to write the file and edit the next one. The mapping ends in ",,". This triggers the same mapping again, thus doing the substitution, etc. This continues until there is an error. In this case it could be a file where the substitute command doesn't find a match for "5.1". You can then make a change to insert "5.1" and continue by typing ",," again. Or the ":wnext" fails, because you are in the last file in the list. When a mapping runs into an error halfway, the rest of the mapping is discarded. CTRL-C interrupts the mapping (CTRL-Break on MS-Windows). DELETE A MAPPING To remove a mapping use the ":unmap" command. Again, the mode the unmapping applies to depends on the command used: :unmap Normal, Visual and Operator-pending :vunmap Visual :nunmap Normal :ounmap Operator-pending :unmap! Insert and Command-line :iunmap Insert :cunmap Command-line There is a trick to define a mapping that works in Normal and Operator-pending mode, but not in Visual mode. First define it for all three modes, then delete it for Visual mode: :map <C-A> /---><CR> :vunmap <C-A> Notice that the five characters "<C-A>" stand for the single key CTRL-A. To remove all mappings use the |:mapclear| command. You can guess the variations for different modes by now. Be careful with this command, it can't be undone. SPECIAL CHARACTERS The ":map" command can be followed by another command. A | character separates the two commands. This also means that a | character can't be used inside a map command. To include one, use <Bar> (five characters). Example: :map <F8> :write <Bar> !checkin %<CR> The same problem applies to the ":unmap" command, with the addition that you have to watch out for trailing white space. These two commands are different: :unmap a | unmap b :unmap a| unmap b The first command tries to unmap "a ", with a trailing space. When using a space inside a mapping, use <Space> (seven characters): :map <Space> W This makes the spacebar move a blank-separated word forward. It is not possible to put a comment directly after a mapping, because the " character is considered to be part of the mapping. You can use |", this starts a new, empty command with a comment. Example: :map <Space> W| " Use spacebar to move forward a word MAPPINGS AND ABBREVIATIONS Abbreviations are a lot like Insert mode mappings. The arguments are handled in the same way. The main difference is the way they are triggered. An abbreviation is triggered by typing a non-word character after the word. A mapping is triggered when typing the last character. Another difference is that the characters you type for an abbreviation are inserted in the text while you type them. When the abbreviation is triggered these characters are deleted and replaced by what the abbreviation produces. When typing the characters for a mapping, nothing is inserted until you type the last character that triggers it. If the 'showcmd' option is set, the typed characters are displayed in the last line of the Vim window.  Suppose you have done two mappings: :imap aa foo :imap aaa bar Now, when you type "aa", Vim doesn't know if it should apply the first or the second mapping. It waits for another character to be typed. If it is an "a", the second mapping is applied and results in "bar". If it is a space, for example, the first mapping is applied, resulting in "foo", and then the space is inserted. ADDITIONALLY... The <script> keyword can be used to make a mapping local to a script. See |:map-<script>|. The <buffer> keyword can be used to make a mapping local to a specific buffer. See |:map-<buffer>| The <unique> keyword can be used to make defining a new mapping fail when it already exists. Otherwise a new mapping simply overwrites the old one. See |:map-<unique>|. To make a key do nothing, map it to <Nop> (five characters). This will make the <F7> key do nothing at all: :map <F7> <Nop>| map! <F7> <Nop> There must be no space after <Nop>.
*40.2* Defining command-line commands The Vim editor enables you to define your own commands. You execute these commands just like any other Command-line mode command. To define a command, use the ":command" command, as follows: :command DeleteFirst 1delete Now when you execute the command ":DeleteFirst" Vim executes ":1delete", which deletes the first line. Note: User-defined commands must start with a capital letter. You cannot use ":X", ":Next" and ":Print". The underscore cannot be used! You can use digits, but this is discouraged. To list the user-defined commands, execute the following command: :command Just like with the builtin commands, the user defined commands can be abbreviated. You need to type just enough to distinguish the command from another. Command line completion can be used to get the full name. NUMBER OF ARGUMENTS User-defined commands can take a series of arguments. The number of arguments must be specified by the -nargs option. For instance, the example :DeleteFirst command takes no arguments, so you could have defined it as follows: :command -nargs=0 DeleteFirst 1delete However, because zero arguments is the default, you do not need to add "-nargs=0". The other values of -nargs are as follows: -nargs=0 No arguments -nargs=1 One argument -nargs=* Any number of arguments -nargs=? Zero or one argument -nargs=+ One or more arguments USING THE ARGUMENTS Inside the command definition, the arguments are represented by the <args> keyword. For example: :command -nargs=+ Say :echo "<args>" Now when you type :Say Hello World Vim echoes "Hello World". However, if you add a double quote, it won't work. For example: :Say he said "hello" To get special characters turned into a string, properly escaped to use as an expression, use "<q-args>": :command -nargs=+ Say :echo <q-args> Now the above ":Say" command will result in this to be executed: :echo "he said \"hello\"" The <f-args> keyword contains the same information as the <args> keyword, except in a format suitable for use as function call arguments. For example: :command -nargs=* DoIt :call AFunction(<f-args>) :DoIt a b c Executes the following command: :call AFunction("a", "b", "c") LINE RANGE Some commands take a range as their argument. To tell Vim that you are defining such a command, you need to specify a -range option. The values for this option are as follows: -range Range is allowed; default is the current line. -range=% Range is allowed; default is the whole file. -range={count} Range is allowed; the last number in it is used as a single number whose default is {count}. When a range is specified, the keywords <line1> and <line2> get the values of the first and last line in the range. For example, the following command defines the SaveIt command, which writes out the specified range to the file "save_file": :command -range=% SaveIt :<line1>,<line2>write! save_file OTHER OPTIONS Some of the other options and keywords are as follows: -count={number} The command can take a count whose default is {number}. The resulting count can be used through the <count> keyword. -bang You can use a !. If present, using <bang> will result in a !. -register You can specify a register. (The default is the unnamed register.) The register specification is available as <reg> (a.k.a. <register>). -complete={type} Type of command-line completion used. See |:command-completion| for the list of possible values. -bar The command can be followed by | and another command, or " and a comment. -buffer The command is only available for the current buffer. Finally, you have the <lt> keyword. It stands for the character <. Use this to escape the special meaning of the <> items mentioned. REDEFINING AND DELETING To redefine the same command use the ! argument: :command -nargs=+ Say :echo "<args>" :command! -nargs=+ Say :echo <q-args> To delete a user command use ":delcommand". It takes a single argument, which is the name of the command. Example: :delcommand SaveIt To delete all the user commands: :comclear Careful, this can't be undone! More details about all this in the reference manual: |user-commands|.
*40.3* Autocommands An autocommand is a command that is executed automatically in response to some event, such as a file being read or written or a buffer change. Through the use of autocommands you can train Vim to edit compressed files, for example. That is used in the |gzip| plugin. Autocommands are very powerful. Use them with care and they will help you avoid typing many commands. Use them carelessly and they will cause a lot of trouble. Suppose you want to replace a datestamp on the end of a file every time it is written. First you define a function: :function DateInsert() : $delete : read !date :endfunction You want this function to be called each time, just before a file is written. This will make that happen: :autocmd FileWritePre * call DateInsert() "FileWritePre" is the event for which this autocommand is triggered: Just before (pre) writing a file. The "*" is a pattern to match with the file name. In this case it matches all files. With this command enabled, when you do a ":write", Vim checks for any matching FileWritePre autocommands and executes them, and then it performs the ":write". The general form of the :autocmd command is as follows: :autocmd [group] {events} {file_pattern} [nested] {command} The [group] name is optional. It is used in managing and calling the commands (more on this later). The {events} parameter is a list of events (comma separated) that trigger the command. {file_pattern} is a filename, usually with wildcards. For example, using "*.txt" makes the autocommand be used for all files whose name end in ".txt". The optional [nested] flag allows for nesting of autocommands (see below), and finally, {command} is the command to be executed. EVENTS One of the most useful events is BufReadPost. It is triggered after a new file is being edited. It is commonly used to set option values. For example, you know that "*.gsm" files are GNU assembly language. To get the syntax file right, define this autocommand: :autocmd BufReadPost *.gsm set filetype=asm If Vim is able to detect the type of file, it will set the 'filetype' option for you. This triggers the Filetype event. Use this to do something when a certain type of file is edited. For example, to load a list of abbreviations for text files: :autocmd Filetype text source ~/.vim/abbrevs.vim When starting to edit a new file, you could make Vim insert a skeleton: :autocmd BufNewFile *.[ch] 0read ~/skeletons/skel.c See |autocmd-events| for a complete list of events. PATTERNS The {file_pattern} argument can actually be a comma-separated list of file patterns. For example: "*.c,*.h" matches files ending in ".c" and ".h". The usual file wildcards can be used. Here is a summary of the most often used ones: * Match any character any number of times ? Match any character once [abc] Match the character a, b or c . Matches a dot a{b,c} Matches "ab" and "ac" When the pattern includes a slash (/) Vim will compare directory names. Without the slash only the last part of a file name is used. For example, "*.txt" matches "/home/biep/readme.txt". The pattern "/home/biep/*" would also match it. But "home/foo/*.txt" wouldn't. When including a slash, Vim matches the pattern against both the full path of the file ("/home/biep/readme.txt") and the relative path (e.g., "biep/readme.txt"). Note: When working on a system that uses a backslash as file separator, such as MS-Windows, you still use forward slashes in autocommands. This makes it easier to write the pattern, since a backslash has a special meaning. It also makes the autocommands portable. DELETING To delete an autocommand, use the same command as what it was defined with, but leave out the {command} at the end and use a !. Example: :autocmd! FileWritePre * This will delete all autocommands for the "FileWritePre" event that use the "*" pattern. LISTING To list all the currently defined autocommands, use this: :autocmd The list can be very long, especially when filetype detection is used. To list only part of the commands, specify the group, event and/or pattern. For example, to list all BufNewFile autocommands: :autocmd BufNewFile To list all autocommands for the pattern "*.c": :autocmd * *.c Using "*" for the event will list all the events. To list all autocommands for the cprograms group: :autocmd cprograms GROUPS The {group} item, used when defining an autocommand, groups related autocommands together. This can be used to delete all the autocommands in a certain group, for example. When defining several autocommands for a certain group, use the ":augroup" command. For example, let's define autocommands for C programs: :augroup cprograms : autocmd BufReadPost *.c,*.h :set sw=4 sts=4 : autocmd BufReadPost *.cpp :set sw=3 sts=3 :augroup END This will do the same as: :autocmd cprograms BufReadPost *.c,*.h :set sw=4 sts=4 :autocmd cprograms BufReadPost *.cpp :set sw=3 sts=3 To delete all autocommands in the "cprograms" group: :autocmd! cprograms NESTING Generally, commands executed as the result of an autocommand event will not trigger any new events. If you read a file in response to a FileChangedShell event, it will not trigger the autocommands that would set the syntax, for example. To make the events triggered, add the "nested" argument: :autocmd FileChangedShell * nested edit EXECUTING AUTOCOMMANDS It is possible to trigger an autocommand by pretending an event has occurred. This is useful to have one autocommand trigger another one. Example: :autocmd BufReadPost *.new execute "doautocmd BufReadPost " . expand("<afile>:r") This defines an autocommand that is triggered when a new file has been edited. The file name must end in ".new". The ":execute" command uses expression evaluation to form a new command and execute it. When editing the file "tryout.c.new" the executed command will be: :doautocmd BufReadPost tryout.c The expand() function takes the "<afile>" argument, which stands for the file name the autocommand was executed for, and takes the root of the file name with ":r". ":doautocmd" executes on the current buffer. The ":doautoall" command works like "doautocmd" except it executes on all the buffers. USING NORMAL MODE COMMANDS The commands executed by an autocommand are Command-line commands. If you want to use a Normal mode command, the ":normal" command can be used. Example: :autocmd BufReadPost *.log normal G This will make the cursor jump to the last line of *.log files when you start to edit it. Using the ":normal" command is a bit tricky. First of all, make sure its argument is a complete command, including all the arguments. When you use "i" to go to Insert mode, there must also be a <Esc> to leave Insert mode again. If you use a "/" to start a search pattern, there must be a <CR> to execute it. The ":normal" command uses all the text after it as commands. Thus there can be no | and another command following. To work around this, put the ":normal" command inside an ":execute" command. This also makes it possible to pass unprintable characters in a convenient way. Example: :autocmd BufReadPost *.chg execute "normal ONew entry:\<Esc>" | \ 1read !date This also shows the use of a backslash to break a long command into more lines. This can be used in Vim scripts (not at the command line). When you want the autocommand do something complicated, which involves jumping around in the file and then returning to the original position, you may want to restore the view on the file. See |restore-position| for an example. IGNORING EVENTS At times, you will not want to trigger an autocommand. The 'eventignore' option contains a list of events that will be totally ignored. For example, the following causes events for entering and leaving a window to be ignored: :set eventignore=WinEnter,WinLeave To ignore all events, use the following command: :set eventignore=all To set it back to the normal behavior, make 'eventignore' empty: :set eventignore=
Next chapter: |usr_41.txt| Write a Vim script Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl: top - main help file


backwards compatable postMessage demo
This page is hosted on onlineaspect.com.
Send "hello world" message from parent to child
This script enables cross domain communication between frames on different frames. We use window.postMessage if possible, and fall back on a location.hash trick if that fails.


Centurion Tiku:
I, Tiku, am a Centurion, charged with guarding Orc Village. remember, honor only comes to those with a firm hand!
"Who is the Lord of the manor and what is the tax rate?"
Quest


Widget 1 test case
WIDGET 1: Alert, alertdialog, dialog, and status must have accessible name
Alert dialog 2
Dialog 2


Resource
Online
Wikipedia C++
Download
C++ Quick Reference Sheet (Cheat Sheet) [.pdf]
C++ Quick Reference Sheet (Cheat Sheet) [backup]
C/C++ Cheat Sheet (v1) by Jared Schiffman [.pdf]
C/C++ Cheat Sheet (v1) by Jared Schiffman [backup]
C/C++ Cheat Sheet (For your reference; this sheet will also be included in exams) [.pdf]
C/C++ Cheat Sheet (For your reference; this sheet will also be included in exams) [backup]
How to Program in C++ by Matt Mahoney
C++ QUICK REFERENCE by Matt Mahoney
STL Quick Reference 1.29 by Yotam Medini [.pdf]
STL Quick Reference 1.29 by Yotam Medini [backup]
C++ Containers Cheat Sheet
C++ Iterators & Algorithms Cheat Sheet
Shifting from C to C++ strings
Cheat Sheet: Unicode-enabling Microsoft C/C++ Source Code
Understanding C++/Quick Reference
CPPTEST CHEATSHEET by Shane McDonald [.pdf]
CPPTEST CHEATSHEET by Shane McDonald [backup]
Related
.NET
ASP
C
C#
GDB
MFC
Objective-C
OpenMP
Qt
Visual Basic
<<<<<<< HEAD
HOME
=======
HOME
>>>>>>> faa6aaf237eae4895460e74eebaa130feb27079a


- REPLACE
- PREFERENCE
（・ω・＠）
Please give me a FILE (csv / tsv / xlsx / tbx) to eat♪
Click SELECT zone below, or just drop a file into it!
（・ω・＠）
You also can input terms with delimiter (tab or 2 colons"::"),
and click the REPLACE button★
（・ω・＠）
| Word | ||
| Excel | ||
| TBX | ||
{{ Processing }}
{{ Filename }}
| SOURCE | TARGET |
|---|
Sorry, your Word Version is not supported... (T-T @)


Introduction
The docbook-html5 project is a set of XSLT stylesheets for transforming DocBook 5 XML into (X)HTML5 documents, developed as part of the Research & Education Space project in order to produce specific mark-up from our DocBook 5 sources.
The stylesheets have no direct connection to the extremely comprehensive official DocBook XSL stylesheets, and don't have the same level of element coverage, but you may find them easier to modify to suit your needs than the official XSL package thanks to to their relative simplicity.
Usage
If your XSLT processor supports it, docbook-html5 can be used either remotely, or you can include a copy in your project (for example, as a git submodule), and used locally.
Examples given here use xsltproc, an open source cross-platform XSLT processor included with most Linux and Unix distributions.
To use docbook-html5 remotely:—
$ xsltproc --xinclude -o OUTPUT.html http://bbcarchdev.github.io/docbook-html5/docbook-html5.xsl INPUT.xml
To use docbook-html5 locally, simply specify the filesystem path to
docbook-html5.xsl
in place of the URL:—
$ xsltproc --xinclude --nonet -o OUTPUT.html http://bbcarchdev.github.io/docbook-html5/docbook-html5.xsl INPUT.xml
When using the stylesheets locally, the --nonet option may be supplied, which prevents xsltproc from performing any requests to remote network hosts.
Parameters
The stylesheets support a number of parameters which alter the output which is produced.
- html.linksfile
-
Specifies the URL of an XML file whose contents will be substituted
into the output document’s
<head>
element, and typically contains<link>
and<meta>
elements. Seelinks-sample.xml
for an example. Note that the URL specified will be interpreted as relative to the stylesheets URL, and so you may need to specify an absolutefile:///
URL. - html.navfile
-
Specifies the URL of an XML file whose contents will be substituted
into the output document’s global
<nav>
element (which appears, if this parameter is specified, within the document-level<header>
). Seenav-sample.xml
for an example. Note that the URL specified will be interpreted as relative to the stylesheets URL, and so you may need to specify an absolutefile:///
URL. - html.ie78css
-
Specifies the URL of the CSS stylesheet which targets Microsoft
Internet Explorer 7 and 8, and will be referenced by
a
<link>
element within the HTML document’s<head>
element, and is emitted as a conditional comment which is ignored by other web browsers.
Example
$ xsltproc --xinclude \ -o OUTPUT.html \ --param html.linksfile "'file://`pwd`/links-sample.xml'" \ --param html.navfile "'file://`pwd`/nav-sample.xml'" \ --param html.ie78css "'http://docs.example.com/stylesheets/ie78.css'" \ /path/or/url/to/docbook-html5/docbook-html5.xsl \ INPUT.xml


Ugly Delicious’ David Chang chomps on marron delights at Gourmet Escape in Margaret River
MARINATE your meat, don’t be afraid of making vegies the “hero”, and for the love of summer, clean your barbecue plate.
Those are the new laws of the barbie according to one of the greatest modern chefs David Chang.
He fronts Netflix’s Ugly Delicious, is the chef behind the famous Momofuku restaurant and revolutionised fine dining by fusing it with street food.
But it’s not just his culinary skills that made him the star attraction at this weekend’s Gourmet Escape in Margaret River. He’s a foodie icon who has also been lauded as GQ’s Man of the Year and made Esquire’s “most influential people of the 21st century” list.
In between dishing up fried chicken on the beach, Chang also got his palate around his favourite Aussie delicacy.
“Marron is my all time favourite crustacean in the world. We serve it in our Sydney restaurant and it’s got to be from WA,” he said.
“This is one of the most beautiful places I’ve even visited. I was here in 2012 but I was a bachelor, now I’m a dad but I can’t wait to bring my family out soon.”
Tourism Minister Paul Papalia was front and centre at Chang’s grill and sampled close to everything from the 150 local producers and wineries inside the Gourmet Village yesterday at Leeuwin Estate. He was thrilled with the turnout despite the heat and compared WA’s visitor numbers to Chang’s popularity.
“People from all over are interested and talking about WA, the numbers and the amount they are spending is only going up,” Mr Papalia said.


POL40300: Computational Methods
Lecture 8 by Nikolai Gad
München, 4. December 2019
Today's lecture
- Practicals
- Guest lecutre on privacy by Domink Huth
- Research ethics in Computational Methods
- Tomorrow's exercise
Practicals
Navigating my slides
Read slides as columns.
Each column contains one "section" of presentation.
- Use arrow keys (⬅ ➡ ⬆ ⬇) to navigate between slides.
- Press Space to navigate to the next slide in the order they were presented.
- Press Esc to get an overview of all slides. And then Esc again to go back to individual slides.
Last week's exercise
- Feedback survey up on Moodle!
- Answers to exercise will be uploaded after lecture.
- Please have a look and bring questions to tutorial tomorrow.
Guest lecture on
Privacy and the General Data Protection Regulation
by
Dominik Huth
Research Ethics
Not only relevant to university research!
Two sides to research ethics:
- What not to do (to participants)
- What research ought to be done
Three approaches (according to Mathew Salganik)
- Social Science: rules-based approach
- Data Science: ad-hoc approach
- Salganik: principles-based approach
Salganik, M. J. (2017). Bit by Bit: Social Research in the Digital Age. Princeton: Princeton University Press.
Specific ethical challenges to computational methods
Increased power to observe and enrol participants in experiments without their consent or awareness.
- Unseen seers (Foucault).
- Unanticipated secondary use.
- Increasing possibilities for researchers to intervene in people's lives.
Two ethical frameworks
Consequentialism
- Focus on ends:
- Take actions that lead to a better world!
- Main influencers: Jeremy Bentham & John Stuart Mill
Deontology
- Focus on means:
- Always do what is right, independent of the consequences!
- Main influencer: Immanual Kant
Consequentialism vs. deontology
- Despite being fundamentally opposites,
- a blend of both is often most useful.
- But often we emphasise one over the other.
- Good framework to clarify different views on ethics.
- Use them to think about your project from both angles.
Four ethical principles
Based on two US reports with guidelines on research ethics:
- Belmont Report (1979)
- Menlo Report (2011)
Principles are not rules!
Respect for persons
Persons are autonomous
⇓
Let people control their own lives
⇓
Informed cconsent
⇓
Participants and not researchers decide what is best for them
Facebook case: Informed consent?
Beneficence
Maximise possible benefits while minimising possible risks.
- Understand possible risks/benefits:
- Probability of adverse effects.
- Severity of possible adverse effects.
- Consider participants as well as non-participants and society.
- Attempt to improve risk/benefit
- Reduce probability of adverse effects.
- Reduce severity of adverse effects if they occur.
- Increase benefit of study.
- Make a decision whether possible benefit is worth the risk:
- Not a simple summation!
- Not only up to researchers to decide.
Justice
Fair dsitribution of risks and benefits.
- Vulnerable groups should be particularly protected.
- Vulnerable people should be explicitly included in research.
- So is random sampling more fair/just?
- Compensation to research participants?
Respect for Law and Public Interest
Specificly added for research on information and communication technologies, and consists of two parrts:
- Compliance:
- Comply with laws and regulations, but also terms of service and contracts.
- Particularly complicated in computational methods.
- But do so critically!
- Transparency-based accountability:
- Openness about goals, methods, and results.
- -> Makes us accountable for what we do.
- Rule-of-thumb: Would you be comfortable with your research procedures being printed on the front page of your local newspaper?


--- layout: post status: publish published: true title: Inline XSD in WSDL with WCF author: display_name: Tomas Restrepo login: tomasr email<EMAIL_ADDRESS>url: http://winterdom.com/ author_login: tomasr author_email<EMAIL_ADDRESS>author_url: http://winterdom.com/ wordpress_id: 706 wordpress_url: http://winterdom.com/2006/10/inlinexsdinwsdlwithwcf date: '2006-10-03 09:09:55 +0000' date_gmt: '2006-10-03 09:09:55 +0000' categories: - WCF - WinFX - Web Services tags: [] comments: - id: 929 author: Jason author_email<EMAIL_ADDRESS>author_url: '' date: '2009-06-19 14:56:32 +0000' date_gmt: '2009-06-19 14:56:32 +0000' content: "I know this is an old article but the WSDL generated isn't correct when you check the flat WSDL the types are not declared the same.\r\n\r\nHere is the flat version\r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \ \r\n\r\nHere is the WCF normal version\r\n\r\n\r\n \r\n \r\n \r\n \r\n \ \r\n \r\n \r\n \r\n\r\n\r\nI think this is what is causing problems in my client with guids been treated as strings but though I would post. Will give more feedback if I find out the reason behind this." - id: 1013 author: Wenning Qiu author_email<EMAIL_ADDRESS>author_url: '' date: '2009-07-02 21:07:45 +0000' date_gmt: '2009-07-02 21:07:45 +0000' content: "I don't think XSD imports should be removed. \r\n\r\nWith XSD imports removed, if related data contracts(container DC and member DC) use different namespaces. WsdlImporter won't be able to import data contracts back using DataContractSerializer." - id: 1263 author: 'WCF Interoperability: flat WSDL - Jos van Dixhoorn - blog community' author_email: '' author_url: http://blogs.infosupport.com/blogs/josd/archive/2010/01/11/wcf-interoperability-flat-wsdl.aspx date: '2010-01-11 19:27:14 +0000' date_gmt: '2010-01-11 19:27:14 +0000' content: "[...] This popular blogpost provides a very simple endpoint behavior to flatten your WSDL and it works like a charm! Note that the WsdlExporter has a property GeneratedWsdlDocuments which returns a ServiceDescriptionCollection. The catch here is that this is a collection System.Web.Services.ServiceDescription instead of System.ServiceModel.Description.ServiceDescription. It took me a while to figure that out. [...]" - id: 1267 author: terry author_email<EMAIL_ADDRESS>author_url: '' date: '2010-01-27 11:30:46 +0000' date_gmt: '2010-01-27 11:30:46 +0000' content: how do you use this in ?? - id: 1268 author: terry author_email<EMAIL_ADDRESS>author_url: '' date: '2010-01-27 11:34:51 +0000' date_gmt: '2010-01-27 11:34:51 +0000' content: "how do you use this in a web service project ??\r\nI see all i need to do is somehow modify the web.config.\r\nI tried using the WCF configuration editor however when selecting \r\n- advanced/extensions/behaviour element extensions/new\r\nIt could not see the type in the assembly which I have placed the class InlineXsdInWsdlBehavior.cs" - id: 1269 author: terry author_email<EMAIL_ADDRESS>author_url: '' date: '2010-01-27 12:20:34 +0000' date_gmt: '2010-01-27 12:20:34 +0000' content: "ok, i worked it out, i needed to implement the BehaviorExtensionElement abstract class thus;\r\n\r\n public class InlineXsdInWsdlBehavior\r\n : BehaviorExtensionElement, IWsdlExportExtension, IEndpointBehavior\r\n \r\n\r\nthen \ implementation is thus;\r\n\r\n public override Type BehaviorType\r\n {\r\n \ get \r\n { \r\n return typeof(InlineXsdInWsdlBehavior); \r\n }\r\n\r\n }\r\n\r\n protected override object CreateBehavior()\r\n \ {\r\n return new InlineXsdInWsdlBehavior();\r\n }\r\n\r\nJob done. works like a charm... other than now im just trying to work out how to get the WSDL to stop importing the xsd types...\r\n\r\nWhich still results in the following line in the WSDL\r\n\r\n\r\n\r\nGerrr!" - id: 1568 author: Tal author_email<EMAIL_ADDRESS>author_url: http://blog.talgiladi.net date: '2010-09-16 15:13:59 +0000' date_gmt: '2010-09-16 15:13:59 +0000' content: "Hi, \r\nHow do I delcare the in web config ( I'm using web application for the service) to use our\r\ncustom impoter?" - id: 1677 author: Sam author_email<EMAIL_ADDRESS>author_url: '' date: '2011-03-10 08:39:59 +0000' date_gmt: '2011-03-10 08:39:59 +0000' content: 'Did it ever occur to you guys that you''re writing code just to make the *IDE* do the job you expected it to do. Common IDE features: Open a file, Save a file, Close, Edit, Import/Export a file, Configure a file, Convert (or Compile) a file... WTF! Project estimates don''t factor-in time for getting the IDE upto scratch. Are we going back to editing autoexec.bat and config.sys too! :-) Crickie mate, wake up.' - id: 1678 author: Sam author_email<EMAIL_ADDRESS>author_url: '' date: '2011-03-10 08:43:01 +0000' date_gmt: '2011-03-10 08:43:01 +0000' content: They've even got a "Save As" button these days where you can choose the type or format of the file you want to write. Hello... is anybody home McFly? ---
I've said in the past that a large part of the apparent complexity of WSDL had nothing to do with WSDL at all; it was rather caused by the inline inclusion of XSDs in the
However, there's one problem with this, and it's interoperability. Even though it's been 3 years since I made that comment, a lot of tools still can't cope with imported XSDs in WSDL, or with WSDL imports (
The default WSDL generator in Windows Communication Foundation does what I think is the right thing by default, and that's generating individual XSD files for schemas (which you can get at using the ?xsd=xsdX syntax) and then importing those in the main WSDL generated. However, because of the interoperability issues, you might need sometimes that pesky WSDL with the inline schemas, and if you are into using the auto-generated WSDL (as most people do), then having to manually grab those WSDL and XSD and modify them by hand is a pain in the neck.
Fortunately, WCF gives us the wonderful IWsdlExportExtension extensiblity point, which I've discussed eariler on, and so makes it perfectly possible to tweak the generated WSDL so that schemas are embedded inline. Here's a sample extension to do just that:
//
// InlineXsdInWsdlBehavior.cs
//
// Author:
// Tomas Restrepo<EMAIL_ADDRESS>//
using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Channels;
using System.ServiceModel.Description;
using System.ServiceModel.Dispatcher;
using System.Text;
using System.Xml;
using System.Xml.Schema;
using System.Web.Services;
using System.Web.Services.Description;
using WsdlDescription = System.Web.Services.Description.ServiceDescription;
namespace Winterdom.ServiceModel.Extensions
{
/// <summary>
/// IEndpointBehavior implementation that will
/// force WCF to generate all schemas inline into the
/// generated WSDL files, instead of as individual files.
/// summary>
public class InlineXsdInWsdlBehavior
: IWsdlExportExtension, IEndpointBehavior
{
#region IWsdlExportExtension Implementation
//
// IWsdlExportExtension Implementation
//
public void ExportContract(
WsdlExporter exporter,
WsdlContractConversionContext context
)
{
// never called
}
public void ExportEndpoint(
WsdlExporter exporter,
WsdlEndpointConversionContext context
)
{
XmlSchemaSet schemaSet = exporter.GeneratedXmlSchemas;
foreach ( WsdlDescription wsdl in exporter.GeneratedWsdlDocuments )
{
//
// Recursively find all schemas imported by this wsdl
// and then add them. In the process, remove any
//
//
List importsList = new List();
foreach ( XmlSchema schema in wsdl.Types.Schemas )
{
AddImportedSchemas(schema, schemaSet, importsList);
}
wsdl.Types.Schemas.Clear();
foreach ( XmlSchema schema in importsList )
{
RemoveXsdImports(schema);
wsdl.Types.Schemas.Add(schema);
}
}
}
#endregion // IWsdlExportExtension Implementation
#region Private Methods
//
// Private Methods
//
/// <summary>
/// Recursively extract all the list of imported
/// schemas
/// summary>
/// <param name="schema">Schema to examineparam>
/// <param name="schemaSet">SchemaSet with all referenced schemasparam>
/// <param name="importsList">List to add imports toparam>
private void AddImportedSchemas(
XmlSchema schema,
XmlSchemaSet schemaSet,
List importsList
)
{
foreach ( XmlSchemaImport import in schema.Includes )
{
ICollection realSchemas =
schemaSet.Schemas(import.Namespace);
foreach ( XmlSchema ixsd in realSchemas )
{
if ( !importsList.Contains(ixsd) )
{
importsList.Add(ixsd);
AddImportedSchemas(ixsd, schemaSet, importsList);
}
}
}
}
/// <summary>
/// Remove any <xsd:imports/> in the schema
/// summary>
/// <param name="schema">Schema to processparam>
private void RemoveXsdImports(XmlSchema schema)
{
for ( int i = 0; i < schema.Includes.Count; i++ )
{
if ( schema.Includes[i] is XmlSchemaImport )
schema.Includes.RemoveAt(i--);
}
}
#endregion // Private Methods
#region IEndpointBehavior Implementation
//
// IContractBehavior Implementation
//
public void AddBindingParameters(
ServiceEndpoint endpoint,
BindingParameterCollection bindingParameters
)
{
// not needed
}
public void ApplyClientBehavior(
ServiceEndpoint endpoint,
ClientRuntime clientRuntime
)
{
// not needed
}
public void ApplyDispatchBehavior(
ServiceEndpoint endpoint,
EndpointDispatcher dispatcher
)
{
// not needed
}
public void Validate(ServiceEndpoint endpoint)
{
// not needed
}
#endregion // IContractBehavior Implementation
} // class InlineXsdInWsdlBehavior
} // namespace Winterdom.ServiceModel.Extensions
This will not get rid, however, of any
Technorati: WCF, Windows Communication Foundation, WCF Extensibility, Web Services, Interoperability, WSDL


--- layout: page title: About header-img: "img/about-bg.png" ---
Web development student out of the north east.


{% load static %} {% load bootstrap %} {% static "images" as baseUrl %}
Dear {{service}}
Name: {{fullname}}
Building: {{building}}
Room: {{suit}}{{letter}}
Email: {{email}}
The above mentioned student has a problem in their room that requires your attention. below it the message they left. Please feel free to reach out to student for further information.
{{problem}}


- RateDriver - Class in com.example.autobot
-
This is a class for RateDriver activity
User can rate driver at this step
- RateDriver() - Constructor for class com.example.autobot.RateDriver
-
- RateDriverTest - Class in com.example.autobot
-
This is the UI test for testing RateDriver
- RateDriverTest() - Constructor for class com.example.autobot.RateDriverTest
-
- ReadableAddress(LatLng, Geocoder) - Method in class com.example.autobot.Request
-
- rebuild_user(DocumentReference, User) - Static method in class com.example.autobot.RebuildTool
-
- rebuildRequest(String, User) - Method in class com.example.autobot.Database
-
This function is to get all information from the RequsetionID and user
* @param RequestID
* @param user
* @return r is the all information of request that can be used from other class
- RebuildRequest(String) - Static method in class com.example.autobot.Extract
-
- RebuildTool - Class in com.example.autobot
-
- RebuildTool() - Constructor for class com.example.autobot.RebuildTool
-
- rebuildUser(String) - Method in class com.example.autobot.Database
-
This function is to get the all information by the username
- RebuildUser(String) - Static method in class com.example.autobot.Extract
-
- recreateActivity() - Method in class com.example.autobot.HomePageActivity
-
recreate homepage activity
- remove_beginning_location() - Method in class com.example.autobot.DriverhomeActivity
-
- request - Static variable in class com.example.autobot.DriveIsGoing
-
- request - Static variable in class com.example.autobot.HomePageActivity
-
- request - Static variable in class com.example.autobot.LoginActivity
-
- Request - Class in com.example.autobot
-
Request class is a information collection of request, we can set and get information of request through the method in this class.
- Request(User) - Constructor for class com.example.autobot.Request
-
- Request() - Constructor for class com.example.autobot.Request
-
- Request(User, LatLng, LatLng) - Constructor for class com.example.autobot.Request
-
- RequestHistoryFragment - Class in com.example.autobot
-
This is a fragment which shows a list of History Requests that user has.
- RequestHistoryFragment() - Constructor for class com.example.autobot.RequestHistoryFragment
-
- reset_Request_Status(String) - Method in class com.example.autobot.Request
-
- resetAcceptTime(Date, Database) - Method in class com.example.autobot.Request
-
reset accept time in database
- resetArriveTime(Date, Database) - Method in class com.example.autobot.Request
-
reset arrive time in database
- resetBadrate(String, Database) - Method in class com.example.autobot.User
-
This is to updata new Badtate to database
- resetbalance(String, Database) - Method in class com.example.autobot.User
-
This is to update new balance to database
- resetCost(double, Database) - Method in class com.example.autobot.Request
-
reset cost in database
- resetEstimateCost(double) - Method in class com.example.autobot.Request
-
- resetGoodrate(String, Database) - Method in class com.example.autobot.User
-
This is to update new Goodrate to database
- resetRequestStatus(String, Database) - Method in class com.example.autobot.Request
-
reset status in database
- resetSendTime(Date) - Method in class com.example.autobot.Request
-
- resetTips(double, Database) - Method in class com.example.autobot.Request
-
reset tips in database
- result - Variable in class com.example.autobot.Scanner
-
- retrieve_request(String, String, LatLng, LatLng, double, String, String, double) - Method in class com.example.autobot.DriverhomeActivity
-
- retrieve_request(String, String, LatLng, LatLng, double, String, String, double) - Method in class com.example.autobot.DriverIsOnTheWayActivity
-
- Rider - Interface in com.example.autobot
-
- RiderBottomSheetFragment - Class in com.example.autobot
-
- RiderBottomSheetFragment() - Constructor for class com.example.autobot.RiderBottomSheetFragment
-
- RiderBottomSheetFragment.BottomSheetListener - Interface in com.example.autobot
-
- RiderWaitDriverAcceptRequest - Class in com.example.autobot
-
Rider wait for driver to accept their order, they can also choose to cancel order at the same time
- RiderWaitDriverAcceptRequest() - Constructor for class com.example.autobot.RiderWaitDriverAcceptRequest
-
- rule - Variable in class com.example.autobot.DriverHomepageTest
-
- rule - Variable in class com.example.autobot.DriverIsGoingTest
-
- rule - Variable in class com.example.autobot.DriverIsOnTheWayTest
-
- rule - Variable in class com.example.autobot.DriverOrderCompleteTest
-
- rule - Variable in class com.example.autobot.HomePageActivityTest
-
- rule - Variable in class com.example.autobot.LoginTest
-
- rule - Variable in class com.example.autobot.MainActivityTest
-
- rule - Variable in class com.example.autobot.OrderInfoTest
-
- rule - Variable in class com.example.autobot.RateDriverTest
-
- rule - Variable in class com.example.autobot.SetPasswordTest
-
- rule - Variable in class com.example.autobot.SignUpActivityTest
-
- rule - Variable in class com.example.autobot.TripCompleteTest
-
- rule - Variable in class com.example.autobot.UCurRequestTest
-


{{#with collection}}
{{ name }}
{{#if description}}
{{{ description }}}
{{/if}}
{{> image image_url=image_url }}
{{#if image_url}}
{{/if}}
{{ creator }}
//
{{#if enable_advanced_controls}}
{{ placesLoadedCount }} of
{{/if}}
{{pluralize place_count "Place"}}
{{#if enable_advanced_controls}}
{{/if}}
{{#if enable_advanced_controls}}
{{/if}}
{{/with}}
{{#if placeList}}
{{#each places}}
{{> quick_place }}
{{/each}}
{{else}}
Show list of places (will reduce speed of website)
{{/if}}
{{#unless collection.creatorUID }}
Collection is missing.
Perhaps collection has been deleted?
{{/unless}}


A Verification Code has been send to your Nominated Email.
We have detected SA as your current Location.
Is this Correct? or Select Below


This is the directive to process the script with a precompiller:
file - name of the script or assembly file containing the precompiler implementation
The shorter alias directive //css_pc can be used in place of the //css_precompiler
Remember that you may need to escape some path characters that conflict with the //css_ delimiters. See Delimiters Escaping section.
| //css_precompiler autoclass.cs; using System; public class Program { .... |


Frequently Asked Questions
What do you write?
I write women's fiction, both in short story and novel form.
What short stories have you written?
I have completed a 20-page short story titled "Four Walls." It is part of a collection of short stories that I'm working on, all with a common thread, different homes and the people who dwell in them.
What novels have you written?
I have a forthcoming novel, "The House on Loden Lake," a dreamy, mysterious book about a woman and spirit coexiting in a house on a lake.
I am currently working on a new book in which the story revolves around a 17th Century Night Clock.


| DOSE: |
20 mg |
oral |
2C-E |
(powder / crystals) |
I like to consider myself fairly experienced in the world of psychedelics, yet I’m no expert, so when a friend of mine texted me and told me she would be getting a hold of some 2C-E my interest was piqued to say the least. I planned on getting the 2C-E and doing it on a Sunday with an old friend of mine who we’ll call “B”.
Sunday rolls around and its finally time to take the plunge. I call B up and tell him to come over whenever is good for him. Along with B I had another friend who was going to join us as a sitter, we’ll call him “T”.  Right after I took my capsule I text T and tell him to come over and chill with B and I. About ten minutes after I take my capsule B decides to take his which is full of 13 milligrams of 2C-E.
B and I sit on my couch for about 15 minutes watching Fear and Loathing in Las Vegas and waiting for T to show up. We begin to lose interest in the movie and decide to take it out because we haven’t been following the plot and B, seeing as how he’d never seen it before, had no idea what was going on. Right when we take it out T shows up at my house. We talk for a bit, the excitement was killing us and about 40 minutes into it I could definitely tell a difference. There was a definite bodyload, I couldn’t find a comfortable position to rest in, along with the bodyload I had the slightest bit of nausea but it was building quickly.
Since T was not tripping with us we decided to watch Eastbound and Down because it’s a favorite of B and mine’s and we thought T would enjoy it to pass the time. About an hour and five minutes is when I begin to notice some visuals around the room, I had nothing to eat beforehand so my come up was a bit quicker than B’s was. I went into the bathroom to take a piss and when I came out I had noticed quite a change. I stood; staring at the carpet for at least 15 minutes, noticing distinct and intricate patterns of what seemed very similar to DNA strands on my carpet. The way the dark and light sections of my carpet appeared there were hexagons that lined up perfectly all over the floor.
I went back to trying to find a comfortable position on the couch and when I came to find one and rested my eyes back upon the television I noticed that the character’s faces were not the same. The seemed much different, almost as if they had melted right there. At this point the nausea was becoming quite pestering, a sudden urge to vomit took over me and I rushed into the bathroom and threw up. Once I finished vomiting I went to wash my hands and when I went to dry them the towel felt extremely dirty and looked almost black but when I took a closer inspection the blackness vanished and the towel returned to its natural white color.
I returned back into the living room but not before first admiring the complexity and intricacies of the DNA strands on the carpet beneath me. I took a seat on the floor and continued watching Eastbound and Down with B and T. By this time B seemed to be also tripping but not nearly on the same level I was. Once again I felt to urge to vomit so I went into my bathroom again and purged, but this time it was a relief, a sense of cleansing throughout my body. After vomiting I felt great, the nausea had completely left me.
Now free of the restraints of my former nausea I decided to go sit on a barstool in my kitchen and stare at the granite that rested upon our counters. I felt as if I could control every little speck of the brown, black, and gold granite. I would see a piece of the counter as a three dimensional cube and suddenly the entire counter was made out of miniature 3-D cubes that were all at my command. As time went on the counter changed from cubes into a canvas for my mind, I had limitless possibilities at my fingertips. The counter then seemed to rise up in a conic shape, out of the flatness that had formerly constrained it, out towards my eyes. The cone retained its golds and browns yet it continued to reach out towards me until I ceased its journey outward.
My focus then shifted from the counter towards my arms. All up and down them were patterns, patterns I couldn’t describe, even to myself. Now focusing on my arm I could see all my veins inside of my arm and with my continued focus they seemed to take the shape of a cross then suddenly they were strewn all about my arm and then suddenly they were a cross again. I then got up to go to the bathroom once more so I could piss. When I came back out I lay down on the floor and stared up at the ceiling. On the ceiling there were hundreds of faces, each one green and displaying either great joy or great sadness. Right at this moment I realized that T was on the last episode of the show which relieved me to be done with television for a while. I was snapped out of my fascination with the faces on the ceiling by my mother’s total gym which I perceived to be someone standing and staring at me out of my peripheral vision.
By now the visuals were dimming and T, B, and I began watching a show called Chowder. The patterns on the show still were interesting but not at all to the degree of an hour or so before. We finished out the day by watching Donnie Darko. The next day I was completely fine, no aftereffects to speak of, no sort of hangover at all. All in all 2C-E is one of my favorite, if not my favorite hallucinogen I’ve done so far and I would definitely recommend it for anyone wanting to try something new. The only thing I would recommend is to take something for nausea after first taking the 2C-E or maybe smoke a little weed to counteract said nausea. Happy tripping :D.0
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.


Come Zom with me!
བོད་ཡིག | 中文
has invited you to Zom.
If you don't have the app, first download & install:
If or when you do have Zom, tap on or scan the QR code below to add your friend.
Learn more about Zom at https://zom.im
Copyright © 2018 Zom. All screenshots © their respective owners. Privacy Policy


First VIS101 Homework
Quote Of the Day
All successful men and women are big dreamers. They imagine what their future could be, ideal in every respect, and then they work every day toward their distant vision, that goal or purpose.” – Brian Tracy
You also might like
Change Quote of the Day
Sort Quotes


anchor
Three Hour Tour
Hi, Ginger
Site
Network
Services
Deployments
Processes
Services
Services
Create a service
Name
Status
Bindings
Created
Actions
frontend
OK
2
3 minutes ago
Delete
inventory
OK
1
4 hours ago
Delete
orders
OK
1
2 days ago
Delete
database
OK
1
3/15/2020
Delete
reviews
Error: No bindings
0
3/15/2020
Delete


My inspiration for this game was that I wanted to make a game that I could play with family and friends anywhere, and not have to worry about bringing the physical copy of the game. As a result, I learned multiplayer networking and started work on this game. For the networking component, it uses Mirror and the Unity Engine. To see the game in action, click here or to view the source code click here.


Items grow to their natural width. They don’t necessarily fill the width of the container
First item has a fixed width of 300 px. Optionally add a max-width to prevent its contents from forcing it to grow wider. Second tems fills all remaining space.
The “Holy Grail” layout. The first and third item have a fixed width of 200 px each. Center items grow to fill all remaining space.
Items grow to percentage widths specified. Can be used to build a grid system


pymicro can be used interactively within the ipython framework without any change to your system. Just type some code in !
Example:
>>> from pymicro.crystal.lattice import Lattice
>>> al = Lattice.from_symbol('Al')
>>> from pymicro.crystal.lattice import HklPlane
>>> p111 = HklPlane(1, 1, 1, al)
>>> p111.bragg_angle(20)*180/pi
7.618
As seen it can quick become boring to import all the required modules. To use pymicro seamlessly within ipython, it is recommended to tweak the ipython config in the following way:
you can add the import_modules.py file to the ipython startup directory. This way all the pymicro modules will be imported into the namespace at startup. You can copy it there but the best way is to use a hardlink. This way if pymicro is updated and this file changes, you will have nothing special to do:
$ cd .ipython/profile_default/startup
$ ln -s /path/to/pymicro/import_modules.py
That’s it, now you may just type:
>>> al = Lattice.from_symbol('Al')
>>> p111 = HklPlane(1, 1, 1, al)
>>> p111.bragg_angle(20)*180/pi
7.618
pymicro features several static methods to directly compute or plot with one liners, for instance to plot a pole figure for a single orientation without creating a Grain instance and so on you may just type:
>>> PoleFigure.plot(Orientation.from_rodrigues([0.0885, 0.3889, 0.3268]))
To compute all Schmid factor for this orientation and the {111}[110] slip systems, you can use:
>>> o = Orientation.from_rodrigues([0.0885, 0.3889, 0.3268])
>>> o.compute_all_schmid_factors(SlipSystem.get_slip_systems(plane_type='111'))


Minimum Members: 2   Maximum Members: 2
“The circuit is interesting because it has inclines and declines. Not just up, but down as well.” -by Murray Walker
You can have brilliant ideas, but if you can’t get them across, your ideas won’t get you anywhere. In this event, you have to design an electrical circuit by using accessories provided like breadboard, resistor, inductor, capacitor etc over different types of hurdles provided over it.
PROBLEM STATEMENT:
Design an Electrical circuit of a given output i.e. voltage/ Current by using minimum no. of elements.
Problem Statement:
Rounds and details::
Judging Criteria:
Judging criteria-
Efficiency should be maximum.
e= maximum bearable load/dead weight of bridge
Deflection in bridge should be minimum.
Based on two above two factors the winner will be declared.
RULES & REGULATIONS:
1) No googling will be allowed during the screening test
2) Come in a team of 2-3 members. Not more than 3 members will be allowed for a team.
3) Once you have fixed the design of the truss bridge, no major changes will be allowed in the design while fabricating, otherwise points will be deducted.
FREQUENTLY ASKED QUESTIONS:
· Q1: Is any pre registration is required?
Ans: If possible , do the registration , although onspot registration can be done
· Q2: Do you have to design the equipment before hand?
Ans: No, you have to prepare the model on spot.
· Q3: Will the accessories be provided ?
Ans: Yes, the accessories will be provided but you can bring two extra accessories by yourself.


<EMAIL_ADDRESS>I am an adequate developer to assemble the on-going imagination of mind into the reality. Apart from this, I am really cool and induratrious guy. I have completed my undergraduation from IIIT Vadodara in Computer Science. So, being a Computer Scientist, I love to explore leveraging technologies that are going to have their long-lasting impact on the human being as well as IT industries.
Started working as a Data Scientist as well as Software Developer for an startup named "Pensieve" on Full time basis.
Started working as a Content Writer for an organization named "Erudite Software and learning solutions" on the part time basis.
Started working as a Mentor of JEE aspirants for an organization named "goIIT" and an Educator for the India's largest learning platform "Unacademy" on the part time basis.
A Web-portal and android application that can be productive for book reviewing, selling and buying within the intra campus environment. Used web development languages like : HTML5, CSS3, Javascript, PHP, JQuery, Ajax and MySQL. The motive was based on the IMDB movie rating and reviewing concept where each user can create their movie list accordingly.
Hotel Database Management System(HMS) is not only able to have a massive data storage, but also keeps the data secure and efficiently updates the database. It has been designed according to the requirements of a normal Hotel, providing general guest-services in ambience. HMS is developed in such a manner that, it can resolve every data keeping related to a customer (guest). It can store, manipulate, remove and update data in customer’s perspective.
In this project I have developed an application tool which was written in python, used to extract and browse the data available on the websites. The python script will hit this URLs . And it'll hit all the link available on that particular site. When the script will run using scrapy utility it'll fetch the name and email-ids of all the schools listing at the site. With the developed python script (using Scrapy) we can stored the same into CSV format.


Funtastic Phone Bills Payment
User Registration
First Name:
Last Name:
Username:
Password:
Email:
City:
..
State:
..
Country:
..
Zipcode:
..
Phone Number:
..
Back
Create New Account


APIVersion$( )
Returns the version of SDL2 that is being used. Can be useful for identifying why certain features are not working on specific systems.
Example:


I'm Prabhat Kumar,
Technical Architect & Data Scientist.
Twitter
LinkedIn
GitHub
Contact
Copyright © 2014 -
Prabhat Kumar, All rights reserved.


{{ i18n "we hope you have more requests and suggestions"}}
{{ i18n "provides a steady stream of nutrients for choerodon" }}
{{ partial "head.html" . }}
{{ i18n "we hope you have more requests and suggestions"}}
{{ i18n "provides a steady stream of nutrients for choerodon" }}


[gecode-users] Update function
Christian Schulte
cschulte at kth.se
Thu Nov 7 15:20:23 CET 2013
Hi,
The answer to the first question is simple: because you have to! Update
updates variables during cloning g and is needed for search. Posting a
constraint as you suggest is something very different.
There can be no global variables in Gecode provided you mean something such
as Gecode's integer variables as they are always situated inside a given
space (this is the space you given when initializing a Gecode variable). Or
dou you mean variable as in C++-variable? Then it does not need to be
updated.
Maybe you would like to read the chapter on Search in MPG that explains what
happens during search in Gecode.
Cheers
Christian
--
Christian Schulte, Professor of Computer Science, KTH,
<http://www.ict.kth.se/~cschulte/> www.ict.kth.se/~cschulte/
From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf
Of Zhu Zichen's cse
Sent: Thursday, November 07, 2013 3:12 PM
To: users at gecode.org
Subject: [gecode-users] Update function
Dear All,
For variables, why do we have to use update function when we
copying? Why cannot I simply use rel(*this,x==_x)? And there are problems
when I use update function to update a global variable from another global
variable. What should I do when I update global variables?
Best Regards,
Zichen Zhu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20131107/a477ef36/attachment.html>
More information about the users
mailing list


[Erowid Warning: Most Coricidin contains CPM (Chlorpheniramine Maleate) which can be dangerous in high doses. See DXM Brand Warnings for more info.]
One night some friends of mine and I were bored and decided to do coricidin. The three of us doing it had used it several times before and had never had any bad experiences with it. I was especially excited about this experience because I wanted to recapture the free floating out of body experience and the feeling of oneness I had the first time I had thaken this drug.
0 min ... The three of us sat around the dining room table and popped ten each chased by grapefruit juice. About ten minutes later I decided to take the last two lonely c-hit pills remaining in the tray for a total of twelve.
45 min ... Both friends reported feeling numbish, the effects of the coricidin were coming on for them. I was disappointed since I was feeling nothing at all.
1hr 15 min ... Smoked a bowl together. It instantly kicked in for me. At first I just felt incredibly stoned and then clarity took over. We all walked to swing and everything was incredibly funny. While swinging, my sober friend began to look much like a gorilla, which resulted in laughter. As I swang the trees reached around the sky in an orbicular manner. It was as if I was in an orb.
2 hr ... We walk around the parking lot and play a miming type game where you play with imaginary energy balls. When it was my tern to form a ball, I closed my eyes and actually felt a gel substance that had a personality of its own. I passed it on to friends.
3hr ... We walk back to the house and watch tv. A friend passes a kaleidoscope around. I look into it and turn it very slowly. I see worlds within the tube that morph slowly. I had surprisingly sharp images of mirror like water, stone fences, and people at peace with themselves worshiping a statue.
3hr 30min ... Friends decide to go swimming. I am feeling tired and did not want to drown so I stayed and watched movies in my head with eyes closed.
4hr-7hr ... Friends return and report that the water felt like a being accepting them and molding into them. I semi regret not going but decide to go to sleep. In my sleep I have the typical flying experience in which I feel as if I'm behind a glass window just soaring in the sky. The DXM tries to take my places but not quite. I am lucid and try to help it along. At one point I find it pulling me in an overhead view of forests similar to an Imax theater shot. I then hovered over my stomach which is a very tangerine orange. That is all I remember of my dream.
7hr ... I wake up. My vision is extremely fuzzy, my heart is racing, and my breathing is steep. It feels as if my heart is an engine of muscle on top of my chest ready to explode. I am still at a point where I can close my eyes and see patterns, but when I open them the physical world or my earthly reality is like a painting smeared. I panic for about ten minutes just lying on the couch and decide to go back to sleep.
7hr-10hr ... I wake up on and off in a panic. I fear that I am going insane.  I feared that I would remain stuck in a half in and half out state of reality for the rest of my life and live at home or in a mental institution. I realize now that my thoughts were not rational or sober, but at the time I was very scared and believed all of this. I thought about going to a hospital but made myself wait until I talked to friends.
10hr ... My friends awoke and I told them how anxious I was feeling, how my body was acting strange (heart racing and quick breathing) and they calmed me down, reasuring me that it would go away. I drive my friends and myself home. As I go down a hill I get the feeling that my car may fly off the road and into space. I get anxious again and do breathing exercises.
[Erowid Note: Driving while intoxicated or tripping is dangerous and irresponsible because it endangers other people. Don't do it!]
11hr ... I go online and read about affects of DXM and reasure myself that it's all in my head and that it's the typical fuzziness of the day after coricidin.
13 hr ... It's about one pm and I decide to get some sleep since I haven't had much. I have calmed down by ths point.
19hr ... I wake up and watch tv. Everything is normal until I go outside and smoke a cigarette. I had been smoking through the whole c-hit experience, but hadn't had a cig since about 10 that morning. About half way through the cigarette the nicotine hit me. My heart started racing tremendously, I was hyperventilating slighty, I put my cigarette out right then and walked inside thinking that I'd sleep through it. I went to my room, closed my eyes and started to experience the flying feeling again, except this time I was traveling up into a light. I was convinced I was going to die.
I went down stairs and noticed my mother watching tv. I went to her and asked her to feel my heart. She said it was a little fast but not dangerous.  I started freaking out. My fingers and feet went cold, I KNEW I was about to die. I told my mom to take me to the hospital. I did not tell her that I had done any drugs. She recognized that I was having a panic attack and tried to calm me down.  The anxiety attacks came in waves for two more hours. I'd get a grip on myself and then spiral out of control emotionally. At one point I told my mother to take me to the emergency room. I found that washing my hands, walking around, or looking in the mirror grounded my manic mental state.
My mother and her mother have a history of anxiety, and luckily my mom was there to help me through this.   My mind was in a different state and I think for that one day I was mildly crazy. I had no control over my fears at all. The next day I felt very depressed. The world seemed devoid of all life and happiness. I could only see objects as physical things that were empty. Everything was like props in a play.   I was caught in this weird loop of being stuck in myself and in emptiness. The next day was much the same, but after that things got better.
It has now been about a week since this experience and a faint echo of fear lingers in my mind. I am no longer scared of going insane, dying, or dumbing myself, but this persistant essence of fear is present in most of my thoughts. There is no reason for it and I don't understand it. I am just thankful that the extreme anxiety and depression flips have gone away and I can return to my normal life.
 A week and a half before this experience, I did ecstasy for the first time, and think that perhaps my brain had not recovered full serotonin levels before the DXM. Maybe this is like how LSD surfaces dormant mental problems, although I've never heard of it happening with DXM. I have done that same amount of c-hit before with no problems, and my friends did not experience any problems from the same stuff I took. Whatever the case is, I'm never going to do coricidin ever again and I strongly advise against it. If you want to have an out of body experience, feel oneness, or just trip, stick with straight DXM.
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.