12.8. Other Features of Modules12.8.1. Auto-Loaded ModulesWhen the Python interpreter starts up in standard mode, some modules are loaded by the interpreter for system use. The only one that affects you is the __builtin__ module, which normally gets loaded in as the __builtins__ module. The sys.modules variable consists of a dictionary of modules that the interpreter has currently loaded (in full and successfully) into the interpreter. The module names are the keys, and the location from which they were imported are the values. For example, in Windows, the sys.modules variable contains a large number of loaded modules, so we will shorten the list by requesting only the module names. This is accomplished by using the dictionary's keys() method: >>> import sys
>>> sys.modules.keys()
['os.path', 'os', 'exceptions', '__main__', 'ntpath',
'strop', 'nt', 'sys', '__builtin__', 'site',
'signal', 'UserDict', 'string', 'stat'] The loaded modules for Unix are quite similar: >>> import sys
>>> sys.modules.keys()
['os.path', 'os', 'readline', 'exceptions',
'__main__', 'posix', 'sys', '__builtin__', 'site',
'signal', 'UserDict', 'posixpath', 'stat'] 12.8.2. Preventing Attribute ImportIf you do not want module attributes imported when a module is imported with "from module import *", prepend an underscore ( _ ) to those attribute names (you do not want imported). This minimal level of data hiding does not apply if the entire module is imported or if you explicitly import a "hidden" attribute, e.g., import foo._bar. 12.8.3. Case-Insensitive ImportThere are various operating systems with case-insensitive file systems. Prior to version 2.1, Python attempted to "do the right thing" when importing modules on the various supported platforms, but with the growing popularity of the MacOS X and Cygwin platforms, certain deficiencies could no longer be ignored, and support needed to be cleaned up.
The world was pretty clean-cut when it was just Unix (case-sensitive) and Win32 (case-insensitive), but these new case-insensitive systems coming online were not ported with the case-insensitive features. PEP 235, which specifies this feature, attempts to address this weakness as well as taking away some "hacks" that had existed for other systems to make importing modules more consistent. The bottom line is that for case-insensitive imports to work properly, an environment variable named PYTHONCASEOK must be defined. Python will then import the first module name that is found (in a case-insensitive manner) that matches. Otherwise Python will perform its native case-sensitive module name matching and import the first matching one it finds. 12.8.4. Source Code EncodingStarting in Python 2.3, it is now possible to create your Python module file in a native encoding other than 7-bit ASCII. Of course ASCII is the default, but with an additional encoding directive at the top of your Python modules, it will enable the importer to parse your modules using the specified encoding and designate natively encoded Unicode strings correctly so you do not have to worry about editing your source files in a plain ASCII text editor and have to individually "Unicode-tag" each string literal.
An example directive specifying a UTF-8 file can be declared like this: #!/usr/bin/env python # -*- coding: UTF-8 -*- If you execute or import modules that contain non-ASCII Unicode string literals and do not have an encoding directive at the top, this will result in a DeprecationWarning in Python 2.3 and a syntax error starting in 2.5. You can read more about source code encoding in PEP 263. 12.8.5. Import CyclesWorking with Python in real-life situations, you discover that it is possible to have import loops. If you have ever worked on any large Python project, you are likely to have run into this situation. Let us take a look at an example. Assume we have a very large product with a very complex command-line interface (CLI). There are a million commands for your product, and as a result, you have an overly massive handler (OMH) set. Every time a new feature is added, from one to three new commands must be added to support the new feature. This will be our omh4cli.py script: from cli4vof import cli4vof # command line interface utility function def cli_util(): pass # overly massive handlers for the command line interface def omh4cli(): : cli4vof() : omh4cli() You can pretend that the (empty) utility function is a very popular piece of code that most handlers must use. The overly massive handlers for the command-line interface are all in the omh4cli() function. If we have to add a new command, it would be called from here. Now, as this module grows in a boundless fashion, certain smarter engineers decide to split off their new commands into a separate module and just provide hooks in the original module to access the new stuff. Therefore, the code is easier to maintain, and if bugs were found in the new stuff, one would not have to search through a one-megabyte-plus-sized Python file. In our case, we have an excited product manager asking us to add a "very outstanding feature" (VOF). Instead of integrating our stuff into omh4cli.py, we create a new script, cli4vof.py: import omh4cli
# command-line interface for a very outstanding feature
def cli4vof():
omh4cli.cli_util() As mentioned before, the utility function is a must for every command, and because we do not want to cut and paste its code from the main handler, we import the main module and call it that way. To finish off our integration, we add a call to our handler into the main overly massive handler, omh4cli(). The problem occurs when the main handler omh4cli imports our new little module cli4vof (to get the new command function) because cli4vof imports omh4cli (to get the utility function). Our module import fails because Python is trying to import a module that was not previously fully imported the first time: $ python omh4cli.py Traceback (most recent call last): File "omh4cli.py", line 3, in ? from cli4vof import cli4vof File "/usr/prod/cli4vof.py", line 3, in ? import omh4cli File "/usr/prod/omh4cli.py", line 3, in ? from cli4vof import cli4vof ImportError: cannot import name cli4vof Notice the circular import of cli4vof in the traceback. The problem is that in order to call the utility function, cli4vof has to import omh4cli. If it did not have to do that, then omh4cli would have completed its import of cli4vof successfully and there would be no problem. The issue is that when omh4cli is attempting to import cli4vof, cli4vof is trying to import omh4cli. No one finishes an import, hence the error. This is just one example of an import cycle. There are much more complicated ones out in the real world. The workaround for this problem is almost always to move one of the import statements, e.g., the offending one. You will commonly see import statements at the bottom of modules. As a beginning Python programmer, you are used to seeing them in the beginning, but if you ever run across import statements at the end of modules, you will now know why. In our case, we cannot move the import of omh4cli to the end, because if cli4vof() is called, it will not have the omh4cli name loaded yet: $ python omh4cli.py Traceback (most recent call last): File "omh4cli.py", line 3, in ? from cli4vof import cli4vof File "/usr/prod/cli4vof.py", line 7, in ? import omh4cli File "/usr/prod/omh4cli.py", line 13, in ? omh4cli() File "/usr/prod/omh4cli.py", line 11, in omh4cli cli4vof() File "/usr/prod/cli4vof.py", line 5, in cli4vof omh4cli.cli_util() NameError: global name 'omh4cli' is not defined No, our solution here is to just move the import statement into the cli4vof() function declaration: def cli4vof(): import omh4cli omh4cli.cli_util() This way, the import of the cli4vof module from omh4cli completes successfully, and on the tail end, calling the utility function is successful because the omh4cli name is imported before it is called. As far as execution goes, the only difference is that from cli4vof, the import of omh4cli is performed when cli4vof.cli4vof() is called and not when the cli4vof module is imported. 12.8.6. Module ExecutionThere are many ways to execute a Python module: script invocation via the command-line or shell, execfile(), module import, interpreter -m option, etc. These are out of the scope of this chapter. We refer you to Chapter 14, "Execution Environment," which covers all of these features in full detail. |


To exaggerate color features on a face, we can always get the features first by subtracting the warpped face from the main face, and then add or subtract the difference times a scale (alpha) back to the main face.
My face warped to the mean shape
Mean face
Difference
alpha=-1: mean - difference
alpha=2: mean + 2* difference
It seems not work not on the gray images. Now I will try to exaggerate shape features instead.
To exaggerate shape features on a face, I times a scale (alpha) to difference between the reference points on my face and the mean face. Then I add the result back to mean face reference point cooridinates to enlarge my difference from the mean face.


This form is to test out the keyboard-only accessibility of a select element with an onchange handler that inserts something new into the DOM. All browsers have a way to select something from a select that does not trigger the onchange event. In Chrome, Safari and IE, use the space bar. In Firefox, use the F4 key.


Format: /chatgroup {group name} {text}
ChatGroup sends text to all the chat connections with a specific group name.
{group name} The name of the group you wish to chat to. {text} The text to send to the group.
Click here to return to previous page.


Cultural Blog: "Stereotype Threat"
September 11th, 2014
What is stereotype threat?
By definition, stereotype threat is a situation in which people are or feel themselves to be at risk of confirming negative stereotypes about their social group.
What are its consequences?
In education, it can also lead students to choose not to pursue the domain of study and, consequently, limit the range of professions that they can pursue. Therefore, the long-term effects of stereotype threat might contribute to educational and social inequality.
My Experiences
Whether I want to believe this or not, being raised in Asian culture comes with the set of beliefs that I have to somehow excel at everything I do when it comes to education and career.  I was always ehhhh about science.  So yeah, I’m not your typical Asian kid. I always wondered why I couldn’t be like my sister, or the other engineers, teachers or doctors that I had in my household. This in turn, led me to believe that I had a fixed growth mindset I that was so sure I couln’t get out of. But I did. And this process took a lot of self-discovery.
I know that I’ll face this "stereotype threat" and imposter syndome at DBC but I have to realize that I can’t let these things get to me, and that I’m here for a reason. That is to try my hardest to learn and grow alongside everyone else in my cohort. It will be a difficult journey but worth every step.


--- layout: post title: Disabling Atlassian Confluence add-ons from another add-on date: type: post published: false status: private categories: - Programming tags: - atlassian - atlassian plugin sdk - confluence - note to self meta: _edit_last: '1' _syntaxhighlighter_encoded: '1' tmac_last_id: '500008557371490304' author: David Simpson excerpt_separator: ---
A simple code snippet for when you need to disable a pile of Confluence add-ons from within your own custom plugin.
String[] ADDONS_TO_DISABLE = {
"com.atlassian.confluence.plugins.confluence-mentions-plugin"
// Add more plugins keys here as required
};
for (String pluginKey : ADDONS_TO_DISABLE)
{
if (pluginAccessor.isPluginEnabled(pluginKey))
{
pluginController.disablePlugin(pluginKey);
log.info(" ++ Disabling plugin: " + pluginKey);
}
else
{
log.info(" ++ Plugin already disabled: " + pluginKey);
}
}


Saxon comes with a simple tool allowing profiling of the execution time in a stylesheet.
To run this tool, first execute the transformation with the -TP
option, which
sends timed tracing information to the standard error output file:
java -jar dir/saxon7.jar -TP source stylesheet 2>profile.xml
Then run another transformation to create a profile report from the output of this tracing tool:
java -jar dir/saxon7.jar profile.xml timing-profile.xsl >profile.html
Finally, view the resulting profile.html
file in your browser.
The output identifies instructions in the original stylesheet by their name, line number, and the last few characters of the URI of their module. For each instruction it gives the number of times the instruction was executed, the average time in milliseconds of each execution, and the total time. The table is sorted according to a weighting function that attempts to put the dominant instructions at the top. These will not necessarily be those with the greatest time, which tend to be instructions that were only executed once but remained active for the duration of the transformation.


Remote Navigation
About
Resources
Call up
Motion Control
.
Start Streaming
Stop Streaming
Toggle Object Detection
Clean :
Pause :
Pause/Resume
Mute/Unmute
Fullscreen
WebRTC Settings
Robot's CPU
home
control panel
×
RamuDroid Rpi CPU Info
CPU info


