This is an account of the worst experience I've ever had with psilocybin mushrooms, or for this matter, any drug I've taken yet. It was terrifying, but at the same time a valuable experience that taught me a lot about myself. I still remember the night because I went through what I remembered the next morning over and over because I felt there was something to learn from this waking nightmare.
It all started at my friend's house one night. We were all just sitting around smoking weed and getting bored because nothing exciting was going on. I smoked about a gram of good pot with my friend in buckets (I have a very low tolerance to THC so I was VERY stoned after this session). It was only about 7 people there and it was all people I was used to hanging around with. Around 9pm another friend showed up with some mushrooms he wanted to sell. I had taken psilocybin mushrooms a few times before this so I was familiar with the effects and my best dosage. I was really bored and wanted to take some shrooms to have some fun, but no one else was interested. Finally I decided to buy some and trip alone. I didn't think there would be any surprises since I already had experience with mushrooms. I was dead wrong.
I ate 3 grams after a buddy kept bugging me to take them, and washed it down with a big bong hit. It was the first time I had taken them alone and I was about to find out it was something completely different. I had previously told a friend, I'll call him 'Steve', that he could stay over at my house that night. He was very drunk already, and was mostly oblivious to the terrible experience I would have that night.
After about 20 minutes I was starting to feel uneasy and the first signs of the trip were coming on. I'm not sure why I was getting nervous but it may be because I was so high from the pot I had smoked, and I realized that so one else was doing mushrooms with me. These feelings of anxiety increased as I sunk deeper into the trance of the mushrooms. Things around me seemed unreal and foreign, even though this was a familiar setting.
At about an hour after ingestion the full effects started to grab hold of me. By this time I was becoming very anti-social and self conscious of how I was behaving. I kept trying to calm down by playing video games but I was having unpleasant hallucinations where the whole game turned inside-out and this made me feel nauseated. It seemed like the more I tried to converse with people and have a good time, the worse my trip got. The moment I realized I was having a bad trip was the turning point of my whole experience. I started to panick, but tried not to show it. I went to the bathroom to look at my eyes when I realized my pupils were extremely dialated and my eyes were blood red. When I looked at the toilet there was urine all over the floor around it and feces smeared over it. This was extremely disturbing and I got out of there.
I decided I wanted to go home and sleep off my bad trip. When I asked 'Steve' if he wanted to go back to my place to crash, he was reluctant because he was so drunk and wanted to stay longer. For some reason I felt I couldn't ruin his night just because I was tripping out so we agreed we would leave in 2 hours.  Finally, I decided I had waited long enough and I told Steve we had to get going. He laughed at me and said it had only been 10 minutes. This was when my mind totally imploded. I had lost all perception of time and I really started to freak out.
I thought some fresh air would help so I walked to the store. The cashier gave me a funny look so I must have been acting strange, or so I thought. On the way back I started to realize how strange the society we live in is. Why do people treat each other like they do? Why do we need to have every convenience possible to make our lives a little easier, at the expense of others? My mind was racing and I couldn't stop it. When I got back to my friend's house, It was as if everyone there were total strangers. All of their faces were twisted and contorted into sick shapes and I couldn't even talk to anyone without feeling sick. By this time my friends were all talking about how messed up I was and it only made me sink further into madness.
Insanity. Suddenly it occurred to me that I had lost my mind. My ego was completely destroyed at this point and I could barely keep from breaking down. Everyone was watching me. I started to think that maybe I had been insane all along and I was just realizing this for the first time. They weren't really my friends, just people that felt bad for me and couldn't tell me how messed up I was. This was the most horrible and degrading feeling imaginable.  Thank god Steve finally decided it was a good time to leave. I couldn't stand these distorted alien people's pity any longer. We walked a long distance in the cold to get back to my house.
Suddenly, I had a chilling realization. Steve didn't exist at all. He was only a figment of my imagination created to cope with this terrible and cruel world. I had just seen the movie 'A Beautiful Mind' and I was getting paranoid that I could be hallucinating entire people and I wouldn't even know it. It was at this point that I stopped talking to Steve in case others saw me talking to a person who didn't exist. This was the most terrifying experience I have ever felt, realizing my own insanity and complete delirium, unable to separate my mind's creations from reality. After Getting home my trip was starting to lose it's momentum but I was still scared and my friend was confused at why I wouldn't talk to him. I couldn't sleep. I was afraid this would never end.
The next morning I tried to explain this to Steve but he just couldn't understand the nightmare I had lived through. I had regained my sanity and most of my confidence but I was still shaken. Never had I experienced anything that terrifying in my life, the feeling of total insanity. I have learned a lot about myself from those horrible mushrooms but I still wish it had never happened.
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.


| File | Statements | Branches | Functions | Lines | |||||
|---|---|---|---|---|---|---|---|---|---|
| collection.js | 88.24% | 45/51 | 66.67% | 8/12 | 80.95% | 17/21 | 91.49% | 43/47 | |
| document.js | 71.43% | 25/35 | 75% | 6/8 | 46.67% | 7/15 | 74.19% | 23/31 | |
| domain.js | 36.63% | 37/101 | 34.62% | 9/26 | 32.5% | 13/40 | 38.89% | 35/90 | |
| index.js | 75.44% | 43/57 | 53.13% | 17/32 | 77.27% | 17/22 | 76.36% | 42/55 | |
| user.js | 71.05% | 27/38 | 75% | 6/8 | 50% | 9/18 | 73.53% | 25/34 | |
| utils.js | 63.77% | 44/69 | 56.16% | 41/73 | 44.44% | 4/9 | 64.18% | 43/67 |


Select Icons
pencil
eraser
text
line
dragSingle
dragMultiple
arc
rectangle
quadratic
bezier
You can open a private WebRTC room to sync dashboard with private users.
Open
Canvas Designer!
This tool is Open-Sourced!
Author:
Muaz Khan
How to use in your own site?
Take all code from
this link
and upload somewhere on your site.
Target directly will be having this file:
canvas-designer-widget.js
. Link this file in your HTML/PHP page.
Use this command to append widget in your HTML page:
CanvasDesigner.appendTo(
document.documentElement
);
Read more here
.


Files |
| file | common.h |
| | Commonly used functions used by drivers.
|
Defines |
| #define | __COMMON_H_SENSOR_CHECK__ 1 |
| #define | MAX_ARR_SIZE 17 |
| #define | min2(a, b) (a < b ? a : b) |
| #define | min3(a, b, c) (a < b) ? ((a < c) ? a : c) : ((b < c) ? b : c) |
| #define | max2(a, b) (a > b ? a : b) |
| #define | max3(a, b, c) (a > b) ? ((a > c) ? a : c) : ((b > c) ? b : c) |
| #define | clip(a, b, c) min2(c, max2(b, a)) |
| #define | round(x) (int)(x + 0.5) |
Typedefs |
| typedef ubyte | tByteArray [MAX_ARR_SIZE] |
| typedef sbyte | tsByteArray [MAX_ARR_SIZE] |
| typedef int | tIntArray [MAX_ARR_SIZE] |
Functions |
| void | clearI2CError (tSensors link, ubyte address) |
| bool | waitForI2CBus (tSensors link) |
| bool | writeI2C (tSensors link, tByteArray &data, int replylen) |
| bool | readI2C (tSensors link, tByteArray &data, int replylen) |
| long | getUID () |
Detailed Description
Commonly used functions used by drivers
Define Documentation
| #define __COMMON_H_SENSOR_CHECK__ 1 |
< define this as 0 to remove the check
Definition at line 69 of file common.h.
| #define clip |
( |
|
a, |
|
|
|
b, |
|
|
|
c |
|
) |
| min2(c, max2(b, a)) |
Returns x if it is between min and max. If outside the range, it returns min or max.
- Examples:
- MSLL-test3.c.
Definition at line 116 of file common.h.
| #define max2 |
( |
|
a, |
|
|
|
b |
|
) |
| (a > b ? a : b) |
This function returns the bigger of the two numbers
Definition at line 103 of file common.h.
| #define max3 |
( |
|
a, |
|
|
|
b, |
|
|
|
c |
|
) |
| (a > b) ? ((a > c) ? a : c) : ((b > c) ? b : c) |
This function returns the biggest of the three numbers
Definition at line 109 of file common.h.
Maximum buffer size for byte_array, can be overridden in your own program. It's 17 bytes big because the max I2C buffer size is 16, plus 1 byte to denote packet length.
Definition at line 85 of file common.h.
| #define min2 |
( |
|
a, |
|
|
|
b |
|
) |
| (a < b ? a : b) |
This define returns the smaller of the two numbers
Definition at line 92 of file common.h.
| #define min3 |
( |
|
a, |
|
|
|
b, |
|
|
|
c |
|
) |
| (a < b) ? ((a < c) ? a : c) : ((b < c) ? b : c) |
This define returns the smallest of the three numbers
Definition at line 98 of file common.h.
| #define round |
( |
|
x ) |
(int)(x + 0.5) |
Returns a rounded int from a float.
Definition at line 122 of file common.h.
Typedef Documentation
Array of ints as a struct, this is a work around for RobotC's inability to pass an array to a function.
- Examples:
- MSLL-test4.c.
Definition at line 136 of file common.h.
Function Documentation
| void clearI2CError |
( |
tSensors |
link, |
|
|
ubyte |
address |
|
) |
| |
Clear out the error state on I2C bus by sending a bunch of dummy packets.
- Parameters:
-
| link | the port number |
| address | the I2C address we're sending to |
Definition at line 150 of file common.h.
Create a unique ID (UID) for an NXT. This based on the last 3 bytes of the Bluetooth address. The first 3 bytes are manufacturer specific and identical for all NXTs and are therefore not used.
- Returns:
- a unique ID for the NXT.
Definition at line 311 of file common.h.
| bool readI2C |
( |
tSensors |
link, |
|
|
tByteArray & |
data, |
|
|
int |
replylen |
|
) |
| |
Read from the I2C bus. This function will wait for the bus to be ready before reading from it.
- Parameters:
-
| link | the port number |
| data | holds the data from the reply |
| replylen | the number of bytes in the reply |
- Returns:
- true if no error occured, false if it did
Definition at line 265 of file common.h.
| bool waitForI2CBus |
( |
tSensors |
link ) |
|
Wait for the I2C bus to be ready for the next message
- Parameters:
-
- Returns:
- true if no error occured, false if it did
Definition at line 173 of file common.h.
| bool writeI2C |
( |
tSensors |
link, |
|
|
tByteArray & |
data, |
|
|
int |
replylen |
|
) |
| |
Write to the I2C bus. This function will clear the bus and wait for it be ready before any bytes are sent.
- Parameters:
-
| link | the port number |
| data | the data to be sent |
| replylen | the number of bytes (if any) expected in reply to this command |
- Returns:
- true if no error occured, false if it did
Definition at line 210 of file common.h.


