Match Play. Red leads 2-0 to 7. How should Red play 51?
pips Red=127 White=124
(CorrectAnswer= 0/0, ErrorScore= 0)
This is a difficult problem that posted on the USBGF site a couple of months ago. Here is the solution that I posted there:
The two blots in White’s home board give Red the licence to make a bold play. The question is what is the right game plan?
Red can attempt a blitz by hitting on the ace-point or play to prime White’s rear checker.
For the blitz Red can play 9/8, 6/1* or 6/5, 6/1*. Over the board it would be difficult to choose between the two moves, but the rollouts show that 6/5, 6/1* is the better play, partly because it doesn’t give White the super-joker of double fours!
What about priming? Over the board 9/4, 6/5 was played but it turns out that 13/8, 6/5 is the stronger play. To hit on Red’s mid-point White must give up his/her mid-point while a hit on Red’s 8-pt or 9-pt will generate multiple return shots. 13/8, 6/5 is the play that takes advantage of White’s home board weakness better than any other move.
This is not an easy problem, but the key is to see that priming is the better game plan, because of White’s home board weaknesses. A passive move such as 13/7 does not meet the demands of the position. Red can play aggressively here and should do so.
The two blots in White’s home board give Red the licence to make a bold play. The question is what is the right game plan?
Red can attempt a blitz by hitting on the ace-point or play to prime White’s rear checker.
For the blitz Red can play 9/8, 6/1* or 6/5, 6/1*. Over the board it would be difficult to choose between the two moves, but the rollouts show that 6/5, 6/1* is the better play, partly because it doesn’t give White the super-joker of double fours!
What about priming? Over the board 9/4, 6/5 was played but it turns out that 13/8, 6/5 is the stronger play. To hit on Red’s mid-point White must give up his/her mid-point while a hit on Red’s 8-pt or 9-pt will generate multiple return shots. 13/8, 6/5 is the play that takes advantage of White’s home board weakness better than any other move.
This is not an easy problem, but the key is to see that priming is the better game plan, because of White’s home board weaknesses. A passive move such as 13/7 does not meet the demands of the position. Red can play aggressively here and should do so.
1. Cubeful 2-ply 13/8 6/5 Eq.: +0.335 0.593 0.205 0.007 - 0.407 0.078 0.003 2. Cubeful 2-ply 9/4 6/5 Eq.: +0.280 (-0.056) 0.579 0.193 0.005 - 0.421 0.078 0.002 3. Cubeful 2-ply 13/8 9/8 Eq.: +0.261 (-0.074) 0.572 0.173 0.005 - 0.428 0.065 0.001 4. Cubeful 2-ply 13/7 Eq.: +0.249 (-0.086) 0.569 0.175 0.005 - 0.431 0.067 0.002 5. Cubeful 2-ply 9/8 6/1* Eq.: +0.192 (-0.143) 0.549 0.208 0.005 - 0.451 0.088 0.003


To-do list!
Enter your to-do list items here and mark whether they are finished or not.
Enter your task here.
Is the task done?
Submit Task
Task to complete
Task completed?
Complete the task
Delete
Edit


$def with (**kwargs)
This is template file 4 in the template directory.
You passed $len(kwargs) arguments:


--- layout: default title: Contact slug: contact ---
You have questions? We got answers. Please let us know what is on your mind: hola@sustainoss.org


public static interface ActionBar.TabListener
ActionBar.Tab
is focused, unfocused, added, or
removed.
Note: This interface is included in the support library for compatibility
with API level 7 and higher. If you're developing your app for API level 11 and higher
only, you should instead use the framework android.app.ActionBar.TabListener
interface.
For information about how to use action bar tabs, read the Action Bar API guide.
| Modifier and Type | Method and Description |
|---|---|
void |
onTabReselected(ActionBar.Tab tab,
android.support.v4.app.FragmentTransaction ft)
Called when a tab that is already selected is chosen again by the user.
|
void |
onTabSelected(ActionBar.Tab tab,
android.support.v4.app.FragmentTransaction ft)
Called when a tab enters the selected state.
|
void |
onTabUnselected(ActionBar.Tab tab,
android.support.v4.app.FragmentTransaction ft)
Called when a tab exits the selected state.
|
void onTabSelected(ActionBar.Tab tab, android.support.v4.app.FragmentTransaction ft)
tab
- The tab that was selectedft
- A FragmentTransaction
for queuing fragment operations to execute
during a tab switch. The previous tab's unselect and this tab's select will be
executed in a single transaction. This FragmentTransaction does not support
being added to the back stack.void onTabUnselected(ActionBar.Tab tab, android.support.v4.app.FragmentTransaction ft)
tab
- The tab that was unselectedft
- A FragmentTransaction
for queuing fragment operations to execute
during a tab switch. This tab's unselect and the newly selected tab's select
will be executed in a single transaction. This FragmentTransaction does not
support being added to the back stack.void onTabReselected(ActionBar.Tab tab, android.support.v4.app.FragmentTransaction ft)
tab
- The tab that was reselected.ft
- A FragmentTransaction
for queuing fragment operations to execute once
this method returns. This FragmentTransaction does not support being added to
the back stack.


Portfolio Page
Testing this button
Self taught computer science student, working on robotics, artificial intellingence and sofware development
Porfolio
ITAndroids Website
CS50 Repository
testing this


