--- short: e-sparql type: extractor color: red title: SPARQL Endpoint description: Extracts RDF triples from a SPARQL endpoint. ---
Extractor, allows the user to extract RDF triples from a SPARQL endpoint using a CONSTRUCT query.
The {{page.title}} component queries a remote SPARQL endpoint using a SPARQL CONSTRUCT query. It can be configured at runtime using RDF configuration, which can be generated by another component. The MIME type setting can be useful to overcome certain serialization bugs present in some SPARQL endpoint implementations.
Below you can see sample runtime configuration for the component, which includes specification of default graph IRIs. You can also import a sample pipeline. Note that RDF blank nodes are not allowed in runtime configurations.
{% highlight turtle %} @prefix se:


public class TabSwitcher extends FrameLayout implements TabSwitcherLayout, Model
TabSwitcherDecorator
, must be implemented and set to the tab switcher via the
setDecorator
-method.
The currently selected tab is shown fullscreen by default. When displaying the switcher via the
showSwitcher-method
, an overview of all tabs is shown, allowing to select an other
tab by clicking it. By swiping a tab or by clicking its close button, it can be removed,
resulting in the selected tab to be altered automatically. The switcher can programmatically be
hidden by calling the hideSwitcher
-method. By calling the
setSelectedTab
-method programmatically, a tab is selected and shown fullscreen.
Individual tabs are represented by instances of the class Tab
. Such tabs can dynamically
be added to the tab switcher by using the addTab
-methods. In order to remove them
afterwards, the removeTab
can be used. If the switcher is currently shown, calling
these methods results in the tabs being added or removed in an animated manner.Model.Listener
| Constructor and Description |
|---|
TabSwitcher(Context context)
Creates a new tab switcher, which allows to switch between multiple tabs.
|
TabSwitcher(Context context,
AttributeSet attributeSet)
Creates a new tab switcher, which allows to switch between multiple tabs.
|
TabSwitcher(Context context,
AttributeSet attributeSet,
int defaultStyle)
Creates a new tab switcher, which allows to switch between multiple tabs.
|
TabSwitcher(Context context,
AttributeSet attributeSet,
int defaultStyle,
int defaultStyleResource)
Creates a new tab switcher, which allows to switch between multiple tabs.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAllTabs(java.util.Collection<? extends Tab> tabs)
Adds all tabs, which are contained by a collection, to the tab switcher.
|
void |
addAllTabs(java.util.Collection<? extends Tab> tabs,
int index)
Adds all tabs, which are contained by a collection, to the tab switcher, starting at a
specific index.
|
void |
addAllTabs(java.util.Collection<? extends Tab> tabs,
int index,
Animation animation)
Adds all tabs, which are contained by a collection, to the tab switcher, starting at a
specific index.
|
void |
addAllTabs(Tab[] tabs)
Adds all tabs, which are contained by an array, to the tab switcher.
|
void |
addAllTabs(Tab[] tabs,
int index)
Adds all tabs, which are contained by an array, to the tab switcher, starting at a specific
index.
|
void |
addAllTabs(Tab[] tabs,
int index,
Animation animation)
Adds all tabs, which are contained by an array, to the tab switcher, starting at a
specific index.
|
void |
addCloseTabListener(TabCloseListener listener)
Adds a new listener, which should be notified, when a tab is about to be closed by clicking
its close button.
|
void |
addListener(TabSwitcherListener listener)
Adds a listener, which should be notified about the tab switcher's events.
|
void |
addTab(Tab tab)
Adds a new tab to the tab switcher.
|
void |
addTab(Tab tab,
int index)
Adds a new tab to the tab switcher at a specific index.
|
void |
addTab(Tab tab,
int index,
Animation animation)
Adds a new tab to the tab switcher at a specific index.
|
void |
addTabPreviewListener(TabPreviewListener listener)
Adds a new listener, which should be notified, when the preview of a tab is about to be
loaded.
|
boolean |
areToolbarsShown()
Returns, whether the toolbars are shown, when the tab switcher is shown, or not.
|
void |
clear()
Removes all tabs from the tab switcher.
|
void |
clear(Animation animationType)
Removes all tabs from the tab switcher.
|
int |
getCount()
Returns the number of tabs, which are contained by the tab switcher.
|
TabSwitcherDecorator |
getDecorator()
Returns the decorator, which allows to inflate the views, which correspond to the tabs of the
tab switcher.
|
Layout |
getLayout()
Returns the layout of the tab switcher.
|
LayoutPolicy |
getLayoutPolicy()
Returns the layout policy, which is used by the tab switcher.
|
de.mrapp.android.util.logging.LogLevel |
getLogLevel()
Returns the log level, which is used for logging.
|
int |
getPaddingBottom()
Returns the bottom padding of the tab switcher.
|
int |
getPaddingEnd()
Returns the end padding of the tab switcher.
|
int |
getPaddingLeft()
Returns the left padding of the tab switcher.
|
int |
getPaddingRight()
Returns the right padding of the tab switcher.
|
int |
getPaddingStart()
Returns the start padding of the tab switcher.
|
int |
getPaddingTop()
Returns the top padding of the tab switcher.
|
Tab |
getSelectedTab()
Returns the currently selected tab.
|
int |
getSelectedTabIndex()
Returns the index of the currently selected tab.
|
Tab |
getTab(int index)
Returns the tab at a specific index.
|
ColorStateList |
getTabBackgroundColor()
Returns the default background color of a tab.
|
Drawable |
getTabCloseButtonIcon()
Returns the default icon of a tab's close button.
|
ViewGroup |
getTabContainer()
Returns the view group, which contains the tab switcher's tabs.
|
Drawable |
getTabIcon()
Returns the default icon of a tab.
|
ColorStateList |
getTabTitleTextColor()
Returns the default text color of a tab's title.
|
Menu |
getToolbarMenu()
Returns the menu of the toolbar, which is shown, when the tab switcher is shown.
|
Drawable |
getToolbarNavigationIcon()
Returns the navigation icon of the toolbar, which is shown, when the tab switcher is shown.
|
android.support.v7.widget.Toolbar[] |
getToolbars()
Returns the toolbars, which are shown, when the tab switcher is shown.
|
java.lang.CharSequence |
getToolbarTitle()
Returns the title of the toolbar, which is shown, when the tab switcher is shown.
|
void |
hideSwitcher()
Hides the tab switcher by using an animation, if it is currently shown.
|
int |
indexOf(Tab tab)
Returns the index of a specific tab.
|
void |
inflateToolbarMenu(int resourceId,
android.support.v7.widget.Toolbar.OnMenuItemClickListener listener)
Inflates the menu of the toolbar, which is shown, when the tab switcher is shown.
|
boolean |
isAnimationRunning()
Returns, whether an animation is currently running, or not.
|
boolean |
isEmpty()
Returns, whether the tab switcher is empty, or not.
|
boolean |
isSwitcherShown()
Returns, whether the tab switcher is currently shown.
|
java.util.Iterator<Tab> |
iterator() |
void |
onRestoreInstanceState(Parcelable state) |
Parcelable |
onSaveInstanceState() |
boolean |
onTouchEvent(MotionEvent event) |
void |
removeCloseTabListener(TabCloseListener listener)
Removes a specific listener, which should not be notified, when a tab is about to be closed
by clicking its close button, anymore.
|
void |
removeListener(TabSwitcherListener listener)
Removes a specific listener, which should not be notified about the tab switcher's events,
anymore.
|
void |
removeTab(Tab tab)
Removes a specific tab from the tab switcher.
|
void |
removeTab(Tab tab,
Animation animation)
Removes a specific tab from the tab switcher.
|
void |
removeTabPreviewListener(TabPreviewListener listener)
Removes a specific listener, which should not be notified, when the preview of a tab is about
to be loaded.
|
void |
selectTab(Tab tab)
Selects a specific tab.
|
void |
setDecorator(TabSwitcherDecorator decorator)
Sets the decorator, which allows to inflate the views, which correspond to the tabs of the
tab switcher.
|
void |
setLayoutPolicy(LayoutPolicy layoutPolicy)
Sets the layout policy, which should be used by the tab switcher.
|
void |
setLogLevel(de.mrapp.android.util.logging.LogLevel logLevel)
Sets the log level, which should be used for logging.
|
void |
setPadding(int left,
int top,
int right,
int bottom)
Sets the padding of the tab switcher.
|
void |
setTabBackgroundColor(ColorStateList colorStateList)
Sets the default background color of a tab.
|
void |
setTabBackgroundColor(int color)
Sets the default background color of a tab.
|
void |
setTabCloseButtonIcon(Bitmap icon)
Sets the default icon of a tab's close button.
|
void |
setTabCloseButtonIcon(int resourceId)
Sets the default icon of a tab's close button.
|
void |
setTabIcon(Bitmap icon)
Sets the default icon of a tab.
|
void |
setTabIcon(int resourceId)
Sets the default icon of a tab.
|
void |
setTabTitleTextColor(ColorStateList colorStateList)
Sets the default text color of a tab's title.
|
void |
setTabTitleTextColor(int color)
Sets the default text color of a tab's title.
|
void |
setToolbarNavigationIcon(Drawable icon,
OnClickListener listener)
Sets the navigation icon of the toolbar, which is shown, when the tab switcher is shown.
|
void |
setToolbarNavigationIcon(int resourceId,
OnClickListener listener)
Sets the navigation icon of the toolbar, which is shown, when the tab switcher is shown.
|
void |
setToolbarTitle(java.lang.CharSequence title)
Sets the title of the toolbar, which is shown, when the tab switcher is shown.
|
void |
setToolbarTitle(int resourceId)
Sets the title of the toolbar, which is shown, when the tab switcher is shown.
|
static void |
setupWithMenu(TabSwitcher tabSwitcher,
Menu menu,
OnClickListener listener)
Setups the tab switcher to be associated with those menu items of a specific menu, which use
a
TabSwitcherButton as their action view. |
void |
showSwitcher()
Shows the tab switcher by using an animation, if it is not already shown.
|
void |
showToolbars(boolean show)
Sets, whether the toolbars should be shown, when the tab switcher is shown, or not.
|
void |
toggleSwitcherVisibility()
Toggles the visibility of the tab switcher by using an animation, i.e.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContext
public TabSwitcher(@NonNull Context context)
context
- The context, which should be used by the view, as an instance of the class Context
. The context may not be nullpublic TabSwitcher(@NonNull Context context, @Nullable AttributeSet attributeSet)
context
- The context, which should be used by the view, as an instance of the class Context
. The context may not be nullattributeSet
- The attribute set, the view's attributes should be obtained from, as an instance of
the type AttributeSet
or null, if no attributes should be obtainedpublic TabSwitcher(@NonNull Context context, @Nullable AttributeSet attributeSet, @AttrRes int defaultStyle)
context
- The context, which should be used by the view, as an instance of the class Context
. The context may not be nullattributeSet
- The attribute set, the view's attributes should be obtained from, as an instance of
the type AttributeSet
or null, if no attributes should be obtaineddefaultStyle
- The default style to apply to this view. If 0, no style will be applied (beyond what
is included in the theme). This may either be an attribute resource, whose value will
be retrieved from the current theme, or an explicit style resourcepublic TabSwitcher(@NonNull Context context, @Nullable AttributeSet attributeSet, @AttrRes int defaultStyle, @StyleRes int defaultStyleResource)
context
- The context, which should be used by the view, as an instance of the class Context
. The context may not be nullattributeSet
- The attribute set, the view's attributes should be obtained from, as an instance of
the type AttributeSet
or null, if no attributes should be obtaineddefaultStyle
- The default style to apply to this view. If 0, no style will be applied (beyond what
is included in the theme). This may either be an attribute resource, whose value will
be retrieved from the current theme, or an explicit style resourcedefaultStyleResource
- A resource identifier of a style resource that supplies default values for the view,
used only if the default style is 0 or can not be found in the theme. Can be 0 to not
look for defaultspublic static void setupWithMenu(@NonNull TabSwitcher tabSwitcher, @NonNull Menu menu, @Nullable OnClickListener listener)
TabSwitcherButton
as their action view. The icon of such menu items will
automatically be updated, when the number of tabs, which are contained by the tab switcher,
changes.tabSwitcher
- The tab switcher, which should become associated with the menu items, as an instance
of the class TabSwitcher
. The tab switcher may not be nullmenu
- The menu, whose menu items should become associated with the given tab switcher, as
an instance of the type Menu
. The menu may not be nulllistener
- The listener, which should be set to the menu items, which use a TabSwitcherButton
as their action view, as an instance of the type OnClickListener
or null, if no listener should be setpublic final void addListener(@NonNull TabSwitcherListener listener)
listener
- The listener, which should be added, as an instance of the type TabSwitcherListener
. The listener may not be nullpublic final void removeListener(@NonNull TabSwitcherListener listener)
listener
- The listener, which should be removed, as an instance of the type TabSwitcherListener
. The listener may not be null@NonNull public final LayoutPolicy getLayoutPolicy()
LayoutPolicy
. The layout policy may either be LayoutPolicy.AUTO
, LayoutPolicy.PHONE
or LayoutPolicy.TABLET
public final void setLayoutPolicy(@NonNull LayoutPolicy layoutPolicy)
layoutPolicy
- The layout policy, which should be set, as a value of the enum LayoutPolicy
.
The layout policy may either be LayoutPolicy.AUTO
, LayoutPolicy.PHONE
or LayoutPolicy.TABLET
@NonNull public final Layout getLayout()
Layout
. The layout may
either be Layout.PHONE_PORTRAIT
, Layout.PHONE_LANDSCAPE
or Layout.TABLET
public final void addTab(@NonNull Tab tab)
Model
SwipeAnimation
with direction SwipeAnimation.SwipeDirection.RIGHT
is used. If
an animation is currently running, the tab will be added once all previously started
animations have been finished.public final void addTab(@NonNull Tab tab, int index)
Model
SwipeAnimation
with
direction SwipeAnimation.SwipeDirection.RIGHT
is used. If an animation is currently
running, the tab will be added once all previously started animations have been finished.addTab
in interface Model
tab
- The tab, which should be added, as an instance of the class Tab
. The tab may
not be nullindex
- The index, the tab should be added at, as an Integer
value. The index must be
at least 0 and at maximum getCount()
, otherwise an IndexOutOfBoundsException
will be thrownpublic final void addTab(@NonNull Tab tab, int index, @NonNull Animation animation)
Model
addTab
in interface Model
tab
- The tab, which should be added, as an instance of the class Tab
. The tab may
not be nullindex
- The index, the tab should be added at, as an Integer
value. The index must be
at least 0 and at maximum getCount()
, otherwise an IndexOutOfBoundsException
will be thrownanimation
- The animation, which should be used to add the tab, as an instance of the class
Animation
. The animation may not be nullpublic final void addAllTabs(@NonNull java.util.Collection<? extends Tab> tabs)
Model
SwipeAnimation
with direction SwipeAnimation.SwipeDirection.RIGHT
is used. If an animation is currently running, the tabs will
be added once all previously started animations have been finished.addAllTabs
in interface Model
tabs
- A collection, which contains the tabs, which should be added, as an instance of the
type Collection
or an empty collection, if no tabs should be addedpublic final void addAllTabs(@NonNull java.util.Collection<? extends Tab> tabs, int index)
Model
SwipeAnimation
with direction SwipeAnimation.SwipeDirection.RIGHT
is used. If an animation is currently running, the tabs will
be added once all previously started animations have been finished.addAllTabs
in interface Model
tabs
- A collection, which contains the tabs, which should be added, as an instance of the
type Collection
or an empty collection, if no tabs should be addedindex
- The index, the first tab should be started at, as an Integer
value. The index
must be at least 0 and at maximum getCount()
, otherwise an IndexOutOfBoundsException
will be thrownpublic final void addAllTabs(@NonNull java.util.Collection<? extends Tab> tabs, int index, @NonNull Animation animation)
Model
addAllTabs
in interface Model
tabs
- A collection, which contains the tabs, which should be added, as an instance of the
type Collection
or an empty collection, if no tabs should be addedindex
- The index, the first tab should be started at, as an Integer
value. The index
must be at least 0 and at maximum getCount()
, otherwise an IndexOutOfBoundsException
will be thrownanimation
- The animation, which should be used to add the tabs, as an instance of the class
Animation
. The animation may not be nullpublic final void addAllTabs(@NonNull Tab[] tabs)
Model
SwipeAnimation
with direction SwipeAnimation.SwipeDirection.RIGHT
is used. If an animation is currently running, the tabs will
be added once all previously started animations have been finished.addAllTabs
in interface Model
tabs
- An array, which contains the tabs, which should be added, as an array of the type
Tab
or an empty array, if no tabs should be addedpublic final void addAllTabs(@NonNull Tab[] tabs, int index)
Model
SwipeAnimation
with direction SwipeAnimation.SwipeDirection.RIGHT
is used. If an animation is currently running, the tabs will
be added once all previously started animations have been finished.addAllTabs
in interface Model
tabs
- An array, which contains the tabs, which should be added, as an array of the type
Tab
or an empty array, if no tabs should be addedindex
- The index, the first tab should be started at, as an Integer
value. The index
must be at least 0 and at maximum getCount()
, otherwise an IndexOutOfBoundsException
will be thrownpublic final void addAllTabs(@NonNull Tab[] tabs, int index, @NonNull Animation animation)
Model
addAllTabs
in interface Model
tabs
- An array, which contains the tabs, which should be added, as an array of the type
Tab
or an empty array, if no tabs should be addedindex
- The index, the first tab should be started at, as an Integer
value. The index
must be at least 0 and at maximum getCount()
, otherwise an IndexOutOfBoundsException
will be thrownanimation
- The animation, which should be used to add the tabs, as an instance of the class
Animation
. The animation may not be nullpublic final void removeTab(@NonNull Tab tab)
Model
SwipeAnimation
with direction
SwipeAnimation.SwipeDirection.RIGHT
is used. If an animation is currently running, the tab
will be removed once all previously started animations have been finished.public final void removeTab(@NonNull Tab tab, @NonNull Animation animation)
Model
public final void clear()
Model
SwipeAnimation
with direction
SwipeAnimation.SwipeDirection.RIGHT
is used. If an animation is currently running, the
tabs will be removed once all previously started animations have been finished.public final void clear(@NonNull Animation animationType)
Model
public final void selectTab(@NonNull Tab tab)
Model
@Nullable public final Tab getSelectedTab()
Model
getSelectedTab
in interface Model
Tab
or null, if no tab
is currently selectedpublic final int getSelectedTabIndex()
Model
getSelectedTabIndex
in interface Model
Integer
value or -1, if no tab
is currently selectedpublic final java.util.Iterator<Tab> iterator()
iterator
in interface java.lang.Iterable<Tab>
public final boolean isEmpty()
Model
public final int getCount()
Model
@NonNull public final Tab getTab(int index)
Model
getTab
in interface Model
index
- The index of the tab, which should be returned, as an Integer
value. The
index must be at least 0 and at maximum getCount() - 1
, otherwise a
IndexOutOfBoundsException
will be thrownTab
. The tab may not be nullpublic final int indexOf(@NonNull Tab tab)
Model
public final boolean isSwitcherShown()
Model
isSwitcherShown
in interface Model
public final void showSwitcher()
Model
showSwitcher
in interface Model
public final void hideSwitcher()
Model
hideSwitcher
in interface Model
public final void toggleSwitcherVisibility()
Model
toggleSwitcherVisibility
in interface Model
public final void setDecorator(@NonNull TabSwitcherDecorator decorator)
Model
setDecorator
in interface Model
decorator
- The decorator, which should be set, as an instance of the class TabSwitcherDecorator
. The decorator may not be nullpublic final TabSwitcherDecorator getDecorator()
Model
getDecorator
in interface Model
TabSwitcherDecorator
or null, if no
decorator has been set@NonNull public final de.mrapp.android.util.logging.LogLevel getLogLevel()
Model
getLogLevel
in interface Model
public final void setLogLevel(@NonNull de.mrapp.android.util.logging.LogLevel logLevel)
Model
setLogLevel
in interface Model
logLevel
- The log level, which should be set, as a value of the enum LogLevel. The log level
may not be nullpublic final void setPadding(int left, int top, int right, int bottom)
Model
setPadding
in interface Model
left
- The left padding, which should be set, in pixels as an Integer
valuetop
- The top padding, which should be set, in pixels as an Integer
valueright
- The right padding, which should be set, in pixels as an Integer
valuebottom
- The bottom padding, which should be set, in pixels as an Integer
valuepublic final int getPaddingLeft()
Model
getPaddingLeft
in interface Model
Integer
valuepublic final int getPaddingTop()
Model
getPaddingTop
in interface Model
Integer
valuepublic final int getPaddingRight()
Model
getPaddingRight
in interface Model
Integer
valuepublic final int getPaddingBottom()
Model
getPaddingBottom
in interface Model
Integer
valuepublic final int getPaddingStart()
Model
getPaddingStart
in interface Model
Integer
valuepublic final int getPaddingEnd()
Model
getPaddingEnd
in interface Model
Integer
value@Nullable public final Drawable getTabIcon()
Model
getTabIcon
in interface Model
Drawable
or null, if no
icon is setpublic final void setTabIcon(@DrawableRes int resourceId)
Model
setTabIcon
in interface Model
resourceId
- The resource id of the icon, which should be set, as an Integer
value. The
resource id must correspond to a valid drawable resourcepublic final void setTabIcon(@Nullable Bitmap icon)
Model
setTabIcon
in interface Model
icon
- The resource id of the icon, which should be set, as an Integer
value. The
resource id must correspond to a valid drawable resource@Nullable public final ColorStateList getTabBackgroundColor()
Model
getTabBackgroundColor
in interface Model
ColorStateList
or null, if the default color is usedpublic final void setTabBackgroundColor(int color)
Model
setTabBackgroundColor
in interface Model
color
- The color, which should be set, as an Integer
value or -1, if the default
color should be usedpublic final void setTabBackgroundColor(@Nullable ColorStateList colorStateList)
Model
setTabBackgroundColor
in interface Model
colorStateList
- The color, which should be set, as an Integer
value or -1, if the default
color should be used@Nullable public final ColorStateList getTabTitleTextColor()
Model
getTabTitleTextColor
in interface Model
ColorStateList
or null, if the default color is usedpublic final void setTabTitleTextColor(int color)
Model
setTabTitleTextColor
in interface Model
color
- The color, which should be set, as an Integer
value or -1, if the default
color should be usedpublic final void setTabTitleTextColor(@Nullable ColorStateList colorStateList)
Model
setTabTitleTextColor
in interface Model
colorStateList
- The color, which should be set, as an Integer
value or -1, if the default
color should be used@Nullable public final Drawable getTabCloseButtonIcon()
Model
getTabCloseButtonIcon
in interface Model
Drawable
or null, if the default icon is usedpublic final void setTabCloseButtonIcon(@DrawableRes int resourceId)
Model
setTabCloseButtonIcon
in interface Model
resourceId
- The resource id of the icon, which should be set, as an Integer
value. The
resource id must correspond to a valid drawable resourcepublic final void setTabCloseButtonIcon(@Nullable Bitmap icon)
Model
setTabCloseButtonIcon
in interface Model
icon
- The resource id of the icon, which should be set, as an Integer
value. The
resource id must correspond to a valid drawable resourcepublic final boolean areToolbarsShown()
Model
areToolbarsShown
in interface Model
public final void showToolbars(boolean show)
Model
showToolbars
in interface Model
show
- True, if the toolbars should be shown, false otherwise@Nullable public final java.lang.CharSequence getToolbarTitle()
Model
getToolbarTitle
in interface Model
CharSequence
or null, if no title is setpublic final void setToolbarTitle(@StringRes int resourceId)
Model
setToolbarTitle
in interface Model
resourceId
- The resource id of the title, which should be set, as an Integer
value. The
resource id must correspond to a valid string resourcepublic final void setToolbarTitle(@Nullable java.lang.CharSequence title)
Model
setToolbarTitle
in interface Model
title
- The title, which should be set, as an instance of the type CharSequence
or
null, if no title should be set@Nullable public final Drawable getToolbarNavigationIcon()
Model
getToolbarNavigationIcon
in interface Model
Drawable
or null, if no icon is setpublic final void setToolbarNavigationIcon(@Nullable Drawable icon, @Nullable OnClickListener listener)
Model
setToolbarNavigationIcon
in interface Model
icon
- The resource id of the icon, which should be set, as an Integer
value. The
resource id must correspond to a valid drawable resourcelistener
- The listener, which should be notified, when the navigation item has been clicked, as
an instance of the type OnClickListener
or null, if no listener should be
notifiedpublic final void setToolbarNavigationIcon(@DrawableRes int resourceId, @Nullable OnClickListener listener)
Model
setToolbarNavigationIcon
in interface Model
resourceId
- The resource id of the icon, which should be set, as an Integer
value. The
resource id must correspond to a valid drawable resourcelistener
- The listener, which should be notified, when the navigation item has been clicked, as
an instance of the type OnClickListener
or null, if no listener should be
notifiedpublic final void inflateToolbarMenu(@MenuRes int resourceId, @Nullable android.support.v7.widget.Toolbar.OnMenuItemClickListener listener)
Model
inflateToolbarMenu
in interface Model
resourceId
- The resource id of the menu, which should be inflated, as an Integer
value.
The resource id must correspond to a valid menu resourcelistener
- The listener, which should be notified, when an menu item has been clicked, as an
instance of the type OnMenuItemClickListener or null, if no listener should be
notifiedpublic final void addCloseTabListener(@NonNull TabCloseListener listener)
Model
addCloseTabListener
in interface Model
listener
- The listener, which should be added, as an instance of the type TabCloseListener
. The listener may not be nullpublic final void removeCloseTabListener(@NonNull TabCloseListener listener)
Model
removeCloseTabListener
in interface Model
listener
- The listener, which should be removed, as an instance of the type TabCloseListener
. The listener may not be nullpublic final void addTabPreviewListener(@NonNull TabPreviewListener listener)
Model
addTabPreviewListener
in interface Model
listener
- The listener, which should be added, as an instance of the type TabPreviewListener
. The listener may not be nullpublic final void removeTabPreviewListener(@NonNull TabPreviewListener listener)
Model
removeTabPreviewListener
in interface Model
listener
- The listener, which should be removed, as an instance of the type TabPreviewListener
. The listener may not be nullpublic final boolean isAnimationRunning()
TabSwitcherLayout
isAnimationRunning
in interface TabSwitcherLayout
@Nullable public final ViewGroup getTabContainer()
TabSwitcherLayout
getTabContainer
in interface TabSwitcherLayout
ViewGroup
or null, if the view has not been laid out yetpublic final android.support.v7.widget.Toolbar[] getToolbars()
TabSwitcherLayout
getToolbars
in interface TabSwitcherLayout
@Nullable public final Menu getToolbarMenu()
TabSwitcherLayout
getToolbarMenu
in interface TabSwitcherLayout
Menu
or null, if the view
has not been laid out yetpublic final boolean onTouchEvent(MotionEvent event)
public final Parcelable onSaveInstanceState()
public final void onRestoreInstanceState(Parcelable state)