This is H1
This is H2
This is H3
This is H4
This is H5
This is H6
This is H1
This is H2
This is H3
This is H4
This is H5
This is H6
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
For 50 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally.
Links in Lists
Square with delay
Buttons!
Lorem ipsum dolor sit amet, imperdiet duis dapibus donec, massa quis mi sollicitudin commodo eu, vel ut mollis, sed lectus maecenas nulla elit. Sollicitudin ligula posuere lectus ut nec nulla, nunc neque metus ut, ut penatibus cras mattis justo, consectetuer condimentum urna. Tempus placerat metus est in amet massa, aenean phasellus veniam, in non ullamcorper et maecenas, at orci non fusce id wisi, etiam vulputate mus. Ultricies erat sed aliquam pellentesque accumsan curabitur, elit massa parturient morbi tellus amet nulla, arcu augue, in nullam turpis. Aliquam nulla ut cursus cras, mollis mauris nisl litora, justo aliquam metus libero sapien nascetur arcu, id ut mauris vestibulum enim eu. Sit gravida tellus iaculis, justo vitae, non ligula faucibus, urna orci elit, eget metus aliquam.
The next button is disabled :( Click donate to help out. Your small donation will make its life much easier.


TRADER JOCKS
Login
Sign-Up
My Profile
Sell
NFL
NBA
WNBA
MLB
NHL
BOXING
Search
RECOMMENDED FOR YOU
Item Name:
$300,000 USD
Item Name:
$300,000 USD
Item Name:
$300,000 USD
Item Name:
$300,000 USD
Item Name:
$300,000 USD
>
Item Name:
$300,000 USD
Item Name:
$300,000 USD
Item Name:
$300,000 USD
Item Name:
$300,000 USD
Item Name:
$300,000 USD


I'm an aspiring software engineer and computer science graduate
who loves to work on new and upcoming technologies
ABOUT ME
I am currently a senior in Computer Science at
Arizona State University
expecting to graduate in May 2019.
I like to tackle life one challenge at a time.
Whether on the front-end, challenging my creativity to design a beautiful interface, or on the backend,
to make sure the product can do its job with maximum efficiency and effectiveness.
Outside of spending hours focused on a computer screen, I enjoy keeping myself going with
morning runs and workouts or challenging my inner foodie with something new to try!


try:
nframes = len(frames)
lengths = [nbytes(frame) for frame in frames]
length_bytes = struct.pack(f"Q{nframes}Q", nframes, *lengths)
frames = [length_bytes, *frames]
lengths = [len(length_bytes), *lengths]
if sum(lengths) < 2 ** 17: // 128kiB
// small enough, send in one go
stream._total_write_index += each_frame_nbytes
// start writing frames
stream.write(b"")
except StreamClosedError as e:
self.stream = None
self._closed = True


Home
Home
Global
searchCoursera
searchDefinition
searchGoogleScholar
searchInGit
searchPapers
searchUdemy
searchVideos
searchWikipedia


Placement of Widget on page:
Selected Alignment : {{widget.selectedAlignment}}
Selected Pages: {{widget.selectedPages}}


|
| void | superlu_abort_and_exit (char *msg) |
| | Global statistics variale. More...
|
| |
| void | set_default_options (superlu_options_t *options) |
| | Set the default values for the options argument. More...
|
| |
| void | ilu_set_default_options (superlu_options_t *options) |
| | Set the default values for the options argument for ILU. More...
|
| |
| void | print_options (superlu_options_t *options) |
| | Print the options setting. More...
|
| |
| void | print_ilu_options (superlu_options_t *options) |
| | Print the options setting. More...
|
| |
| void | Destroy_SuperMatrix_Store (SuperMatrix *A) |
| | Deallocate the structure pointing to the actual storage of the matrix. More...
|
| |
| void | Destroy_CompCol_Matrix (SuperMatrix *A) |
| |
| void | Destroy_CompRow_Matrix (SuperMatrix *A) |
| |
| void | Destroy_SuperNode_Matrix (SuperMatrix *A) |
| |
| void | Destroy_CompCol_Permuted (SuperMatrix *A) |
| | A is of type Stype==NCP. More...
|
| |
| void | Destroy_Dense_Matrix (SuperMatrix *A) |
| | A is of type Stype==DN. More...
|
| |
| void | resetrep_col (const int nseg, const int *segrep, int *repfnz) |
| | Reset repfnz[] for the current column. More...
|
| |
| void | countnz (const int n, int_t *xprune, int_t *nnzL, int_t *nnzU, GlobalLU_t *Glu) |
| | Count the total number of nonzeros in factors L and U, and in the symmetrically reduced L. More...
|
| |
| void | ilu_countnz (const int n, int_t *nnzL, int_t *nnzU, GlobalLU_t *Glu) |
| | Count the total number of nonzeros in factors L and U. More...
|
| |
| void | fixupL (const int n, const int *perm_r, GlobalLU_t *Glu) |
| | Fix up the data storage lsub for L-subscripts. It removes the subscript sets for structural pruning, and applies permuation to the remaining subscripts. More...
|
| |
| void | print_panel_seg (int n, int w, int jcol, int nseg, int *segrep, int *repfnz) |
| | Diagnostic print of segment info after panel_dfs(). More...
|
| |
| void | StatInit (SuperLUStat_t *stat) |
| |
| void | StatPrint (SuperLUStat_t *stat) |
| |
| void | StatFree (SuperLUStat_t *stat) |
| |
| flops_t | LUFactFlops (SuperLUStat_t *stat) |
| |
| flops_t | LUSolveFlops (SuperLUStat_t *stat) |
| |
| void | ifill (int *a, int alen, int ival) |
| | Fills an integer array with a given value. More...
|
| |
| void | super_stats (int nsuper, int *xsup) |
| |
| float | SpaSize (int n, int np, float sum_npw) |
| |
| float | DenseSize (int n, float sum_nw) |
| |
| void | check_repfnz (int n, int w, int jcol, int *repfnz) |
| | Check whether repfnz[] == EMPTY after reset. More...
|
| |
| void | PrintSumm (char *type, int nfail, int nrun, int nerrs) |
| | Print a summary of the testing results. More...
|
| |
| int | print_int_vec (char *what, int n, int *vec) |
| |
| int | slu_PrintInt10 (char *name, int len, int *x) |
| |
| int | check_perm (char *what, int n, int *perm) |
| |
Copyright (c) 2003, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from U.S. Dept. of Energy)
All rights reserved.
The source code is distributed under BSD license, see the file License.txt at the top-level directory.
-- SuperLU routine (version 4.1) --
Univ. of California Berkeley, Xerox Palo Alto Research Center,
and Lawrence Berkeley National Lab.
November, 2010
Copyright (c) 1994 by Xerox Corporation. All rights reserved.
THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY
EXPRESSED OR IMPLIED.
Permission is hereby granted to use or copy this program for any
purpose, provided the above notices are retained on all copies.
Permission to modify the code and to distribute modified code is
granted, provided the above notices are retained, and a notice that
the code was modified is included with the above copyright notice.


Operational: {{ operational }} | Degraded: {{ degraded }} | Not Operational: {{ notOperational }}
| Name | Description | Link | Status | ||
|---|---|---|---|---|---|
| {{ service.name }}
|
{{ service.description }} | {{ service.link }} | Operational | Degraded | Not Operational |
There was an error retrieving the data


Savings Account: account with higher interests to be used for saving money.
Checking Account: account to store money that is to be spent on purchses.
Credit: account that is tied to your credit card. This account's balance increases with purchases and must be payed off monthly).


output
Published: July 4, 2019
Note that Firefox MSAA accRole="output", IA2 role="section". While Chrome MSAA and IA2 report as "status bar".
Per HTML AAM, output should map to ARIA's role=status.
role=status


⚠
This documentation is maintained by the community, it is not guaranteed to be complete or up-to-date.
We always recommend users read the third-party documentation as part of the integration process to ensure the configuration matches their needs and as such we always link the documentation if available.
If you find an error in this documentation please either make a GitHub Pull Request or start a GitHub Discussion.


{% load static %}
Title: {{ review.title }}
Author: {{ review.author }}
Publisher: {{ review.publisher }}
Comments: {{ review.comments }}


Alice->Bob: Hello Bob, how are you? Note right of Bob: Bob thinks Bob-->Alice: I am good thanks!
Title: Here is a title A->B: Normal line B-->C: Dashed line C->>D: Open arrow D-->>A: Dashed open arrow


Wooden Sticks
问题描述 :
There is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a woodworking machine in one by one fashion. It needs some time, called setup time, for the machine to prepare processing a stick. The setup times are associated with cleaning operations and changing tools and shapes in the machine. The setup times of the woodworking machine are given as follows:
(a) The setup time for the first wooden stick is 1 minute.
(b) Right after processing a stick of length l and weight w , the machine will need no setup time for a stick of length l’ and weight w’ if l <= l' and w <= w'. Otherwise, it will need 1 minute for setup.
You are to find the minimum setup time to process a given pile of n wooden sticks. For example, if you have five sticks whose pairs of length and weight are ( 9 , 4 ) , ( 2 , 5 ) , ( 1 , 2 ) , ( 5 , 3 ) , and ( 4 , 1 ) , then the minimum setup time should be 2 minutes since there is a sequence of pairs ( 4 , 1 ) , ( 5 , 3 ) , ( 9 , 4 ) , ( 1 , 2 ) , ( 2 , 5 ) .
(a) The setup time for the first wooden stick is 1 minute.
(b) Right after processing a stick of length l and weight w , the machine will need no setup time for a stick of length l’ and weight w’ if l <= l' and w <= w'. Otherwise, it will need 1 minute for setup.
You are to find the minimum setup time to process a given pile of n wooden sticks. For example, if you have five sticks whose pairs of length and weight are ( 9 , 4 ) , ( 2 , 5 ) , ( 1 , 2 ) , ( 5 , 3 ) , and ( 4 , 1 ) , then the minimum setup time should be 2 minutes since there is a sequence of pairs ( 4 , 1 ) , ( 5 , 3 ) , ( 9 , 4 ) , ( 1 , 2 ) , ( 2 , 5 ) .
输入:
The input consists of T test cases. The number of test cases (T) is given in the first line of the input file. Each test case consists of two lines: The first line has an integer n , 1 <= n <= 5000 , that represents the number of wooden sticks in the test case, and the second line contains 2n positive integers l1 , w1 , l2 , w2 ,..., ln , wn , each of magnitude at most 10000 , where li and wi are the length and weight of the i th wooden stick, respectively. The 2n integers are delimited by one or more spaces.
输出:
The output should contain the minimum setup time in minutes, one per line.
样例输入:
3 5 4 9 5 2 2 1 3 5 1 4 3 2 2 1 1 2 2 3 1 3 2 2 3 1
样例输出:
2 1 3
解题代码:
import java.util.*; public class Main{ public static void main(String[] args){ int l[]=new int[10000]; int w[]=new int[10000]; int tt[]=new int[5000]; int k=0; Scanner keyin=new Scanner(System.in); int m=keyin.nextInt(); int mm=m; int n=0; for(;m>0;m--){ n=keyin.nextInt(); for(int j=0;j< n;j++){ l[j]=keyin.nextInt(); w[j]=keyin.nextInt(); } int time=0,c=0; for(int t=0;t<=n-2;t++){ for(int s=n-2;s>=t;s--){ if(l[s]>l[s+1]){ int temp=l[s]; l[s]=l[s+1]; l[s+1]=temp; temp=w[s]; w[s]=w[s+1]; w[s+1]=temp; } } } for(int p=0;p< n;p++){ if(w[p]!=-1){ time++; c=w[p]; for(int q=p+1;q< n;q++){ if(w[q]>=c){ c=w[q]; w[q]=-1; } } } } tt[k++]=time; } for(int r=0;r< mm;r++) System.out.println(tt[r]); } }
(adsbygoogle = window.adsbygoogle || []).push({});
这个问题别太纠结了，不同的编译器结果不一
int half(int *array,int len,int key)
{
int l=0,r=len;
while(l<r)
{
int m=(l+r)>>1;
if(key>array )l=m+1;
else if(key<array )r=m;
else return m;
}
return -1;
}
这种就能避免一些Bug
l,m,r
左边是l,m;右边就是m+1,r;
注释很详细，多谢分享！
swap写成内联函数会不会好一些
有谁知道直接遍历的方法中第8行是什么意思嘛？
修改一下吧 …
第二个方法好！
正在学习搜索，很好
全是智力分析的题
这是往年的笔试题，非在线，主要考察基础，Java会在面试时问到
处凡愚而不减，在圣贤而不增；
住烦恼而不乱，居禅定而不寂。
有谁知道直接遍历的方法中第8行是什么意思嘛？
处凡愚而不减，在圣贤而不增；
住烦恼而不乱，居禅定而不寂。