Crate sdl2_mixer[stability dashboard] [collapse all] [expand all] [src]
A binding for SDL2_mixer.
Structs
| Channel | Sound effect channel. |
| Chunk | The internal format for an audio chunk. |
| Group | Sound effect channel grouping. |
| InitFlag | |
| Music | This is an opaque data type used for Music data. |
Enums
| Fading | Fader effect type enumerations |
| MusicType | Music type enumerations |
Statics
pub static AudioF32: AudioFormat = ll::AUDIO_F32 |
|
pub static AudioF32LSB: AudioFormat = ll::AUDIO_F32LSB |
|
pub static AudioF32MSB: AudioFormat = ll::AUDIO_F32MSB |
|
pub static AudioF32SYS: AudioFormat = ll::AUDIO_F32SYS |
|
pub static AudioS16: AudioFormat = ll::AUDIO_S16 |
|
pub static AudioS16LSB: AudioFormat = ll::AUDIO_S16LSB |
|
pub static AudioS16MSB: AudioFormat = ll::AUDIO_S16MSB |
|
pub static AudioS16SYS: AudioFormat = ll::AUDIO_S16SYS |
|
pub static AudioS32: AudioFormat = ll::AUDIO_S32 |
|
pub static AudioS32LSB: AudioFormat = ll::AUDIO_S32LSB |
|
pub static AudioS32MSB: AudioFormat = ll::AUDIO_S32MSB |
|
pub static AudioS32SYS: AudioFormat = ll::AUDIO_S32SYS |
|
pub static AudioS8: AudioFormat = ll::AUDIO_S8 |
|
pub static AudioU16: AudioFormat = ll::AUDIO_U16 |
|
pub static AudioU16LSB: AudioFormat = ll::AUDIO_U16LSB |
|
pub static AudioU16MSB: AudioFormat = ll::AUDIO_U16MSB |
|
pub static AudioU16SYS: AudioFormat = ll::AUDIO_U16SYS |
|
pub static AudioU8: AudioFormat = ll::AUDIO_U8 |
|
pub static DEFAULT_CHANNELS: int = 2 |
Defualt channels: Stereo. |
pub static DEFAULT_FORMAT: AudioFormat = ll::AUDIO_S16SYS |
The suggested default is signed 16bit samples in host byte order. |
pub static DEFAULT_FREQUENCY: int = 22050 |
Good default sample rate in Hz (samples per second) for PC sound cards. |
pub static InitFlac: InitFlag = BitFlags { bits: $value } |
|
pub static InitFluidSynth: InitFlag = BitFlags { bits: $value } |
|
pub static InitMod: InitFlag = BitFlags { bits: $value } |
|
pub static InitModPlug: InitFlag = BitFlags { bits: $value } |
|
pub static InitMp3: InitFlag = BitFlags { bits: $value } |
|
pub static InitOgg: InitFlag = BitFlags { bits: $value } |
|
pub static MAX_VOLUME: int = 128 |
Maximum value for any volume setting. |
Traits
| LoaderRWops | Loader trait for RWops |
Functions
| allocate_channels | Set the number of channels being mixed. |
| close_audio | Shutdown and cleanup the mixer API. |
| get_chunk_decoder | Get the name of the indexed sample chunk decoder. |
| get_chunk_decoders_number | Get the number of sample chunk decoders available from the Mix_GetChunkDecoder function. |
| get_linked_version | Returns the version of the dynamically linked SDL_mixer library |
| get_music_decoder | Get the name of the indexed music decoder. |
| get_music_decoders_number | Get the number of music decoders available. |
| get_paused_channels_number | |
| get_playing_channels_number | |
| init | Loads dynamic libraries and prepares them for use. Flags should be one or more flags from InitFlag. |
| open_audio | Open the mixer with a certain audio format. |
| query_spec | Get the actual audio format in use by the opened audio device. |
| quit | Cleans up all dynamically loaded library handles, freeing memory. |
| reserve_channels | Reserve num channels from being used when playing samples when passing in -1 as a channel number to playback functions. |
| set_channel_finished | When channel playback is halted, then the specified channel_finished function is called. |
| unset_channel_finished |
Type Definitions
| AudioFormat |