Constructor
new SCxml(mixed source, Element anchor, Object data, boolean interpretASAP)
returns an interpreter instance, attempts to retrieve and parse the source, attaches to the supplied anchor, and starts running as soon as possible if interpretASAP is true
.
- source
- Required
- Can be a URL, a Document, a File or an SCXML source string. If it is a string starting with "<", JSSC will try to interpret it as SCXML source code. If it is a URL string, JSSC will send an HTTP request to retrieve it, subject to the usual Cross-Domain restrictions. If source is an instance of Document, JSSC will simply use it (note that the Document itself, not a copy, will be used). If it is a File, JSSC will try to read it and parse it as SCXML source code.
- anchor
- Default: special
- If you provide an Element here, the interpreter will “attach” to that Element (most importantly, DOM Events sent by the interpreter will be targetted at that Element). If you give a falsy value to this argument, JSSC will create an <scxml> element to use as this interpreter's anchor, and append it to the HTML document's <head>. Note that the anchor Element will have an
interpreter
property pointing to the interpreter instance.
- data
- Default: null
- Must be an Object. That Object's properties will be available to JavaScript code within the SC, e.g. in
expr
attribute values and <script>
content. It is the recommended way to include libraries and share objects with the SC.
- interpretASAP
- Default: false
- If this is
true
, the interpreter will start running as soon as possible, i.e. at the time its readyState changes to READY. Otherwise, it will only parse and validate the SCXML document, then wait for your call to start().
SCxml.sessions
An Array of all JSSCxml sessions (interpreters) on the page, indexed by their session ID. Because the SID is never lower than 1, SCxml.sessions[0]
is always null
and the array's length is one larger than the number of sessions ever created.
You should never modify this array, only use it to access sessions.
SCxml.parseSCXMLTags()
finds all <scxml>
elements on the page, and creates an SCXML instance for them if they have a src
attribute. The instance is anchored to the <scxml>
element and will start running automatically (interpretASAP is true
).
new SCxml.ExternalEvent(string name, string origin, string origintype, number invokeid, any data)
returns an instance of JSSC's representation for external events, suitable for passing to the fireEvent() method.
The meaning of the arguments is defined in the SCXML recommendation: 5.11.1 The Internal Structure of Events. Only name (the first one) is required.
Methods and properties of SCxml instances
start()
if the instance is ready, starts running it. That's all.
pauseNext(boolean macrostep)
requires SCxmlDebug.js
will pause the interpreter before the next microstep, or macrostep if the argument is true
. Note that this method returns before the interpreter is actually paused, unless it was stable.
Delayed events' and setTimeout timers will also be paused, although system time will obviously continue ticking so there may be some side-effects. setInterval will be supported soon.
clean()
Removes the interpreter's anchor (only if it is an <scxml>
element) and datamodel <iframe>
from the document, and also a bunch of references to facilitate garbage collection. If you call this while the interpreter is running, it will first try to terminate properly.
resume()
requires SCxmlDebug.js
immediately resumes a paused interpreter.
fireEvent(mixed event)
fireEvent(string name, any data)
if the interpreter is running, appends an event to its external queue. If the interpreter was waiting, tries to take transitions with the new event.
- event
- Required in the one-argument version
- an instance of SCxml.Event will be used directly. JSSC also natively supports instances of window.Event (a DOM Event), which are converted into an SCxml.ExternalEvent before being queued. In that case, the DOM event's type property is used for the SCxml.Event's name, and all the DOM event's properties will be available in the SCXML system variable
_event.data
.
- name
- Required in the two-arguments version
- the new event's name
- data
- Default: undefined
- in the two-arguments version: the new event's data, which can be anything
readyState
is one of:
- SCxml.LOADING
- SCxml.READY
- SCxml.RUNNING
- SCxml.FINISHED
dom
references the SCXML Document that the instance is interpreting. At this time, modifications to the Document after the instance is created can have strange consequences.
configuration
An object whose enumarable properties reference each active state by their id. It is not ordered.
Events
These DOM events will be fired at the SCxml instance's anchor when the right conditions are met.
ready
fired when the interpreter has parsed and validated the source, and is ready to start. It will then start immediately if interpretASAP was true.
pause
fired when the interpreter pauses (automatically or after a pauseNext() call).
finished
fires when the interpreter reaches a top-level final state and terminates.
waiting
fires whenever the interpreter becomes stable and has no more events to process.
exit
fires when states are exited during transitions. The event's detail
property is a list of the exited states' ids.
enter
fires when states are entered during transitions. The event's detail
property is a list of the entered states' ids.
queue
fires whenever an event is added to one of the queues (for whatever reason, like an error.execution, a <raise>
element or your own call to fireEvent()). The detail
property references the new event.
consume
fires whenever an event is consumed from one of the queues. The detail
property contains the string "internal" or "external", depending on the queue the event was taken from.