| Home | Trees | Indices | Help |
|---|
|
|
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|
|
|
|
|
|
|
|
|
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Fri Feb 29 22:59:33 2008 | http://epydoc.sourceforge.net |


I have enjoyed the personality test on (https://www.16personalities.com/). The outcome has been amazingly accurate.
... defined as someone who tends to approach life with deep thoughtfulness and imagination.
I'm an introvert and opperate on intuition and feeling.
My inner vision, personal values, and a quiet, principled version of humanism guides me in all the things I'm doing.
JOHANN WOLFGANG VON GOETHE
While growing up as an undetected dyslexic, I've developed a critical and creative approach to life.
I'm always on the lookout for some kind of creative solution to help people.
The personality test states: "Many people with this personality type aspire to fix society’s deeper problems, in the hope that unfairness and hardship can become things of the past".
... and this is sooo freakingly right.
And this quote says it all:
... soooo right ... and that's the reason for my newest super exciting endevour: Learn to CODE @ the DEV Academy.
Let's bring it on! : )
Always learning, very persistant and driven by a mission and vision. If I can see the purpose, I'll be just fine : )
- People become accustomed to the status quo, to a place where they feel dissatisfied but change seemes just too scary, difficult, foreign or overwhelming. In organizations, the status quo hinders innovation, creation and collaboration. The old and frustrating ways of herding people along like sheep are over and out, today we've recognised the need to actively build a living/learning culture based on OUR PEOPLE; on Trust, Empathy, Vulnerability; based on the Human Connection, Collective Purpose, Collective (Knowledge) Creation; based on the Collective Truth;
- I've learned to be an active team member and not to preconceive anything.


vignettes/api.Rmd
api.Rmd
Firstly, assume you have already installed UCSCXenaShiny package.
We provide function to retrieve multi-dimensional data including genomic, epigenomic, transcriptomic, and proteomic data from TCGA (note, this actually contains data from TCGA/TARGET/GTEx databases) and CCLE Pan-Cancer dataset for single identifier (e.g., gene, protein).
Check parameters:
args(query_pancan_value)
#> function (molecule, data_type = c("mRNA", "transcript", "protein",
#> "mutation", "cnv", "cnv_gistic2", "methylation", "miRNA"),
#> database = c("toil", "ccle"), reset_id = NULL)
#> NULL
For TCGA gene expression data, we use Xena dataset with ID TcgaTargetGtex_rsem_gene_tpm
which includes 19131 samples with tumor tissue samples and normal tissue samples. The expression value unit is log2(tpm+0.001)
.
Let’s check several examples.
gene_expr <- query_pancan_value("TP53")
#> Running mode: client
#> =========================================================================================
#> UCSCXenaTools version 1.4.4
#> Project URL: https://github.com/ropensci/UCSCXenaTools
#> Usages: https://cran.r-project.org/web/packages/UCSCXenaTools/vignettes/USCSXenaTools.html
#>
#> If you use it in published research, please cite:
#> Wang et al., (2019). The UCSCXenaTools R package: a toolkit for accessing genomics data
#> from UCSC Xena platform, from cancer multi-omics to single-cell RNA-seq.
#> Journal of Open Source Software, 4(40), 1627, https://doi.org/10.21105/joss.01627
#> =========================================================================================
#> --Enjoy it--
#> Try querying data #1
#> -> Checking if the dataset has probeMap...
#> -> Done. ProbeMap is found.
#> Running mode: client
#> More info about dataset please run following commands:
#> library(UCSCXenaTools)
#> XenaGenerate(subset = XenaDatasets == "TcgaTargetGtex_rsem_gene_tpm") %>% XenaBrowse()
str(gene_expr)
#> List of 2
#> $ expression: Named num [1:19131] 4.79 5.89 5.52 4.43 2.38 ...
#> ..- attr(*, "names")= chr [1:19131] "GTEX-S4Q7-0003-SM-3NM8M" "TCGA-19-1787-01" "TCGA-S9-A7J2-01" "GTEX-QV31-1626-SM-2S1QC" ...
#> ..- attr(*, "label")= chr "gene expression RNAseq"
#> $ unit : chr "log2(tpm+0.001)"
transcript_expr <- query_pancan_value("ENST00000000233", data_type = "transcript")
gene_cnv <- query_pancan_value("TP53", data_type = "cnv")
gene_mut <- query_pancan_value("TP53", data_type = "mutation")
miRNA_expr <- query_pancan_value("hsa-let-7a-2-3p", data_type = "miRNA")
vis_toil_TvsN(Gene = "TP53", Mode = "Violinplot", Show.P.value = FALSE, Show.P.label = FALSE)
#> Running mode: client
#> More info about dataset please run following commands:
#> library(UCSCXenaTools)
#> XenaGenerate(subset = XenaDatasets == "TcgaTargetGtex_rsem_gene_tpm") %>% XenaBrowse()
vis_toil_TvsN_cancer(
Gene = "TP53",
Mode = "Violinplot",
Show.P.value = TRUE,
Show.P.label = TRUE,
Method = "wilcox.test",
values = c("#DF2020", "#DDDF21"),
TCGA.only = FALSE,
Cancer = "ACC"
)
#> Running mode: client
#> More info about dataset please run following commands:
#> library(UCSCXenaTools)
#> XenaGenerate(subset = XenaDatasets == "TcgaTargetGtex_rsem_gene_tpm") %>% XenaBrowse()
#> Counting P value
#> Counting P value finished
This function needs gganatogram package, which is not on CRAN. Please install it before using this function.
if (require("gganatogram")) {
vis_pancan_anatomy(Gene = "TP53", Gender = c("Female", "Male"), option = "D")
}
vis_unicox_tree(
Gene = "TP53",
measure = "OS",
threshold = 0.5,
values = c("grey", "#E31A1C", "#377DB8")
)
#> Running mode: client
#> More info about dataset please run following commands:
#> library(UCSCXenaTools)
#> XenaGenerate(subset = XenaDatasets == "TcgaTargetGtex_rsem_gene_tpm") %>% XenaBrowse()
#> Get gene expression for TP53
All exported data and functions are organized at here.


| info-namespace |
dlf |
| namespace-title |
Namespace of Digital Library Federation Identifiers |
| registration-date |
2008-05-13 |
| namespace-authority |
| organisation-name |
Digital Library Federation |
| organisation-address |
1755 Massachusetts Avenue NW Suite 500, Washington DC 20036-2124 |
| organisation-uri |
http://www.diglib.org/ |
| contact-person |
Barrie Howard |
| contact-email |
<EMAIL_ADDRESS>|
| contact-tel |
+1<PHONE_NUMBER> |
| contact-uri |
http://www.diglib.org/ |
|
| identifier-syntax |
| description |
Identifiers in the dlf namespace are used to identify
information assets used in Digital Library Federation
research and development projects.
An 'info' URI with namespace 'dlf' takes the form:
info:dlf/<dlf-project>/<project-specific-id>
dlf-project = ALPHA *( ALPHA | DIGIT )
i.e. alphanumeric with leading alphabetic character.
Values of dlf-project are assigned by the Digital Library Federation and
registered at http://diglib.org/namespace/Projects.txt. At the time of this
registration the only valid dlf-project value is "Aquifer".
project-specific-id = project-specific-component *("/" project-specific-component)
project-specific-component = *pchar
pchar is as defined in RFC 3986, that is:
pchar = unreserved | pct-encoded | sub-delims | ":" | "@"
unreserved = ALPHA | DIGIT | "-" | "." | "_" | "~"
pct-encoded = "%" HEXDIG HEXDIG
sub-delims = "!" | "$" | "&" | "'" | "(" | ")" | "*" | "+" | "," | ";" | "="
ALPHA, DIGIT, AND HEXDIG are as defined in RFC 2234: upper
or lower case alphabetic (A-Z | a-z), decimal digit (0-9),
and hexadecimal digit (DIGIT | "A" | "B" | "C" | "D" | "E" | "F") respectively.
Percent Encoded Characters
No characters in general need to be percent encoded. |
| uri |
http://www.diglib.org/namespace/IdentifierSyntax.txt |
|
| identifier-normalization |
|
| identifier-examples |
| identifier-example |
| native |
|
| info-uri |
info:dlf/Aquifer/AssetActions/AssetDefinition/ |
|
| identifier-example |
| native |
|
| info-uri |
info:dlf/Aquifer/AssetActions/MODS3.2-extension/ |
|
| identifier-example |
| native |
|
| info-uri |
info:dlf/Aquifer/AssetActions/getWebView |
|
| identifier-example |
|
| identifier-example |
|
| identifier-example |
|
|
| namespace-information |
| description |
Identifiers in the dlf namespace are used to identify information assets
used in Digital Library Federation research and development projects.
Identifiers will vary according to project. Their uses currently include:
* Target namespaces for XML Schema, for example: info:dlf/Aquifer/AssetActions/AssetDefinition/
* Identifiers for use in ontologies, for example RDF property labels, such as:
info:dlf/Aquifer/AssetActions/getWebView |
| uri |
http://www.diglib.org/namespace/NamespaceInformation.txt |
|
| service-mechanism |
| description |
No service mechanisms are at present defined. |
| uri |
|
|


The Plug-in administrator service. Provides methods and interfaces to register plug-ins, query their interfaces and manages plug-in configuration entries.


{%include "base.html" %}
You searched for: {{ query }}
| UniProtKB Accession | Protein | Gene | Organism | Subcellular localization | Stripped Peptide Sequence | Modified Peptide Sequence | Peptide unique in proteome | Peptide present in isoforms | Peptide unique in user's database | Peptide in user's database | PeptideTracker ID | PeptideTracker Transitions | PASSEL ID | PASSEL Transitions | SRMAtlas ID | SRMAtlas Transitions | CPTAC ID | CPTAC Transitions | PanoramaWeb ID | PanoramaWeb Transitions | Number of repositories | Best Transitions | Biological Pathway | Protein–protein interaction | Disease Association | 3D structure | GO Terms | Drug Association | Protein approved as FDA Marker | Mean Concentration | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| UniProtKB Accession | Protein | Gene | Organism | Subcellular localization | Stripped Peptide Sequence | Modified Peptide Sequence | Peptide unique in proteome | Peptide present in isoforms | Peptide unique in user's database | Peptide in user's database | PeptideTracker ID | PeptideTracker Transitions | PASSEL ID | PASSEL Transitions | SRMAtlas ID | SRMAtlas Transitions | CPTAC ID | CPTAC Transitions | PanoramaWeb ID | PanoramaWeb Transitions | Number of repositories | Best Transitions | Biological Pathway | Protein–protein interaction | Disease Association | 3D structure | GO Terms | Drug Association | Protein approved as FDA Marker | Mean Concentration |
No Peptide matched with your search criteria.
{% endif %}Summary of results
| Species Name | Number of assays | Number of covered proteins |
| {{ items.0 }} | {{ items.2 }} | {{ items.1 }} |
| Total | {{ totallist.1 }} | {{ totallist.0 }} |
| Database name | Peptide uniqueness in proteome(%) | Peptide is specific to one protein isoform(%) |
| {% if items.0|upper == "CPTAC" %} {{ items.0|upper }} {% elif items.0|upper == "PASSEL" %} {{ items.0|upper }} {% elif items.0|upper == "PANORAMAWEB" %} PanoramaWeb {% else %} {{ items.0 }} {% endif %} | {{ items.1 }} | {{ items.2 }} |
| Sub cellular location | Number of unique entries(Proteins) |
| {{ key }} | {{ value }} |
| GO Term Name | Number of unique entries(Proteins) |
| {{ key }} | {{ value }} |
Pathway coverage (Top 10)
{% endif %}Distribution of proteins and peptides among different databases.


My love of Flask is well known. It's a great microframework that puts you in control of the pieces needed in your webapp. It comes with templating, requests, responses, cookies, sessions, routing and... really, that's it. Routes can be built by decorating functions or by inheriting from flask.views.View or flask.views.MethodView depending on your needs.
Something I've explored in the past is building a simple RESTful service using Flask and SQLAlchemy. However, that blog post fell into the trap of "Look at all this code!" that happens to me regretfully often. D: However, I'd like revisit the idea and explore the topic a little more in depth.
I will forewarn, that this post is still pretty code heavy. If that's the sort of thing that makes your eyes glaze over, you may want to go to /r/pitbulls instead.
Quotly: Cheeky Movie Quotes for Web 2.0
Okay, lame. But it's not another TODO list, though not much better. But by the end, hopefully we'll feel comfortable with Flask, Flask-SQLAlchemy, Marshmallow (12/10 serializer library) and a little bit of Flask-Restful (though, it's going to be used as a base that we're going to modify).
This post was written with Python 3.4, but it should work with at least 2.7 and 3.3. I'm not sure about others and I'm too lazy to add the deadsnakes PPA right now. D:
You can follow along with vim or PyCharm or whatever. The full application is at the bottom of the post as well if you'd rather peek now.
If you are following along, I recommend making two files: app.py and run.py. app.py is where we'll obviously be building Quotly. The run.py will simply run the debug server on the side, just set that one up to look like this:
from app import app if __name__ == '__main__': app.run(debug=True, reload=True)
Step Zero: Needed packages
Instead of installing packages along every step, let's just get all that mess out the way now...
pip install --user -U marshmallow --pre pip install --user -U flask-sqlalchemy flask-restful
That'll install everything you need to follow along here. A note about that Marshmallow install: This installs a pre-release version of Marshmallow, which we'll need to take advantage of some cool stuff that's coming in Marshmallow. If you're also wanting to use Flask-Marshmallow (perhaps to avoid writing your own hyperlink serializer), install it afterwards to avoid getting a potentially older version.
Step One: Considering Our Data
First, let's consider what our data looks like. We have quotes. People say quotes. And that's really about it. We could use a list of dictionaries for this, but since we'll eventually involve SQLAlchemy which returns objects, lets use namedtuple instead.
from collections import namedtuple # basic quote object # can also use to represent many with [Quote(person..., quote=...)[,...]] Quote = namedtuple('Quote', ['person', 'quote']) # Let's prepopulate an example quote list quotes = [Quote(p, q) for p, q in [ ("Herbert West", "I was busy pushing bodies around as you well know " "and what would a note say, Dan? 'Cat dead, details later'?"), ("Jack Burton", "You remember what ol' Jack Burton always says at a time like that: " "'Have ya paid your dues, Jack?' 'Yessir, the check is in the mail.'"), ("Igor", "Well, why isn't it Froaderick Fronkensteen?") ]]
I wouldn't blame you if you took a break to track down one of these movies and turned it on the background.
from IPython.display import Image Image(url="http://i.imgur.com/9VeIbMZ.gif")
Step Two: Serializing to JSON
Assumuing you've not been distracted, let's see about taking these quote objects and turning them into JSON.
import json print(json.dumps(quotes[0], indent=2))
[ "Herbert West", "I was busy pushing bodies around as you well know and what would a note say, Dan? 'Cat dead, details later'?" ]
...um...er...That's not what we really wanted. Since JSON has no notation of tuples, let alone namedtuples, Python helpfully transforms them into JSON's nearest relation: lists. However, we'd probably find it nicer to have key-value pairs pop out the otherside. Of course, we could just use a dictionary, or write a namedtuple_to_dict function that'll do it ourselves:
namedtuple_to_dict = vars print(json.dumps(namedtuple_to_dict(quotes[0]), indent=2))
{ "person": "Herbert West", "quote": "I was busy pushing bodies around as you well know and what would a note say, Dan? 'Cat dead, details later'?" }
But that's no fun and will only work one level deep. What happens when we need to serialize objects that have other objects living inside them? That won't work. I've seen lots of ways to handle this, most of them are just variations on a __json__ method on every object and subclassing json.JSONEncoder to just invoke that when it encounters something it can't serialize. Plus, it still wouldn't work for namedtuple since it can be serialized to a list.
Image(url="http://i.imgur.com/mWU6lP6.gif")
Rather than hacking some function or a mixin together and making the object responsible for knowing how to transform itself into a dictionary, why not use a robust, well tested object serializer library? No, not pickle -- pickles are unsafe and too vinegary for me. My sweet tooth is craving Marshmallows.
from marshmallow import Schema, pprint from marshmallow.fields import String class QuoteSchema(Schema): person = String() quote = String() pprint(QuoteSchema().dump(quotes[0]).data)
{'person': 'Herbert West', 'quote': 'I was busy pushing bodies around as you well know and what would ' "a note say, Dan? 'Cat dead, details later'?"}
...wait, is really that easy? Five lines, including the imports? It seems like it shouldn't be, but it is. Actually it can even be easier:
class QuoteSchema(Schema): class Meta: additional = ('person', 'quote') pprint(QuoteSchema().dump(quotes[1]).data)
{'person': 'Jack Burton', 'quote': "You remember what ol' Jack Burton always says at a time like " "that: 'Have ya paid your dues, Jack?' 'Yessir, the check is in " "the mail.'"}
Marshmallow is smart enough to know how to serialize built-in types without us saying, "This is a string." Which is fantastic. We can take that schema and json.dumps and produce what we actually wanted:
print(json.dumps(QuoteSchema().dump(quotes[2]).data, indent=2))
{ "quote": "Well, why isn't it Froaderick Fronkensteen?", "person": "Igor" }
And unlike many other solutions, Marshmallow will also allow us to serialize a collection of objects as well:
pprint(QuoteSchema(many=True).dump(quotes).data)
[{'person': 'Herbert West', 'quote': 'I was busy pushing bodies around as you well know and what ' "would a note say, Dan? 'Cat dead, details later'?"}, {'person': 'Jack Burton', 'quote': "You remember what ol' Jack Burton always says at a time like " "that: 'Have ya paid your dues, Jack?' 'Yessir, the check is in " "the mail.'"}, {'person': 'Igor', 'quote': "Well, why isn't it Froaderick Fronkensteen?"}]
While this is valid JSON (a root object can be either an object or an array), Flask will only allow objects at the root level to prevent stuff like this. However, asking a schema to create a dictionary if it serializes a collection isn't hard to do at all:
from marshmallow import post_dump class QuoteSchema(Schema): class Meta: additional = ('person', 'quote') @post_dump(raw=True) def wrap_if_many(self, data, many=False): if many: return {'quotes': data} return data pprint(QuoteSchema(many=True).dump(quotes).data)
{'quotes': [{'person': 'Herbert West', 'quote': 'I was busy pushing bodies around as you well know ' "and what would a note say, Dan? 'Cat dead, details " "later'?"}, {'person': 'Jack Burton', 'quote': "You remember what ol' Jack Burton always says at a " "time like that: 'Have ya paid your dues, Jack?' " "'Yessir, the check is in the mail.'"}, {'person': 'Igor', 'quote': "Well, why isn't it Froaderick Fronkensteen?"}]}
Image(url="http://i.imgur.com/BUtt2Jd.gif")
Step Three: Briefly Flask
Now that the Quote objects can be correctly serialized to JSON, feeding it from Flask is easy peasy.
from flask import Flask, jsonify app = Flask('notebooks') # reuse the same QuoteSchema instance rather than creating new with each request QuoteSerializer = QuoteSchema() @app.route('/quote/<int:id>') def single_quote(idx): if not 0 <= idx < len(quotes): # flask allows return a tuple of data, status code, headers (dict) # status code is 200 by default data = {'error': 'quote out of range'}, 400 else: data = QuoteSerializer.dump(quote[idx]).data return data
Step Four: Deserialization
However, only getting a quote is pretty simple stuff. What if we wanted to create new Quote objects from JSON? This is pretty easy to do by hand with Flask's request object (note: the request.get_json method is currently the recommended method for plucking JSON out of the request rather than using the request.json attribute):
from flask import request @app.route('/quote/', methods=['POST']) def make_new_quote(): # get_json returns dict or None on failure json = request.get_json() if json and 'quote' in json: quotes.append(Quote(person=json['person'], quote=json['quote'])) msg = {'success': True, 'msg': 'Added quote.'} else: msg = {'success': False, 'msg': 'must specify quote in JSON request'}, 400 return msg
However, if we're deserializing complex objects, say a tracklist that has an attribute that holds track objects which reference artist objects. Pretty soon manually deserializing an object becomes quite...messy. However, there is a better way. Marshmallow not only serializes objects, but will also handle deserialization if we give it a little bit of help:
class QuoteSchema(Schema): class Meta: additional = ('person', 'quote') @post_dump(raw=True) def wrap_if_many(self, data, many=False): if many: return {'quotes': data} return data def make_object(self, data): assert 'person' in data and 'quote' in data, "Must specify person and quote in request" return Quote(person=data['person'], quote=data['quote']) QuoteSchema().load({"person": "Ash", "quote": "Good. Bad. I'm the guy with the gun."}).data
Quote(person='Ash', quote="Good. Bad. I'm the guy with the gun.")
Just the opposite of what we had before. Dictionary in, Object out. We can also deserialize a collection as well:
QuoteSchema(many=True).load([ {'person':'Ash', 'quote':"Good. Bad. I'm the guy with the gun."}, {'person': 'Shaun', 'quote': "You've got red on you."} ]).data
[Quote(person='Ash', quote="Good. Bad. I'm the guy with the gun."), Quote(person='Shaun', quote="You've got red on you.")]
Hopefully the advantage of using Marshmallow for even sending and receiving simple JSON objects is apparent. With 11 lines we can take an object and cast it to a dictionary and we can take a dictionary with certain keys and build an object with it. Sure, we're just serializing and deserializing a namedtuple..."But that's how it always begins. Very small."
Image(url="http://i.imgur.com/zvv3ymL.gif")
Step Five: Routing with Flask-Restful
Flask-Restful is a great library that builds on top of Flask's MethodView and makes it pretty easy to support multiple API styles (XML, CSV, JSON, etc). It ships with JSON serialization by default, leaving the others up to the user to implement. There's a bunch of other features as well, but I'm only to tread on the incredibly useful routing mechanism in place here.
All we need to do to hook into this is to inherit from flask_restful.Resource and return dictionaries from our methods. Dictionaries like the ones produced by Marshmallow. Changing the routing from vanilla Flask routing to class based is a little weird at first, but it quickly becomes very intuitive.
And, since the methods for deserialization are in place, let's also handle accepting JSON and appending quotes to our little list.
from flask.ext.restful import Resource from flask import request class SingleQuote(Resource): def get(self, idx): if idx and 0 <= idx < len(quotes): # flask-restful also allows data, status code, header tuples return QuoteSerializer.dump(quotes[idx]).data return {'error': 'quote index out of range'}, 400 class ListQuote(Resource): def get(self): return QuoteSerializer.dump(quotes, many=True).data def post(self): json = request.get_json() if not json: return {"success": False, "msg": "malformed request"}, 400 if not 'quote' in json: return {"success": False, "msg": "must specify quote in request"}, 400 else: # remember QuoteSchema.make_object causes an assert try: q = QuoteSerializer.load(request['json']).data except AssertionError as e: return {'success': False, 'msg': str(e)}, 400 else: quotes.append(q) return {"success": True, "msg": "Quote added."}
And then we simply register these resources on an API object that's hooked up to our application:
from flask.ext.restful import Api api = Api(app) api.register_resource(SingleQuote, '/quote/<int:id>') api.register_resource(ListQuote, '/quotes')
Step Six: Persistence with SQLA
This is great and all, but these quotes will only last as long as the session runs. If we need to restart, we lose it all except for the preloaded quotes. To achieve real persistence, we should shake up with a database. SQLite is a good choice for this, plus bindings come native with Python.
from flask.ext.sqlalchemy import SQLAlchemy app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///quotes.db' db = SQLAlchemy(app) class Quote(db.Model): id = db.Column(db.Integer, primary_key=True) person = db.Column(db.Unicode(50)) quote = db.Column(db.UnicodeText)
Our schema doesn't change at all. Marshmallow doesn't know or care if we're passing a namedtuple or a SQLA model, just that it has the correct attributes. This is great because we can write many quick tests with something like namedtuple to verify our schema behaves correctly and then just a few integration tests with the models.
Image(url="http://i.imgur.com/mudwVxd.gif")
However, our resource end points do need to change some, though. Since we're dealing with SQLA models now and not just simple lists. The changes are trivial:
class SingleQuote(Resource): def get(self, idx): if idx: return Quote.query.get(idx) or {'error': 'quote does not exist'} return {'error': 'must specify quote id'} class ListQuote(Resource): def get(self): return QuoteSerializer.dump(quotes, many=True).data def post(self): json = request.get_json() if not json: # get_json will return a dict or None return {"success": False, "msg": "malformed request"}, 400 if not 'quote' in json: return {"success": False, "msg": "must specify quote in request"}, 400 else: try: q = QuoteSerializer.load(request['json']).data except AssertionError as e: return {'success': False, 'msg': str(e)}, 400 else: db.session.add(q) db.session.commit() return {"success": True, "msg": "Quote added."}
Just two simple changes to go from list to SQLA models. Be sure to run db.create_all() somewhere before and load up initial quotes and Quotly is up and running, ready to send and receive cheeky movie quotes for everyone.
Parting Thoughts
While this was more of a "hit the ground running" guide to building a simple REST API with Flask and its little ecosystem, I hope it's been enlightening. I've included the whole application in this gist for reference. If you see a bug or have questions, hit me up on twitter ([@just_anr](https://twitter.com/just_anr)) or on github (justanr).
I spilled my brains, spill some of yours.


Sales Team Advisor 1
It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Sales Team Advisor 2
It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Sales Team Advisor 3
It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Sales Team Advisor 4
It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.


Vim: Text Manipulation
This is part 4 of a series of tutorial to Vim. You can read Part 3 here.
Copy and Paste
Moving around text is probably the most used operation used in any text editor. As you might have guessed, there are couple of ways to do these operations in Vim.
Lesson 5
In Vim's lingo copying is yanking.
You yank a line.
- Hit
y
to yank; Yank takes in range-characters, words or lines. Hity3w
to copy 3 words.y10j
(ory10<downarrow>
) to yank 10 below lines. All the motion commands which we learned last time can be combined withy
.yy
yanks the whole current line.y<rightarrow>
will yank just one character on the right.
d
to delete stuff. Deleting not only removes text from buffer, it adds it to clipboard1. Sod
can be used to delete as well as to cut.dd
deletes current whole line.x
will delete one character below the cursor.xp
will exchange characters, try it to see what I mean.
p
to paste stuff. You can usep
to paste to right/below andP
to paste above/before.- All of them,
y
,d
,p
, can be combined with any motion commands.
Till, In and Around
Let me tell you about 3 more motion commands which fit beautifully with yank and delete.
1: int foo(int a, int b, char *str) { 2: a += b; 3: str[0] = 'd'; 4: return a; 5: }
t<char>
(till): it will give you text till the first character is encounteredi<bracket>
(in): it will give you text in/inside the brackets- I've used this only with brackets, it may work with other characters which I'm unaware of.
a<bracket>
(a / around): gives back text inside bracket along with the
| Initial Position | Command | Comment | Resulting line | Clipboard |
|---|---|---|---|---|
| line 1, column 0 | dta |
delete till a | a, int b, char *str) { |
int foo(int a |
| line 1, inside '(' | yi( |
yanks arguments inside '(' | not changed since we are yanking | int a, int b, char *str |
| anywhere in lines 2 to 4 | da{ |
deletes everything inside and including {…} (body of function) | ~int foo(int a, int b, char *str) ~ | { complete function body } |
One more thing: Time Travel
From this part onwards you will be doing complex manipulation to text. It would be nice to have another important feature in our arsenal: Undo.
- You can undo your last action by hitting
u
. - And, you can undo your undo (redo) by hitting
<ctrl>+r
Vim stores all your changes along with timestamp. In fact, Vim stores undo branches, which can be very helpful in case you want to redo something you've over written. You can read more about undo branches here.
Summary
| Command | Comment |
|---|---|
y |
yank, copy |
d |
delete to delete as well as cut |
p |
paste |
P |
paste above/before |
x |
delete character below cursor |
t<char> |
do x till first instance of character 'char' |
i<brac> |
do x to text inside enclosing bracket 'brac', works with {, [, (, < |
a<brac> |
ditto as above, includes the bracket too in capture |
u |
undo |
<ctrl>+r |
redo |
- Yank, delete and paste can be combined with other motion commands
'till', 'around', 'in' are your friends, remember them, specially when dealing with function arguments, HTML and languages which use '{' to enclose blocks.
Footnotes:
not actually clipboard but registers, as we'll shall see.


Saucy's Pizza
Where the pizza is always deliciously saucy!


Anton Holmgren
Welcome
Big
AIA
Flowchart
Galleries
Shopping Carts
App VS Mobile Design
Webcam
Final Project
Google


import com.sleepycat.db.*;
This manual page describes the specific details of the DbLog class.
This class provide a general-purpose logging facility sufficient for transaction management. Logs can be shared by multiple processes.
The Berkeley DB transaction log is represented by a directory containing a set of files. The log is a record-oriented, append-only file, with records identified and accessed via DbLsn's (database log sequence numbers).
DbLsn's are returned on each DbLog.put operation, and only those DbLsn's returned by DbLog.put can later be used to retrieve records from the log.


THE ACCOMPIANIST A film review by James Berardinelli Copyright 1994 James Berardinelli
Rating (Linear 0 to 10): 8.2
Date Released: varies Running Length: 1:50 Rated: PG (Mature themes)
Starring: Romane Bohringer, Richard Bohringer, Elena Safonova Director: Claude Miller Producer: Jean-Jose Richer Screenplay: Claude Miller and Luc Beraud Music: various composers, including Mozart, Strauss, and Berlioz Released by Sony Pictures Classics In French with subtitles
French cinema has long been admired for the depth and breadth of the characters brought to the screen through its movies. Hollywood, more concerned with moving a plot along before the attention span of the average viewer is exhausted, rarely permits the opportunity to examine its screen personalities with the incisive insight present in a movie such as THE ACCOMPANIST. A rather unremarkable tale on the surface, this story attains its impact through the complex web of relationships that entwines the three main characters.
It is 1942-43 in German-occupied France. Charles Brice (Richard Bohringer), a French businessman, is regarded as a collaborator because he's making money with the Germans in charge. His wife, singer Irene Brice (Elena Safonova), is beloved by both French nationals and the occupying power. Into this world of wealth and privilege comes a talented young pianist by the name of Sophie Vasseur (Romane Bohringer), who auditions to be Irene's accompanist. Irene, amazed by the young woman's remarkable ability, hires her, but Sophie soon learns that working with the singer demands more sacrifices than she could have dreamed possible.
THE ACCOMPANIST is told in three parts. The first, which takes place in France, focuses on Sophie, exploring her life, feelings, and the love/hate relationship that develops between her and Irene. The second part, the journey from France to England, is more the singer's story, while the third segment, in England, concentrates on Charles and the demons of insecurity and jealousy that haunt him.
Despite the varying emphases of the different portions of THE ACCOMPANIST, the central character is always Sophie, although she is rarely more of an observer. She has given up her own life to follow Irene, and off-stage as well as on, she is always in the background. Nevertheless, even as Sophie is obsessed with a woman whom she both despises and is jealous of, so Irene comes to depend on the young woman who plays the piano for her.
At one crucial juncture during the film, Sophie is tendered an offer of marriage by a French freedom fighter named Benoit (Julien Rassam). The limelight of stardom no longer shines on Irene--she and Charles are exiles--and Benoit represents a chance for Sophie to have a life, and possibly love, apart from the Brices. Her reaction to the proposal says more about the ties that bind her to Irene and Charles than it does about Benoit's persuasiveness.
The third member of the trio is Charles Brice, who at first appears to be a supremely confident, smug man whose business acumen has made him a force to be reckoned with. It isn't until Sophie has begun living under the Brices' roof that she learns how thin that veneer is. Charles is far more dependent upon his wife than Irene is on him, and this forms the backdrop for THE ACCOMPANIST's final scenes.
All three of the principle actors, as well as the members of the supporting cast, give fine performances. Romane Bohringer, who won the 1992 Cesar Award as Most Promising New Actress, is exceptional, bringing a silent expressiveness to the role of Sophie that would be beyond many veterans of the screen. Ms. Bohringer's rapport with her father Richard is evident in their many scenes together.
Those that love rich musical scores, especially those involving pieces by composers such as Mozart, Strauss, and Berlioz, will find this film as pleasing to the ear as to the eye.
Ultimately, THE ACCOMPANIST holds the viewer's attention through the power of its depiction of the bonds that develop between the singer, her husband, and her pianist. The story that conveys this relationship is neither original nor exceptional, but writer/director Claude Miller's presentation of the intricate and conflicting emotions makes this an experience that is always absorbing, and occasionally wrenching.
- James Berardinelli<EMAIL_ADDRESS>.
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


Graphene Modal
A simple, lightweight modal / modal window. Built for performance.
This is the ajax form modal example.
Display form modal
Back to the modal examples home page.
Title
Body
Close
Close


Folder Structure - Where to find what Files (In- and Output)¶
Unless the paths are not adapted/overwritten in config.ini, Comprior builds up the following folder infrastructure during processing:
data
├── input
│ ├── dataset
│ └── example
├── intermediate
│ ├── dataset
│ ├── crossvalidation
│ └── externalKnowledge
└── results
└── XXX
├── timeLogs
├── preanalysis
├── geneRankings
└── evaluation
├── rankings
├── annotation
└── metrics
├── reducedData
└── classification
├── metrics
└── crossEvaluation
├── reducedData
└── classification
input/¶
- dataset/: put your input dataset here
- example/: folder with example files for trying out Comprior
intermediate/¶
- dataset/: preprocessed input data (currently metadata added to one file)
- crossvalidation/: contains preprocessed dataset for cross-validation (e.g. mapped to the right identifier or pathway features)
- externalKnowledge/: one sub-folder per knowledge base that is queried with query results
results/¶
XXX/: output folder for the current run, whose name is specified by the outputDir_name parameter in config.ini (if there already exists a folder with such a name, Comprior adds a number to the name)
timeLogs/: one file for every selected approach, containing logs with time durations of different selection activities, e.g. external knowledge retrieval or statistical feature selection
preanalysis/: contains - if selected via preanalysis_plots and evaluateKBcoverage parameters in config.ini - plots on data set characteristics and knowledge base coverage
geneRankings/: contains the actual feature rankings, one CSV file for every selected approach
evaluation/: contains all evaluation results
- rankings/: contains evaluation results from analyzing the feature rankings
- annotation/: contains annotation/enrichment files for every ranking
- metrics/: contains the actual metrics results to compare the rankings
- reducedData/: one sub-folder per selection approach containing input data for the top k features; these files are used for the actual classification/prediction
- classification/:
- metrics/: contains the actual classification metrics results, one CSV file for every selected metric, also contains pdfs for visualizations
- crossEvaluation/: contains evaluation data from the second data set for cross-validation
- reducedData/: one sub-folder per selection approach containing input data (second data set) for the top k features; these files are used for the actual classification/prediction
- classification/: contains the actual classification metrics results, one CSV file for every selected metric, also contains pdfs for visualizations


Hosting on AWS
Chances and Challenges
- some ideas about stability
- some ideas about flexibility
- Question:
- Can something be stable and flexible at the same time?
Who am I
Roman Heinrich
- mindreframer (github/twitter)
- Ruby/Puppet/Chef/WebDev
Getting Slides
- download the PDF file for clickable URLs
- or clone directly from Github
$ git clone https://github.com/mindreframer/infra-slides.git
$ cd infra-slides
$ sh/slides
What do I demand from a system in production?
- Robust and simple tools
- Fast provisioning
- Fast state queries and command execution
- Orchestration - important in dynamic environments
- Realtime data
Fast provisioning
- dont want to wait for compiling code
- dont want to wait for package updating
- dont want to wait for bundle update (on every server)
- dont want to wait for npm install (on every server)
- dont want to wait for ... You get the point.
Fast provisioning - approach
- Pre-package anything possible
- FPM - deb/rpm packages from anything
- REALLY, it's amazing and works really good.
- Packer.io - prepackage ready VMs
- installs Chef + pulls private repo + executes Chef-Solo
- with application code already!
- Just spawn them and maybe change a couple of things on the live instance
Fast state queries / Remote execution
- getting info from live system
- Bash loops and SSH dont work on scale
- need a system for this
Fast state queries / Remote execution - approach
- Ansible/Salt/Chef Knife+Chef Server/Puppet Server
- after working with them, I chose Salt
- it was the fastest :)
- just for the remote execution/state query part
- Provisioning still done by Chef-Solo
- Might rethink it later...
Orchestration
- Discovery over configuration
- Coordination service for distributed applications
- Zookeeper/Doozerd/Etcd
- ZooKeeper vs. Doozer vs. Etcd on devo.ps
- Etcd looks really good - security
- Need to implement a small prototype and test some scenarios
Orchestration - Ironfan
- Just found out Ironfan from Infochimps!
- https://github.com/infochimps-labs/ironfan
- Looks very complex, but might be interesting
Simple Tools
- started mpx-cli
- CLI tool for AWS with local caching (in Sqlite3)
- Simple/fast
- $ mpx-cli ec2 list
- $ mpx-cli ec2 refresh
- $ mpx-cli ami list
- $ mpx-cli ami refresh
- $ mpx-cli login (server-name/instance_id)


Basic
Apart from navbar and footer, every other content in this website is inside a section. Sections are a wrapper to divide your content into several pieces.
You mostly only need to copy and paste a code from the section which you want to use. You might see that all of the sections have a wrapper like this:

. Let's dive into it and see other possibilities.
Background Color
Apart from navbar and footer, every other content in this website is inside a section. Sections are a wrapper to divide your content into several pieces.
This section has an additional .bg-gray
class.
Inverse Color
Apart from navbar and footer, every other content in this website is inside a section. Sections are a wrapper to divide your content into several pieces.
This section has an additional .section-inverse
class.
Primary Color
Apart from navbar and footer, every other content in this website is inside a section. Sections are a wrapper to divide your content into several pieces.
This section has an additional .section-inverse
and .bg-primary
classes.
Custom Color
Apart from navbar and footer, every other content in this website is inside a section. Sections are a wrapper to divide your content into several pieces.
This section has an additional .section-inverse
and style="background-color: #01d5d8"
classes.
Background Image
Apart from navbar and footer, every other content in this website is inside a section. Sections are a wrapper to divide your content into several pieces.
Add a .bg-img
class to your
 and provide a background-image for the section.
To add an overlay to your section, simply add data-overlay="X"
to the section, which X is an integer number between 0 to 10. You might want to change the overlay dark color to light or primary color by adding either data-overlay-light="true"
or data-overlay-primary="true"
respectively.
Gradient Background
Apart from navbar and footer, every other content in this website is inside a section. Sections are a wrapper to divide your content into several pieces.
This section has an additional .section-inverse
class and style="background-image: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%)"
attribute. You can get access to a list of gradient background samples at http://webgradient.com
Parallax Image
Apart from navbar and footer, every other content in this website is inside a section. Sections are a wrapper to divide your content into several pieces.
Add a data-parallax="path/to/img.jpg"
to your section. You are able to use overlays as well.
Section Dialog
Display a rounded block right in the middle of your section. It has .section-dialog
class name and would be greate to use it in call to action blocks or registration forms. Feel free to include it inside a .section-inverse
; the dialog will become inverse as well.


boost::quan::conf_interval
// In header: <boost/quan/rounding.hpp> std::pair< double, double > conf_interval(double mean, double sigma, double df = 1., double alpha = 0.05, distribution_type distrib = gaussian);
Calculate confidence interval for chosen alpha confidence level and chosen distribution type.
Uses confidence interval equations from:
Gejza Wimmer, Viktor Witkovsky, Tomas Duby Measurement Science and Technolology, 11 (2000) 1659-1665. ISSN 0957-0233 S0957-233(00)13838-X. Proper rounding of the measurement result under the assumption of gaussian distribution,
Confidence interval equation 6, p 1660.
Gejza Wimmer, Viktor Witkovsky, Tomas Duby
Measurement Science and Technolology, 11 (2000) 1659-1665. ISSN 0957-0233 S0957-233(00)13838-X.
Proper rounding of the measurement result under the assumption of triangular distribution,
Measurement Science Review, Vol 2, section 1, (2002), pages 21 to 31.
Confidence interval Equation 12, page 25.
Gejza Wimmer, Viktor Witkovsky,
Proper rounding of the measurement result under the assumption of uniform distribution,
Measurement Science Review, Vol 2, section 1, (2002), pages 1 - 7.
Confidence interval, page 5, equation 13.
Parameters: |
|
||||||||||
Returns: |
Confidence interval upper and lower limits as a |


P
rojects
My DBC blog
Projects
Resume
About This Guy
Water Flow
Project 54
Simplified Fantasy Football
WSJ Index
Real Calorie Counter
Project To Be Named LAter


Welcome to TODO app, please log in or register
Register
log in
Please fill all fields to register
User name:
Full Name:
Password:
Password verification:
Back To Login
Register
todos
Mark all as complete


--- layout: documentation title: ReactiveX - Timer operator id: timer ---
TBD
{% endlang_operator %} {% lang_operator RxCpp %}TBD
{% endlang_operator %} {% lang_operator RxGroovy timer %}RxGroovy implements this operator as timer
.
RxJava implements this operator as timer
.
In RxJS there are two versions of the timer
operator.
timer
by default operates on the timeout
Scheduler, or you can override this by passing in a Scheduler as a final
parameter.
timer
is found in each of the following distributions:
rx.all.js
rx.all.compat.js
rx.time.js
(requires either rx.js
or rx.compat.js
)rx.lite.js
rx.lite.compat.js
TBD
{% endlang_operator %} {% lang_operator Rx.NET Timer %}TBD
TBD
{% endlang_operator %} {% lang_operator Rx.rb %}TBD
{% endlang_operator %} {% lang_operator RxScala timer %}TBD
{% endlang_operator %} {% lang_operator RxSwift timer %}TBD
{% endlang_operator %}


Evaluating human skills using machine learning
At Aspiring Minds, we showed how the problem of quantifying human skills can be cast as a problem in machine learning. Our CACM paper provides details on this framework, while our KDD works show how we evaluate computer programs using ML.
Tags:
papers
,
ml-for-plse
,
program-representation
Skill evaluation
Srikant, Shashank,
Takhar, Rohit,
Venugopal, Vishal,
and Aggarwal, Varun
Commun. ACM
2019
A system to grade computer programming skills using machine learning
Srikant, Shashank,
and Aggarwal, Varun
In Proceedings of the 20th ACM SIGKDD international conference on Knowledge discovery and data mining
2014
Question independent grading using machine learning: The case of computer program grading
Singh, Gursimran,
Srikant, Shashank,
and Aggarwal, Varun
In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining
2016
Links
Blog [KDD-2014] [KDD-2016]
Video
PDF CACM 2019
PDF KDD 2014
PDF KDD 2016


Quantum Storage¶
Quantum Storage objects are used by the Host components. Each Host has two Quantum Storage objects, one for EPR pairs and the other for data qubits, but in both cases, they store Qubit objects. As further iterations of QuNetSim are developed, we plan to add parameters such that we can better simulate quantum memories.
-
class
qunetsim.objects.storage.quantum_storage.
QuantumStorage
¶ Bases:
object
An object which stores qubits.
-
_add_request
(args)¶ Adds a new request to the quantum storage. If a new qubit arrives, it is checked if the request for the qubit is satisfied.
- Parameters
args (list) – [Queue, from_host_id, q_id, purpose]
-
_check_all_requests
()¶ Checks if any of the pending requests is now fulfilled.
- Returns
If a request is fulfilled, the request is handled and the function returns the qubit of this request.
-
_check_memory_limits
(host_id)¶ Checks if another qubit can be added to the storage.
- Parameters
host_id (str) – The host_id the qubit should be added to.
- Returns
True if no storage limit has been reached, False if a memory limit has occurred.
-
_check_qubit_in_system
(qubit, from_host_id, purpose=None)¶ True if qubit with same parameters already in the systems
- Parameters
qubit (Qubit) – The qubit in question
from_host_id (str) – The ID of the sending host
purpose (int) – Qubit’s purpose
- Returns
If the qubit is in the system.
- Return type
(bool)
-
_decrease_qubit_counter
(host_id)¶ Checks if the qubit counter can be decreased and decreases the counter.
- Parameters
host_id (str) – From who the qubit comes from.
- Returns
True, if the counter could be decreased, False if not.
- Return type
(bool)
-
_increase_qubit_counter
(host_id)¶ Checks if the qubit counter can be increased, because of memory limits, and increases the counter.
- Parameters
host_id (str) – From who the qubit comes from.
- Returns
True, if the counter could be increased, False if not.
-
_remove_request
(req_id)¶ Removes a pending request from the request dict.
- Parameters
req_id (int) – The id of the request to remove.
-
_reset_qubit_counter
(host_id)¶ - Parameters
host_id (str) –
- Returns
True, if the counter could be decreased, False if not.
- Return type
(bool)
-
add_qubit_from_host
(qubit, purpose, from_host_id)¶ Adds a qubit which has been received from a host.
- Parameters
qubit (Qubit) – qubit which should be stored.
from_host_id (str) – Id of the Host from whom the qubit has been received.
purpose (str) – Purpose of the Qubit, for example EPR or data.
-
change_qubit_id
(from_host_id, new_id, old_id=None)¶ Changes the ID of a qubit. If the ID is not given, a random qubit which is from a host is changed to the new id.
- Parameters
from_host_id (str) – The ID of the owner
new_id (str) – The ID to change to
old_id (str) – The old ID
- Returns
The new ID
- Return type
(str)
-
check_qubit_from_host_exists
(from_host_id, purpose=None)¶ Check if a qubit from a host exists in this quantum storage.
- Parameters
from_host_id (str) – The host id of the host from which the qubit is from.
purpose (int) – Optional, purpose of the qubit which should exist.
- Returns
True, if such a qubit is in the storage, false if not.
- Return type
(bool)
-
get_all_qubits_from_host
(from_host_id, purpose=None, remove=False)¶ Get all Qubits from a specific host id. These qubits are not removed from storage!
- Parameters
from_host_id (str) – The host who the qubits are from
purpose (int) – The purpose of the qubits
remove (bool) – Also remove from storage
- Returns
The list of qubits
- Return type
(list)
-
get_qubit_by_id
(q_id)¶ Return the qubit that has the id q_id
- Parameters
q_id (str) – The ID of the qubit
- Returns
The qubit with the id q_id or None if it does not exist
- Return type
(Qubit)
-
get_qubit_from_host
(from_host_id, q_id=None, purpose=None, wait=0)¶ Returns next qubit which has been received from a host. If the qubit has not been receives yet, the thread is blocked for a maxiumum of the wait time, till the qubit arrives (The default is 0). If the id is given, the exact qubit with the id is returned, or None if it does not exist. The qubit is removed from the quantum storage.
- Parameters
from_host_id (str) – Host id from who the qubit has been received.
q_id (str) – Optional Id, to return the exact qubit with the Id.
purpose (str) – Optional, purpose of the Qubit.
wait (int) – Default is 0. The maximum blocking time. -1 if blocking forever.
- Returns
If such a qubit exists, it returns the qubit. Otherwise, None is returned.
- Return type
(bool)
-
release_storage
()¶ Releases all qubits in this storage. The storage is not usable anymore after this function has been called.
-
reset_qubits_from_host
(from_host_id, purpose=None)¶ Remove all stored qubits from the host from_host_id.
- Parameters
from_host_id (str) – The host who the qubits are from
purpose (int) –
-
reset_storage
()¶ Reset the quantum storage.
-
set_storage_limit_with_host
(new_limit, host_id)¶ Set a new storage limit for the storage. The implementations depends on the storage mode.
- Parameters
new_limit (int) – The new max amount of qubit.
host_id (str) – optional, if given, and the storage mode is STORAGE_LIMIT_INDIVIDUALLY_PER_HOST, the limit is only set for this specific host.
-


CSULA Senior Design Program
lets get in the mood
when i say Esri, what do you think of?
- delivering packages
- disaster response
- protecting habitat
- managing property boundaries
- 911 routing
- isolating leaks
- precision agriculture
(spatial) context is key
even w/o a map
y'all are programmers
so lets talk JSON
- hosted db
- SQL filters
- spatial predicates
- generalization
- reprojection
- multiple output formats
- upload a shapefile (or CSV)
- make edits in the map viewer
ok, lets see some JavaScript!
public is free
private, also free*
permissive TLA
heaps of basemap tiles, unlimited geosearch


|
Prodigy
|
|
|
The
Fat Of The Land
|
1.
Smack My Bitch Up
2. Breathe 3. Diesel Power 4. Funky Shit 5. Serial Thrilla 6. Mindfields 7. Narayan 8. Firestarter 9. Climbatize 10. Fuel My Fire |
|
|
|
|
Music
For The Jilted Generation
|
1.
Intro
2. Break & Enter 3. Their Law 4. Full Throttle 5. Voodoo People 6. Speedway (Theme From Fastlane) 7. The Heat (The Energy) 8. Poison 9. No Good (Start The Dance) 10. One Love The Narcotic Suite (Edit) 11. 3 Kilos 12. Skylined 13. Claustrophobic Sting |


Profile
Chat
Feed
Search
Explore
Sign out
To: {% for user in all_users %} {{ user.username }} {% endfor %}
Where You At ©


output tag is a container element that get data from a site / app / user action.
Value one
Value two
Value one + value two =
25


Blog
Contact
Feature
Footer
Gallery
Header
Hero
BootBlox
View Code
Note:
This color palette requires some extra stuff.
Read more here
Copy source code
GitHub


UnCSS
UnCSS is a tool that removes unused CSS from your stylesheets. It works across multiple files and supports Javascript-injected CSS.
How?
The process by which UnCSS removes the unused rules is as follows:
- The HTML files are loaded by PhantomJS and JavaScript is executed.
- Used stylesheets are extracted from the resulting HTML.
- The stylesheets are concatenated and the rules are parsed by css-parse.
-
document.querySelector
filters out selectors that are not found in the HTML files. - The remaining rules are converted back to CSS.
Installation:
npm install -g uncss
Usage
Within Node.js:
var uncss = require('uncss');
var files = ['my', 'array', 'of', 'HTML', 'files', 'or', 'http://urls.com'],
options = {
ignore : ['#added_at_runtime', /test\-[0-9]+/],
media : ['(min-width: 700px) handheld and (orientation: landscape)'],
csspath : '../public/css/',
raw : 'h1 { color: green }',
stylesheets : ['lib/bootstrap/dist/css/bootstrap.css', 'src/public/css/main.css'],
ignoreSheets : [/fonts.googleapis/],
timeout : 1000,
htmlroot : 'public',
report : false
};
uncss(files, options, function (error, output) {
console.log(output);
});
/* Look Ma, no options! */
uncss(files, function (error, output) {
console.log(output);
});
/* Specifying raw HTML */
var rawHtml = '...';
uncss(rawHtml, options, function (error, output) {
console.log(output);
});
At build-time
UnCSS can also be used in conjunction with other javascript build systems, such as Grunt or Gulp! Thanks to @addyosmani for creating:
and to @ben-eb for creating:
From the command line:
Usage: uncss [options] <file or URL, ...>
e.g. uncss http://getbootstrap.com/examples/jumbotron/ > stylesheet.css
Options:
-h, --help output usage information
-V, --version output the version number
-i, --ignore <selector, ...> Do not remove given selectors
-m, --media <media_query, ...> Process additional media queries
-C, --csspath <path> Relative path where the CSS files are located
-s, --stylesheets <file, ...> Specify additional stylesheets to process
-S, --ignoreSheets <selector, ...> Do not include specified stylesheets
-r, --raw <string> Pass in a raw string of CSS
-t, --timeout <milliseconds> Wait for JS evaluation
-H, --htmlroot <folder> Absolute paths' root location
Note that you can pass both local file paths and URLs to the program.
- ignore (Array): provide a list of selectors that should not be removed by UnCSS. For example, styles added by user interaction with the page (hover, click), since those are not detectable by UnCSS yet. Both literal names and regex patterns are recognized. Otherwise, you can add common in CSS file like:
/* uncss:ignore */
.selector1 {
/* this rule will be ignored */
}
.selector2 {
/* this will NOT be ignored */
}
media (Array): By default UnCSS processes only stylesheets with media query "all", "screen", and those without one. Specify here which others to include.
csspath (String): path where the CSS files are related to the HTML files. By default, UnCSS uses the path specified in the
<link rel="stylesheet" href="path/to/file.css"/>
stylesheets (Array): use these stylesheets instead of those extracted from the HTML files.
ignoreSheets (Array): do not process these stylesheets, e.g. Google fonts. Accepts strings or regex patterns
raw (String): give the task a raw string of CSS in addition to the existing stylesheet options; useful in scripting when your CSS hasn't yet been written to disk.
timeout (Number): specify how long to wait for the JS to be loaded.
htmlroot (String): Where the project root is. Useful for example if you are running UnCSS on local files that have absolute href to the stylesheets, i.e.
href="/css/style.css"
report (Boolean): return the report object in callback
License
Copyright (c) 2013 Giacomo Martino. See the LICENSE file for license rights and limitations (MIT).


|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.wsdl.extensions.ExtensionRegistry
public class ExtensionRegistry
This class is used to associate serializers, deserializers, and Java implementation types with extensibility elements.
| Field Summary | |
|---|---|
protected ExtensionDeserializer |
defaultDeser
|
protected ExtensionSerializer |
defaultSer
|
protected java.util.Map |
deserializerReg
|
protected java.util.Map |
extensionAttributeTypeReg
|
protected java.util.Map |
extensionTypeReg
|
protected java.util.Map |
serializerReg
|
static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
ExtensionRegistry()
Creates the extension registry, and sets the defaultSerializer and defaultDeserializer properties to instances of an UnknownExtensionSerializer, and an UnknownExtensionDeserializer, respectively. |
| Method Summary | |
|---|---|
ExtensibilityElement |
createExtension(java.lang.Class parentType,
QName elementType)
Create an instance of the type which was declared to be used to represent extensibility elements with qnames matching elementType, when intended to exist as children of the specified parentType. |
java.util.Set |
getAllowableExtensions(java.lang.Class parentType)
Returns a set of QNames representing the extensibility elements that are allowed as children of the specified parent type. |
ExtensionDeserializer |
getDefaultDeserializer()
Get the deserializer to be used when none is found for an encountered element. |
ExtensionSerializer |
getDefaultSerializer()
Get the serializer to be used when none is found for an extensibility element. |
void |
mapExtensionTypes(java.lang.Class parentType,
QName elementType,
java.lang.Class extensionType)
Declare that the specified extensionType is the concrete class which should be used to represent extensibility elements with qnames matching elementType, that are intended to exist as children of the specified parentType. |
ExtensionDeserializer |
queryDeserializer(java.lang.Class parentType,
QName elementType)
Look up the deserializer for the extensibility element with the qname elementType, which was encountered as an immediate child of the element represented by the specified parentType. |
int |
queryExtensionAttributeType(java.lang.Class parentType,
QName attrName)
Look up the type of the extensibility attribute with the qname attrName, which was defined on an element represented by the specified parentType. |
ExtensionSerializer |
querySerializer(java.lang.Class parentType,
QName elementType)
Look up the serializer to use for the extensibility element with the qname elementType, which was encountered as a child of the specified parentType. |
void |
registerDeserializer(java.lang.Class parentType,
QName elementType,
ExtensionDeserializer ed)
Declare that the specified deserializer should be used to deserialize all extensibility elements with a qname matching elementType, when encountered as immediate children of the element represented by the specified parentType. |
void |
registerExtensionAttributeType(java.lang.Class parentType,
QName attrName,
int attrType)
Declare that the type of the specified extension attribute, when it occurs as an attribute of the specified parent type, should be assumed to be attrType. |
void |
registerSerializer(java.lang.Class parentType,
QName elementType,
ExtensionSerializer es)
Declare that the specified serializer should be used to serialize all extensibility elements with a qname matching elementType, when encountered as children of the specified parentType. |
void |
setDefaultDeserializer(ExtensionDeserializer defaultDeser)
Set the deserializer to be used when none is found for an encountered element. |
void |
setDefaultSerializer(ExtensionSerializer defaultSer)
Set the serializer to be used when none is found for an extensibility element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long serialVersionUID
protected java.util.Map serializerReg
protected java.util.Map deserializerReg
protected java.util.Map extensionTypeReg
protected ExtensionSerializer defaultSer
protected ExtensionDeserializer defaultDeser
protected java.util.Map extensionAttributeTypeReg
| Constructor Detail |
|---|
public ExtensionRegistry()
| Method Detail |
|---|
public void setDefaultSerializer(ExtensionSerializer defaultSer)
UnknownExtensionSerializer
public ExtensionSerializer getDefaultSerializer()
UnknownExtensionSerializer
public void setDefaultDeserializer(ExtensionDeserializer defaultDeser)
UnknownExtensionDeserializer
public ExtensionDeserializer getDefaultDeserializer()
UnknownExtensionDeserializer
public void registerSerializer(java.lang.Class parentType, QName elementType, ExtensionSerializer es)
parentType
- a class object indicating where in the WSDL
definition this extension was encountered. For
example, javax.wsdl.Binding.class would be used to indicate
this extensibility element was found in the list of
extensibility elements belonging to a javax.wsdl.Binding.elementType
- the qname of the extensibility elementes
- the extension serializer to usequerySerializer(Class, QName)
public void registerDeserializer(java.lang.Class parentType, QName elementType, ExtensionDeserializer ed)
parentType
- a class object indicating where in the WSDL
document this extensibility element was encountered. For
example, javax.wsdl.Binding.class would be used to indicate
this element was encountered as an immediate child of
a <wsdl:binding> element.elementType
- the qname of the extensibility elemented
- the extension deserializer to usequeryDeserializer(Class, QName)
public ExtensionSerializer querySerializer(java.lang.Class parentType, QName elementType) throws WSDLException
parentType
- a class object indicating where in the WSDL
definition this extension was encountered. For
example, javax.wsdl.Binding.class would be used to indicate
this extensibility element was found in the list of
extensibility elements belonging to a javax.wsdl.Binding.elementType
- the qname of the extensibility element
WSDLException
registerSerializer(Class, QName, ExtensionSerializer)
,
setDefaultSerializer(ExtensionSerializer)
public ExtensionDeserializer queryDeserializer(java.lang.Class parentType, QName elementType) throws WSDLException
parentType
- a class object indicating where in the WSDL
document this extensibility element was encountered. For
example, javax.wsdl.Binding.class would be used to indicate
this element was encountered as an immediate child of
a <wsdl:binding> element.elementType
- the qname of the extensibility element
WSDLException
registerDeserializer(Class, QName, ExtensionDeserializer)
,
setDefaultDeserializer(ExtensionDeserializer)
public java.util.Set getAllowableExtensions(java.lang.Class parentType)
public void mapExtensionTypes(java.lang.Class parentType, QName elementType, java.lang.Class extensionType)
parentType
- a class object indicating where in the WSDL
definition this extension would exist. For example,
javax.wsdl.Binding.class would be used to indicate
this extensibility element would be added to the list of
extensibility elements belonging to a javax.wsdl.Binding,
after being instantiated.elementType
- the qname of the extensibility elementextensionType
- the concrete class which should be instantiatedcreateExtension(Class, QName)
public ExtensibilityElement createExtension(java.lang.Class parentType, QName elementType) throws WSDLException
parentType
- a class object indicating where in the WSDL
definition this extension will exist. For example,
javax.wsdl.Binding.class would be used to indicate
this extensibility element is going to be added to the list of
extensibility elements belonging to a javax.wsdl.Binding,
after being instantiated.elementType
- the qname of the extensibility element
WSDLException
mapExtensionTypes(Class, QName, Class)
public void registerExtensionAttributeType(java.lang.Class parentType, QName attrName, int attrType)
parentType
- a class object indicating where in the WSDL
document this extensibility attribute was encountered. For
example, javax.wsdl.Binding.class would be used to indicate
this attribute was defined on a <wsdl:binding> element.attrName
- the qname of the extensibility attributeattrType
- one of the constants defined on the AttributeExtensible
classqueryExtensionAttributeType(Class, QName)
,
AttributeExtensible
public int queryExtensionAttributeType(java.lang.Class parentType, QName attrName)
parentType
- a class object indicating where in the WSDL
document this extensibility attribute was encountered. For
example, javax.wsdl.Binding.class would be used to indicate
this attribute was defined on a <wsdl:binding> element.attrName
- the qname of the extensibility attribute
registerExtensionAttributeType(Class, QName, int)
,
AttributeExtensible
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


Long Island woman returns home to find late husband's ashes stolen
by CeFaan KimNORTH BELLMORE, Long Island (WABC) -- A woman on Long Island came home to find her apartment had been broken into and her late husband's ashes were stolen.
"They did take a lot of, I had a lot of jewelry in the cabinets here," said 82-year-old Bernice Immordino of North Bellmore.
She returned home Oct. 29 to find her living room and bedroom ransacked. The stolen jewelry and credit cards were all replaceable.
But not what she kept inside a gold treasure chest.
"That was the most valuable thing I couldn't put a price on," she said.
She is devastated by the theft of her husband's remains.
"My heart is broken because the most precious thing, I'm older, I'm in my 80s and it's very heartbreaking that something so special to me," said Bernice. "I would've gotten rid of his remains but I wanted them to be saved for when I would go and to be buried together."
As for how the burglar or burglars got into her home, she said ""Somebody actually went through that right side of the window."
The space that the burglar squeezed through to break in is so tight, she thinks it could have been a young child. There is a school right next door.
"My guess was maybe somebody put a child in to open up the door and then they did what they had to do," Bernice said.
Police don't have a description of the suspect or suspects. Immordino just wants her husband back, no questions asked.
"I cried. My anniversary is tomorrow in fact. I would've been married over 60 years," she said.
Detectives request anyone with information regarding the above listed crime to contact Nassau County Crime Stoppers at 1-800-244-TIPS. All callers will remain anonymous.


January 13, 2021
Manager Name
Employee Name
Sunday
to
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday


--- layout: post authors: ["Greg Wilson"] title: "Close Enough for Scientific Work" date: 2014-11-18 time: "16:00:00" tags: ["Testing"] ---
The discussion around last month's post "Why We Don't Teach Testing (Even Though We'd Like To)" has been one of the most interesting in Software Carpentry's history. Inspired by that, and by discussion at WSSSPE 2.0, we are launching a collaborative book project called Close Enough for Scientific Work in which scientists will show one another how they test their software.
Contributions should be aimed at sophomores in science and engineering, and each should be sized to fit a one-hour lecture. While the format of each entry will vary according to its content, we expect most will follow this template:
Authors will retain the copyright on their work, but all material must be made available under the Creative Commons - Attribution (CC-BY) license, and all software must be made available under the MIT License. You may use any (widely-used) format and programming language you like—we will employ a professional editor to handle copy editing and production. However, we ask that you don't:
We have used this model to produce several previous books, including:
If you would like to contribute, please either submit a pull request to the repository mail Greg Wilson. And please help spread the word—we think that a couple of dozen worked examples will help most scientists more than any amount of preaching, and between us, we ought to be able to put them together.


STRONGID T- pyrantel pamoate suspension
Zoetis Inc
(pyrantel pamoate)
Equine Anthelmintic Suspension
CAUTION: Federal law restricts this drug to use by or on the order of a licensed veterinarian.
DESCRIPTION: Strongid T is a suspension of pyrantel pamoate in a palatable caramel-flavored vehicle. Each mL contains 50 mg of pyrantel base as pyrantel pamoate.
Pyrantel pamoate is a compound belonging to a family classified chemically as tetrahydropyrimidines. It is a yellow, water-insoluble crystalline salt of the tetrahydropyrimidine base and pamoic acid containing 34.7% base activity. The chemical structure and name are given below:
(E)-1,4,5,6-Tetrahydro-1-methyl-2-[2-(2-thienyl) vinyl] pyrimidine 4,4' methylenebis[3-hydroxy-2-naphthoate] (1:1)
INDICATIONS AND USAGE: For the removal and control of mature infections of large strongyles (Strongylus vulgaris, S. edentatus, S. equinus); pinworms (Oxyuris equi); large roundworms (Parascaris equorum); and small strongyles in horses and ponies.
CONTRAINDICATIONS: It is recommended that severely debilitated animals not be treated with this preparation.
PRECAUTION: This product is a suspension and as such will separate. To insure uniform resuspension and to achieve proper dosage, it is extremely important that the product be shaken and stirred thoroughly before every use.
DOSAGE AND ADMINISTRATION: Administer 3 mg pyrantel base per lb of body weight (6 mL Strongid T per 100 lb of body weight). For maximum control of parasitism, it is recommended that foals (2–8 months of age) be dosed every 4 weeks. To minimize potential hazard that the mare may pose to the foal, she should be treated 1 month prior to anticipated foaling date followed by retreatment 10 days to 2 weeks after birth of foal. Horses over 8 months of age should be routinely dosed every 6 weeks.
Directions for use: Strongid T may be administered by means of a stomach tube, dose syringe or by mixing into the feed.
Stomach Tube: Measure the appropriate dosage of Strongid T and mix in the desired quantity of water. Protect drench from direct sunlight and administer to the animal immediately following mixing. Do not attempt to store diluted suspension. Strongid T is inactive against the common horse bot (Gasterophilus spp.) However, Strongid T may be administered concurrently with carbon disulfide observing the usual precautions with carbon disulfide.
EFFICACY: Critical (worm-count) studies in horses demonstrated that Strongid T administered at the recommended dosage was efficacious against mature infections of Strongylus vulgaris (>90%), S. edentatus (69%), S. equinus (>90%), Oxyuris equi (81%), Parascaris equorum (>90%), and small strongyles (90%).
SAFETY: Strongid T is well tolerated by horses and ponies of all ages. No adverse drug response was observed when dose rates up to 60 mg of pyrantel base per lb of body weight were administered by stomach tube nor when 3 mg base per lb was given by intratracheal injection. The reproductive performance of pregnant mares and stud horses dosed with Strongid T has not been affected.
NADA #91-739, Approved by FDA
Distributed by:
Zoetis Inc.
Kalamazoo, MI 49007
13911800
Revised: January 2013
Printed in USA
Strongid® T
(pyrantel pamoate)
Equine
Anthelmintic
Suspension
Active Ingredient: 50 mg of pyrantel
base as pyrantel pamoate per mL
Caution: Federal law restricts this
drug to use by or on the order of
a licensed veterinarian.
Net Contents: 1 quart (946 mL)
NADA #91-739, Approved by FDA
zoetis
|
STRONGID T
pyrantel pamoate suspension | |||||||||||||||
| |||||||||||||||
| |||||||||||||||
| |||||||||||||||
|
| Labeler - Zoetis Inc (828851555) |
| Establishment | |||
| Name | Address | ID/FEI | Business Operations |
|---|---|---|---|
| Zoetis LLC | 039055157 | MANUFACTURE |
| Establishment | |||
| Name | Address | ID/FEI | Business Operations |
|---|---|---|---|
| Megafine Pharma (P) Limited | 925627080 | API MANUFACTURE |


--- title: Responsive columns category: grid order: 2 description: The grid enables responsive layouts by allowing you to specify how many columns each element takes up at each breakpoint. Resize your browser window to see the columns below change their relative width at each breakpoint. classes: show-grid ---


I'm Amy and I'd love to be your photographer! I specialize in family and wedding photography. I've been into photography since I was 13 years old! I picked up my first DSLR at the age of 14, and started from there. Now 10 years later, I am doing what I love for a living. I shoot with a Canon 5d Mark IV, and mainly use Prime Lenses. My favorite types of photographs are ones filled with real emotion - crying, laughter, passion, I want to capture it all! Feel free to contact me at any time!


Gramado
Products
Services
Partners
Community
About
// Administrator Login:
Username:
Password:
Remember me
Login