|
F´ Flight Software - C/C++ Documentation
NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
|
BufferManager
is a passive ISF component. It allocates and deallocates variable-sized buffers from a fixed-size store.
| Requirement | Description | Rationale | Verification Method |
|---|---|---|---|
| ISF-BM-001 | BufferManager shall maintain a fixed-size store and shall provide a callee port on which another component may request and receive variable-size buffers allocated from the store. | This requirement provides variable-sized buffers that may be passed between components by reference. Such buffers are useful for transferring large data items of varying length, such as file packets and images. For such data items, a fixed-size buffer such as Fw::ComBuffer is not practical. | Test |
| ISF-BM-002 | BufferManager shall provide an input port on which a component that has been given a buffer may return the buffer for deallocation. | Deallocation prevents the fixed-size store from becoming exhausted. Note that the component returning the buffer is generally the receiver, while the component requesting the buffer is generally the sender. See the sequence diagram below. | Test |
The design of BufferManager
assumes the following:
BufferManager
has some maximum number of outstanding allocations, set at component initialization, that is never exceeded.BufferManager
has a fixed size, set at component initialization. This fixed size is never exceeded by the outstanding allocations.| Name | Type | Role |
|---|---|---|
timeCaller | Fw::Time | TimeGet |
tlmOut | Fw::Tlm | Telemetry |
eventOut | Fw::LogEvent | LogEvent |
| Name | Type | Kind | Purpose |
|---|---|---|---|
bufferSendIn | Fw::BufferSend | guarded input | Receives buffers for deallocation |
bufferGetCallee | Fw::BufferGet | guarded input (callee) | Receives requests for allocated buffers and returns the buffers |
BufferManager
maintains the following constants, initialized when the component is instantiated:
BufferManager
maintains the following state:
The identifiers I are 32-bit unsigned integers.
When BufferManager
receives a request for a buffer of size s on bufferGetCallee, it carries out the following steps:
Otherwise
a. Assert that the size s' of allocationQueue is less than or equal to allocationQueueDepth.
b. If *s' = allocationQueueDepth*, then issue an *AllocationQueueFull*
event and return an invalid buffer.
c. Otherwise 1. Create a fresh identifier *I*. 2. Compute the pointer *P* that points to byte [*freeIndex*](#freeIndex) of [*store*](#store). 3. Create an allocation queue entry *E = (I, s)*. 4. Push *E* onto the front of [*allocationQueue*](#allocationQueue). 5. Increase [*freeIndex*](#freeIndex) by *s*. 6. Create and return a valid
Fw::Buffer
with managerID
equal to the instance number of this component, bufferID
equal to I, data
equal to P, and size
equal to s.
When BufferManager
receives notification of a free buffer on bufferSendIn, it carries out the following steps:
Otherwise
a. Pull an entry *(I, s)* off the back of the queue.
b. If I matches the identifier provided in the free notification, then decrease freeIndex by s.
c. Otherwise issue an *IDMismatch* event.
The following sequence diagram shows the procedure for sending a buffer from one component to another:
bufferGetCallee
port of BufferManager
.bufferSendIn
port of BufferManager
for deallocation.Dictionaries: HTML MD
| Document | Link |
|---|---|
| Design | Link |
| Code | Link |
| Unit Test | Link |
TODO


---
layout: default
permalink: /
bodyid: index
title: Calgary band for corporate events, weddings and cocktail parties
author: One Nite Band
description: One Nite Band is the all-in-one band for your next hit event in the Calgary area. We are a 10-piece dance band perfect for wedding receptions, corporate parties, or other large events. We are a small jazz combo for pre-event cocktails or to set a light mood during dinner. We are also a blues/rock band who can kick-start the heart of your party. Whatever you may need, we've got the music covered.
---
We are One Nite Band. You could say we're more than just a band. Because we're three.
10-Piece Dance Band
Big band, bigger repertoire. Guaranteed to make you boogie.
Perfect for wedding receptions and corporate events.
Small Jazz Combo
Low-key, easy-listening Jazz standards. Your choice of trio or quartet.
Perfect for setting a light mood during dinner or cocktails.
Blues+Rock Band
Blues and rock & roll from the '50s to now. Yes, we can add more cowbell.
Perfect for parties, big or small.


Just another fork of Nestable jQuery plugin developed by David Bushell
Drag & drop hierarchical list with mouse and touch compatibility (jQuery plugin)
Serialised Output (per list)
Nested List Output (per list)


An open conversation online about what we're doing now and what's next.
Code for America is the organization that helped inspire many of us that we can change our City.
We are a Code for America Brigade, which means we're volunteers that contribute our talents toward improving the way our local governments and community organizations use the web. Brigade is about action and you're here because you are someone who takes action. See what kind of things brigades do, or watch the inspirational TED talk given by Jennifer Pahlka, the founder of Code for America.
Check out our Meetup and Facebook to learn more about events and projects.
Can't make it to a meetup? No problem. We collaborate on projects, ask for help, and post wins to our Code for Fort Lauderdale Slack Channel where you can get new posts in email and reply. We welcome anyone to e-mail CodeForFTL at gmail.com to join our slack channel... you might just see something you're interested in helping with.
Follow us on Twitter!
Tweets by @codeforftlOur email address is (CodeForFTL at gmail.com) and we want to hear from you!
To create a more open and transparent Fort Lauderdale that caters to its citizens and visitors.
Rob works at the intersection of technology, civic engagement, and open government. Find him at the beach surfing waves while not binging on House of Cards.
Quyen is a software developer and tester. He is surrounded by the Internet of Things during the day and does web development at night. If it can be put on a map, then Quyen puts it on the map!
Ryan develops websites using the C#/.NET stack during the day, while filling his nights and weekends with civic hacking. He contributed the city of Fort Lauderdale to Click that 'hood and created a budget visualization using d3.js. Ryan looks forward to meeting others interested and working to make Fort Lauderdale more open and transparent.
...People trying to make Fort Lauderdale even better...
Built and Maintained by Code for Fort Lauderdale. Site Design Based on Bootstrap, Some Images Provided by The Noun Project and Aerostylaz.


"When you go to the hospital, they ask for so many things and even if you cannot afford them, you have to buy," said Ajumma Idris.
According to her, "the painful thing is that those government nurses don't always return what you didn't use."
The Nasarawa mother of two who had her second baby at a TBA's said: "I only had to buy Dettol and spirit. I used the clothes I wore when I had the senior child, and I took palm kernel oil and shea butter along with me. In the hospital I would have been ashamed of the smell and would have gone to buy baby oil or some other fancy item and new cloths.
"Many of us are forced to go out of our means in a quiet competition with other mothers who come to hospitals with nice things," Idris added.
Crowning this, Idris said, is the fact that TBA deliveries are at no cost beyond a few yards of fabrics or GL jewelry to say 'thank you', unlike the bills which have to be paid in the hospitals.


route.dart demo
This demo requires a server to be truly useful. Coming soon!
Dart is not running
One
Two
Redirect
Back
Google
Section One
Section Two
One
Two
Redirect
Back
Google
Section One
Section Two


--- layout: post status: publish published: true title: Messaging Framework author: display_name: Tomas Restrepo login: tomasr email<EMAIL_ADDRESS>url: http://winterdom.com/ author_login: tomasr author_email<EMAIL_ADDRESS>author_url: http://winterdom.com/ wordpress_id: 536 wordpress_url: http://winterdom.com/2003/01/messagingframework date: '2003-01-05 15:55:31 +0000' date_gmt: '2003-01-05 15:55:31 +0000' categories: - Web Services tags: [] comments: - id: 359 author: Justin Rudd author_email<EMAIL_ADDRESS>author_url: http://pinetree-tech.com/weblog/ date: '2003-01-05 22:18:28 +0000' date_gmt: '2003-01-05 22:18:28 +0000' content: |
What about KnowNow? http://www.knownow.com/products/architecture.html I've built software around it. I was working on a P2P solution based on it. It was working very well before the project got cancelled :-)
- id: 360 author: Joshua Prismon author_email<EMAIL_ADDRESS>author_url: http://www.prismon.com date: '2003-01-15 12:17:08 +0000' date_gmt: '2003-01-15 12:17:08 +0000' content: |This is also something that has interested me. In my view, a RESTFul interface on top of system that speaks XML, XSLT and XSD would be a very very effective tool. The only other thing that needs to be added is some sort of transactional layer. All of this could be layered on top of .NET with some simple attributes.
I've been giving a lot of thought lately to the idea of a messaging framework for server applications. What I'd like to have is a framework on top of which one could build applications that rely heavily on messaging, whether this means messaging queues, REST-style interactions over HTTP, or WebServices calls.
It's very rough, I know, but I find it an intriguing idea. One could conceivably create pretty complex applications and processing pipelines without too much work on it. Although working with any of the above technologies is fairly simple, in an abstract sense, doing so reliably is a different matter altogether. At least, it is if one wants to consider things like retry logic, poisoned messages, timeouts, both synchronous and asynchronous processing, etc.
Now, before anyone says anything, yes, I know products such as Microsoft Biztalk [1] exist that deal with some of this, but they are too heavyweight (or just overkill) sometimes, and cost is a real issue here, too. And while Biztalk does offer some of these services, it does so at a considerable expense in administration and it does mean giving up some control over the application (Something embeddable would be nice
Has anyone seen other products (preferably ones for the MS platform and that play well with .NET) that do something similar? I'd certainly appreciate any links anyone can share... Even if they are, this sounds like a cool project one could work on... perhaps I'll try some approach sometime if I get some free time.
[1] It doesn't help the fact that Biztalk might just dissapear entirely as a standalone product.


public abstract class LookAndFeel extends Object
LookAndFeel
, as the name implies, encapsulates a look and
feel. Beyond installing a look and feel most developers never need to
interact directly with LookAndFeel
. In general only developers
creating a custom look and feel need to concern themselves with this class.
Swing is built upon the foundation that each JComponent
subclass has an implementation of a specific ComponentUI
subclass. The ComponentUI
is often referred to as "the ui",
"component ui", or "look and feel delegate". The ComponentUI
subclass is responsible for providing the look and feel specific
functionality of the component. For example, JTree
requires
an implementation of the ComponentUI
subclass TreeUI
. The implementation of the specific ComponentUI
subclass is provided by the LookAndFeel
. Each
JComponent
subclass identifies the ComponentUI
subclass it requires by way of the JComponent
method getUIClassID
.
Each LookAndFeel
implementation must provide
an implementation of the appropriate ComponentUI
subclass by
specifying a value for each of Swing's ui class ids in the UIDefaults
object returned from getDefaults
. For example,
BasicLookAndFeel
uses BasicTreeUI
as the concrete
implementation for TreeUI
. This is accomplished by BasicLookAndFeel
providing the key-value pair "TreeUI"-"javax.swing.plaf.basic.BasicTreeUI"
, in the
UIDefaults
returned from getDefaults
. Refer to
UIDefaults.getUI(JComponent)
for defails on how the implementation
of the ComponentUI
subclass is obtained.
When a LookAndFeel
is installed the UIManager
does
not check that an entry exists for all ui class ids. As such,
random exceptions will occur if the current look and feel has not
provided a value for a particular ui class id and an instance of
the JComponent
subclass is created.
UIManager
each LookAndFeel
has the opportunity
to provide a set of defaults that are layered in with developer and
system defaults. Some of Swing's components require the look and feel
to provide a specific set of defaults. These are documented in the
classes that require the specific default.
ComponentUIs
typically need to set various properties
on the JComponent
the ComponentUI
is providing the
look and feel for. This is typically done when the ComponentUI
is installed on the JComponent
. Setting a
property should only be done if the developer has not set the
property. For non-primitive values it is recommended that the
ComponentUI
only change the property on the JComponent
if the current value is null
or implements
UIResource
. If the current value is null
or
implements UIResource
it indicates the property has not
been set by the developer, and the ui is free to change it. For
example, BasicButtonUI.installDefaults
only changes the
font on the JButton
if the return value from button.getFont()
is null
or implements UIResource
. On the other hand if button.getFont()
returned
a non-null
value that did not implement UIResource
then BasicButtonUI.installDefaults
would not change the
JButton
's font.
For primitive values, such as opaque
, the method installProperty
should be invoked. installProperty
only changes
the correspoding property if the value has not been changed by the
developer.
ComponentUI
implementations should use the various install methods
provided by this class as they handle the necessary checking and install
the property using the recommended guidelines.
LookAndFeel
need to
access the defaults if the value of the property being changed is
null
or a UIResource
. For example, installing the
font does the following:
JComponent c; Font font = c.getFont(); if (font == null || (font instanceof UIResource)) { c.setFont(UIManager.getFont("fontKey")); }If the font is
null
or a UIResource
, the
defaults table is queried with the key fontKey
. All of
UIDefault's
get methods throw a NullPointerException
if passed in null
. As such, unless
otherwise noted each of the various install methods of LookAndFeel
throw a NullPointerException
if the current
value is null
or a UIResource
and the supplied
defaults key is null
. In addition, unless otherwise specified
all of the install
methods throw a NullPointerException
if
a null
component is passed in.| Constructor and Description |
|---|
LookAndFeel() |
| Modifier and Type | Method and Description |
|---|---|
UIDefaults |
getDefaults()
Returns the look and feel defaults.
|
abstract String |
getDescription()
Return a one line description of this look and feel implementation,
e.g.
|
static Object |
getDesktopPropertyValue(String systemPropertyName,
Object fallbackValue)
Returns the value of the specified system desktop property by
invoking
Toolkit.getDefaultToolkit().getDesktopProperty() . |
Icon |
getDisabledIcon(JComponent component,
Icon icon)
Returns an
Icon with a disabled appearance. |
Icon |
getDisabledSelectedIcon(JComponent component,
Icon icon)
Returns an
Icon for use by disabled
components that are also selected. |
abstract String |
getID()
Return a string that identifies this look and feel.
|
LayoutStyle |
getLayoutStyle()
Returns the
LayoutStyle for this look
and feel. |
abstract String |
getName()
Return a short string that identifies this look and feel, e.g.
|
boolean |
getSupportsWindowDecorations()
Returns
true if the LookAndFeel returned
RootPaneUI instances support providing Window
decorations in a JRootPane . |
void |
initialize()
Initializes the look and feel.
|
static void |
installBorder(JComponent c,
String defaultBorderName)
Convenience method for setting a component's border property with
a value from the defaults.
|
static void |
installColors(JComponent c,
String defaultBgName,
String defaultFgName)
Convenience method for setting a component's foreground
and background color properties with values from the
defaults.
|
static void |
installColorsAndFont(JComponent c,
String defaultBgName,
String defaultFgName,
String defaultFontName)
Convenience method for setting a component's foreground,
background and font properties with values from the
defaults.
|
static void |
installProperty(JComponent c,
String propertyName,
Object propertyValue)
Convenience method for installing a property with the specified name
and value on a component if that property has not already been set
by the developer.
|
abstract boolean |
isNativeLookAndFeel()
If the underlying platform has a "native" look and feel, and
this is an implementation of it, return
true . |
abstract boolean |
isSupportedLookAndFeel()
Return
true if the underlying platform supports and or permits
this look and feel. |
static void |
loadKeyBindings(InputMap retMap,
Object[] keys)
Populates an
InputMap with the specified bindings. |
static ComponentInputMap |
makeComponentInputMap(JComponent c,
Object[] keys)
Creates a
ComponentInputMapUIResource from
keys . |
static Object |
makeIcon(Class<?> baseClass,
String gifFile)
Creates and returns a
UIDefault.LazyValue that loads an
image. |
static InputMap |
makeInputMap(Object[] keys)
Creates a
InputMapUIResource from keys . |
static JTextComponent.KeyBinding[] |
makeKeyBindings(Object[] keyBindingList)
Convenience method for building an array of
KeyBindings . |
void |
provideErrorFeedback(Component component)
Invoked when the user attempts an invalid operation,
such as pasting into an uneditable
JTextField
that has focus. |
String |
toString()
Returns a string that displays and identifies this
object's properties.
|
void |
uninitialize()
Uninitializes the look and feel.
|
static void |
uninstallBorder(JComponent c)
Convenience method for uninstalling a border.
|
public static void installColors(JComponent c, String defaultBgName, String defaultFgName)
null
or a UIResource
.c
- component to set the colors ondefaultBgName
- key for the backgrounddefaultFgName
- key for the foregroundNullPointerException
- as described in
exceptionsinstallColorsAndFont(javax.swing.JComponent, java.lang.String, java.lang.String, java.lang.String)
,
UIManager.getColor(java.lang.Object)
public static void installColorsAndFont(JComponent c, String defaultBgName, String defaultFgName, String defaultFontName)
null
or a UIResource
.c
- component set to the colors and font ondefaultBgName
- key for the backgrounddefaultFgName
- key for the foregrounddefaultFontName
- key for the fontNullPointerException
- as described in
exceptionsinstallColors(javax.swing.JComponent, java.lang.String, java.lang.String)
,
UIManager.getColor(java.lang.Object)
,
UIManager.getFont(java.lang.Object)
public static void installBorder(JComponent c, String defaultBorderName)
null
or an instance of UIResource
.c
- component to set the border ondefaultBorderName
- key specifying the borderNullPointerException
- as described in
exceptionspublic static void uninstallBorder(JComponent c)
UIResource
, it is set to null
.c
- component to uninstall the border onNullPointerException
- if c
is null
public static void installProperty(JComponent c, String propertyName, Object propertyValue)
UIResource
marker, this method
uses private state to determine whether the property has been set
by the client.c
- target component to set the property onpropertyName
- name of the property to setpropertyValue
- value of the propertyIllegalArgumentException
- if the specified property is not
one which can be set using this methodClassCastException
- if the property value has not been set
by the developer and the type does not match the property's typeNullPointerException
- if c
is null
, or the
named property has not been set by the developer and
propertyValue
is null
public static JTextComponent.KeyBinding[] makeKeyBindings(Object[] keyBindingList)
KeyBindings
. While this method is not deprecated, developers
should instead use ActionMap
and InputMap
for
supplying key bindings.
This method returns an array of KeyBindings
, one for each
alternating key-action
pair in keyBindingList
.
A key
can either be a String
in the format
specified by the KeyStroke.getKeyStroke
method, or
a KeyStroke
. The action
part of the pair is a
String
that corresponds to the name of the Action
.
The following example illustrates creating a KeyBinding
array
from six alternating key-action
pairs:
JTextComponent.KeyBinding[] multilineBindings = makeKeyBindings( new Object[] { "UP", DefaultEditorKit.upAction, "DOWN", DefaultEditorKit.downAction, "PAGE_UP", DefaultEditorKit.pageUpAction, "PAGE_DOWN", DefaultEditorKit.pageDownAction, "ENTER", DefaultEditorKit.insertBreakAction, "TAB", DefaultEditorKit.insertTabAction });If
keyBindingList's
length is odd, the last element is
ignored.
Supplying a null
value for either the key
or
action
part of the key-action
pair results in
creating a KeyBinding
with the corresponding value
null
. As other parts of Swing's expect non-null
values
in a KeyBinding
, you should avoid supplying null
as
either the key
or action
part of the key-action
pair.
keyBindingList
- an array of key-action
pairsKeyBindings
NullPointerException
- if keyBindingList
is null
ClassCastException
- if the key
part of the pair is
not a KeyStroke
or String
, or the
action
part of the pair is not a String
ActionMap
,
InputMap
,
KeyStroke.getKeyStroke(char)
public static InputMap makeInputMap(Object[] keys)
InputMapUIResource
from keys
. This is
a convenience method for creating a new InputMapUIResource
,
invoking loadKeyBindings(map, keys)
, and returning the
InputMapUIResource
.keys
- alternating pairs of keystroke-action key
pairs as described in loadKeyBindings(javax.swing.InputMap, java.lang.Object[])
InputMapUIResource
loadKeyBindings(javax.swing.InputMap, java.lang.Object[])
public static ComponentInputMap makeComponentInputMap(JComponent c, Object[] keys)
ComponentInputMapUIResource
from
keys
. This is a convenience method for creating a
new ComponentInputMapUIResource
, invoking loadKeyBindings(map, keys)
, and returning the ComponentInputMapUIResource
.c
- component to create the ComponentInputMapUIResource
withkeys
- alternating pairs of keystroke-action key
pairs as described in loadKeyBindings(javax.swing.InputMap, java.lang.Object[])
InputMapUIResource
IllegalArgumentException
- if c
is null
loadKeyBindings(javax.swing.InputMap, java.lang.Object[])
,
ComponentInputMapUIResource
public static void loadKeyBindings(InputMap retMap, Object[] keys)
InputMap
with the specified bindings.
The bindings are supplied as a list of alternating
keystroke-action key
pairs. The keystroke
is either
an instance of KeyStroke
, or a String
that identifies the KeyStroke
for the binding. Refer
to KeyStroke.getKeyStroke(String)
for the specific
format. The action key
part of the pair is the key
registered in the InputMap
for the KeyStroke
.
The following illustrates loading an InputMap
with two
key-action
pairs:
LookAndFeel.loadKeyBindings(inputMap, new Object[] { "control X", "cut", "control V", "paste" });
Supplying a null
list of bindings (keys
) does not
change retMap
in any way.
Specifying a null
action key
results in
removing the keystroke's
entry from the InputMap
.
A null
keystroke
is ignored.
retMap
- InputMap
to add the key-action
pairs tokeys
- bindings to add to retMap
NullPointerException
- if keys
is
non-null
, not empty, and retMap
is
null
KeyStroke.getKeyStroke(String)
,
InputMap
public static Object makeIcon(Class<?> baseClass, String gifFile)
UIDefault.LazyValue
that loads an
image. The returned value is an implementation of UIDefaults.LazyValue
. When createValue
is invoked on
the returned object, the image is loaded. If the image is non-null
, it is then wrapped in an Icon
that implements UIResource
. The image is loaded using Class.getResourceAsStream(gifFile)
.
This method does not check the arguments in any way. It is
strongly recommended that non-null
values are supplied else
exceptions may occur when createValue
is invoked on the
returned object.
baseClass
- Class
used to load the resourcegifFile
- path to the image to loadUIDefaults.LazyValue
; when resolved the
LazyValue
loads the specified imageUIDefaults.LazyValue
,
Icon
,
Class.getResourceAsStream(String)
public LayoutStyle getLayoutStyle()
LayoutStyle
for this look
and feel. This never returns null
.
You generally don't use the LayoutStyle
from
the look and feel, instead use the LayoutStyle
method getInstance
.
LayoutStyle
for this look and feelLayoutStyle.getInstance()
public void provideErrorFeedback(Component component)
JTextField
that has focus. The default implementation beeps. Subclasses
that wish different behavior should override this and provide
the additional feedback.component
- the Component
the error occurred in,
may be null
indicating the error condition is not directly
associated with a Component
public static Object getDesktopPropertyValue(String systemPropertyName, Object fallbackValue)
Toolkit.getDefaultToolkit().getDesktopProperty()
.
If the value of the specified property is null
,
fallbackValue
is returned.systemPropertyName
- the name of the system desktop property being queriedfallbackValue
- the object to be returned as the value if the system value is nullToolkit.getDesktopProperty(java.lang.String)
public Icon getDisabledIcon(JComponent component, Icon icon)
Icon
with a disabled appearance.
This method is used to generate a disabled Icon
when
one has not been specified. For example, if you create a
JButton
and only specify an Icon
via
setIcon
this method will be called to generate the
disabled Icon
. If null
is passed as
icon
this method returns null
.
Some look and feels might not render the disabled Icon
, in which
case they will ignore this.
component
- JComponent
that will display the Icon
,
may be null
icon
- Icon
to generate the disabled icon fromIcon
, or null
if a suitable
Icon
can not be generatedpublic Icon getDisabledSelectedIcon(JComponent component, Icon icon)
Icon
for use by disabled
components that are also selected. This method is used to generate an
Icon
for components that are in both the disabled and
selected states but do not have a specific Icon
for this
state. For example, if you create a JButton
and only
specify an Icon
via setIcon
this method
will be called to generate the disabled and selected
Icon
. If null
is passed as icon
this
methods returns null
.
Some look and feels might not render the disabled and selected
Icon
, in which case they will ignore this.
component
- JComponent
that will display the Icon
,
may be null
icon
- Icon
to generate disabled and selected icon fromnull
if a suitable
Icon
can not be generated.public abstract String getName()
public abstract String getID()
public abstract String getDescription()
public boolean getSupportsWindowDecorations()
true
if the LookAndFeel
returned
RootPaneUI
instances support providing Window
decorations in a JRootPane
.
The default implementation returns false
, subclasses that
support Window
decorations should override this and return
true
.
true
if the RootPaneUI
instances created by
this look and feel support client side decorationsJDialog.setDefaultLookAndFeelDecorated(boolean)
,
JFrame.setDefaultLookAndFeelDecorated(boolean)
,
JRootPane.setWindowDecorationStyle(int)
public abstract boolean isNativeLookAndFeel()
true
. For
example, when the underlying platform is Solaris running CDE
a CDE/Motif look and feel implementation would return true
.true
if this look and feel represents the underlying
platform look and feelpublic abstract boolean isSupportedLookAndFeel()
true
if the underlying platform supports and or permits
this look and feel. This method returns false
if the look
and feel depends on special resources or legal agreements that
aren't defined for the current platform.true
if this is a supported look and feelUIManager.setLookAndFeel(javax.swing.LookAndFeel)
public void initialize()
UIManager
when a
look and feel is installed as the current look and feel. This
method is invoked before the UIManager
invokes
getDefaults
. This method is intended to perform any
initialization for the look and feel. Subclasses
should do any one-time setup they need here, rather than
in a static initializer, because look and feel class objects
may be loaded just to discover that isSupportedLookAndFeel()
returns false
.public void uninitialize()
UIManager
when
the look and feel is uninstalled. For example,
UIManager.setLookAndFeel
invokes this when the look and
feel is changed.
Subclasses may choose to free up some resources here.
public UIDefaults getDefaults()
UIManager
when the
look and feel is set as the current look and feel and after
initialize
has been invoked.initialize()
,
uninitialize()
,
UIManager.setLookAndFeel(javax.swing.LookAndFeel)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2015, Oracle and/or its affiliates. All rights reserved.


Material Buttons (widget)
empty:
icon:
disabled:
toggable:
toggable+icon-off:
toggable+checked:
icon+tooltip:


--- layout: post title: How does on-portal time translate to revenue? date: 2006-06-21 00:00:00 categories: business interfaces-&-interaction mobile ---
How does on-portal time translate to revenue?: "However, I did find it surprising that O2's i-mode users spend twice as long online as their WAP users. It would be interesting to compare the respective i-mode and WAP data ARPU figures to see whether this translates into realisable revenue for O2,""


 At the top level of the hierarchy, both HDF4 and HDF5 have the same super-classes, such as Group and Dataset. At the bottom level of the hierarchy, HDF4 and HDF5 objects have their own implementation, such as H5Group, H5ScalarDs, H5CompoundDS, and H5Datatype.
Warning: HDF4 and HDF5 may have multiple links to the same object. Data objects in this model do not deal with multiple links. Users may create duplicate copies of the same data object with different pathes. Applications should check the OID of the data object to avoid duplicate copies of the same object.
HDF4 objects are uniquely identified by the OID of the (ref_id, tag_id) pair. The ref_id is the object reference count. tag_id is a pre-defined number to identify the type of object. For example, DFTAG_RI is for raster image, DFTAG_SD is for scientific dataset, and DFTAG_VG is for Vgroup.
HDF5 objects are uniquely identified by the OID or object reference. The OID is usually obtained by H5Rcreate(). The following example shows how to retrieve an object ID from a file.
// retrieve the object ID try { byte[] ref_buf = H5.H5Rcreate(h5file.getFID(), this.getFullName(), HDF5Constants.H5R_OBJECT, -1); long[] oid = new long[1]; oid[0] = HDFNativeData.byteToLong(ref_buf, 0); } catch (Exception ex) { }
| Modifier and Type | Field and Description |
|---|---|
protected FileFormat |
fileFormat
The file which contains the object
|
protected java.lang.String |
linkTargetObjName
The name of the Target Object that is being linked to.
|
protected long[] |
oid
Array of long integer storing unique identifier for the object.
|
static java.lang.String |
separator
The separator of object path, i.e.
|
| Constructor and Description |
|---|
HObject()
Constructs an instance of a data object without name and path.
|
HObject(FileFormat theFile,
java.lang.String theName,
java.lang.String thePath)
Constructs an instance of a data object with specific name and path.
|
HObject(FileFormat theFile,
java.lang.String theName,
java.lang.String thePath,
long[] oid)
Deprecated.
Not for public use in the future.
Using HObject(FileFormat, String, String) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close(int id)
Closes access to the object.
|
protected void |
debug(java.lang.Object msg)
Print out debug information
|
boolean |
equalsOID(long[] theID)
Checks if the OID of the object is the same as the given object
identifier within the same file.
|
int |
getFID()
Returns the file identifier of of the file containing the object.
|
java.lang.String |
getFile()
Returns the name of the file that contains this data object.
|
FileFormat |
getFileFormat()
Returns the file that contains the object.
|
java.lang.String |
getFullName()
Returns the full name (group path + object name) of the object.
|
java.lang.String |
getLinkTargetObjName()
Returns the name of the target object that is linked to.
|
java.lang.String |
getName()
Returns the name of the object.
|
long[] |
getOID()
Returns a cloned copy of the object identifier.
|
java.lang.String |
getPath()
Returns the group path of the object.
|
abstract int |
open()
Opens an existing object such as dataset or group for access.
|
void |
setLinkTargetObjName(java.lang.String targetObjName)
Sets the name of the target object that is linked to.
|
void |
setName(java.lang.String newName)
Sets the name of the object.
|
void |
setPath(java.lang.String newPath)
Sets the path of the object.
|
java.lang.String |
toString()
Returns the name of the object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMetadata, hasAttribute, removeMetadata, updateMetadata, writeMetadata
public static final java.lang.String separator
protected final FileFormat fileFormat
protected long[] oid
HDF4 objects are uniquely identified by a (ref_id, tag_id) pair. i.e.
oid[0]=tag, oid[1]=ref.
HDF5 objects are uniquely identified by an object reference.
protected java.lang.String linkTargetObjName
public HObject()
public HObject(FileFormat theFile, java.lang.String theName, java.lang.String thePath)
For example, in H5ScalarDS(h5file, "dset", "/arrays"), "dset" is the name of the dataset, "/arrays" is the group path of the dataset.
theFile
- the file that contains the data object.theName
- the name of the data object, e.g. "dset".thePath
- the group path of the data object, e.g. "/arrays".@Deprecated public HObject(FileFormat theFile, java.lang.String theName, java.lang.String thePath, long[] oid)
protected final void debug(java.lang.Object msg)
msg
- the debug message to printpublic final java.lang.String getFile()
The file name is necessary because the file of this data object is uniquely identified when multiple files are opened by an application at the same time.
getFile
in interface DataFormat
public final java.lang.String getName()
public final java.lang.String getLinkTargetObjName()
public final void setLinkTargetObjName(java.lang.String targetObjName)
public final java.lang.String getFullName()
public final java.lang.String getPath()
public void setName(java.lang.String newName) throws java.lang.Exception
setName (String newName) changes the name of the object in the file.
newName
- The new name of the object.java.lang.Exception
public void setPath(java.lang.String newPath) throws java.lang.Exception
setPath() is needed to change the path for an object when the name of a group conatining the object is changed by setName(). The path of the object in memory under this group should be updated to the new path to the group. Unlike setName(), setPath() does not change anything in file.
newPath
- The new path of the object.java.lang.Exception
public abstract int open()
close(int)
public abstract void close(int id)
Sub-classes must implement this interface because different data objects have their own ways of how the data resources are closed.
For example, H5Group.close() calls the ncsa.hdf.hdf5lib.H5.H5Gclose() method and closes the group resource specified by the group id.
id
- The object identifier.public final int getFID()
public final boolean equalsOID(long[] theID)
HDF4 and HDF5 data objects are identified by their unique OIDs. A data object in a file may have multiple logical names , which are represented in a graph structure as separate objects.
The HObject.equalsOID(long[] theID) can be used to check if two data objects with different names are pointed to the same object within the same file.
public final FileFormat getFileFormat()
public final long[] getOID()
The object OID cannot be modified once it is created. getIOD() clones the object OID to ensure the object OID cannot be modified outside of this class.
public java.lang.String toString()
This method overwrites the toString() method in the Java Object class (the root class of all Java objects) so that it returns the name of the HObject instead of the name of the class.
For example, toString() returns "Raster Image #2" instead of "ncsa.hdf.object.h4.H4SDS".
toString
in class java.lang.Object


Enter a URL for a JPEG or PNG image below to view it using cornerstone
This example illustrates how to use the cornerstoneWebImageLoader to get a standard web image (JPEG, PNG) and display it using cornerstone.
If you get an HTTP error and your URL is correct, it is probably because the server is not configured to allow Cross Origin Requests. Most browsers will allow you to enable cross domain requests via settings or command line switches, you can start chrome with the command line switch--disable-web-security
to allow cross origin requests.
See the Enable CORS site for information about CORS.


The Bride and Groom
RESHMEE
MARK
Wedding
27TH JULY 2016
17.00 Reshmee's Mehendi & Geet Gawai
Reshmee's Mum's house
Madame Lolo Street
Rose-Belle
Mauritius
28TH JULY 2016
08:00 Reshmee's Haldi
13:30 Wedding
18:30 Reception
Royal Parbeaux Multipurpose Hall
Motorway M1
Union Park
Grand Port
Mauritius
gifts
Your presence is the greatest gift. For those who wish to give something we have prepared a wedding gift list on Amazon. Amazon Gift ListGetting There
Taxi
Driving on the 28th July 2016
From North of the Island to Royal Parbeaux Multipurpose Hall Use the Terre Rouge Verdun Road and drive on the Motorway M2 to South of the Island taking 2nd exit on roundabouts approached until the Nouvelle France roundabout is reached. Take the 3rd exit from the Nouvelle France roundabout onto Nouvelle France Link Road (B95). After 0.6 mile, turn left following by another left turn after 0.2 mile. Turn right after 0.2 mile.
From South of the Island to Royal Parbeaux Multipurpose Hall Drive on the Motorway M2 to North of the Island taking 2nd exit on roundabouts approached until the Nouvelle France roundabout is reached. Take the 1st exit from the Nouvelle France roundabout onto Nouvelle France Link Road (B95). After 0.6 mile, turn left following by another left turn after 0.2 mile. Turn right after 0.2 mile.
Driving on the 27th July 2016From North of the Island to Reshmee's mum house Use the Terre Rouge Verdun Road and drive on the Motorway M2 to South of the Island taking 2nd exit on roundabouts approached until the Nouvelle France roundabout is reached. Take the 1st exit from the Nouvelle France roundabout onto A10 Royal Road. After 3.5 km, turn left after "View Moulin Shopping Centre". At the end of the road, turn left and take first right turn. Continue and take first left. Continue until end of the road and turn left into Madame Lolo Street and turn left into a lane a bit before end of the road.
From South of the Island to Royal Parbeaux Multipurpose Hall Drive on the Motorway M2 to North of the Island taking 2nd exit on roundabouts approached until the Nouvelle France roundabout is reached. Take the 1st exit from the Nouvelle France roundabout onto Nouvelle France Link Road (B95). After 0.6 mile, turn left following by another left turn after 0.2 mile. Turn right after 0.2 mile.


COVID-19 has been prevalant for over a year now, and finally the vaccination drive for the same has been initiated.
The vaccination drive is being held in phases, with the frontline workers been given priority. This leaves people with questions over their eligiblity. Also, There are prevalant rumours about the vaccine and its effects which is spreading mass distrust, making it difficult for people to adopt to the vaccine.
Therefore, for the aforementioned reasons, it has become important for people to be connected to an official source of information regarding COVID-19 and its vaccination. To reduce the load on frontline workers, reduce panic caused by false information, and automate the process, A chatbot can be utilized.
You can interact with the Chatbot here.
This project was undertaken by
Mansi Parashar & Vedanta Trivedi
for the course, Human Computer Interaction


JS Topic-DataTypes
Home
(current)
Java
Advanced JAVA
MYSQL
HTML
CSS
JAVASCRIPT
JDBC
JS DataTypes
JS DataTypes
Download zip
Prev
JS Home
Next