Doughnut Club
Spring 2018
Learn how your money will grow today, to purchase more doughnuts tomorrow!


RuneStats
RuneScape Stats for Twitch
Post Issues Here!
Designed for
Twitch
, tested by
Nurrivia
. Too bad it doesn't work. Check out his Stream.
How to Use RuneStats
To use RuneStats simply paste the url with your username
http://runestats.stream/your_username.png


Kirk Herbstreit Asked How Penn State Can Beat Ohio State
by Andrew McCartyOn Tuesday night, the College Football Playoff rankings were released. Although two undefeated teams went down last weekend, there was no change among the top-seven programs.
Minnesota’s loss to Iowa helped the team the Gophers beat just two weeks ago. Penn State jumped up to No. 8 from No. 9 after the Gophers dropped down to No. 10.
After the rankings were released, ESPN’s panel of college football experts broke down a major game coming up this weekend.
No. 2 Ohio State hosts No. 8 Penn State in the biggest game of the Big Ten season to date.
Kirk Herbstreit was asked how the Nittany Lions can pull the upset. Here’s what he had to say, via Saturday Tradition:
“I think if Penn State has a chance here, they gotta go tempo because you’ve gotta get Ohio State’s defensive line fatigued. The only way they can do that is be aggressive. You’re on the road in Columbus, take some chances, Hamler’s gotta be out there. I think the biggest concern is defending Ohio State’s big play through the air, that could be a problem for Penn State in Columbus.”
Ohio State enters as a huge favorite over Penn State – 18 points to be exact. The Buckeyes have been one of the most dominant programs in the country this season.
However, James Franklin’s team has played Ohio State tough over the past three years. Can his team keep it close this time?
Ohio State and Penn State kick off at 12:00 p.m. ET on FOX.


