public class DrawerLayout
extends ViewGroup
Drawer positioning and layout is controlled using the android:layout_gravity
attribute on child views corresponding to which side of the view you want the drawer
to emerge from: left or right. (Or start/end on platform versions that support layout direction.)
To use a DrawerLayout, position your primary content view as the first child with
a width and height of match_parent
. Add drawers as child views after the main
content view and set the layout_gravity
appropriately. Drawers commonly use
match_parent
for height with a fixed width.
DrawerLayout.DrawerListener
can be used to monitor the state and motion of drawer views.
Avoid performing expensive operations such as layout during animation as it can cause
stuttering; try to perform expensive operations during the STATE_IDLE
state.
DrawerLayout.SimpleDrawerListener
offers default/no-op implementations of each callback method.
As per the Android Design guide, any drawers positioned to the left/start should always contain content for navigating around the application, whereas any drawers positioned to the right/end should always contain actions to take on the current content. This preserves the same navigation left, actions right structure present in the Action Bar and elsewhere.
For more information about how to use DrawerLayout, read Creating a Navigation Drawer.
| Modifier and Type | Class and Description |
|---|---|
static interface |
DrawerLayout.DrawerListener
Listener for monitoring events about drawers.
|
static class |
DrawerLayout.LayoutParams |
protected static class |
DrawerLayout.SavedState
State persisted across instances
|
static class |
DrawerLayout.SimpleDrawerListener
Stub/no-op implementations of all methods of
DrawerLayout.DrawerListener . |
| Modifier and Type | Field and Description |
|---|---|
static int |
LOCK_MODE_LOCKED_CLOSED
The drawer is locked closed.
|
static int |
LOCK_MODE_LOCKED_OPEN
The drawer is locked open.
|
static int |
LOCK_MODE_UNLOCKED
The drawer is unlocked.
|
static int |
STATE_DRAGGING
Indicates that a drawer is currently being dragged by the user.
|
static int |
STATE_IDLE
Indicates that any drawers are in an idle, settled state.
|
static int |
STATE_SETTLING
Indicates that a drawer is in the process of settling to a final position.
|
| Constructor and Description |
|---|
DrawerLayout(Context context) |
DrawerLayout(Context context,
AttributeSet attrs) |
DrawerLayout(Context context,
AttributeSet attrs,
int defStyle) |
| Modifier and Type | Method and Description |
|---|---|
void |
addView(View child,
int index,
ViewGroup.LayoutParams params) |
protected boolean |
checkLayoutParams(ViewGroup.LayoutParams p) |
void |
closeDrawer(View drawerView)
Close the specified drawer view by animating it into view.
|
void |
closeDrawers()
Close all currently open drawer views by animating them out of view.
|
void |
computeScroll() |
protected boolean |
drawChild(Canvas canvas,
View child,
long drawingTime) |
protected ViewGroup.LayoutParams |
generateDefaultLayoutParams() |
ViewGroup.LayoutParams |
generateLayoutParams(AttributeSet attrs) |
protected ViewGroup.LayoutParams |
generateLayoutParams(ViewGroup.LayoutParams p) |
int |
getDrawerLockMode(int edgeGravity)
Check the lock mode of the drawer with the given gravity.
|
int |
getDrawerLockMode(View drawerView)
Check the lock mode of the given drawer view.
|
java.lang.CharSequence |
getDrawerTitle(int edgeGravity)
Returns the title of the drawer with the given gravity.
|
boolean |
isDrawerOpen(View drawer)
Check if the given drawer view is currently in an open state.
|
boolean |
isDrawerVisible(View drawer)
Check if a given drawer view is currently visible on-screen.
|
protected void |
onAttachedToWindow() |
protected void |
onDetachedFromWindow() |
boolean |
onInterceptTouchEvent(MotionEvent ev) |
boolean |
onKeyDown(int keyCode,
KeyEvent event) |
boolean |
onKeyUp(int keyCode,
KeyEvent event) |
protected void |
onLayout(boolean changed,
int l,
int t,
int r,
int b) |
protected void |
onMeasure(int widthMeasureSpec,
int heightMeasureSpec) |
protected void |
onRestoreInstanceState(Parcelable state) |
protected Parcelable |
onSaveInstanceState() |
boolean |
onTouchEvent(MotionEvent ev) |
void |
openDrawer(View drawerView)
Open the specified drawer view by animating it into view.
|
void |
requestDisallowInterceptTouchEvent(boolean disallowIntercept) |
void |
requestLayout() |
void |
setDrawerListener(DrawerLayout.DrawerListener listener)
Set a listener to be notified of drawer events.
|
void |
setDrawerLockMode(int lockMode)
Enable or disable interaction with all drawers.
|
void |
setDrawerLockMode(int lockMode,
int edgeGravity)
Enable or disable interaction with the given drawer.
|
void |
setDrawerLockMode(int lockMode,
View drawerView)
Enable or disable interaction with the given drawer.
|
void |
setDrawerShadow(Drawable shadowDrawable,
int gravity)
Set a simple drawable used for the left or right shadow.
|
void |
setDrawerTitle(int edgeGravity,
java.lang.CharSequence title)
Sets the title of the drawer with the given gravity.
|
void |
setScrimColor(int color)
Set a color to use for the scrim that obscures primary content while a drawer is open.
|
public static final int STATE_IDLE
public static final int STATE_DRAGGING
public static final int STATE_SETTLING
public static final int LOCK_MODE_UNLOCKED
public static final int LOCK_MODE_LOCKED_CLOSED
public static final int LOCK_MODE_LOCKED_OPEN
public DrawerLayout(Context context)
public DrawerLayout(Context context, AttributeSet attrs)
public DrawerLayout(Context context, AttributeSet attrs, int defStyle)
public void setDrawerShadow(Drawable shadowDrawable, int gravity)
shadowDrawable
- Shadow drawable to use at the edge of a drawergravity
- Which drawer the shadow should apply topublic void setScrimColor(int color)
color
- Color to use in 0xAARRGGBB format.public void setDrawerListener(DrawerLayout.DrawerListener listener)
listener
- Listener to notify when drawer events occurDrawerLayout.DrawerListener
public void setDrawerLockMode(int lockMode)
This allows the application to restrict the user's ability to open or close
any drawer within this layout. DrawerLayout will still respond to calls to
#openDrawer(int)
, #closeDrawer(int)
and friends if a drawer is locked.
Locking drawers open or closed will implicitly open or close any drawers as appropriate.
lockMode
- The new lock mode for the given drawer. One of LOCK_MODE_UNLOCKED
,
LOCK_MODE_LOCKED_CLOSED
or LOCK_MODE_LOCKED_OPEN
.public void setDrawerLockMode(int lockMode, int edgeGravity)
This allows the application to restrict the user's ability to open or close
the given drawer. DrawerLayout will still respond to calls to #openDrawer(int)
,
#closeDrawer(int)
and friends if a drawer is locked.
Locking a drawer open or closed will implicitly open or close that drawer as appropriate.
lockMode
- The new lock mode for the given drawer. One of LOCK_MODE_UNLOCKED
,
LOCK_MODE_LOCKED_CLOSED
or LOCK_MODE_LOCKED_OPEN
.edgeGravity
- Gravity.LEFT, RIGHT, START or END.
Expresses which drawer to change the mode for.LOCK_MODE_UNLOCKED
,
LOCK_MODE_LOCKED_CLOSED
,
LOCK_MODE_LOCKED_OPEN
public void setDrawerLockMode(int lockMode, View drawerView)
This allows the application to restrict the user's ability to open or close
the given drawer. DrawerLayout will still respond to calls to #openDrawer(int)
,
#closeDrawer(int)
and friends if a drawer is locked.
Locking a drawer open or closed will implicitly open or close that drawer as appropriate.
lockMode
- The new lock mode for the given drawer. One of LOCK_MODE_UNLOCKED
,
LOCK_MODE_LOCKED_CLOSED
or LOCK_MODE_LOCKED_OPEN
.drawerView
- The drawer view to change the lock mode forLOCK_MODE_UNLOCKED
,
LOCK_MODE_LOCKED_CLOSED
,
LOCK_MODE_LOCKED_OPEN
public int getDrawerLockMode(int edgeGravity)
edgeGravity
- Gravity of the drawer to checkLOCK_MODE_UNLOCKED
, LOCK_MODE_LOCKED_CLOSED
or
LOCK_MODE_LOCKED_OPEN
.public int getDrawerLockMode(View drawerView)
drawerView
- Drawer view to check lock modeLOCK_MODE_UNLOCKED
, LOCK_MODE_LOCKED_CLOSED
or
LOCK_MODE_LOCKED_OPEN
.public void setDrawerTitle(int edgeGravity, java.lang.CharSequence title)
When accessibility is turned on, this is the title that will be used to identify the drawer to the active accessibility service.
edgeGravity
- Gravity.LEFT, RIGHT, START or END. Expresses which
drawer to set the title for.title
- The title for the drawer.public java.lang.CharSequence getDrawerTitle(int edgeGravity)
edgeGravity
- Gravity.LEFT, RIGHT, START or END. Expresses which
drawer to return the title for.setDrawerTitle(int, CharSequence)
protected void onDetachedFromWindow()
protected void onAttachedToWindow()
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
protected void onLayout(boolean changed, int l, int t, int r, int b)
public void requestLayout()
public void computeScroll()
protected boolean drawChild(Canvas canvas, View child, long drawingTime)
public boolean onInterceptTouchEvent(MotionEvent ev)
public boolean onTouchEvent(MotionEvent ev)
public void requestDisallowInterceptTouchEvent(boolean disallowIntercept)
public void closeDrawers()
public void openDrawer(View drawerView)
drawerView
- Drawer view to openpublic void closeDrawer(View drawerView)
drawerView
- Drawer view to closepublic boolean isDrawerOpen(View drawer)
#isDrawerVisible(android.view.View)
.drawer
- Drawer view to check#isDrawerVisible(android.view.View)
public boolean isDrawerVisible(View drawer)
drawer
- Drawer view to check#isDrawerOpen(android.view.View)
protected ViewGroup.LayoutParams generateDefaultLayoutParams()
protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams p)
protected boolean checkLayoutParams(ViewGroup.LayoutParams p)
public ViewGroup.LayoutParams generateLayoutParams(AttributeSet attrs)
public boolean onKeyDown(int keyCode, KeyEvent event)
public boolean onKeyUp(int keyCode, KeyEvent event)
protected void onRestoreInstanceState(Parcelable state)
protected Parcelable onSaveInstanceState()
public void addView(View child, int index, ViewGroup.LayoutParams params)


