You will need to download and install TCL/TK 8.3.x, as well as the latest BLT. Go to the unix subdirectories of TCL/TK, and then the BLT source directory, and do
configure --prefix=$HOME/usr make install
I have tested this with TCL/TK 8.3.5 and 8.4.5. Version 8.4.5 does not build on MacOS. With 8.3.5 I encountered an error during the final link stage:
ld: archive: /Users/rks/tcl8.3.5/unix/libtclstub8.3.a has no table of contents, add one with ranlib(1) (can't load from it)The solution proved to repeat the last command fired from the Makefile, replacing -ltclstub8.3 with -ltcl8.3. Alternatively, remove
~/usr/lib/libtclstub.8.3.a
and replace it with a symbolic link
to libtcl.8.3.a
. Then run make install
again.
The OSX linking system is fiendishly complex -- in the name of making things simpler, Apple have created a completely different dynamic linking system (dylib) and Framework system. All very well, but the original unix system needs to be there for compatibility also, so the resulting system is a complete mishmash.
My preferred option is to compile only static versions of the TCL/Tk libraries -- unfortunately with TCL/Tk 8.3.5, the static libraries produced a multiple symbols error, so static linking is out of the question, and one must use the dynamic linker.
Anyway enough of the rant -- if you experience a dynamic library not
found error, set the environment variable DYLD_LIBRARY_PATH
to
point to where you have stored the TCL/Tk libraries:
export DYLD_LIBRARY_PATH=$HOME/usr/lib:$DYLD_LIBRARY_PATH


UIView(IQ_UIView_Hierarchy) Category Reference
| Declared in | IQUIView+Hierarchy.h IQUIView+Hierarchy.m |
|---|
canBecomeFirstResponder
isAskingCanBecomeFirstResponder
Returns YES if IQKeyboardManager asking for canBecomeFirstResponder. Useful when doing custom work in
textFieldShouldBeginEditing:` delegate.
@property (nonatomic, readonly) BOOL isAskingCanBecomeFirstResponder
Discussion
Returns YES if IQKeyboardManager asking for canBecomeFirstResponder. Useful when doing custom work in
textFieldShouldBeginEditing:` delegate.
Declared In
IQUIView+Hierarchy.h
viewControllers
viewController
Returns the UIViewController object that manages the receiver.
@property (nullable, nonatomic, readonly, strong) UIViewController *viewController
Discussion
Returns the UIViewController object that manages the receiver.
Declared In
IQUIView+Hierarchy.h
topMostController
Returns the topMost UIViewController object in hierarchy.
@property (nullable, nonatomic, readonly, strong) UIViewController *topMostController
Discussion
Returns the topMost UIViewController object in hierarchy.
Declared In
IQUIView+Hierarchy.h
Superviews/Subviews/Siglings
– superviewOfClassType:
Returns the superView of provided class type.
- (nullable UIView *)superviewOfClassType:(nonnull Class)classType
Discussion
Returns the superView of provided class type.
Declared In
IQUIView+Hierarchy.h
responderSiblings
Returns all siblings of the receiver which canBecomeFirstResponder.
@property (nonnull, nonatomic, readonly, copy) NSArray *responderSiblings
Discussion
Returns all siblings of the receiver which canBecomeFirstResponder.
Declared In
IQUIView+Hierarchy.h
deepResponderViews
Returns all deep subViews of the receiver which canBecomeFirstResponder.
@property (nonnull, nonatomic, readonly, copy) NSArray *deepResponderViews
Discussion
Returns all deep subViews of the receiver which canBecomeFirstResponder.
Declared In
IQUIView+Hierarchy.h
Special TextFields
searchBarTextField
Returns YES if the receiver object is UISearchBarTextField, otherwise return NO.
@property (nonatomic, getter=isSearchBarTextField, readonly) BOOL searchBarTextField
Discussion
Returns YES if the receiver object is UISearchBarTextField, otherwise return NO.
Declared In
IQUIView+Hierarchy.h
alertViewTextField
Returns YES if the receiver object is UIAlertSheetTextField, otherwise return NO.
@property (nonatomic, getter=isAlertViewTextField, readonly) BOOL alertViewTextField
Discussion
Returns YES if the receiver object is UIAlertSheetTextField, otherwise return NO.
Declared In
IQUIView+Hierarchy.h
Transform
– convertTransformToView:
Returns current view transform with respect to the ‘toView’.
- (CGAffineTransform)convertTransformToView:(nullable UIView *)toView
Discussion
Returns current view transform with respect to the ‘toView’.
Declared In
IQUIView+Hierarchy.h
Hierarchy
subHierarchy
Returns a string that represent the information about it’s subview’s hierarchy. You can use this method to debug the subview’s positions.
@property (nonnull, nonatomic, readonly, copy) NSString *subHierarchy
Discussion
Returns a string that represent the information about it’s subview’s hierarchy. You can use this method to debug the subview’s positions.
Declared In
IQUIView+Hierarchy.h
superHierarchy
Returns an string that represent the information about it’s upper hierarchy. You can use this method to debug the superview’s positions.
@property (nonnull, nonatomic, readonly, copy) NSString *superHierarchy
Discussion
Returns an string that represent the information about it’s upper hierarchy. You can use this method to debug the superview’s positions.
Declared In
IQUIView+Hierarchy.h
debugHierarchy
Returns an string that represent the information about it’s frame positions. You can use this method to debug self positions.
@property (nonnull, nonatomic, readonly, copy) NSString *debugHierarchy
Discussion
Returns an string that represent the information about it’s frame positions. You can use this method to debug self positions.
Declared In
IQUIView+Hierarchy.h


26 Apr 2017
Quadrature Rule
For many PDE problems, they have some integral equation representation form too. I once mentioned whether it is good or not to put problem into integral form or not. For a lot of times, I think explicit form of something like Green's function is necessary for such a solution $$u = \int G(x, y)f(y)$$ over surface or volume.
For smooth kernel function $G(x,y)$ in both variable, satisfying mild growth of derivatives magnitude. The local Taylor expansion could give sufficient high accuracy.
For non-smooth kernel function, say piecewise defined function or globally $C^k(D)\times C^k(D)$, then it is not possible to approximate $G$ with high order polynomials. In the other word, the accuracy is limited to the discretization and its regularity.
When $G(x,y) \in C^k(D)\times C^k(D)$, we can take derivatives upto $k$-th order for each of the variables, meaning that locally we have a reminder like $O(h^{k+1})$ near the irregular part.
For instance, if our function $G(x, y) = |x-y|$ for volumetric integral, then $k=0$, and irregular part happens only at $x=y$, for uniform discretization of size $h$, the local error is at order $O(h)$. We can expect the integrated error to be $O(h^{d+1})$ provided the dimension is $d$. The convergence rate is expected to be $d+1$.
For other cases such that singularity exists, e.g. $G(x,y) = |x-y|^{-1}$, special care has to be applied to the near interactions, which is far more tricky and expensive than irregular cases. Here the usual way is to divide the integral into several parts according to the "magnitude" of steepness. For those mild change parts, smoothness is preserved; for nearby parts, the change is faster, so divide into pieces to reduce the change rate; for the singular part, coordinate transform is applied.
At the end of the day, it is all about tricks, there is no general rule for every kernel function, the precomputed quadrature has to be done for all geometries and all quadrature points. It should be also noticed that for those translation invariant kernel functions like $G(x,y) = G(|x-y|)$, the precomputation could be reused for similar (e.g. $G(\lambda t) = \lambda^{\beta} G(t)$) or the same geometries under rotations.


Photographs in the Chicago Water Walk are courtesy of Irene Miles and Gregg Woodward.
Exceptions are below:
Sanitary and Ship Canal construction cranes, Chicago History Museum, ICHi-05859
Illinois Central Railroad north of Harrison Street toward Van Buren Street Station and viaduct, Chicago History Museum, ICHi-34661
Arial view of Northerly Island and lagoon at the Century for Progress International Exposition world’s fair, Chicago History Museum, ICHi-31117
View from lake of crowds and launches at east end of Municipal Pier, Chicago History Museum, ICHi-19578
Lumber schooner on the Chicago River, Chicago History Museum, ICHi-05415
Shore of Lake Michigan from 23rd Street, Chicago History Museum, ICHi-03211
Northerly Island Park site strategy, Chicago Park District
N. Michigan Avenue Du Sable Bridge, Chicagoloopbridges.org
Jumping Asian carp, Jonathan Freedman, Illinois Natural History Survey
Zebra mussel, Michigan Sea Grant
Lake trout, Michigan Sea Grant
Michigan Avenue at Grant Park 1890, Newberry Library
Eurasian water mil-foil, Robert L. Johnson, Cornell University, Bugwood.org
Shipwreck EB Allen in upper Lake Huron, Thunder Bay National Marine Sanctuary
Diversion of Chicago waterways, United States Geological Survey
Deep Tunnel at Thornton, Metropolitan Water Reclamation District of Great Chicago
Tributary of South Branch, Metropolitan Water Reclamation District of Great Chicago


NextIPAddress()
语法
Result = NextIPAddress()概要
Returns the next IP address of the local machine. ExamineIPAddresses() must be called before this command.
参数
无.
返回值
Returns the next IP address in numerical form. If the result is 0 then there are no more IP addresses to be examined. If ExamineIPAddresses() is called with the #PB_Network_IPv6 format, the returned IP needs to freed with FreeIP() after use.
参阅
ExamineIPAddresses(), IPString()
已支持操作系统
所有


liberty-mutual-insurance
Businessmodel of Liberty Mutual Insurance
Customer Segments
Liberty Mutual offers a wide range of insurance products and services, catering to a diverse network of clients. The Company’s offerings are divide principally into two categories, covering personal insurance for individuals and business insurance for commercial entities.
Its personal insurance products serve the general consumer market, with specialist offerings for homeowners and residential renters, automobile owners, and boat owners. Liberty Mutual’s business insurance products provide coverage for small, medium, and large businesses across multiple sectors, including, among others, the following industries:
- Agriculture;
- Printing and publishing;
- Construction;
- Energy;
- Financial Services;
- Healthcare;
- Retail;
- Real Estate; and
- Manufacturing. Liberty Mutual operates across global markets, its principal market being its native US, however. The Company also serves clients across the rest or North America, Latin America, Europe, Asia Pacific, and the Middle East.
Value Propositions
Liberty Mutual provides value to its clients in the following ways:
- Its reputation and industry standing, with the Company established as one of the largest and most recognised insurance providers in the world, having a reputation for providing reliable and effective services;
- Its broad portfolio of products, with the Company offering a large portfolio of products and services to a diverse client base, providing auto, home, and casualty insurance coverage across various markets;
- Its international reach, with the Company serving an extensive domestic client base in the US, as well as operating internationally, offering services to customers across the Americas, Asia Pacific, Europe, and the Middle East;
- Its diverse range of service channels, with the Company providing services through multiple channels, including a network of independent agents, brokers, and consultants, as well as its online customer portal; and
- Its industry expertise and experience, with the Company employing specialist personnel across its operations segment, cooperating with highly-trained partners, and having a team of experience industry executives. ### Channels
Liberty Mutual operates a website at www.libertymutual.com, through which it provides information on its products, services, and international operations. The Company offers a tool that enables customers to receive a quote online, as well as an online customer portal through which clients can manage their policies, pay bills and access resources.
Liberty Mutual sells products and services directly to its clients through an in-house team of sales personnel and insurance professionals. These members of staff operate out of the Company’s international network of offices, which comprises around 30 locations spread across the Americas, Asia Pacific, the Middle East, and Europe, including in the US, Hong Kong, Portugal, Vietnam, the United Arab Emirates, and Colombia.
Liberty Mutual also provides a significant portion of its services and products through a network of intermediaries, including independent agents, brokers, benefit consultants, captive agents, and bank partners.
Customer Relationships
Liberty Mutual provides a range of products and services to its clients on a self-service basis. This includes it online quote tool, as well as its customer portal, which allows clients to manage their policies, make payments, and access certain tools and resources without interacting directly with members of the Company’s sales and service personnel.
Liberty Mutual makes its sales directly through its own sales and service personnel, as well through a network of intermediaries. Through these channels the Company seeks to provide personalised care to its clients, tailoring its service offerings to suit the individual needs and circumstances of each client. The Company’s services are typically offered on a fixed-term basis, most usually 12 months.
Liberty Mutual offers ongoing support to its customers, who are able to contact dedicated support personnel over the phone or via email in order to receive personalised responses to questions and concerns. This includes individual teams for its various insurance product lines. The Company also provides a range of online resources pertaining to the claims process, as well as information on various billing and payment options.
Customers can additionally follow the Company’s activities, and interact with its personnel directly, through its social media accounts, including with Facebook, Twitter, LinkedIn, YouTube, and Google+.
Key Activities
Liberty Mutual provides a range of insurance products and services, offering property and casualty insurance products; auto, home, and life, as well as personal liability insurance products; and claim services.
The Company aligns its operations into three business segments: Commercial Insurance, which provides a range of property-casualty, group benefits, and life insurance coverages; Global Specialty, which provides various specialty products and services to international markets, and Global Consumer Markets, which provides automobile, homeowners and other types of property and casualty insurance to a global client base.
Liberty Mutual serves a diverse client base spanning multiple business sectors – including the agriculture, building maintenance, construction, education, energy, and financial services sectors – and including customers across the Americas, Asia Pacific, Europe, and the Middle East. The Company distributes its insurance products largely through a network of sales representatives, agents, and brokers.
Key Partners
Liberty Mutual works closely with a network of companies and organisations in order to serve its customers effectively and efficiently. According to its website, the Company has around 14,000 partners across all 50 US states, including:
- Supplier and Vendor Partners, comprising suppliers of equipment, services, and tools that are utilised across the Company’s operating segments, as well as companies to which certain non-technical functions can be outsourced;
- Channel and Distribution Partners, comprising the Company’s extensive network of independent brokers, agents, benefit consultants, captive agents, and bank partners that provide services on the Company’s behalf;
- Technology Partners, comprising various software and hardware companies that support and assist in developing the Company’s information technology and software systems; and
- Strategic and Alliance Partners, comprising various market-leading companies across multiple business sectors, with which the Company collaborates on joint branding, marketing, and other projects. Liberty Mutual has launched numerous partnerships in recent years. This includes a tie-up with Canary to provide products and services to customers of the home security start-up, a similar marketing partnership with technology company Nest, and a marketing deal with home technology company Vivint.
Key Resources
Liberty Mutual’s key resources are its financial reserves, its technologies and intellectual properties, its IT and communications infrastructure, its online platform, its network of intermediaries, its partnerships, and its personnel.
Liberty Mutual owns a number of intellectual properties that are used in the provision of its various products and services. Searches of records published by the US Patent and Trademark Office identified a number of patent applications in which the Company was named as applicant or assignee, including applications entitled ‘Maintaining a relational database and its schema in response to a stream of XML messages based on one or more arbitrary and evolving XML schemas’, ‘Carsharing peril analysis’ and ‘System and method for underwriting a prepackaged business owners insurance policy’.
Liberty Mutual additionally owns and or leases a number of physical properties across the US, principally comprising its network of corporate and administrative offices.
Cost Structure
Liberty Mutual incurs costs in relation to the development of its technologies and solutions, the settlement of insurance claims, the maintenance of its IT and communications infrastructure, the operations of its sales and service channels, the management of its partnerships, the implementation of marketing and advertising campaigns, and the retention of its personnel.
Revenue Streams
Liberty Mutual generates revenue through the provision of various insurance products and services to broad commercial and individual customer base. The majority of the Company’s revenue is derived in the form of monthly insurance premiums paid by its clients. The Company also generates a small portion of its revenue through the collection of certain service fees.
In 2015 Liberty Mutual generated annual revenue of $37.62 billion, down marginally on the $37.72 billion recorded by the Company in 2014. The Company generated the largest portion of its revenue through the sale of personal insurance products, which accounted for $17.03 billion in revenue for the year. This was followed by the Company’s commercial insurance products, which accounted for $11.19 billion.


Your first post
Thu, 16 May 2013
Por Grom
Grom detect a subset of org-mode syntax.
This is a subheading
This is a numbered list:
- Item
- Item
- Item
This is a bullet list:
You can post images from the img/ directory using:
And grom fixes the size to the template and creates a link to the real size
image. You can
link an external resources, too. By now,
you only can use jpeg
files, but
next versions of grom let add any image format to your blog. You
can contact me to report any bug or suggestion.


"We stand at the dawn of a new and exciting era
a truly exhilarating moment for the UK, and for our relationship with space."
— Jo Johnson MP Minister of State for Universities, Science, Research and Innovation
Time till launch
a truly exhilarating moment for the UK, and for our relationship with space."
— Jo Johnson MP Minister of State for Universities, Science, Research and Innovation
— Ross James, Commercial Space Director, UK Space Agency
They said it couldn't be done,
they were wrong. Probably.
We'll keep you up to date with information that is out of this world!


SHOW POOL_NODES displays the node id, the hostname, the port, the status, the weight (only meaningful if you use the load balancing mode), the role, the SELECT query counts issued to each backend, whether each node is the load bakance node or not, the replication delay (only if in streaming replication mode) and last status change time. The possible values in the status column are explained in the pcp_node_info reference. If the hostname is something like "/tmp", that means Pgpool-II is connecting to backend by using UNIX domain sockets. The SELECT count does not include internal queries used by Pgoool-II. Also the counters are reset to zero upon starting up of Pgpool-II. The last status change time is initially set to the time Pgpool-II starts. After that whenever "status" or "role" is changed, it is updated.
Here is an example session:
test=# show pool_nodes; node_id | hostname | port | status | lb_weight | role | select_cnt | load_balance_node | replication_delay | last_status_change ---------+----------+-------+--------+-----------+---------+------------+-------------------+-------------------+--------------------- 0 | /tmp | 11002 | up | 0.500000 | primary | 0 | true | 0 | 2018-06-12 21:45:59 1 | /tmp | 11003 | up | 0.500000 | standby | 0 | false | 0 | 2018-06-12 21:45:59 (2 rows)


When you work with us. You are part of a team of commited collaborators. All aspects of our software
development process are
integrated, interactive and agile.
Our approach unifies design, development and product management to create exceptional products.
We start each project by understanding your business goals, the user's needs and the product
requirements.
Then we help them translate into effective and elegant solutions.
Before we sign or write a line of code our team will spend the necessary time needed to understand your
product vision.
The outcome of this scoping session is a proposal or high level statement of work.
Based on your requirements, we can provide a complete offering or just the pieces you need.
Jim Carrey
Diamond Ruby
Mighty Ontario
Black Block
Music App
Buttons
Girraffe Restaurant
Burned©


---
layout: post
title: One simple way to get data from a Rails view into a JavaScript file
date: '2015-01-11T22:10:00.000-08:00'
author: Mark J. Lehman
tags:
- rails
- ruby
- javascript
modified_time: '2015-08-21T10:14:59.696-07:00'
blogger_id: tag:blogger.com,1999:blog-4459370175540830177.post-7666193400199639665
blogger_orig_url: http://spaghettirefactory.blogspot.com/2015/01/one-simple-way-to-get-data-from-rails.html
---
I had a tricky problem where there was some data from the server that was being sent to the view in query params, and I needed it in my JS file to selectively show/hide elements. Here's what I ended up doing.
In my view (HAML syntax, for the uninitiated), I am essentially creating an empty div, giving it a unique ID, and filling in data attributes with the data I need. (NOTE: start_date
, start_time
, and time_zone
are variables defined elsewhere):
#video-or-in-person-fields{ 'data-start-date' => start_date, 'data-start-time' => start_time, 'data-time-zone' => time_zone }
start_date = $("#video-or-in-person-fields").attr('data-start-date')
start_time = $("#video-or-in-person-fields").attr('data-start-time')
time_zone = $("#video-or-in-person-fields").attr('data-time-zone')


This page includes a simple example demonstrating ability to drag both tree parents and children. Note that this requires Dojo 1.8 or higher.


|
Inventory Grid
an inventory grid similar to diablo
|
ui example using Board class to generate the inventory grid/board More...
Public Types | |
| enum class | InteractState { Empty = 0 , HasDraggable = 1 , HasInventoryPiece = 2 } |
Public Member Functions | |
| virtual void | CreateGrid () |
| virtual void | NoPieces () |
| clear state More... | |
| virtual void | CreateNewInventoryPiece (PatternHolder pattern, int equipID=-1) |
| create draggable piece that isn't already on the grid More... | |
| virtual void | CarryRemovedPiece (InventoryPiece piece) |
| remove draggable piece that is already on the grid More... | |
Public Attributes | |
| System.Action< List< RaycastResult > > | OnTryRemove |
| System.Action< InventoryPiece > | OnDraggingPiece |
| System.Action | OnStopDragging |
| System.Action< List< RaycastResult >, InventoryPiece > | OnTryPlace |
| Board | TheBoard |
| EquippedGear_UI | GearUI |
| Transform | MainPanel |
| RectTransform | GridTransform |
| GameObject | CellPrefab |
| Transform | PanelGrid |
Protected Member Functions | |
| virtual void | Awake () |
| initialization More... | |
| virtual void | OnEnable () |
| sub events More... | |
| virtual void | OnDisable () |
| unsub events More... | |
| virtual void | Start () |
| creation More... | |
| virtual void | LateUpdate () |
| mouse navigation More... | |
| virtual void | Removed (InventoryPiece piece, List< BoardSlot > slots) |
| virtual void | Placed (InventoryPiece piece, List< BoardSlot > slots) |
| virtual void | SwappedEquipmentPiece (InventoryPiece old, InventoryPiece newpiece) |
| virtual void | EquippedPiece (InventoryPiece piece) |
| virtual void | SwappedInventory (InventoryPiece old, InventoryPiece newpiece) |
| virtual void | CreateBoardSlotInstance (BoardSlot slot) |
| creates the gameobjects that represent the grid slots More... | |
| virtual void | MoveDraggable (InventoryPiece dragginginstance) |
| draggable movement More... | |
| virtual void | TryPlaceDraggable (InventoryPiece piece) |
| try place in grid slot More... | |
| virtual void | TryRemoveDraggableFromGrid () |
| try remove from grid More... | |
| virtual InventoryPiece | TryRemoveDraggableFromGrid (GameObject key) |
| virtual bool | TryPlaceOnBoard (GameObject slotKey, InventoryPiece newPiece) |
| try place draggable piece on board More... | |
| virtual void | PreviewHighlight (InventoryPiece piece) |
| preview stuff could use a cell class that we can enable/disable preview stuff, clean up later More... | |
Protected Attributes | |
| EventSystem | eventSystem |
| InteractState | state = InteractState.Empty |
| GraphicRaycaster | m_Raycaster |
| PointerEventData | m_PointerEventData |
| InventoryPiece | draginstance = null |
| InventoryPiece | inventorydragging = null |
| List< RaycastResult > | results = new List<RaycastResult>() |
ui example using Board class to generate the inventory grid/board
|
protectedvirtual |
initialization
|
virtual |
remove draggable piece that is already on the grid
| piece |
|
protectedvirtual |
creates the gameobjects that represent the grid slots
| slot |
|
virtual |
|
virtual |
create draggable piece that isn't already on the grid
| pattern |
|
protectedvirtual |
|
protectedvirtual |
mouse navigation
|
protectedvirtual |
draggable movement
| dragginginstance |
|
virtual |
clear state
|
protectedvirtual |
unsub events
|
protectedvirtual |
sub events
|
protectedvirtual |
|
protectedvirtual |
preview stuff could use a cell class that we can enable/disable preview stuff, clean up later
| piece |
|
protectedvirtual |
|
protectedvirtual |
creation
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
try place in grid slot
| piece |
|
protectedvirtual |
try place draggable piece on board
| slotKey | |
| newPiece |
|
protectedvirtual |
try remove from grid
|
protectedvirtual |
| GameObject GWLPXL.InventoryGrid.GridInventory_UI.CellPrefab |
|
protected |
|
protected |
| EquippedGear_UI GWLPXL.InventoryGrid.GridInventory_UI.GearUI |
| RectTransform GWLPXL.InventoryGrid.GridInventory_UI.GridTransform |
|
protected |
|
protected |
|
protected |
| Transform GWLPXL.InventoryGrid.GridInventory_UI.MainPanel |
| System.Action<InventoryPiece> GWLPXL.InventoryGrid.GridInventory_UI.OnDraggingPiece |
| System.Action GWLPXL.InventoryGrid.GridInventory_UI.OnStopDragging |
| System.Action<List<RaycastResult>, InventoryPiece> GWLPXL.InventoryGrid.GridInventory_UI.OnTryPlace |
| System.Action<List<RaycastResult> > GWLPXL.InventoryGrid.GridInventory_UI.OnTryRemove |
| Transform GWLPXL.InventoryGrid.GridInventory_UI.PanelGrid |
|
protected |
|
protected |
| Board GWLPXL.InventoryGrid.GridInventory_UI.TheBoard |


a socket.io chat application
by
raimond lume
2019
Enter
Username is taken!
Please enter a username!
Send
Users


Reports unresolved message resource keys.
Example:
<h1>&{'unresolved.name', client.name}</h1> <!-- Cannot resolve property key -->


File System/Properties.lua
Functions
| Properties:getPropertyForPlugin (_PLUGIN, name) | Reads named property value associated with catalog. |
| Properties:getPropertyForPluginSpanningCatalogs (_PLUGIN, name) | Gets property tied to plugin, but not to specific catalog. |
| Properties:getSharedProperty (name) | Gets shared value associated with specified name. |
| Properties:new (t) | Constructor for new instance. |
| Properties:newClass (t) | Constructor for extending class. |
| Properties:setPropertyForPlugin (_PLUGIN, name, value) | Set property value specified by name associated with catalog. |
| Properties:setPropertyForPluginSpanningCatalogs (_PLUGIN, name, value) | Set plugin property that is catalog independent. |
| Properties:setSharedProperty (name, value) | Sets property readable by sister function. |
Functions
- Properties:getPropertyForPlugin (_PLUGIN, name)
-
Reads named property value associated with catalog.
Parameters:
-
_PLUGIN
: -
name
:
Usage:
Substitute for non-working Lightroom version, until fixed.
This will be removed or replaced with the equivalent lightroom version once difficulties are resolved.
Reads from loaded table or loads then reads.
Name must be a string.
Throws error if problem reading properties.
Return value:
- Value as set, which may be nil.
-
- Properties:getPropertyForPluginSpanningCatalogs (_PLUGIN, name)
-
Gets property tied to plugin, but not to specific catalog.
Parameters:
-
_PLUGIN
: -
name
:
Usage:
Initial application: Importer master sequence number, so an index used for import file naming into different catalogs
would not create conflicts in common backup bucket, or when catalogs merged...Return value:
- simple value (original type not table).
-
- Properties:getSharedProperty (name)
-
Gets shared value associated with specified name.
Parameters:
-
name
:
Usage:
Shared meaning all-plugins, all-catalogs, all-users, ...
Initial application: user-name.
Properties are stored in plugin parent, so they will only be shared by child plugins.
Return values:
- Throws error if name not supplied or existing properties unobtainable.
- simple value (string, number, boolean - not table), else nil if non-existing.
-
- Properties:new (t)
-
Constructor for new instance.
Parameters:
-
t
:
-
- Properties:newClass (t)
-
Constructor for extending class.
Parameters:
-
t
:
-
- Properties:setPropertyForPlugin (_PLUGIN, name, value)
-
Set property value specified by name associated with catalog.
Parameters:
-
_PLUGIN
: -
name
: -
value
:
Usage:
Substitute for non-working Lightroom version, until fixed.
This will be removed or replaced with the equivalent lightroom version once difficulties are resolved.
Writes a table into file plugin-id.properties.lua with the specified property.
name should be string, and value should be number or string or nil.
Returns nothing - throws error if can't set property.
-
- Properties:setPropertyForPluginSpanningCatalogs (_PLUGIN, name, value)
-
Set plugin property that is catalog independent.
Parameters:
-
_PLUGIN
: -
name
: -
value
:
Usage:
see 'get' function
Returns nothing - throws error if trouble.
-
- Properties:setSharedProperty (name, value)
-
Sets property readable by sister function.
Parameters:
-
name
: -
value
:
Usage:
see 'get' function.
Returns nothing - throws error if trouble.
-


Things I've Learned
Internet Basics
HTTP Requests
IP Address
Servers
HTML
Stands for
Hyper Text Markup Language
Lots of tags
Boiler plate
Doctype
HTML
Head
Title
Body
Headings
Paragraph
em
strong
Learn Java
Learn Web Development
Get Fine


The grammar.bnf is a grammar with attribute errors. Copy and paste it into the Generator panel and click Generate. The Attributes panel will open to display the attribute errors.
grammar.bnf
Generator
Generate
Attributes
There are no parser input files for this example.


Home
Gallery
Blog
William Zhang
Hi there! I'm currently a fourth year double majoring in Computer Science and Electrical Engineering at the University of Virginia.
Resume


Figure-1: Jogging control panel information
Step | Feed
Jogging step and feed rate can be adjusted here.
Max feed rate value depends on the machine settings.
Max step size can be configured in settings.
X- Y+
Move the machine in X negative and Y positive direction.
Y+
Move the machine in Y positive direction.
X+ Y+
Move the machine in X positive and Y positive direction.
Z+
Move the machine in Z positive direction.
X-
Move the machine in X negative direction.
Homing button
G10 L20 P0 X0Y0Z0
X+
Move the machine in X positive direction.
Jog cancel | Go to zero
X- Y-
Move the machine in X negative and Y negative direction.
Y-
Move the machine in Y negative direction.
X+ Y-
Move the machine in X positive and Y negative direction.
Z-
Move the machine in Z negative direction.
NOTE: Click and holding the axis move buttons will repeatedly execute the commands at an interval of 35 milli seconds approximately.
Alarms not active. Clicking on this state does nothing.
Alarm is triggered. Clicking on this button will send unlock command $X
X
X-Axis control
G0X0
Y
Y-Axis control
G0Y0
Z
Z-Axis control
G0Z0
G54
Coordinate System 1
G55
Coordinate System 2
G56
Coordinate System 3
G57
Coordinate System 4
Application supports four custom buttons in jog control panel (needs to be enable in settings). Button labels and actions can be customized via settings.
Custom buttons also supports both short click and long click events and can behave accordingly.
Custom buttons supports commands upto 2048 characters in length, will be sent to grbl using character counting protocol.
You can cancel any currently running custom command by pressing the "Jog Cancel"
Jog cancel | Go to zero
button
A
and B
Axis Support
This feature is only available in paid version (XYZ Controller +)
When enabled in settings jogging control panel will show four additional buttons A+
, A-
, B+
and B-
these buttons can be used to control the jogging of any additional axis that are added in custom versions of grbl (currently its not possible to view the current position of these axis in application)


| Interface | Description |
|---|---|
| HibernationHandler |
Callback methods for Hibernation requests and responses.
|
| IceServerConfig |
Configuration for ICE Servers.
|
| ServiceAuthHandler |
Handle authentication challenge from service.
|
| ServiceAuthHandler.Challenge |
Authentication challenge.
|
| WSCSession.ConnectionCallback |
Callback for connection notification.
|
| Class | Description |
|---|---|
| HibernateParams |
Parameters for hibernating the session.
|
| HttpContext |
HttpContext is used to pass login information between the
HTTP client and the Websocket client API.
|
| HttpContext.Builder |
Builder for creating the HttpContext.
|
| IceServerConfig.IceServer |
Configuration for an ICE server.
|
| JSONHandler | |
| Package |
Base class for all packages including Register, Call and others.
|
| SessionState |
State of the session.
|
| SubSession |
Base class for all interaction classes such as Call.
|
| WSCSession |
WSCSession represents a session between the client and the WebRTC Session Controller server.
|
| WSCSession.Builder |
Builder for WSCSession class.
|
| WSCSession.Observer |
Observer for session state change.
|
To create a session and listen for session state changes:
void loginToWSC() throws URISyntaxException {
final String username =<EMAIL_ADDRESS>final String webSocketURL = "ws://server:port/ws/webrtc/someapp";
// Add more parameters to builder if required.
final HttpContext httpContext = HttpContext.Builder.create().build();
WSCSession.Builder builder = WSCSession.Builder.create(new URI(webSocketURL))
.withConnectionCallback(new MyConnectionHandler())
.withUserName(username)
.withObserver(new MySessionObserver())
.withPackage(new CallPackage())
.withHttpContext(httpContext)
.withIceServerConfig(new MyIceServerConfig());
// Create the session.
WSCSession session = builder.build();
}
// Handle connection status for the session.
class MyConnectionHandler implements ConnectionCallback {
public void onSuccess() {
// update UI components if any
}
public void onFailure(StatusCode code) {
// display error
}
}
// Pass the configuration of ICE Server(s)...
class MyIceServerConfig implements IceServerConfig {
public Set<IceServer> getIceServers() {
Set<IceServerConfig.IceServer> iceServers = new HashSet<IceServerConfig.IceServer>();
// iceServers.add(...);
return iceServers;
}
}
// Listener for changes in session state.
class MySessionObserver extends WSCSession.Observer {
public void stateChanged(final SessionState state) {
runOnUiThread(new Runnable() {
public void run() {
switch (state) {
case CONNECTED:
// session is connected, update UI to reflect the change.
break;
case FAILED:
// session is reconnecting, update UI to reflect change and possibly re-login.
break;
// handle other cases
}
}
});
}
}


This page provides links to the documentation on all the different system models developed and integrated into the FUSED-Wind framework.
Overall Documentation:
- FUSED-Wind (http://fusedwind.org for documentation and tutorials) is a partnership between DTU Wind Energy, NREL and others
- The OpenMDAO modeling environment (http://openmdao.org) underlies FUSED-Wind
- All the above software is built in the Python programming language (https://www.python.org/ for documentation and tutorials)
WISDEM documentation:
- Basic WISDEM documentation for integrated assemblies can be found here: http://wisdem.github.io/WISDEM/
WISDEM Sub-model documentation by category:
Design and Sizing:
- RotorSE: http://wisdem.github.io/RotorSE/
- DriveWPACT: http://wisdem.github.io/DriveWPACT/
- DriveSE: http://wisdem.github.io/DriveSE/
- TowerSE: http://wisdem.github.io/TowerSE/
Cost Analysis:
- Turbine_CostsSE: http://wisdem.github.io/Turbine_CostsSE/
- Plant_CostsSE: http://wisdem.github.io/Plant_CostsSE/
- Plant_FinanceSE: http://wisdem.github.io/Plant_FinanceSE/
Performance Analysis:
- AeroelasticSE: http://wisdem.github.io/AeroelasticSE/
- Plant_EnergySE: http://wisdem.github.io/Plant_EnergySE/
Utilties:
- CommonSE: http://wisdem.github.io/CommonSE/
- AirfoilPreppy: http://wisdem.github.io/AirfoilPreppy/
- CCBlade: http://wisdem.github.io/CCBlade/
- pBEAM: http://wisdem.github.io/pBEAM/
- pyFrame3DD: see documentation for Frame3DD


Week four
Discussion
The future of user interfaces is going to be so much different that what we have now. Even though what we have now is so fascinating. I was really shocked by the physical scale model of architectural buildings, it really shows how you can visualize data and information in a different and delivers the idea to look much clearer. I think that this should be the purpose of tangible user interface, in which it would benefit people and shows them a new way of understanding. Maybe in uses for medical purposes or school education. Especially for people that suffer from dyslexia since visual learning is much easier. So my project talks about the water crisis and the purpose is to have awareness towards saving water. I think it would be really cool if it had tangible user interface in which the data visualization of the water consumption would be able to be seen in a physical way, like a moving structure, or a color changing object. There many options out there so it would be very interesting to look into how we can visualize it more. It’s something that we can explore better in the future when we are a bit more advanced in coding. Maybe then creating installations or having exhibitions. Starting to code was difficult , it is a very confusing topic and it takes a lot of time to learn. After coding I realized how much time takes to make simple command and I started appreciating the people who code as a career. Because as I started to realized that you need to learn a lot of things to be good at it. My relationship with the computer is still the same though, I haven’t grown to love it because I still didn’t get the hang of it and I don’t think I’m good at it.
go to home page


--- ---
|
TGUI
0.8-dev
|
Public Member Functions | |
| void | setBorders (const Borders &borders) |
| Changes the size of the borders. More... | |
| Borders | getBorders () const |
| Returns the size of the borders. More... | |
| void | setTextColor (Color color) |
| Changes the color of the text. More... | |
| Color | getTextColor () const |
| Returns the text color. More... | |
| void | setTextColorHover (Color color) |
| Changes the color of the text in the hover state (mouse on button, but not pressed) More... | |
| Color | getTextColorHover () const |
| Returns the text color in the hover state (mouse on button, but not pressed) More... | |
| void | setTextColorDown (Color color) |
| Changes the color of the text in the down state (mouse on button and left mouse button being held down) More... | |
| Color | getTextColorDown () const |
| Returns the text color in the down state (mouse on button and left mouse button being held down) More... | |
| void | setTextColorDisabled (Color color) |
| Changes the color of the text that is used when the button is disabled. More... | |
| Color | getTextColorDisabled () const |
| Returns the text color that is used when the button is disabled. More... | |
| void | setTextColorFocused (Color color) |
| Changes the color of the text that is used when the button is focused (while not hovered) More... | |
| Color | getTextColorFocused () const |
| Returns the text color that is used when the button is focused. More... | |
| void | setBackgroundColor (Color color) |
| Changes the color of the background. More... | |
| Color | getBackgroundColor () const |
| Returns the background color. More... | |
| void | setBackgroundColorHover (Color color) |
| Changes the color of the background in the hover state (mouse on button, but not pressed) More... | |
| Color | getBackgroundColorHover () const |
| Returns the background color in the hover state (mouse on button, but not pressed) More... | |
| void | setBackgroundColorDown (Color color) |
| Changes the color of the background in the down state (mouse on button and left mouse button being held down) More... | |
| Color | getBackgroundColorDown () const |
| Returns the background color in the down state (mouse on button and left mouse button being held down) More... | |
| void | setBackgroundColorDisabled (Color color) |
| Changes the color of the background that is used when the button is disabled. More... | |
| Color | getBackgroundColorDisabled () const |
| Returns the background color that is used when the button is disabled. More... | |
| void | setBackgroundColorFocused (Color color) |
| Changes the color of the background that is used when the button is focused (while not hovered) More... | |
| Color | getBackgroundColorFocused () const |
| Returns the background color that is used when the button is focused. More... | |
| void | setBorderColor (Color color) |
| Changes the color of the borders. More... | |
| Color | getBorderColor () const |
| Returns the color of the borders. More... | |
| void | setBorderColorHover (Color color) |
| Changes the color of the borders in the hover state (mouse on button, but not pressed) More... | |
| Color | getBorderColorHover () const |
| Returns the color of the borders in the hover state (mouse on button, but not pressed) More... | |
| void | setBorderColorDown (Color color) |
| Changes the color of the borders in the down state (mouse on button and left mouse button being held down) More... | |
| Color | getBorderColorDown () const |
| Returns the color of the borders in the down state (mouse on button and left mouse button being held down) More... | |
| void | setBorderColorDisabled (Color color) |
| Changes the color of the borders that is used when the button is disabled. More... | |
| Color | getBorderColorDisabled () const |
| Returns the color of the borders that is used when the button is disabled. More... | |
| void | setBorderColorFocused (Color color) |
| Changes the color of the borders that is used when the button is focused (while not hovered) More... | |
| Color | getBorderColorFocused () const |
| Returns the color of the borders that is used when the button is focused. More... | |
| void | setTexture (const Texture &texture) |
| Change the image that is displayed. More... | |
| Texture & | getTexture () const |
| Returns the image that is displayed. More... | |
| void | setTextureHover (const Texture &texture) |
| Changes the image that is displayed when the mouse is located on top of the button. More... | |
| Texture & | getTextureHover () const |
| Returns the image that is displayed when the mouse is located on top of the button. More... | |
| void | setTextureDown (const Texture &texture) |
| Changes the image that is displayed when the mouse is held down on top of the button. More... | |
| Texture & | getTextureDown () const |
| Returns the image that is displayed when the mouse is held down on top of the button. More... | |
| void | setTextureDisabled (const Texture &texture) |
| Changes the image that is displayed when the button is disabled. More... | |
| Texture & | getTextureDisabled () const |
| Returns the image that is displayed when the button is disabled. More... | |
| void | setTextureFocused (const Texture &texture) |
| Change the image that is drawn on top of the button image when the button is focused (while not hovered) More... | |
| Texture & | getTextureFocused () const |
| Returns the image that is drawn on top of the button image when the button is focused. More... | |
| void | setTextStyle (TextStyle style) |
| Changes the text style. More... | |
| TextStyle | getTextStyle () const |
| Returns text style. More... | |
| void | setTextStyleHover (TextStyle style) |
| Changes the text style in the hover state (mouse on button, but not pressed) More... | |
| TextStyle | getTextStyleHover () const |
| Returns text style in the hover state (mouse on button, but not pressed) More... | |
| void | setTextStyleDown (TextStyle style) |
| Changes the text style in the down state (mouse on button and left mouse button being held down) More... | |
| TextStyle | getTextStyleDown () const |
| Returns text style in the down state (mouse on button and left mouse button being held down) More... | |
| void | setTextStyleDisabled (TextStyle style) |
| Changes the text style that is used when the button is disabled. More... | |
| TextStyle | getTextStyleDisabled () const |
| Returns text style used when the button is disabled. More... | |
| void | setTextStyleFocused (TextStyle style) |
| Changes the text style that is used when the button is focused (while not hovered) More... | |
| TextStyle | getTextStyleFocused () const |
| Returns text style used when the button is focused. More... | |
| Public Member Functions inherited from tgui::WidgetRenderer | |
| WidgetRenderer ()=default | |
| Default constructor. | |
| WidgetRenderer (const std::shared_ptr< RendererData > &data) | |
| Construct the renderer from renderer data. More... | |
| virtual | ~WidgetRenderer ()=default |
| Virtual destructor. | |
| void | setOpacity (float opacity) |
| Changes the opacity of the widget. More... | |
| float | getOpacity () const |
| Returns the opacity of the widget. More... | |
| void | setOpacityDisabled (float opacity) |
| Changes the opacity of the widget when it is disabled. More... | |
| float | getOpacityDisabled () const |
| Returns the opacity of the widget when it is disabled. More... | |
| void | setFont (Font font) |
| Changes the font used for the text in the widget. More... | |
| Font | getFont () const |
| Returns the font associated with the widget (if any) More... | |
| void | setTransparentTexture (bool ignoreTransparentParts) |
| Sets whether mouse events should be ignored on transparent parts of the texture of the widget in normal state. More... | |
| bool | getTransparentTexture () const |
| Returns whether mouse events should be ignored on transparent parts of the texture of the widget. More... | |
| void | setProperty (const std::string &property, ObjectConverter &&value) |
| Changes a property of the renderer. More... | |
| ObjectConverter | getProperty (const std::string &property) const |
| Retrieves the value of a certain property. More... | |
| const std::map< std::string, ObjectConverter > & | getPropertyValuePairs () const |
| Gets a map with all properties and their values. More... | |
| void | subscribe (const void *id, const std::function< void(const std::string &property)> &function) |
| Subscribes a callback function to changes in the renderer. More... | |
| void | unsubscribe (const void *id) |
| Subscribes a callback function to changes in the renderer. More... | |
| std::shared_ptr< RendererData > | getData () const |
| Returns the renderer data. More... | |
| std::shared_ptr< RendererData > | clone () const |
| Gets a clone of the renderer data. More... | |
| Color tgui::ButtonRenderer::getBackgroundColor | ( | ) | const |
Returns the background color.
| Color tgui::ButtonRenderer::getBackgroundColorDisabled | ( | ) | const |
Returns the background color that is used when the button is disabled.
| Color tgui::ButtonRenderer::getBackgroundColorDown | ( | ) | const |
Returns the background color in the down state (mouse on button and left mouse button being held down)
| Color tgui::ButtonRenderer::getBackgroundColorFocused | ( | ) | const |
Returns the background color that is used when the button is focused.
| Color tgui::ButtonRenderer::getBackgroundColorHover | ( | ) | const |
Returns the background color in the hover state (mouse on button, but not pressed)
| Color tgui::ButtonRenderer::getBorderColor | ( | ) | const |
Returns the color of the borders.
| Color tgui::ButtonRenderer::getBorderColorDisabled | ( | ) | const |
Returns the color of the borders that is used when the button is disabled.
| Color tgui::ButtonRenderer::getBorderColorDown | ( | ) | const |
Returns the color of the borders in the down state (mouse on button and left mouse button being held down)
| Color tgui::ButtonRenderer::getBorderColorFocused | ( | ) | const |
Returns the color of the borders that is used when the button is focused.
| Color tgui::ButtonRenderer::getBorderColorHover | ( | ) | const |
Returns the color of the borders in the hover state (mouse on button, but not pressed)
| Borders tgui::ButtonRenderer::getBorders | ( | ) | const |
Returns the size of the borders.
| Color tgui::ButtonRenderer::getTextColor | ( | ) | const |
Returns the text color.
| Color tgui::ButtonRenderer::getTextColorDisabled | ( | ) | const |
Returns the text color that is used when the button is disabled.
| Color tgui::ButtonRenderer::getTextColorDown | ( | ) | const |
Returns the text color in the down state (mouse on button and left mouse button being held down)
| Color tgui::ButtonRenderer::getTextColorFocused | ( | ) | const |
Returns the text color that is used when the button is focused.
| Color tgui::ButtonRenderer::getTextColorHover | ( | ) | const |
Returns the text color in the hover state (mouse on button, but not pressed)
| TextStyle tgui::ButtonRenderer::getTextStyle | ( | ) | const |
Returns text style.
| TextStyle tgui::ButtonRenderer::getTextStyleDisabled | ( | ) | const |
Returns text style used when the button is disabled.
| TextStyle tgui::ButtonRenderer::getTextStyleDown | ( | ) | const |
Returns text style in the down state (mouse on button and left mouse button being held down)
| TextStyle tgui::ButtonRenderer::getTextStyleFocused | ( | ) | const |
Returns text style used when the button is focused.
| TextStyle tgui::ButtonRenderer::getTextStyleHover | ( | ) | const |
Returns text style in the hover state (mouse on button, but not pressed)
| Texture& tgui::ButtonRenderer::getTexture | ( | ) | const |
Returns the image that is displayed.
| Texture& tgui::ButtonRenderer::getTextureDisabled | ( | ) | const |
Returns the image that is displayed when the button is disabled.
| Texture& tgui::ButtonRenderer::getTextureDown | ( | ) | const |
Returns the image that is displayed when the mouse is held down on top of the button.
| Texture& tgui::ButtonRenderer::getTextureFocused | ( | ) | const |
Returns the image that is drawn on top of the button image when the button is focused.
| Texture& tgui::ButtonRenderer::getTextureHover | ( | ) | const |
Returns the image that is displayed when the mouse is located on top of the button.
| void tgui::ButtonRenderer::setBackgroundColor | ( | Color | color | ) |
Changes the color of the background.
| color | New background color |
Note that this color is ignored when you set an image as background.
| void tgui::ButtonRenderer::setBackgroundColorDisabled | ( | Color | color | ) |
Changes the color of the background that is used when the button is disabled.
| color | New background color |
Note that this color is ignored when you set an image as background.
| void tgui::ButtonRenderer::setBackgroundColorDown | ( | Color | color | ) |
Changes the color of the background in the down state (mouse on button and left mouse button being held down)
| color | New background color |
Note that this color is ignored when you set an image as background.
| void tgui::ButtonRenderer::setBackgroundColorFocused | ( | Color | color | ) |
Changes the color of the background that is used when the button is focused (while not hovered)
| color | New background color |
Note that this color is ignored when you set an image as background.
| void tgui::ButtonRenderer::setBackgroundColorHover | ( | Color | color | ) |
Changes the color of the background in the hover state (mouse on button, but not pressed)
| color | New background color |
Note that this color is ignored when you set an image as background.
| void tgui::ButtonRenderer::setBorderColor | ( | Color | color | ) |
Changes the color of the borders.
| color | New border color |
| void tgui::ButtonRenderer::setBorderColorDisabled | ( | Color | color | ) |
Changes the color of the borders that is used when the button is disabled.
| color | New border color |
| void tgui::ButtonRenderer::setBorderColorDown | ( | Color | color | ) |
Changes the color of the borders in the down state (mouse on button and left mouse button being held down)
| color | New border color |
| void tgui::ButtonRenderer::setBorderColorFocused | ( | Color | color | ) |
Changes the color of the borders that is used when the button is focused (while not hovered)
| color | New border color |
| void tgui::ButtonRenderer::setBorderColorHover | ( | Color | color | ) |
Changes the color of the borders in the hover state (mouse on button, but not pressed)
| color | New border color |
| void tgui::ButtonRenderer::setBorders | ( | const Borders & | borders | ) |
Changes the size of the borders.
| borders | Size of the borders |
| void tgui::ButtonRenderer::setTextColor | ( | Color | color | ) |
Changes the color of the text.
| color | New text color |
| void tgui::ButtonRenderer::setTextColorDisabled | ( | Color | color | ) |
Changes the color of the text that is used when the button is disabled.
| color | New text color |
| void tgui::ButtonRenderer::setTextColorDown | ( | Color | color | ) |
Changes the color of the text in the down state (mouse on button and left mouse button being held down)
| color | New text color |
| void tgui::ButtonRenderer::setTextColorFocused | ( | Color | color | ) |
Changes the color of the text that is used when the button is focused (while not hovered)
| color | New text color |
| void tgui::ButtonRenderer::setTextColorHover | ( | Color | color | ) |
Changes the color of the text in the hover state (mouse on button, but not pressed)
| color | New text color |
| void tgui::ButtonRenderer::setTextStyle | ( | TextStyle | style | ) |
Changes the text style.
| style | New text style |
| void tgui::ButtonRenderer::setTextStyleDisabled | ( | TextStyle | style | ) |
Changes the text style that is used when the button is disabled.
| style | New text style |
| void tgui::ButtonRenderer::setTextStyleDown | ( | TextStyle | style | ) |
Changes the text style in the down state (mouse on button and left mouse button being held down)
| style | New text style |
| void tgui::ButtonRenderer::setTextStyleFocused | ( | TextStyle | style | ) |
Changes the text style that is used when the button is focused (while not hovered)
| style | New text style |
| void tgui::ButtonRenderer::setTextStyleHover | ( | TextStyle | style | ) |
Changes the text style in the hover state (mouse on button, but not pressed)
| style | New text style |
| void tgui::ButtonRenderer::setTexture | ( | const Texture & | texture | ) |
Change the image that is displayed.
| texture | The new texture |
When this image is set, the background color property will be ignored.
| void tgui::ButtonRenderer::setTextureDisabled | ( | const Texture & | texture | ) |
Changes the image that is displayed when the button is disabled.
| texture | The new disabled texture |
| void tgui::ButtonRenderer::setTextureDown | ( | const Texture & | texture | ) |
Changes the image that is displayed when the mouse is held down on top of the button.
| texture | The new down texture |
| void tgui::ButtonRenderer::setTextureFocused | ( | const Texture & | texture | ) |
Change the image that is drawn on top of the button image when the button is focused (while not hovered)
| texture | The new focus texture |
| void tgui::ButtonRenderer::setTextureHover | ( | const Texture & | texture | ) |
Changes the image that is displayed when the mouse is located on top of the button.
| texture | The new hover texture |


We redefine systems!
- visualize e-business initiatives
- incubate world-class e-services
- unleash 24/365 content
- target B2B methodologies
- empower next-generation networks
- scale 24/7 deliverables
- empower frictionless systems
- generate global relationships
- expedite turn-key synergies
- maximize cutting-edge relationships
- embrace value-added mindshare


Safe Haven
Decades of conflict in Afghanistan have contributed to a growing global refugee crisis
where Afghan men, women, and children have left their home country
because of war, natural disaster, or political upheaval, resettle in the United States.
While aid is scattered and hard to find, there exists a major opportunity
for communities to work alongside local refugee relief
organizations and government agencies to support and welcome resettled individuals and families.
In response, Safe Haven is a digital volunteer board application that aims to bridge the
disconnect between resources available to support Afghan refugees
and individuals who want to help those in transition. The digital screens
are situated in high traffic, high visibility bus shelters as a way of bringing opportunities to the community.
Design Question
How might we foster community building between Afghan refugees and the larger Seattle community to improve refugee resettlement experiences?
Solution
Surveys taught us that locals have seen breaking news about the crisis
in Afghanistan but feel uninformed about
the subsequent refugee displacement. While our audience of young professionals do not seek
out ways to help, they are open to doing so if the opportunity presents itself.
By placing touch-screen kiosks at bus stops where people are already waiting, users are able to learn more
and provide support in a manner and location that is convenient to them.
Discovery
We began the project by conducting semi-structured interviews
coupled with surveys with adults who are aware of the refugee
crisis and have an interest in volunteering to understand their time, and
involvement, and transportation concerns as it relates to organizations
supporting incoming refugees.
The data represented a disconnect between action and intention thus
leading me to consider designing for behavior change.
User Research
We also conducted interviews with volunteers
and caseworkers from refugee relief organizations such as International
Rescue Committee (IRC) and Jewish Family Services (JFS) to participate
in discovery interviews before conducting a Competative Analysis
to find existing solutions within this space.
While job boards and
volunteer portals exist for official nonprofits, those who have gotten
involved did so after a call to action from someone in their network. Our
target
audience
consists of people
willing to help incoming refugees but are not actively
looking for opportunities nor are they connected with the refugee community.
Stakeholders
Combining findings from multiple user research methods using an affinity diagram,
my team broke down findings into topics to select the scope of our project. After
deciding to focus on the issue of low awareness around ways to help asylum seekers, we organized our
stakeholders into two groups: potential volunteers and existing organizations.
I created two personas that embodied the archetypes of
our user groups. I then mapped out the user journey of our primary persona,
Casey, including her thoughts and feelings surrounding news coverage about the crisis in Afghanistan.
From this, I was able to empathize with Casey's schedule and where she can offer support.
Specifications
Using the research and synthesis as a guideline, we summarized
our findings with the following problem statement
and intentions for our solution:
How might we for behavior change and change will into
action for those hearing about the Afghan refugee crisis
and open to offering support?
Ideation
With the design requirements in mind, we began to ideate on potential
solutions through sketches and storyboards.
We decided that while a
convenient solution, an app does not reach our target audience without
strong marketing. Knowing that we wanted to encourage a behavior change,
we considered how a kiosk at a bus stop could help people evalute their
opportunities while they wait for their ride.
We also bucketed the design requirements as feature
components using a flow chart to form the backbone of our kiosk experience. The two pathways are further explained using sitemaps.
"Learn" Pathway
Users can select between two education paths: (1) 10 Facts About the Afghan Refugee Crisis or (2) Story of the First 90 days. Users can swipe or tap on arrows to move through slides to learn about the refugee experience and how they fit into the picture.
"Get Involved" Pathway
In the ‘Get Involved’ screen, users can filter by and discover opportunities based on their preferences, as well as time commitment and experience. Each filter’s page provides a selection of opportunity cards, which can be individually expanded to present more details about the opportunities.
Wireframes
Early wireframes included a homescreen offering the three pathways of learn, take action, and donate.
"Learn" included two stories of 10 slides each while "take action"
(which was renamed to "get involved") displayed a set of opportunity cards
which could be filtered according to different types of support.
P.S. You can get a better zoom on Figma.
My team and I further
considered the feasability of a donation option. I was considering different designs for the kiosk hardware as
well as the digital screens but we came to the concensus that security at a publicly
accessible kisok would put the user at risk (in more ways then one).
We did not want to add a kiosk to the card reader for safety reasons. Knowing that over
90% of our discovery survey respondants were inclined to donate money, we decided to make
to continue the experience from a
mobile device where donations would be safer and the experience could be
continued while on public transport.
Usability Testing
The Safe Haven team sought to test and validate the core ‘Get Involved’
pathway of the digital board with five participants. The goals of the testing
focused on the screen-to-screen experience from the initial default ‘Home’ to
‘Opportunities’ screen to discover usability improvements.
As a result, we made four design changes: First, the header text
was adjusted and learning content added to the
home screen to provide context for users to help grab the attention of users while
drawing them into both ‘Learn’ and ‘Get Involved’ pathways with information to lay
the groundwork.
Second, the search bar within the "Get Involved" pathway was removed to reduce
complexity. Third, to add clarity to the QR code section, text was adjusted from
"share with my phone" to "continue with my phone." Finally, a label was added to
draw attention to filters.
Mockup
Deliverables
In addition to viewing our video prototype, you can also download a pdf of our team's design solution.
Reflection
At the outset, my team and I were hesitant to pursue a project on the ongoing crisis
because of the langage barrier and packed schedule of stakeholders. Unanimously, however, we chose to pursue purposeful, impact-driven work.
While not without its challenges, choosing this path was immensely rewarding, both in the experiences it
led to and the lessons learned from those experiences. Among those lessons, maybe the
most important was that the value of human-centered design is not just in the creation
of more appropriate and usable design solutions that result from the involvement of
users, but in the generative power of design as a process to bring together diverse
stakeholders in pursuit of more inspiring and inclusive futures.
Stakeholders wanted to help us help the communities they serve.


• Helped review battery storage system design as owner's engineer and improved the design by picking out 10 mistakes
• Simulate the NPV and energy generation of a PV+Solar project using SAM and familiarize myself using Python SAM library PySAM for future simulation application
• Sort out different energy storage bidding information to improve future bidding selection


Metal grates form walls and railings inside Montreal apartment Aluminum Scarf
by Bridget CogleyThe covers of subway ventilation ducts have been used as walls, railings and storage closets in this renovated Montreal apartment designed by Canadian architect Jean-Maxime Labrecque.
The local designer's renovation encompasses a kitchen and living space on the ground floor, and two mezzanine levels above.
White grates provide a link throughout the three levels forming the balustrades, walls and built-in closets, and prompted the property's name Aluminum Scarf. The space is wrapped in a white metallic scarf made of aluminium grating, a material usually reserved for industrial environments," said Labrecque.
Among the designer's main interventions was replacing an existing black spiral staircase and rails, with a white stairway. Tall white grates act as the staircase railings beside the steps.
"The scarf first covers the staircase leading to the first mezzanine, becomes its railing, and extends itself to the second staircase which it follows, before plunging back down to wrap the majestic luminaire-bookshelf – illuminated aluminium covering the entire length of one of the space's longitudinal walls," he said.
Running across a wall on the ground floor is built-in bookshelves with grate doors that extend to the floor above. The metal frame is designed as doors on hinges, and conceal storage spaces outfitted with shelves and aluminium ladders.
The local designer kept the bones of the apartment the same, including its white pillars and exposed wood ceiling beams, which draw attention to the 25-foot (7.6-metre) high ceilings. Glass blocks that conceal a bathroom on the first floor are also from the existing design.
Dark wood floors have also been sanded down and refinished in a lighter tone, to draws the eye up to the historic timber framework on the ceiling.
White finishes feature prominently through the rest of the Montreal apartment, along with the wood that forms kitchen cabinets and counters. A black grand piano also offers a bold contrast.
In addition to this residence, Jean-Maxime Labrecque has designed another home in Montreal with a mirrored stairwell, wood floors and white walls.
Other renovations in the city include a free-standing, 1960s home overhauled by Appareil Architecture and residence with a trapeze net stretched over an atrium by Robitaille Curtis.


nint(3f) - [FORTRAN:INTRINSIC:NUMERIC:TYPE] Nearest whole number
elemental function nint(x [, kind=NN]) result(ANSWER)
real(kind=??),intent(in) :: X integer(kind=NN) :: ANSWER
NINT(X) rounds its argument to the nearest whole number with its sign preserved.The user must ensure the value is a valid value for the range of the KIND returned. If the processor cannot represent the result in the kind specified, the result is undefined.
If X is greater than zero, NINT(X) has the value INT(X+0.5).
If X is less than or equal to zero, NINT(X) has the value INT(a-0.5).
X The type of the argument shall be REAL. KIND (Optional) A constant INTEGER expression indicating the kind parameter of the result. Otherwise, the kind type parameter is that of default INTEGER type.
ANSWER The result is the integer nearest X, or if there are two integers equally near X, the result is whichever such integer has the greater magnitude.
Sample program:
program demo_nint implicit none integer,parameter :: dp=kind(0.0d0) real :: x4 = 1.234E0 real(kind=dp) :: x8 = 4.721_dpResults! basic use print *, nint(x4), nint(x8),nint(-x8)
! issues ISSUES: block use,intrinsic :: iso_fortran_env, only : int8, int16, int32, int64 integer :: icheck ! make sure input is in range for the type returned write(*,*)Range limits for typical KINDS: write(*,(1x,g0,1x,g0)) & & int8,huge(0_int8), & & int16,huge(0_int16), & & int32,huge(0_int32), & & int64,huge(0_int64)
! the standard does not require this to be an error ... x8=12345.67e15 ! too big of a number icheck=selected_int_kind(ceiling(log10(x8))) write(*,*)Any KIND big enough? ICHECK=,icheck print *, These are all wrong answers for ,x8 print *, nint(x8,kind=int8) print *, nint(x8,kind=int16) print *, nint(x8,kind=int32) print *, nint(x8,kind=int64) endblock ISSUES
end program demo_nint
> 1 5 -5 > Range limits for typical KINDS: > 1 127 > 2 32767 > 4<PHONE_NUMBER> > 8<PHONE_NUMBER>854775807 > Any KIND big enough? ICHECK= -1 > These are all wrong answers for 1.234566949990144E+019 > 0 > 0 > -2147483648 > -9223372036854775808
[[FORTRAN 77]] and later, with KIND argument [[Fortran 90]] and later
ceiling(3), floor(3)
| nint (3fortran) | February 11, 2021 |


Epoch DHTML JavaScript Calendar – Getting Started
For those who want to dive in, check out the minimum code required page to see the bare minimum you need to run Epoch.
Introduction
Epoch is a fast, low-footprint, high-powered JavaScript Calendar for use on websites which demand high interactivity from their users. Epoch can be used as a datepicker or inline calendar. Epoch is fully standards-compliant, with minimal allotments for obsolete browsers like IE4/Netscape 4, and commonly-used browsers that deviate from web standards. As a result, Epoch will work for virtually all users with JavaScript enabled – the dominant browsers out there all support it! More importantly, because of its standards-compliance, Epoch is future-compatible (confirmed with Internet Explorer 7!) and its use of many of the object-oriented features of JavaScript makes it easier for the developer to maintain and extend.
Thanks for your interest in Epoch!
Nick Baicoianu
Epoch Lead Developer
License
Epoch is free for non-commercial use. If you are using Epoch for a commercial website (e-commerce, corporate site, intranet, etc), please purchase a license. – you'll get free upgrades, full access to the Epoch source code, as well as email support in setting up your calendar. We think you'll find it's worth the time you saved implementing Epoch versus other solutions.
Who Epoch is For
Website Owners
Epoch's ease of deployment and maintenance makes it a prime choice for any website. Hoteliers and events websites will find the holiday and blackout date features of Epoch incredibly useful in detailing their offerings. Bloggers can use Epoch to navigate their archives with ease. High-traffic sites will appreciate the low bandwidth footprint (24k for all files - compressed) of Epoch when upgrading their user's experiences.
Never has it been so simple and inexpensive to upgrade your site than with Epoch.
Developers
Epoch is designed to be as easy for the developer to deploy as it is for the user to interact with it. Integrating Epoch into your web pages doesn't require any hacks or complicated code because of its object-oriented structure. If you aren't familiar with object-oriented programming in JavaScript (or any other language, for that matter), don't fret! Using Epoch's features requires no special knowledge outside of basic JavaScript and HTML. Everything you need to get Epoch running on your web pages is included in this file and the example file.
Your Site's Visitors
Before you add Epoch to your web pages, consider your audience: are they advanced users who use the latest technology, or less-experienced users who may not be using "modern browsers" (i.e. Internet Explorer 4 and below, Netscape 4 and below, IE for Mac)? You can easily check your users' browsers if your webserver has a web stats program installed – if you use cPanel you have several options available. If you think your users are the less-experienced type, we recommend you use Epoch only for non-critical applications or in popup mode—that way if your users' browsers can't run Epoch—or have switched off JavaScript entirely, they won't be left out in the cold.
The Basics
More information on setting up Epoch is available at the Epoch Setup Page.
For those who want to dive in, check out the minimum code required page to see the bare minimum you need to run Epoch.
1. Uploading Epoch
Before you can do anything, you must upload the Epoch files (via FTP or SCP/SFTP) to a web-accessible directory on your webserver. For example, if you site's root directory is /var/www/mysite/ (UNIX/Linux), or C:\inetpub\mysite\ (for Windows), you can place them in any subdirectory, i.e. /var/www/mysite/javascript/, or C:\inetpub\mysite\css\.
2. Linking to the Epoch files
Before you can begin using Epoch in your page, you need to include the files necessary for Epoch to function and look good. There are two files: a JavaScript file (epoch_classes.js), and a css file(epoch_styles.css).
The links to both files should go in the  section of any webpage that uses Epoch – make sure they point to the correct subdirectory!

<title>My Cool Calendar Page</title>
<link rel="stylesheet" type="text/css" href="[path_to_css]/epoch_styles.css" />

3. Initializing and using Epoch in your Page
Once you've added the 2 files in the page head, you can start using Epoch! To add an Epoch calendar to you page you will first need to create an empty HTML element in the page body to physically hold the calendar;
, <input>, ,
 are all acceptable elements. The containing element should be placed at the exact location you want Epoch to appear.
Syntax
When you've created the container element, you need to initialize an Epoch calendar for each one. You can do this using a line of code like this:
calendar1 = new Epoch(name,mode,container,multiselect);
The Initialization Variables
- name
- A unique name for the calendar – this will become the base for the calendar's id attribute.
- mode
- The mode the calendar will run in – can be flat or popup
- container
- A JavaScript resource pointing to the HTML element that will hold the calendar. Usually accessed through the JavaScript method document.getElementById('container_id').
- multiselect
- Whether you can select multiple dates – true for yes, false for no.
This code must lie inside a

In a separate .js file (using the code in blue above)

<title>My Cool Calendar Page</title>
<link rel="stylesheet" type="text/css" href="[path_to_css]epoch_styles.css" />

Inside the containing HTML element (flat mode only)—not recommended

My cool calendars

Check out our great events calendars!

<input id="calendar2_container" type="text" name="date" />

Summary
In short, integrating Epoch into your webpage requires only 4 basic steps:
- Copy epoch_classes.js and epoch_styles.css to your web server's JavaScript and CSS directories.
- Include the Epoch files in your page's —be sure to include the correct path to the files!
- Add containing elements in your page's body where you want Epoch to appear. Each element should have a unique id attribute.
- Initialize a calendar for each containing element.
For a demo that shows the minimum required code to use Epoch, click here.
Tools
The code in epoch_classes.js is heavily commented to make modification easier – developers for more highly-trafficked sites should compress their JavaScript and CSS files using MeanFreePath's Free JavaScript and CSS code compactor. The code compactor reduces your files sizes by up to 50% by removing comments and unecessary whitespace from your files. The results are faster loading times for your users, and JavaScript code that is extremely difficult for humans to read. We recommend you keep a non-compacted version of epoch_classes.js for your own reference.
Support and Other Resources
We at MeanFreePath want your development experience with Epoch to go as smoothly as possible. Here are some resources to help make installation and customization easier:


Driver tells police he's drunk after colliding with power pole north of Oliver
by Kathy MichaelsBeing honest won't likely be enough to get an Osoyoos man off the hook for some dangerous driving.
A 52-year-old man driving a Ford F-250 pickup truck on Highway 97 at Island Road north of Oliver Nov. 19 at 9:10 p.m. went off-road, striking a power pole.
The collision resulted in wires snapping which left power out in the area for approximately three hours, RCMP said.
When police arrived the Osoyoos man allegedly told the RCMP he was drunk. A roadside alcohol screening test confirmed this and he was issued a 90 day driving prohibition under the Motor Vehicle Act as well as had his vehicle impounded for 30 days.
"The man was fortunate to not have received any serious injuries," Sgt Jason Bayda said in a press release. "It is even more fortunate he did not hurt any innocent bystanders. With all of the education out there on the risks of driving while impaired it is unfathomable we still have some people choosing to do so, putting theirs and others lives at risk."
If you see an impaired driver, pull over and call 911 and report as much of the following you can:
- location
- direction of travel
- vehicle make, model, colour
- offending vehicle licence plate
- description of driver
- why you suspect impairment (vehicle weaving, driving erratic, driver openly consuming alcohol, etc.)


Unvalidated Assumptions
I find myself explaining this more and more often as friends of mine talk about ideas that they are considering/pursuing.
These conversations inevitably lead to talk about some sort of product. More often than not, what I hear for their version of an MVP is is far too large, focused on the wrong things (features, UI), and most importantly – built on unvalidated assumptions.
When thinking through ideas, the initial focus should not be product. The focus should be on the problem. Understand the problem deeply and boil it down to its basic principles. What’s the core issue, who does it affect, how acute the pain is, what are the current solutions, etc.
The most important thing during this exercise is not just to understand the problem – but to also get a deep understanding of your assumptions. Excited founders & startup people tend to speak in absolutes when talking about problems. ie - People can’t find good restaurants to eat, people hate using their CRM, etc.
Baked into these problem statements are always several unvalidated assumptions. In the restaurant example above - while it may be true, the assumption is that people actually care enough to do something about it. That may or may not be true – and if true, is that group of people large enough to justify building a service for? And even further – in that set of people, who is actually willing to pay for a solution (or is that set large enough to serve ads to)?
Building on top of unvalidated assumptions is risky – it’s easy to spend lots of time building something that nobody wants or can’t stand on its own two feet.
So make sure that before you start talking about a product or an MVP to qualify your problem statement, understand your assumptions, and then go out to validate those assumptions.
You Might Also Like
- Is This Idea For Me?
- Minimum Viable Product
- Sharpen the Contradictions
- Transparency
- On Failure - Fab, Aereo, FanTV


Mega Menu
before
One
One One
One Two
One Three
One Four
Two
Two One
Two One One
Two One Two
Two One Three
Two One Four
Two Two
Two Two One
Two Two Two
Two Two Three
Two Two Four
Two Three
Two Three One
Two Three Two
Two Three Three
Two Three Four
Three
Four
after


Investigation Request Form
Client First Name / Last Name
date of incident
Next court Date
Case Number
Attorney in Charge
Prosecutor
vic
wit
officer
First Name / Last Name
Phone #
witness notes
vic
wit
officer
First Name / Last Name
Phone #
witness notes
vic
wit
officer
First Name / Last Name
Phone #
witness notes


This is the simple case.
This one has a line break.
This one has a line break with a line-ending space.
this and the other


Our music concerts are well-publicised and well-attended and sponsors enjoy brand exposure throughout the Arts community. Become our sponsor now!
Our current/former sponsors
| Sponsor Name | ||
|---|---|---|
| Townsville City Council | The Council's Partnerships and Sponsorships scheme provides vital core funding which enables us to maintain the administrative base for all our other activities, and also provides the premises which house our office space. The Council also assists with the performance venues for our concerts and workshops. | |
| Queensland Government | The Gambling Community Benefit Fund has assisted us to obtain office equipment and sound and lighting equipment for our productions. |


React + Redux Introduction
@risijara
Team Darwin
What is React?
React is a library for building composable user interfaces. It encourages the creation of reusable UI components which present data that changes over time.
Built by Instagram & Facebook
React is not a MVC framework
React is just the V in MVC
React is:
Declarative
Component-Based
Fast
Declarative
Imperative way:
==
Go to school
Get into classes
Do homework
Do tests
...
Apply a degree test
Declarative way:
==
Get a software engineering degree
Declarative
let imperativeWay = () => {
if (user.likes()) {
if (!hasBlue()) {
removeGrey();
addBlue();
}
} else {
if (hasBlue()) {
removeBlue();
addGrey();
}
}
}
let declarativeWay = () => {
if (this.state.liked) {
return ;
} else{
return ;
}
}
Component Based
Component Based
Fast
React is so fast because it never talks to the DOM directly. React maintains a fast in-memory representation of the DOM.
render() methods return a description of the DOM, and React can diff this description with the in-memory representation to compute the fastest way to update the browser.
Fast
Whenever you call setState on a component, React will mark it as dirty.Fast
At the end of the event loop, React looks at all the dirty components and re-renders them.Fast
React works with a novel diff algorithm with complexity O(n)React Components
Components let you split the UI into independent, reusable pieces, and think about each piece in isolation.
class Greeting extends React.Component {
render() {
return Hello, {this.props.name}
;
}
}
The Component Lifecycle
Each component has several "lifecycle methods" that you can override to run code at particular times in the process.
Mounting: Methods are called when an instance of a component is being created and inserted into the DOM.
The Component Lifecycle
Updating: Methods are called when a component is being re-rendered.
Unmounting: Methods are called when a component is being removed from the DOM.
Redux is a predictable state container for JavaScript apps.
It helps you write applications that behave consistently, run in different environments (client, server, and native), and are easy to test.
React + Redux Unidirectional Data Flow
Immutability = Clarity & Performance
if ( previousStoreState !== storeState ) { ...


Input fields with different formatting options used
Name Prefix:
First name:
Last name:
Company:
Your Message:
Numbers of staffs:
Turnover:
Registration number:


TweetSafe is a task that is encaptured in SafeYou+ project, which is an extension of the existing SafeYou project. SafeYou+ aims to address the identified needs among EU institutions, education providers, national anti-doping organizations, sports authorities etc, in order to promote all healthy aspects of sports and exercise. The project’s goal is to identify, collect, analyze and extract useful information and features about doping cases, prohibited substances for athletes of various sports and events. Our team's (Informatics Department, Aristotle University of Thessaloniki, Greece) contribution to the project (WP4, A23-A24) can be summarized as follows: We support data collection & integration, design and implementation of data collection processes from external sources, with an emphasis on social networks. We also provide analysis of technical specifications and methods of classifying them, in order to facilitate their efficient modeling. We develop pre-processing & data modeling tools, design techniques for removing noise from data (data cleansing) and use of suitable models of representation of information sources (endogenous, internal and external).
214K
214.498 distinct tweets
3841
3841 distinct Youtube comments
79K
78636 distinct users
142K
141.879 distinct words


2048
Score: 0
One
Two
Three
Four
Five
Six
Seven
Eight
Nine
Ten
Eleven
Twelve
Thirteen
Fourteen
Fifteen
Sixteen


new Node(x, y)
A node in grid. This class holds some basic information about a node and custom attributes may be added, depending on the algorithms' needs. Note: if you want to monitor how your algorithm works, it's better to use the `set' and `get' methods when accessing the nodes' attriubtes since it will be easier to add hooks.
- Source:
- ./src/core/Node.js, line 13
Parameters:
| Name | Type | Description |
|---|---|---|
x |
number | The x coordinate of the node on the grid. |
y |
number | The y coordinate of the node on the grid. |
Properties
-
<private> parent :Array.<number, number>
-
This node's parent node. This variable will be used to construct the path after the search is done.
- Source:
- ./src/core/Node.js, line 38
-
<private> walkable :boolean
-
Whether this node can be walked through.
- Source:
- ./src/core/Node.js, line 31
-
<private> x :number
-
The x coordinate of the node on the grid.
- Source:
- ./src/core/Node.js, line 19
-
<private> y :number
-
The y coordinate of the node on the grid.
- Source:
- ./src/core/Node.js, line 25
Methods
-
get(attr) → {*}
-
Generic getter of the attribute of the node.
- Source:
- ./src/core/Node.js, line 60
Parameters:
Name Type Description attr
string Attribute name Returns:
The value of the attribute.- Type
- *
-
set(attr, value)
-
Generic setter of the attribute of the node.
- Source:
- ./src/core/Node.js, line 50
Parameters:
Name Type Description attr
string Attribute name. value
* Attribute value.


addons modifies minikube addons files using subcommands like "minikube addons enable dashboard"
minikube addons SUBCOMMAND [flags] [options]
Use "minikube <command> --help" for more information about a given command.
Use "minikube options" for a list of global command-line options (applies to all commands).


Ben Affleck coaches a basketball team in 'The Way Back' trailer
by Wade SheridanNov. 14 (UPI) -- Ben Affleck is a struggling alcoholic who starts coaching a high school basketball team in the new trailer for The Way Back.
The clip, released on Thursday, features Affleck as Jack Cunningham, a former high school basketball star who is offered the coaching job after the original coach has a heart attack.
Jack, who is seen drinking beer throughout the day and while driving, takes on the job and tries to help the team that hasn't been to the playoffs since he was a player.
Becoming a coach starts a positive change in Jack's life which allows him to stop drinking and to reconnect with his ex-wife while his team starts winning more games.
The Way Back, from director Gavin O'Connor who worked with Affleck on The Accountant, is set to arrive in theaters on March 6.
Al Madrigal, Michaela Watkins, Janina Gavankar and Glynn Turman also star.
Affleck is also set to star in director Robert Rodriguez's thriller Hypnotic and in director Ridley Scott's The Last Duel, which will reunite him with Matt Damon.


1.4. Calibration overview¶
An image of the sky contains counts from several sources. The task of data reduction (another name for image calibration) is to remove all non-celestial counts from the image and to correct for non-uniform sensitivity.
At the end of the previous notebook we arrived at an expression for the counts in a science image in terms of the sources of counts:
Solving for the counts just from the stars is as follows:
It is impossible to remove the noise from the raw image because the noise is random.
The dark current is typically calculated from a dark frame (aka dark image). Such an image has bias and read noise in it as well, so:
Once again, note that the noise cannot be removed.
1.4.1. This noise cannot be removed from CCD images¶
To demonstrate that you cannot remove the noise from an image, let’s construct an image with just stars and noise and try to subtract a noise image created with the same parameters. The amount of noise here is exaggerated to make it clear in the images.
import numpy as np
%matplotlib inline
from matplotlib import pyplot as plt
from astropy.visualization import hist
from astropy.stats import histogram
import image_sim as imsim
from convenience_functions import show_image
WARNING: AstropyDeprecationWarning: block_reduce was moved to the astropy.nddata.blocks module. Please update your import statement. [astropy.nddata.utils]
# Use custom style for larger fonts and figures
plt.style.use('guide.mplstyle')
<IP_ADDRESS>. First, some stars with noise¶
The image below shows stars (the larger “blobs” in the image) but shows quite a bit of noise as well (the much smaller “dots”).
image = np.zeros([2000, 2000])
gain = 1.0
noise_amount = 1500
stars_with_noise = imsim.stars(image, 50, max_counts=2000, fwhm=10) + imsim.read_noise(image, noise_amount, gain=gain)
show_image(stars_with_noise, cmap='gray', percu=99.9)
plt.title('Stars with noise')
Text(0.5, 1.0, 'Stars with noise')
<IP_ADDRESS>. Now an incorrect attempt at reducing noise¶
Notice that the call to the noise function has exactly the same arguments as above, in much the same way your camera’s electronics will have the same noise properties every time you read out an image.
However, the amount of noise has increased, not decreased. It’s much harder to pick out the stars in this image.
incorrect_attempt_to_remove_noise = stars_with_noise - imsim.read_noise(image, noise_amount, gain=gain)
show_image(incorrect_attempt_to_remove_noise, cmap='gray', percu=99.9)
1.4.2. Every image has noise¶
Every image, including calibration images like bias and dark frames, has noise. If we tried to calibrate images by taking a single bias image and a single dark image, the final result might well look worse than before the image is reduced.
For demonstration, we’ll see what happens below.
Note that here we construct realistic bias and dark, but leave read noise out of the flat; we’ll return to that point later.
<IP_ADDRESS>. First, set parameters for the CCD¶
These are the same as in the previous notebook, except for the read noise, which is 700\(e-\), 100 times larger than in the previous notebook.
gain = 1.0
star_exposure = 30.0
dark_exposure = 60.0
dark = 0.1
sky_counts = 20
bias_level = 1100
read_noise_electrons = 700
max_star_counts = 2000
<IP_ADDRESS>. Generate the images, with noise¶
bias_with_noise = (imsim.bias(image, bias_level, realistic=True) +
imsim.read_noise(image, read_noise_electrons, gain=gain))
dark_frame_with_noise = (imsim.bias(image, bias_level, realistic=True) +
imsim.dark_current(image, dark, dark_exposure, gain=gain, hot_pixels=True) +
imsim.read_noise(image, read_noise_electrons, gain=gain))
flat = imsim.sensitivity_variations(image)
realistic_stars = (imsim.stars(image, 50, max_counts=max_star_counts) +
imsim.dark_current(image, dark, star_exposure, gain=gain, hot_pixels=True) +
imsim.bias(image, bias_level, realistic=True) +
imsim.read_noise(image, read_noise_electrons, gain=gain)
)
<IP_ADDRESS>. Uncalibrated image¶
Below we display the uncalibrated image; in a moment we’ll compare it to the calibrated version. Even though they don’t stand out there really are stars in it.
plt.figure(figsize=(12, 12))
show_image(realistic_stars, cmap='gray', percu=99.9, figsize=(9, 9))
<Figure size 1200x1200 with 0 Axes>
<IP_ADDRESS>. Reduce (calibrate) the star image¶
First we calculate the dark current, scaled to the exposure time of our light image.
scaled_dark_current = star_exposure * (dark_frame_with_noise - bias_with_noise) / dark_exposure
Next, we subtract the bias and dark current from the star image and then apply the flat correction.
calibrated_stars = (realistic_stars - bias_with_noise - scaled_dark_current) / flat
show_image(calibrated_stars, cmap='gray', percu=99.9)
<IP_ADDRESS>. Reducing the image cleans up the image a bit¶
The stars stand more clearly than in the unreduced image.
This image does not look much better than the uncalibrated image, but remember that the read noise used in this simulated image, 700 \(e^-\) per pixel, is unrealistically high.
<IP_ADDRESS>. Reducing the image increases the noise in the image¶
The histogram below shows pixel values before and after calibration. The width of the distribution is a measure of the read noise. As expected, reducing the image increases the read noise. One reason one takes several calibration images of each type is to reduce the amount of noise in the calibration image. That will, in turn, keep the noise in the final image as small as possible.
plt.figure(figsize=(9, 9))
hist(calibrated_stars.flatten(), bins='freedman', label='calibrated star image', alpha=0.5)
hist(stars_with_noise.flatten(), bins='freedman', label='raw star image', alpha=0.5)
plt.legend()
plt.grid()
plt.xlabel('Count level in image')
plt.ylabel('Number of pixels with that count');


Season:
Competition End Date:
Maximum Weight: kg
Maximum Cost: $
Current Weight:
Current cost:
Are you sure you want to request to delete robot?


Shatta Wale gifts his award to Stonebwoy at 4Syte TV Awards
by Lizbeth BrownAward-winning dancehall artiste Charles Nii Armah Mensah Jnr. popularly known as Shatta Wale gifted his award to Stonebwoy at the just ended 4Syte TV Awards.
Shatta Wale after receiving the award for the ‘Most Popular Video’ decided to give it to the “Bawasaba” hitmaker.
The dancehall musician stated that he decided to gift his award to Stonebwoy to show how much he loves him.
The “My Level” hitmaker further stated that his beef with Stonebwoy is over adding that he is at peace with him.
“I know there is a whole lot of controversy about Shatta Wale and awards but I just want to present this award to Stonebwoy. I just want him to know that I love him so much. The beef is over and today I am giving my award to him”, Shatta Wale stated.
Watch the video below;
Stonebwoy in reacting to Shatta’s kind gesture got down from stage while performing to give Shatta Wale a heart hug.
Stonebwoy also performed his hit songs like Bawasaba, Hero, Mane Me, Shuga and several others as the crowd danced along in excitement.


At myusrn company, more info at linkedin.com/in/myusrn, github.com/myusrn and nuget.org/packages?q=by:myusrn, one of our main priorities is the privacy of our visitors. This Privacy Policy document contains types of information that is collected and recorded by myusrn company and how we use it.
If you have additional questions or require more information about our Privacy Policy, do not hesitate to contact us through email at<EMAIL_ADDRESS>.
myusrn company follows a standard procedure of using log files. These files log visitors when they visit websites. All hosting companies do this and a part of hosting services' analytics. The information collected by log files include internet protocol (IP) addresses, browser type, Internet Service Provider (ISP), date and time stamp, referring/exit pages, and possibly the number of clicks. These are not linked to any information that is personally identifiable. The purpose of the information is for analyzing trends, administering the site, tracking users' movement on the website, and gathering demographic information.
You may consult this list to find the Privacy Policy for each of the advertising partners of myusrn company.
Third-party ad servers or ad networks uses technologies like cookies, JavaScript, or Web Beacons that are used in their respective advertisements and links that appear on myusrn company, which are sent directly to users' browser. They automatically receive your IP address when this occurs. These technologies are used to measure the effectiveness of their advertising campaigns and/or to personalize the advertising content that you see on websites that you visit.
Note that myusrn company has no access to or control over these cookies that are used by third-party advertisers.
myusrn company's Privacy Policy does not apply to other advertisers or websites. Thus, we are advising you to consult the respective Privacy Policies of these third-party ad servers for more detailed information. It may include their practices and instructions about how to opt-out of certain options. You may find a complete list of these Privacy Policies and their links here: Privacy Policy Links.
You can choose to disable cookies through your individual browser options. To know more detailed information about cookie management with specific web browsers, it can be found at the browsers' respective websites. What Are Cookies?
Another part of our priority is adding protection for children while using the internet. We encourage parents and guardians to observe, participate in, and/or monitor and guide their online activity.
myusrn company does not knowingly collect any Personal Identifiable Information from children under the age of 13. If you think that your child provided this kind of information on our website, we strongly encourage you to contact us immediately and we will do our best efforts to promptly remove such information from our records.
This Privacy Policy applies only to our online activities and is valid for visitors to our website with regards to the information that they shared and/or collect in myusrn company. This policy is not applicable to any information collected offline or via channels other than this website. Our GDPR Privacy Policy was generated from the Privacy Policy Generator.
By using our website, you hereby consent to our Privacy Policy and agree to its Terms and Conditions.