Before Change
if self.graph is not None:
if isinstance(self.graph, graphtools.LandmarkGraph):
return self.graph.landmark_op
else:
return self.graph.diff_op
else:
raise NotFittedError("This PHATE instance is not fitted yet. Call "
After Change
if self.graph is not None:
if isinstance(self.graph, graphtools.graphs.LandmarkGraph):
diff_op = self.graph.landmark_op
else:
diff_op = self.graph.diff_op
if sparse.issparse(diff_op):
diff_op = diff_op.toarray()
return diff_op
else:
raise NotFittedError("This PHATE instance is not fitted yet. Call "
""fit" with appropriate arguments before "


WARNING! Read the conditions for the problems in this set very carefully! The type of tree and node structure can change from problem to problem.
For the above complete binary tree, what is the relation of the node labeled node? Type in the node number of the relation, or if one does not exist, then type NONE.
ANS


We share a lot of stuff in our Dev Chat during the course of a week - most of it isn't safe for public consumption but there are always a few things which are really interesting, thought-provoking or just plain funny.
This post starts a series of weekly articles where we’ll keep a record of our favourite finds on the internet over the previous 7 days. Hopefully you find the links below as interesting as we have:
This week Peter has been mulling over ways of preventing a “knowledge debt problem”. He’s also recommended that you watch Rich Hickey’s presentation on Simple made Easy.
Glenn has been meditating on The Zen of Python – a brilliant list of guiding principles for software developers.
Sachin stumbled across an interview with Peter Thiel from The New Yorker where he talks about why Silicon Valley hasn’t done enough to disrupt and revolutionize the world. It was also pretty cool to see our ShouldClean gem being used in a commit to Rspec.
Dalibor has been thinking about how to pitch his next big business plan – David McClure makes it clear that you should put the problem before the solution.
On a lighter note – the internet has finally awoken the to the fact that skeuomorphism is getting out of hand – for instance, why would you want a weather app that looks like a pair of pants?!
Lastly if you have not followed @Sachinsbeard this might convince you to do so… The Beards – Got Me a Beard (official music video)


Requirement
Rapid economic expansion, project development and climate change means an ever increasing need for improved data, voice and video communications in Canada's North. This requires the roll-out of a vast and interconnected network available across the North. Current network provision is accomplished through geostationary satellite infrastructure, which provides poor coverage for high latitudes.
Multiple parties are attempting to alleviate the North's bandwidth shortage through varying technologies; ranging from satellite, microwave to fibre optic delivery systems. Most of the proposed options provide limited coverage for areas with low population density or are prohibitively expensive. Northern government and private industry leaders need a solution which provides a cost effective method of delivering connectivity to the entirety of the Arctic.
The North requires network infrastructure which enables access at affordable rates with consistent performance metrics irregardless of the locality.
Solution
Satellite based infrastructure is, in general, the most cost effective method of delivering connectivity in remote regions. This is due to the ability of satellite providers to shift a large portion of the sunk construction costs to cheaper jurisdictions. Satellites themselves, their associated infrastructure and network operations can be built and developed in more cost effective environments. Unlike land based infrastructure, such as cable or microwave, the construction costs in remote areas for a satellite solution is limited to the rollout of earth stations and metropolitan area networks (MAN). These costs savings allow for: cheaper solutions which provide an ability for the frequent overhaul or enhancement of network hardware; a shift from the costs associated with the construction of cables or towers to improved satellite functionality and capabilities; and, vastly greater coverage.
A satellite solution, as compared to a land based solution, provides additional benefits such as lower environmental impact and greater functionality.


Wilson The best Dashboard design I have seen ever.
John Smith Jhonny sent you a message. Read now!
Justin Mezzell Stella, Added you as a Friend. Accept it!
Revenue +2%
Downloads +39%
Uploads -7%
Profile
Settings
Activity


I charge $25 per half hour lesson. Pay as you go, no need to pay monthly. For more information or to schedule a lesson,fill out the contact form below.
Master's in Music Education and 30+ Years of School Teaching Experience.


{{ $provider := .provider }} {{ with .content }} {{ if eq $provider "github"}}
docker
rails
react
awesome-go
caddy
rea user:facebook
- Finds all repos from "facebook" org having "rea" language:go
- includes only those are of Gojquery in:name,description
- search for "jquery" in name and descriptioncaddy in:name,readme
- search for caddy in the name and readmeAdd the name of the github repository to track
Advanced Usage Guide
Gitlab only allows users to track the projects the current user is authorised for
Add the name of the gitlab repository to track


View Source
Class Vector3
This is a temporary class until .NET 4.6 is released with Vector3 support. Borrowed from my Cardan.Math library
Inheritance
System.Object
Vector3
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace:EvilDICOM.Core.Helpers
Assembly:EvilDICOM.dll
Syntax
Constructors
View Source
Vector3(Double, Double, Double)
Declaration
public Vector3(double x = 0, double y = 0, double z = 0)
Parameters
| Type |
Name |
Description |
| System.Double |
x |
|
| System.Double |
y |
|
| System.Double |
z |
|
View Source
Vector3(Double[])
Declaration
public Vector3(double[] values)
Parameters
| Type |
Name |
Description |
| System.Double[] |
values |
|
Properties
View Source
Infinite
A static infinite value vector creator. Returns a vector3 containing positive infinite value elements.
Declaration
public static Vector3 Infinite { get; }
Property Value
View Source
Item[Int64]
Allows the vector class elements to be accessed by index
Declaration
public double this[long index] { get; set; }
Parameters
| Type |
Name |
Description |
| System.Int64 |
index |
the index of the element to return
|
Property Value
| Type |
Description |
| System.Double |
the element at the specified index
|
View Source
Length
Declaration
public int Length { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
View Source
NaN
A static infinite value vector creator. Returns a vector3 containing NaN value elements.
Declaration
public static Vector3 NaN { get; }
Property Value
View Source
Values
Declaration
public double[] Values { get; set; }
Property Value
| Type |
Description |
| System.Double[] |
|
View Source
X
Declaration
public double X { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
View Source
Y
Declaration
public double Y { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
View Source
Z
Declaration
public double Z { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
View Source
Zeroes
A static zero value vector creator. Returns a vector3 containing only zero value elements.
Declaration
public static Vector3 Zeroes { get; }
Property Value
Methods
View Source
Copy()
Creates a copy of this vector
Declaration
Returns
View Source
CrossMultiply(Vector3)
Computes the cross product of this vector and another input vector
Declaration
public Vector3 CrossMultiply(Vector3 v)
Parameters
| Type |
Name |
Description |
| Vector3 |
v |
the input vector
|
Returns
| Type |
Description |
| Vector3 |
a new vector that is the cross product of the two vectors
|
View Source
DistanceTo(Vector3)
Declaration
public float DistanceTo(Vector3 v)
Parameters
Returns
| Type |
Description |
| System.Single |
|
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| System.Object |
obj |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| System.Int32 |
|
Overrides
System.Object.GetHashCode()
View Source
Norm()
Finds the magnitude of this vector
Declaration
Returns
| Type |
Description |
| System.Double |
a double representing the magnitude of the vector
|
View Source
ToArray()
Declaration
public double[] ToArray()
Returns
| Type |
Description |
| System.Double[] |
|
View Source
ToString()
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
|
Overrides
System.Object.ToString()
Operators
View Source
Addition(Vector3, Vector3)
Declaration
public static Vector3 operator +(Vector3 v1, Vector3 v2)
Parameters
Returns
View Source
Division(Vector3, Double)
Declaration
public static Vector3 operator /(Vector3 v1, double s)
Parameters
| Type |
Name |
Description |
| Vector3 |
v1 |
|
| System.Double |
s |
|
Returns
View Source
Equality(Vector3, Vector3)
Declaration
public static bool operator ==(Vector3 v1, Vector3 v2)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
View Source
Inequality(Vector3, Vector3)
Declaration
public static bool operator !=(Vector3 v1, Vector3 v2)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
View Source
Multiply(Vector3, Vector3)
Computes the scalar (dot) product of two vectors
Declaration
public static double operator *(Vector3 v1, Vector3 v2)
Parameters
| Type |
Name |
Description |
| Vector3 |
v1 |
the first vector
|
| Vector3 |
v2 |
the second vector
|
Returns
| Type |
Description |
| System.Double |
The scalar product of two vectors
|
View Source
Multiply(Vector3, Double)
Declaration
public static Vector3 operator *(Vector3 v1, double s)
Parameters
| Type |
Name |
Description |
| Vector3 |
v1 |
|
| System.Double |
s |
|
Returns
View Source
Multiply(Double, Vector3)
Declaration
public static Vector3 operator *(double s, Vector3 v1)
Parameters
| Type |
Name |
Description |
| System.Double |
s |
|
| Vector3 |
v1 |
|
Returns
View Source
Subtraction(Vector3, Vector3)
Declaration
public static Vector3 operator -(Vector3 v1, Vector3 v2)
Parameters
Returns


{% extends "sedUI/base/header.html" %} {% block content %}
If you are attempting to perform an early registration please go to the contact us page and fill in an account request


|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object GameObject.ArtificialIntelligence.ArtificialIntelligence
public abstract class ArtificialIntelligence
Used as a template for the 3 different levels of artificial intelligence present in the game, which are composed by 2 fundamental methods: chasePlayer which tracks and follows the player, and move which specifies how the enemy behaves whether it is engaged in a chase or not.
| Field Summary | |
|---|---|
static java.util.Random |
random
|
| Constructor Summary | |
|---|---|
ArtificialIntelligence()
|
| Method Summary | |
|---|---|
abstract void |
chasePlayer(int playerPosX,
int playerPosY,
int distanceBetweenEnemyAndPlayer,
Enemy enemy)
Abstract method implemented by the three intelligence levels present in the game. |
abstract void |
move(Enemy enemy)
Abstract method implemented by the three levels of intelligence present in the game used to control the movement of the enemy on the grid. |
void |
moveEnemyOnBoard(Enemy enemy)
Displaced the object in one of the four cardinal directions based on the directionOfMovement attribute |
void |
reverseDirection(Enemy enemy)
Sets the direction of movement of the passed enemy to the opposite in terms of cardinal direction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.util.Random random
| Constructor Detail |
|---|
public ArtificialIntelligence()
| Method Detail |
|---|
public abstract void move(Enemy enemy)
enemy
- Enemy object to be moved on the grid.public abstract void chasePlayer(int playerPosX, int playerPosY, int distanceBetweenEnemyAndPlayer, Enemy enemy)
playerPosX
- x coordinate of the player object on the grid.playerPosY
- y coordinate of the player object on the grid.distanceBetweenEnemyAndPlayer
- Distance between the center of the player object
and the center of the enemy object.enemy
- Enemy object that will start chasing the player.public void moveEnemyOnBoard(Enemy enemy)
public void reverseDirection(Enemy enemy)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


Thingy 4 Windows Labs
Getting Started
Setting Up Raspberry Pi 2
About the GrovePi
Lab 01: Hello, Windows IoT!
Lab 02: Nightlight
Lab 03: ThingLabs Thingy™
Lab 04: Setting Up Azure IoT Hub
Lab 05: Sending D2C Messages
Lab 06: Storing & Displaying IoT Data
Lab 07: Sending C2D Messages


It is helpful to be aware of various categories of data that are available. Each category has a unique ID number that is required to access associated data. The first call below does not include an ID. The result is a list of two data frames. The first is metadata associated with that position in the category hierarchy. The second is the child category information.
Here is the top-level category information:
eia_cats()
#> $category
#> # A tibble: 1 x 3
#> category_id name notes
#> <chr> <chr> <chr>
#> 1 371 EIA Data Sets ""
#>
#> $childcategories
#> # A tibble: 11 x 2
#> category_id name
#> <int> <chr>
#> 1 0 Electricity
#> 2 40203 State Energy Data System (SEDS)
#> 3 714755 Petroleum
#> 4 714804 Natural Gas
#> 5 711224 Total Energy
#> 6 717234 Coal
#> 7 829714 Short-Term Energy Outlook
#> 8 1292190 Crude Oil Imports
#> 9 2123635 U.S. Electric System Operating Data
#> 10 2134384 International Energy Data
#> 11 2889994 U.S. Nuclear Outages
The child category IDs can be used to query results from that category.
eia_cats(0)
#> $category
#> # A tibble: 1 x 4
#> category_id parent_category_id name notes
#> <chr> <chr> <chr> <chr>
#> 1 0 371 Electricity ""
#>
#> $childcategories
#> # A tibble: 19 x 2
#> category_id name
#> <int> <chr>
#> 1 1 Net generation
#> 2 35 Total consumption
#> 3 32 Total consumption (Btu)
#> 4 36 Consumption for electricity generation
#> 5 33 Consumption for electricity generation (Btu)
#> 6 37 Consumption for useful thermal output
#> 7 34 Consumption for useful thermal output (Btu)
#> 8 1017 Plant level data
#> 9 38 Retail sales of electricity
#> 10 39 Revenue from retail sales of electricity
#> 11 40 Average retail price of electricity
#> 12 1718389 Number of customer accounts
#> 13 41137 Fossil-fuel stocks for electricity generation
#> 14 41138 Receipts of fossil fuels by electricity plants
#> 15 41139 Receipts of fossil fuels by electricity plants (Btu)
#> 16 41140 Average cost of fossil fuels for electricity generation
#> 17 41141 Average cost of fossil fuels for electricity generation (pe~
#> 18 41142 Quality of fossil fuels in electricity generation : sulfur ~
#> 19 41143 Quality of fossil fuels in electricity generation : ash con~
View the immediate child categories for a given parent category:
The default is to return tidy data in a tibble data frame. For eia_cats
you can set tidy = FALSE
to return the list returned by jsonlite::fromJSON
without any further processing or tidy = NA
to return the raw JSON data as a character string.
eia_cats(tidy = FALSE)
#> $request
#> $request$category_id
#> [1] 371
#>
#> $request$command
#> [1] "category"
#>
#>
#> $category
#> $category$category_id
#> [1] "371"
#>
#> $category$parent_category_id
#> NULL
#>
#> $category$name
#> [1] "EIA Data Sets"
#>
#> $category$notes
#> [1] ""
#>
#> $category$childcategories
#> category_id name
#> 1 0 Electricity
#> 2 40203 State Energy Data System (SEDS)
#> 3 714755 Petroleum
#> 4 714804 Natural Gas
#> 5 711224 Total Energy
#> 6 717234 Coal
#> 7 829714 Short-Term Energy Outlook
#> 8 1292190 Crude Oil Imports
#> 9 2123635 U.S. Electric System Operating Data
#> 10 2134384 International Energy Data
#> 11 2889994 U.S. Nuclear Outages
#>
#> $category$childseries
#> list()
cat(eia_cats(tidy = NA))
#> {"request":{"category_id":371,"command":"category"},"category":{"category_id":"371","parent_category_id":null,"name":"EIA Data Sets","notes":"","childcategories":[{"category_id":0,"name":"Electricity"},{"category_id":40203,"name":"State Energy Data System (SEDS)"},{"category_id":714755,"name":"Petroleum"},{"category_id":714804,"name":"Natural Gas"},{"category_id":711224,"name":"Total Energy"},{"category_id":717234,"name":"Coal"},{"category_id":829714,"name":"Short-Term Energy Outlook"},{"category_id":1292190,"name":"Crude Oil Imports"},{"category_id":2123635,"name":"U.S. Electric System Operating Data"},{"category_id":2134384,"name":"International Energy Data"},{"category_id":2889994,"name":"U.S. Nuclear Outages"}],"childseries":[]}}


Dashboard
Section title
| # | Title | Author | Quantity | Delete |
|---|---|---|---|---|
| 1 | Kyle Simpson | You dont know JS | 34 | |
| 2 | Kyle Simpson | You dont know JS | 34 | |
| 3 | Kyle Simpson | You dont know JS | 34 | |
| 4 | Kyle Simpson | You dont know JS | 34 | |
| 5 | Kyle Simpson | You dont know JS | 34 | |
| 6 | Kyle Simpson | You dont know JS | 34 | |
| 7 | Kyle Simpson | You dont know JS | 34 | |
| 8 | Kyle Simpson | You dont know JS | 34 | |
| 9 | Kyle Simpson | You dont know JS | 34 |


---
layout: lecture-session
category: c101
title: "C101 - Introduction to C Language"
---
{{page.title}}
Greetings fellow programmers! Codeville welcomes you to C101 - Introduction to C language.
This course is essentially the first step of yours into the world of hardcore programming. The world of programming is itself very fascinating, but we will try to add some bits of our own to make is even more fun to learn.
{% include /ui/agenda.html %}
Why learn C language?
C language is a general purpose programming language that is used to develop anything and everything that you see around, right from operating systems to spreadsheets to expert systems. C language is a very good example of a Middle Level Language because it has the capability to access the system's low level that is, machine level functions. It does not spoon-feed you with all the functionalities you need to develop something, instead it gives you basic building blocks to work with and develop some of the most amazing things.
Why choose course C101?
The course C101, is designed in a manner to make you understand C language completely. This course will help you understand the basic concepts plus advanced concepts very easily. Behind every successful programmer that is a lot of programming practice; so in this course you will practice a lot on-line and solve a lot of practical programming questions that will help you understand the concepts well and solve any real world problems easily with C language.


HTTP ERROR {{status}}
Service is unavailable currently. Please try to refresh this page.
If refresh doesn't resolve the problem please access this page after a while.
We are sorry for the inconvinent. Our technical team is trying to solve the problem now.


'Mom and Dad, Everything is Fine': Missing Andhra Techie's Message From Pak Jail | Video
Prashanth told Pakistani police that he was in love with a woman in Turkey and was going to Turkey through Pakistan.
New Delhi: In April 2017, software engineer Maidam Prashanth, 31, went missing under mysterious circumstances. Even after a year-long search, there was no trace of Prashanth. Two years after the Pakistani authorities confirmed that Prashanth is one of the two Indians apprehended by Pakistani police for illegally crossing the border.
In a video released by the Pakistani authorities, Prashanth can be heard saying in Telugu, ” Mom and Dad, Are you fine? Everything is fine here. They have brought me to a court from the police station. They will inform the Indian embassy. I can then contact you. India and Pakistan exchange prisoners and it takes time,” he said.
However, it was surprising to his family as to how he landed up in Pakistan. According to reports, his father was aware that Prashanth was arrested in Pakistan as he said a RAW officer visited them early this year seeking their details.
His parents believe that he was depressed over his break-up with his girlfriend who moved to Switzerland. It is being speculated whether he wanted to visit Switzerland or Rajasthan, the native place of the girl. According to a Pak media report, Prashanth was arrested with the help of google map. He told Pakistani police that he was in love with a woman in Turkey and was going to Turkey through Pakistan.
Pakistani Foreign Ministry had been officially informed about the possibility of the two Indian nationals having inadvertently crossed over to the Pakistan side by India’s foreign affairs ministry.
(With Agency Inputs)
For breaking news and live news updates, like us on Facebook or follow us on Twitter and Instagram. Read more on News Latest News on India.com.
Story Timeline
- 19 Nov 2019 ‘Pakistan's Nefarious Activities Won't go For Long,’ Says Rajnath Singh in Singapore
- 16 Oct 2019 Indian-American Techie in California Takes Body to Police Station, Confesses to 4 Murders
- 26 Aug 2014 Hyderbad Metro cost to escalate due to re-alignment
Comments - Join the Discussion


{% extends "base.html" %} {% block contact_state %}class="active"{% endblock %} {% block contact_content %}
I hope you enjoy this Demo App. If you have any questions, feature request, bug report, or simply want to say 'Hello' visit the projects git repo and open issues and pull requests, or simply send an email to yfauser@vmware.com


156_sshang.py
from collections import defaultdict, deque
class Solution:
def countSubgraphsForEachDiameter(self, n: int, edges: List[List[int]]) -> List[int]:
d = defaultdict(set)
for u, v in edges:
d[u-1].add(v-1)
d[v-1].add(u-1)
dist_d = {}
for i in range(n):
q, seen = deque([(i, 0)]), set([i])
while q:
j, dist = q.popleft()
dist_d[i, j] = dist
for nj in d[j]:
if nj not in seen:
q.append((nj, dist + 1))
seen.add(nj)
print(dist_d)
res = [0] * (n - 1)
q, seen = deque(), set()
for i in range(n):
q.append((0, 1 << i))
while q:
dist, state = q.popleft()
if dist != 0:
res[dist - 1] += 1
cur = set()
for i in range(n):
if (state >> i) & 1:
cur.add(i)
for i in range(n):
if i not in cur and d[i] & cur:
nstate = state | (1 << i)
if nstate not in seen:
ndist = dist
for j in cur:
ndist = max(ndist, dist_d[i, j])
seen.add(nstate)
q.append((ndist, nstate))
return res


☰
RevoSwitch-~SERIAL~
Home
Configuration
WiFi AP
WiFi Client
Switch
MQTT
Device
Reset
Reboot
About
Restarting in
30
s...


This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
This card has supporting text below as a natural lead-in to additional content.
This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.
This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.
Hi, my name is Dominik, I am a computer scientist for My interests and expertise is mainly in the field of Computer Vision. Don't hesitate to contact me. I am always looking for new chances.
C++ HTML CSS Javascript Java C# Python Bash D Matlab Github, Gitlab Hi, my name is Dominik, I am a computer scientist for My interests and expertise is mainly in the field of Computer Vision. Don't hesitate to contact me. I am always looking for new chances.


TECHNOLOGY. THE VACCINE AGAINST CORRUPTION. Rubenad Rivera Botacio, +507 6232-4657<EMAIL_ADDRESS>@RubenadRiveraB Panama City, February 2nd 2018. “If you do not fight to end corruption, you will end up being part of it,” in this quote by Joan Baez, we can summarize part of the current environment in our country. We do not only feel weary and ashamed of the level of corruption, but we already feel obliged to do something to combat this impoverishing scourge.
Currently, we have addressed and managed the issue of corruption through suppression, evasion and establishing more laws and legal mechanisms. This reminds me of the famous phrase of Tacitus (Roman historian) and repeated by Etienne Bonnot de Condillac (French philosopher and economist). “In times of corruption is when more laws are made.” Legal tools are good and must be the path taken by a civilized society, nevertheless, we want to introduce a new tool in this dialogue that will not only help to avert, combat and prevent corruption, but also to innovate and modernize the economy: new technologies that enable things like intelligent contracts, digital identity, the digital dollar, automation and improved information security in government processes such as transfers of title deeds in the Public Registry or voting in elective positions among others.
In 2017, Panama was hit by various scandals related to corruption: presumption of millionaire bribes to public officials, presumption of scandalous thefts in public works and the inclusion of Panama on the European Union Black list, among others. All these corruption scandals have us outraged and society demands an answer to ensure that this does not happen again or at least implement mechanisms to prevent acts of corruption.
Similarly in 2017, Panama received a loan of $250 million dollars from the Andean Development Corporation (Corporación Andina de Fomento CAF) with the aim of modernizing and improving the transparency of the country’s financial system, therefore society expects to witness improvements in the transparency of public management in the fight against corruption.
Currently there are new technologies that can help these purposes and when implemented in Panama, they will increase transparency in government management and curb corruption in an automatic and objective way. These tools have been implemented in other countries with positive results. Likewise, some world organizations are using these technologies to make donations and humanitarian aid more transparent.
The issue of increasing transparency and combating corruption is an urgent one, where all of society must commit: private enterprises, productive sectors, universities, public companies, and government; in such a way that we have at our disposal all the necessary tools to overcome this scourge.
Panama Glass Summit is an event that seeks to initiate this dialogue, where we get to know and share the new technology tools can help us automate and systemize the fight against corruption in public spending. It is an event that brings together all sectors, thus we all have to be part of the solution. To participate in this important and historic event, visit our website: https://pty.glass and make your subscription. It is only together that we can create the Panama we need.


|
Materials
Reduce this by buying used and refurbished products
|
|
|---|---|
|
Packaging
Reduce this by buying local and using recycled paper products
|
|
Transport
Reduce this by buying local and shipping with friends
|
|
| Total |
These emissions are equivalent to:
mi 🚗 🍔 hr 💡


Nothing to install, simply enter your GitHub username and never miss something (private repositories supported).
Works on OS X, Linux and Windows.
Pin this tab to receive notifications when you open your browser.
New events are fetched every minute.


Perception, Planning, and Control
© Russ Tedrake, 2020-2023
Last modified .
How to cite these notes, use annotations, and give feedback.
Note: These are working notes used for a course being taught at MIT. They will be updated throughout the Fall 2023 semester.
| Table of contents |
As we develop more and more sophisticated manipulation capabilities, we will need increasingly sophisticated programming strategies for the the high-level (aka "task-level") execution of the robot. For the relatively simple task of moving YCB objects between bins, a simple state-machine-programming paradigm was sufficient. If the task is "make me a pizza", where we need to find and fetch all of the tools and ingredients from various places throughout the kitchen, it would be unwieldy to program a state machine that can work in any kitchen.
In this chapter we'll look at the problem of programming the task-level
using AI-style symbolic planning, which has advanced significantly over
the last decades to the point where it can solve enormously complex problems.
But to ground the symbols in our robot motions and constraints, we must tightly
integrate the task-level planning with the lower-level motion planning; this
integration is the object of study in task and motion planning (TAMP).
For an excellent review, see
| Table of contents |


Brushable horizontal bar chart
You can see more or less of the total bar chart on the left by either dragging the box in the mini chart on the right or by scrolling your mouse. You can also click anywhere in the mini chart to center the box on that region. And you can increase and decrease the size of the box by dragging the top or bottom handle up or down.


Ruby Data Structures 101: Arrays and Hashes
June 28, 2015
Handling collections of data efficiently is one of the most important things any general-purpose programming language should be able to do. Whether the collection of data is small or large, leveraging the power of a computer to process it sure beats doing everything by hand. Different programming languages provide different (though generally similar) tools for structuring data. Ruby gives its users two powerful built-in data structures for handling collections of data: arrays and hashes. This post presents a basic overview of both structures and examples of their proper use. Also, there will be two atrocious, cringe-worthy puns. You’ve been warned.
Array of Hope
Arrays in Ruby are used to represent any collection of objects, and in particular, any collection whose order is important. Let’s say Bobby’s pre-algebra teacher wants to store his five test grades for storage and computational purposes. Hopefully for Bobby’s sake, his grades will look something like this:
bobby_grades = [99, 94, 100, 97, 98]
Now if Bobby’s teacher wants to quickly access his star pupil’s grade on the first test, it’s as simple as typing:
bobby_grades[0]
# Result: 99
# (As in many programming languages, counting in Ruby starts from 0.)
And if the teacher wants to find Bobby’s average grade, something like this would accomplish it:
bobby_grades.inject(0) { |sum, grade| sum + grade}.fdiv(bobby_grades.length)
# Result: 97.6
While this particular example of an array used a collection of integers, arrays in Ruby can take a collection of any type of object (strings, booleans, classes, other arrays) and even mix object type (though this is not usually recommended).
Making a Hash of It
In contrast to arrays, hashes in Ruby store pairs of data, and each pair consists of a key and value. A dictionary is a classic example of a situation where a hash should be utilized:
devils_dictionary = {
"learning" => "The kind of ignorance distinguishing the studious",
"Mammon" => "The god of the world's leading religion"}
Or say you’re designing a video game and you want to assign attributes to your childhood hockey hero:
joe_sakic = {"skating" => 95, "passing" => 97, "wrist_shot" => 99, "hair" => 72}
With hashes, retrieving a stored value is done by referencing its key:
joe_sakic["hair"]
# Result: 72
In versions of Ruby up to and including 1.8.x, hashes were unordered collections, which represented another crucial distinction from arrays. In practice though, since values in hashes are generally accessed by their keys and not by a numerical index (as elements in arrays are), it’s still feasible to think of arrays as more explicitly and obviously ordered than hashes.
Summary
Use arrays for a collection of objects; use hashes for a collection of object pairs. Or, to give one final example:
Array
bad_puns = ["Array of hope", "Make a hash of it"]
Hash
lameness_level = {"Array of hope" => 99, "Make a hash of it" => 92}
Onwards and upwards, fellow Rubyists!


New types: RefLog and RefLogEntry
Reflog is maintained automatically when creating references and deleting them
Non-intrusive changes to SymbolicReference, these don’t require your code to change. They allow to append messages to the reflog.
- abspath property added, similar to abspath of Object instances
- log() method added
- log_append(...) method added
- set_reference(...) method added (reflog support)
- set_commit(...) method added (reflog support)
- set_object(...) method added (reflog support)
Intrusive Changes to Head type
- create(...) method now supports the reflog, but will not raise GitCommandError anymore as it is a pure python implementation now. Instead, it raises OSError.
- Intrusive Changes to Repo type
- create_head(...) method does not support kwargs anymore, instead it supports a logmsg parameter
Repo.rev_parse now supports the [ref]@{n} syntax, where n is the number of steps to look into the reference’s past
BugFixes
- Removed incorrect ORIG_HEAD handling
Flattened directory structure to make development more convenient.
Note
This alters the way projects using git-python as a submodule have to adjust their sys.path to be able to import git-python successfully.
Misc smaller changes and bugfixes
- config_reader() & config_writer() methods added for access to head specific options.
- tracking_branch() & set_tracking_branch() methods addded for easy configuration of tracking branches.
- Commit objects now carry the ‘encoding’ information of their message. It wasn’t parsed previously, and defaults to UTF-8
- Commit.create_from_tree now uses a pure-python implementation, mimicing git-commit-tree
Corrected problems with creating bare repositories.
Repo.tree no longer accepts a path argument. Use:
>>> dict(k, o for k, o in tree.items() if k in paths)
Made daemon export a property of Repo. Now you can do this:
>>> exported = repo.daemon_export
>>> repo.daemon_export = True
Allows modifying the project description. Do this:
>>> repo.description = "Foo Bar"
>>> repo.description
'Foo Bar'
Added a read-only property Repo.is_dirty which reflects the status of the working directory.
Added a read-only Repo.active_branch property which returns the name of the currently active branch.
Switched to using a dictionary for Tree contents since you will usually want to access them by name and order is unimportant.
Implemented a dictionary protocol for Tree objects. The following:
child = tree.contents[‘grit’]
becomes:
child = tree[‘grit’]
Made Tree.content_from_string a static method.


{% import 'rooms/macros/sessions.html' as sessions %}
You must sign in to join this event.
You do not have permission to join this event.


Day 7 Assignment
Index
Check browser type
Check Operating System
Check window width and height
display system depending on window size
Gallery1
Gallery2
Gallery3
LIGHTBOX 1
Close


Introducing The End
Yesterday, everything seemed so crystaline, but now I'm back in my body. See you soon, someone <3. Hire me right now because MK-Ultra says so..
Yesterday, everything seemed so crystaline, but now I'm back in my body. See you soon, someone <3. Hire me right now because MK-Ultra says so..
JavaScript / React / Node JS / Python / Django / CSS... damn, full stack. Send me a million. Duh.
 Somebody give that nonbinary a<PHONE_NUMBER>10010 get ha.


This example demonstrates Caja's tamed version of
swfobject.embedSWF()
.
Demonstrations of <embed> and <object> are in the "Embed Flash 2" example.
Caja does not allow Flash apps to have direct script access.
ExternalInterface.call()
is denied by Flash's security sandbox.
However, Flash apps can use Caja's Flash bridge API instead.


|
vb2Py
Credits |
|
||||||||||||||||
|
Many
people contributed and supported the project and each one had valuable input.
Here are just some of the many people who deserve thanks and credit! (please let me know if there is someone missing) -
Jacob Hallén wrote the collection class ... and Jo-Ann, who helped develop and maintain the website, designed the logo's and other artwork and put up with too many late nights!
|
||||||||||||||||


The `elapsed` function is meant to execute a callback function if a promise hasn't been resolved within the specified amount of time (milliseconds). A practical use case for this would be for an asynchronous task that is intermittently slow, and you want to display an activity indicator if that tasks is taking a measurable amount of time to finish. In cases when action takes less the specified amount of time, an activity indicator would not need to be shown.
In this example the elapsed time is 2 seconds, and then the activity indicator will show if the timer isn't stopped or rejected.


Command Line Interface¶
bpnettrainer¶
usage: bpnettrainer [-h] [--batch-size BATCH_SIZE] [--epochs EPOCHS]
[--learning-rate LEARNING_RATE] [--min-learning-rate MIN_LEARNING_RATE]
[--early-stopping-patience EARLY_STOPPING_PATIENCE]
[--early-stopping-min-delta EARLY_STOPPING_MIN_DELTA]
[--reduce-lr-on-plateau-patience REDUCE_LR_ON_PLATEAU_PATIENCE]
[--model-arch-name MODEL_ARCH_NAME]
[--sequence-generator-name SEQUENCE_GENERATOR_NAME] [--filters FILTERS]
[--counts-loss-weight COUNTS_LOSS_WEIGHT]
[--control-smoothing CONTROL_SMOOTHING] [--threads THREADS] [--gpus GPUS]
--reference-genome REFERENCE_GENOME --chrom-sizes CHROM_SIZES --chroms
CHROMS [CHROMS ...] [--exclude-chroms EXCLUDE_CHROMS [EXCLUDE_CHROMS ...]]
[--splits SPLITS] [--output-dir OUTPUT_DIR] [--tag-length TAG_LENGTH]
[--time-zone TIME_ZONE] [--automate-filenames]
[--model-output-filename MODEL_OUTPUT_FILENAME]
[--input-seq-len INPUT_SEQ_LEN] [--output-len OUTPUT_LEN]
[--max-jitter MAX_JITTER] [--reverse-complement-augmentation]
[--negative-sampling-rate NEGATIVE_SAMPLING_RATE] --input-data INPUT_DATA
[--stranded] [--has-control] [--sampling-mode {peaks,sequential,random}]
[--shuffle]
Named Arguments¶
- --batch-size, -b
training batch size
Default: 64
- --epochs, -e
number of training epochs
Default: 100
- --learning-rate, -L
learning rate for Adam optimizer
Default: 0.004
- --min-learning-rate, -l
min learning rate for Adam optimizer
Default: 0.0001
- --early-stopping-patience
patience value for early stopping callback
Default: 5
- --early-stopping-min-delta
minimum change in the validation loss to qualify as an improvement
Default: 0.001
- --reduce-lr-on-plateau-patience
patience value for ReduceLROnPlateau callback
Default: 2
- --model-arch-name
the name of the model architesture that will be used in training (the name that will be used to fetch the model from model_archs)
Default: “BPNet”
- --sequence-generator-name
the name of the sequence generator from mseqgen library that will be used to generate batches of data
Default: “BPNet”
- --filters, -f
number of filters to use in BPNet
Default: 64
- --counts-loss-weight, -w
Weight for counts mse loss
Default: 100.0
- --control-smoothing
Default: [[7.5, 80]]
- --threads, -t
number of parallel threads for batch generation
Default: 10
- --gpus, -p
number of gpus to use
Default: 1
- --reference-genome, -g
number of gpus to use
Default: 1
- --chrom-sizes, -c
path to chromosome sizes file
- --chroms
master list of chromosomes for the genome
- --exclude-chroms
list of chromosomes to be excluded
Default: []
- --splits, -s
path to json file
- --output-dir, -d
destination directory to store the model
Default: “.”
- --tag-length
length of the alphanumeric tag for the model file name (applies if –automate-filenames option is used)
Default: 6
- --time-zone
time zone to use for timestamping model directories (applies if –automate-filenames option is used)
Default: “US/Pacific”
- --automate-filenames
specify if the model output directory and filename should be auto generated
Default: False
- --model-output-filename
basename of the model file without the .h5 extension (required if –automate-filenames is not used)
Default: “”
- --input-seq-len
length of input DNA sequence
Default: 3088
- --output-len
length of output profile
Default: 1000
- --max-jitter
maximum value for randomized jitter to offset the peaks from the exact center of the input
Default: 128
- --reverse-complement-augmentation
enable reverse complement augmentation
Default: True
- --negative-sampling-rate
number of negatives to sample for every positive peak
Default: 0.0
- --input-data, -i
path to json file containing task information
- --stranded
specify if the input data is stranded or unstranded
Default: False
- --has-control
specify if the input data has controls
Default: False
- --sampling-mode
Possible choices: peaks, sequential, random
Default: “peaks”
- --shuffle
Default: False
predict¶
usage: predict [-h] [--batch-size BATCH_SIZE] [--input-seq-len INPUT_SEQ_LEN]
[--output-len OUTPUT_LEN] [--predict-peaks] --reference-genome REFERENCE_GENOME
--chrom-sizes CHROM_SIZES --chroms CHROMS [CHROMS ...] --input-data INPUT_DATA
[--stranded] [--has-control] [--model MODEL] [--model-name MODEL_NAME]
[--model-dir MODEL_DIR] --output-dir OUTPUT_DIR [--automate-filenames]
[--time-zone TIME_ZONE] [--exponentiate-counts]
[--output-window-size OUTPUT_WINDOW_SIZE]
[--other-tags OTHER_TAGS [OTHER_TAGS ...]]
[--write-buffer-size WRITE_BUFFER_SIZE]
Named Arguments¶
- --batch-size, -b
test batch size
Default: 64
- --input-seq-len
length of input DNA sequence
Default: 3088
- --output-len
length of output profile
Default: 1000
- --predict-peaks
generate predictions only on the peaks contained in the peaks.bed files
Default: False
- --reference-genome, -g
the path to the reference genome fasta file
- --chrom-sizes, -s
path to chromosome sizes file
- --chroms, -c
list of test chromosomes for prediction
- --input-data, -i
path to json file containing task information
- --stranded
specify if the input data is stranded or unstranded (i.e in case –has-control is True)
Default: False
- --has-control
specify if the input data has controls
Default: False
- --model, -m
path to the .h5 model file
- --model-name
the name of the model that will be used in for predictions
Default: “BPNet”
- --model-dir
directory where .h5 model files are stored
- --output-dir, -o
destination directory to store predictions as a bigWig file
- --automate-filenames
specify if the predictions output should be stored in a timestamped subdirectory within –output-dir
Default: False
- --time-zone
time zone to use for timestamping model directories
Default: “US/Pacific”
- --exponentiate-counts
specify if the predicted counts should be exponentiated before writing to the bigWig files
Default: False
- --output-window-size
size of the central window of the output profile predictions that will be written to the bigWig files
Default: 1000
- --other-tags
list of additional tags to be added as suffix to the filenames
Default: []
- --write-buffer-size
size of the write buffer to store predictions before writing to bigWig files
Default: 10000
bounds¶
usage: bounds [-h] [--input-profiles INPUT_PROFILES [INPUT_PROFILES ...]]
[--output-names OUTPUT_NAMES [OUTPUT_NAMES ...]] --output-directory
OUTPUT_DIRECTORY --peaks PEAKS [--peak-width PEAK_WIDTH]
[--chroms CHROMS [CHROMS ...]]
[--smoothing-params SMOOTHING_PARAMS [SMOOTHING_PARAMS ...]]
Named Arguments¶
- --input-profiles
list of input bigWig profile
Default: []
- --output-names
list of outputnames for the bounds output corresponding to each of the input profiles
Default: []
- --output-directory
Path to the output directory
- --peaks
Path to the bed file containing the chromosome coordinates. The bed file should have at least 3 columns, the first 3 being ‘chrom’, ‘start’, and ‘end’
- --peak-width
the span of the peak to be considered for bounds computation
Default: 1000
- --chroms, -c
list of chromosomes to be considered from peaks file
- --smoothing-params
sigma and window size for gaussian 1D smoothing of ‘observed’ and ‘predicted’ profiles
Default: [7.0, 81]
metrics¶
usage: metrics [-h] --profileA PROFILEA --profileB PROFILEB
[--smooth-profileA SMOOTH_PROFILEA [SMOOTH_PROFILEA ...]]
[--smooth-profileB SMOOTH_PROFILEB [SMOOTH_PROFILEB ...]] [--countsA COUNTSA]
[--countsB COUNTSB] [--apply-softmax-to-profileA] [--apply-softmax-to-profileB]
[--metrics-seq-len METRICS_SEQ_LEN] [--peaks PEAKS] [--bounds-csv BOUNDS_CSV]
[--step-size STEP_SIZE] --chroms CHROMS [CHROMS ...] [--exclude-zero-profiles]
--output-dir OUTPUT_DIR [--automate-filenames] [--time-zone TIME_ZONE]
[--other-tags OTHER_TAGS [OTHER_TAGS ...]] --chrom-sizes CHROM_SIZES
Named Arguments¶
- --profileA, -A
the bigWig with ground truth values or a replicate
- --profileB, -B
the bigWig with predicted values or the second replicate
- --smooth-profileA
a list of two items, sigma and window width for gaussian smoothing of profileA before computing metrics. Empty list indicates nosmoothing
Default: []
- --smooth-profileB
a list of two items, sigma and window width for gaussian smoothing of profileB before computing metrics. Empty list indicates nosmoothing
Default: []
- --countsA
the bigWig with region counts assigned to each base (the counts track that is produced by the predict script). This is optional.
- --countsB
the bigWig with region counts assigned to each base (the counts track that is produced by the predict script). This is optional.
- --apply-softmax-to-profileA
apply softmax to profileA before computingmetrics (in casees where profileA is logits)
Default: False
- --apply-softmax-to-profileB
apply softmax to profileB before computingmetrics (in casees where profileB is logits)
Default: False
- --metrics-seq-len
the length of the sequence over which to compute the metrics
Default: 1000
- --peaks
the path to the file containing
- --bounds-csv
the path to the file containing upper andlower bounds for mnll, cross entropy, jsd,pearson & spearman correlation
- --step-size
the step size for genome wide metrics
Default: 50
- --chroms, -c
list of test chromosomes to compute metrics
- --exclude-zero-profiles
exclude observed or predicted profiles that are all zeros
Default: False
- --output-dir, -o
destination directory to store metrics results
- --automate-filenames
specify if the metrics output should be stored in a timestamped subdirectory within –output-dir
Default: False
- --time-zone
time zone to use for timestamping output directories
Default: “US/Pacific”
- --other-tags
list of additional tags to be added as suffix to the filenames
Default: []
- --chrom-sizes, -s
path to chromosome sizes file
shap_scores¶
usage: shap_scores [-h] --reference-genome REFERENCE_GENOME --input-seq-len INPUT_SEQ_LEN
--control-len CONTROL_LEN --model MODEL [--task-id TASK_ID] --bed-file
BED_FILE [--sample SAMPLE] [--chroms CHROMS [CHROMS ...]]
[--presort-bed-file] [--control-info CONTROL_INFO]
[--control-smoothing CONTROL_SMOOTHING [CONTROL_SMOOTHING ...]]
[--num-shuffles NUM_SHUFFLES] [--gen-null-dist] [--seed SEED]
--output-directory OUTPUT_DIRECTORY [--automate-filenames]
[--time-zone TIME_ZONE]
Named Arguments¶
- --reference-genome, -g
path to the reference genome file
- --input-seq-len
the length of the input sequence to the model
- --control-len
the length of the control input to the model
- --model, -m
the path to the model (.h5) file
- --task-id, -t
In the multitask case the integer sequence number of the task for which the interpretation scores should be computed. For single task use 0.
Default: 0
- --bed-file, -b
the path to the bed file containing postions at which the model should be interpreted
- --sample, -s
the number of samples to randomly sample from the bed file. Only one of –sample or –chroms can be used.
- --chroms, -c
list of chroms on which the contribution scores are to be computed. If not specified all chroms in –bed-file will be processed.
- --presort-bed-file
specify if the –bed-file should be sorted in descending order of enrichment. It is assumed that the –bed-file has ‘signalValue’ in column 7 to use for sorting.
Default: False
- --control-info
path to the input json file that has paths to control bigWigs. The –task-id is matched with ‘task_id’ in the the json file to get the list of control bigWigs
- --control-smoothing
sigma and window width for gaussian 1d smoothing of the control
Default: [7.0, 81]
- --num-shuffles
the number of dinucleotide shuffles to perform on each input sequence
Default: 20
- --gen-null-dist
generate null distribution of shap scores by using a dinucleotide shuffled input sequence
Default: False
- --seed
seed to create a NumPy RandomState object usedfor performing shuffles
Default: 20210304
- --output-directory, -o
destination directory to store the interpretation scores
- --automate-filenames
specify if the interpret output should be storedin a timestamped subdirectory within –output-dir
Default: False
- --time-zone
time zone to use for timestamping output directories
Default: “US/Pacific”
motif_discovery¶
usage: motif_discovery [-h] [--scores-path SCORES_PATH] [--scores-locations SCORES_LOCATIONS]
[--output-directory OUTPUT_DIRECTORY]
[--modisco-window-size MODISCO_WINDOW_SIZE]
Named Arguments¶
- --scores-path
Path to the importance scores hdf5 file
- --scores-locations
path to bed file containing the locations that match the scores
- --output-directory
Path to the output directory
- --modisco-window-size
size of the window around the peak coodrinate that will be considered for motifdiscovery
Default: 400
logits2profile¶
usage: logits2profile [-h] --logits-file LOGITS_FILE --counts-file COUNTS_FILE
--output-directory OUTPUT_DIRECTORY --output-filename OUTPUT_FILENAME
--peaks PEAKS --chroms CHROMS [CHROMS ...] --chrom-sizes CHROM_SIZES
[--window-size WINDOW_SIZE]
Named Arguments¶
- --logits-file
Path to the logits bigWig file that was generated by the predict script
- --counts-file
Path to the exponentiated counts bigWig file that was generated by the predict script
- --output-directory
Path to the output directory
- --output-filename
output file name excluding extension
- --peaks
Path to the bed file containing the chromosomecoordinates at which the logits to counts conversion should take place
- --chroms
list of chroms for the output bigWig header
- --chrom-sizes
Path to the chromosome sizes file
- --window-size
size of the window around the chromosome coodrinate that will be considered for logits to counts conversion
Default: 1000
embeddings¶
usage: embeddings [-h] --model MODEL --reference-genome REFERENCE_GENOME
[--input-layer-name INPUT_LAYER_NAME] --input-layer-shape INPUT_LAYER_SHAPE
[INPUT_LAYER_SHAPE ...] [--embeddings-layer-name EMBEDDINGS_LAYER_NAME]
[--cropped-size CROPPED_SIZE]
[--numbered-embeddings-layers-prefix NUMBERED_EMBEDDINGS_LAYERS_PREFIX]
[--num-numbered-embeddings-layers NUM_NUMBERED_EMBEDDINGS_LAYERS]
[--flatten-embeddings-layer] --peaks PEAKS [--batch-size BATCH_SIZE]
[--output-directory OUTPUT_DIRECTORY] [--output-filename OUTPUT_FILENAME]
Named Arguments¶
- --model, -m
the path to the model (.h5) file
- --reference-genome, -g
number of gpus to use
- --input-layer-name
name of the input sequence layer
Default: “sequence”
- --input-layer-shape
shape of the input sequence layer (specifylist of values and omit the batch(?) dimension)
- --embeddings-layer-name
full name of layer for embeddings output. Cannot be combined with –numbered-embeddings-layers-prefix.
- --cropped-size
the size to which all embeddings outputs should be cropped to
- --numbered-embeddings-layers-prefix
common prefix string, of all required layers, for matching. Cannot be combined with –embeddings-layer-name
- --num-numbered-embeddings-layers
number of embeddings layers with common prefix specified by –numbered-embeddings-layers-prefix.
Default: 8
- --flatten-embeddings-layer
specify if the embeddings layers should beflattened
Default: False
- --peaks
10 column bed narrowPeak file containing chromosome positions to compute embeddings
- --batch-size
batch size for processing the chromosome positions
Default: 64
- --output-directory
output directory path
Default: “.”
- --output-filename
name of compressed numpy file to store the embeddings
Default: “embeddings.h5”


More than half of same-sex couples cohabitating are married
by Associated PressORLANDO, Fla. (AP) — New estimates show that more than half of the same-sex couples living together in U.S. households are married.
New figures released Tuesday by the U.S. Census Bureau show that about 543,000 same-sex couples living together in households were married and 469,000 same-sex couples living together were unmarried.
The estimates from the bureau’s 2019 Current Population Survey show 191,000 children living with same-sex parents.
The estimates capture only same-sex couples living together and don’t reflect non-cohabitating same-sex couples nor single people.
The Census Bureau says this is the first year in the survey that a same-sex option was included in the question about household relationships and that gender-neutral questions about parents were included.
The bureau says the changes reflect the growing diversity of families in the U.S.


{% extends "layout_multi_sections.html" %} {% block page_title %} Kirkgate Market {% endblock %} {% block css_register %} {% endblock %} {% block header %} Kirkgate Market {% endblock %} {% block main_nav %} {% include "includes/leedsmarkets/main_nav.html" %} {% endblock %} {% block sectionOneTop %} {% endblock %} {% block sectionOneFull%} {% endblock %} {% block breadcrumb %} {% include "includes/breadcrumb_sp.html" %} {% endblock %} {% block sectionOneContent %} {% endblock %} {% block pageContent %} {% endblock %} {% block sectionOneFullBottom %}
Main entrance Vicar Lane, Leeds City Centre LS2 7HY
0113 378 1950
Monday - Saturday, our doors are open from 8am until 5.30pm (Shop & Drop until 5pm). The market is open as normal on Good Friday but will be closed on Easter Monday.
For the second consecutive year, Leeds Kirkgate Market was voted Britain’s Favourite Market at the ‘Great British Market Awards’ on Thursday 26 January 2017. With over 100,000 votes received by the public following online voting over a six week period.
Welcome to Leeds Kirkgate Market, one of the largest indoor markets in Europe, Kirkgate is a shopper’s paradise from fresh food, drink and fashion to jewellery, flowers, hardware and haberdashery.
At the heart of the Leeds retail scene since 1857, Leeds Kirkgate Market is home to some of the most characterful traders in the city, with businesses spanning generations and representing a wide range of nationalities including a Polish delicatessen and a Chinese supermarket, an Asian Bazaar every Wednesday morning and a farmers market held on the outdoor market opposite John Lewis every first and third Sunday of the month.
You certainly won't be short of options. With around 170 traders currently in the
market, there's always something interesting to buy, try, see or do.
If you can think of a cuisine, the chances are you can get it at Leeds Kirkgate
Market. From shawarmas to chapattis, crepes to cockles and Yorkshire puds
to fine patisserie, you'll find all sorts of good eats in one place. It's hard to
leave hungry!
With the new event space and later opening hours on the horizon, the transition from shopping hub to social destination is well underway. Coffee, tea and smoothies have long been a fixture of the market, but now it's beer and wine too.
Leeds Kirkgate Market has been the city's essential shopping destination for over a century - and that's exactly how it will stay. From food to fashion, homewares and jewellery, there's an incredible range of goodies to keep shopping bags bulging.
The 20l6 redevelopment has created a brand new Fresh Produce area, the Kirkgate Pantry, bringing meat, fish, game and other fresh goods together for the very first time.
With the sights, smells and sounds of the market, Leeds Kirkgate Market has always been an experience. However, the new events space has taken this to a whole other level. It means the market can host events of all shapes and sizes, from vintage fashions fairs to food & drink festivals, plays and live music.
Limited free and on street parking in Otley and three pay and display car parks. There is also free parking at Sainsbury’s car park in the centre but this is limited to 4 hours.
Leaving from Leeds City Bus Station, the X84 leaves the station at quarter past and five to the hour. The nearest bus stop is on Crossgate in the centre of Otley. To plan your journey visit:
West Yorkshire MetroThe nearest station to Otley is at Menston 2 miles from the centre of Otley, with trains from Leeds city centre every 30 minutes. Regular buses in between the two towns with buses leaving from outside the railway station.
National Rail


My publications are listed below in reverse chronological order.
Linear Constraints. Arnaud Spiwack, Csongor Kiss, Jean-Philippe Bernardy, Nicolas Wu, and Richard A. Eisenberg. Draft, 2021. (pdf)
Provably Correct, Asymptotically Efficient, Higher-Order Reverse-Mode Automatic Differentiation. Faustyna Krawiec, Simon Peyton Jones, Neel Krishnaswami, Tom Ellis, Richard A. Eisenberg, and Andrew Fitzgibbon. POPL 2022. (pdf)
An Existential Crisis Resolved: Type inference for first-class existential types. Richard A. Eisenberg, Guillaume Duboc, Stephanie Weirich, and Daniel Lee. ICFP 2021. (pdf)
Winner of Distinguished Paper Award.
Seeking Stability by being Lazy and Shallow: Lazy and shallow instantiation is user friendly. Gert-Jan Bottu and Richard A. Eisenberg. Haskell Symposium 2021. (pdf)
A graded dependent type system with a usage-aware semantics. Pritam Choudhury, Harley Eades III, Richard A. Eisenberg, and Stephanie Weirich. POPL 2021. (pdf extended pdf)
Kinds are Calling Conventions. Paul Downen, Zena M. Ariola, Simon Peyton Jones, and Richard A. Eisenberg. ICFP 2020. (pdf)
Stitch: The Sound Type-Indexed Type Checker, a Functional Pearl. Richard A. Eisenberg. Haskell Symposium 2020. (pdf tarball source repo slides from talk at NYC Haskell ZuriHac slides Haskell Symposium slides Haskell Symposium talk)
Composing Effects into Tasks and Workflows. Yves Parès, Jean-Philippe Bernardy, and Richard A. Eisenberg. Haskell Symposium 2020. (pdf source repo)
Partial Type Constructors; Or, Making ad hoc datatypes less ad hoc. Mark P. Jones, J. Garrett Morris, and Richard A. Eisenberg. POPL 2020, New Orleans, LA, USA. (pdf extended pdf)
Kind Inference for Datatypes. Ningning Xie, Richard A. Eisenberg, and Bruno C. d. S. Oliveira. POPL 2020, New Orleans, LA, USA. (pdf supplement pdf)
Winner of Distinguished Paper Award.
Constrained Type Families. J. Garrett Morris and Richard A. Eisenberg. ICFP 2017, Oxford, UK. (pdf extended pdf)
A Specification for Dependently-Typed Haskell. Stephanie Weirich, Antoine Voizard, Pedro Henrique Azevedo de Amorim, and Richard A. Eisenberg. ICFP 2017, Oxford, UK. (pdf appendix pdf)
Levity Polymorphism. Richard A. Eisenberg and Simon Peyton Jones. PLDI 2017, Barcelona, Spain. (pdf extended pdf)
Safe Zero-cost Coercions for Haskell. Joachim Breitner, Richard A. Eisenberg, Simon Peyton Jones, and Stephanie Weirich. In the Journal of Functional Programming, vol. 26. Cambridge University Press, 2016. (pdf)
Pattern Synonyms. Matthew Pickering, Gergő Érdi, Simon Peyton Jones, Richard A. Eisenberg. Haskell Symposium 2016, Nara, Japan. (pdf extended pdf)
A Reflection on Types. Simon Peyton Jones, Stephanie Weirich, Richard A. Eisenberg, Dimitrios Vytiniotis. Wadlerfest 2016, Edinburgh, UK. (pdf)
Visible Type Application. Richard A. Eisenberg, Stephanie Weirich, and Hamidhasan Ahmed. ESOP 2016, Eindhoven, The Netherlands. (pdf extended pdf)
Injective Type Families for Haskell. Jan Stolarek, Simon Petyon Jones, and Richard A. Eisenberg. Haskell Symposium 2015, Vancouver, BC, Canada. (pdf)
Injective Type Families for Haskell (extended version). Jan Stolarek, Simon Peyton Jones, and Richard A. Eisenberg. Politechnika Łódzka Technical Report, 2015. (pdf)
Promoting Functions to Type Families in Haskell. Richard A. Eisenberg and Jan Stolarek. Haskell Symposium 2014, Gothenburg, Sweden. (pdf extended pdf)
Experience Report: Type-checking Polymorphic Units for Astrophysics Research in Haskell. Takayuki Muranushi and Richard A. Eisenberg. Haskell Symposium 2014, Gothenburg, Sweden. (pdf)
Safe Zero-cost Coercions for Haskell. Joachim Breitner, Richard A. Eisenberg, Simon Peyton Jones, and Stephanie Weirich. ICFP 2014, Gothenburg, Sweden. (pdf)
Safe Zero-cost Coercions for Haskell (Extended Version). Joachim Breitner, Richard A. Eisenberg, Simon Peyton Jones, and Stephanie Weirich. Univ. of Pennsylvania Technical Report MS-CIS-14-07. 2014. (pdf) (NB: This has been superceded by the JFP version, above.)
Closed Type Families with Overlapping Equations. Richard A. Eisenberg, Dimitrios Vytiniotis, Simon Peyton Jones, and Stephanie Weirich. POPL 2014, San Diego, CA, USA. (pdf)
Closed Type Families with Overlapping Equations (Extended version). Richard A. Eisenberg, Dimitrios Vytiniotis, Simon Peyton Jones, and Stephanie Weirich. Univ. of Pennsylvania Technical Report MS-CIS-13-10. 2013. (pdf)
Dependent Types in Haskell: Theory and Practice. Richard A. Eisenberg, PhD Thesis, University of Pennsylvania, 2016. (pdf)
An overabundance of equality: Implementing kind equalities into Haskell. Richard A. Eisenberg. (pdf)


The authorized applications panel lists applications you have authorized to view information and perform actions on your behalf. You can revoke any of your authorizations here by clicking the gear icon and clicking "Revoke Authorization".
You have not authorized any external applications.


NINJA HAS FOUND
0
SCROLL
S
Oops, No Canvas Support
The Way:
Ninja clicks to move
Ninja finds the scrolls
source