Callbacks¶
On this page
Document Callbacks¶
Mongoid supports the following callbacks for documents:
- after_initialize
- after_build
- before_validation
- after_validation
- before_create
- around_create
- after_create
- after_find
- before_update
- around_update
- after_update
- before_upsert
- around_upsert
- after_upsert
- before_save
- around_save
- after_save
- before_destroy
- around_destroy
- after_destroy
Callbacks are available on any document, whether it is embedded within another document or not. Note that to be efficient, Mongoid only fires the callback of the document that the persistence action was executed on. This is that Mongoid aims to support large hierarchies and to handle optimized atomic updates callbacks can’t be firing all over the document hierarchy.
Note that using callbacks for domain logic is a bad design practice, and can lead to unexpected errors that are hard to debug when callbacks in the chain halt execution. It is our recommendation to only use them for cross-cutting concerns, like queueing up background jobs.
class Article
include Mongoid::Document
field :name, type: String
field :body, type: String
field :slug, type: String
before_create :send_message
after_save do |document|
# Handle callback here.
end
protected
def send_message
# Message sending code here.
end
end
Callbacks are coming from Active Support, so you can use the new syntax as well:
class Article
include Mongoid::Document
field :name, type: String
set_callback(:create, :before) do |document|
# Message sending code here.
end
end
Relation Callbacks¶
Mongoid has a set of callbacks that are specific to collection based relations - these are:
- after_add
- after_remove
- before_add
- before_remove
Each time a document is added or removed from any of the following relations, the respective callbacks are fired: embeds_many, has_many, and has_and_belongs_to_many.
Relation Callbacks are specified as an option on the relation. The element added/removed is the parameter to the method you call via the callback. Example:
class Person
include Mongoid::Document
has_many :posts, after_add: :send_email_to_subscribers
end
def send_email_to_subscribers(post)
Notifications.new_post(post).deliver
end


I always heard that Japan has better technology than many other countries in Asia. Japan is a smaller country but more advanced than Thailand. I think it is a great experience doing my internship here. Their tools and resources were very good for me to further my study as a computer science student. This opportunity is essential for me to achieve in my field in the future.
Japan is so much different from Thailand. Japanese culture and livelihood are completely different. It has four seasons. It has higher living costs. Nothing is easy here. It is quite challenging.


This is Vivan Jaiswal from Gurgaon, India. I love to code and put my mind to use for problem solving, decision making, pondering and the like.
My mind loves logical problems, trying to piece thing together and increasing my general knowledge. I am currently in Python3 development and I also dabble in lighthearted Web development. I am pursuing a B.Tech course in Computer Science as of now.
I have completed grade 12 from Suncity School. Apart from being a builder, programming-lover and an unofficial PyDev, I am also interested in Maths, Science, and Philosophy and curating a lot of knowledge about diverse subjects that happen to interest me.
I Am A Web Designer By Hobby And Profession. I Have Developed A Lot Of Projects In It.
I Am A Web Developer And Designed A Lot Of Projects By Hobby And Profession.
I Am A UI/UX Developer By Hobby And Profession. I Have Developed A Lot Of Projects In It.
Thanks for viewing my profile


Why you'll love our theme?
homepages
shortcodes & items
happy clients
different pages
Guide for shortcodes
Still not sure? See our latest demos
-
Vitae adipiscing turpis. Aenean ligula nibh, mo lest ie id viverra a, dapibus at dolor. In iaculis viverra ne que, ac eleifend ante lobortis.
Additional features:
- Beautiful, full width slider.
- Simple menu with logo.
We recommend this version for business related with photos or images, like: photographers, hairdressers, artists and other. -
Vitae adipiscing turpis. Aenean ligula nibh, mo lest ie id viverra a, dapibus at dolor. In iaculis viverra ne que, ac eleifend ante lobortis.
Additional features:
- Creative menu on the left side with backgrounds for mega menu.
- Slider with background video.
We recommend this version for business related with agencies, like: creative agencies, designers, artists and other. -
Vitae adipiscing turpis. Aenean ligula nibh, mo lest ie id viverra a, dapibus at dolor. In iaculis viverra ne que, ac eleifend ante lobortis.
Additional features:
- Creative menu on the left side.
- Great portfolio with awesome layout.
We recommend this version for business related with portfolios, like: designers, architects and other. -
Vitae adipiscing turpis. Aenean ligula nibh, mo lest ie id viverra a, dapibus at dolor. In iaculis viverra ne que, ac eleifend ante lobortis.
Additional features:
- Magazine style with Ads banners and sidebar on the right.
- Magazine header style with banner at the top.
We recommend this version for business related with press, like: magazines, e-newspapers and other. -
Vitae adipiscing turpis. Aenean ligula nibh, mo lest ie id viverra a, dapibus at dolor. In iaculis viverra ne que, ac eleifend ante lobortis.
Additional features:
- Transparent menu with large image at the top.
- New item called “Flat box”.
We recommend this version for business related with beauty, like: spa, beauty offices and other. -
Vitae adipiscing turpis. Aenean ligula nibh, mo lest ie id viverra a, dapibus at dolor. In iaculis viverra ne que, ac eleifend ante lobortis.
Additional features:
- Classic header style.
- Different tabs and recent posts.
We recommend this version for business related with teaching, like: universities, language schools and other. -
Vitae adipiscing turpis. Aenean ligula nibh, mo lest ie id viverra a, dapibus at dolor. In iaculis viverra ne que, ac eleifend ante lobortis.
Additional features:
- Nice transparent header style.
- Great pricing items tailored especially for this page.
We recommend this version for business related with rentals, like: car rents, boat rents and other.