Because using the Groundspeak Wherigo emulator on my Apple computer was a pain, I decided to create an online version of this application, allowing me to run cartridges from my favorite web browser!
Started as a pet project, it grows to the point that I decided to release it to the community with the hope that it can be useful to authors of Wherigo cartridges.
The emulator itself is part of a global project named the Wherigo Foundation. Read the announcement in the Geocaching forum (free registration required) to get more information and/or if you want to know how to participate!
The emulator couldn't exist without them:
Emscripten, Lua.vm.js, Lua, dkjson, RequireJS, CodeMirror, jQuery, Class.js, Bootstrap, Jasny Bootstrap, Glyphicons (Halflings), Bootswatch, Font-Awesome, Leaflet, Awesome-Markers, JSZip, Backbone.js, Underscore.js, Underscore.string, Modernizr, Respond, html5shim, jQuery.Terminal, jQuery.Mousewheel


We invite you to our Press Conference & VIP Cocktail on January 1st 2021 at Tae Kwon Do, VIP hall.
We’re so pleased to welcome you to our celebration of linking people together.
Program
| Time | Talk | Select |
|---|---|---|
| 9:00 | Grand Opening |
|
| 9:45 | Launching of the theme MAKING HISTORY TOGETHER |
|
| 10:00 | The Founders Speech |
|
| 10:15 | Brand |
|
| 10:25 | Brand - SkinCare |
|
| 11:00 | Brand - Digital |
|
| 11:15 | Brand - Wellness |
|
| 12:20 | Brand - Color & Fragrance |
|
| 13:00 | HALL OF FAME / GRAND CLOSING |
|
| 14:00 | Press Conference & VIP Cocktail |
|
| Select All |
|


|
UQTk: Uncertainty Quantification Toolkit 3.1.3
|
#include <mcmc.h>
Public Attributes | |
| int | step |
| Array1D< double > | state |
| double | alfa |
| double | post |
| double MCMC::chainstate::alfa |
| double MCMC::chainstate::post |
| Array1D<double> MCMC::chainstate::state |
| int MCMC::chainstate::step |


yes_no_dialog/[2,3,4]
yes_no_dialog/[2,3,4] | - present a yes/no dialog
FORMS
yes_no_dialog(Msg, Answer)
yes_no_dialog(Msg, Title, Answer)
yes_no_dialog(Interp, Msg, Title, Answer)
yes_no_dialog(Interp,Msg,Title,YesLbl,NoLbl,Answer)
DESCRIPTION
These dialogs present popup dialogs with a question and two buttons to the user.
The shorter versions are defined by:
yes_no_dialog(Msg, Answer)
:-
yes_no_dialog(Msg, ‘Info’, Answer).
yes_no_dialog(Msg, Title, Answer)
:-
yes_no_dialog(tcli, Msg, Title, Answer).
yes_no_dialog(Interp, Msg, Title, Answer)
:-
yes_no_dialog(Interp, Msg, Title,
‘Yes’, ‘No’, Answer).
For the general call
yes_no_dialog(Interp,Msg,Title,YesLbl,NoLbl,Answer)
Interp, Msg, Title, YesLbl, and NoLbl should all be atoms, and Answer should be an uninstatiated variable.
EXAMPLES
The call
?- yes_no_dialog(‘Sample yes-no query for user?’,
Answer).
produces the following popup dialog:
If the user clicks “Yes”, the result is
Answer = Yes
while clicking “No” yields
Answer = No.
The call
yes_no_dialog(tcli,
‘Sample yes-no query for user?’,
‘Dialog Box Title’,
‘OK’, ‘Cancel’, Answer).
produces the popup dialog
Clicking “OK” yields
Answer = OK
while clicking “Cancel” yeilds
Answer = Cancel.


Please provide some basic info. Our experienced specialists will follow-up shortly!
Submit Cancel
Please confirm submission
Confirm Cancel


Qubit¶
The Qubit object is mainly a wrapper for the underlying qubit that is defined in the Backend. We add our own properties such that we can better manage the qubits in the system, for example, Qubits have a unique ID and they know which Host they belong to.
-
exception
qunetsim.objects.qubit.
InputError
(message)¶ Bases:
Exception
Exception raised for errors in the input.
-
expression -- input expression in which the error occurred
-
message -- explanation of the error
-
with_traceback
()¶ Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
-
-
class
qunetsim.objects.qubit.
Qubit
(host, qubit=None, q_id=None, blocked=False)¶ Bases:
object
A Qubit object. It is a wrapper class of qubits of different backends, which adds additional information needed for QuNetSim.
-
H
()¶ Perform a Hadamard gate on the qubit.
-
I
()¶ Perform Identity operation on the qubit.
-
K
()¶ Perform a K gate on the qubit.
-
T
()¶ Perform a T gate on the qubit.
-
X
()¶ Perform pauli x gate on qubit.
-
Y
()¶ Perform pauli y gate on qubit.
-
Z
()¶ Perform pauli z gate on qubit.
-
property
blocked
¶ Give the block state of the qubit.
- Returns
If the qubit is blocked or not.
-
cnot
(target)¶ Applies a controlled x gate to the target qubit.
- Parameters
target (Qubit) – Qubit on which the cnot gate should be applied.
-
cphase
(target)¶ Applies a controlled z gate to the target qubit.
- Parameters
target (Qubit) – Qubit on which the cphase gate should be applied.
-
custom_controlled_gate
(target, gate)¶ Applies a custom 2x2 unitary on the qubit.
- Parameters
target (Qubit) – Qubit on which the controlled gate should be applied.
gate (Numpy ndarray) – A unitary 2x2 matrix
-
custom_gate
(gate)¶ Applies a custom 2x2 unitary on the qubit.
- Parameters
gate (Numpy ndarray) – A unitary 2x2 matrix
-
custom_two_qubit_control_gate
(q1, q2, gate)¶ Applies the gate gate to qubits q1 and q2 as a controlled gate.
-
custom_two_qubit_gate
(other_qubit, gate)¶ Applies a custom 2 qubit gate.
- Parameters
other_qubit (Qubit) – The second qubit.
gate (Numpy ndarray) – The gate
-
density_operator
()¶ Returns the density operator of this qubit. If the qubit is entangled, the density operator will be in a mixed state.
- Returns
The density operator of the qubit.
- Return type
np.ndarray
-
fidelity
(other_qubit)¶ Determines the quantum fidelity between this and the given qubit.
- Parameters
other_qubit (Qubit) – The other (apart from this) qubit used to calculate the quantum fidelity
- Returns
(float) The quantum fidelity between this and the given qubit.
-
property
host
¶ Give the host of who the qubit belongs to.
- Returns
Host of the qubit.
-
property
id
¶ Give the ID of the qubit.
- Returns
Id of the qubit.
-
measure
(non_destructive=False)¶ Measures the state of a qubit.
- Parameters
non_destructive (bool) – Determines if the qubit should stay in the system or be eliminated.
- Returns
0 or 1, dependent on measurement outcome.
- Return type
measured_value (int)
-
property
qubit
¶ Return the physical qubit.
- Returns
Return the physical qubit.
- Return type
(backend.qubit) qubit
-
release
()¶ Releases a qubit from the system.
-
rx
(phi)¶ Perform a rotation pauli x gate with an angle of phi.
- Parameters
phi (float) – Rotation in rad
-
ry
(phi)¶ Perform a rotation pauli y gate with an angle of phi.
- Parameters
phi (float) – Rotation in rad
-
rz
(phi)¶ Perform a rotation pauli z gate with an angle of phi.
- Parameters
phi (float) – Rotation in rad
-
send_to
(receiver_id)¶ Sends the Qubit to another host.
- Parameters
receiver_id (str) – ID of Host the qubit should be send to.
-


This intention converts a Java collection to the corresponding Scala collection using scala.collection.JavaConverters


Thanks for running login-with-sso sample from our fsm-extension-sample repository.
This extension has been designed to run within SAP Field Service Management and now needs to be installed as describe within the FSM Help Portal - Extensions.


How to stiffle innovation in IT
Innovation drives change, innovation improves productivity. Both are scary, so you might want to embark on a strategy to prevent innovation. Cutting your R&D spending along isn't enough, since determined minds will find a way around it (BYOD anyone). So here is my sure fire receipt how to get rid of innovation. It is not a list of "pick one", but step by step instructions to " kill the beast":
Any similarities with common legal contracts are not purely incidental
- Split your IT department into two. A small group of business facing analysts and consultants, lets call them "owner" and the larger group of the rest, lets call them "service"
- Enshrine the communication between the two into written rules, also known as Service Level Agreements (SLA)
- Describe your current environment in detail, make sure the description is void of terms like "regular update", "benchmark to industry standards" and other forward pointing phrases
- Keep the owner group small and appoint their leader from the outside. This prevents career paths from forming. Decree that there is no switching from service to owner. Available career paths only attract talent
- Make the owner own all the systems, product decisions and architectural directions
- Make the service responsible for the flawless operation of you your IT
- Freeze the architecture and never ever let experts review it for optimisation potential. If that happens, often driven by senior management unaware of the "no-innovation" program, use risk assessments to prevent implementation of finding or simply sit it out
- Important: compensate the service per user in your organisation, but not for the number of systems they run. It is crucial to decouple funding computation from system needs, this allows for a better kill. With a fixed budget, you will see replacement investments (e.g. contemporary servers, firewalls, appliances) shrink to a minimum, leading to the need to constantly focus on "keeping the lights on" since aging systems lead to service degradation
- Leave all decisions about software, processes, maintenance, uptimes etc. to the owner, but make the service fully responsible to execute. This allows to shut down any suggestion for improvement originating from service by simply not approving it
- Slap huge penalties onto the service for not meeting any of the enshrined SLA. Since innovation always carries a risk of failure or temporary service degradation during adoption, this effectively shuts down the mere idea of suggesting an innovation
- In a rapid changing environment make sure, you are on back versions, this prevents taking advantage of new capabilities - a nasty source of innovation
- Make risk the golden calf you dance around. Enjoy the puzzled faces from external consultant when you demand a risk assessment for fixing a flaw in your settings. Deny that there is something like "Risk of ignoring"
- The finest: after you ensured that the service has no influence how to conduct their work, implement an automatic budget cut annually, since they "got better at it and have probably optimised their operation by now"
- Constantly compare the service, with all the constraints and customisation enshrined, with consumer grade offerings and how great they are. This generates the perception of inferiority, so nobody dares to use the dreaded "I..." word
Any similarities with common legal contracts are not purely incidental
Posted by Stephan H Wissel on 04 January 2015 | Comments (3) | categories: Business


Under construction.
This site offers nothing useful!
The only service requires no browser for theconversion of .cdxml files into .mol files use the shell command:
curl -T structure.cdxml -X POST -H "Content-Type: text/plain" http://jelastic.chemedata.org/cdxml2mol -o convertedStructure.sdf


