public final class Settings
extends totalcross.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
abortedOnLastRun
Field set to true if the program have aborted on last run.
|
static String |
activationId
READ-ONLY unique identifier available for registered applications after the TotalCross VM is activated.
|
static String |
activationKey
The activation key used during deploy
|
static String |
activationServerNamespace
Set it at the application's static initializer.
|
static String |
activationServerURI
Set it at the application's static initializer.
|
static byte |
Android
Deprecated.
Use ANDROID_UI instead
|
static String |
ANDROID
Underlying platform is Android.
|
static String |
ANDROID_ID
On Android it has the value of Settings.Secure.ANDROID_ID.
|
static byte |
ANDROID_UI
Defines an Android user interface style.
|
static String |
appCategory
Deprecated.
No longer used.
|
static String |
appDescription
Set it at the application's static initializer.
|
static String |
applicationId
The application's ID.
|
static String |
appLocation
Deprecated.
No longer used.
|
static String |
appPackageIdentifier
Set it at the application's static initializer.
|
static String |
appPackagePublisher
Set it at the application's static initializer.
|
static String |
appPath
The path from where the application is running from.
|
static Hashtable |
appProps
Some properties you may want to use in the application.
|
static String |
appSecretKey
Application defined secret key.
|
static String |
appSettings
Application defined settings.
|
static byte[] |
appSettingsBin
Application defined settings, stored as a byte array.
|
static String |
appVersion
Set it at the application's static initializer.
|
static String |
BLACKBERRY
Dumb field to keep compilation compatibility with TC 1
|
static String |
bugreportEmail
An email that will be used to send bug reports when an unhandled exception is caught
on your application.
|
static String |
bugreportUser
Set this to the username of your application to be able to filter at the bug report service.
|
static int |
buildNumber
Current build number for the TotalCross SDK.
|
static int |
chunksCreated
Number of memory chunks (blocks of memory that store Objects) created.
|
static boolean |
circularNavigation
Set to false to disable the default circular navigation when using the arrows: it will stop at the first or the last item.
|
static int |
CLOSE_BUTTON
To be used in the closeButtonType.
|
static int |
closeButtonType
Set it at the application's static initializer.
|
static String |
companyContact
Set it at the application's static initializer.
|
static String |
companyInfo
Set it at the application's static initializer; should not contain spaces.
|
static IVirtualKeyboard |
customKeyboard |
static String |
dataPath
Specifies the directory where pdbs should be read/written.
|
static byte |
DATE_DMY
Constant used in dateFormat: day month year
|
static byte |
DATE_MDY
Constant used in dateFormat: month day year
|
static byte |
DATE_YMD
Constant used in dateFormat: year month day
|
static byte |
dateFormat
Can be one of the following constants: DATE_MDY, DATE_DMY, DATE_YMD; where m = month, d = day and y = year
|
static char |
dateSeparator
The date char separator.
|
static boolean |
daylightSavings
Deprecated.
Use daylightSavingsMinutes
|
static int |
daylightSavingsMinutes
Daylight savings minutes to add; will be 0 when not in daylight savings.
|
static boolean |
debugEvents
Set to true to debug all events that are received at Window.
|
static char |
decimalSeparator
The decimal separator for numbers
|
static int |
deviceFontHeight
The size in pixels of the device's system font.
|
static String |
deviceId
Field that represents a device id that can be used to identify the device's name.
|
static int |
deviceRobotSpecialKey
Makes the generation of user interface tests much easier by using the built-in
User Interface Robot.
|
static boolean |
disableScreenRotation
Set to true to disable screen rotation.
|
static boolean |
dontCloseApplication
Deprecated.
Not used in any platform
|
static boolean |
enableVirtualKeyboard
Set to false to disable the virtual keyboard on all Edits and MultiEdits at once
|
static boolean |
enableWindowTransitionEffects
Set to true to enable the transition effects when a window is shown and hidden.
|
static String |
esn
Field that represents the smartphone ESN (if this device is a CDMA smartphone) or null if there's none.
|
static boolean |
fadeOtherWindows
Default fadeOtherWindows value used in the totalcross.ui.dialog windows.
|
static boolean |
fingerTouch
Defines platforms that the touchscreen is used MOSTLY with the finger.
|
static byte |
Flat
Deprecated.
Use FLAT_UI instead
|
static byte |
FLAT_UI
Defines a FLAT user interface style, like the ones used in Pocket PC 2003.
|
static String |
fullScreenPlatforms
Set this to a list of platforms that will set the fullscreen mode.
|
static int |
gcCount
Number of times that the GC ran.
|
static int |
gcTime
How much time the GC took in all runs.
|
static boolean |
geographicalFocus
When directional keys are used to change focus, the next control to receive focus will be determined based on
their physical location on the screen.
|
static byte |
Holo
Deprecated.
Use HOLO_UI instead
|
static byte |
HOLO_UI
Defines an Holo user interface style.
|
static String |
iccid
Field that represents the serial number of the GSM chip or null if there's none.
|
static String |
imei
Field that represents the smartphone IMEI (if this device is a GSM, UMTS or IDEN smartphone), or null if there's none.
|
static String[] |
imeis
Field that represents the smartphone IMEIs; used in phones with more than one line.
|
static Time |
iosCertDate
The due date of the iOS certificate.
|
static String |
iosCFBundleIdentifier
Set it at the application's static initializer.
|
static String |
IPAD
Underlying platform is iPad.
|
static String |
IPHONE
Underlying platform is iPhone.
|
static boolean |
is24Hour
True if the time format is 24 hour format or if it is the AM/PM format
|
static boolean |
isFullScreen
Set it at the application's static initializer.
|
static boolean |
isMinimized
Dumb field to keep compilation compatibility with TC 1
|
static boolean |
isOpenGL
Returns true if this is an open gl platform (IOS or Android).
|
static String |
JAVA
Underlying platform is Java.
|
static boolean |
keyboardFocusTraversable
Defines if the arrow keys will be used to change the focus using the keyboard.
|
static boolean |
keypadOnly
Dumb field to keep compilation compatibility with TC 1
|
static int |
lastInteractionTime
Time when the user last interacted with the device using the keyboard, pen, trackball, etc.
|
static String |
lineNumber
Returns the line number of the device.
|
static String |
LINUX
Underlying platform is Linux.
|
static String |
macAddress
Deprecated.
due to provide users with greater data protection
|
static byte |
Material
Defines an user interface style.
|
static byte |
MATERIAL_UI
Defines an user interface style.
|
static int |
minimalUpdateInterval
Minimal interval between two Update events
|
static int |
MINIMIZE_BUTTON
To be used in the closeButtonType.
|
static boolean |
moveCursorToEndOnFocus
Set to true to put the cursor at the end of the Edit and MultiEdit when focus was set to the control
(default is at the start).
|
static boolean |
multipleInstances
Setting this field to true allows the execution of multiple instances of the same application.
|
static int |
NO_BUTTON
To be used in the closeButtonType.
|
static int |
nvfsVolume
Dumb field to keep compilation compatibility with TC 1
|
static boolean |
onJavaSE
Field that defines if running in Java Standard Edition
(ie, in Eclipse or java in your desktop or even on an applet in a browser) instead of a handheld device.
|
static boolean |
optimizeScroll
Set to false to disable the scroll optimization using images.
|
static int |
optionalBackspaceKey
An optional value for the backspace key.
|
static byte |
PalmOS
Deprecated.
Use Flat, Vista or Android. This user interface does not work on TotalCross 2.
|
static String |
PALMOS
Dumb field to keep compilation compatibility with TC 1
|
static String |
platform
Field that returns the current platform name.
|
static String |
POCKETPC
Underlying platform is Pocket PC.
|
static String |
pushTokenAndroid
Deprecated.
|
static boolean |
resizableWindow
Set to true to make the program's window resizable in Windows and desktop.
|
static String |
romSerialNumber
Field that represents the ROM serial number for this device.
|
static int |
romVersion
Field that returns the ROM version of the device, like 0x02000000 or 0x03010000.
|
static int |
screenBPP
Field that represents if the device supports color.
/** Field that represents the screen's number of bits per pixel.
|
static double |
screenDensity
The logical density of the display, used as a scaling factor for density
independent pixels (dp) and scaleable pixels (sp).
|
static int |
screenHeight
Field that represents the device's screen height
|
static int |
screenHeightInDPI
Field that represents the device's screen vertical pixels density, in dots per inch (DPI).
|
static int |
screenWidth
Field that represents the device's screen width
|
static int |
screenWidthInDPI
Field that represents the device's screen horizontal pixels density, in dots per inch (DPI).
|
static int |
scrollDistanceOnMouseWheelMove
Set to 0 to disable the automatic scroll of the ScrollContainer under the
mouse position when the mouse wheel changes.
|
static boolean |
sendPressEventOnChange
Set to true to post a PRESSED event when an item is programatically selected or changed.
|
static boolean |
showDebugTimestamp
Set to false to don't display the timestamp before each Vm.debug output.
|
static boolean |
showDesktopMessages
Set to false to hide all messages that are sent to the console when running at the desktop.
|
static boolean |
showMemoryMessagesAtExit
Set this flag to false (default is true) to don't display the memory errors when the program exits.
|
static boolean |
showMousePosition
Shows the mouse position in the Window's title when running as Java SE application.
|
static boolean |
showSecrets
Deprecated.
This was only used in Palm OS, which is now unsupported
|
static boolean |
showUIErrors
Set to false to disable UI positional errors that are shown in Java SE
|
static int |
SIPBottomLimit
The limit that will make the Soft Input Panel be placed at bottom.
|
static char |
thousandsSeparator
The thousands separator for numbers
|
static char |
timeSeparator
The time char separator
|
static int |
timeZone
Deprecated.
Use timeZoneMinutes
|
static int |
timeZoneMinutes
Timezone in minutes.
|
static String |
timeZoneStr
Textual description of the time zone currently used by the device.
|
static int |
touchTolerance
Defines a touch tolerance to find the closest control.
|
static boolean |
uiAdjustmentsBasedOnFontHeight
Set to true to make the extra adjustment values used in the relative positioning be a percentage
of the control's font height.
|
static byte |
uiStyle
Field that stores the current user interface style.
|
static boolean |
unmovableSIP
Set to true to move an Edit or MultiEdit to the top of the screen
if the application is running in a platform
that does not support moving the Soft Input Panel to the top.
|
static boolean |
useNewFont
Dumb field to keep compilation compatibility with TC 1
|
static String |
userName
Field that returns the username of the user running the Virtual Machine.
|
static int |
version
Field that represents the version of the TotalCross Virtual Machine.
|
static String |
versionStr
Field that represents the version in a string form, like "1.36".
|
static boolean |
vibrateMessageBox
Set to true to enable the vibration when a MessageBox appears on screen (only on device).
|
static boolean |
virtualKeyboard
True if this handheld has a virtual keyboard, I.E., like the soft input panel in windows ce devices or in the Tungsten T|X.
|
static byte |
Vista
Deprecated.
Use VISTA_UI instead
|
static byte |
VISTA_UI
Defines a Windows Vista user interface style.
|
static String |
vmPath
The main path used to derive
tempPath and appPath and also
to store TotalCross global files. |
static byte |
weekStart
The week day start. 0 = Sunday, 6 = Saturday
|
static String |
WIN32
Underlying platform is desktop Windows.
|
static byte |
WinCE
Deprecated.
Use Flat, Vista or Android. This user interface does not work on TotalCross 2.
|
static int |
windowFont
Deprecated.
Use at the application's constructor: if (Settings.platform.equals(Settings.WIN32)) setDefaultFont(Font.getFont(false,NN)); where NN is the desired font size
|
static int |
WINDOWFONT_12
Used in the windowFont field; sets the size to 12.
|
static int |
WINDOWFONT_DEFAULT
Used in the windowFont field; sets the size to the one defined by user.
|
static String |
WINDOWSCE
Underlying platform is Windows CE.
|
static int |
windowSize
Defines the window size when running in a desktop computer (the default is 240x320).
|
static int |
WINDOWSIZE_320X480
Used in the windowSize field.
|
static int |
WINDOWSIZE_480X640
Used in the windowSize field.
|
static int |
WINDOWSIZE_600X800
Used in the windowSize field.
|
static String |
WINDOWSMOBILE
Underlying platform is Windows Mobile.
|
static String |
WINDOWSPHONE
Underlying platform is Windows Phone.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
appBuildNumber()
Returns the application's build number.
|
static int |
getAnimationMaximumFps() |
static boolean |
isIOS()
Returns true if this is an iPad or an iPhone.
|
static boolean |
isLandscape()
Returns true if the device is currently in landscale (screenWidth > screenHeight).
|
static boolean |
isWindowsCE()
Returns true if the current platform is Windows Mobile or Windows Phone.
|
static boolean |
isWindowsDevice()
Returns true if the current platform is Windows Mobile or Windows Phone.
|
static void |
refresh()
Refresh some fields thay may have been updated since the program
started.
|
public static int version
public static String versionStr
public static int buildNumber
public static Hashtable appProps
property=value<enter>This file must be named
tcapp.prop
and it is searched from the current folder up to the root folder.
To have a build number be incremented by tc.Deploy, just create the file somewhere in a parent folder from
where you run tc.Deploy for your application.
The file will be inserted into the application's tcz and you will be able to retrieve the build number using
Settings.appBuildNumber()
.
Note that the properties are always read-only and you can add other values to be used in your application.public static byte dateFormat
public static char dateSeparator
public static byte weekStart
public static boolean is24Hour
public static char timeSeparator
public static char thousandsSeparator
public static char decimalSeparator
public static int screenWidth
public static int screenHeight
public static int screenWidthInDPI
public static int screenHeightInDPI
public static int screenBPP
public static boolean onJavaSE
public static int romVersion
public static final String JAVA
platform
member.public static final String WINDOWSCE
platform
member.public static final String POCKETPC
platform
member.public static final String WINDOWSMOBILE
platform
member.public static final String WIN32
platform
member.public static final String WINDOWSPHONE
platform
member.public static final String LINUX
platform
member.public static final String IPHONE
platform
member.public static final String ANDROID
platform
member.public static final String IPAD
platform
member.public static String platform
public static String userName
public static byte[] appSettingsBin
if (Settings.appSettingsBin == null) { add(new Label("empty"),CENTER,CENTER); ByteArrayStream bas = new ByteArrayStream(100); DataStream ds = new DataStream(bas); ds.writeDouble(1234.567); Settings.appSettingsBin = bas.getCopy(); } else { ByteArrayStream bas = new ByteArrayStream(Settings.appSettingsBin); DataStream ds = new DataStream(bas); double d = ds.readDouble(); add(new Label("d = "+Convert.toString(d,3)),CENTER,CENTER); Settings.appSettingsBin = null; }This property is saved only at application's exit; you can force an update by calling
Settings.refresh()
.refresh()
public static String appSettings
Settings.refresh()
.refresh()
public static String appSecretKey
In Windows CE, the key is stored in the registry.
This property is saved only at application's exit; you can force an update by calling Settings.refresh()
.
refresh()
public static String applicationId
@Deprecated public static final byte WinCE
MainWindow.setUIStyle(byte)
,
Constant Field Values@Deprecated public static final byte PalmOS
MainWindow.setUIStyle(byte)
,
Constant Field Values@Deprecated public static final byte Flat
MainWindow.setUIStyle(byte)
,
Constant Field Values@Deprecated public static final byte Vista
MainWindow.setUIStyle(byte)
,
Constant Field Values@Deprecated public static final byte Android
MainWindow.setUIStyle(byte)
,
Constant Field Values@Deprecated public static final byte Holo
MainWindow.setUIStyle(byte)
,
Constant Field Valuespublic static final byte Material
MainWindow.setUIStyle(byte)
,
Constant Field Valuespublic static final byte FLAT_UI
MainWindow.setUIStyle(byte)
,
Constant Field Valuespublic static final byte VISTA_UI
MainWindow.setUIStyle(byte)
,
Constant Field Valuespublic static final byte ANDROID_UI
MainWindow.setUIStyle(byte)
,
Constant Field Valuespublic static final byte HOLO_UI
MainWindow.setUIStyle(byte)
,
Constant Field Valuespublic static final byte MATERIAL_UI
MainWindow.setUIStyle(byte)
,
Constant Field Valuespublic static byte uiStyle
FLAT_UI
,
VISTA_UI
,
ANDROID_UI
,
HOLO_UI
,
MATERIAL_UI
public static final byte DATE_MDY
public static final byte DATE_DMY
public static final byte DATE_YMD
@Deprecated public static boolean daylightSavings
public static int daylightSavingsMinutes
int dif = Settings.timeZoneMinutes + Settings.daylightSavingsMinutes; int hours = dif / 60; int minutes = Math.abs(dif % 60);
@Deprecated public static int timeZone
public static int timeZoneMinutes
int dif = Settings.timeZoneMinutes + Settings.daylightSavingsMinutes; int hours = dif / 60; int minutes = Math.abs(dif % 60);
public static boolean virtualKeyboard
public static String dataPath
/dataPath
commandline parameter.
null
(unless the library is also in the dataPath).
public static String romSerialNumber
null
if unavailable, such as in
Windows CE 2.11 devices, Palm OS < 3.0, and even some Palm OS 5 devices,
like Treo 6xx.
Note: this was correctly tested; you can ensure that your Palm OS device has or not a serial number pressing App/Info/Version: the serial number will appear in the top; if nothing appears, it means that the device doesn't has a serial number. If it appears but nothing is returned from here, it means that the device has a non-standard function that retrieves the serial number, and thus we don't support it. In Android 3.0 or greater it will return the serial number; in Android 1.x and 2.x will return a consistent number that MAY be the same across resets, but has no relation to the real serial number.
@Deprecated public static String macAddress
@Deprecated public static boolean showSecrets
public static boolean keyboardFocusTraversable
public static String deviceId
null
.public static String vmPath
tempPath
and appPath
and also
to store TotalCross global files. This is a read-only property: changing it will have
no effect.public static String appPath
dataPath
public static final int NO_BUTTON
public static final int CLOSE_BUTTON
public static final int MINIMIZE_BUTTON
public static int closeButtonType
CLOSE_BUTTON
,
MINIMIZE_BUTTON
,
NO_BUTTON
public static boolean isFullScreen
fullScreenPlatforms
public static String fullScreenPlatforms
static { Settings.isFullScreen = true; Settings.fullScreenPlatforms = Settings.WINDOWSCE+","+Settings.WINDOWSMOBILE; }You can use any separator. The only platform that does not work with this is JAVA. You must provide a totalcross.lang.String like the one above, concatenating the platform Strings in a single line. Using a totalcross.lang.StringBuffer or anything else may result in incorrect results.
isFullScreen
public static String appVersion
Settings.appVersion += Settings.appBuildNumber();
public static String companyInfo
public static String companyContact
public static String appDescription
public static String appPackageIdentifier
public static String appPackagePublisher
public static String iosCFBundleIdentifier
@Deprecated public static String appLocation
@Deprecated public static String appCategory
public static String activationServerURI
public static String activationServerNamespace
public static boolean showDesktopMessages
public static String imei
public static String[] imeis
public static String esn
public static String iccid
@Deprecated public static boolean dontCloseApplication
MainWindow.exit(int)
public static boolean geographicalFocus
public static boolean multipleInstances
public static boolean circularNavigation
public static int gcCount
public static int gcTime
public static int chunksCreated
public static int lastInteractionTime
public static boolean showMemoryMessagesAtExit
public static boolean showMousePosition
public static int deviceRobotSpecialKey
Vm.interceptSpecialKeys(new int[]{SpecialKeys.FIND}); Settings.deviceRobotSpecialKey = SpecialKeys.FIND;
public static boolean showDebugTimestamp
public static String timeZoneStr
public static boolean fingerTouch
public static int touchTolerance
public static boolean fadeOtherWindows
public static boolean enableWindowTransitionEffects
Container.nextTransitionEffect
,
Container.transitionEffect
public static boolean debugEvents
public static String activationId
public static boolean vibrateMessageBox
public static boolean disableScreenRotation
public void screenResized() { if (Settings.isLandscape()) { // make sure that the MessageBox takes the whole screen MessageBox mb = new MessageBox("Attention","This program must be run in portrait mode.\nPlease rotate the device.",null) { public void setRect(int x, int y, int w, int h) { super.setRect(x,y,Settings.screenWidth,Settings.screenHeight); } }; mb.transitionEffect = TRANSITION_NONE; mb.popupNonBlocking(); while (Settings.isLandscape()) pumpEvents(); mb.unpop(); } else super.screenResized(); }
public static boolean unmovableSIP
SIPBottomLimit
,
UIColors.shiftScreenColor
public static int deviceFontHeight
public static boolean moveCursorToEndOnFocus
public static int SIPBottomLimit
Settings.SIPBottomLimit = 5 * fmH;Setting it to -1 (default value) will use half the current screen height. This field is used in Windows CE devices only.
public static boolean uiAdjustmentsBasedOnFontHeight
public static boolean sendPressEventOnChange
public static boolean resizableWindow
public static final int WINDOWSIZE_320X480
public static final int WINDOWSIZE_480X640
public static final int WINDOWSIZE_600X800
public static int windowSize
WINDOWSIZE_320X480
,
WINDOWSIZE_480X640
,
WINDOWSIZE_600X800
,
resizableWindow
public static final int WINDOWFONT_12
public static final int WINDOWFONT_DEFAULT
@Deprecated public static int windowFont
WINDOWFONT_12
,
WINDOWFONT_DEFAULT
,
windowSize
,
resizableWindow
public static String lineNumber
public static boolean isOpenGL
public static int optionalBackspaceKey
public static boolean optimizeScroll
public static String PALMOS
public static String BLACKBERRY
public static int nvfsVolume
public static boolean useNewFont
public static boolean isMinimized
public static boolean keypadOnly
public static int scrollDistanceOnMouseWheelMove
public static String bugreportEmail
static { Settings.bugreportEmail =<EMAIL_ADDRESS>... }Currently this is supported only on Android.
public static String bugreportUser
public static String activationKey
@Deprecated public static String pushTokenAndroid
public static Time iosCertDate
public static boolean abortedOnLastRun
public static IVirtualKeyboard customKeyboard
public static boolean enableVirtualKeyboard
public static boolean showUIErrors
public static final String ANDROID_ID
public static double screenDensity
public static final int minimalUpdateInterval
public static String appBuildNumber()
static { Settings.appVersion = "2.1."; // leading dot } // then at the application's constructor: Settings.appVersion += Settings.appBuildNumber();This way, when you run tc.Deploy, it will update the appVersion to include the build number in all platforms.
appProps
public static boolean isWindowsDevice()
public static boolean isWindowsCE()
public static boolean isIOS()
public static void refresh()
public static boolean isLandscape()
public static int getAnimationMaximumFps()


Elderly pedestrian dies and teenager seriously injured in Aberdeen road smash
Police have appealed for witnesses to the crash in the Bucksburn area of the city last night.
by Cheryl McEvoyAn elderly man died after a crash involving two pedestrians and two cars in Aberdeen early last night.
The 70-year-old passed away at the scene in Gilbert Road, Bucksburn and an 18-year-old woman was rushed to the city's Royal Infirmary with serious injuries, where she is in a stable condition.
Police investigating say the collision involved a black BMW estate and a silver Nissan Pixo.
Sergeant Craig McNeill from the road policing unit appealed for witnesses to the incident at 7.55pm to come forward.
He said: "Our thoughts are with all those affected by this terrible tragedy.
"I am extremely interested in speaking to anyone who may have witnessed the collision, or who may have seen either vehicle beforehand. I would also like to hear from anyone with dash cam or CCTV footage of the incident."
If you can help call Police Scotland on 101 quoting incident number 3633 of November 9.
Inverurie Road, near its junction with Gilbert Road, Bucksburn, Aberdeen.


American Reunion
American Reunion is a movie starring Jason Biggs, Alyson Hannigan, and Seann William Scott. Jim, Michelle, Stifler, and their friends reunite in East Great Falls, Michigan for their high school reunion.


What does it mean to be a member of a public radio station in the United States? What could it mean? How could expanding the definition of membership instill a sense of ownership and identity among listeners, allowing them to feel more connected and invested in public media’s content, work and mission?
These are the questions I will be investigating during my Visiting Nieman Fellowship. I am planning to use the time to create the framework for a new model of membership within public media that would complement already-existing forms by offering membership to people who may not be able to donate financially, but would like to donate a skill or their time to their local stations. I suspect this will inculcate a sense of identity and ownership amongst listeners, allowing them to feel more invested in public radio’s content, work, and mission, while also transforming public media stations into public community spaces that continue to fulfill the original mission.
I’m planning to conduct the fellowship as a series of two-week-long sprints. I’m structuring the fellowship this way, in part, so that I can talk to people across public media (and across other industries) to inform what I build or create, and so I can hold myself accountable as the fellowship progresses. I also plan to make all of my research public.
All of my research will be published on this site.
Melody
Open Source and Contributing
This project is open source and we welcome contributions from the public.


Preparation time
less than 30 mins
Cooking time
10 to 30 mins
Serves
Serves 1
For the salad, place the bulgar wheat in a large bowl. Pour over enough boiling water to cover and then cover with foil. Leave to rest for 10 minutes to steam.
Add the raisins, orange juice and a squeeze of lime juice and stir together.
Add the hemp seeds, red onion, chilli powder and soy sauce and cover with foil again until ready to serve.
For the poussin, half-fill a pan with water. Add the garlic cloves and mixed herbs. Bring to a simmer and place a steamer on top.
Place the poussin breasts into the steamer, cover with a lid and steam for 6-8 minutes, or until the poussin is cooked through.
To serve, spoon the bulgar wheat salad onto a warm plate and place the steamed poussin on top.


Germany Steps Up Bonus Curbs at Commerzbank, Hypo Real Estate
October 04, 2010, 6:01 AM EDTStory Tools
By Rainer Buergin and Brian Parkin
Oct. 4 (Bloomberg) -- German Chancellor Angela Merkel’s government plans to tighten curbs on bonuses for staff at banks including Commerzbank AG and Hypo Real Estate Holding AG that it bailed out during the financial crisis.
The government is examining ways to cap variable compensation for the highest-paid managers below executive-board level, a move that would involve changing existing employment contracts, Finance Ministry spokesman Michael Offer said in an e-mailed statement.
“State aid is nothing other than taxpayers’ money,” Leo Dautzenberg, finance spokesman for Merkel’s Christian Democratic Union, said today in an interview. “Legally, it’s all well and good for bank executives to make and receive pay commensurate with their performance. But when a bank is dependent on state aid, that has to be reflected in the rewards.”
Merkel, whose coalition trails the opposition in polls, is stepping up her efforts to target bankers’ pay amid public outrage over a widening gap between rich and poor. While Hypo Real Estate awarded staff 25 million euros ($34 million) in bonuses last year, the government said Sept. 27 that long-term welfare recipients will get an extra monthly allowance of 5 euros.
Germany enacted caps in 2008 on bonuses of 500,000 euros for executive-board members at institutions that received government funds. A clause in the law governing the Soffin bank- rescue fund obliges those banks to pay managers an amount that’s “adequate” to their performance.
Soffin Guarantees
Merkel’s government is closing its 480 billion-euro Soffin fund to new applicants at the end of the year. Set up in 2008 to keep Germany’s financial system afloat during the crisis, Soffin guaranteed 174.5 billion euros in liabilities and injected 29.3 billion euros in cash into Commerzbank, Hypo Real Estate, Aareal Bank AG and WestLB AG as of Sept. 30, it said on its Web site.
Sixty-eight managers at the four banks earn more than 500,000 euros per year, Der Spiegel magazine reported in this week’s edition, citing an internal document drawn up by the Soffin bank-rescue fund. Offer denied that the government wants to cap pay at 500,000 euros.
“Banks that have received an equity injection from the tax payer also have to accept the government’s assessment of what adequate compensation is,” Michael Meister, finance spokesman in parliament for Merkel’s CDU, said today in an e-mailed statement. “While this is already true for executive board members, the pay rules imposed by the government must be applied to all employees.”
The coalition aims to reach an agreement with the Justice Ministry by Oct. 6 on the legal procedures needed to change banking staff contracts to incorporate the pay caps, Dautzenberg said. That same day, the Finance Committee is due to hold an open hearing on the so-called Bank Restructuring Bill now going through parliament which will incorporate the legislation.
“We’re aiming to use the current legislative process to come to reasonable, but also legally compliant solutions that are transparent, sustainable and performance related,” the Finance Ministry’s Offer said.
--Editors: Alan Crawford, James Hertling
To contact the reporters on this story: Rainer Buergin in Berlin at<EMAIL_ADDRESS>Brian Parkin in Berlin at<EMAIL_ADDRESS>To contact the editor responsible for this story: James Hertling at jhertling@bloomberg.net


The Matrix
[3.0/4.0]
Neo (Keanu Reeves) is a computer hacker. He is talented, but he has a general disrespect for authority. He is contacted by Trinity (Carrie-Anne Moss), a mysterious fugitive who is connected to the infamous subversive, Morpheus (Laurence Fishburne). It seems that Morpheus wants Neo to join his movement. At the same time he is being tracked by the authorities who want his help in capturing Morpheus. It is no surprise that he chooses to join the outlaws, and in doing so, he begins a surreal adventure, very similar to "Alice in Wonderland".
At the core of the story is the distinction between perception and reality. This is a very profound subject, and although it is not plumbed very deeply, it is a much more intelligent foundation than can usually be expected from a large-budget, special effects based action film. What the human mind perceives as "reality" is the result of the signals that the human brain receives from the eyes, ears, etc. However, it is well known that during dreaming and with no sensory input, the mind constructs a very real world, complete in all detail, which is obviously not part of the physical universe. It would have been nice to see an engaging exploration of this profound subject, but much more than what is attempted would probably detract from the film's appeal to the mass market.
The narrative of the story is quite engaging. From the opening scene, it is unclear what exactly is going on. This is very effective because it places the audience in the same frame of reference as Neo, and only when Neo understands the true "reality", does it become understandable. The film mostly attempts to be intelligent and is usually successful, but sometimes it cannot construct a seamless premise. The situation in which the humans are placed is explained but does not fully make sense. There are often inconsistencies in the powers accorded to different characters. There is also the serious question of why an entity that defines the rules would not be thus omnipotent and impenetrable. However, these weaknesses are mitigated by the fast pace of the film and the unravelling of the mysteries. The film is not meant to be a serious exploration of its philosophical elements, but rather it is intended as a thrill ride, and it is quite successful in that regard.
The acting performance are mostly unremarkable, but that is due mainly to the writing and is not the fault of the performers. Considerable effort is given in creating the story, but the drawback is that the main characters are not fully developed, and the side characters are mere stereotypes. Although Reeves is competent in the lead role, his performance is mostly wooden, sometimes comically so. When Morpheus uses the term "AI" in discussion with Neo, Reeves blankly asks "You mean Artificial Intelligence?" in such a dry, moribund way that one cannot believe he is trying to portray a computer hacker. To his credit, he performs well in the action sequences, even paying homage to Bruce Lee in a Kung Fu fight.
The film cannot claim to be completely original. It borrows generously from "2001: A Space Odyssey", the "Planet of the Apes" series, and it even has many similarities to the recent "Dark City." It uses stock antagonists, and other standard characters. However, the success of the film is that it combines its sources into a balanced and cohesive result. It shows remarkable restraint by not relying exclusively on special effects or action to dazzle the audience at the expense of the story.
Recommended. It is definitely not a great film, but it is rather enjoyable. It has an appealing mix of science fiction, Hong Kong style action, and special effects that will appeal to a large audience.
(c) 1999 Murali Krishnan The Art House Squatter http://ArtHouseSquatter.com
-----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


--- layout: post title: TechMill's Grand Opening at Banter date: 2014-07-23 06:11:23.000000000 -05:00 type: post parent_id: '0' published: true password: '' status: publish categories: - Coworking - Events tags: - Banter - Denton meta: _edit_last: '1' _thumbnail_id: '930' slide_template: default _at_widget: '1' fw:opt:ext:pb:page-builder:json: "[]" fw_options: a:9:{s:12:"page-builder";a:2:{s:4:"json";s:2:"[]";s:14:"builder_active";b:0;}s:9:"title_bar";s:7:"default";s:15:"footer_settings";s:7:"default";s:12:"header_style";a:2:{s:6:"option";s:0:"";s:11:"transparent";a:2:{s:16:"background_color";s:21:"rgba(255,255,255,0.3)";s:12:"border_color";s:0:"";}}s:12:"social_icons";s:0:"";s:12:"contact_info";s:0:"";s:12:"slider_above";a:2:{s:6:"option";s:2:"no";s:3:"yes";a:2:{s:5:"slide";s:1:"c";s:13:"scroll_effect";a:1:{s:6:"option";s:0:"";}}}s:22:"seo-titles-metas-title";s:0:"";s:28:"seo-titles-metas-description";s:0:"";} _wp_old_slug: 2014-07-techmills-grand-opening-banter author: login: superuser email<EMAIL_ADDRESS>display_name: Administrator first_name: '' last_name: '' ---
We've been humbled by the outpouring of love and support from our North Texas startup community.
Since we began this journey, we’ve promoted the philosophy of bootstrapping. Our IndieGoGo campaign was our way of carefully measuring community need to better understand the type of co-working space Denton wants. While we are shy of our campaign’s funding goal, we’re forging a path forward using the bootstrap methodology we started with. Now that we have an accurate measurement of the community’s needs and appetite, we can build the co-working space you want!
On Friday, August 8th, we will celebrate the grand opening of TechMill: Denton’s first co-working community, located right in the heart of the spot that made our very existence possible: Banter!
TechMill will be a very unique kind of co-working space, offering shared working tables that are integrated directly into the community. These tables will be completely open for anyone to use for FREE.
We will also offer memberships with amenities at an extremely low cost: $50/month or $5/ day gets you:
Our tables will be located at the very front of Banter, and accommodate 6-8 people each. Each table will also have a power hub so no one has to go fishing for power! We have also helped Banter accommodate a larger network load by upgrading the WiFi network.
Come join us at Banter Friday, August 8th, at 6:30 PM, check out Denton’s new co-working space, and share drinks with our founders and members! Let’s party!


Specify the build or path to XLT report directory to use as baseline.
Leave this value blank to use the XLT report of the last successful build of this job with the same step identifier.
To use the report of a specific build, enter its build number preceded by a '#' character.


C programmers:
your program name must be: prob06.exe
JAVA
programmers: your program name must be: prob06.class
Task
Description
In 1968, biologist Aristid
Lindenmayer proposed a mathematical formalism, called
L-Systems, as part of a theory of biological
development. Today L-systems are used in many computer
graphics applications, including fractal generation and
plant modeling. You will write a program implementing
the first aspect of L-Systems: string rewriting.
The
program will use substitution rules to rewrite strings.
Lines that begin with upper-case letters are replacement
rules, which indicate how capital letters in the source
string should be transformed in the result. Lines that
begin with lower-case letters are program parameter
values. The initial source string is labeled with a
lower-case ‘w’, and the number of substitution loops
with a lower-case ‘n’. Any letter or punctuation that
does not have a substitution rule should remain
unaltered in the result.
Program Input
(prob06.in)
The input file (prob06.in)
will contain values for n and w, and one or more
substitution rules.
Example 1.
n=2
w=L
L=L+R+
R=-L-R
Example 2.
n=3
w=L
L=L+R+
R=-L-R
Program Output
The program should execute
n substitution loops, starting from source string ‘w’,
and print the final result string. You may assume
that all strings will be less than 1024 characters in
length. Three examples are given below for
different values of n in the input file.
Example 1.
L+R++-L-R+
Example 2.
L+R++-L-R++-L+R+--L-R+ |


The Caledonian Canal provides a convenient shortcut across Scotland. The canal is 60 miles long, has 29 locks, and 10 swing bridges. It is entered at Inverness, on the east coast, and still exists at Corpach on the west coast.
Call the Sea Lock keeper if clearance is required.
Boats need to purchase a permit, whose cost depends on the length of time one intends to spend in the canal, which offers attractive cruising opportunities. There are good facilities along its entire length.
You can download application forms and latest licence fees, as well as the Skipper's Guide, at www.waterscape.com
The locks are generally open:-
Winter 0900-1600(Mon-Fri)
Other seasons 0800-1730 (Mon-Sun)
The locks and bridgers operate on VHF channel 74.
All boats must have third party insurance for 1 million pounds sterling and may be subject to safety checks on gas, fuel and electrical installations. If staying in the canal for more than 28 days, the boat must obtain a Boat Safety Certificate.


Software Engineer
Seattle, WA
Hello! I specialize in highly available
backend development, involving containers, node.js and golang.
Checkout my blog!
All of my projects, and contributions can be found on my Github.
If you need to contact me in a secure fashion, you can do so at: keybase.io/jaredallard.


--- layout: post title: 'Q&A: John Carmack''s New Cell Game' date: 2006-05-16 00:00:00 categories: digital-media interfaces-&-interaction mobile ---
Q&A: John Carmack's New Cell Game: "It's the same engineering puzzle-solving I look at for almost everything I do, whether it's making PC games or building rockets or whatever: given a set of constraints, what's the right thing to do? "


P1 Controls: W A D keys to move/jump. G fires.
P2 Controls: Right, Up, Left arrow keys move/jump. Space fires.


bitfinex API
Symbol
{{coinMarketSymbol}}
Price
{{coinMarketPrice}}
Bitfinex Price
Bid
Ask
Start Trading!
APIKey
Required!
APISecret
Required!
difference
Required!
timer


This package is for server active objects which can be used across XL channels developed by Learning Information Systems. If the sao is generally useful and does relate to the XL project then this could be a suitable home for it.


| | |
- builtins.object
-
- A
-
- C
-
- F(C, E)
- AssociatedClass
- B
- E
-
- J
-
- H
- SampleSuperClass
-
- SampleClass
- builtins.type(builtins.object)
-
- MetaClass
class A(builtins.object) |
| | |
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes defined here:
- a = 0
|
class AssociatedClass(builtins.object) |
| | |
Methods defined here:
- __init__(self)
- Initialize self. See help(type(self)) for accurate signature.
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes defined here:
- str_aggr_class_attr = 'aggregated class str'
|
class B(builtins.object) |
| | |
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes defined here:
- n = 0
|
class C(A) |
| | |
- Method resolution order:
- C
- A
- builtins.object
Data and other attributes defined here:
- b = <py2sqlite.demo_classes.B object>
- nc = 0
Data descriptors inherited from A:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes inherited from A:
- a = 0
|
class E(builtins.object) |
| | |
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class F(C, E) |
| | |
- Method resolution order:
- F
- C
- A
- E
- builtins.object
Data and other attributes inherited from C:
- b = <py2sqlite.demo_classes.B object>
- nc = 0
Data descriptors inherited from A:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes inherited from A:
- a = 0
|
class H(J) |
| | |
- Method resolution order:
- H
- J
- E
- builtins.object
Data descriptors inherited from E:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class J(E) |
| | |
- Method resolution order:
- J
- E
- builtins.object
Data descriptors inherited from E:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class MetaClass(builtins.type) |
| |
MetaClass(*args, **kwargs)
type(object_or_name, bases, dict)
type(object) -> the object's type
type(name, bases, dict) -> a new type |
| |
- Method resolution order:
- MetaClass
- builtins.type
- builtins.object
Methods defined here:
- __init__(cls, *args, **kwargs)
- Initialize self. See help(type(self)) for accurate signature.
Methods inherited from builtins.type:
- __call__(self, /, *args, **kwargs)
- Call self as a function.
- __delattr__(self, name, /)
- Implement delattr(self, name).
- __dir__(self, /)
- Specialized __dir__ implementation for types.
- __getattribute__(self, name, /)
- Return getattr(self, name).
- __instancecheck__(self, instance, /)
- Check if an object is an instance.
- __repr__(self, /)
- Return repr(self).
- __setattr__(self, name, value, /)
- Implement setattr(self, name, value).
- __sizeof__(self, /)
- Return memory consumption of the type object.
- __subclasscheck__(self, subclass, /)
- Check if a class is a subclass.
- __subclasses__(self, /)
- Return a list of immediate subclasses.
- mro(self, /)
- Return a type's method resolution order.
Class methods inherited from builtins.type:
- __prepare__(...) from builtins.type
- __prepare__() -> dict
used to create the namespace for the class statement
Static methods inherited from builtins.type:
- __new__(*args, **kwargs) from builtins.type
- Create and return a new object. See help(type) for accurate signature.
Data descriptors inherited from builtins.type:
- __abstractmethods__
- __dict__
- __text_signature__
Data and other attributes inherited from builtins.type:
- __base__ = <class 'type'>
- type(object_or_name, bases, dict)
type(object) -> the object's type
type(name, bases, dict) -> a new type
- __bases__ = (<class 'type'>,)
- __basicsize__ = 880
- __dictoffset__ = 264
- __flags__ =<PHONE_NUMBER>
- __itemsize__ = 40
- __mro__ = (<class 'py2sqlite.demo_classes.MetaClass'>, <class 'type'>, <class 'object'>)
- __weakrefoffset__ = 368
|
class SampleClass(SampleSuperClass) |
| |
SampleClass(int_object_attr=2, list_object_attr=None)
|
| |
- Method resolution order:
- SampleClass
- SampleSuperClass
- builtins.object
Methods defined here:
- __init__(self, int_object_attr=2, list_object_attr=None)
- Initialize self. See help(type(self)) for accurate signature.
- some_method(self)
- Some method docstring
:return: sum of float_object_attr and c, c = a + b = 2 + 2 = 4
Data and other attributes defined here:
- attr_added_by_metaclass = None
- float_class_attr = 1.5
Data descriptors inherited from SampleSuperClass:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes inherited from SampleSuperClass:
- int_super_class_attr = 10
|
class SampleSuperClass(builtins.object) |
| | |
Methods defined here:
- __init__(self)
- Initialize self. See help(type(self)) for accurate signature.
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes defined here:
- int_super_class_attr = 10
| |


POST https://apis.wso2.com/api/am/admin/v0.16/botData/addEmail
Here we can use this to configure email
Not required
| Type | Name | Description | Schema | Default |
|---|---|---|---|---|
| Body |
body required |
A email |
Email (Email) |
| HTTP Code | Description | Schema |
|---|---|---|
200 |
OK. Email List updated. |
|
400 |
Bad Request. Invalid request or validation error. |
Error |
404 |
Not Found. The resource to be updated does not exist. |
Error |
DELETE https://apis.wso2.com/api/am/admin/v0.16/botData/deleteEmail
Delete an configured email from DB by pasing uuid.
Not required
| Type | Name | Description | Schema | Default |
|---|---|---|---|---|
| Query |
uuid required |
Pass the uuid to remove the email |
String |
| HTTP Code | Description | Schema |
|---|---|---|
200 |
OK. Email successfully deleted. |
|
404 |
Not Found. Resource to be deleted does not exist. |
Error |
412 |
Precondition Failed. The request has not been performed because one of the preconditions is not met. |
Error |
GET https://apis.wso2.com/api/am/admin/v0.16/botData/getEmailList
Get all email list which configured to trigger for BotData api email alert
Not required
| Type | Name | Description | Schema | Default |
|---|---|---|---|---|
| Query |
tenantDomain optional |
Pass the tenantDomain to get the email list and if not passed it will get from the logged user. |
String |
| HTTP Code | Description | Schema |
|---|---|---|
200 |
OK. Export Successful. |
|
400 |
Bad Request.messageID Invalid request or validation error |
Error |
404 |
Not Found. Requested Data does not exist. |
Error |
406 |
Not Acceptable. The requested media type is not supported |
Error |


Emery Urged To Drop Arsenal Star After 'Shocking' Displays
by SL InternationalArsenal Unai manager Unai Emery has been urged to drop one of his stars, who has been having a 'shocker', according to a former Gunners striker.
Read: Dropped Arsenal Star Linked With Shock EPL Move
The Gunners look to get their campaign back on track when they travel to the King Power Stadium to face in-form Leicester City on Saturday evening.
However, former Arsenal striker Charlie Nicholas believes Matteo Guendouzi deserves to be dropped following his recent displays in the Gunners midfield.
"Matteo Guendouzi is having a shocker and he is getting away with it due to Xhaka – he needs to be taken out of the team," Nicholas told Sky Sports .
"I would rather Unai Emery go with Ainsley Maitland-Niles and Lucas Torreira.

The former Scotland international feels Mesut Ozil and Nicolas Pepe should be starting in the attack.
"Mesut Ozil played well (against Wolves ) so he should stay in the side ahead of Dani Ceballos, while bringing Nicolas Pepe in for the counter-attack."


Felix Auger-Aliassime to make Davis Cup Finals debut in final vs. Spain
by Ryan McKennaFelix Auger-Aliassime will make his Davis Cup Finals debut for Canada on Sunday in the first singles rubber against Spain.
The 19-year-old from Montreal sat out the start of the week with an ankle injury suffered last month, but has been healthy for the last few days.
Canada captain Frank Dancevic has used Vasek Pospisil in his first singles rubber of every tie until that point and he won every single match until Saturday’s semifinal against Russia.
Auger-Aliassime, ranked No. 21, will face Spain’s Roberto Bautista Agut for a chance to gain an early advantage in the championship tie.
Denis Shapovalov will then face No. 1 Rafael Nadal in the second singles rubber.
Should a doubles rubber be needed to decide a winner, Pospisil will slot in beside Shapovalov. The duo teamed up to beat Russia in three sets on Saturday to advance.


This action can lead to data loss. To prevent accidental actions we ask you to confirm your intention. Please type {{worker.name}} to proceed or close this modal to cancel


We often have a need to interact with users, either to get data or to provide some sort of result. Most programs today use a dialog box as a way of asking the user to provide some type of input. While Python does have a way to create dialog boxes, there is a much simpler function that we can use. Python provides us with a function that allows us to ask a user to enter some data and returns a reference to the data in the form of a string. The function is called input.
Python’s input function takes a single parameter that is a string. This string is often called the prompt because it contains some helpful text prompting the user to enter something. For example, you might call input as follows:
aName = input('Please enter your name: ')
Now whatever the user types after the prompt will be stored in the aName variable. Using the input function, we can easily write instructions that will prompt the user to enter data and then incorporate that data into further processing. For example, in the following two statements, the first asks the user for their name and the second prints the result of some simple processing based on the string that is provided.
It is important to note that the value returned from the input function will be a string representing the exact characters that were entered after the prompt. If you want this string interpreted as another type, you must provide the type conversion explicitly. In the statements below, the string that is entered by the user is converted to a float so that it can be used in further arithmetic processing.
sradius = input("Please enter the radius of the circle ")
radius = float(sradius)
diameter = 2 * radius
We have already seen that the print function provides a very simple way to output values from a Python program. print takes zero or more parameters and displays them using a single blank as the default separator. It is possible to change the separator character by setting the sep argument. In addition, each print ends with a newline character by default. This behavior can be changed by setting the end argument. These variations are shown in the following session:
>>> print("Hello")
Hello
>>> print("Hello","World")
Hello World
>>> print("Hello","World", sep="***")
Hello***World
>>> print("Hello","World", end="***")
Hello World***>>>
It is often useful to have more control over the look of your output. Fortunately, Python provides us with an alternative called formatted strings. A formatted string is a template in which words or spaces that will remain constant are combined with placeholders for variables that will be inserted into the string. For example, the statement
print(aName, "is", age, "years old.")
contains the words is and years old, but the name and the age will change depending on the variable values at the time of execution. Using a formatted string, we write the previous statement as
print("%s is %d years old." % (aName, age))
This simple example illustrates a new string expression. The % operator is a string operator called the format operator. The left side of the expression holds the template or format string, and the right side holds a collection of values that will be substituted into the format string. Note that the number of values in the collection on the right side corresponds with the number of % characters in the format string. Values are taken—in order, left to right—from the collection and inserted into the format string.
Let’s look at both sides of this formatting expression in more detail. The format string may contain one or more conversion specifications. A conversion character tells the format operator what type of value is going to be inserted into that position in the string. In the example above, the %s specifies a string, while the %d specifies an integer. Other possible type specifications include i, u, f, e, g, c, or %. Table 9 summarizes all of the various type specifications.
| Character | Output Format |
|---|---|
| d, i | Integer |
| u | Unsigned integer |
| f | Floating point as m.ddddd |
| e | Floating point as m.ddddde+/-xx |
| E | Floating point as m.dddddE+/-xx |
| g | Use %e for exponents less than \(-4\) or greater than \(+5\), otherwise use %f |
| c | Single character |
| s | String, or any Python data object that can be converted to a string by using the str function. |
| % | Insert a literal % character |
In addition to the format character, you can also include a format modifier between the % and the format character. Format modifiers may be used to left-justify or right-justifiy the value with a specified field width. Modifiers can also be used to specify the field width along with a number of digits after the decimal point. Table 10 explains these format modifiers
| Modifier | Example | Description |
|---|---|---|
| number | %20d | Put the value in a field width of 20 |
| - | %-20d | Put the value in a field 20 characters wide, left-justified |
| + | %+20d | Put the value in a field 20 characters wide, right-justified |
| 0 | %020d | Put the value in a field 20 characters wide, fill in with leading zeros. |
| . | %20.2f | Put the value in a field 20 characters wide with 2 characters to the right of the decimal point. |
| (name) | %(name)d | Get the value from the supplied dictionary using name as the key. |
The right side of the format operator is a collection of values that will be inserted into the format string. The collection will be either a tuple or a dictionary. If the collection is a tuple, the values are inserted in order of position. That is, the first element in the tuple corresponds to the first format character in the format string. If the collection is a dictionary, the values are inserted according to their keys. In this case all format characters must use the (name) modifier to specify the name of the key.
>>> price = 24
>>> item = "banana"
>>> print("The %s costs %d cents"%(item,price))
The banana costs 24 cents
>>> print("The %+10s costs %5.2f cents"%(item,price))
The banana costs 24.00 cents
>>> print("The %+10s costs %10.2f cents"%(item,price))
The banana costs 24.00 cents
>>> itemdict = {"item":"banana","cost":24}
>>> print("The %(item)s costs %(cost)7.1f cents"%itemdict)
The banana costs 24.0 cents
>>>
In addition to format strings that use format characters and format modifiers, Python strings also include a format method that can be used in conjunction with a new Formatter class to implement complex string formatting. More about these features can be found in the Python library reference manual.


#include <views.h>
Inheritance diagram for TGroup::
Public Methods | |
| TGroup (const TRect &bounds) | |
| ~TGroup () | |
| virtual void | shutDown () |
| ushort | execView (TView *p) |
| virtual ushort | execute () |
| virtual void | awaken () |
| void | insertView (TView *p, TView *Target) |
| void | remove (TView *p) |
| void | removeView (TView *p) |
| void | resetCurrent () |
| void | setCurrent (TView *p, selectMode mode) |
| void | selectNext (Boolean forwards) |
| TView* | firstThat (Boolean(*func)(TView *, void *), void *args) |
| Boolean | focusNext (Boolean forwards) |
| void | forEach (void(*func)(TView *, void *), void *args) |
| void | insert (TView *p) |
| void | insertBefore (TView *p, TView *Target) |
| TView* | at (short index) |
| TView* | firstMatch (ushort aState, ushort aOptions) |
| short | indexOf (TView *p) |
| Boolean | matches (TView *p) |
| TView* | first () |
| virtual void | setState (ushort aState, Boolean enable) |
| virtual void | handleEvent (TEvent &event) |
| void | drawSubViews (TView *p, TView *bottom) |
| virtual void | changeBounds (const TRect &bounds) |
| virtual ushort | dataSize () |
| virtual void | getData (void *rec) |
| virtual void | setData (void *rec) |
| virtual void | draw () |
| void | redraw () |
| void | lock () |
| void | unlock () |
| virtual void | resetCursor () |
| virtual void | endModal (ushort command) |
| virtual void | eventError (TEvent &event) |
| virtual ushort | getHelpCtx () |
| virtual Boolean | valid (ushort command) |
| void | freeBuffer () |
| void | getBuffer () |
Static Public Methods | |
| TStreamable* | build () |
Public Attributes | |
| TView* | current |
| TView* | last |
| TRect | clip |
| phaseType | phase |
| ushort* | buffer |
| uchar | lockFlag |
| ushort | endState |
Static Public Attributes | |
| const char* const | name |
Protected Methods | |
| TGroup (StreamableInit) | |
| virtual void | write (opstream &os) |
| virtual void* | read (ipstream &is) |
A group is a special breed of view. In addition to all the members derived from TView and TStreamable, a group has additional members and many overrides that allow it to control a dynamically linked list of views (including other groups) as though they were a single object.
We often talk about the subviews of a group even when these subviews are often groups in their own right.
Although a group has a rectangular boundary from its TView ancestry, a group is only visible through the displays of its subviews. A group draws itself via the draw() methods of its subviews. A group owns its subviews, and together they must be capable of drawing (filling) the group's entire rectangular bounds.
Three derived object types of TGroup, namely TWindow, TDeskTop, and TApplication (via TProgram) illustrate the group and subgroup concept. The application typically owns a desktop object, a status line object, and a menu view object. TDeskTop is a TGroup derivative, so it, in turn, can own TWindow objects, which in turn own TFrame objects, TScrollBar objects, and so on.
TGroup overrides many of the basic TView methods in a natural way. TGroup objects delegate both drawing and event handling to their subviews. You'll rarely construct an instance of TGroup itself; rather you'll usually use one or more of TGroup's derived object types: TApplication, TDeskTop, and TWindow.
All TGroup objects are streamable, inheriting from TStreamable by way of TView. This means that TGroup objects (including your entire application group) can be written to and read from streams in a type-safe manner using the familiar C++ iostream operators.
Definition at line 2848 of file views.h.
|
|
Calls TView::TView(bounds), sets ofSelectable and ofBuffered in options and sets eventMask to 0xFFFF. The members last, current, buffer, lockFlag and endState are all set to zero. |
|
|
Hides the group using hide(), then disposes of each subview in the group using delete. Finally, the buffer is freed (if one). |
|
|
Each streamable class needs a "builder" to allocate the correct memory for its objects together with the initialized virtual table pointers. This is achieved by calling this constructor with an argument of type StreamableInit. |
|
|
Returns a pointer to the subview at `index' position in Z-order. |
|
|
Calls the TView::awaken() methods of each of the group's subviews in Z-order. Reimplemented from TView. |
|
|
Called to create an object in certain stream-reading situations. Reimplemented from TView. Reimplemented in TDeskTop, TColorDialog, TDialog, TEditWindow, TFileDialog, TChDirDialog, and TWindow. |
|
|
Overrides TView::changeBounds(). Changes the group's bounds to `bounds' and then calls calcBounds() followed by TView::changeBounds() for each subview in the group. Reimplemented from TView. |
|
|
Overrides TView::dataSize(). Returns total size of group by calling and accumulating dataSize() for each subview.
Reimplemented from TView. Reimplemented in TColorDialog, and TChDirDialog. |
|
|
Overrides TView::draw(). If a cache buffer exists (see TGroup::buffer data member), then the buffer is written to the screen using TView::writeBuf(). Otherwise, each subview is told to draw itself using a call to TGroup::redraw(). Reimplemented from TView. |
|
|
Calls TView::drawView() for each subview starting at `p', until the subview `bottom' is reached. |
|
|
If this group is the current modal view, endModal() terminates its modal state. Parameter `command' is passed to TGroup::execView() (which made this view modal in the first place), which returns `command' as its result. If this group is not the current modal view, it calls TView::endModal(). Reimplemented from TView. |
|
|
Is called whenever the modal TGroup::execute() event-handling loop encounters an event that cannot be handled. The default action is: if the group's owner is nonzero, eventError() calls its owner's eventError(). Normally this chains back to TApplication's eventError(). You can override eventError() to trigger appropriate action.
|
|
|
execView() is the "modal" counterpart of the "modeless" insert() and remove() member functions. Unlike insert(), after inserting a view into the group, execView() waits for the view to execute, then removes the view, and finally returns the result of the execution. execView() is used in a number of places throughout TVision, most notably to implement TProgram::run() and to execute modal dialog boxes. execView() saves the current context (the selected view, the modal view, and the command set), makes `p' modal by calling p->setState(sfModal, True), inserts `p' into the group (if it isn't already inserted), and calls p->execute().
If `p' is 0 upon a call to execView(), a value of cmCancel is returned. |
|
|
Overrides TView::execute(). execute() is a group's main event loop: it repeatedly gets events using getEvent() and handles them using handleEvent(). The event loop is terminated by the group or some subview through a call to endModal(). Before returning, however, execute() calls valid() to verify that the modal state can indeed be terminated. Reimplemented from TView. |
|
|
Returns a pointer to the first subview (the one closest to the top in Z-order), or 0 if the group has no subviews. |
|
|
Returns a pointer to the first subview that matches its state with `aState' and its options with `aOptions'. |
|
|
firstThat() applies a user-supplied Boolean function `func', along with an argument list given by `args' (possibly empty), to each subview in the group (in Z-order) until `func' returns True. The returned result is the subview pointer for which `func' returns True, or 0 if `func' returns False for all items. The first pointer argument of `func' scans the subview. The second argument of `func' is set from the `args' pointer of firstThat(), as shown in the following implementation:
TView *TGroup::firstThat(Boolean (*func)(TView *, void *), void *args) { TView *temp = last; if (temp == 0) return 0; do { temp = temp->next; if (func(temp, args) == True) return temp; } while(temp != last); return 0; } |
|
|
Undocumented. |
|
|
forEach() applies an action, given by the function `func', to each subview in the group in Z-order. The `args' argument lets you pass arbitrary arguments to the action function:
void TGroup::forEach(void (*func)(TView*, void *), void *args) { TView *term = last; TView *temp = last; if (temp == 0) return; TView *next = temp->next; do { temp = next; next = temp->next; func(temp, args); } while(temp != term); } |
|
|
Frees the group's draw buffer (if one exists) by calling delete buffer and setting buffer to 0. |
|
|
If the group is sfExposed and ofBuffered, a draw buffer is created. The buffer size will be (size.x * size.y) and the buffer data member is set to point at the new buffer.
|
|
|
Overrides TView::getData(). Calls getData() for each subview in reverse order, incrementing the location given by `rec' by the dataSize() of each subview.
Reimplemented from TView. Reimplemented in TColorDialog, TFileDialog, and TChDirDialog. |
|
|
Returns the help context of the current focused view by calling the selected subviews' TView::getHelpCtx() member function. If no help context is specified by any subview, getHelpCtx() returns the value of its own helpCtx member, by calling TView::getHelpCtx(). Reimplemented from TView. |
|
|
Overrides TView::handleEvent(). A group basically handles events by passing them to the handleEvent() member functions of one or more of its subviews. The actual routing, however, depends on the event class. For focused events (by default, evKeyDown and evCommand), event handling is done in three phases (see phase for more):
For broadcast events (events that aren't focused or positional), the event is passed to the handleEvent() of each subview in the group in Z-order. If a subview's eventMask member masks out an event class, TGroup::handleEvent() will never send events of that class to the subview. For example, the TView::eventMask disables evMouseUp, evMouseMove, and evMouseAuto, so TGroup::handleEvent() will never send such events to a standard TView. Reimplemented from TView. Reimplemented in TDeskTop, TProgram, TColorDialog, TDialog, TEditWindow, TFileDialog, TChDirDialog, and TWindow. |
|
|
Returns the Z-order position (index) of the subview `p'. |
|
|
Inserts the view given by `p' in the group's subview list. The new subview is placed on top of all other subviews. If the subview has the ofCenterX and/or ofCenterY flags set, it is centered accordingly in the group.
|
|
|
Inserts the view given by `p' in front of the view given by `Target'. If `Target' is 0, the view is placed behind all other subviews in the group. |
|
|
Undocumented. |
|
|
Locks the group, delaying any screen writes by subviews until the group is unlocked. lock() has no effect unless the group has a cache buffer (see ofBuffered flag and buffer data member). lock() works by incrementing the data member lockFlag. This semaphore is likewise decremented by unlock().
By "sandwiching" draw-intensive operations between calls to lock() and unlock(), unpleasant "screen flicker" can be reduced, if not eliminated. lock() and unlock() calls must be balanced; otherwise, a group may end up in a permanently locked state, causing it to not redraw itself properly when so requested. |
|
|
Returns True if the state and options settings of the view `p' are identical to those of the calling view. |
|
|
Reads from the input stream `is'. Reimplemented from TView. Reimplemented in TColorDialog, TEditWindow, TFileDialog, TChDirDialog, and TWindow. |
|
|
Redraws the group's subviews in Z-order. TGroup::redraw() differs from TGroup::draw() in that redraw() will never draw from the cache buffer. |
|
|
Removes the subview `p' from the group and redraws the other subviews as required. p's owner and next members are set to 0. |
|
|
Removes the subview `p' from this group. Used internally by remove(). |
|
|
Selects (makes current) the first subview in the chain that is sfVisible and ofSelectable. resetCurrent() works by calling setCurrent(firstMatch(sfVisible, ofSelectable), normalSelect).
enum selectMode { normalSelect, enterSelect, leaveSelect }; |
|
|
Undocumented. Reimplemented from TView. |
|
|
If `forwards' is True, selectNext() selects (makes current) the next selectable subview (one with its ofSelectable bit set) in the group's Z-order. If `forwards' is False, the member function selects the previous selectable subview. |
|
|
Parameter `selectMode' is an enumeration defined in TGroup as follows:
enum selectMode {normalSelect, enterSelect, leaveSelect}; If `p' is the current subview, setCurrent() does nothing. Otherwise, `p' is made current (that is, selected) by a call to setState().
|
|
|
Overrides TView::setData(). Calls setData() for each subview in reverse Z-order, incrementing the location given by `rec' by the dataSize() of each subview.
Reimplemented from TView. Reimplemented in TColorDialog, TFileDialog, and TChDirDialog. |
|
|
Overrides TView::setState(). First calls the inherited TView::setState(), then updates the subviews as follows (see state for more):
Reimplemented from TView. Reimplemented in TWindow. |
|
|
Used internally by TObject::destroy() to ensure correct destruction of derived and related objects. shutDown() is overridden in many classes to ensure the proper setting of related data members when destroy is called. Reimplemented from TView. Reimplemented in TDeskTop, TProgram, TFileDialog, TChDirDialog, and TWindow. |
|
|
Unlocks the group by decrementing lockFlag. If lockFlag becomes zero, then the entire group is written to the screen using the image constructed in the cache buffer.
|
|
|
Overrides TView::valid(). Returns True if all the subview's valid() calls return True. TGroup::valid() is used at the end of the event-handling loop in execute() to confirm that termination is allowed. A modal state cannot terminate until all valid() calls return True. A subview can return False if it wants to retain control. Reimplemented from TView. Reimplemented in TDialog, TFileDialog, and TChDirDialog. |
|
|
Writes to the output stream `os'. Reimplemented from TView. Reimplemented in TColorDialog, TEditWindow, TFileDialog, TChDirDialog, and TWindow. |
|
|
Points to a buffer used to cache redraw operations, or is 0 if the group has no cache buffer. Cache buffers are created and destroyed automatically, unless the ofBuffered flag is cleared in the group's options member. |
|
|
Holds the clip extent of the group, as returned by TView::getExtent() or TView::getClipRect(). The clip extent is defined as the minimum area that needs redrawing when draw() is called. |
|
|
Points to the subview that is currently selected, or is 0 if no subview is selected. |
|
|
Holds the state of the group after a call to endModal(). |
|
|
Points to the last subview in the group (the one furthest from the top in Z-order). |
|
|
Acts as a semaphore to control buffered group draw operations. lockFlag keeps a count of the number of locks set during a set of nested draw calls. lock() and unlock() increment and decrement this value. When it reaches zero, the whole group will draw itself from its buffer. Intensive TGroup::draw() operations should be sandwiched between calls to lock() and unlock() to prevent excessive CPU load. |
|
|
Undocumented. Reimplemented from TView. Reimplemented in TDeskTop, TColorDialog, TDialog, TEditWindow, TFileDialog, TChDirDialog, and TWindow. |
|
|
The current phase of processing for a focused event. Subviews that have the ofPreProcess or ofPostProcess flags set can examine owner->phase to determine whether a call to their TView::handleEvent() is happening in the phPreProcess, phFocused, or phPostProcess phase.
enum phaseType {phFocussed, phPreProcess, phPostProcess}; |


Base64 URL Encoder
GeoJSON URL:
Koop provider encoded URL (check the
encoding script
):
Preview :
raw in now.sh
|
inside webmap viewer through now.sh
|
raw encodedurl


| Overview | Module | Use | Devguide | Index |
| Nested Modules | Services | Singletons | Interfaces | Structs | Exceptions | Enums | Typedefs | Constant Groups |
| module i18n |
|
| Services | |
| BreakIterator | contains the base routines for iteration in Unicode string. Iterates over characters, words, sentences and line breaks. |
| ChapterCollator | Specific collator to sort chapter numbering. |
| CharacterClassification | Character classification, such as upper, lower, alpha, digit, et al. |
| Collator | Access collation algorithms of different locales. |
| IndexEntrySupplier | Supplier for creating index entries in a "table of alphabetical index" |
| InputSequenceChecker | Check input sequence of CTL languages like Thai or Hindi. |
| LocaleCalendar | Access a locale specific calendar. |
| LocaleData | Access locale specific data. |
| NativeNumberSupplier | Supplier for transliteration of numerals (native number strings). |
| NumberFormatMapper | Access locale data number format codes to use with the number formatter |
| OrdinalSuffix | provides access to locale specific ordinal suffix systems. |
| TextConversion | offers generic text conversion. |
| Transliteration | Transliteration of characters, such as case folding |
| Interfaces | |
| XBreakIterator | contains the base routines for iteration in Unicode string. Iterates over characters, words, sentences and line breaks. |
| XCalendar | Access to locale specific calendar systems. |
| XCharacterClassification | Character classification (upper, lower, digit, letter, number, ...) and generic Unicode enabled parser. |
| XCollator | provides locale-sensitive collation algorithms for string comparison. |
| XExtendedCalendar | This interface provides access to locale specific calendar systems. |
| XExtendedIndexEntrySupplier | This interface provides information for creating "Table of Index" |
| XExtendedInputSequenceChecker | This interface perform input sequence correction for the languages like Thai and Hindi |
| XExtendedTextConversion | This interface provides Text Conversion service. |
| XExtendedTransliteration | This interface provides character conversions like case folding or Hiragana to Katakana. |
| XForbiddenCharacters | provides access to forbidden character settings in a document. |
| XIndexEntrySupplier | supplies information on index entries to generate a "table of alphabetical index" for a given locale. |
| XInputSequenceChecker | contains the routine to check Thai input sequence checking |
| XLocaleData | Access locale specific data as it is defined in XML locale data files compiled into the binary data libraries liblocaledata*.so respectively localedata*.dll. |
| XLocaleData2 | Access locale specific data. |
| XNativeNumberSupplier | Methods to convert between strings of ASCII Arabic digits and native numeral strings. |
| XNumberFormatCode | Access number format codes defined in locale data. |
| XOrdinalSuffix | provides access to locale specific ordinal suffix systems. |
| XScriptTypeDetector | contains the help routines for layouting complex text |
| XTextConversion | Method to convert text from one type to another |
| XTransliteration | Character conversions like case folding or Hiragana to Katakana. |
| Structs | |
| Boundary | contains start and end position of a word. |
| Calendar | A calendar as returned in a sequence by XLocaleData::getAllCalendars(). |
| CalendarItem | One entry in a calendar, for example, a day of week or a month or an era. |
| Currency | Symbols, names, and attributes of a specific currency, returned in a sequence by XLocaleData::getAllCurrencies(). |
| Currency2 | Symbols, names, and attributes of a specific currency, returned in a sequence by XLocaleData2::getAllCurrencies2(). |
| ForbiddenCharacters | Locale (mostly CJK) dependent characters that are forbidden at the start or end of a line. |
| FormatElement | One number format code and its attributes, returned in a sequence by XLocaleData::getAllFormats(). |
| Implementation | Implementation name details returned in a sequence by XLocaleData::getCollatorImplementations(). |
| LanguageCountryInfo | The language and country identifiers and descriptive names of the loaded locale data returned by XLocaleData::getLanguageCountryInfo(). |
| LineBreakHyphenationOptions | Hyphenation options passed in calls to XBreakIterator::getLineBreak(). |
| LineBreakResults | Results of method XBreakIterator::getLineBreak(). |
| LineBreakUserOptions | Line break options passed in calls to XBreakIterator::getLineBreak(). |
| LocaleDataItem | Locale specific data, for example, separators, quotation marks. |
| NativeNumberXmlAttributes | Attributes describing a native number mode for a specific locale, stored in XML file format. |
| NumberFormatCode | Number format code information returned by various XNumberFormatCode methods. |
| ParseResult | Parser results returned by XCharacterClassification::parseAnyToken() and XCharacterClassification::parsePredefinedToken(). |
| TextConversionResult | Text conversion result to be used with XTextConversion. |
| Exceptions | |
| MultipleCharsOutputException | Indicates transliteration generated multiple characters output but only single character return value was requested. |
| Enums | |
| DirectionProperty | Direction properties returned by
|
| TransliterationModules | Old transliteration module enumeration. |
| TransliterationModulesNew | New transliteration module enumeration to use with XTransliteration::loadModuleNew() |
| UnicodeScript | Unicode script types, returned by XCharacterClassification::getScript() |
| Constant Groups | |
| AmPmValue | Constants for AM/PM used in calls to XCalendar::getDisplayName(). |
| BreakType | Constants to specify the type of a line break, used with LineBreakResults::breakType. |
| CTLScriptType | CTL tcript type constants for layout engine, returned by XScriptTypeDetector::getCTLScriptType() |
| CalendarDisplayCode | Constants to use with XExtendedCalendar::getDisplayString(). |
| CalendarDisplayIndex | Values to be passed to XCalendar::getDisplayName(). |
| CalendarFieldIndex | Field indices to be passed to various XCalendar methods. |
| CharType | Constants to specify the character type that starts a character block. Character type is Unicode type defined in UnicodeType |
| CharacterIteratorMode | Constants to specify the type of character iteration. |
| CollatorOptions | Options to be used with XCollator methods. |
| InputSequenceCheckMode | Input check mode constants to use with XInputSequenceChecker::checkInputSequence() |
| KCharacterType | Constants to identify the character type. |
| KNumberFormatType | Attribute of number format, classifies the length of the formatted display string. |
| KNumberFormatUsage | Category of number format code. |
| KParseTokens | These constants specify the characters a name or identifier token to be parsed can have. |
| KParseType | Constants to specify the type of a parsed token. |
| LocaleItem | [ DEPRECATED ] |
| Months | Constants for month names used in calls to XCalendar::getDisplayName(). |
| NativeNumberMode | Constants to use with XExtendedCalendar::getDisplayString() and the XNativeNumberSupplier methods. |
| NumberFormatIndex | Number format indices to be passed as the index argument to XNumberFormatCode::getFormatCode() or ::com::sun::star::util::XNumberFormatTypes::getFormatIndex(). |
| ScriptDirection | Script direction constants to use with XScriptTypeDetector methods. |
| ScriptType | Constants to specify the script type. |
| TextConversionOption | Text conversion options to be used with XTextConversion. |
| TextConversionType | These constansts specifiy the conversion type to be used with XTextConversion. |
| TransliterationModulesExtra | Extra transliteration module enumeration to use with XTransliteration::loadModule() The values used in this group need to be different from the ones in TransliterationModules and TransliterationModulesNew! |
| TransliterationType | Bitmask transliteration types used with XTransliteration::getType() and XTransliteration::getAvailableModules() methods. |
| UnicodeType | Constants to classify Unicode characters, returned by XCharacterClassification::getType() |
| Weekdays | Constants for days of a week. |
| WordType | Constants to specify the type of words. |
| reservedWords | Offsets into the sequence of strings returned by XLocaleData::getReservedWord(). |
Copyright © 2013, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.


Florida
FL
The state of Florida still views cannabis as a fully criminal substance, acknowledging no uses or benefits of the plant. The State will fully prosectue any citizen caught in possession of it.
Simple Possession Consequences:
Under 20g
Results in a Misdemeanor,
Up to 1 Year Jail Time
Over 20g
Results in a Felony,
Up to 5 Years Jail Time<
Over 25 lb
Results in a Felony,
Up to 15 Years Jail Time
Sale/Cultivation Consequences:
Sale,
Under 25 lb
Results in Felony,
Up to 5 Years Jail Time
Cultivation,
Under 25 plants
Results in Felony,
Up to 5 Years Jail Time
Trafficking,
Over 10,000 lb
Results in a Felony,
15 to 30 Years Jail Time


|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
| Interface Summary | |
|---|---|
| SSLFactory | This interface define a pluggable SSLSocketFactory builder. |
| Class Summary | |
|---|---|
| CommandMonitor | This class implements a FTP command monitor sending NOOP command periodically to avoid command channel timeout. |
| CustomFTPFileEntryParserFactory | |
| CustomUnixFTPEntryParser | |
| FtpClientFactory | This factory manages FTPClient and FTPSClient instances. |
| FTPTransfer | This class implements a TransferController for FTP protocol. |
| FTPUploadTransfer | This class implements a TransferController for FTP protocol. |
|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |


Charges: Man painted car after crash that killed 2 sisters
MILWAUKEE (AP) - Prosecutors allege a Milwaukee man painted his car after a hit-and-run crash that killed two young sisters.
Nineteen-year-old Daetwan Robinson was charged Friday in the Oct. 24 crash that killed the girls and seriously injured their 10-year-old cousin.
According to the complaint, surveillance video shows Robinson’s car fishtailing and on only two wheels just before the crash.
Authorities say Robinson pulled around several other cars stopped at a red light and struck the children in the crosswalk. Six-year-old Lisa Gee died at the scene. Her 4-year-old sister, Amea Gee, later died at a hospital.
Police arrested Robinson the next day at his home. Investigators found the car in the garage along with cans of black spray paint.
The Journal Sentinel reports funeral services for the sisters are Monday in Milwaukee.
Information from: Milwaukee Journal Sentinel, http://www.jsonline.com
Sign up for Daily Newsletters
Copyright © 2019 The Washington Times, LLC.
Please read our comment policy before commenting.


vignettes/find_marker.Rmd
find_marker.Rmd
This section comes together with the previous section Differential Expression. The basic strategy singleCellTK (SCTK) uses to find biomarkers is to iteratively identify the significantly up-regulated features of each group of cells against all the other cells. This means, the function we have (findMarkerDiffExp()
) is a wrapper of functions that do differential expression (DE) analysis, which would be called in a loop. For the detail of the functions we have for DE analysis, please refer to runDEAnalysis()
and the documentation linked to above.
The methods we have for marker detection are listed below. Note that “ANOVA” approach, previously listed for DE, lacks the ability to produce a fold change metric, so we are unable to tell the up-regulation and select markers with this approach.
| Method | Citation |
|---|---|
| MAST | Greg Finak and et al., 2015 |
| Limma | Gordon Smyth and et al., 2004 |
| DESeq2 | Michael Love and et al., 2014 |
As per SCTK’s strategy, the primary input is limited to an SingleCellExperiment (SCE) object, which has been through preprocessing steps with cluster labels annotated. While the iteration is a fixed pattern, the parameters needed are rather simple:
sce <- findMarkerDiffExp(inSCE = sce, useAssay = "logcounts", method = "MAST", cluster = "cluster", covariates = NULL, log2fcThreshold = 0.25, fdrThreshold = 0.05)
Here all arguments execpt the input SCE object (inSCE
) are set by default. method
can only be chosen from the table above. cluster
and covariates
should be given a single string which is present in names(colData(inSCE))
. cluster
is required for grouping cells, while covariates
is optional for DE detection. log2fcThreshold
and fdrThreshold
are numeric and has to be set in plausible range. log2fcThrshold
has to be positive and fdrThreshold
has to be greater than zero and less than one.
The returned SCE object will contain the updated information of the markers identified in its metadata
slot.
To demonstrate a simple and clear example, here we use the “PBMC-3k” dataset from “10X” which can be easily imported with SCTK functions. The preprocessing only includes necessary steps to get cluster labels (i.e. QC and filtering are excluded).
library(singleCellTK) pbmc3k <- importExampleData("pbmc3k") pbmc3k <- scater_logNormCounts(pbmc3k, "logcounts") # Go through the Seurat curated workflow to get basic clusters pbmc3k <- seuratNormalizeData(inSCE = pbmc3k, useAssay = "counts") pbmc3k <- seuratFindHVG(inSCE = pbmc3k, useAssay = "seuratNormData") pbmc3k <- seuratScaleData(inSCE = pbmc3k, useAssay = "seuratNormData") pbmc3k <- seuratPCA(inSCE = pbmc3k, useAssay = "seuratScaledData") pbmc3k <- seuratRunUMAP(pbmc3k) pbmc3k <- seuratFindClusters(inSCE = pbmc3k, useAssay = "seuratScaledData") # Optional visualization plotSCEDimReduceColData(inSCE = pbmc3k, colorBy = "Seurat_louvain_Resolution0.8", conditionClass = "factor", reducedDimName = "seuratUMAP")
Then we call findMarkerDiffExp()
on the clustered data, with the cluster annotation just attached, which by default named with "Seurat_louvain_Resolution0.8"
.
pbmc3k <- findMarkerDiffExp(inSCE = pbmc3k, method = "Limma", # Runs fastest useAssay = "counts", # Recommanded for Limma, "logcounts" for the others cluster = "Seurat_louvain_Resolution0.8")
After this, the marker genes, together with their statistics, of each cluster will be concatenated in one table. This table can be extracted with:
markerTable <- metadata(pbmc3k)$findMarker head(markerTable)
| Gene | Log2_FC | Pvalue | FDR | Seurat_louvain_Resolution0.8 | |
|---|---|---|---|---|---|
| 1 | LTB | 1.3795012 | 0 | 0 | 0 |
| 2 | IL32 | 1.1497180 | 0 | 0 | 0 |
| 3 | LDHB | 0.9442271 | 0 | 0 | 0 |
| 4 | CD3D | 0.8880507 | 0 | 0 | 0 |
| 5 | IL7R | 0.7243084 | 0 | 0 | 0 |
| 9 | CD3E | 0.6925999 | 0 | 0 | 0 |
Similarly to the Differential Expression section, we also provide a automated and organized heatmap plotting for the markers:
plotMarkerDiffExp(pbmc3k)
Note that when plotting the heatmap, the genes that are identified as up-regulated in multiple clusters will be considered only for the one cluster with the highest fold-change, while all of them are still kept in the table in metadata
.


defines the templates for the software including other necessary designs for base display like the axes
More...
#include <samplemodels.h>
defines the templates for the software including other necessary designs for base display like the axes
◆ SampleModels()
| SampleModels::SampleModels |
( |
| ) |
|
blank constructor to intialize a sample model
◆ Axes()
| Model * SampleModels::Axes |
( |
float |
side | ) |
|
|
static |
constructor to build up the axes model
◆ Cuboid()
| Model * SampleModels::Cuboid |
( |
float |
a, |
|
|
float |
b, |
|
|
float |
c |
|
) |
| |
|
static |
constructor to create a cuboid model
◆ Empty()
| Model * SampleModels::Empty |
( |
| ) |
|
|
static |
constructor to create an empty model
◆ SquarePyramid()
| Model * SampleModels::SquarePyramid |
( |
float |
side, |
|
|
float |
height |
|
) |
| |
|
static |
constructor to create a square pyramid model
◆ TriangularPrism()
| Model * SampleModels::TriangularPrism |
( |
float |
side, |
|
|
float |
height |
|
) |
| |
|
static |
constructor to create a triangular prism model
◆ TriangularPyramid()
| Model * SampleModels::TriangularPyramid |
( |
float |
side, |
|
|
float |
height |
|
) |
| |
|
static |
constructor to create a triangular pyramid model
The documentation for this class was generated from the following files:


| 1 |
Chai |
$18.00 |
10 boxes x 20 bags |
39 |
|
| 2 |
Chang |
$19.00 |
24 - 12 oz bottles |
17 |
|
| 3 |
Aniseed Syrup |
$10.00 |
12 - 550 ml bottles |
13 |
|
| 4 |
Chef Anton's Cajun Seasoning |
$22.00 |
48-6 oz jars |
53 |
|
| 5 |
Chef Anton's Gumno Mix |
$21.35 |
36 boxes |
0 |
|
| 6 |
Grandma's Boysenberry Spread |
$25.00 |
12 - 8 oz jars |
120 |
|
| 7 |
Uncle Bob's Organic Dried Pears |
$30.00 |
12 - 1 lb pkgs. |
15 |
|
| 8 |
Northwoods Cranberry Sauce |
$40.00 |
12 - 12 oz jars |
6 |
|
| 9 |
Mishi Kobe Niku |
$97.00 |
18 - 500 g pkgs. |
29 |
|
| 10 |
Ikura |
$31.00 |
12 - 200 ml jars |
31 |
|


Home | Data Cleaning | Report | R Analysis | Conclusions | Docker | MySQL | Jupyter Notebook | Troubleshooting | About | Works Cited


--- title: "[Understanding Analysis by Stephen Abbott] - [Chapter 2 Sequences and Series] - [2.6 The Cauchy Criterion]" published: true tags: RealAnalysis ---
Definition 2.6.1 A sequence \((a_n)\) is called a Cauchy sequence if, for every \(\epsilon > 0\), there exists an \(N \in N\) such that whenever \(m, n \geqslant N\) it follows that \(|a_n - a_m| < \epsilon\).
Theorem 2.6.2 Every convergent sequence is a Cauchy sequence.
Lemma 2.6.3 Cauchy sequences are bounded.
Proof. Given \(\epsilon = 1\), there exists an \(N\) such that \(|x_m - x_n| < 1\)for all \(m, n \geqslant N\). Thus, we must have \(|x_n| < |x_N| + 1\) for all \(n \geqslant N\). It follows that $$ M = max\{|x_1|,|x_2|,|x_3|,\cdot \cdot \cdot, |x_{N-1}|,|x_N| + 1\} $$ is a bound for the sequence \((x_n)\)
Theorem 2.6.4 Cauchy Criterion. A sequence converges if and only if it is a Cauchy sequence
Proof. \((\Leftarrow)\) For this direction, we start with a Cauchy sequence \((x_n)\), which is bounded. So we may use the Bolzano-Weierstrass Theorem to produce a convergent subsequence \((x_{n_k})\). Set $$ x = \lim x_{n_k} $$ The idea is to show that the original sequence \((x_n)\) converges to this same limit. Once again, we will use a triangle inequality argument. We know the terms in the subsequence are getting close to the limit \(x\), and the assumption that \((x_n)\) is Cauchy implies the terms in the "tail" of the sequence ae close to each other. Thus, we want to make each of these distance less than half of the prescribed \(\epsilon\).
Let \(\epsilon > 0\). Because \((x_n)\) is Cauchy, there exists \(N\) such that $$ |x_n - x_m| < \frac{\epsilon}{2} $$ whenever \(m, n \geqslant N\). Now, we also know that \((x_{n_k}) \to x\), so choose a term in this subsequence, call it \(x_{n_K}\), with \(n_K \geqslant N\) and $$ |x_{n_K} - x| < \frac{\epsilon}{2} $$ To see that \(N\) has the desired property (for the original sequence \((x_n)\)), observe that if \(n \geqslant N\), then $$ \begin{align} |x_n - x| &= |x_n - x_{n_K} + x_{n_K} - x| \\ &\leqslant |x_n - x_{n_K}| + |x_{n_K} - x| \\ &< \frac{\epsilon}{2} + \frac{\epsilon}{2} = \epsilon \end{align} $$


Be the first to know Centennial's latest updates and exclusives
Explore our portfolio of regional enclosed shopping centers