GDPR Compliance Message
The European General Data Protection Regulation (GDPR) is the EU regulation for data privacy and
security.
At Jina AI, we are fully committed to complying with the GDPR. Our policy towards privacy,
security,
and data protection aligns with the goals of GDPR. On our website, we only collect and store information
that is essential for offering our service and for improving user experience, and we do this with the
consent of our website visitors.
If you have any further questions, please do not hesitate to reach out to us at:
<EMAIL_ADDRESS>If you are not familiar with cross-modal search in Jina please read this wonderful blog post which presents how you can use Jina and build a text-to-image search system based on VSE.
To start, we need a dataset that we will use to retrieve items. First, you have to install Kaggle in your machine, because we will use the following dataset. After logging to Kaggle and setting your Kaggle Token in your system (as described here), run:
kaggle datasets download adityajn105/flickr8k
unzip flickr8k.zip
rm flickr8k.zip
mkdir data
mkdir data/f8k
mv Images data/f8k/images
mv captions.txt data/f8k/captions.txt
make sure that your data folder has the following structure:
data/f8k/images/*jpg
data/f8k/captions.txt
After the data is downloaded we can add it in the root folder of cross-modal-search . After setting the working directory we are set to index the data using the CLIP model:
python app.py -t index -n 16000 -d f8k -m clip
Once we’ve indexed the data we can perform a search by first running:
python app.py -t query
Then, in a browser use Jina Box url, type anything in the search bar and wait to see the top-k results.
CLIP is a neural network built to jointly train an image encoder and a text encoder. The learning task for CLIP consist of predicting correct pairings between text descriptions and images in a batch. The following image summarizes the training of the model:
After training, the model can be used to encode a piece of text or an image into a 512-dimensional vector.
Since both text and images are embedded into the same fix-sized space the embedded text can be used to retrieve images (and vice-versa).
Let phi_t
and phi_i
be the embeddings learned by CLIP to transform text and images respectively to vectors. In particular phi_t(x_text)
and phi_t(x_image)
are 512 dimensional vectors.
Given a text query q
and N
images (x_1, ..., x_N)
we can compute the dot products between q
and the N
images and store them in the vector s
. That is, s = phi_t(q) * phi_i(x_1), phi_t(q) * phi_i(x_2), ..., phi_t(q) * phi_i(x_N) )
.
Then we can return the top K
elements from x_1, ... , x_N
in a list top_K
using the similarity values in s
, where the k’th value in top_K
would correspond to the coordinate in s
with the k’th highest score.
We can evaluate CLIP using the mean reciprocal rank (MRR), which is a common metric to evaluate information retrieval systems.
Given a list of queries query_list = (q_1,...,q_Q)
and a list (of lists) of retrieved items retrieved_list = ( r_1, ... , r_Q)
, the mean reciprocal rank assigned to (query_list, retrieved_list)
is defined as the mean of the inverse of the ranks. That is:
where rank(q_i, r_i)
refers to the position of the first relevant document in r_i
.
The provided evaluate.py can be used to compute the MRR of CLIP and VSE++. The results are:
| Encoder | Modality | Mean reciprocal Rank | Terminal command |
| ------- | ------------- | -------------------- | ------------------------------------------------------------ |
| vse | text to image | 0.3669 | python evaluate.py -e text2image -i 16000 -n 4000 -m vse -s 32 |
| clip | text to image | 0.4018 | python evaluate.py -e text2image -i 16000 -n 4000 -m clip -s 32 |
| clip | image to text | 0.4088 | python evaluate.py -e image2text -i 16000 -n 4000 -m clip -s 32 |
| vse | image to text | 0.3791 | python evaluate.py -e image2text -i 16000 -n 4000 -m vse -s 32 |
app.py
Now that we have seen how to use in our Jina application and the benefits of leveraging the CLIP encoder we can look at the code and the details of the implementation.
A Jina application will usually start by setting several environment variables that are needed in order to properly set up the provided .yml
files which might use different environment variables such as JINA_PARALLEL
or JINA_SHARDS
.
The setting of these variables is done in the config()
function.
def config(model_name):
os.environ['JINA_PARALLEL'] = os.environ.get('JINA_PARALLEL', '1')
os.environ['JINA_SHARDS'] = os.environ.get('JINA_SHARDS', '1')
os.environ['JINA_PORT'] = '45678'
os.environ['JINA_USE_REST_API'] = 'true'
if model_name == 'clip':
os.environ['JINA_IMAGE_ENCODER'] = os.environ.get('JINA_IMAGE_ENCODER', 'docker://jinahub/pod.encoder.clipimageencoder:0.0.1-1.0.7')
os.environ['JINA_TEXT_ENCODER'] = os.environ.get('JINA_TEXT_ENCODER', 'docker://jinahub/pod.encoder.cliptextencoder:0.0.1-1.0.7')
os.environ['JINA_TEXT_ENCODER_INTERNAL'] = 'yaml/clip/text-encoder.yml'
elif model_name == 'vse':
os.environ['JINA_IMAGE_ENCODER'] = os.environ.get('JINA_IMAGE_ENCODER', 'docker://jinahub/pod.encoder.vseimageencoder:0.0.5-1.0.7')
os.environ['JINA_TEXT_ENCODER'] = os.environ.get('JINA_TEXT_ENCODER', 'docker://jinahub/pod.encoder.vsetextencoder:0.0.6-1.0.7')
os.environ['JINA_TEXT_ENCODER_INTERNAL'] = 'yaml/vse/text-encoder.yml'
This is paramount to start defining the Flow
, because the Flow
is created from
flow-index.yml
which already expects some of this environment variables already set.
For example we can see shards: $JINA_PARALLEL
and uses: $JINA_USES_VSE_IMAGE_ENCODER
.
!head -18 flow-index.yml
!Flow
version: '1'
with:
prefetch: 10
pods:
- name: loader
uses: yaml/image-load.yml
shards: $JINA_PARALLEL
read_only: true
- name: normalizer
uses: yaml/image-normalize.yml
shards: $JINA_PARALLEL
read_only: true
- name: image_encoder
uses: $JINA_USES_VSE_IMAGE_ENCODER
shards: $JINA_PARALLEL
timeout_ready: 600000
read_only: true
Once config
is called we can see that the application selects either index
or query
mode.
Note that config sets some global variables with Docker, such as 'docker://clip_text_encoder'
.
This is needed becasue this encoder is not part of the core of Jina and we need to specify how to find the docker for a specific part of the Flow
that we will construct.
Note that the Pod
named loader
, defined in the file image-load.yml
does not need any docker information.
This file starts with !ImageReader
which is a crafter already provided in Jina’s core.
If index
is selected a Flow
is created with
f = Flow().load_config('flow-index.yml')
And the Flow
can start indexing with f.index
with f:
f.index(input_fn=input_index_data(num_docs, request_size, data_set),
request_size=request_size)
Here f.index
receives a generator input_index_data
that reads the input data and creates jina.Document
objects with the images and the captions.
We can plot a Flow
using the f.plot(image_path)
function. The output of
f.plot('flow_diagram_index.svg')
is the following plot:
In the diagram, each blue node corresponds to one of Pods
defined in flow-index.yml
.
The string inside each node corresponds to the atrribute name
assigned to each Pod
in flow-index.yml
.
Note that there are two main branches: the middle path transforms images to vectors while the bottom branch transforms text to vectors. Both branches transform data to the same vector space.
If query mode is selected we can see that another Flow
is created from flow_query.yml
f = Flow().load_config('flow-query.yml')
f.use_rest_gateway()
with f:
f.block()
as before, we can visually inspect the query Flow
using f.plot('flow_diagram_index.svg')
which will provide the following diagram:


Welcome Home
Jordan
Grew up in Indiana
Adorable Puppy
Big Time Nerd
Lots of careers
Data Analyst
Intel Analyst
Reporter
Associates in Information Systems Management
Hoping to work in CGI for movies and tv


Enter Text to send websocket server
Connect Send / Receive WebSocket State Disconnect
Responses from Websocket Server


f
We inspire to identify personal potential through individuality, inclusivity and impact regardless of race, sexual orientation, religion, and/or socio-economic status.
We empower the practice of healthy living and the possibilities of life in sports.
We encourage and motivate through constructive feedback. We promise to maintain the highest level of professional behavior through transparency, honesty, and ethics.
Dribbling will become second nature. Our drills help build confidence and composure handling the rock.
Can you knock down tough shots? With our shooting formula and repetition, we will build your muscle memory to increase your shooting percentage.
Offense wins games, defense wins championships. From full court defensive slides, box out drills and 2 on 3 competition, our team aims to build a Mamba Mentality.
The focus of these off-court workouts is to enhance your balance, build your core and increase your endurance. Our goal is to develop a healthy lifestyle that also applies outside of basketball training.
Founder/Coach
Idalis grew up playing basketball in Minneapolis, MN. After she graduated high school, she pursued her collegiate basketball career at Danville Area Community College and William Penn University. Returning home in 2018 she picked up coaching, and fell in love with teaching the game, and healthy workout habits. City Serves, previously known as City Girls Basketball Training, was initially a program focused on developing young athletes to prepare for the next level. But why not provide thematic knowledge? City Serves not only focuses on basketball development (though we thrive in this), but we also focus on healthy workout habits that can be conditioned into any lifestyle. Idalis partners with training facilities and youth programs throughout the city, and she also collaborates with former collegiate athletes for group training sessions
City Serves Training & Conditioning offers a variety of training options designed suit both your training objectives, and your budget. We are more than happy to customize or amend any training package, per request.
| Solo Session | $35.00 |
| Solo Session 4-Pack | $140.00 |
Your generosity helps us to provide more effective and valuable training sessions through the incorporation of enhanced equipment and use of public facilities throughout the city of Minneapolis. All funds will be reinvested in the program to ensure our youth are receiving the best training possible.
If you have any questions regarding our offered training options, we would love to hear from you. Please do not hesitate to email us anytime with any feedback or requests!


Artificial Viking Metal Minstrel
Mead level
More mead makes the minstrel more creative, innovating its own words and such
%Song title start
About
The Minstrel is a recurrent neural network that listens to viking and power metal, and likes to make its own songs. It has been listening to bands like Amon Amarth, Ensiferum, Enslaved, Grand Magus, Rhapsody, Unleashed and Manowar.
The Minstrel was created by Anders Norrback Bornholm, also sometimes known as Heavy Metal Coder and OSIRIS GUITAR.
Background image by Thomas Wievegg


纯 H5 效果
展开收起
Click Here to get the user details
#
Name
Location
Job
1
Adam
Huston
UI/UX
高亮标记
Did you know, you can
"Highlight something interesting"
just with an HTML tag?
自动计算并显示结果
*
=
输入并且下拉选择
Choose your fruit from the list:
进度条
自动计算比例
/home/atapas
2 out of 10
/root
90%
进度条
Downloading progress:
32%


ASCollectionViewDelegateFlowLayout Protocol Reference
| Conforms to | ASCollectionDelegate |
|---|---|
| Declared in | ASCollectionView.h |
Overview
Defines methods that let you coordinate with a UICollectionViewFlowLayout
in combination with an ASCollectionView
.
– collectionView:layout:insetForSectionAtIndex:
This method is deprecated and does nothing from 1.9.7 and up
Previously it applies the section inset to every cells within the corresponding section.
The expected behavior is to apply the section inset to the whole section rather than
shrinking each cell individually.
If you want this behavior, you can integrate your insets calculation into
constrainedSizeForNodeAtIndexPath
please file a github issue if you would like this to be restored.
- (UIEdgeInsets)collectionView:(ASCollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout insetForSectionAtIndex:(NSInteger)section
Discussion
This method is deprecated and does nothing from 1.9.7 and up
Previously it applies the section inset to every cells within the corresponding section.
The expected behavior is to apply the section inset to the whole section rather than
shrinking each cell individually.
If you want this behavior, you can integrate your insets calculation into
constrainedSizeForNodeAtIndexPath
please file a github issue if you would like this to be restored.
Declared In
ASCollectionView.h
– collectionView:layout:referenceSizeForHeaderInSection:
Asks the delegate for the size of the header in the specified section.
- (CGSize)collectionView:(ASCollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout referenceSizeForHeaderInSection:(NSInteger)section
Declared In
ASCollectionView.h
– collectionView:layout:referenceSizeForFooterInSection:
Asks the delegate for the size of the footer in the specified section.
- (CGSize)collectionView:(ASCollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout referenceSizeForFooterInSection:(NSInteger)section
Declared In
ASCollectionView.h


# Lazy Streams
> Create streams lazily when they are read from or written to. > lazystream: 0.0.2 [![Build Status](https://travis-ci.org/jpommerening/node-lazystream.png?branch=master)](https://travis-ci.org/jpommerening/node-lazystream)
## Why?
Sometimes you feel the itch to open all the files at once. You want to pass a bunch of streams around, so the consumer does not need to worry where the data comes from. From a software design point-of-view this sounds entirely reasonable. Then there is that neat little function fs.createReadStream() that opens a file and gives you a nice fs.ReadStream to pass around, so you use what the mighty creator deities of node bestowed upon you.
> Error: EMFILE, too many open files > ─ node
This package provides two classes based on the node’s new streams API (or readable-stream if you are using node a node version earlier than 0.10):
## Class: lazystream.Readable
A wrapper for readable streams. Extends [stream.PassThrough](http://nodejs.org/api/stream.html#stream_class_stream_passthrough).
### new lazystream.Readable(fn [, options])
- fn {Function} The function that the lazy stream will call to obtain the stream to actually read from.
- options {Object} Options for the underlying PassThrough stream, accessible by fn.
Creates a new readable stream. Once the stream is accessed (for example when you call its read() method, or attach a data-event listener) the fn function is called with the outer lazystream.Readable instance bound to this.
If you pass an options object to the constuctor, you can access it in your fn function.
```javascript new lazystream.Readable(function (options) {
return fs.createReadStream(‘/dev/urandom’);
});¶
## Class: lazystream.Writable
A wrapper for writable streams. Extends [stream.PassThrough](http://nodejs.org/api/stream.html#stream_class_stream_passthrough).
### new lazystream.Writable(fn [, options])
- fn {Function} The function that the lazy stream will call to obtain the stream to actually write to.
- options {Object} Options for the underlying PassThrough stream, accessible by fn.
Creates a new writable stream. Just like the one above but for writable streams.
```javascript new lazystream.Writable(function () {
return fs.createWriteStream(‘/dev/null’);
});¶
## Install
`console
$ npm install lazystream --save
npm http GET https://registry.npmjs.org/readable-stream
npm http 200 https://registry.npmjs.org/readable-stream
npm http GET https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.2.tgz
npm http 200 https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.2.tgz
<EMAIL_ADDRESS>node_modules/lazystream
└──<EMAIL_ADDRESS>`
## Contributing
Fork it, branch it, send me a pull request. We’ll work out the rest together.
## Credits
[Chris Talkington](https://github.com/ctalkington) and his [node-archiver](https://github.com/ctalkington/node-archiver) for providing a use-case.
## [License](LICENSE-MIT)
Copyright (c) 2013 J. Pommerening, contributors.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


Python is a programming language that is used for web development (server-side), software development, mathematics and system scripting.
It works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc) and has a simple syntax similar to the English language that allows developers to write programs with fewer lines than some other programming languages. Python runs on an interpreter system, meaning that code can be executed as soon as it is written. It can be treated in a procedural way, an object-orientated way or a functional way.


clustering.Rmd
You must run setup_word2vec
at the begining of every session, you will otherwise encounter errors and be prompted to do so.
You must run setup_word2vec
at the begining of every session, you will otherwise encounter errors and be prompted to do so.
library(word2vec.r)
# setup word2vec Julia dependency
setup_word2vec()
#> Julia version 1.1.1 at location /home/jp/Downloads/julia-1.1.1-linux-x86_64/julia-1.1.1/bin will be used.
#> Loading setup script for JuliaCall...
#> Finish loading setup script for JuliaCall.
The package comes with a dataset, Macbeth by Shakespeare. However, being a corpus of 17,319 words it is not lazyly loaded and needs to be imported manually with the data
function. Note that the dataset is mildly preprocessed, all words are lowercase and punctuation has been removed.
data("macbeth", package = "word2vec.r")
You can also cluster words.
model_path <- word2clusters(macbeth, classes = 50L) # train model
model <- word_clusters(model_path)
We provide both a functional API and a reference class.
vocabulary
in_vocabulary
index
get_cluster
clusters
get_words
get_cluster(model, "king")
#> [1] 5
get_cluster(model, "macbeth")
#> [1] 44
We provide a reference class, because it is tedious to specify the vectors (model
object in this example) as first argument to every functionv.
wc <- WordClusters$new(model)
wc$get_words(4L)
#> [1] "to" "i" "thy" "know" "too" "comes"
#> [7] "stand" "himselfe" "daggers" "power" "fall" "hearke"
#> [13] "chance"
wc$clusters()
#> [1] 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#> [24] 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
#> [47] 46 47 48 49


{% extends "base.html" %} {% block content %}
Content ID : {{ stream.content_id }}
Source : {{ stream.source }}
Active Peers : {{ stream.connected_peers }}
Tamchy-File
Watch Stream (via playlist)
Raw Stream
Delete Stream


dotJS/dotCSS - Talks
-
1 - dotJS
-
1.1 - Yehuda Katz - Creator of Ember.js, Handlebars & Thor, Member of the jQuery Core Team.
-
1.2 - Angus Croll - Creator of Flight & Author
-
1.3 - James Halliday aka Substack - Creator of Testling, Browserling Open Source librarian
-
1.4 - Justin Meyer - Lead author of CanJS, JavaScriptMVC, jQuery++,FuncUnit & StealJS
-
1.5 - Paul O’Shannessy - Maintainer of React
-
1.6 - John-David Dalton - Creator of Lo-Dash, co-maintainer of jsPerf Chakra Performance Program Manager
-
1.7 - Domenic Denicola - Maintainer of jsdom Editor for ES6 promises
-
1.8 - Julien Lecomte - YUI lead Director of Engineering at Yahoo
-
1.9 - Soledad Penadés - Senior engineer at Mozilla Real time audio & graphics experimenter
-
1.10 - Joe McCann - CEO of NodeSource Creator of Dillinger
-
1.11 - Charlie Robbins - CEO and Co-founder of nodejitsu Curator of EmpireJS & EmpireNode
-
1.12 - Mike McNeil - Creator of Sails.js
-
2 - dotCSS
-
2.1 - Talks
-
- 2.1.1 - Daniel Glazman - Co-chairman of the CSS Working Group
-
- 2.1.2 - Ana Tudor - CSS & Maths tamer, creating insane experiments
-
- 2.1.3 - Nicolas Gallagher - Creator of Normalize.css & suit.css
-
+ 2.1.4 - Estelle Weyl - Standardista, trainer & author Creator of the Clown Car technique
-
- 2.1.5 - Kaelig Deloumeau-Prigent - Author and Front-end Developer at FT Labs
-
+ 2.1.6 - Harry Roberts - Creator of inuit.css Author of CSS guidelines
-
Ten Principles for Effective Front-end Development
-
Links
-
- 2.1.7 - Bert Bos - W3C Staff contact of the CSS WG - единственный чувак, у которого нет твиттера
-
+ 2.1.8 - Hugo Giraudel - Maintainer of SassDoc Sass Writing Machine
-
Keep Calm And Write Sass
-
Links
-
2.2 - Lightning Talks
-
2.2.1 - Maxime Thirouin
-
2.2.2 - Gregor Adams
-
2.2.3 - Tim Pietrusk
-
2.2.4 - Guido Bouman
-
2.2.5 - Jeff Bowen - Data & Dev at @Automattic /@WordPressDotcom, zymurgist
-
20 years of CSS: maturity or senility?
-
Links
-
2.2.6 - Victor Brito
-
In 25 years of Web, what did - you do for the promises of an accessible Web?
-
Links


We work closely with them and their architects to ensure a quality product that is delivered on time and within budget.
Principal Architect:Ar.A.BhuvaneshwariGraduated from the School of Architecture and planning, Anna University, Guindy, Chennai and also did her Master of Architecture in Habitat Design from KSOA.After graduation, Later by 3rd December 2004 she established her firm Modern Space Architects at Tirunelveli. Her initial practices were more into alternative techniques. Lack of field staffs made her to visit sites more often and it also groomed her practice as a more personalized one and her approach to clients became more humane. Over the past sixteen years her practices has pioneered cost effective, climate responsive and sustainable over wide range of projects. Her practice had penetrated into remote villages of Tamil Nadu and her intelligence can be felt straightly in these region like Tirunelveli district, Thoothukudi district, Tenkasi district, Kanyakumari district.
Contact UsMany of the investors, customers and actual users have satisfied their dreams of getting their homes with quality construction and timely possession.
We treat our client as a privileged person. Delighted to cater the ultimate and inspiring dreams of our clients, we extend our services at your doorstep for your convenience.
High quality cost effective playing with new architectrual dimensions are our vital ingredients of success.


{% extends "base.html" %} {% load static %} {% block title %}{{ block.super }} Edit {{ node.node_type|lower }} {{ node.name }} {% endblock %} {% block js %} {{ block.super }} {% endblock %} {% block content %} {% load noclook_tags %}
The {{ node_handle.node_type|lower }} will be permanently deleted and cannot be recovered. Are you sure?
The relationship will be permanently deleted and cannot be recovered. Are you sure?


N.
L.
BRITTON
J.
A-
SHAFER
Collectors
MARCH
11-12,
1913
01029206
Legend -
Level of confidence that token is an accurately-transcribed word
extremely low
very low
low
undetermined
medium
high
very high


|
DESCRIPTION
${form.description}
|
|||||||
|
OCCURS WHEN
${form.occursOther ? form.occursOther : '___________________'}
|
|||||||
|
SPECIFIC LOCATION
${form.specificLocation}
|
PAIN SCALE
${form.painScale}
|
PAIN TYPE
${form.painType}
|
|||||
|
HOW LONG / SINCE WHEN
HOURS DAYS WEEKS MONTHS YEARS OTHER ${form.hoursSince} ${form.daysSince} ${form.weeksSince} ${form.monthsSince} ${form.yearsSince} ${form.howLongOther} |
|||||||
|
FREQUENCY
X HOUR X DAY X WEEK X MONTH DURATION ${form.painXHour} ${form.painXDay} ${form.painXWeek} ${form.painXMonth} ${form.painDuration} |
|||||||
|
DENIES
${form.deniesOther ? form.deniesOther : '___________________'}
|


{include file='public/head' /}
layout 后台大布局 - Layui
{include file='public/header' /}
{include file='public/left_menu_booknexus' /}
首页
B2B
创建产品
{include file='booknexus_tour/update_menu' /}
ROOM:
{foreach $roomType as $vv}
{$vv.translate}
{/foreach}
CAPACITY:
PRICE:
Add Room
Added Rooms
{foreach $TourRoom as $k=>$v}
ROOM:
{foreach $roomType as $vv}
{$vv.translate}
{/foreach}
CAPACITY:
PRICE:
Romove
{/foreach} {/empty}
Save & Next
ROOM:
{foreach $roomType as $vv}
{$vv.translate}
{/foreach}
CAPACITY:
PRICE:
Romove
{include file='public/foot_js' /}


EBD - Easton Bible DIctionary
Sinim
SINIM
"SINIM", THE LAND OF (
Isaiah 49:12
), supposed by some to mean China, but more probably Phoenicia (
Genesis 10:17
) is intended.
"SINIM", THE LAND OF (Isaiah 49:12), supposed by some to mean China, but more probably Phoenicia (Genesis 10:17) is intended.


Toggle navigation
Big CSV
Home
Upload
Status
File Upload
Emit 'testing' event
Customize File Upload
File Upload Form
All files will be uploaded to "/uploads" directory.


Exercise 1: Values that are important to me are Community, Competence, Connection. It's just a fluke that they all begin with the letter C.
Exercise 2: Connection is important to me, and so I added to the list. It's an integral part of what makes a community function, and it's at the heart of what people are searching for with each other. Often this gets thought of in terms of romantic attachment and love, but heart-felt connection can happen between people regardless of romantic attachment. For me, connection with other people is what makes life joyful and worth living.
Exercise 3: I very much agree that I try to live up to these values.
Exercise 4: The last topic that someone asked my advice about was the process of making a woodblock print.


THE MUSE (USA Films) Starring: Albert Brooks, Sharon Stone, Andie MacDowell, Jeff Bridges. Screenplay: Albert Brooks and Monica Johnson. Producer: Herb Nanas. Director: Albert Brooks. MPAA Rating: PG-13 (profanity, adult themes, brief nudity) Running Time: 95 minutes. Reviewed by Scott Renshaw.
Albert Brooks has always been a filmmaker who couldn't resist a great high concept. In his debut feature REAL LIFE, he parodied the pioneering PBS documentary "An American Family;" in LOST IN AMERICA, he sent a yuppie couple on an ill-fated attempt to drop out of society; in DEFENDING YOUR LIFE, he imagined the afterlife as a spiritual courtroom; and in MOTHER, he moved back in with Mom to figure out his relationship troubles. An inspired, outrageous situation has provided Brooks with the spark to show his characters -- notably himself -- coming to terms with themselves and finding a little dignity. His concepts fueled the gags, but he never forgot to tell a story.
In THE MUSE, Brooks makes a mistake he's never made before: he starts with a situation comedy, then never moves beyond the situation. Brooks stars as Stephen Phillips, a successful Hollywood screenwriter at a career crossroads. Dumped from a studio deal for writing scripts with no "edge," a depressed Stephen seeks counsel from his friend and fellow writer Jack (Jeff Bridges). Jack offers Stephen access to what he claims is the secret of his own success: an actual, straight-out-of-mythology muse named Sarah (Sharon Stone). Though initially incredulous, Stephen finds that his collaborations with Sarah are firing his creative juices. Unfortunately, he also finds Sarah's services much in demand, including from his own wife Laura (Andie MacDowell), who finds herself inspired to pursue her own creative dreams.
THE MUSE seems to have been born as yet another Hollywood satire, poking fun at the insecurities of movie folk and ther fascination with the latest insta-cure for what ails them personally or professionally. Brooks, uses the opportunity to toss in cameos by other filmmakers who have been Sarah's "clients" (James Cameron thanks her for TITANIC; Martin Scorsese proposes a remake of RAGING BULL, "but with a really thin guy"), which are good for a couple of smiles. The insider gags, unfortunately, are about the only ones that work. More often, THE MUSE is a comedy in search of something, _anything_ funny to say. Sharon Stone's finicky diva is an idea that never quite takes off, and the supporting players often look vaguely bored with their lines. Even Brooks' usually reliable persona can't jump-start the film, because it doesn't turn into a sympathetic character. He's just an annoyed privileged guy whose annoyance at his slightly lessened privilege makes him just plain annoying.
Brooks' lack of a character is part of the over-riding problem with THE MUSE: a lack of anything substantial past the thin premise. The film occasionally looks like it could be leading Stephen towards a little growing up, whether about his career neuroses or his retro-breadwinner agitation at Laura's growing financial success as a cookie-maker. There's even the faint hope that Brooks could be offering a light-hearted look at the shove people require just to believe in their own talents. Then the film ends, and it becomes evident that there's not a shred of actual story to THE MUSE. There's no improved mutual understanding in the Phillips' relationship, no one grows, no one learns a thing -- there's not even the satisfaction of Sarah explaining her own turns of character.
 Mark Feuerstein has a nicely understated role as a tactless studio executive, and Steven Wright appears briefly as the nepotistically- advantaged Stan Spielberg. But much of the acidic humor leaves a sour aftertaste once it's clear that it's all little more than a chance for Brooks to vent. His character spends much of the film in search of a third act for his screenplay, which is ironic when you consider that THE MUSE is in desperate need of a third act of its own. It's even more ironic that in the middle of a Hollywood satire, the protagonist's brilliant script -- the one he's inspired to write after being told he has "lost [his] edge" -- is a wacky high-concept vehicle for Jim Carrey. If the lesson Brooks wants us to learn is that a writer's goal in life should be coming up with yet another mass-market yuk-fest, then maybe he's the one who has lost his edge.
On the Renshaw scale of 0 to 10 babbling Brooks: 5.
Visit Scott Renshaw's Screening Room http://www.inconnect.com/~renshaw/ *** Subscribe to receive new reviews directly by email! See the Screening Room for details, or reply to this message with subject "Subscribe".
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


--- title: "Download: macOS" layout: download platform: "macOS" fa: "apple" ---
Note: The Nim compiler requires a C compiler to compile software. CLang is recommended on macOS.
Firstly, download this archive:
SHA-256: 9e199823be47cba55e62dd6982f02cf0aad732f369799fec42a4d8c2265c5167
Extract the archive.
Then copy the extracted files into your chosen installation directory, ideally somewhere in your home directory. For example: ~/programs/nim
.
Now open a terminal and follow these instructions:
cd into your installation directory, for example by executing cd ~/programs/nim
.
run sh build.sh
.
Then add $your_install_dir/bin
to your PATH.
To build associated tools like nimble and nimsuggest run nim c koch && koch tools
.
After restarting your terminal, you should be able to run nim -v
which should show you the version of Nim you just installed.
There are other ways to install Nim (like using the install.sh
script), but these tend to cause more problems.


HOME
ABOUT
EXTRA
+
Measure of Central Tendency
Z-Scores
Confidence Interval
Permutation And Combination
T-Table Scores
Chi-Square
Linear Regression
Probability
Trigonometry
Quadratic
Linear Regression
Simple Linear Regression
X-axis
Get Values


WWDC 2017 - what to expect
02 Jun 2017It’s almost that time of the year where the Apple developers community has its biggest event - the WWDC.
This year as usual, the expectation is around what new features the latest version of iOS will bring us, and maybe some hints to what is the future in terms of devices.
I am not very good at guessing, and to be honest, I have been falling back in terms of many of the latest SDKs delivered by Apple. I did some experiments around the Watch and AppleTV, played a bit with the Today widget, but unfortunately never delve deep inside those libraries. And regarding Messages, Siri, Car, Home, etc - I didn’t write a single line of code for them.
So, if I’m not in a good position to play the guessing game, I can however do a short list of some of the expectations from the community and maybe share my opinion on them.
Around the Web
Siri Speaker
After Amazon and then Google started selling their devices, I guess it would make sense for Apple to jump into this train. According to some statistics, in the US alone there are around 35M users of voice-enabled speakers in 2017, which represents an increase of 129%. This shows that is market relatively small, but with growing interest from the public. And by having already the software and most of the hardware needed, it wouldn’t be that difficult for Apple to come up with a device as good or even better than the competition.
New layout of the iPhones back side
Many leaked pictures of the new iPhones show the cameras in a vertical orientation and a Touch ID sensor underneath the Apple logo. About the cameras I have no idea why they would need to change and honestly, it would look a bit weird to see them in that orientation.
For the sensor, I would hate it! In my job as a developer, most of the times the phone is on top of the table and to start testing some new feature I’m working on, I don’t even grab the phone - I unlock it with a simple tap on the sensor and that’s it. And I don’t think Apple would do that change as it severely changes how people are used to interact and unlock the phone. Of course that doesn’t mean anything - previously you needed to swipe to unlock and now it’s just tap the sensor and then press the home button. The only way I would agree with this change, was if somehow you could do Touch ID anywhere on the front screen, that would be awesome! And if so, sure, add the sensor to the back also 😂
New iPad Pro 10.5-inch
I only ever used an iPad Pro for a minute, so I have no opinion on this one. Probably it makes sense to have all the power and functionalities on a more portable form factor.
Dark mode
Well, this one is new to me. It probably is a natural next step from previous features, like Night Shift. And if it’s true that future devices will have an OLED screen, as dark modes are more friendly on the batteries.
What I would like to see
Swift refactoring tools on Xcode
Ever since Swift was released, this is one of the major flaws that Apple has yet to address. I know Xcode has now much better support for Swift: in the beginning typing @@
would make it crash every time. And for me, coming from Portugal to an Irish keyboard layout (in PT layout, "
are typed the same way as @
in the IRL layout), it was sooooo easy to make it crash! And if the Live View Hierarchy inspector or the recent Memory Graph tool shows that Apple cares about Xcode, not having the simplest of the refactoring tools makes some of the common developer tasks a bit more tedious and difficult than they could or should be.
Real multitasking on iPad
If this is the year where we will see new developments in the iPad arena, I guess having true multitasking would make a lot of sense. Recently I saw a prototype by Federico Viticci for Macstories of how that could look like and I believe implementing it in a similar way would bring the platform to a whole different level. Of course, with a bit of imagination and a lot of careful planning and hard work, you can kind of make it work right now, just look at the awesome work by the team at Readdle.


08 Jun 2020 (Last Modified 18 Apr 2022)
[N.B Draft, still in progress, caveat lector]
The American Board of Emergency Medicine requires residents to complete a scholarly activity. Most Boards do. There is a conflict between this requirement and the desires, training, and time of a resident in Emergency Medicine. This requirement risks diluting the time and effort faculty have for productive research with a pro forma exercise.
1999 the Research Director’s Interest Group of the Society for Academic Emergency Medicine released a consensus statement that scholarly activity is a core component of residency training in Emergency Medicine1. In 2017 they updated their consensus statement, removing four types of scholarly activity (teach problem-solving skills; learn the art of medical writing; expose the resident to research for consideration of an academic career; help focus the resident on an area of interest or expertise) and (nearly) adding six others (writing a case report, developing a curriculum, being a listed member on a consensus policy statement, writing and presenting a lecture, publishing original research prior to residency, participating in or creating an online blog or podcast)2.
The items dropped and items proposed are illuminating. The original impetus for the requirement for scholarly activity was to increase the amount of clinical research germane to Emergency Medicine. Since 1999 the number of research articles indexed in PubMed with MeSH headings related to Emergency medicine has X.
The rationale for encouraging scholarly activity during residency is to teach the next generation of physicians how to critically read clinical research. The underlying assumption is that learning to do this is effectively done in small-group discussions. In my experience these sessions become a rushed exercise of the blind and uninterested leading the blind, pressed for time, and uninterested.
Journal clubs in graduate school (for MS or PhD students in the sciences) are 1-2 hour affairs. The paper is distributed to the class the week before. Ideally, these journal clubs allow an exploration of the content as well as the design. In residency, the paper is distributed sometimes too far ahead (i.e when the schedule is set out at the beginning of the year) or the day before. The discussion is lead by someone who may not have read the paper (can be true in grad school) and who may be reading off a prompt. Beyond naming the type of design (“this is a randomized double-blinded controlled trial”) there is rarely any discussion given to the less superficial aspects of experimental design (were the investigators measuring what they thought they were measuring; how else could this study have been accomplished).
The difference in the level of engagement is palpable, reflecting how this is a core part of graduate school education but, for medical trainess, just another requiremenet in a long list of checkboxes at which they have to demonstrate (not necessarily acquire or retain) proficiency.
Academic emergency physicians may find themselves with conflicting demands. (Seemss unrelated to encouraging residents to peform research, maybe put in another notebook).
What makes an activity scholarly is changing.


We at Muffin Top Savoury Muffin Company are a small group of 6 and each and every muffin that is made is made by one of us, so every muffin is special.
Keep an eye out for our upcoming content of our developing kitchens and stay in touch with out facebook, twitter and instagram pages! Also sign up for our snapchat to see live the development of the muffins!


--- layout: post title: Mu Sigma Is Interested in a Long-Term Relationship with You date: '2012-04-16T13:27:37-07:00' tags: tumblr_url: http://alexhwilliams.tumblr.com/post/21224799545/mu-sigma-is-interested-in-a-long-term-relationship-with ---
http://bit.ly/I0lgcH


Unpaid work for man who threatened violence inside Wishaw hospital
William Reilly admitted behaving in a threatening manner at the hospital on October 27 last year.
by Wishaw Press, https://www.dailyrecord.co.uk/authors/wishaw-press/A man who made threats of violence inside University Hospital Wishaw has been ordered to carry out unpaid work.
William Reilly appeared at Hamilton Sheriff Court this week for sentencing having admitted behaving in a threatening manner at the hospital on October 27 last year.
On that date, Reilly began shouting, swearing and issuing threats.
The 43-year-old, of Thomson Avenue, Netherton, committed the offence while he was on bail.
Sheriff Linda Nicolson ordered Reilly to carry out 90 hours of unpaid work and put him on supervision for a year.


--- layout: archive title: Zulip Chat Archive permalink: /stream/116395-maths/topic/Univariate.20polynomials.html ---
Here's another "canonical isomorphism" question. Johannes has implemented multivariate polynomials with variables in some index type sigma.
But the univariate theory (polynomials in one variable) is special
there are more theorems, for example; over a field these things form a Euclidean domain and a principal ideal domain etc
so there is probably an argument for developing the theory of polynomials in one variable further.
But one doesn't want to reprove everything
and for polynomials in one variable, Johannes' definition becomes (unit -> nat) ->_0 alpha
and unit -> nat
is just canonically isomorphic to nat
so now we have a sort-of insane way of setting up univariate polys
and a sensible way
and one would imagine that the sensible way, nat ->_0 alpha, was the thing to use
but one wants to import all Johannes' work for free, like definitions and the proof that polynomials form a ring etc
so one first notes that there's an equiv between nat and (unit -> nat)
and then one wants to pull all of Johannes' definitions and theorems through this equiv
but currently in Lean this seems hard. Is that right?
I see. And this takes us back to exactly what we were thinking about a few days ago
whether ring is transportable
(and it should be)
The short answer is yes, this is hard, but really it doesn't quite characterize the problem so well. We don't want to transfer the ring structure of (unit -> nat) ->_0 alpha
to nat ->_0 alpha
in the "naive way" because this would make all the operations filter through the equivalence which would make them hard to use
(not to mention inefficient, not sure if we are deciding to care about this here)
So if we need univariate polys
is the best idea currently just to re-implement them? :-/
we would want instead to define the operations specially for univariate polys, but prove that the canonical equiv is a ring homomorphism and use that to prove that the other structure is a ring
this is basically what transfer
is intended to do
You should check out num
a bit to see how the process can work
I define operations on num
that act like corresponding operations on nat
, prove that the map from nat
to num
preserves the operations, and use that to prove that num
is a decidable_linear_ordered_semiring
or whatever
Can't we have some meta
code that automatically generates all the theorems and proof, given the equiv
, so that it does the reimplementation for us? Together with transport statements that link the new implementation to the old one...
This approach is "better" than the one used to transfer proofs from multiplicative groups to additive groups, right?
That's transfer
Because there the two types are themselves equivalent in a strong sense
so you can literally translate a proof that a group with multiplication as group law has some property, to the same proof that a group with addition as group law has some analogous property
but here unit -> nat is a different type to nat
In some sense the equiv from add_group
to group
is "cheap"
and the underlying carrier types are defeq, which helps a lot
and so the argument somehow relies on the fact that Johannes didn't do anything funny with his unit -> nat type which we can't also do with the nat type
For more general equivalences, equiv
does the job
the argument doesn't rely on anything more
(but you do have to prove that the equiv respects the operations)
Stupid question
what is an example of something you can do in type theory for unit -> nat which you can't do for nat
I can't make that rigorous
they are equiv, so nothing?
In PL theory they are a bit different, since one is like a delayed computation and the other is a value, but I assume you are ignoring this distinction
yes
If equiv commutes with everything in dependent type theory
why isn't this transportable stuff just standard and built in?
Is it in Coq?
Of course it doesn't commute with everything, but you can always lift operations by pre/post composing with it
right
and if you go from X to Y and then back to X you will have the identity
you will have propositionally the identity, it's (probably) not defeq
oh boy
that means that you may need to cast stuff across the equality
but can a computer construct the proof if it's not defeq?
and those casts build up and get more complicated
the proof is given, it's an equiv so that's part of the structure
Ouch, so this is going to break us up if we are somewhere deep down in the guts of formalising the proof of the Weil conjectures
Because you exceed max_transfers
which was set to 1000
or something...
just try to have a better way to say stuff than transferring some other statement when casts get involved
(Maybe I am blatantly displaying my ignorance...)
mostly avoid too many dependent types
we don't care that the proofs can get complicated because they are irrelevant
I'm talking about terms
right
if I want to define affine 1-space
Spec(R[x])
then in the definition of e.g. the local ring at some point
there will be casts everywhere
it will be unreadable
Mario, I am a bit afraid that this is not so easy to avoid... or the formalisation might become way more difficult then they "maths" proof
It's all about modularity
just break stuff up into bite sized chunks and it's all doable
Is this the reason that all the big type theory proofs of maths theorems are proofs about objects like finite groups rather than locally Noetherian schemes?
problems pile up
and it's difficult to make them go away
Ok, then I misunderstood you. I thought that if you started combining these "modules" then some evil synergy would multiply their "badness of casts"
Just have solid abstraction layers, as long as the informal math doesn't get notationally horrible the formal horribleness is bounded
Ok, I really hope so.
The multiplying badness of casts happens when you try to do it in general over the whole theory
If Kevin is meeting all these problems in the definition of an affine scheme... then we want 1) all sorts of properties of morphisms of schemes, 2) topos theory, 3) derived categories, 4) etale cohomology, 5)... etc etc
i.e. you write some tactic that just plows through the whole system to transfer any term across some equiv
before you can even sensibly formulate the Weil conjectures
these kinds of tactics care nothing for abstraction
Hmmm, I'm still confused...
Do you think that in the end we can have automation help us with these transfers, and still have the modularity? Or does the automation mean that it will "plow through the system"?
When I started reading proofs in mathlib
I was really confused why people would create a new structure and then instantly write functions giving access to the things used to construct the structure
but
it's all part
of a solid abstraction layer
Hmm, that's a good example. A "mathematician" wouldn't (want) to do that.
Again, couldn't some automation do that for us?
Getting the code to run fast is not our problem :-)
In theory, but it probably would need lots of tweaks
You just wait for either the CS people to write better tactics or for the engineers to write faster chips
If I write structure
then Lean should immediately add those boilerplate things...
Sometimes the access to the constructor has a different name to the constructor
that happens with the proofs in equiv IIRC
If you look closely you will notice that the "boilerplate" often differs in minor details like use of notation, binding explicitness,...
The structure
command already tries its best to give you theorems the way you want
but it's using heuristics, and sometimes we want it different in a particular case
Yeah, I've seen that. So maybe we "mathematicians" should just learn to be more precise. (But we don't buy that mathematics isn't precise enough...)
It's like how there are (natural language) grammar rules, but also exceptions
equiv.apply_inverse_apply
There's a solid abstraction layer in action
import data.equiv example (X Y : Type) (e : equiv X Y) : e.apply_inverse_apply = e.right_inv := rfl
How about writing a regex
which will replace all (sigma ->_0 nat)
with (nat)
and then make it all work again?
that sounds like an interesting challenge
That sounds like it should wait for lean 4, when the parser is exposed to lean code
But we could just do an actual copy-paste-search-replace, right? The only thing that would remain is some theorems that say the result is isomorphic to what you started with.
Johannes or his coauthor implemented polys in 1 variable already
Wow, there's already quite a lot there!
I'm not too up on univariate polynomials in Lean yet. Does anyone know if we have:
"evaluation of p : Z[x]
at x : R
is a ring homomorphism from Z[x]
to R
"?
@Scott Morrison Voila, but multivariate: https://github.com/leanprover/mathlib/blob/master/linear_algebra/multivariate_polynomial.lean#L171-L173
Ok, and they haven't made it a ring homomorphism, but they show that it is additive and multiplicative...
@Johannes Hölzl what is the status of https://github.com/johoelzl/mason-stother? I guess JWageM is your student or something like this? Will this be in mathlib at some point?
Yes, @Jens Wagemaker is currently writing his Bachelor thesis on Mason-Stother. The theory itself is finished, and now he is writing the thesis itself. When this is finished we will port most parts of the developed theory to mathlib. Most parts, as we assume that polynomials over a field form a unique factorization domain, so everything from there on will need to wait until this is done. And there is quiet some divergence between the mathlib version Jens used and the current one, so there is some merging to be done.
I think someone did Euclidean domains recently
So it shouldn't be too hard to get UFD for polynomials with one variable over a field
No, it shouldn't be hard. Just needs to be done.
It seems to me that maybe eval
should take its arguments in the opposite order. Then one can curry it, and get a (semi)-ring homomorphism.
Does that make sense?
Here is a commit that swaps the order of the arguments, and also proves that eval f
is a ring homomorphism:
https://github.com/jcommelin/mathlib/commit/b0d0ca6d2892c902c5feffdfa58d3e3be2b013b2
Looks promising!
@Johan Commelin chaning the argument order of eval
is a good idea. But is there a reason why you changed the applications from p.eval f
to eval f p
? Even with the changed order the p.eval f
syntax should work. Lean figures out that p
is a polynomial and looks up mv_polynomial.eval
, inserting p
at the appropriate place.
Ok cool!
I didn't know that
But then, maybe I actually prefer f.eval (p+q)
etc...
What do you think of that?
And then f.eval
becomes a ring hom
Aah, but that won't work, I guess... because then it doens't know where to find eval
Right?
There is some namespacing-magic going on, and that is why p.eval
does work?
/me is still learning new things every minute
@Johannes Hölzl I think I prefer the eval f p
notation. Even better would be some sort of eval_f p
.
Also, as a mathematician I always write f
for polynomials, and p
or x
for the map \sigma \to \alpha
. So that was pretty confusing (-;
Well I would write f
for the polynomial function (i.e. a function which can be represented as a polynomial) but I write p
, q
etc for the syntactic object.
Yeah, I get that. (I only work with the syntactic objects... not the functions.)
Also, f.eval p
doesn't work as f
is in the function space, which AFAIK doesn't work with this syntax mechanism.
I prefer p.eval f
as eval
is a very generic name, and we will surely have multiple instances in different namespaces. p.eval
makes it clear that we are referring to the polynomial one.
It is not necessary in mv_polynomial
, but might be in other cases.
Ok, whichever you prefer. Should I change it and PR it?
Yeah, just change it back how it was before.
Oh my, it looks like I overdid it: https://github.com/jcommelin/mathlib/commit/2f63d86718e9e00ea55f67cb22f0f306fe8fcde3
why do you remove eval_zero
?
Because it follows from eval_C
...
But the simplifier doesn't see that 0 = C 0
! This is the reason for eval_zero
: it is a @[simp]
rule.
Hmmm, my bad...
I'll fix it
https://github.com/jcommelin/mathlib/commit/fa1710d88ff007cd947645136dd6c8986028430d
Voila
Last updated: Apr 24 2020 at 19:02 UTC


Before Change
yield dict(zip(keys, shard_tensors))
// Assumed backprop"d
variables = ((state[k], v.grad.data) for k, v in non_none.items()
if isinstance(v, Variable) and v.grad is not None)
inputs, grads = zip(*variables)
torch.autograd.backward(inputs, grads)
After Change
// want a sequence of dictionaries of tensors.
// First, unzip the dictionary into a sequence of keys and a
// sequence of tensor-like sequences.
keys, values = zip(*((k, [v_chunk for v_chunk in v_split])
for k, (_, v_split) in non_none.items()))
// Now, yield a dictionary for each shard. The keys are always
// the same. values is a sequence of length //keys where each
// element is a sequence of length //shards. We want to iterate
// over the shards, not over the keys: therefore, the values need
// to be re-zipped by shard and then each shard can be paired
// with the keys.
for shard_tensors in zip(*values):
yield dict(zip(keys, shard_tensors))
// Assumed backprop"d
variables = []
for k, (v, v_split) in non_none.items():
if isinstance(v, torch.Tensor) and state[k].requires_grad:
variables.extend(zip(torch.split(state[k], shard_size),
[v_chunk.grad for v_chunk in v_split]))
inputs, grads = zip(*variables)
torch.autograd.backward(inputs, grads)


The Value of International Development
When I first applied to go to Uganda, I was pretty excited to be able to help people. Now, I think I'll be happy if I didn't make anything worse. So what changed?
Well, I just read a transcript of To Hell with Good Intentions, a speech given by which Ivan Illich to U.S volunteers in 1968. It takes a pretty pessimistic view of the role of international service. Illich claims that volunteers cannot possibly understand the people they are working with. Furthermore, they can't help but imposing their middle class American lifestyle onto the locals. He offers the following prediction of international volunteers.
All you will do in a Mexican village is create disorder
So, is Illich right?
The long answer is yes and no. We all know about those one week international service trips: I was guilty of this too. In high school, I went to Tijuana, Mexico and built a house for a family over spring break. My high school does goes back to the same neighborhood every year to work on the same project for other families. But, I'm not sure if the one that we built still standing today or if future trips have done anything for that family. I do know that a lot of people on that trip got a new profile picture for a few months.
There are several implicit features of international service that I'm not comfortable with.
First is the idea of Western superiority. If we are comfortable sending unskilled volunteers to address unmet needs in Third World countries, what value do we expect them to provide? If they have no training, then the implication is that we expect them to succeed by the virtue of being Westerners.
Second, there is the mixing of tourism and volunteer work. It makes me cringe to think that people's poverty and life situation is the subject of another person's vacation plans.
However, I do believe that there is value in international service if it is done right.
What are the characteristics of helpful service?
- Make sure the work is sustainable. During the Amigos training, they showed a video of Engineers Without Borders and their Save an African Child Spreadsheet idea. Engineering service projects are broken a few weeks after they are started because the locals aren't given the resources to maintain them. Then another engineering team comes in and does the same project over again, not knowing that they could've just fixed up the broken one.
- Utilize an Asset Based Community Development Approach. This basically means utilizing local resources and local strength to promote development. With my project specifically, there are probably unique reasons why Water for Production technologies have not been implemented in Jinja even though they work perfectly well in the U.S. Each problem is different and therefore, each one needs a unique solution
- Learning as much as possible about the dangers of international service so that others' mistakes are not repeated.
So, to address the final question
Is there any value?
Yes, if done correctly.


Follow these steps carefully. There are three of them. It is not difficult.
Open
this link
in a new tab.
Look at the tab's icon and
wait for it to load fully
.
Drag this text onto the newly-opened tab.
Click the Present button in the new tab.


@* * Copyright 2021 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *@ @import config.ConfigDecorator @import controllers.auth.requests.UserRequest @import uk.gov.hmrc.renderer.TemplateRenderer @import scala.concurrent.ExecutionContext @this(mainView: MainView, niLetter: views.html.print.NiLetterView) @(personDetails: models.PersonDetails, dateString: String, saveNiLetterAsPdfLinkEnabled: Boolean, nino : Option[Nino])(implicit request: UserRequest[_], configDecorator: ConfigDecorator, templateRenderer: TemplateRenderer, messages: play.api.i18n.Messages, ec: ExecutionContext) @mainView(messages("label.print_your_national_insurance_summary"), Some(messages("label.national_insurance")), printableDocument = true) {
@messages("label.this.section.is") @messages("label.personal_details")


Issue: SETF-MULTIPLE-STORE-VARIABLES
References: CLtL, pp.93-107
Lisp Pointers, v2n2, pp.27-41
Category: ADDITION
Edit history: Version 1, 5-Dec-88, Pavel
Version 2, 22-Mar-89, Moon, simplify, update from discussion
Problem description:
The description of GET-SETF-METHOD-MULTIPLE-VALUE on page 107 of CLtL
states that there are no cases in Common Lisp that allow multiple values
to be stored into a generalized variable. This is seen by some as an
arbitrary decision in light of the fact that a very reasonable semantics
exists for multiple values being assigned by several Common Lisp macros,
including SETF. The rationale on page 103 of CLtL suggests that this
decision might be changed in the future.
Proposal (SETF-MULTIPLE-STORE-VARIABLES:ALLOW):
Extend the semantics of the macros SETF, PSETF, SHIFTF, ROTATEF, and
ASSERT to allow "places" whose SETF methods have more than one "store
variable". In such cases, the macros accept as many values from the
newvalue form as there are store variables. As usual, extra values
are ignored and missing values default to NIL.
Extend the long form of DEFSETF to allow the specification of more
than one "store variable", with the obvious semantics.
Clarify that GET-SETF-METHOD signals an error if there would be more
than one store-variable.
Test Cases/Examples:
(defstruct region width height)
(defun region-size (region)
(region-width region)
(region-height region)))
(defsetf region-size (region) (width height)
`(values
(setf (region-width ,region) ,width)
(setf (region-height ,region) ,height)))
(setf my-reg (make-region :width 10 :height 20))
=> #S(REGION :WIDTH 10 :HEIGHT 20)
(region-size my-reg)
=> 10
20
(setf (region-size my-reg) (values 30 40))
=> 30
40
(region-size my-reg)
=> 30
40
Rationale:
This change removes an artificial restriction on the semantics of
several Common Lisp macros, allowing a broader set of contexts in
which generalized variables can be used. For example, it is not
difficult to write a reasonable SETF method for the VALUES function,
yielding a powerful MULTIPLE-VALUE-SETF form:
(setf (values (car a) (gethash b 'c) (aref d 13))
(some-hairy-computation))
In the language as currently defined, this example would have to be
written:
(multiple-value-bind (x y z)
(some-hairy-computation)
(gethash b 'c) y
(aref d 13) z))
Many other (perhaps more compelling) examples of generalized variables
holding more than one value can easily be imagined. Their use,
however, is severely discouraged by Common Lisp as defined in CLtL,
since none of the built-in macros will accept them.
The clarification of GET-SETF-METHOD makes explicit what is implied
by CLtL (CLtL uses the word "guarantee", whose relationship to
signalling of errors is unclear).
Current practice:
I do not know of any implementations that allow all of this extension.
Xerox Lisp does not signal an error, but this is probably due to a bug
in GET-SETF-METHOD. Lucid signals an error in GET-SETF-METHOD.
Symbolics Genera supports the proposal in SETF and PSETF, but not in
Cost to Implementors:
A relatively minor fix to each of the affected macros suffices. For
example, to fix SETF itself, one need only call
GET-SETF-METHOD-MULTIPLE-VALUE instead of GET-SETF-METHOD and emit a
MULTIPLE-VALUE-BIND instead of a LET for binding the store variables.
Cost to Users:
This is an upward-compatible change; no user code must change.
Cost of non-adoption:
Yet another non-uniformity in the language, yet another piece of
mechanism without a clear use (GET-SETF-METHOD-MULTIPLE-VALUE).
Benefits:
Wider applicability of a reasonably nice abstraction, the removal of
an artificial prohibition.
Aesthetics:
People may disagree about whether this is a simplification or not. I
am firmly on the side that believes that such removal of
non-uniformities is a simplifying force in the language.
Discussion:
Pavel supports this proposal.
Moon supports this proposal except he is not sure about the
inclusion of ASSERT.
GSB suggests that this is a clarification rather than an addition,
because the lack of any predefined setf-methods that use multiple
store variables should not mean that SETF, etc. should not work with
such a setf-method if the user defined one. The problem is that CLtL
examples such as the ones for SHIFTF on p.98 and the simplified
definition for SETF on p.107 contradict this proposal, and might have
been taken as specifications, rather than simplified examples, by
some readers.
Predefined SETF methods for such functions as VALUES, CONS, and VECTOR
could have been proposed, but we refrained. This proposal is necessary
to allow the user to write such methods for himself, but if this
proposal is adopted those setf-methods are very easy to write in
a portable fashion.


Fire dept Movember growth
by John LawlessBefore you get too excited, this isn't a cast photo for an upcoming 'Super Troopers' firefighter spin-off.
The Vernon Fire Department has been growing moustaches to raise money and awareness for men's health through the Movember campaign. This is the last week in November, which means they are in the final push for fundraising.
"We haven't done Movember the past few years since it seemed like there was a bit of tailing off happening," says Vernon firefighter John Doorman. "But this is the first year we've been doing it through the fire department and City Hall simultaneously."
The fire department, as of the publication of this article, has raised $620 for men's health, which is a good number for the size of the department.
"I've looked up what bigger departments are doing, and our donation total per capita is quite a bit higher," says Doorman. "Our donation totals are stacking up quite well compared to the rest of the country considering our size."
The campaign has also boosted morale throughout the fire hall, with some playful jabs being thrown around between firefighters.
"There's always fire hall banter no matter what you're doing, nothing is sacred," laughs Doorman. "There's definitely some moustache envy from some people, but they're definitely going to hold out in the end."
There is still time to donate to the fire department's Movember campaign, you can go online to make your contribution here.


--- layout: default title: Daniel Greenfeld ---
Daniel Greenfeld s the co-founder of a startup project called Consumer Notebook. He also co-runs a Python/Django consulting firm named Cartwheel Web out of Los Angeles. In his spare time he trains in Capoeira.
Daniel is heavily involved in the Python and Django communities, serving as a member of the Python Software Foundation, co-organizes the San Fernando Valley Developers and LA Django, and is a frequent speaker at Python and Django events.


|
jubilant-funicular
|
Public Attributes | |
| char | Load_filename [long_strlen] |
| Where to get the image. | |
| char | Save_filename [long_strlen] |
| And where to dump it in the end. | |
| int | Flags |
| verbose, help, etc. | |
| int | Calls_count |
| How many ILU functions are we going to apply to the image? | |
| char ** | Calls_strings |
| How did the user specified the function calls? | |
| int params::Calls_count |
| char** params::Calls_strings |
| char params::Load_filename[long_strlen] |
| char params::Save_filename[long_strlen] |


Select Filter
First Name
Last Name
Address 1
Address 2
City
State
Zip
Phone
Email
Identification
All
Contains
Equals


|
KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
All the processes python should be derived from "Process". More...
Public Member Functions | |
| def | __init__ (self, main_model_part, Parameters) |
| def | Execute (self) |
Public Attributes | |
| main_model_part | |
| volume_model_part_name | |
| skin_name_list | |
| assign_neighbour_elements | |
| volume_model_part | |
All the processes python should be derived from "Process".
| def check_and_prepare_model_process_fluid.CheckAndPrepareModelProcess.__init__ | ( | self, | |
| main_model_part, | |||
| Parameters | |||
| ) |
| def check_and_prepare_model_process_fluid.CheckAndPrepareModelProcess.Execute | ( | self | ) |
| check_and_prepare_model_process_fluid.CheckAndPrepareModelProcess.assign_neighbour_elements |
| check_and_prepare_model_process_fluid.CheckAndPrepareModelProcess.main_model_part |
| check_and_prepare_model_process_fluid.CheckAndPrepareModelProcess.skin_name_list |
| check_and_prepare_model_process_fluid.CheckAndPrepareModelProcess.volume_model_part |
| check_and_prepare_model_process_fluid.CheckAndPrepareModelProcess.volume_model_part_name |


---
title: "February is Here!"
date: "2019-02-01 00:00:00 -06:00"
categories:
- whats-blooming
layout: "post"
blog-banner: "whats-blooming-now-winter.jpg"
post-date: "February 1, 2019"
post-time: "12:00 PM"
blog-image: "2019-02-01-wbn.jpg"
published: true
---
Want to be surrounded by beauty and plants but don't want to go outside? You're in luck, come to Red Butte Garden and enjoy some time in the Orangerie, your eyes and nose will thank you.
These flowers sure are cute! Check out those blue stamens! That's where the pollen comes from. This is in our Greenhouse.
These are quite the popular house plant and for good reason!
This flower exudes a delicious scent!
Orchids have some of the coolest flowers!
Here is a sneak peak of a rose in the Greenhouse. Look for it in the Garden in the future.
Whether you are feeling outdoorsy or want to keep warm inside, we have plenty to see up here at Red Butte Garden.


Caitlyn Jenner becomes I'm A Celeb fan favourite minutes in as fans joke about Kris' reaction
Caitlyn Jenner's one-liners, bravery in the tasks and good humour have made her an instant hit with I'm A Celebrity viewers
by Irishmirror.ieI'm a Celebrity...Get Me Out of Here! has only been on our screens for a matter of minutes but it looks like the viewers already have their favourite.
Caitlyn Jenner's one-liners, bravery in the tasks and good humour have made her an instant hit, with viewers flocking to Twitter to sing her praises and already calling for her to win the whole show.
When the celebs got spooked by a giant spider and screamed their heads off, Caitlyn remained completely calm.
And when Nadine Coyle panicked about jumping out of a plane, Caitlyn was quick to comfort and reassure her.
One viewer tweeted: "So far @Caitlyn_Jenner is my absolute fav - Could definitely she her winning the WHOLE show."
"Already in love with Caitlyn Jenner," another posted.
A third posted: "17th November 2019: The day the British public pulled out their stan card for Caitlyn Jenner."
"Caitlyn Jenner is gonna win, not a fear in the world!" another agreed.
Others joked about what Caitlyn's ex wife Kris Jenner's reaction would be to the show.
"Kris Jenner’s phone bill is going to be high over the coming days," one said.
Another tweeted: "Kris jenner is hard at work making sure Caitlyn does all the trials."
"Wonder if Kris Jenner is sat in her sofa watching #ImACeleb right now?" a third said.


| Number | Js Topic | Why? |
| 1 | higher order functions | make my code DRY! |
| 2 | OOP | encapsulation and orginaization |
| 3 | Jquery | just awesome library! |
| 4 | CSS | Make my page beautiful! |
| 5 | HTML | Its the sturcutre of every page! |
HyperText Markup Language (HTML) is the standard markup language for creating web pages and web applications.


Review: Starship Troopers Directed By Paul Verhoeven Reviewed by Ralph "Leechboy" Beard
Plot - Bugs threaten Earth.  Much zaniness ensues Rating ***/12 stars or 7.5 (You decide) Review - Before I start the review I must say this, I saw this with just about the perfect film crowd - Enthusiastic, cheering, sci-fi movie lovers ready to suspend disbelief. This is just what you need to really enjoy Starship Troopers, and I must say I did. I was fully expecting Verhoeven to go all Speilberg and do a serious movie, especially after the mess that was Showgirls. Fat chance, Verhoeven returned back to the genre that got him into the A-list, violent tongue-in-cheek sci-fi.  Based on 1950's thinly veiled anti-communist (Change `Bugs' for `Commies' in the dialogue and you'll see) sci-fi novel by Robert A. Heinlein. Starship Troopers is filled with macho characters spewing forth `Kill em all' style phrases, and, if not for ads, this would have been the cheesiest pro-war flick since Green Berets. ST's best scenes involve the army's Join Up propaganda, hilarious 1-2 minute ads that serve to inform us about the story while sending up the `War is good' theme that engulfs the rest of the film. I enjoyed Starship Troopers immensely, as did six of the seven people I saw it with. The seventh, lets call him `The Fool', was less enthusiastic, and when I asked him what he thought of the flick, it went something like this – `The special effects were better than the cast' True, the cast is not exactly As Good As It Gets; however this isn't exactly Hamlet. This is a big bug movie; all it needs it some good looking people to attack the bugs. It has them, Casper Van Dien, Dina Meyers, Denise Richards, etc. are okay, they didn't annoy me, that's all I ask of them. There were memorable performances however from Michael Ironside as the hard-as-nails team leader, and very surprisingly from Clancy Brown in his first good role since Highlander, as the tough drill instructor (Mind you, there's been a hell of a lot of good parts for drill instructors, eg Lee Ermey in Full Metal Jacket, Viggo Mortenson in GI Jane, Warren Oates in Stripes and Louis Gosset Jr. in Officer and A Gentlemen). The effects are what make the movie, and they are astounding to look at, the bugs are awesome and the explosion fantastic. There is no doubt in my mind that this would have been a considerably worse movie if Roland Emmerich had directed, Verhoeven gives us what ID4 was distinctly lacking, death. For all the big explosions and aliens, ID4 did not show us the outcome of war, death, Starship Troopers is littered with dead bodies, decapitations and dismemberments. Almost all the cast is impaled or injured in some way, showing us without a doubt that this war is hell. So are there problems with Starship Troopers?  It's thoroughly enjoyable, yes, but I'm not going to be holding my breath for the best script Oscar for it. The point is - I had FUN watching it, something that hasn't happened for me at the movies in a long time.
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


SEE LIVE TALKS BY
U OF T’S TOP THINKERS.
VIRTUALLY ANYWHERE.
Now that alumni events have gone virtual, they can cross borders
and time zones to engage you wherever you live. U of T Where
You Are brings the University to your device through an eclectic
lecture series by U of T’s award-winning faculty and groundbreaking
researchers. Check out the fall lineup and join fellow alumni online.
For concerts, workouts and other events, visit our virtual hub.
|


We take great care to protect your information, however there is a slight risk of
loss of privacy. This risk is low because we separate your account information
(name, email, contact information, etc.) from the study data. Only key members of
the study team and some IT staff will have the key to associate your coded study
data to your name and account information.
However, certain skin features like tattoos or birthmarks may be unique to you and
enable your re-identification. So even though your name is kept separate from your
coded study data, it is possible that someone could still figure out your identity.
To reduce this risk we recommend photographing moles at close range (6 inches from
skin surface) to minimize capture of secondary identifiable skin features. Further,
we will attempt to review and remove from the study dataset all photos that we
consider identifiable or inappropriate for broad sharing with the research
community.
The risk to privacy and confidentiality should be considered before participating in
the study.


--- layout: page title: "About me" description: "" --- {% include JB/setup %}
I am currently a software developer at IBM.


Globalization
Setting the culture
- CurrentCulture is date/numbers (ddmmyy or mmddyy; 1.5 or 1,5)
- CurrentUICulture is for looking up resources
On all string/number/date operations use the optional formatting argument (FXCop will complain if you don't). Either System.Globalization.CultureInfo.CurrentCulture or .InvariantCulture (if applicable).
For the web, the HTTP header contains user languages (set within IE-Tools-Internet Options-Languages) which you can read in Request.UserLanguages[0] (for the first one). ASP 1: Read it (or a cookie from a user form) in Global.asax Session_Start. In ASP 2 it's automatic.
Resource Files
Use assembly linker for satellite assemblies: al /t:lib /culture:en-UK /embed:strings.en-UK.resources /out:myapp.resources.dll
Asp 2+
App_GlobalResources (Resources namespace, with intellisense) or App_LocalResources (page specific) .No more ResourceManager as in .Net 1!

Implicit Local:
<asp:Label ID="Label0" runat="server" Text="Hello world"
meta:resourcekey="LabelResource1" />

Explicit Local:
<asp:Label ID="Label1" runat="server"
Text='<%$ Resources:HelloWorld %>' />

Global:
<asp:Label ID="Label2" runat="server"
Text='<%$ Resources:Resource1, GlobalKey %>' />

- App_GlobalResources folder (normally just one .resx). Each directory has App_LocalResources with .resx for for each page (key is page name with extension- default.aspx- not the class name).
- In asp markup: implicit (Tools-Localize -adds meta:resourcekey to controls) vs explicit (<asp:Label ID="lab" runat="server" Text='<%$ Resources:lab %>' / > (globals have $Resources:classname, id format)
- In code:
string txt1 = (string)HttpContext.GetGlobalResourceObject("GlobalResources", "MyText");
//or (strong typed but less efficient)
string txt2 = Resources.GlobalResources.MyText;
//or (local)
string txt3 = (string)HttpContext.GetLocalResourceObject("~/WebForm1.aspx", "HelloWorld"); - Use asp:Localize (like asp:Literal with a meta:resourcekey)
- Web.config globalization (and Page) culture="auto" uiCulture="auto".
Override Page.InitializeCulture event (to read from cookie/db setting)protected override void InitializeCulture()
{
if (Request.Form["ListBox1"] != null) //controls not available
{
string selectedLanguage = Request.Form["ListBox1"];
//set the page properties
UICulture = selectedLanguage;
Culture = selectedLanguage;
//set the thread using CultureInfo - needs 2 different ways :(
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(selectedLanguage);
Thread.CurrentThread.CurrentUICulture = new CultureInfo(selectedLanguage);
}
base.InitializeCulture();
} - Sitemaps must be done manually: title="$Resources: SiteMap, Home"


A protocol describing a place logs from SDLLogManager are logged to
A simple convenience initializer to create the object. This should not start up the logger.
+ (nonnull id<SDLLogTarget>)logger;
static func logger() -> SDLLogTarget
An instance of the logger.
A call to setup the logger in whatever manner it needs to do so.
- (BOOL)setupLogger;
func setupLogger() -> Bool
Whether or not the logger set up correctly.
Log a particular log using the model and the formatted log message to the target.
- (void)logWithLog:(nonnull SDLLogModel *)log
formattedLog:(nonnull NSString *)stringLog;
func log(withLog log: SDLLogModel, formattedLog stringLog: String)
The log model, if you can log additional data, such as the log level, use this
The formatted message
The log target should be torn down. e.g. file handles should be closed
- (void)teardownLogger;
func teardownLogger()


Variable
A variable is a storage container for a CSS value, such as a color or number. The syntax is written as $variable ('$'' indicates the item is a variable and 'variable' is the name you assign). You can use this code throughout the stylesheet after you have defined it.
For those who are color palette challenged, you can go to a website and find great ideas. I used Coolors to generate the colors for this website.
You can generate a .scss file and copy the values into your .scss file. The file generator creates hex values, RGB and HSL. As you may have noticed, the file assumes you are using the colors as variables!
Nesting
Nesting reduces repetition in code and makes writing CSS faster and easier. It also allows for a natural organization of styles.
A quick example of this is the footer below. In traditional CSS two rules would apply, the first would be to the footer element and the second would be to the text. e.g. footer { rules } footer p { rules }. In nesting, the rule for the footer p would sit inside the footer rules. The pictures below show each.
Partials
Partials are SCSS files that begin with an underscore (_partial.scss) and are not compiled into their own CSS files, but are rather imported into a main file. Partials allow you a way to work independently on a module and later seemlessly integrate your work into the main CSS file. This website is built entirely from partials. The main style.scss only has imports of partials.
Import
Use @import to compile all your partials into one file. The primary scss file will use the @import and reference the _partial.scss file. During compilation, the instructions in the partial will be compiled as well.
Mixins
Use @mixin for repetitious CSS, such as when vendor prefixes are required. Mixins are used in this website for the main page background formatting, media break formulas, the fixed grid formulas and the formula for clearing after floats.
Extend
Use @extend to change a few key aspects of otherwise identical elements - such as a group of buttons with different colors. There is an example at the bottom of this page. Three sets of three buttons were made with three different methods. One of these was an @extend method.
Operators
Operators allow you to use math calculations in your CSS - such as defining the width of various parts of a layout. Operators were used in formula calulculations for the fixed grid example and the media break for example, as well as others.