PkSim is a RuneScape-based deathmatch bot on the SwiftIRC network that I began as a personal project.
I believe I had the idea around the end of summer 2014 and I slowly wrote it during my sophomore year of college
in my free time.
Essentially, it is a text-based fighting bot based off of the popular MMORPG
RuneScape. Players will take turns
attacking with different weapons of 3 class styles (melee, ranged, magic) to try to defeat
their opponent. Upon defeating their opponent, the winner is awarded a sum of coins to buy weapons
at the shop or just to save up for ranking on the
highscore tables.
I initially started writing this project because I used to have a lot of fun playing a game like this on
IRC called iDM, but has since been shutdown.
I knew that mIRC, the client I used to connect to IRC,
had a built-in scripting language that was pretty easy to pick up. It was pretty easy to get a
rudimentary version of the fighting bot working, but I knew it could be improved. I spent a lot of time in
the #mSL channel learning about better ways to go about scripting my bot, and I started using hash tables
for the bulk of the data storage.
However, I had bigger plans for this. I wanted a web interface for checking highscores. I had to learn
a bit of PHP and SQL to sync the bot's hash tables with a web database and provide functionality for the user
to lookup their own account, sort by wins/losses, check total coins generated to date, etc.
Another goal I had for the project was to be able to run it on a low power device. mIRC is a Windows-exclusive
program, and I didn't really want to have a dedicated computer running Windows 24/7 just to have the bot running.
Instead, I turned to the embedded development board world: similar to the
Raspberry Pi, Hardkernel manufactures small,
open-source development boards called Odroids.
These boards run different Linux distributions and Android, but that still didn't solve my problem.
Windows applications can be run through Wine on Linux,
but the Odroids still have ARM processors - not x86. Luckily for me, Eltechs had just recently released
ExaGear Desktop which runs an x86
virtual machine on an ARM processor. This allowed me to install both Wine and mIRC on the x86 virtual machine,
bringing my dreams of a (super) low-powered IRC bot server to life.
The project ended up being a lot larger than I originally thought it would be (and it's still not finished!)
but I hope to release a fairly stable version soon. There are still some things left to do before I can officially
call it a stable build, but it's close. I learned a LOT throughout the course of developing it, and it was definitely
a fun project.


Add this page to your home screen!
"Warning: Some tools contains rapid flashing colors, and could be unsuitable to people with photosensitive epilepsy. Discretion is advised."


--- layout: default title: Community help permalink: /help/ redirect_from: - /help.html sitemap: priority: 0.7 lastmod: 2014-08-27T00:00:00-00:00 ---
Do you need help? Our awesome community is here!
Please note that we all do this in the spirit of Open Source. All discussions are public, so that everyone can participate and help each other.
Go to Stack Overflow with the "jhipster" tag.
First read our contributing guidelines.
Then, fill a ticket on our bug tracker, we'll be happy to resolve your issue!
Join our chat room on Gitter.im. Please note that this is a public chat room, and that we expect you to respect other people and write in a correct English language!
Mention @java_hipster on Twitter.
As mentioned on our team page, we have a development mailing list, where only the core developers can participate, which is available here.


_
This is a plugin for facebook which makes it look cooler, or TL;DR make it darker.
To inject:
javascript:(function(){ $.getScript('https://raw.githubusercontent.com/meamme/fbtest/master/main.js'); }());
Or drag this to your bookmarks bar:


|
|
Support for skins |
A skin is a collection of theme, watermark, painters and other settings.
In order to set a skin, you can either call the SubstanceSkin.set method or invoke
the following API available on the org.jvnet.substance.SubstanceLookAndFeel
class:
/**
* Sets the specified skin.
*
* @param skin
* Skin to set.
* @return true if the specified skin has been set
* successfully, false otherwise.
* @since version 3.1
*/
public static boolean setSkin(SubstanceSkin skin) {
/**
* Sets the specified skin.
*
* @param skinClassName
* Skin to set.
* @return true if the specified skin has been set
* successfully, false otherwise.
* @since version 3.1
*/
public static boolean setSkin(String skinClassName) {
Four toned-down core skins are available:
Business available in the
org.jvnet.substance.skin.BusinessSkin .
In addition, the
org.jvnet.substance.skin.SubstanceBusinessLookAndFeel
can be used with one of the following options:
-Dswing.defaultlaf=org.jvnet.substance.skin.SubstanceBusinessLookAndFeel
UIManager.setLookAndFeel(new SubstanceBusinessLookAndFeel())
UIManager.setLookAndFeel("org.jvnet.substance.skin.SubstanceBusinessLookAndFeel");
Creme available in the
org.jvnet.substance.skin.CremeSkin .
In addition, the
org.jvnet.substance.skin.SubstanceCremeLookAndFeel
can be used with one of the following options:
-Dswing.defaultlaf=org.jvnet.substance.skin.SubstanceCremeLookAndFeel
UIManager.setLookAndFeel(new SubstanceCremeLookAndFeel())
UIManager.setLookAndFeel("org.jvnet.substance.skin.SubstanceCremeLookAndFeel");
Sahara available in the
org.jvnet.substance.skin.SaharaSkin .
In addition, the
org.jvnet.substance.skin.SubstanceSaharaLookAndFeel
can be used with one of the following options:
-Dswing.defaultlaf=org.jvnet.substance.skin.SubstanceSaharaLookAndFeel
UIManager.setLookAndFeel(new SubstanceSaharaLookAndFeel())
UIManager.setLookAndFeel("org.jvnet.substance.skin.SubstanceSaharaLookAndFeel");
Moderate available in the
org.jvnet.substance.skin.ModerateSkin .
In addition, the
org.jvnet.substance.skin.SubstanceModerateLookAndFeel
can be used with one of the following options:
-Dswing.defaultlaf=org.jvnet.substance.skin.SubstanceModerateLookAndFeel
UIManager.setLookAndFeel(new SubstanceModerateLookAndFeel())
UIManager.setLookAndFeel("org.jvnet.substance.skin.SubstanceModerateLookAndFeel");
|
|
|
Support for color-blind mode |
The org.jvnet.substance.theme.SubstanceTritanopiaTheme
provides support for previewing your application in tritanopia
color blindness mode. Use the SubstanceTheme.tritanopia
API to apply this mode to any Substance theme. Here is an example of
application under Mango theme (regular viewing) and under the same Mango
theme in tritanopia simulation mode:
The org.jvnet.substance.theme.SubstanceProtanopiaTheme
provides support for previewing your application in protanopia
color blindness mode. Use the SubstanceTheme.protanopia
API to apply this mode to any Substance theme. Here is an example of
application under Mango theme (regular viewing) and under the same Mango
theme in protanopia simulation mode:
The org.jvnet.substance.theme.SubstanceDeuteranopiaTheme
provides support for previewing your application in deuteranopia
color blindness mode. Use the SubstanceTheme.deuteranopia
API to apply this mode to any Substance theme. Here is an example of
application under Mango theme (regular viewing) and under the same Mango
theme in deuteranopia simulation mode:
|
|
|
Animations on lists, tables and trees |
Lists, tables and trees provide out-of-the-box animation effects on rollover
and selection. The maximum selection opacity is 70%, the maximum rollover opacity
is 40% - for all controls.
|
|
|
Support for multi-mixed themes |
The org.jvnet.substance.theme.SubstanceMixTheme
deprecates the org.jvnet.substance.theme.SubstanceMixBiTheme
(which is still supported) to provide multi-mixed themes. Examples of regular buttons
under multi-mixed themes:
Larger screenshot of Bottle Green - Lime Green - Bottle Green:
Larger screenshot of Brown - Sunglare - Orange:
Larger screenshot of Barby Pink - Purple - Raspberry:
|
|
|
Scrollbar buttons location |
The SubstanceLookAndFeel.SCROLL_PANE_BUTTONS_POLICY
client property specifies the location for scrollbar buttons. The value should
be one of the SubstanceConstants.ScrollPaneButtonPolicyKind
enum. Available values:
NONE - no buttons are shown.
OPPOSITE - the default policy. The decrease button
is on one side of the scroll bar, the increase button is on another side of the scroll bar.
ADJACENT - the decrease button is right next to the
increase button of the scroll bar.
MULTIPLE - the combination of two. There are two decrease
buttons, one on each side of the scroll bar (one of them is right next to the increase button).
MULTIPLE_BOTH - Two pairs of decrease / increase
buttons on each side of the scroll bar.
The following screenshot shows horizontal scrollbar under different policies and
orientations. The first scrollbar is under the default OPPOSITE
policy. The second scrollbar is under the ADJACENT policy
in LTR application. The third scrollbar is under the MULTIPLE policy
in LTR application. The fourth scrollbar is under the ADJACENT policy
in RTL application. The fifth scrollbar is under the MULTIPLE policy
in RTL application. The sixth scrollbar is under the NONE policy.
The seventh scrollbar is under the MULTIPLE_BOTH policy.
The following screenshot shows vertical scrollbar under different policies.
The first scrollbar is under the default OPPOSITE
policy. The second scrollbar is under the ADJACENT policy.
The third scrollbar is under the MULTIPLE policy.
The fourth scrollbar is under the NONE policy.
The fifth scrollbar is under the MULTIPLE_BOTH policy.
|
|
|
Support for flat scrollbar buttons |
Setting the SubstanceLookAndFeel.BUTTON_PAINT_NEVER_PROPERTY
to Boolean.TRUE on a
JScrollPane will result in
the scroll buttons being permanently flat (only displaying the arrow - no
background).
Setting the SubstanceLookAndFeel.FLAT_PROPERTY
to Boolean.TRUE on a
JScrollPane will result in
the scroll buttons being flat (displaying background only on rollover / press).
The screenshot shows a scrollbar in regular mode (scroll button shows the
background) and in flat mode (scroll button doesn't show the background):
|
|
|
Improved micro-design of text components |
The text components, comboboxes and spinners are consistent and have
the same default height, insets and layout for internal buttons. Screenshot
of these components under Substance 3.0 shows that combo is 6 pixels higher
than all other components and the spinner buttons are drawn over the borders:
Screenshot of the same application under Substance 3.1 shows the components
having the same height, consistent insets and the spinner buttons under the
same layout as the combobox button:
|
|
|
Icons on context edit menus on text components |
Using Tango icons
on context edit menus on text components (in
laf-widget project):
|
|
|
Negated themes |
Added support for negated themes. In order to enable negated
themes, use one of
UIManager.put(SubstanceLookAndFeel.ENABLE_NEGATED_THEMES,
Boolean.TRUE)
-Dsubstancelaf.enableNegatedThemes VM flag
When negated themes are enabled, the SubstanceLookAndFeel.getAllThemes()
function returns negated themes for all bright and cold themes. The matching theme kind is
ThemeKind.NEGATED . All the colors of the original
theme are negated, effectively making the non-active colors dark. Note that unlike the
inverted themes, the negated themes
are the exact negation of the original theme.
On the left is the screenshot of negated Aqua theme, and on the right is the screenshot of
inverted Aqua theme
On the left is the screenshot of negated Sunset theme, and on the right is the screenshot of
inverted Sunset theme
|
|
|
Native icons in filechooser dialog |
The filechooser dialog uses native icons:
|
|
|
New dark themes |
Two new core dark themes have been added, Jade Forest
and Ultramarine:
|
|
|
Support for hue-shifted themes |
The org.jvnet.substance.theme.SubstanceHueShiftTheme
provides support hue-shifted themes. Use SubstanceTheme.hueShift
API. The original theme maintains the same
saturation and brightness but has a different (shifted) hue. Here is a screenshot
of the original theme (complex Green Magic):
The same theme shifted by 10% (factor of 0.1):
The same theme shifted by 50% (factor of 0.5):
|
|
|
Option for separate watermark theme on complex themes |
The SubstanceComplexTheme has a new option
to specify the watermark theme. When no watermark theme is specified, the
default theme of the complex theme is used to paint the watermark. Screenshot
of a complex theme that has Ebony as a default theme,
which is also used for the wateramrk theme (no separate watermark theme
specified):
The same complex theme, but with a watermark theme (Inverted
Barby Pink):
|
|
|
Selective theme saturation |
The SubstanceTheme.saturate has a new version
that gets a boolean parameter that specifies if the entire theme
should be saturated. If this parameter is false , only the components
in active visual state will be saturated / desaturated. This API is better suited for
simple themes.
Screenshot of the original theme (Complex Mango):
The saturated version of the same theme using the old API - note that all
components (and the watermark) are saturated:
The saturated version of the same theme using the new API - note that aonly
active components are saturated:
|
|
|
New gradient painters |
Three new gradient painters were added (two are based on the
soft-clipping
technique). Screenshot of a button under new Gradient
Wave (note that the bottom part of the button is slightly hue-shifted):
Screenshot of the same button under new Specular
Wave (note that the bottom part of the button is slightly hue-shifted):
Screenshot of the same button under new Subdued:
|
|
|
Additional animation effects |
Fade animation effects have been added on:
- Menus and menu items
- Text components (text field, formatted text field, editor pane,
password field, text area)
- Button text on complex themes that have active and default of opposite
darkness
- Progress bar
|
|
|
Support for open sides on buttons |
The new SubstanceLookAndFeel.BUTTON_OPEN_SIDE_PROPERTY
client property can be set on a button to specify open side(s). An open side will
not have the border and have extended gradient painting. Internally, this property
is used to paint scrollbar and spinner buttons that blend seamlessly with other
visual parts of the relevant control.
The value of the property can be one of the following (where
Side enum is defined in the
org.jvnet.substance.utils.SubstanceConstants class):
Set<Side> - allows defining multiple open sides.
String - should correspond to one of the values of
the Side enum.
String[] - each value should correspond to one of
the values of the Side enum. Allows defining multiple
open sides.
Side .
Side[] - allows defining multiple
open sides.
The screenshot below shows buttons with different open (and straight) sides as
compared to the same buttons with no open sides:
|
|
|
Extended customization of tabbed panes |
The SubstanceLookAndFeel.PAINT_ACTIVE_PROPERTY
client property can be set on either the specific tab component or on the
tabbed pane. In the first case, the tab will be painted in active theme
as long as it's enabled. In the second case, all enabled tabs will be painted
in active theme. Example of a tabbed pane with the second, fifth and seventh
tabs marked with this property:
The SubstanceLookAndFeel.THEME_PROPERTY
client property can be set on either the specific tab component or on the
tabbed pane. In the first case, the tab will be painted using the specified
theme. In the second case, all enabled tabs will be painted
using the specified theme. Setting a complex theme can make the selected and
rolled over tabs appear in one color, the enabled tabs in another color and
disabled tabs in yet another color.
Example of the same tabbed pane with a complex theme set (the complex theme
uses Bottle Green for active controls,
Lime Green for default controls and
Purple for disabled controls):
|
|
|
Support for "pinning" internal frames |
The title pane of internal frames has additional button that allows
"pinning" the internal frame (moving and resizing are disabled). In
addition, the SubstanceLookAndFeel.PERMANENTLY_PINNED
property can be set on a JInternalFrame to
indicate that the internal frame is permanently pinned (until this property
is reset) - value should
be Boolean.TRUE in this case.
The following screenshot shows an internal frame in six different states:
- Unpinned - the default.
- Pinned - user clicked on the pin button and it is selected.
- Permanently pinned - using the property above. The pin
button can't be clicked.
- Unpinned with additional custom buttons (using
SubstanceLookAndFeel.setRootPaneCustomTitleButtons API).
- Pinned with additional custom buttons (using
SubstanceLookAndFeel.setRootPaneCustomTitleButtons API).
- Permanently pinned with additional custom buttons (using
SubstanceLookAndFeel.setRootPaneCustomTitleButtons API).
|
|
|
Support for custom background composites |
The SubstanceLookAndFeel.BACKGROUND_COMPOSITE client property
can be set on a JScrollPane ,
JTabbedPane and
JToolBar .
The value should be an instance of
org.jvnet.substance.painter.ControlBackgroundComposite
interface. At runtime it defines the background composite of scrollbar buttons
and tabs. A useful core implementation is in the
org.jvnet.substance.painter.AlphaControlBackgroundComposite that
provides a simple alpha-based translucency. Here is a screenshot of the same
scrollbar under default (none) composite background, a 75% translucent, 50% translucent
and 25% translucent composite backgrounds:
If this property is set on a JToolBar and the toolbar has
the SubstanceLookAndFeel.TOOLBAR_BUTTON_FLAT client property set to
Boolean.FALSE , the toolbar buttons can have arbitrary translucency.
|


Public Member Functions | |
| getVariable ($name, $default=NULL) | |
| setVariable ($name, $value) | |
| __construct ($config=array()) | |
| api ($path, $method= 'GET', $params=array()) | |
| setSession ($session=NULL, $write_cookie=TRUE) | |
| getSession () | |
| getAccessToken () | |
| getRequestUri () | |
Static Public Attributes | |
| static | $CURL_OPTS |
Protected Member Functions | |
| getSessionObject ($access_token=NULL) | |
| makeOAuth2Request ($path, $method= 'GET', $params=array()) | |
| makeRequest ($path, $method= 'GET', $params=array(), $ch=NULL) | |
| setCookieFromSession ($session=NULL) | |
| validateSessionObject ($session) | |
| getCurrentUri () | |
| getUri ($path= '', $params=array()) | |
| generateSignature ($params, $secret) | |
Protected Attributes | |
| $conf = array() | |
Private Member Functions | |
| getAccessTokenFromAuthorizationCode ($code) | |
| getAccessTokenFromPassword ($username, $password) | |
| getSessionCookieName () |
OAuth2.0 draft v10 client-side implementation.
Definition at line 21 of file OAuth2Client.inc.
| __construct | ( | $ | config = array() |
) |
Initialize a Drupal OAuth2.0 Application.
| $config | An associative array as below:
|
Definition at line 85 of file OAuth2Client.inc.
References getVariable(), and setVariable().
| api | ( | $ | path, | |
| $ | method = 'GET' , |
|||
| $ | params = array() | |||
| ) |
Make an API call.
Support both OAuth2.0 or normal GET/POST API call, with relative or absolute URI.
If no valid OAuth2.0 access token found in session object, this function will automatically switch as normal remote API call without "oauth_token" parameter.
Assume server reply in JSON object and always decode during return. If you hope to issue a raw query, please use makeRequest().
| $path | The target path, relative to base_path/service_uri or an absolute URI. | |
| $method | (optional) The HTTP method (default 'GET'). | |
| $params | (optional The GET/POST parameters. |
| OAuth2Exception |
Definition at line 203 of file OAuth2Client.inc.
References getUri(), makeOAuth2Request(), and setSession().
| generateSignature | ( | $ | params, | |
| $ | secret | |||
| ) | [protected] |
Generate a signature for the given params and secret.
| $params | The parameters to sign. | |
| $secret | The secret to sign with. |
Definition at line 708 of file OAuth2Client.inc.
Referenced by getSessionObject(), and validateSessionObject().
| getAccessToken | ( | ) |
Gets an OAuth2.0 access token from session.
This will trigger getSession() and so we MUST initialize with required configuration.
Definition at line 339 of file OAuth2Client.inc.
References getSession().
Referenced by makeOAuth2Request().
| getAccessTokenFromAuthorizationCode | ( | $ | code | ) | [private] |
Get access token from OAuth2.0 token endpoint with authorization code.
This function will only be activated if both access token URI, client identifier and client secret are setup correctly.
| $code | Authorization code issued by authorization server's authorization endpoint. |
Definition at line 358 of file OAuth2Client.inc.
References getCurrentUri(), getVariable(), and makeRequest().
Referenced by getSession().
| getAccessTokenFromPassword | ( | $ | username, | |
| $ | password | |||
| ) | [private] |
Get access token from OAuth2.0 token endpoint with basic user credentials.
This function will only be activated if both username and password are setup correctly.
| $username | Username to be check with. | |
| $password | Password to be check with. |
Definition at line 391 of file OAuth2Client.inc.
References getVariable(), and makeRequest().
Referenced by getSession().
| getCurrentUri | ( | ) | [protected] |
Returns the Current URL.
Definition at line 645 of file OAuth2Client.inc.
References getRequestUri().
Referenced by getAccessTokenFromAuthorizationCode().
| getRequestUri | ( | ) |
Since $_SERVER['REQUEST_URI'] is only available on Apache, we generate an equivalent using other environment variables.
Definition at line 618 of file OAuth2Client.inc.
Referenced by getCurrentUri().
| getSession | ( | ) |
Get the session object.
This will automatically look for a signed session via custom method, OAuth2.0 grant type with authorization_code, OAuth2.0 grant type with password, or cookie that we had already setup.
Definition at line 284 of file OAuth2Client.inc.
References getAccessTokenFromAuthorizationCode(), getAccessTokenFromPassword(), getSessionCookieName(), getSessionObject(), getVariable(), setSession(), and validateSessionObject().
Referenced by getAccessToken().
| getSessionCookieName | ( | ) | [private] |
The name of the cookie that contains the session object.
Definition at line 541 of file OAuth2Client.inc.
References getVariable().
Referenced by getSession(), and setCookieFromSession().
| getSessionObject | ( | $ | access_token = NULL |
) | [protected] |
Try to get session object from custom method.
By default we generate session object based on access_token response, or if it is provided from server with $_REQUEST. For sure, if it is provided by server it should follow our session object format.
Session object provided by server can ensure the correct expirse and base_domain setup as predefined in server, also you may get more useful information for custom functionality, too. BTW, this may require for additional remote call overhead.
You may wish to override this function with your custom version due to your own server-side implementation.
| $access_token | (optional) A valid access token in associative array as below:
|
Definition at line 145 of file OAuth2Client.inc.
References generateSignature(), and getVariable().
Referenced by getSession().
| getUri | ( | $ | path = '' , |
|
| $ | params = array() | |||
| ) | [protected] |
Build the URL for given path and parameters.
| $path | (optional) The path. | |
| $params | (optional) The query parameters in associative array. |
Definition at line 682 of file OAuth2Client.inc.
References getVariable().
Referenced by api().
| getVariable | ( | $ | name, | |
| $ | default = NULL | |||
| ) |
Returns a persistent variable.
To avoid problems, always use lower case for persistent variable names.
| $name | The name of the variable to return. | |
| $default | The default value to use if this variable has never been set. |
Definition at line 41 of file OAuth2Client.inc.
Referenced by __construct(), getAccessTokenFromAuthorizationCode(), getAccessTokenFromPassword(), getSession(), getSessionCookieName(), getSessionObject(), getUri(), makeRequest(), setCookieFromSession(), setSession(), and validateSessionObject().
| makeOAuth2Request | ( | $ | path, | |
| $ | method = 'GET' , |
|||
| $ | params = array() | |||
| ) | [protected] |
Make an OAuth2.0 Request.
Automatically append "oauth_token" in query parameters if not yet exists and able to discover a valid access token from session. Otherwise just ignore setup with "oauth_token" and handle the API call AS-IS, and so may issue a plain API call without OAuth2.0 protection.
| $path | The target path, relative to base_path/service_uri or an absolute URI. | |
| $method | (optional) The HTTP method (default 'GET'). | |
| $params | (optional The GET/POST parameters. |
| OAuth2Exception |
Definition at line 428 of file OAuth2Client.inc.
References getAccessToken(), and makeRequest().
Referenced by api().
| makeRequest | ( | $ | path, | |
| $ | method = 'GET' , |
|||
| $ | params = array() , |
|||
| $ | ch = NULL | |||
| ) | [protected] |
Makes an HTTP request.
This method can be overriden by subclasses if developers want to do fancier things or use something other than cURL to make the request.
| $path | The target path, relative to base_path/service_uri or an absolute URI. | |
| $method | (optional) The HTTP method (default 'GET'). | |
| $params | (optional The GET/POST parameters. | |
| $ch | (optional) An initialized curl handle |
Definition at line 453 of file OAuth2Client.inc.
References getVariable().
Referenced by getAccessTokenFromAuthorizationCode(), getAccessTokenFromPassword(), and makeOAuth2Request().
| setCookieFromSession | ( | $ | session = NULL |
) | [protected] |
Set a JS Cookie based on the _passed in_ session.
It does not use the currently stored session - you need to explicitly pass it in.
| $session | The session to use for setting the cookie. |
Definition at line 554 of file OAuth2Client.inc.
References getSessionCookieName(), and getVariable().
Referenced by setSession().
| setSession | ( | $ | session = NULL , |
|
| $ | write_cookie = TRUE | |||
| ) |
Set the Session.
| $session | (optional) The session object to be set. NULL if hope to frush existing session object. | |
| $write_cookie | (optional) TRUE if a cookie should be written. This value is ignored if cookie support has been disabled. |
Definition at line 264 of file OAuth2Client.inc.
References getVariable(), setCookieFromSession(), setVariable(), and validateSessionObject().
Referenced by api(), and getSession().
| setVariable | ( | $ | name, | |
| $ | value | |||
| ) |
Sets a persistent variable.
To avoid problems, always use lower case for persistent variable names.
| $name | The name of the variable to set. | |
| $value | The value to set. |
Definition at line 55 of file OAuth2Client.inc.
Referenced by __construct(), and setSession().
| validateSessionObject | ( | $ | session | ) | [protected] |
Validates a session_version = 3 style session object.
| $session | The session object. |
Definition at line 591 of file OAuth2Client.inc.
References generateSignature(), and getVariable().
Referenced by getSession(), and setSession().
$conf = array() [protected] |
Array of persistent variables stored.
Definition at line 26 of file OAuth2Client.inc.
$CURL_OPTS [static] |
array( CURLOPT_CONNECTTIMEOUT => 10, CURLOPT_RETURNTRANSFER => TRUE, CURLOPT_HEADER => TRUE, CURLOPT_TIMEOUT => 60, CURLOPT_USERAGENT => 'oauth2-draft-v10', CURLOPT_HTTPHEADER => array("Accept: application/json"), )
Default options for cURL.
Definition at line 242 of file OAuth2Client.inc.


For Emergencies:<PHONE_NUMBER>
Home
Detail
Admin
COVBER
+
KeeHety
Home
Detail
Admin
Request an Appointment
For Emergencies: +563 47558 623
Detail
COVBER
Home
Detail COVBER
Rumah Sakit Umum Dr.Saiful Anwar Kota Malang
read more
submit
submit


Codeology is an open-source project that brings to life the art and science of code. An algorithm analyzes Github projects and creates unique organic forms based on the codebase size and language. As no two pieces of code are alike, no two Codeology forms are alike.
Codeology is an open-source project that reimagines code by bringing it to life visually. The combination of coding languages in each Github project determines its look, therefore, each creation is original.
The application pulls data from Github’s public API and creates visuals using WebGL, ThreeJS, and GLSL Shaders. Shape and color represent an individual language, with size being proportionate to how many lines of code are written. In its current form, Codeology recognizes and uniquely renders the following languages:
> Roll over to see individual shapes
> View on desktop for the full experience
Braintree builds products that make payments easier — so easy that they fade into the background and enable beautiful commerce experiences to flourish. Everything we've ever made is with developers in mind, so you'll get a simple integration, robust documentation, and stellar support all on your path to accepting every way to pay.


{{ email.html_body|safe }}
To unsubscribe from this sequence and sign up for the next available sequence, please click this link
If you would like to completely unsubscribe follow this link


Draw.Box
Syntax
Draw.Box (x1, y1, x2, y2, Color : int)
Description
The Draw.Box procedure is used to draw a box on the screen with bottom left and top right corners of (x1, y1) to (x2, y2) using the specified Color.
Example
This program draws a large box, reaching to each corner of the screen using color number 12. The maxx and maxy functions are used to determine the maximum x and y values on the screen. The point (0,0) is the left bottom of the screen and (maxx, maxy) is the right top.
View.Set ("graphics")
Draw.Box (0, 0, maxx, maxy, 12)
Details
The screen must be in a "graphics" mode. See the View.Set procedure for details. If the screen is not in a "graphics" mode, an error will occur.
Status
Exported qualified.
This means that you can only call the function by calling Draw.Box, not by calling Box.
See also
View.Set, maxx, maxy and the various procedures in the Draw unit.


Proof-of-Work consensys mechanism
eventually consistent ordering of events
btc vm doesnt allow loops
dat halting problem
Ethereum state
user accounts and contracts
send ether
call method on contract
contract reacts
chain reaction
multi sig via proxy contracts
assembly of contracts
where do contracts come from?
special tx (empty 'to' field)


Cheat Sheet: Auckland Council could be making plans to buy Ihumātao land
by Alice Webb-LiddallAfter months of silence on Ihumātao, the government is considering a loan to Auckland Council to buy the occupied Fletcher-owned land, according to an RNZ report .
What is the dispute over the land?
Fletcher Residential bought a section of land in South Auckland in 2014 for $19m with plans to build a 480-house development. A group of cousins who whakapapa to the area became aware of the plan and formed Save Our Unique Landscapes (SOUL), a group that’s spent the good part of three years occupying the whenua against this development.
So the land is important to them?
The land that was intended to be developed is right on the edge of the Ōtuataua Stonefields Historic Reserve, a very important whenua for local iwi. The area was a pā site as well as the first market garden location in New Zealand, and parts are considered wāhi tapu as they contain ancestral remains.
It’s been years since the first occupation, why hasn’t an agreement been made?
In July of 2019 the protectors at Ihumātao were issued with trespass notices and ordered to vacate the land, which they refused to do. This sparked a huge police presence, leading to an even bigger turnout of supporters for the SOUL movement, and the issue became headline news.
So what’s brought it back into the media now?
After months of government silence over the issue, a report by RNZ this morning says there may be plans for the Crown to loan money to Auckland Council so they can buy the land off Fletchers.
That’s good, right?
Yes, it’s really good! The problem is that Auckland Council won’t confirm whether it’s actually happening or not, and the government is being equally vague.
Finance minister Grant Roberston said in a statement that “the Government’s focus is on supporting a resolution that respects all parties including the Crown, mana whenua and Fletchers, and we are continuing to work on finding that resolution.”
And a statement from the Auckland Mayor’s office said “The council is continuing to support the government, mana whenua and other parties throughout this negotiation process. Council will be helpful where possible.”
Can anyone else confirm the plan?
The Spinoff asked SOUL, who said they would not be giving statements until they have heard confirmation that the plan reported in RNZ is actually on the cards. It seems as though SOUL hasn’t heard anything about this either.
Anyone else?
Prime minister Jacinda Ardern also spoke to RNZ this morning, but she said about the same as Auckland Council and her colleague, Grant Robertson.
“We have been working really hard on finding a solution and that’s work that’s ongoing so I cannot confirm any final resolution, any details around anything beyond the fact that we in fact have remained involved in this issue since July and continue to work hard to find a solution,” she said.
How much money is Fletcher asking for the land?
Since buying it for $19m in 2014, Fletcher has more than doubled their asking price for the whenua. Now they’re asking for $40m, which is obviously a bit more than the SOUL protectors could crowdsource and why they’ve been asking for the government’s help for years.
Is anyone against the government using $40m to purchase this piece of historic land?
Leader of the opposition Simon Bridges says the purchase of Ihumātao would “open Pandora’s box” to other finalised treaty settlements. He says it shows a “complete disregard” for property rights and that the prime minister should have never got involved in the first place.
“This is an appalling use of taxpayers’ money and the Government needs to rule it out,” he said in a statement.
“It’s been four months since the Prime Minister got involved. It’s time to finally put a stop to this. The protestors need to go home and the Government needs to rule out a loan.”
Are there any other factors at play in terms of the purchase?
Join us and get a free copy
of the Spinoff’s first book!Find Out More
Heritage New Zealand has imposed an interim increase of the heritage status of the area, increasing it to a category 1 historic place by including the Fletcher-owned land within the boundary of the Ōtuataua Stonefields Historic Reserve. It will make a final decision on whether to make this change permanent early next year.
Are there other options if this one doesn’t eventuate?
There was speculation earlier in the year that Waikato Tainui might purchase the land, but an iwi spokesperson said this deal was never made.
SOUL founder Qiane Matata-Sipu told The Spinoff earlier this year that the protectors would not be leaving until a solution had been found. “We’ve been here for 800 years and we’ll be here for 800 more and if it’s not me it will be my daughter. I’m so actively involved in this kaupapa and sacrificing time with my family now because I don’t want her to have to do this when she gets older.”


Dream Crusher - The worst teacher you ever had
# if g.user.is_authenticated #if g.user.avatar_url
# endif {{ g.user.nickname }} # endif
Home
Edit dreams
Statistics
Logout
# if g.user.is_authenticated and g.user.is_admin()
Admin panel
# endif
# block body # endblock


SVGs are part of the HTML5 standard and provide us with the means of creating graphical elements that can be displayed in the browser.
A main concept about SVGs is that we do not define our graphical elements pixel by pixel but rather what element we want, e.g. a circle, and what properties it should have, e.g. size, color,... One advantage of this approach is that resizing of the elements does not decrease their quality.
The coordinate system of SVGs has its origin at the top left corner and has its x axis to the right and its y axis downwards.
Another important thing to note is that the depth ordering of elements is defined by the order in which they are drawn, superimposing the new over the old ones.
Look at the source code. The following graphic is simpy created using HTML-tags.  Later in D3, we will do this dynamically.


{% extends "layout_task-list.html" %} {% block page_title %} Money Claims Prototype {% endblock %} {% block home_link %} ../task-list {% endblock %} {% block proposition_header %} {% set my_account="1" %} {% include "includes/propositional_navigation.html" %} {% endblock %} {% block content %} {% include "includes/phase_banner_beta.html" %} Get the company's full legal name right Warning Your claim may fail if you don't use the company's full legal name. The company's full legal name will be different from the brand name you know. For example: KFC is Kentucky Fried Chicken (Great Britain) Limited Currys PC World is DSG Retail Limited easyJet is easyJet Airline Company Limited British Gas is British Gas Trading Limited Saga Holidays is ST&H Group Limited These names are just examples used to show the difference between a brand name and a full legal name. Don't assume they're correct or in date at the time you're making a claim. How to find a company's full legal name The full legal name will almost always end in 'limited', 'ltd' or 'plc'. Try these steps to find it: Ask the company. Check your paperwork. Look online. Never use a trading name. Ask the company Talk to someone you dealt with or contact the company and ask what its full legal name is. If your claim is connected to one branch of a chain, ask if the main company owns that branch or if it's a franchise. A franchise is a branch that's not owned by its parent brand. For example, a branch of McDonalds or Starbucks might be owned by another company. If you know you're claiming against a franchise, look for the full legal name of the company that owns the branch, not the main brand. Check your paperwork Look for the full legal name on any quotes, estimates, contracts, invoices, till receipts or documents that list terms and conditions. You can often find it in the footer or in small print rather than in logos or headings. View an example of a full legal name on a receipt Look online Go to the company's website and try to find the full legal name in terms and conditions or privacy policies. You could also try entering the name you know the business by and 'terms and conditions' into a search engine. Never use a trading name If your paperwork says 'Saga Holidays is a trading name of ST&H Group Limited', then you should use 'ST&H Group Limited', the full legal name. Have you found the company's full legal name? I confirm I've found the company's full legal name {% include 'prototypes/prototype-oct-2019/includes/contact.html' %} {% endblock %}
The company's full legal name will be different from the brand name you know.
For example:
These names are just examples used to show the difference between a brand name and a full legal name. Don't assume they're correct or in date at the time you're making a claim.
The full legal name will almost always end in 'limited', 'ltd' or 'plc'.
Try these steps to find it:
Talk to someone you dealt with or contact the company and ask what its full legal name is.
If your claim is connected to one branch of a chain, ask if the main company owns that branch or if it's a franchise.
A franchise is a branch that's not owned by its parent brand. For example, a branch of McDonalds or Starbucks might be owned by another company.
If you know you're claiming against a franchise, look for the full legal name of the company that owns the branch, not the main brand.
Look for the full legal name on any quotes, estimates, contracts, invoices, till receipts or documents that list terms and conditions.
You can often find it in the footer or in small print rather than in logos or headings.
Go to the company's website and try to find the full legal name in terms and conditions or privacy policies.
You could also try entering the name you know the business by and 'terms and conditions' into a search engine.
If your paperwork says 'Saga Holidays is a trading name of ST&H Group Limited', then you should use 'ST&H Group Limited', the full legal name.


Molly-Mae Hague and Tommy Fury enjoy date after she got seriously jealous of his solo night out
Tommy had a lot of making up to do after he got Molly-Mae fired up with jealousy on his solo night out
by Lily Waddell, https://www.mirror.co.uk/authors/lily-waddell/Tommy Fury had a lot of wooing to do after he left Molly-Mae Hague feeling jealous over his solo night out.
But the self-confessed "smug" Love Island power couple, both 20, proved they were very much together on a cosy date night on Wednesday.
The boxer had done well as he whisked his girlfriend away to The Ivy Roof Garden, in Manchester for their swanky evening out.
A happy Molly-Mae beamed for the camera while Tommy snapped the shot of her looking ultra glam for their date.
She returned the favour as she took an equally dapper photograph of her love.
Only Tuesday, the social media guru admitted she was feeling the pangs of jealousy when her boxer beau headed out to the ITV Palooza without her.
Absent from the event, she penned: "Don't have too much fun without me." Molly-Mae accompanied the note with two sad emojis and a heart.
Molly-Mae and Tommy are arguably the power couple that come out of last year's Love Island.
The blonde bombshell shared she couldn't help feeling a little "smug" that they outlasted almost every other Love Island relationship.
BFFs Curtis Pritchard and Maura Higgins are the only other couple remaining from the series.
Molly-Mae and Tommy got a hard time from fans who accused her of only wanting to be with her love for the money.
Now she's proved every single one of them wrong.
Molly-Mae told Mirror Online exclusively as she teamed up with Tatti Lashes to launch her own line of fake eyelashes: "I think I'd be wrong if I said it didn't give me a bit of a smug feeling because it does [that we have lasted].
"And it's nice to be able to show everyone they were all wrong because they didn't believe in us and it's so nice to show that we were the realest couple in there and I think that's really shown since we've come out.
"And Maura and Curtis were a bit rocky and now everyone else has broken up and we're the only couples who've remained and I could have told you that right from the start but no one would listen to me and wanted to say I was fake.
"I saw Amber [Gill] the other day and it's sad what happened, but she would have told you herself that Tommy and I were the winners, it's a hard one because everyone knows Tommy and I were the winners in a way but everything happens for a reason and we didn't need to win the show to prove what we've got because everyone can see it now and we're so happy, but maybe we wouldn't have been if we'd won, you just never know."


My Map
Click me
Click me2
Whatever you put in this text box will be downloaded and saved in the file. If you leave it blank, no file will be downloaded
export


e4 uses an event bus to let different pieces (e.g. parts) of an e4 application communicate. Architecturally, this leads to low coupling (doubleplusgood) due to the fact that the various pieces only need to know the event topics (String constants), which are ideally defined centrally in a common bundle. If you happen to never leave the e4 application realm you are lucky and can stop reading here. For the rest of us though - who face the requirement to send e4 application events outside of e4 - the problem is that e4 does not use the org.osgi.service.event.EventAdmin directly. It comes with its own org.eclipse.e4.core.services.events.IEventBroker. This alone would not pose an unsolvable problem (one could simply get the IEventBroker instead of EventAdmin from OSGi), but IEventBroker does not get registered with the OSGi service registry (see bug #391097). Luckily for us, the e4 team - even though they decided against reusing the OSGi org.osgi.service.event.EventAdmin directly - implemented IEventBroker as a wrapper around EventAdmin. So in order to send an event to e4, one simply has to get/lookup the OSGi EventAdmin from the OSGi service register (either programmatically or with DS).
If one's use case also requires sending a payload along with the event, the Dictionary/Map of org.osgi.service.event.Event has to contain the element under the special key org.eclipse.e4.core.services.events.IEventBroker.DATA.
Map<String, Object> map = new HashMap<String, Object>();
map.put(IEventBroker.DATA, payload);
Event event = new Event(MyE4EventConstants.TOPIC_SOME_TOPIC, map);
ServiceReference<EventAdmin> serviceReference =
context.getServiceReference(EventAdmin.class);
EventAdmin ea = context.getService(serviceReference);
ea.postEvent(event);


WHAT'S NEW?
Feb'20 EURUSD Report
The expected fall to 1.08 has happened and the Euro has started to move up already. Is the fall over in Euro or is there still room left for the currency to fall again before actually finding a bottom? ...
Read More


com.vividsolutions.jts.awt
Class PolygonShape
java.lang.Object
com.vividsolutions.jts.awt.PolygonShape
- All Implemented Interfaces:
- java.awt.Shape
public class PolygonShape
- extends java.lang.Object
- implements java.awt.Shape
A Shape
which represents a polygon which may contain holes.
Provided because the standard AWT Polygon class does not support holes.
- Author:
- Martin Davis
|
Method Summary |
boolean |
contains(double x,
double y)
|
boolean |
contains(double x,
double y,
double w,
double h)
|
boolean |
contains(java.awt.geom.Point2D p)
|
boolean |
contains(java.awt.geom.Rectangle2D r)
|
java.awt.Rectangle |
getBounds()
|
java.awt.geom.Rectangle2D |
getBounds2D()
|
java.awt.geom.PathIterator |
getPathIterator(java.awt.geom.AffineTransform at)
|
java.awt.geom.PathIterator |
getPathIterator(java.awt.geom.AffineTransform at,
double flatness)
|
boolean |
intersects(double x,
double y,
double w,
double h)
|
boolean |
intersects(java.awt.geom.Rectangle2D r)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PolygonShape
public PolygonShape(Coordinate[] shellVertices,
java.util.Collection holeVerticesCollection)
- Creates a new polygon
Shape
.
- Parameters:
shellVertices
- the vertices of the shellholeVerticesCollection
- a collection of Coordinate[] for each hole
PolygonShape
public PolygonShape()
getBounds
public java.awt.Rectangle getBounds()
- Specified by:
getBounds
in interface java.awt.Shape
getBounds2D
public java.awt.geom.Rectangle2D getBounds2D()
- Specified by:
getBounds2D
in interface java.awt.Shape
contains
public boolean contains(double x,
double y)
- Specified by:
contains
in interface java.awt.Shape
contains
public boolean contains(java.awt.geom.Point2D p)
- Specified by:
contains
in interface java.awt.Shape
intersects
public boolean intersects(double x,
double y,
double w,
double h)
- Specified by:
intersects
in interface java.awt.Shape
intersects
public boolean intersects(java.awt.geom.Rectangle2D r)
- Specified by:
intersects
in interface java.awt.Shape
contains
public boolean contains(double x,
double y,
double w,
double h)
- Specified by:
contains
in interface java.awt.Shape
contains
public boolean contains(java.awt.geom.Rectangle2D r)
- Specified by:
contains
in interface java.awt.Shape
getPathIterator
public java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at)
- Specified by:
getPathIterator
in interface java.awt.Shape
getPathIterator
public java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at,
double flatness)
- Specified by:
getPathIterator
in interface java.awt.Shape


const zookeeper = require('node-zookeeper-client');
const State = zookeeper.State;
const ACL = zookeeper.ACL;
const CreateMode = zookeeper.CreateMode;
const Exception = zookeeper.Exception;
// use bluebird promises if available
try {
var bluebird = require('bluebird');
if (bluebird) {
global.Promise = bluebird.Promise;
}
} catch (_) { }
module.exports = Object.assign({}, zookeeper);
/**
* An asynchronous zookeeper transaction. Created by AsyncClient.transaction()
*/
class AsyncTransaction {
constructor(transaction) {
this._transaction = transaction;
}
/**
* Add a create operation with given path, data, acls and mode.
* @param {String} path Path of the node.
* @param {Buffer} data The data buffer, optional, defaults to null.
* @param {ACL[]} acls An array of ACL objects, optional, defaults to ACL.OPEN_ACL_UNSAFE
* @param {CreateMode} mode The creation mode, optional, defaults to CreateMode.PERSISTENT
* @returns {AsyncTransaction}
*/
create(path, data = null, acls = null, mode = null) {
this._transaction.create(path, data, acls, mode);
return this;
}
/**
* Add a set-data operation with the given path, data and optional version.
* @param {string} path Path of the node.
* @param {Buffer} data The data buffer, or null.
* @param {number} version The version of the node, optional, defaults to -1.
* @returns {AsyncTransaction}
*/
setData(path, data, version = -1) {
this._transaction.setData(path, data, version);
return this;
}
/**
* Add a check (existence) operation with given path and optional version.
* @param {*} path Path of the node.
* @param {*} version The version of the node, optional, defaults to -1.
* @returns {AsyncTransaction}
*/
check(path, version = -1) {
this._transaction.check(path, version);
return this;
}
/**
* Add a delete operation with the given path and optional version.
* @param {*} path Path of the node.
* @param {*} version The version of the node, optional, defaults to -1.
* @returns {AsyncTransaction}
*/
remove(path, version = -1) {
this._transaction.remove(path, version);
return this;
}
/**
* Execute the transaction atomically.
* @param {Function} cb The callback function.
*/
commit(cb) {
this._transaction.commit(cb);
}
/**
* Execute the transaction atomically. Resolves when the operation has completed,
* rejects if anything goes wrong.
* @returns {Promise}
*/
commitAsync() {
return new Promise((resolve, reject) => {
this._transaction.commit((e, r) => {
if (e) reject(e);
else resolve(r);
})
});
}
}
/**
* A zookeeper client that has methods that return promises.
* @example
* const zk = require('node-zookeeper-client-async');
*
* const client = zk.createAsyncClient("<IP_ADDRESS>:2181");
*
* // connect to the server
* await client.connectAsync();
* console.log('connected!');
*
* // create a node
* const rootPath = await client.mkdirpAsync('/test');
* console.log(`created ${rootPath}`)
*
* // add some ephemeral nodes
* await client.createAsync('/test/counter-', Buffer.from('first'), null, zk.CreateMode.EPHEMERAL_SEQUENTIAL);
* await client.createAsync('/test/counter-', Buffer.from('second'), null, zk.CreateMode.EPHEMERAL_SEQUENTIAL);
*
* // list the nodes
* const nodes = await client.getChildrenAsync('/test');
*
* // print stuff to console
* console.log(`${rootPath} has the children:`)
* await Promise.all(nodes.map(async node => {
* const data = await client.getDataAsync(`/test/${node}`);
* console.log(` ${node}: ${data.data}`);
* }));
*
* // delete everything
* await client.rmrfAsync(rootPath);
*
* // shut down
* await client.closeAsync();
* console.log('disconnected');
*/
class AsyncClient {
/**
* Creates a new AsyncClient for communicating with zookeeper. This object will
* expose all the methods of the underlying zookeeper client, but also expose
* a number of methods that return promises.
* @param {Client} client the underlying zookeeper client created by createClient.
*/
constructor(client) {
this._client = client;
// this object has all the methods of the underlying client.
for (let k in client) {
if (k in AsyncClient.prototype) continue;
const v = client[k];
if (typeof v == 'function') this[k] = v.bind(client);
}
}
/**
* Initiate the connection to the provided server list (ensemble). The client will
* pick an arbitrary server from the list and attempt to connect to it. If the
* establishment of the connection fails, another server will be tried (picked
* randomly) until a connection is established or close method is invoked.
* @returns {Promise} resolves on connect. Rejects with message on failure.
*/
connectAsync() {
return new Promise((resolve, reject) => {
this._client.once('connected', () => resolve());
this._client.once('connectedReadOnly', () => resolve());
this._client.once('authenticationFailed', () => reject('Authentication failed.'));
this._client.once('disconnected', () => reject('Client disconnected before it could open a successful connection.'));
this._client.connect();
});
}
/**
* Close this client. Once the client is closed, its session becomes invalid. All the
* ephemeral nodes in the ZooKeeper server associated with the session will be
* removed. The watchers left on those nodes (and on their parents) will be triggered.
* Resolves true when the client disconnects, resolves false if the client is already
* disconnected.
* @returns {Promise} resolves when disconnected. Does not reject.
*/
closeAsync() {
return new Promise((resolve, reject) => {
if (this._client.getState() == State.DISCONNECTED) {
resolve(false);
} else {
this._client.once('disconnected', () => resolve(true));
this._client.close();
}
});
}
/**
* Create a node with given path, data, acls and mode. Resolves the path name if
* successful, resolves false if the path already exists, and rejects for anything
* else going wrong
* @param {String} path Path of the node.
* @param {Buffer} data The data buffer, optional, defaults to null.
* @param {ACL} acls An array of ACL objects, optional, defaults to ACL.OPEN_ACL_UNSAFE.
* @param {CreateMode} mode The creation mode, optional, defaults to CreateMode.PERSISTENT.
* @returns {Promise} resolves with the path of the created item. Rejects with an error
* if something goes wrong.
*/
createAsync(path, data = null, acls = null, mode = null) {
return new Promise((resolve, reject) => {
this._client.create(path, data, acls, mode, (error, path) => {
if (error) {
if (error.code == Exception.NODE_EXISTS) {
resolve(false);
} else {
reject(error);
}
} else {
resolve(path);
}
});
});
}
/**
* Delete a node with the given path and version. If version is provided and not equal
* to -1, the request will fail when the provided version does not match the server
* version. Resolves true if the node is deleted. Resolves false if the node does
* not exist. Rejects if the node has children, if the version does not match, or
* for any other result.
* @param {String} path Path of the node.
* @param {Number} version The version of the node, optional, defaults to -1.
* @returns {Promise}
*/
removeAsync(path, version = -1) {
return new Promise((resolve, reject) => {
this._client.remove(path, version, e => {
switch (e && e.code) {
case Exception.NO_NODE: resolve(false); break;
case null:
resolve(true);
break;
default:
reject(e);
break;
}
});
});
}
/**
* For the given node path, retrieve the children list and the stat. The children will
* be an unordered list of strings. Resolves the stat object if the node exists,
* resolves null if it does not exist, rejects if anything goes wrong.
* @param {string} path the Path of the node.
* @returns {Promise}
*/
existsAsync(path) {
return new Promise((resolve, reject) => {
this._client.exists(path, null, (e, stat) => {
if (e) {
reject(e);
} else {
resolve(stat);
}
});
});
}
/**
* For the given node path, retrieve the children list and the stat. The children will
* be an unordered list of strings. Resolved the children if the node exists, resolves
* null if the node does not exist. Rejects if anything goes wrong.
* @param {string} path the Path of the node.
* @returns {Promise}
*/
getChildrenAsync(path) {
return new Promise((resolve, reject) => {
this._client.getChildren(path, null, (e, children) => {
if (e) {
if (e.code == Exception.NO_NODE) resolve(null);
else reject(e);
} else {
resolve(children);
}
});
});
}
/**
* Retrieve the data and the stat of the node of the given path. Resolves an object
* containing data as a Buffer object and stat as the stat object. Resolves null
* if the node does not exist. Rejects if anything goes wrong.
* @param {string} path the Path of the node.
* @returns {Promise}
*/
getDataAsync(path) {
return new Promise((resolve, reject) => {
this._client.getData(path, null, (e, data, stat) => {
if (e) {
if (e.code == Exception.NO_NODE) resolve(null);
else reject(e);
} else {
resolve({ data, stat });
}
});
});
}
/**
* Set the data for the node of the given path if such a node exists and the optional
* given version matches the version of the node (if the given version is -1, it
* matches any node's versions). Will resolve the stat of the node if successful. Will
* reject if unsuccessful or if the node does not exist.
* @param {string} path the Path of the node.
* @param {Buffer} data the data to set on the node.
* @param {Number} version the version to set. -1 (default) to match any version.
* @returns {Promise}
*/
setDataAsync(path, data, version = -1) {
return new Promise((resolve, reject) => {
this._client.setData(path, data, version, (e, stat) => {
if (e) {
reject(e);
} else {
resolve(stat);
}
});
});
}
/**
* Retrieve the list of ACL and stat of the node of the given path. Will resolve an
* object with acls as a list of ACL objects and stat as the stat for the node. Will
* resolve null if the node does not exist and will reject if anything goes wrong.
* @param {string} path the Path of the node.
* @returns {Promise}
*/
getACLAsync(path) {
return new Promise((resolve, reject) => {
this._client.getACL(path, (e, acls, stat) => {
if (e) {
if (e.code == Exception.NO_NODE) resolve(null);
else reject(e);
} else {
resolve({ stat, acls });
}
});
});
}
/**
* Set the ACL for the node of the given path if such a node exists and the given
* version (optional) matches the version of the node on the server. (if the given
* version is -1, it matches any versions). Will resolve on success and reject
* if anything goes wrong or the node does not exist.
* @param {string} path the Path of the node.
* @param {ACL[]} acls An array of ACL instances to set on the node.
* @param {Number} version the version to set. -1 (default) to match any version.
*/
setACLAsync(path, acls, version = -1) {
return new Promise((resolve, reject) => {
this._client.setACL(path, acls, version, (e, stat) => {
if (e) {
reject(e);
} else {
resolve(stat);
}
});
});
}
/**
* Create given path in a way similar to mkdir -p. Will resolve the path if the node
* is created and will reject if anything goes wrong.
* @param {string} path the Path of the node.
* @param {Buffer} data The data buffer, optional, defaults to null.
* @param {ACL[]} acls array of ACL objects, optional, defaults to ACL.OPEN_ACL_UNSAFE
* @param {CreateMode} mode The creation mode, optional, defaults to CreateMode.PERSISTENT
* @return {Promise}
*/
mkdirpAsync(path, data = null, acls = null, mode = null) {
return new Promise((resolve, reject) => {
this._client.mkdirp(path, data, acls, mode, (e, path) => {
if (e) {
reject(e);
} else {
resolve(path);
}
});
});
}
/**
* Remove a given path in a way similar to rm -rf. Will resolve if the node is deleted
* or does not exist and reject if anything goes wrong.
* @param {string} path the Path of the node.
* @return {Promise}
*/
rmrfAsync(path) {
return new Promise((resolve, reject) => {
this.getChildrenAsync(path).then(children => {
if (!children || !children.length) {
// no children, ready to remove the node.
this.removeAsync(path).then(resolve, reject);
} else {
var promises = children.map(c => this.rmrfAsync(`${path}/${c}`));
Promise.all(promises).then(() => {
// all children removed, now remove this
this.removeAsync(path).then(resolve, reject);
}, reject);
}
}, reject);
});
}
/**
* Create and return a new Transaction instance which provides a builder object that
* can be used to construct and commit a set of operations atomically.
* @returns {AsyncTransaction}
*/
transaction() {
const transaction = this._client.transaction();
const asyncTransaction = new AsyncTransaction(transaction);
return asyncTransaction;
}
}
function createAsyncClient(connectionString, options = null) {
const clientInternal = zookeeper.createClient(connectionString, options);
return new AsyncClient(clientInternal);
}
module.exports.createAsyncClient = createAsyncClient;
module.exports.AsyncClient = AsyncClient;
module.exports.AsyncTransaction = AsyncTransaction;


Rules
If an agent intersect with another agent, picks a word
from the own vocabulary and tells that. The neighborhood receives and adds that word into its vocabulary as
- Mutation of a vowel sound with 0.1 probability
- Mutation of a const sound with 0.1 probability
- Comparing with another word
- Without any mutation


Savtrack
menu
Log Out
Upload Songs
Choose A File:
Name:
Upload
Close
Media List
Curent Song
Chat Room
Send


{% extends 'layout.html' %} {% block pageTitle %} State Pension Activation {% endblock %} {% block content %} {% include 'includes/parts/phase-banner.html' %} Your contact details We’ll call you to confirm some of the details you’ve given us before we process your application. How should we contact you? How should we contact you? Provide at least one phone number Home phone Mobile phone Work phone Email address Continue {% include 'includes/parts/helpinternational.html' %} {% endblock %}
We’ll call you to confirm some of the details you’ve given us before we process your application.
Provide at least one phone number


Villa K / Paul de Ruiter Architects
- Curated by Fernanda Castro
- about 19 hours
- ArchitectsAuthors of this architecture project Paul de Ruiter Architects
- AreaArea of this architecture project 248.0 m2
- Project YearBrands with products used in this architecture project 2014
- PhotographerCreated with Sketch. Pieters Kers & Patrick Voigt
- ManufacturersBrands with products used in this architecture project GIRA, panoramah!®
- Project Architect Paul de Ruiter
- Project Team Willem Jan Landman
- Advice Construction Van Rossum
More Specs Less Specs
Text description provided by the architects. Villa K, located in Thüringen, is the first German project for Paul de Ruiter Architects. The realization of a sustainable villa, discrete and integrated in the natural environment, was the wish of the client. The result is a straightforward, but innovative residence built from only glass, steel and concrete.
Living Space
The sustainable house is oriented towards the south, this is where the living- and bedrooms are situated. A glass façade, stretching from roof to floor, demarcates the living areas. The glass façade, without disruptions such as windows or outdoor sun blinds, reflects nothing but the air and offers amazing views over the valley. Around the living area a U-shaped terrace is situated. The middle of the terrace is crossed by a partly indoor patio and a pool that seems to float above the hill. Through the addition of a lifting platform across the pool, the terrace visually appears to continue. This platform can be pulled up when deciding to go for a swim. Around the terrace a garden is arranged with vegetable crops and fruit trees, through which the owner is able to harvest his own yield on this special location up in the mountains.
Unity with the Mountain Scenery
The entrance, technical areas, pantry, hunting room and garage with room for six cars are located on the north side, moved into the slope of the mountain. The complete roof structure of the villa is covered with moss and sedum. This reduces the cooling load and seen from a higher situated area, this green roof makes the villa to blend into the natural environment due. Above the garage and the entrance solar cells are placed, directed to the south to provide the villa with energy.
Energy Efficient
A climatologically interesting and sustainable situation is created through the orientation towards the south and by placing a large part of the house into the mountain slope. The south side receives large amounts of sunlight and warmth, while the 'subterranean' part of the house contains cold air. A heat exchanger implemented in the villa collects this warm and cold air and transports it to the heat pump. The heat pump stores cold air to cool in the summer and saves warm air to heat the house during winter times. This system is connected to a cooling ceiling and underfloor heating, which guarantees a comfortable living climate every day of the year. A delicate and completely computerized computer system steers these stainable heating and cooling systems.
Originally published on November 14, 2015


--- layout: newsstory title: News Story match: Sittingbourne 0 Yeltz 0 ---
On an extremely blustery day at Sittingbourne's oversized and ridiculously named Central Park, Yeltz keeper Danny McDonnell made two - yes two - penalty saves to earn Halesowen a point in a 0-0 draw.
It was a pretty nondescript game really, with the wind making it very difficult to play. Stewart managed to get sent off for disputing the penalty decisions - he had a point from our vantage point of 150 yards away - and we had a couple of shots without hitting the target.
It's all square at the top between Merthyr and Forest Green. Both teams' grounds have been passed for promotion, but Merthyr have initially been refused as they were notionally reformed in the summer after financial problems. They're hoping to appeal, and let's hope that whoever tops the table is the team to go up.
In the morning, the Jolly Boys supporter's team inflicted the first ever defeat on Sittingbourne supporters with an exciting 4-3 victory. Once again thanks to Sittingbourne for their excellent hospitality, and maybe we'll be able to play them again next season if they can stay up.


{% extends "layout.html" %} {% block content %}
We have decided to make an educational web application platform for students to interact and meet with other students that are in similar classes as them. This is of utmost importance during this time because virtual learning prevents students from meeting their peers, making new friends, and collaborating with others for the class.
Our application will let students meet new people by telling a new user to enter their schedule which then is saved into a database. Whenever a new user joins, their schedule is then compared to the other schedules in the database which then returns with a list of students that have similar classes to the user. This allows the user to meet other students and make friends with also the feature to collaborate through a messaging system. Furthermore, the platform is able to show students’ majors and hobbies in order to let students make friends who have the same hobbies or majors.
As of at the moment it is still a developing and work in progress application. It is being run locally and the source code to run this application can be found at our github.
My Name is Bin Guo, major in software engineering. I would like to make applications which make popele life easier. I'm curious about things I don't know. I like playing vedio games with my friends and dicover more interesting things in terms of computer science and games.
My name is Di Li, and I am a software engineering. I like listening music and playing video games when I have free time. I also like studying math and doing college projects. I created a function that people can add events in a calendar so people will not forget a class or a event in a important day. Moreover, I created a chat room function to let more students to make new friends. I am very happy to have participated this project development.
Kobern Dare is a software engineering major with a minor in Creative Writing. He is a member of the SJSU Game Dev Club and the writer and developer of the highly impressive Twine game Road to Nowhere Interesting. He hopes to find a future carrer in the gaming industry as a director.
Tanav Kudupudi is an undergraduate student at San Jose State University pursuing a degree in Software Engineering. He has a great passion for technology and has built several PCs as a hobby. A fun fact about him is that he has travelled to over 10 different countries in his lifetime. He hopes to pursue a career in Data Science/Analytics to make the cyberworld a safer place for future generations.
{% endblock content %}


{% set pageTitle = "We have received your details" %} {% set mainClasses = "nhsuk-main-wrapper--s" %} {% extends "includes/layout.html" %} {% block content %}
We will send you a text message to tell you how to book your appointment. It may take several hours at busy times.
The message will include a link to a website that has more information about drive-through and walk-through tests.
We cannot guarantee that you will get an appointment. If not, please try again tomorrow.
Do not leave your home if you or someone you live with has symptoms.
Read more about self-isolation if you or someone you live with has symptoms on the NHS website.


service :
started :
completed :
One of my "Hobbies" is making youtube thumbnails for my friends and sometimes clients! Take a look below to see some of the stuff i make!
Click image to expand


Handwritten CNN
Draw the digit inside this Box!
Drag the slider to change the line width.
Value:
Predict
Clear
Get your prediction here!!!!!


Base interface for all wrappers
For a list of all members of this type, see ILoggerWrapper Members.
log4net.Core.ILoggerWrapper
log4net.ILog
| Type | Description |
|---|---|
| LoggerWrapperImpl | Implementation of the ILoggerWrapper interface. |
| LogImpl | Implementation of ILog wrapper interface. |
Base interface for all wrappers.
All wrappers must implement this interface.
Namespace: log4net.Core
Assembly: log4net (in log4net.dll)
ILoggerWrapper Members | log4net.Core Namespace


Research and Plan Your Business
Description of the general gist of the section. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Sub Header
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
http://www.business.gov/start/business-plan.html Craft a business plan as a blueprint, serving as your guide to grow your idea into a successful business venture. It will allow you to think through your business concept and determine if it is really a good opportunity.


{% load static %}
* marks the mandatory fields
Enter your Name*
Enter your Email ID
Your 10 digit Phone Number*
Kindly provide additional details for custom prepartion if any below.
Select whichever is applicable
If paid service, provide necessary details below
Add all the necessary additiona details here
Delivery Services
Note - If you wish to update your details, please write to us via email. The contact information can be found in the About Us page.


|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface that granters of leases must implement in order to work
with the LandlordLease
implementation of the
Lease
interface.
Lease
,
LandlordLease
| Nested Class Summary | |
static class |
Landlord.RenewResults
Simple class that holds return values of the Landlord.renewAll method. |
| Method Summary | |
void |
cancel(Uuid cookie)
Called by the lease when its cancel method is
called. |
Map |
cancelAll(Uuid[] cookies)
Called by the lease map when its cancelAll method is called. |
long |
renew(Uuid cookie,
long duration)
Called by the lease when its renew method is called.
|
Landlord.RenewResults |
renewAll(Uuid[] cookies,
long[] durations)
Called by the lease map when its renewAll method is called. |
| Method Detail |
public long renew(Uuid cookie, long duration) throws LeaseDeniedException, UnknownLeaseException, RemoteException
renew
method is called.
Renews the lease that is associated with the given cookie
.
cookie
- the Uuid
associated with the lease who's
renew
method was calledduration
- argument passed to the renew
call
LeaseDeniedException
- if the landlord is unwilling to
renew the lease
UnknownLeaseException
- if landlord does not know about
a lease with the specified cookie
RemoteException
- if a communications failure occurspublic void cancel(Uuid cookie) throws UnknownLeaseException, RemoteException
cancel
method is
called. Cancels the lease that is associated with the given
cookie
.
cookie
- the Uuid
associated with the lease who's
renew
method was called
UnknownLeaseException
- if landlord does not know about
a lease with the specified cookie
RemoteException
- if a communications failure occurspublic Landlord.RenewResults renewAll(Uuid[] cookies, long[] durations) throws RemoteException
renewAll
method is called. Should renew the lease that is
associated with each element of cookies
cookies
- an array of Uuid
s, each universally and
uniquely identifying a lease granted by this
Landlord
durations
- an array of longs, each representing an a
duration in milliseconds that the client
wants the lease associated with the Uuid
from the corresponding element of
cookies
renewed for
RemoteException
- if a communications failure occurspublic Map cancelAll(Uuid[] cookies) throws RemoteException
cancelAll
method is called. Should cancel the lease that is
associated with each element of cookies
cookies
- an array of Uuid
s, each universally and
uniquely identifying a lease granted by this
Landlord
cookies
could be cancelled return null
. Otherwise,
return a Map
that for each failed cancel
attempt maps the corresponding cookie object to an
exception describing the failure.
RemoteException
- if a communications failure occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


Simple Mars Time
Adapted from the awesome
Mars Clock by James Tauber
Earth
Epoch:
Current time:
milliseconds
=
Days Since Epoch
Earth Time of Day
Mars Time
Mars Days Since Epoch
Mars Time of Day