60 BPM | Reps: 0 | Note: --
Ivan is a scale practice tool for ambitious musicians like you and me!
Named after the great violin pedagogue Ivan Galamian, Ivan is a metronome that also counts your scale repetitions by listening to you practice.
Why did you create Ivan?
When I began studying with my current violin teacher, Rachel Stegeman, my playing fundamentally changed in so many desirable ways. Much of this change may be attributed to how Mrs. Stegeman and her husband, Charles Stegeman, approach violin technique: As alumni of Robert Lipsett and Ivan Galamian, respectively, they are firm believers in scales. In fact, the Stegemans' students are expected to complete 50 scale reps and 70 arpeggio reps every practice session (see Carl Flesch Exercise 5 for reference).
There's a lot to say about the value of scales, but that's a conversation for another day. Yet despite its value, I have one problem with this routine: I'm terrible at counting my own reps. Practicing the violin effectively requires a lot of focus, and we don't have attention to spare.
What if your metronome could do the counting for you? That's where Ivan comes in.
How do I use Ivan?
To set up rep counting, make sure "Count Reps" is checked, and select the tonic (first scale tone) of your key, your instrument, and the number of octaves from the dropdowns. Finally, set your tempo, and press play to get started.
As long as your scale starts with the lowest octave of the tonic on your instrument, reaches the specified octave, and returns to the bottom octave, it should work with the rep counter. Major, minor, chromatic, whole-tone, arpeggios, turn or no turn — you name it! Just make sure you aren't too far away from your microphone. Also, depending on your hardware, very fast tempi may not work.
If you don't need rep counting, just uncheck the box and play on!
How does Ivan work?
While the metronome runs, Ivan uses your microphone to listen for specific "checkpoints" along the scale. As long as your microphone can hear you — and you're playing relatively in tune — Ivan will count it!
Fair warning: String instruments are very resonant. When you play a single note, your instrument also produces multiple "overtones," or pitches higher than the current note. In particularly resonant keys (like G, A, and D on the violin), your microphone can probably hear those overtones. If you're like me and you check your pitch with double stops, you might trick Ivan into counting a rep early.  Be careful with double stops in these keys!
Why aren't all key signatures supported for cellists?
Unfortunately, due to API limitations, some scale tones on the cello are too low in frequency to be reliably identified. Sorry, cellists!
Why aren't 4-octave scales supported for all key signatures?
Similar to above, Ivan can't recognize pitches higher than an A#7. If you practice 4-octave scales higher than that, (a) good for you, and (b) I'm sorry.
I don't feel comfortable sharing my microphone and. Why should I use Ivan?
All audio recording occurs on your device only; nothing is collected, shared, or tracked. Nonetheless, please don't feel obligated to enable your microphone!
If you have a physical metronome, then you probably don't need Ivan. But if you use an online metronome or an app, then Ivan's metronome has a compelling feature: It's really lightweight. Ivan's total uncompressed size is less than 200 kilobytes. For reference, analysts believe the average website is megabytes (or thousands of kilobytes) in size.
Website bloat has real consequences. By using more resources, bloated websites create accessibility challenges for low-end devices, especially on the mobile web. Bloated websites also increase server energy usage. On an individual basis, this impact is nominal, but across millions of websites, this bloat creates harmful consequences for the environment; not all server farms are running on clean energy, yet. Either way, you're racking up someone's energy bill. :P
Software minimalism is a top priority for all of my projects because I want everyone to be able to enjoy my work, all while using fewer resources. If you're interested in this philosophy, check out the 512KB Club.
I'm a nerd, too! Where can I view the source code?
Glad you asked! Like all of my projects, you can fork Ivan on my GitHub page. :)


Tell Me Your Sign
1
The Basics:
Name:
Email
Password
2
The Good Stuff
Something to say?
What's Your Zodiac Sign?
Leo
Aries
Sagittarius
Gemini
Libra
Aquarius
Cancer
Scorpio
Pisces
Taurus
Virgo
Capricorn
TELL ME


coopeV3 package¶
Subpackages¶
Submodules¶
coopeV3.acl module¶
-
coopeV3.acl.
acl_and
(*perms)¶
-
coopeV3.acl.
acl_or
(*perms)¶
-
coopeV3.acl.
active_required
(view)¶
-
coopeV3.acl.
admin_required
(view)¶ Test if the user is staff
-
coopeV3.acl.
self_or_has_perm
(pkName, perm)¶ Test if the user is the request user (pk) or has perm permission
-
coopeV3.acl.
superuser_required
(view)¶ Test if the user is superuser
coopeV3.local_settings.example module¶
coopeV3.local_settings module¶
coopeV3.settings module¶
Django settings for coopeV3 project.
Generated by “django-admin startproject” using Django 2.1.
For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/
coopeV3.urls module¶
coopeV3 URL Configuration
- The urlpatterns list routes URLs to views. For more information please see:
- https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples: Function views
- Add an import: from my_app import views
- Add a URL to urlpatterns: path(“”, views.home, name=”home”)
- Class-based views
- Add an import: from other_app.views import Home
- Add a URL to urlpatterns: path(“”, Home.as_view(), name=”home”)
- Including another URLconf
- Import the include() function: from django.urls import include, path
- Add a URL to urlpatterns: path(“blog/”, include(“blog.urls”))
-
coopeV3.urls.
path
(route, view, kwargs=None, name=None, *, Pattern=<class 'django.urls.resolvers.RoutePattern'>)¶
coopeV3.views module¶
-
coopeV3.views.
coope_runner
(request)¶
-
coopeV3.views.
home
(request)¶
-
coopeV3.views.
homepage
(request)¶
coopeV3.widgets module¶
coopeV3.wsgi module¶
WSGI config for coopeV3 project.
It exposes the WSGI callable as a module-level variable named application
.
For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/


{% extends "master.html" %} {% block content %}
Commands in Plumeria are used by prefixing them with
+, @, ;, ., !, or /.
For example, to call the image
command, you could type
.image tssf
. Some mobile keyboards make it difficult to put a character like
a period right before another word, so . image tssf
is
also acceptable (with a space after the character). If a command doesn't
exist in Plumeria, then there won't be a response at all.
Many commands respond immediately, but some commands (like an image search) will have to contact an external server and wait for a reply. In those cases, no response will be returned until that external server has responded.
Commands have rate limits, which limits how many times they can be used in a short period, per server, per channel, and per user. If you exceed the rate limit, you may be notified or perhaps the bot won't respond at all. This is to prevent both abuse and intentional or accidental bot-to-bot communication.
If a command returns a response that is too long for Discord to accept, then a truncated message will appear but then the whole message will be attached as a text file to the message, formatted in Markdown.
Sometimes you want to take the output of one command and pass it into to another
command for additional processing. For example, calling .tagtop indie rock
might return
The Killers - Mr. Brightside
, and you want search YouTube
for the song using the command .yt The Killers - Mr. Brightside
. You can
have Plumeria do this for you by using a bar character (|
), as illustrated:
.tagtop indie rock | yt
. Notice how you don't need the prefix for
the piped commands.
When you pipe a command's output, essentially the output is shoved onto the end of
the input to the next command. For example, if you did
.echo Example | drawtext An
, then the drawtext command
that would be executed would be drawtext An Example
. While you
can't normally pipe Plumeria's commands to other bots, you can use the echo
command and this property to do that, like so:
.tagtop | echo .play
(which would hopefully cause a different
music bot to play that song). The bot ignores commands from itself so
this method won't work on itself.
Text can be piped, but so can images. For example, the drawtext
command generates an image with some text on it and this image is attached
to the response as an attachment. This attachment can be then
piped to another command like blur
or sharpen
,
as illustrated here:
.drawtext blur me | blur
. Another example of image
piping to generate meme images by combining image search with the
meme text generator, as illustrated here: .image awkward penguin background | mt EXAMPLE
.
Discord lets you upload images and other files, so you can actually upload an image and then provide a command in the "comment" box, which allows you to process uploaded images directly.
Sometimes a message might contain a link to an image and not the image attached directly, but Plumeria will automatically download the image for you if a command requests it. The image search command doesn't return an image directly, for example.
Plumeria can work with any type of attachment but most commands that accept attachments are image-related ones. If or when Discord adds support for playing embedded audio files, Plumeria will likely be updated with some simple sound generation or sound processing functions.
Because commands in Plumeria can be piped to each other, many commands try
to adhere to some form of de-facto standard for responses in Plumeria. For
example, the .results
command that returns poll results
from a Strawpoll.me poll returns data that should be directly usable in
the .bar
or .pie
chart graphing commands.
The vast majority of commands can be used by anyone, but some commands
require that the user has a role named bot-admin
. A
smaller set of commands are reserved for the owner of the bot and
the list of users permitted to use those commands is listed in the
bot's configuration file.
Plumeria is written in Python 3 and is open source. You can contribute plugins by submitting them to the GitHub project.


Downloads
Get the latest beta releases of Xcode, iOS, macOS, watchOS, tvOS, and more.
Important: You must have the latest beta version of Xcode 8 installed on your Mac before using a Restore Image to install iOS or tvOS beta software on a device.
Your use of Apple beta software is subject to and licensed only under the terms and conditions of the Apple Developer Program License Agreement, including any applicable consent to collect diagnostic data set forth therein. If you have not agreed to the Apple Developer Program License Agreement, you are not permitted to use this software. Refer to the software installation guides for complete instructions.
- Build
- Date
-
Xcode 8 beta
Inlcudes the SDKs for iOS 10 beta, macOS 10.12 beta, watchOS 3 beta, and tvOS 10 beta.
- Release Notes
- 8S128d
- Jun 13, 2016
- (5.50 GB)
-
macOS 10.12 beta
Refer to the release notes for complete installation instructions.
- Release Notes
- 16A201w
- Jun 13, 2016
- (5.01 GB)
-
iOS 10 beta
Configuration Profile and Restore Images.
- Release Notes
- 14A5261v
- Jun 13, 2016
-
Configuration Profile Preferred
Install directly on any iOS device and receive OTA updates.
- (8.69 KB)
-
iPhone 5c, iPhone 5
Restore image for listed devices.
- (1.86 GB)
-
iPhone 5s
Restore image for listed devices.
- (1.86 GB)
-
iPhone 6s, iPhone 6
Restore image for listed devices.
- (2.50 GB)
-
iPhone 6s Plus, iPhone 6 Plus
Restore image for listed devices.
- (2.73 GB)
-
iPad (4th generation Model)
Restore image for listed devices.
- (1.90 GB)
-
iPad Air, iPad mini 2
Restore image for listed devices.
- (2.40 GB)
-
iPad mini 4, iPad Air 2, iPad mini 3
Restore image for listed devices.
- (2.66 GB)
-
12.9‑inch iPad Pro
Restore image for listed devices.
- (2.51 GB)
-
iPod touch (6th generation)
Restore image for listed devices.
- (2.04 GB)
-
iPhone SE
Restore image for listed devices.
- (2.28 GB)
-
9.7‑inch iPad Pro
Restore image for listed devices.
- (2.42 GB)
-
watchOS 3 beta
Install configuration profile directly on your device to receive OTA updates.
- Release Notes
- 14S5247t
- Jun 13, 2016
- (5.97 KB)
-
tvOS 10 beta
For Apple TV (4th generation). Apple TV (3rd generation) and earlier are not supported.
- Release Notes
- 14T5253s
- Jun 13, 2016
-
Configuration Profile Preferred
Install configuration profile directly on your device to receive OTA updates.
-
Restore Image
Install via iTunes.
-
Server 5.2 beta
- Release Notes
- 16S1083q
- Jun 13, 2016
-
Apple Configurator 2.3 beta
Mac app for deploying iOS devices and Apple TV in your school or business.
- Release Notes
- 3D22
- Jun 13, 2016
-
Apple TV Remote 1.0 beta
Use Xcode or iTunes to install iOS app to device.
- Release Notes
- 1A118
- Jun 13, 2016
- (13.29 MB)
- Build
- Date
-
tvOS 9.2.2 beta 3
Restore Image
- Release Notes
- 13Y823
- Jun 21, 2016
-
Restore Image
Update via iTunes.
-
OS X 10.11.6 beta 3
- Release Notes
- 15G19a
- Jun 21, 2016
-
iOS 9.3.3 beta 3
Restore Images
- Release Notes
- 13G29
- Jun 21, 2016
-
iPhone SE
-
iPhone 6s
-
iPhone 6s Plus
-
iPhone 6
-
iPhone 6 Plus
-
iPhone 5s (Model A1453, A1533)
-
iPhone 5s (Model A1457, A1518, A1528, A1530)
-
iPhone 5c (Model A1456, A1532)
-
iPhone 5c (Model A1507, A1516, A1526, A1529)
-
iPhone 5 (Model A1428)
-
iPhone 5 (Model A1429)
-
iPhone 4s
-
iPod touch (5th generation)
-
iPod touch (6th generation)
-
9.7-inch iPad Pro (Wi-Fi)
-
9.7-inch iPad Pro (Wi-Fi + Cellular)
-
12.9-inch iPad Pro (Wi-Fi)
-
12.9-inch iPad Pro (Wi-Fi + Cellular)
-
iPad mini 4 (Wi-Fi)
-
iPad mini 4 (Wi-Fi + Cellular)
-
iPad Air 2 (Model A1566)
-
iPad Air 2 (Model A1567)
-
iPad mini 3 (Model A1599)
-
iPad mini 3 (Model A1600)
-
iPad mini 3 (Model A1601)
-
iPad Air (Model A1474)
-
iPad Air (Model A1475)
-
iPad Air (Model A1476)
-
iPad mini 2 (Model A1489)
-
iPad mini 2 (Model A1490)
-
iPad mini 2 (Model A1491)
-
iPad (4th generation Model A1458)
-
iPad (4th generation Model A1459)
-
iPad (4th generation Model A1460)
-
iPad mini(Model A1432)
-
iPad mini(Model A1454)
-
iPad mini(Model A1455)
-
iPad Wi-Fi (3rd generation)
-
iPad Wi-Fi + Cellular (model for ATT)
-
iPad Wi-Fi + Cellular (model for Verizon)
-
iPad 2 Wi-Fi (Rev A)
-
iPad 2 Wi-Fi
-
iPad 2 Wi-Fi + 3G (GSM)
-
iPad 2 Wi-Fi + 3G (CDMA)
-
Safari 10 beta
Safari 10 beta for OS X El Capitan and OS X Yosemite.
- Release Notes
- 116<IP_ADDRESS>
- Jun 23, 2016
-
Safari 10 beta for OS X El Capitan
-
Safari 10 beta for OS X Yosemite
-
Parallax Exporter
Use the Parallax Exporter plug-in to preview a layered image while working in Adobe Photoshop.
-
Parallax Exporter for Mac
-
Parallax Exporter for Windows
-
-
Parallax Previewer
Use Parallax Previewer to preview layered Photoshop files, assemble individual image layers from PNG files and preview the parallax effect, or preview layered images exported by the Parallax Exporter plug-in.
- 1A68
- Jan 25, 2016
- Build
- Date
-
Xcode 7.3.1
Includes iOS, OS X, watchOS, and tvOS SDKs.
- Release Notes
- 7D1014
- May 3, 2016
-
iOS 9.3.2
- 13F69
- May 16, 2016
-
iPhone SE
-
iPhone 6s
-
iPhone 6s Plus
-
iPhone 6
-
iPhone 6 Plus
-
iPhone 5s (Model A1453, A1533)
-
iPhone 5s (Model A1457, A1518, A1528, A1530)
-
iPhone 5c (Model A1456, A1532)
-
iPhone 5c (Model A1507, A1516, A1526, A1529)
-
iPhone 5 (Model A1428)
-
iPhone 5 (Model A1429)
-
iPhone 4s
-
iPod touch (5th generation)
-
iPod touch (6th generation)
-
9.7-inch iPad Pro (Wi-Fi)
-
9.7-inch iPad Pro (Wi-Fi + Cellular)
-
12.9-inch iPad Pro (Wi-Fi)
-
12.9-inch iPad Pro (Wi-Fi + Cellular)
-
iPad mini 4 (Wi-Fi)
-
iPad mini 4 (Wi-Fi + Cellular)
-
iPad Air 2 (Model A1566)
-
iPad Air 2 (Model A1567)
-
iPad mini 3 (Model A1599)
-
iPad mini 3 (Model A1600)
-
iPad mini 3 (Model A1601)
-
iPad Air (Model A1474)
-
iPad Air (Model A1475)
-
iPad Air (Model A1476)
-
iPad mini 2 (Model A1489)
-
iPad mini 2 (Model A1490)
-
iPad mini 2 (Model A1491)
-
iPad (4th generation Model A1458)
-
iPad (4th generation Model A1459)
-
iPad (4th generation Model A1460)
-
iPad mini(Model A1432)
-
iPad mini(Model A1454)
-
iPad mini(Model A1455)
-
iPad Wi-Fi (3rd generation)
-
iPad Wi-Fi + Cellular (model for ATT)
-
iPad Wi-Fi + Cellular (model for Verizon)
-
iPad 2 Wi-Fi (Rev A)
-
iPad 2 Wi-Fi
-
iPad 2 Wi-Fi + 3G (GSM)
-
iPad 2 Wi-Fi + 3G (CDMA)
-
tvOS 9.2.1
- 13Y772
- May 16, 2016
-
OS X 10.11.5
- 15F34
- May 16, 2016
-
OS X Server 5.1.5
- 15S7047
- May 16, 2016


Simulated the behaviour of particles at the molecular level by solving a system of differential equations and studying the behaviour at different temperatures.
Implemented the finite element method (FEM) in MATLAB in 1D and 2D to solve the Laplace, diffusion, and wave partial differential equations.
In a team of four, we created a website, targeted at students, in Java using Google Web Toolkit, to search the BC Liquor Store databases. The app let users search for products in a friendlier way with, for example, an option to sort by moles of alcohol per dollar.
Used Kalman smoothing to estimate the position of a mouse cursor from noisy measurements.
Used Modern Portfolio Theory to compute the portfolio with minimum risk from a set of current financial data.
Solved a number of network flow problems using MATLAB and the GNU Linear Programming Kit (GLPK) applied to the city of Vancouver public transit.


web developer.
Find Out Morehello, My name is khushabu yadav. I am full stack python developer. specialized in core python, MySql, Django,Web designing and Web development.Iam very efficient in writing code in the languages i have mentioned below.Looking forward to work with you.
Get Started!Ready to start your next project with us? Give us a call or send us an email and we will get back to you as soon as possible!


An MPI program consists of autonomous processes, executing their own code, in an MIMD style. The codes executed by each process need not be identical. The processes communicate via calls to MPI communication primitives. Typically, each process executes in its own address space, although shared-memory implementations of MPI are possible.
This document specifies the behavior of a parallel program assuming that only MPI calls are used. The interaction of an MPI program with other possible means of communication, I/O, and process management is not specified. Unless otherwise stated in the specification of the standard, MPI places no requirements on the result of its interaction with external mechanisms that provide similar or equivalent functionality. This includes, but is not limited to, interactions with external mechanisms for process control, shared and remote memory access, file system access and control, interprocess communication, process signaling, and terminal I/O. High quality implementations should strive to make the results of such interactions intuitive to users, and attempt to document restrictions where deemed necessary.
Advice
to implementors.
Implementations that support such additional mechanisms for
functionality supported within MPI are expected to document how
these interact with MPI.
( End of advice to implementors.)
The interaction of MPI and threads is defined in
Section MPI and Threads
.


Hi Jacob, This week, you have a busy classwork schedule, but nothing going on in any of your clubs or groups. You also have 1 TO-DO in your calendar.
Mon
Aug 18
8:00 am
This email was sent to<EMAIL_ADDRESS>If you would prefer not to receive future emails from Urlinq, you may unsubscribe. TM and copyright © 2014 Urlinq LLC. New York City.


Red9_General¶
Red9 General is a module for general functions called and used throughout the codebase. This includes most of the context managers and decorators.
Note
Nothing inside this module should require any other part of Red9
Key functions
getCurrentFPS () |
returns the current frames per second as a number, rather than a useless string |
getModifier () |
return the modifier key pressed |
forceToString (text) |
simple function to ensure that data can be passed correctly into textFields for the UI (ensuring lists are converted) |
itersubclasses (cls) |
http://code.activestate.com/recipes/576949-find-all-subclasses-of-a-given-class/ Iterator to yield full inheritance from a given class, including subclasses. |
inspectFunctionSource (value) |
This is a neat little wrapper over the mel “whatIs” and Pythons inspect module that finds the given functions source filePath, either Mel or Python and opens the original file in the default program. |
getScriptEditorSelection () |
this is a hack to bypass an issue with getting the data back from the ScriptEditorHistory scroll. |
thumbNailScreen (filepath, width, height[, …]) |
|
thumbnailFromPlayBlast (filepath, width, height) |
Generate a ThumbNail of the screen Note: ‘cf’ flag is broken in 2012 |
thumbnailApiFromView (filename, width, height) |
grab the thumbnail direct from the buffer. |
os_OpenFileDirectory (path) |
open the given folder in the default OS browser |
os_OpenFile (filePath, *args) |
open the given file in the default program for this OS |
formatPath (path) |
take a path and format it to forward slashes with catches for the exceptions so that paths are always Pythonized not OS based |
formatPath_join (path, *paths) |
wrapper over os.path.join and formatPath so it’s always returned as a valid Python Path |
sceneName ([short]) |
Why, because if a file loaded with errors the standard cmds.file(q=True, sn=True) returns nothing this will be threaded into all future calls, particularly ProPack exporter management for consistency |
writeJson ([filepath, content]) |
write json file to disk |
readJson ([filepath]) |
file pat to drive where to read the file |
Context Managers / decorators
AnimationContext ([evalmanager, eval_idle, …]) |
CONTEXT MANAGER : Hugely important Context Manager for restoring Animation settings. |
undoContext ([initialUndo, undoFuncCache, …]) |
CONTEXT MANAGER : Simple Context Manager for chunking the undoState |
ProgressBarContext ([maxValue, …]) |
CONTEXT MANAGER : Context manager to make it easier to wrap progressBars |
HIKContext (NodeList) |
CONTEXT MANAGER : Simple Context Manager for restoring HIK Animation settings and managing HIK callbacks |
SceneRestoreContext () |
CONTEXT MANAGER : Simple Context Manager for restoring Scene Global settings |
Timer (func) |
DECORATOR : Simple timer function |
runProfile (func) |
DECORATOR : run the profiler - only ever used when debugging /optimizing function call speeds.visualize the data using ‘runsnakerun’ to view the profiles and debug |
-
getCurrentFPS
()¶ returns the current frames per second as a number, rather than a useless string
-
forceToString
(text)¶ simple function to ensure that data can be passed correctly into textFields for the UI (ensuring lists are converted)
-
formatPath
(path)¶ take a path and format it to forward slashes with catches for the exceptions so that paths are always Pythonized not OS based
-
formatPath_join
(path, *paths)¶ wrapper over os.path.join and formatPath so it’s always returned as a valid Python Path
-
sceneName
(short=False)¶ Why, because if a file loaded with errors the standard cmds.file(q=True, sn=True) returns nothing this will be threaded into all future calls, particularly ProPack exporter management for consistency
-
scenePath
()¶ Return the directory that the current Maya scene is saved too
-
itersubclasses
(cls)¶ http://code.activestate.com/recipes/576949-find-all-subclasses-of-a-given-class/ Iterator to yield full inheritance from a given class, including subclasses. This is used in the MetaClass to build the RED9_META_REGISTERY inheritance dict
-
inspectFunctionSource
(value)¶ This is a neat little wrapper over the mel “whatIs” and Pythons inspect module that finds the given functions source filePath, either Mel or Python and opens the original file in the default program. Great for developers Supports all Mel functions, and Python Class / functions
-
getScriptEditorSelection
()¶ this is a hack to bypass an issue with getting the data back from the ScriptEditorHistory scroll. We need to copy the selected text to the clipboard then pull it back afterwards.
-
string_to_date_time
(date_time_string)¶ converts time string information to datetime.datetime object
Parameters: date_time_string – string with time information EX. ‘2019-11-21T17:05:02Z’ Returns: object datetime.datetime
-
string_to_timestamp
(date_time_string)¶ Parameters: date_time_string – date_time_string: string with time information EX. ‘2019-11-21T17:05:02Z’ Returns: float, time stamp
-
is_basestring
(value)¶ wrapper to check if an arg is string based, wrapping Python 2 & 3 python 3 all unicode based args are strings python 2 we have str and unicode both instances of basestring
Parameters: value – the value we’re checking
-
is_callable
(func)¶ wrapper to check if a variable is callable, wrapping Python 2 & 3
Parameters: func – the func we’re inspecting
-
Timer
(func)¶ DECORATOR : Simple timer function
-
playback_suspend
(func)¶ DECORATOR : Suspend current playback and resume after the func
-
gpu_toggle
(func)¶ DECORATOR : toggle the GPU Override after the enclosed func has run
-
runProfile
(func)¶ DECORATOR : run the profiler - only ever used when debugging /optimizing function call speeds.visualize the data using ‘runsnakerun’ to view the profiles and debug
-
run_dgtimer
()¶ simple call to write a dgtime output file based on the current scene name yes we can easily now run the profiler but this also contains some valuable info
-
evalManager_DG
(func)¶ DECORATOR : simple decorator to call the evalManager_switch plugin and run the enclosed function in DG eval mode NOT parallel.
Note
Parallel EM mode is slow at evaluating time, DG is up to 3 times faster! The plugin call is registered back in the undoStack, cmds.evalmanager call is not
-
evalManager_idleAction
(func)¶ DECORATOR : simple decorator to push the idleAction of the EvalManager to ‘Idle Rebuild’ during the enclosed func. In testing if this is left default “Idle Rebuild and Prepare for Manip” then the cache rebuild handling breaks things like the relative pose handling as you can clearly see the pose being loaded, then it looks liek a callback being triggered which re-evaluates the states of the rig, and if the controllers were keyed then it pushes that data back to them, breaking the static transforms we just loaded.
This decorator is intended for use on static functions, for anim functions use the AnimationContext
-
evalManagerState
(mode='off')¶ wrapper function for the evalManager so that it’s switching is recorded in the undo stack via the Red9.evalManager_switch plugin
-
keepSelection
(func)¶ DECORATOR: to keep scene selection as it was before a function or a method execution
-
deleteNewNodes
(func)¶ DECORATOR: Delete all the nodes created by the function being decorated
-
getNewNodes
(func)¶ DECORATOR: return new nodes after a function has been run
-
suppressScriptEditor
(func)¶ DECORATOR : suppress scriptInfo, scriptResults within the decorator
-
class
AnimationContext
(evalmanager=True, eval_idle=False, time=True, undo=True, autokey=False, cached_eval=True, eval_mode=None, timerange=[], suppress_exceptions=True)¶ Bases:
object
CONTEXT MANAGER : Hugely important Context Manager for restoring Animation settings. This also now manages both the evaluationManager and the cachedEvaluation, dropping Maya down to DG without the cache activated, then restoring the previous state on exit.
Parameters: - evalmanager – do we manage the evalManager in this context for Maya 2016 onwards, switching it to DG for the duration of this context
- eval_idle – if we’re not setting the evalmanager state then this will turn the idleAction to ‘Rebuild’ preventing the caching over-riding the data set by the enclose function
- cached_eval – do we manage the new cachedEvaluation in Maya 2019 upwards, default is True
- eval_mode – override all other EM flags passed to this context to manage the EM setups for a given role ‘anim’ or ‘static’
- time – do we manage the time and restore the original currentTime and playback ranges?
- undo – do we manage the undoStack, collecting everything in one chunk
- autokey – base state of the autokey during this context, default=False
- suppress_exceptions – do we raise or suppress exceptions
Note
if the intension of the enclose func is to set time or animation data then use : eval_mode=’anim’ This will internally set : evalmanager=True, cached_eval=True, evale_idle=False
if the intention of the enclose func is to set static data then use : eval_mode=’anim’: This will internally set : evalmanage=False, cached_eval=False, evale_idle=True
-
class
undoContext
(initialUndo=False, undoFuncCache=[], undoDepth=1)¶ Bases:
object
CONTEXT MANAGER : Simple Context Manager for chunking the undoState
If initialUndo is True then the context manager will manage what to do on entry with the undoStack. The idea is that if True the code will look at the last functions in the undoQueue and if any of those mantch those in the undoFuncCache, it’ll undo them to the depth given.
WHY?????? This is specifically designed for things like floatFliders where you’ve set a function to act on the ‘dc’ flag, (drag command) by passing that func through this each drag will only go into the stack once, enabling you to drag as much as you want and return to the initial state, pre ALL drags, in one chunk.
Parameters: - initialUndo – on first process whether undo on entry to the context manager
- undoFuncCache – only if initialUndo = True : functions to catch in the undo stack
- undoDepth – only if initialUndo = True : depth of the undo stack to go to
Note
When adding funcs to this you CAN’T call the ‘dc’ command on any slider with a lambda func, it has to call a specific func to catch in the undoStack. See Red9_AnimationUtils.FilterCurves code for a live example of this setup.
-
undoCall
()¶
-
class
ProgressBarContext
(maxValue=100, interruptable=True, step=1, ismain=True, title='')¶ Bases:
object
CONTEXT MANAGER : Context manager to make it easier to wrap progressBars
Parameters: - maxValue – max value used in the progress
- interruptable – if the progress is interruptable / escapable
- step – step used in the progress bar
- ismain – if we use the main progressBar OR a progressWindow to view the progress
- title – only valid if ismain=False, used as the progressUI window title
>>> #Example of using this in code >>> >>> progressBar=r9General.ProgressBarContext(maxValue=1000, step=1) >>> >>> # now do your code but increment and check the progress state >>> with progressBar: >>> for i in range(1,1000,1): >>> if progressBar.isCancelled(): >>> print 'process cancelled' >>> break >>> progressBar.updateProgress()
-
isCanceled
()¶
-
isCancelled
()¶ fixed naming but previous left for legacy calls
-
setText
(text)¶
-
setMaxValue
(value)¶
-
setStep
(value)¶
-
setProgress
(value)¶
-
getProgress
()¶
-
updateProgress
()¶ more simplistic way to just update the progress. Previously we generate a counter and used that with the setProgress() call, this is a far better way to do it
-
reset
()¶
-
class
HIKContext
(NodeList)¶ Bases:
object
CONTEXT MANAGER : Simple Context Manager for restoring HIK Animation settings and managing HIK callbacks
-
class
SceneRestoreContext
¶ Bases:
object
CONTEXT MANAGER : Simple Context Manager for restoring Scene Global settings
Basically we store the state of all the modelPanels and timeLine setups. Think of it like this, you export a scene, file -new, then re-import it but you’ve now lost all the scenes UI and setups. This is capable of returning the UI to the previous state. Maybe this could be a tool in it’s own write?
- Things stored:
- All UI viewport states, display and settings
- currentTime, timeRanges, timeUnits, sceneUnits, upAxis
- Main cameras and transforms for the 4 main modelPanels
- active sound and sound displays
>>> from Red9.core.Red9_General import SceneRestoreContext as sceneStore >>> with sceneStore: >>> #do something to modify the scene setup >>> cmds.currentTime(100) >>> >>> # out of the context manager the scene will be restored as it was >>> # before the code entered the context. (with sceneStore:)
-
storeSettings
()¶ main work function, store all UI settings
-
restoreSettings
()¶ restore all UI settings
-
thumbNailScreen
(filepath, width, height, mode='api', modelPanel=None)¶
-
thumbnailFromPlayBlast
(filepath, width, height, modelPanel=None)¶ Generate a ThumbNail of the screen Note: ‘cf’ flag is broken in 2012
Parameters: - filepath – path to Thumbnail
- width – width of capture
- height – height of capture
- modePanel – modelPanel to grab the image from, default=None, works it out internally
-
thumbnailApiFromView
(filename, width, height, modelPanel=None, compression='bmp')¶ grab the thumbnail direct from the buffer. This viewport capture method is apparently flagged as obsolete in the Maya API so this might need some investigation in the future!
Parameters: - filename – path to store the image too
- width – width of the image to capture
- height – height of the image to capture
- modelPanel – panel to capture
- compression – base format for the image, default is ‘bmp’
-
getModifier
()¶ return the modifier key pressed
-
class
Clipboard
¶ Get or Set data to the Windows clipboard…Used in the inspect code to grab the ScriptEditor’s selected history CURRENTLY NOT BEING CALLED - switched to pyperclip.py module
-
static
getText
()¶ Get clipboard text if available
-
static
setText
(value)¶ Set clipbard text
-
static
-
os_OpenFileDirectory
(path)¶ open the given folder in the default OS browser
-
os_OpenFile
(filePath, *args)¶ open the given file in the default program for this OS
-
os_formatPath
(path)¶ take the given path and format it for Maya path
-
os_listFiles
(folder, filters=[], byDate=False, fullPath=False, filter_string='')¶ simple os wrap to list a dir with filters for file type and sort byDate
Parameters: - folder – folder to dir list
- filters – list of file extensions to filter for
- byData – sort the list by modified date, newest first!
- fullPath – return either the fully matched path or just the files that match
-
os_openCrashFile
(openDir=False)¶ Open the default temp dir where Maya stores it’s crash files and logs
-
os_fileCompare
(file1, file2, openDiff=False)¶ Pass in 2 files for diffComparision. If files are identical, ie there are no differences then the code returns 0
Parameters: - file1 – first file to compare with second file
- file2 – second file to compare against the first
- openDiff – if a difference was found then boot Diffmerge UI, highlighting the diff
Note
This is a stub function that requires Diffmerge.exe, you can download from https://sourcegear.com/diffmerge/. Once downloaded drop it here Red9/pakcages/diffMerge.exe
-
writeJson
(filepath=None, content=None)¶ write json file to disk
Parameters: - filepath – file path to drive where to write the file
- content – file content
Returns: None
-
readJson
(filepath=None)¶ file pat to drive where to read the file
Parameters: filepath – Returns:


|
|
LBA HDD Access via PIOEvery operating system will eventually find a need for reliable, long-term storage. There are only a handful of commonly used storage devices:
Hard drives are by far the most widely used mechanism for data storage, and this tutorial will familiarize you with a practical method for accessing them. In the past, a method known as CHS was used. With CHS, you specified the cylinder, head, and sector where your data was located. The problem with this method is that the number of cylinders that could be addressed was rather limited. To solve this problem, a new method for accessing hard drives was created: Linear Block Addressing (LBA). With LBA, you simply specify the address of the block you want to access. Blocks are 512-byte chunks of data, so the first 512 bytes of data on the disk are in block 0, the next 512 bytes are in block 1, etc. This is clearly superior to having to calculate and specify three separate bits of information, as with CHS. However, there is one hitch with LBA. There are two forms of LBA, which are slightly different: LBA28 and LBA48. LBA28 uses 28 bits to specify the block address, and LBA48 uses 48 bits. Most drives support LBA28, but not all drives support LBA48. In particular, the Bochs emulator supports LBA28, and not LBA48. This isn't a serious problem, but something to be aware of. Now that you know how LBA works, it's time to see the actual methods involved. To read a sector using LBA28:
To write a sector using LBA28: Do all the same as above, but send 0x30 for the command byte instead of 0x20: outb(0x1F7, 0x30); To read a sector using LBA48:
To write a sector using LBA48: Do all the same as above, but send 0x34 for the command byte, instead of 0x24: outb(0x1F7, 0x34);
Once you've done all this, you just have to wait for the drive to signal that it's ready: while (!(inb(0x1F7) & 0x08)) {} And then read/write your data from/to port 0x1F0: // for read: for (idx = 0; idx < 256; idx++) { tmpword = inw(0x1F0); buffer[idx * 2] = (unsigned char)tmpword; buffer[idx * 2 + 1] = (unsigned char)(tmpword >> 8); } // for write: for (idx = 0; idx < 256; idx++) { tmpword = buffer[8 + idx * 2] | (buffer[8 + idx * 2 + 1] << 8); outw(0x1F0, tmpword); } Of course, all of this is useless if you don't know what drives you actually have hooked up. Each IDE controller can handle 2 drives, and most computers have 2 IDE controllers. The primary controller, which is the one I have been dealing with thus-far has its registers located from port 0x1F0 to port 0x1F7. The secondary controller has its registers in ports 0x170-0x177. Detecting whether controllers are present is fairly easy:
Now, you have to detect which drives are present on each controller. To do this, you simply select the appropriate drive with the drive/head select register (0x1F6 for the primary controller, 0x176 for the secondary controller), wait a small amount of time (I wait 1/250th of a second), and then read the status register and see if the busy bit is set: outb(0x1F6, 0xA0); // use 0xB0 instead of 0xA0 to test the second drive on the controller sleep(1); // wait 1/250th of a second tmpword = inb(0x1F7); // read the status port if (tmpword & 0x40) // see if the busy bit is set { printf("Primary master exists\n"); } And that about wraps it up. Note that I haven't actually tested my LBA48 code, because I'm stuck with Bochs, which only supports LBA28. It should work, according to the ATA specification. If any of this is inaccurate or unclear, just email me at<EMAIL_ADDRESS>--Dragoniz3r |


--- layout: post status: publish published: true title: BringMeFast search engine author: display_name: vishvendra login: vishvendra email<EMAIL_ADDRESS>url: '' author_login: vishvendra author_email<EMAIL_ADDRESS>wordpress_id: 506 wordpress_url: https://vishvendrasingh.com/?p=506 date: '2017-03-24 19:11:16 +0530' date_gmt: '2017-03-24 19:11:16 +0530' categories: - cloud - elastic search - Projects - web tags: [] comments: [] ---
Hi all,
Its something not very new, but quite young for me. I tried to make search Engin like google and yahoo. Its really not very easy to make one.  It may take some weeks and lot of processing power to do that. It's continuously increasing its database. You can see more better results every minute. And its fast enough to give it a try. You can ask any thing you want. Here is the link https://bringmefast.com
This is like copy of source-code of crawler that is used for collecting data form web.
https://github.com/vishvendrasingh/searchEngineCrawler/blob/master/se.py
Title : BringMeFast search engine


Financing Request
Username:
Password:
Amount ($):
Project Title:
123 Tutoring
Jewels Gems
Minionade
Upload Headshot:


Hand Written Equation Solving
Select your Image File
{% if label %} {{ label }} {% endif %}
If you don't get your desired result, please try read the instructions below!
Instructions
1. Background should be white
2. Try not to select images with too thin digits
3. Digits should be clear
4. Check for the Image we have provided !


Hello World example
This is just simple example of sending Hello World message proper way in our blockchain with help of our alexandria_deamon
Creating account
First step is to create second account (recipient of message). For this step you need to have one account already created, if not please use our wallet.
Generating keys
New account requires new pair of keys, we use 3 different key_pairs in our blockchain, but for this simple example I will same key for all 3 different keys. So to generate key pair you need to execute this command
>>>generate_key_pair
response:
{
"pub_key": "SPH667jA4gwFxRkSpKFAyWTDbzydRF1JPQrDc4ReqtpeujwvVUDfQ",
"wif_priv_key": "5KdvUxpR2NTdQHV91qT9K7g8oHvNz6F6vyhnGDUNUC1KYpaYH9r"
}
Creating account
So now, when the key pair is ready I can create create_account operation
create_account registered_account test_account "{}" SPH667jA4gwFxRkSpKFAyWTDbzydRF1JPQrDc4ReqtpeujwvVUDfQ SPH667jA4gwFxRkSpKFAyWTDbzydRF1JPQrDc4ReqtpeujwvVUDfQ SPH667jA4gwFxRkSpKFAyWTDbzydRF1JPQrDc4ReqtpeujwvVUDfQ
response:
[
"account_create",{
"fee": "0.100000 SPHTX",
"creator": "4PMRaUBMJmL89eWcb1XrpL7DFGhJ",
"name_seed": "test_account",
"owner": {
"weight_threshold": 1,
"account_auths": [],
"key_auths": [[
"SPH667jA4gwFxRkSpKFAyWTDbzydRF1JPQrDc4ReqtpeujwvVUDfQ",
1
]
]
},
"active": {
"weight_threshold": 1,
"account_auths": [],
"key_auths": [[
"SPH667jA4gwFxRkSpKFAyWTDbzydRF1JPQrDc4ReqtpeujwvVUDfQ",
1
]
]
},
"memo_key": "SPH667jA4gwFxRkSpKFAyWTDbzydRF1JPQrDc4ReqtpeujwvVUDfQ",
"json_metadata": "{}"
}
]
Signing and broadcasting transaction
Now when operation is ready, we need to create transaction from it, sign it and broadcast to blockchain node. It is possible to use specific function for each of these steps, but there is one function that will do everything for us, but do not use this function on network, because it will expose your private key!
>>>send_and_sign_operation operation_from_last_step registered_account_private_key
Checking if account was created
Now we should check if account was successfully created and for that we can use function:
>>>get_account test_account
response:
{
"id": 3,
"name": "4PMRaUBMJmL89eWcb1XrpL7DFGhJ",
"owner": {
"weight_threshold": 1,
"account_auths": [],
"key_auths": [[
"SPH667jA4gwFxRkSpKFAyWTDbzydRF1JPQrDc4ReqtpeujwvVUDfQ",
1
]
]
},
"active": {
"weight_threshold": 1,
"account_auths": [],
"key_auths": [[
"SPH667jA4gwFxRkSpKFAyWTDbzydRF1JPQrDc4ReqtpeujwvVUDfQ",
1
]
]
},
"memo_key": "SPH667jA4gwFxRkSpKFAyWTDbzydRF1JPQrDc4ReqtpeujwvVUDfQ",
"json_metadata": "",
"voting_proxy": "11111111111111111111",
"balance": "0.000000 SPHTX",
"vesting_shares": "0.000000 VESTS",
"vesting_withdraw_rate": "0.000000 VESTS",
"to_withdraw": 0,
"witness_votes": [],
"sponsored_accounts": [],
"sponsoring_account": "11111111111111111111"
}
Creating application
Next step is to create application, that we will use for sending custom document
>>>create_application 4PMRaUBMJmL89eWcb1XrpL7DFGhJ TESTAPP "www.sophiatx.com" "" 0
result:
[
"application_create",{
"fee": "0.000000 SPHTX",
"author": "4PMRaUBMJmL89eWcb1XrpL7DFGhJ",
"name": "TESTAPP",
"url": "www.sophiatx.com",
"metadata": "",
"price_param": 0
}
]
Now you need to sign and broadcast it as in create account.
Checking if account was created
>>>get_applications ["TESTAPP"]
result:
[{
"id": 1,
"name": "TESTAPP",
"author": "4PMRaUBMJmL89eWcb1XrpL7DFGhJ",
"url": "www.sophiatx.com",
"metadata": "",
"price_param": "permanent"
}
]
Creating custom json operation
Now the final step sending message Hello world. For that we will use make_custom_json_operation.
make_custom_json_operation 1 GN3Ug8ou6tiE4kWvyopJBJmZgcw ["4PMRaUBMJmL89eWcb1XrpL7DFGhJ"] "{\"Hello World\"}"
result:
[
"custom_json",{
"fee": "0.000000 SPHTX",
"sender": "GN3Ug8ou6tiE4kWvyopJBJmZgcw",
"recipients": [
"4PMRaUBMJmL89eWcb1XrpL7DFGhJ"
],
"app_id": 1,
"json": "{\"Hello World\"}"
}
]
Now we need to sign and send it
Checking message
get_received_documents 1 GN3Ug8ou6tiE4kWvyopJBJmZgcw "by_sender" 10 1
result:
[[
1,{
"sender": "GN3Ug8ou6tiE4kWvyopJBJmZgcw",
"recipients": [
"4PMRaUBMJmL89eWcb1XrpL7DFGhJ"
],
"app_id": 1,
"data": "{\"Hello World\"}",
"received": "2018-07-10T11:37:42",
"binary": false
}
]
]


IEBC Declares Imran Okoth Kibra MP-Elect
by Francis MuliBernard Imran Okoth of the Orange Democratic Movement Party (ODM) is the MP-elect of the Kibra Constituency.
IEBC returning officer has declared the ODM candidate the validly elected MP for Kibra.
Okoth floored 24 candidates, garnering 24,636 votes with his closest rival, Jubilee Party’s McDonald Mariga coming in second with 11,230 votes.
Mariga has already conceded defeat.
Eliud Owalo of ANC) came third with 5,275 votes followed by Khamisi Butichi of Ford Kenya with 260 votes.
Read: Mariga Concedes Defeat In Kibra By-election, Congratulates Imran – Video
Anaciet Dorn (DP), Martin Andati (Modern Alliance Party), Felix Anditi (Independent), Ibrahim Kimorko (Roots Party), Kassim Abdul (The New Democrats) and Titus Mutinda (Republican Liberty Party) were also in the party.
Others include Fransco Ojiambo (Party of Democratic Unity), Shedrack Omondi, (Independent), Shem Ocharo (Munngano), Abraham Okoth (Independent) Hamida Musa (United Green Movement), Noah Migudo (Independent), Fransco Ojiambo (Party of Democratic Unity), Shedrack Omondi, (Independent), Shem Ocharo (Munngano), Abraham Okoth (Independent) Hamida Musa (United Green Movement) and Noah Migudo (Independent).
The seat fell vacant following the death of Ken Okoth who was the MP elected in 2017 on an ODM ticket.


Toggle navigation
Menu
Zuzanna Furmanek
Portfolio
Zuzanna Furmanek
Hi! Welcome to my portfolio!
Portfolio
Homework 05 March 2017
The seats on the bus go squeek squeek squeek!
Your browser does not support HTML5 video.
Homework 05 December 2016
Homework 22 November 2016
Homework 14 November 2016
Your browser does not support HTML5 video.
Your browser does not support HTML5 video.
Your browser does not support HTML5 video.
Your browser does not support HTML5 video.
Your browser does not support HTML5 video.


This is a dictonary, where you can track your learning progress. Users can add words with example usage. This site is mobile friendly. Currently we have 0 users.
Register for FREE »
You can change the words here below.


{% extends 'base.html' %} {% block extra_head %}{% endblock extra_head %} {% block page_header %}
You have been successfully logged out. You can log-in again.


WITNESS LIST Government Reform Committee February 17, 2003-10:00A Criminal Justice Briefing On: Fabelo, Tony (Criminal Justice Policy Council) Garrett, Gerald (Texas Board of Pardons and Paroles) Johnson, Gary (Texas Department of Criminal Justice) Kifowit, Dee (Texas Department of Criminal Justice-TCOMI) Robinson, Steve (Texas Youth Commission) Spriggs, Vicki (Texas Juvenile Probation Commission) White, Bonita (TDCJ-CJAD)


{% extends 'base.html' %} {% block title %} | Stacks {% endblock title %} {% block content %}
A stack is a build and deployment environment for applications. OS images belong to stacks. Applications link to stacks just as they can link to buildpacks.
Practically, a stack is a series of OS images, with the latest active image being the one used in swarms.


The following benchmark reports are available:
{% for report in reports %}
{{ report[0] }}
{% endfor %}


The theory in this section isn't new. It's the old familiar multiplication rule. We are just going to use it in the context of processes indexed by time, in a method that we are going to call conditioning on early moves.
Suppose Jo and Bo play the following game. Jo rolls a die, then Bo rolls it, then Jo rolls again, and so on, until the first time one of them gets the face with six spots. That person is the winner.
Question. What is the chance that Jo wins?
Answer. Before you do any calculations, notice that the game isn't symmetric in the two players. Jo has the advantage of going first, and could win on the first roll. So the probability that Jo wins should be greater than half.
To see exactly what it is, notice that there's a natural recursion or "renewal" in the setup. For Jo to win, we can condition on the first two moves as follows:
So if $x$ is the chance that Jo is the winner, then $x$ satisfies an equation:
$$ x = \frac{1}{6} + \big{(}\frac{5}{6}\big{)}^2 x $$This is easy to solve.
$$ \frac{11}{36}x = \frac{6}{36} ~~~~ \text{and so } ~~~~ x = \frac{6}{11} $$which is greater than half as we had guessed.
Let $a < b$ be two positive integers. Suppose a gambler starts with $\$a$ and bets on the tosses of a coin. Every time the coin lands heads, the gambler wins a dollar. Every time it lands tails, the gambler loses a dollar.
Now suppose the gambler has a stopping rule: he will stop once his fortune gets to $\$b$ or to $\$0$, whichever happens first. If the gambler ends up stopping at $\$0$, he is ruined. Our goal in this example is to find the probability of ruin.
It's a good idea to start visualizing the random trajectory of the gambler's fortune as a path. Here are two graphs that assume $a = 3$ and $b = 10$. The first graph shows a path that leads to the gambler reaching $\$10$. The second shows a path to ruin.
Question. What is the probability that the gambler is ruined?
Answer. Let's start by setting up some notation. For $0 \le k \le b$, Let $p_k$ be the chance that the gambler is ruined given that he starts with $\$k$. Then the answer that we want is $p_a$. By *conditioning on the first move*, we can see that $p_k$ satisfies an equation:
$$ p_k = \frac{1}{2}p_{k-1} + \frac{1}{2}p_{k+1}, ~~~~ 1 \le k \le b-1 $$with the "edge cases" defined as
$$ p_0 = 1 ~~~~~ \text{and} ~~~~~ p_b = 0 $$Write the left hand side of the equation as $\frac{1}{2}p_k + \frac{1}{2}p_k$ and rearrange it to see that
$$ p_k - p_{k-1} = p_{k+1} - p_k $$The successive differences are equal, which means that $p_k$ is a linear function of $k$.
Here is the line assuming $a= \$3$ and $b = \$10$ as before. The red lines show that $p_3 = 0.7$.
For general $a$ and $b$, the line starts at $(0, 1)$ and has slope $-1/b$. So the chance of ruin, starting with $\$a$, is
$$ p_a = \frac{b-a}{b} $$This makes sense. For fixed $b$, the bigger $a$ is, the closer the gambler's starting fortune is to $\$b$ and hence the smaller his chance of ending in ruin. And correspondingly, the higher his chance of ending up with $\$b$:
$$ 1 - p_a = \frac{a}{b} $$If the gambler bets on tosses of a coin that lands heads with $p \ne 1/2$, then the equations become
$$ p_k = q\cdot p_{k-1} + p\cdot p_{k+1}, ~~~~ 1 \le k \le b-1 $$where $q = 1-p$, and the edge cases are
$$ p_0 = 1 ~~~~~ \text{and} ~~~~~ p_b = 0 $$as before. Now the rearrangement is
$$ q(p_k - p_{k-1}) = p(p_{k+1} - p_k) $$which means that the ratio of the successive differences is constant and equal to $r = \frac{q}{p}$. So the probabilities $p_k$ are the sums of the terms in a geometric progression with common ratio $r$. You can check that this works out to
$$ p_k = \frac{r^k - r^b}{1 - r^b}, ~~~~~ 0 \le k \le b $$Note that if $p < 1/2$ then $r > 1$ and both the numerator and denominator are negative.
Here is a graph of the probabilities, for $a = 3$ and $b = 10$ as before, but now with a coin that is biased towards heads with $p = 0.6$. Not surprisingly, as the initial fortune increases the probability of ruin falls more sharply for this coin than for the fair coin. Even when the gambler starts with only $\$3$, his chance of ruin is less than 30%.


tilder - File backup assistant
python tilder.py [-h] [--ts_lev {d,dt,none}] [--ts_pos {bef,aft}]
[--nopause] file [file ...]
Back up your files into respective subdirectories
with explicit timestamps.
-h, --help
Help message
--ts_lev {d,dt,none}
d (default)
Timestamping up to yyyymmdd
dt
Timestamping up to yyyymmdd_hhmm
none
No timestamping
--ts_pos {bef,aft}
bef
Timestamping before the filename
aft (default)
Timestamping after the filename
--nopause
The shell will not be paused at the end of the program.
file ...
List of files to be backed up.
python tilder.pl oliver.eps heaviside.dat --nopause
python tilder.pl bateman.ps --ts_lev=d
Python 3
Jaewoong Jang<EMAIL_ADDRESS>Copyright (c) 2018-2020 Jaewoong Jang
This software is available under the MIT license; the license information is found in 'LICENSE'.


menu
Sidenav.js
A JavaScript library to create sidebars in in mobile! No dependencies!
account_circle
Some menu item
android
Another menu item
face
It doesn't necessarily to be a menu
room
Put anything you want!
airplanemode_active
Scrolling is OK too!
menu
Sidenav.js


MDW Camel Integration
Introduction to Apache Camel
Apache Camel is a powerful open source integration framework based on known Enterprise Integration Patterns
with powerful Bean Integration.Camel lets you create the Enterprise Integration Patterns to implement routing
and mediation rules in either a Java based Domain Specific Language (or Fluent API),
via Spring based Xml Configuration files or via the Scala DSL.
Apache Camel uses URIs so that it
can be easily work directly with any kind of Transport or messaging model such as HTTP, ActiveMQ, JMS, JBI, SCA,
MINA or CXF, as well as pluggable Components and Data Format options.
Apache Camel is a small library which has minimal dependencies for easy
embedding in any Java application. Apache Camel lets you work with the same API regardless which kind of Transport
used, so once you learn the API you will be able to interact with all the
Components that is provided out-of-the-box.
Apache Camel has powerful Bean Binding and integrated seamless with popular frameworks such as Spring,Blueprint and Guice.
Apache Camel has extensive Testing support allowing you to easily unit test your routes.
Apache Camel can be used as a routing and mediation engine for the following projects:
- Apache ServiceMix which is the most popular and powerful distributed open source ESB and JBI container
- Apache ActiveMQ which is the most popular and powerful open source message broker
- Apache CXF which is a smart web services suite (JAX-WS)
- Apache Karaf - a small OSGi based runtime in which applications can be deployed
- Apache MINA a networking framework
Routes and Java DSL
A route is the step-by-step movement of a Message from an input queue, through arbitrary types of decision making
(such as filters and routers) to a destination queue (if any).
Camel provides two ways for an application developer to specify routes.
One way is to specify route information in an XML file.The other way is through what Camel
calls a Java DSL (domain-specific language).
CamelContext
A CamelContext object represents the Camel runtime system.
You typically have one CamelContext object in an application.
Basically a Camel Context will hold the camel routes which you declare
and you can have multiple camel routes defined in your spring bean file.
Endpoint
The term endpoint is often used when talking about inter-process communication.
For example,in client-server communication, the client is one endpoint and the server is the other endpoint.
Depending on the context, an endpoint might refer to an address, such as a host:port pair for
TCP-based communication, or it might refer to a software entity that is contactable at that address.
Camel provides out-of-the-box support for endpoints implemented with many different communication technologies.
Here are some examples of the Camelsupported endpoint technologies.
A JMS queue.
A web service.
A file. A file may sound like an unlikely type of endpoint, until you realize that in some systems one application might write information to a file and, later, another application might read that file.
An FTP server.
An email address. A client can send a message to an email address, and a server can read an incoming message from a mail server.
A POJO (plain old Java object).
To get more details on Apache Camel See this link
How to integrate MDW with Camel
During build time we need to add dependencies to the maven pom.xml file for mdw-camel.
Additionally you can also add whichever Apache Camel features you want to use like
camel-core,camel-spring,camel-cxf shown in the snippet below.
<dependency>
<groupId>com.centurylink.mdw</groupId>
<artifactId>mdw-camel</artifactId>
<version>${mdw.version}</version>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-core</artifactId>
<version>1.5.0</version>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-spring</artifactId>
<version>1.5.0</version>
</dependency>
To install in runtime container like ServiceMix/Fuse use below command :
feature:install mdw-camel
MDW war for Tomcat container includes camel feature so no additional steps are needed
Configure Spring
The Spring config file is placed under META-INF/spring as this is the default location.
First we will need to do the standard schema declarations in the top.
In the bundle-context.xml we have to use spring beans as the default bean: namespace and springs context:.
For configuring ActiveMQ we can use broker: and for Camel of course camel:.
We choose to integrate Camel in the Spring XML file so we add the camel namespace and the schema location like this:
xmlns:camel="http://camel.apache.org/schema/spring"
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
Notice that we don't use version numbers for the camel-spring schema.
Dependency Injection
(src/main/resources/META-INF/spring/bundle-context.xml)
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<!-- regular spring configuration file defining the beans for this bundle. The configuration of OSGi definitions can be kept in a separate configuration file so that this file can easily be used for integration testing outside of an OSGi environment -->
<bean id="mdwCamelActivityProvider" class="com.centurylink.mdw.workflow.provider.ActivityProviderBean" />
OSGI Injection
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:osgi="http://www.springframework.org/schema/osgi"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/osgi
http://www.springframework.org/schema/osgi/spring-osgi-1.0.xsd">
<osgi:service ref="mdwCamelActivityProvider">
<osgi:interfaces>
<value>com.centurylink.mdw.common.provider.ActivityProvider</value>
</osgi:interfaces>
<osgi:service-properties>
<entry key="alias" value="mdwCamelActivities"/>
</osgi:service-properties>
</osgi:service>
The xml tag osgi:service will help to register our OSGI service top of the OSGI server and will publish the interfaces as available for another bundles who would like to use them.
Defining Camel Context
Below snippet shows how to define your Camel Context which is the standard Camel syntax and this basically holds all the camel routes you declare.Multiple Camel routes can be declared in context xml file.
<camel:camelContext xmlns="http://camel.apache.org/schema/spring" xmlns:foo="http://centurylink.com/foo">
<!-- launch a process -->
<route>
<from uri="file:data/inbox"/>
<!-- no namespace -->
<filter>
<xpath>/Order</xpath>
<to uri="mdw:process?name=CamelDemoProcess&masterRequestId=${Order/orderNumber/node()}"/>
</filter>
</route>
</camel:camelContext>
Apache Camel File Component
The File component provides access to file systems, allowing files to be processed by any other Camel Components or messages from other components to be saved to disk.
Define MDW Camel Component
In order to support MDW you need MDW Camel component which gives you the ability to have MDW uri syntax (mdw:) to use as endpoints in your spring bean file(bundle-context.xml).
Below is the snippet to define MDW Camel Component :
<!-- MDW camel component -->
<bean id="mdw" class="com.centurylink.mdw.camel.MdwComponent">
<property name="namespaces">
<map>
<entry key="foo" value="http://centurylink.com/foo" />
</map>
</property>
</bean>
Using Camel to supplement existing MDW external event handler capability
One of the main reason of using Camel Vs MDW is to supplement the existing MDW external event handler capability.
As we know in case of external event handlers we register xpath message pattern and whenever some document comes in as part of the request
and it matches the x path expression, we need to either launch a process ,notify a process,etc.
Camel provides mechanism to do exactly the same thing plus they do have a lot of additional capabilities
which you will see later.
In the MDW 5.2 sandbox environment(mdw/mdw) look into workflow package "Camel Demo" which contains processes and assets that illustrates the above functionality.
Or you can discover and import com.centurylink.mdw.demo.camel and com.centurylink.mdw.camel project for mdw-camel examples.
Camel Protocol support
Another biggest value of using Camel Vs MDW is Camel supports quite a number of
protocols and transports from which MDW supports only few of them.
For more details on Apache Camel transports see this link
Using Camel Routes to launch MDW process
The below code snippet uses Camel File Component and illustrates that whenever something comes in to your
file system then based on the document message pattern i.e if the top element is /Order then you are launching a
process.You can also pass additional parameters which are required to launch a process.
In below snippet ${Order/orderNumber/node()} will be replaced with the data from the incoming document.
<from uri="file:data/inbox"/>
<!-- no namespace -->
<filter>
<xpath>/Order</xpath>
<to uri="mdw:process?name=CamelDemoProcess&masterRequestId=${Order/orderNumber/node()}"/>
</filter>
XML with namespace
The below code snippet illustrates that whenever any document (whose namespace top element is /foo:Order )
comes in to your file system then you are launching a process.
Please note that the namespace needs to be registered in Camel Context as shown below.
<camel:camelContext xmlns="http://camel.apache.org/schema/spring" xmlns:foo="http://centurylink.com/foo">
<from uri="file:data/inbox"/>
<!-- with namespace:
prefix for filtering xpath is declared in camelContext above;
prefix for masterRequestId xpath is declared in mdw-process bean below -->
<filter>
<xpath>/foo:Order</xpath>
<to uri="mdw:process?name=CamelDemoProcess&masterRequestId=${/foo:Order/foo:orderNumber/node()}"/>
</filter>
Using Camel Routes to launch Service Process
Below code snippet illustrates how to use Camel Routes to launch Service Process.
<filter>
<xpath>/GetEmployee</xpath>
<to uri="mdw:process?name=FindEmployee&masterRequestId=${GetEmployee/sapId/node()}"/>
</filter>
Using Camel Routes to launch process using Custom Handler
Below code snippet illustrates how to use Camel Routes to launch process using custom handler.
<filter>
<xpath>/DesignOrder[@product='Ethernet']</xpath>
<to uri="mdw:process?name=Design%20Order&handlerClass=com.centurylink.mdwcamel.process.MyProcessLaunchHandler"
pattern="InOut"/>
</filter>
Using Camel Routes to notify in-flight process
There are various scenarios where MDW process instance will be waiting to get notified.
With MDW we use external event handlers whereas with Camel we can
use mdw:notify syntax to perform exactly the same behaviour.
Below code snippet illustrates example of route-based notify.
<filter>
<xpath>/OrderUpdate</xpath>
<to uri="mdw:notify?eventId=${/OrderUpdate/orderNumber/node()}"/>
</filter>
Below code snippet illustrates example of notifying in-flight process using custom handler.
<filter>
<xpath>/DesignOrderUpdate</xpath>
<to uri="mdw:notify?handlerClass=com.centurylink.mdwcamel.event.MyNotifyHandler"/>
</filter>
Camel Routes As a Dynamic Workflow Asset
At any point of time MDW Camel Route can be defined as a Dynamic Workflow Asset .
Ex : Employee.wsdl (In the MDW 5.2 sandbox environment(mdw/mdw) look into workflow package "MDW Testing") is a dynamic webservice asset exposed through its wsdl which means we can change the wsdl any time without doing another deployment.
Another example is OrderContext.spring as a dynamic asset in com.centurylink.mdw.demo.camel package
Configuring Camel Routes as Dynamic Workfow Assets
To illustrate this capability of configuring Camel Routes as dynamic workflow assets see section
"Register Your Service through a Camel Route" under Step 5 in this link
You can hook up any other Camel endpoint to launch MDW process like cxf endpoint defined below:
<!-- CXF Web Service Route to MDW Process Launch -->
<route>
<from uri="cxf:bean:employee-ws?dataFormat=PAYLOAD" /> <!-- specify MasterRequestID SOAP header -->
<to uri="mdw:process?name=FindEmployee" pattern="InOut" />
</route>
CXF Endpoint needs to be defined in your bundle-context.xml file as shown below.Here we are exposing service as a cxf webservice.
<!-- CXF Endpoint -->
<cxf:cxfEndpoint
id="employee-ws"
address="http://localhost:8282/CXF/SOAP/Employee"
endpointName="mdw:soap"
serviceName="mdw:EmployeeService"
wsdlURL="http://localhost:8181/MDWWeb/SOAP/Employee.wsdl"
xmlns:mdw="http://mdw-servicemix.centurylink.com" />
Using Camel Routes to handle SOAP/REST requests
Below code snippet illustrates that whenever any SOAP/REST request comes in and matches /GetEmployee then launch FindEmployee process.
The routes declared here tells the MDW Camel component to register a SOAP-based/REST-based web service and launch FindEmployee process when invoked.
In order for the "mdw:" URI pattern to be supported, the MDW Component bean must be declared which you have already seen in previous section
(Define MDW Camel Component).Please notice that with the "from" URI in an MDW Camel route you will have the option of specifying a specific
endpoint URL path(SOAP/GetEmployee or REST/GetEmployee), in contrast to the standard MDW External Event handler which all use the same endpoint.
<!-- MDW Web Service (SOAP) -->
<route>
<from uri="mdw:SOAP/GetEmployee"/> <!-- specify MasterRequestID SOAP or HTTP header -->
<to uri="mdw:process?name=FindEmployee" pattern="InOut" />
</route>
<!-- MDW Web Service (REST) -->
<route>
<from uri="mdw:REST/GetEmployee"/> <!-- specify MasterRequestID HTTP header -->
<to uri="mdw:process?name=FindEmployee" pattern="InOut" />
</route>
MDW Camel Adapter Activity
You can also use MDW workflow to launch a Camel route. If you are using Camel Route inside a workflow process then you must define it as a Workflow Asset.
Ex : Look into the "Invoke Camel Route" process in Camel Demo package (MDW 5.2 sandbox environment mdw/mdw or import com.centurylink.mdw.demo.camel and com.centurylink.mdw.camel package)
This process basically launches Camel Route from MDW process,this goes to the routing and at the end the end result will populate as part of the response variable.
In this example the process uses Asset driven(MyCamelRoute.xml) activity defined as part of the Camel Route Adapter activity.
Please note that the syntax "<from uri="mdw:workflow/this"/>" used in MyCamelRoute.xml means the instance of workflow which is running(i.e. instance of Invoke Camel Route process)
NOTE:
With respect to MDW , Camel Route is a good substitute for external event handler but it is not a good substitute for workflow because it does not really accomplish the needs defined for BPM/workflows.Also it is not user friendly.


Enter a user login name to access their folderFrom here you can find their followers, who they are following and the users repositories


These explanatory scripts, videos ( Jan 2016 ) and slideshows, will start your Meteor development infrastructure immediately with: package development, testing, documenting, logging, code style linting and continuous integration
Please note : You want to learn the most in the least time, right?
You will not find any fluff here. Every word is dedicated to helping you get the most out of the tutorial in the least time. In fact, to save you even more time, I generate code fragments, "on-the-fly", employing a naming scheme you choose, so you're getting more than a tutorial -- it's also a toolkit of boilerplate snippets. The end result is a complete work environment designed to make you into a high-velocity developer with very low "maintenance drag". Skim it to see if it's what you need, but then -- please -- follow all the instructions closely.
Quality is free! But getting there can be daunting. The goal of this tutorial series is to help Meteor developers put together a complete continuous integration work environment from which to build out :
The focus is on 'wiring', with very little discussion of what more one can do with each of the various elements once they're wired together -- there are plenty of tutorials about all of that. 'Wiring' refers to the challenge of connecting a variety of different tools together into a integrated whole -- even if the whole doesn't actually do much to begin with.
Another goal is to help developers begin building Meteor applications as though they were working in multiple teams on multiple projects! In particular, this means going beyond "normal" configuration of ssh and git, to handle multiple user aliases and GitHub deploy keys. The end result will be fractionally more difficult in your daily routine, but much more flexible and "future proof".
Most likely you'll want to flip through the slides to get an overview, then watch the videos, then spin up a fresh virtual machine and execute the scripts. Since the scripts are semi-automatic, you'll have very little typing to do, and so the whole thing shouldn't cost you more than a few hours. In fact, grouped as it is in spoon-sized doses, you can step through it a little bit at a time, when you have time.
Other stuff:
We start off with a fresh Ubuntu 14.04 LTS virtual machine and install all the platform dependencies. These are global installs requiring 'sudo'. Subsequent sections should not require 'sudo'. The script shown can run to completion without intervention, or stop at intermediate steps to view explanations.
Towards the goal of "packages-only-apps", we are mainly interested in version control of each distinct package, but we still need a 'do-nothing' app in which to instantiate the packages.
So, we'll prepare a Meteor project and store it in GitHub.
This section follows the steps to perform to begin testing a Meteor package.
We'll prepare a package, secure it in GitHub and run preliminary tests with TinyTest in the browser and on the command line.
If you want reusable components, especially if you are working with one or several teams, it's very important to ensure consistent styles and documentation standards from all contributors to all your projects. In this and the next section we'll set up an environment where standards conformance is easy.
The first element is linting with esLint, run in the editor for instant feedback as well as on the command line so conformance can be published and monitored as part of continuous integration.
The second element exploits two powerful tools: jsDoc and "GitHub Pages".
We'll put together a mechanism for easily documenting code files and then publishing them as a browsable manual, automatically, on GitHub.
This section expands on your workstation toolbox to include working with continuous integration in the cloud. It covers everything involved in setting up linting, automated documentation, unit testing, version control, end-to-end testing and continuous integration in-the-cloud.
A vital, piece of application architecture is scaleable logging: run-time logs that track critical server-side activity at appropriate levels of detail. We "require" Bunyan, a toolkit for NodeJS that focuses on very flexible logging with JSON output, that can be readily archived and subsequently "mined", for example, for usage patterns.
Here we create a complete working, tested, documented Meteor package from a pre-exising NodeJS module. This step also introduces the "impedance mis-match" between the synchronous layer that Meteor builds on top of the asynchronous substrate of NodeJS.
To close the loop on all the preceding development stage parts we now bring the online documentation up-to-date and automate end-to-end testing of our package in-the-cloud; such that interested users can quickly get started using it.
We build our project as an Android app, place it into our project as a download link, then deploy it to Meteor's servers. W e use our understanding of that to complete our CI script to do it all automatically in CircleCI, every time we push a commit to GitHub.
To begin, you will need to obtain the tutorial. Open up a terminal window, then copy'n paste these commands into it:
export BRANCH="master" # modularize
export URI="https://github.com/martinhbramwell"
export TUT="Meteor-CI-Tutorial"
export FILE="archive/${BRANCH}.zip"
echo "Downloading : \n${URI}/${TUT}/${FILE}"
echo " as : ${TUT}.zip"
wget -O ${TUT}.zip ${URI}/${TUT}/${FILE}
unzip ${TUT}.zip
mv ${TUT}-${BRANCH} ${TUT}
cd ${TUT}
# Ready to run the first script :
# ./Tutorial01_PrepareTheMachine.sh
The result should look like this.
Then you can run the first script with:
./Tutorial01_PrepareTheMachine.sh


|
Nana - a C++ framework project The Programmer's Guide |
|
nana::gui::API::root Description Retrieves the native window of a Nana.GUI window. Prototype nana::gui::native_window_type root(nana::gui::window wnd); Parameters wnd: a handle to the Nana.GUI window. Return Value If the function succeeds, the return value is the native window handle to the Nana.GUI window. If the function fails, the return value is zero. Remarks The native window type is platform-dependent. Under Microsoft Windows, a conversion can be employed between nana::gui::native_window_type and HWND through reinterpret_cast operator. Under X System, a conversion can be employed between nana::gui::native_window_type and Window through reinterpret_cast operator. See also None. Move to The Nana Programmer's Guide Application Programming Interface Overviews |


This is a project located in Youngstown, Ohio which seeks to relate the city's numerous vacant residential and industrial properties to biophysical characteristics such as landcover and topography. This map was created in the Scripting Civic Engagement seminar at the University of Virginia (Fall 2017), taught by Andrea Hansen Phillips.
Map data courtesy of Mapbox Studio and the Youngstown State University
For questions or to improve this map, contact Liz Camuti


Server-side and client-side Javascript projects, NodeJS, Angular, React, Typescript. I also have professional experience in many other languages, including PHP, C, Java and Python. I enjoy being involved in open source projects and I would be open to assist in any if you think my skillset would be useful, please contact me.
MongoDB, Elasticsearch, U2 (Universe and Unidata), Cassandra, MSSQL, PostgreSQL, Couch and Redis.
node-mongo-vs-postgres-jsonb Measure and compare Node Implementation performance of PostgreSQL JSONB and MongoDB.
node-azure-servicebus-explorer Azure Service Bus Explorer written in Node and Angular.
arm-template-generator Generates ARM (Azure Resource Manager) Templates.
Other projects:


|
Cannon Cpp
1.0.0
|
Helper class for the World. Generates ContactEquations. More...
#include <Narrowphase.h>
Public Member Functions | |
| ContactEquation * | createContactEquation (Body *bi, Body *bj, Shape *si, Shape *sj, Shape *overrideShapeA, Shape *overrideShapeB) |
| Make a contact object, by using the internal pool or creating a new one. More... | |
| bool | createFrictionEquationsFromContact (ContactEquation *contactEquation, std::vector< FrictionEquation * > *outArray) |
| void | createFrictionFromAverage (int numContacts) |
| Take the average N latest contact point on the plane. More... | |
| void | getContacts (std::vector< Body * > &p1, std::vector< Body * > &p2) |
| Generate all contacts between a list of body pairs. More... | |
| bool | boxBox (Shape *si, Shape *sj, Vec3 &xi, Vec3 &xj, Quaternion &qi, Quaternion &qj, Body *bi, Body *bj, Shape *rsi, Shape *rsj, bool justTest) |
| bool | boxConvex (Shape *si, Shape *sj, Vec3 &xi, Vec3 &xj, Quaternion &qi, Quaternion &qj, Body *bi, Body *bj, Shape *rsi, Shape *rsj, bool justTest) |
| bool | boxParticle (Shape *si, Shape *sj, Vec3 &xi, Vec3 &xj, Quaternion &qi, Quaternion &qj, Body *bi, Body *bj, Shape *rsi, Shape *rsj, bool justTest) |
| bool | sphereSphere (Shape *si, Shape *sj, Vec3 &xi, Vec3 &xj, Quaternion &qi, Quaternion &qj, Body *bi, Body *bj, Shape *rsi=nullptr, Shape *rsj=nullptr, bool justTest=false) |
| Sphere to sphere. More... | |
| bool | planeTrimesh (Shape *si, Shape *sj, Vec3 &planePos, Vec3 &trimeshPos, Quaternion &planeQuat, Quaternion &trimeshQuat, Body *planeBody, Body *trimeshBody, Shape *rsi, Shape *rsj, bool justTest) |
| Plane to trimesh. More... | |
| bool | sphereTrimesh (Shape *si, Shape *sj, Vec3 &spherePos, Vec3 &trimeshPos, Quaternion &sphereQuat, Quaternion &trimeshQuat, Body *sphereBody, Body *trimeshBody, Shape *rsi, Shape *rsj, bool justTest) |
| Sphere to trimesh. More... | |
| bool | spherePlane (Shape *si, Shape *sj, Vec3 &xi, Vec3 &xj, Quaternion &qi, Quaternion &qj, Body *bi, Body *bj, Shape *rsi, Shape *rsj, bool justTest) |
| Sphere to plane. More... | |
| bool | sphereBox (Shape *si, Shape *sj, Vec3 &xi, Vec3 &xj, Quaternion &qi, Quaternion &qj, Body *bi, Body *bj, Shape *rsi, Shape *rsj, bool justTest) |
| Sphere to box. More... | |
| bool | sphereConvex (Shape *si, Shape *sj, Vec3 &xi, Vec3 &xj, Quaternion &qi, Quaternion &qj, Body *bi, Body *bj, Shape *rsi, Shape *rsj, bool justTest) |
| Sphere to convex. More... | |
| bool | planeBox (Shape *si, Shape *sj, Vec3 &xi, Vec3 &xj, Quaternion &qi, Quaternion &qj, Body *bi, Body *bj, Shape *rsi, Shape *rsj, bool justTest) |
| Plane to box. More... | |
| bool | planeConvex (Shape *planeShape, Shape *convexShape, Vec3 &planePosition, Vec3 &convexPosition, Quaternion &planeQuat, Quaternion &convexQuat, Body *planeBody, Body *convexBody, Shape *si, Shape *sj, bool justTest) |
| Plane to convex. More... | |
| bool | convexConvex (Shape *si, Shape *sj, Vec3 &xi, Vec3 &xj, Quaternion &qi, Quaternion &qj, Body *bi, Body *bj, Shape *rsi, Shape *rsj, bool justTest, const std::vector< int > *faceListA=nullptr, const std::vector< int > *faceListB=nullptr) |
| Convex to convex. More... | |
| bool | planeParticle (Shape *si, Shape *sj, Vec3 &xi, Vec3 &xj, Quaternion &qi, Quaternion &qj, Body *bi, Body *bj, Shape *rsi, Shape *rsj, bool justTest) |
| bool | sphereParticle (Shape *si, Shape *sj, Vec3 &xi, Vec3 &xj, Quaternion &qi, Quaternion &qj, Body *bi, Body *bj, Shape *rsi, Shape *rsj, bool justTest) |
| bool | convexParticle (Shape *si, Shape *sj, Vec3 &xi, Vec3 &xj, Quaternion &qi, Quaternion &qj, Body *bi, Body *bj, Shape *rsi, Shape *rsj, bool justTest) |
| bool | boxHeightfield (Shape *si, Shape *sj, Vec3 &xi, Vec3 &xj, Quaternion &qi, Quaternion &qj, Body *bi, Body *bj, Shape *rsi, Shape *rsj, bool justTest) |
| bool | convexHeightfield (Shape *si, Shape *sj, Vec3 &convexPos, Vec3 &hfPos, Quaternion &convexQuat, Quaternion &hfQuat, Body *convexBody, Body *hfBody, Shape *rsi, Shape *rsj, bool justTest) |
| bool | sphereHeightfield (Shape *sphereShape, Shape *hfShape, Vec3 &spherePos, Vec3 &hfPos, Quaternion &sphereQuat, Quaternion &hfQuat, Body *sphereBody, Body *hfBody, Shape *rsi=nullptr, Shape *rsj=nullptr, bool justTest=false) |
| bool | pointInPolygon (std::vector< Vec3 > &verts, Vec3 &normal, Vec3 p) |
| ContactMaterial * | currentContactMaterial () |
| void | setCurrentContactMaterial (ContactMaterial *value) |
| std::vector< ContactEquation * > * | contactsResult () |
| std::vector< FrictionEquation * > * | frictionsResult () |
| Public Member Functions inherited from Ref | |
| Ref () | |
| void | retain () |
| Retain a reference, _referenceCount add one. More... | |
| void | release () |
| Release a reference, _referenceCount minus one. More... | |
| int | getReferenceCount () const |
| Get the reference count of this object. More... | |
Static Public Member Functions | |
| static Narrowphase * | create (World *world) |
Protected Member Functions | |
| Narrowphase () | |
| The constructor of Narrowphase. More... | |
| virtual | ~Narrowphase () |
| bool | init (World *world) |
| Protected Member Functions inherited from Ref | |
| virtual | ~Ref () |
Protected Attributes | |
| std::vector< ContactEquation * > * | _contactPointPool = nullptr |
| Internal storage of pooled contact points. More... | |
| std::vector< FrictionEquation * > * | _frictionEquationPool = nullptr |
| std::vector< ContactEquation * > * | _contactsResult = nullptr |
| std::vector< FrictionEquation * > * | _frictionsResult = nullptr |
| World * | _world = nullptr |
| ContactMaterial * | _currentContactMaterial = nullptr |
| bool | _enableFrictionReduction = false |
| enableFrictionReduction More... | |
| Protected Attributes inherited from Ref | |
| int | _referenceCount = 0 |
| count of references More... | |
Helper class for the World. Generates ContactEquations.
|
protected |
The constructor of Narrowphase.
|
protectedvirtual |
| bool Narrowphase::boxBox | ( | Shape * | si, |
| Shape * | sj, | ||
| Vec3 & | xi, | ||
| Vec3 & | xj, | ||
| Quaternion & | qi, | ||
| Quaternion & | qj, | ||
| Body * | bi, | ||
| Body * | bj, | ||
| Shape * | rsi, | ||
| Shape * | rsj, | ||
| bool | justTest | ||
| ) |
| bool Narrowphase::boxConvex | ( | Shape * | si, |
| Shape * | sj, | ||
| Vec3 & | xi, | ||
| Vec3 & | xj, | ||
| Quaternion & | qi, | ||
| Quaternion & | qj, | ||
| Body * | bi, | ||
| Body * | bj, | ||
| Shape * | rsi, | ||
| Shape * | rsj, | ||
| bool | justTest | ||
| ) |
| bool Narrowphase::boxHeightfield | ( | Shape * | si, |
| Shape * | sj, | ||
| Vec3 & | xi, | ||
| Vec3 & | xj, | ||
| Quaternion & | qi, | ||
| Quaternion & | qj, | ||
| Body * | bi, | ||
| Body * | bj, | ||
| Shape * | rsi, | ||
| Shape * | rsj, | ||
| bool | justTest | ||
| ) |
| bool Narrowphase::boxParticle | ( | Shape * | si, |
| Shape * | sj, | ||
| Vec3 & | xi, | ||
| Vec3 & | xj, | ||
| Quaternion & | qi, | ||
| Quaternion & | qj, | ||
| Body * | bi, | ||
| Body * | bj, | ||
| Shape * | rsi, | ||
| Shape * | rsj, | ||
| bool | justTest | ||
| ) |
|
inline |
| bool Narrowphase::convexConvex | ( | Shape * | si, |
| Shape * | sj, | ||
| Vec3 & | xi, | ||
| Vec3 & | xj, | ||
| Quaternion & | qi, | ||
| Quaternion & | qj, | ||
| Body * | bi, | ||
| Body * | bj, | ||
| Shape * | rsi, | ||
| Shape * | rsj, | ||
| bool | justTest, | ||
| const std::vector< int > * | faceListA = nullptr , |
||
| const std::vector< int > * | faceListB = nullptr |
||
| ) |
Convex to convex.
| si | A shape belongs the body of bi. |
| sj | A shape belongs the body of bj. |
| xi | The position fo body bi. |
| xj | The position fo body bj. |
| qi | The orientation of body bi. |
| qj | The orientation of body bj. |
| bi | A body to be checked collision. |
| bj | Another body to be checked collision. |
| rsi | A shape override si. |
| rsj | A shape override sj. |
| justTest | Just test collision only. |
| faceListA | Default is nullptr. |
| faceListB | Default is nullptr. |
| bool Narrowphase::convexHeightfield | ( | Shape * | si, |
| Shape * | sj, | ||
| Vec3 & | convexPos, | ||
| Vec3 & | hfPos, | ||
| Quaternion & | convexQuat, | ||
| Quaternion & | hfQuat, | ||
| Body * | convexBody, | ||
| Body * | hfBody, | ||
| Shape * | rsi, | ||
| Shape * | rsj, | ||
| bool | justTest | ||
| ) |
| bool Narrowphase::convexParticle | ( | Shape * | si, |
| Shape * | sj, | ||
| Vec3 & | xi, | ||
| Vec3 & | xj, | ||
| Quaternion & | qi, | ||
| Quaternion & | qj, | ||
| Body * | bi, | ||
| Body * | bj, | ||
| Shape * | rsi, | ||
| Shape * | rsj, | ||
| bool | justTest | ||
| ) |
|
static |
| ContactEquation * Narrowphase::createContactEquation | ( | Body * | bi, |
| Body * | bj, | ||
| Shape * | si, | ||
| Shape * | sj, | ||
| Shape * | overrideShapeA, | ||
| Shape * | overrideShapeB | ||
| ) |
Make a contact object, by using the internal pool or creating a new one.
| bi | A body related to the contact. |
| bj | Another body related to the contact. |
| si | A shpae related to the contact. |
| sj | Another shpae related to the contact. |
| overrideShapeA | A shape override si. |
| overrideShapeB | A shape override sj. |
| bool Narrowphase::createFrictionEquationsFromContact | ( | ContactEquation * | contactEquation, |
| std::vector< FrictionEquation * > * | outArray | ||
| ) |
| void Narrowphase::createFrictionFromAverage | ( | int | numContacts | ) |
Take the average N latest contact point on the plane.
|
inline |
|
inline |
Generate all contacts between a list of body pairs.
| p1 | Array of body |
| p2 | Array of body |
|
protected |
| bool Narrowphase::planeBox | ( | Shape * | si, |
| Shape * | sj, | ||
| Vec3 & | xi, | ||
| Vec3 & | xj, | ||
| Quaternion & | qi, | ||
| Quaternion & | qj, | ||
| Body * | bi, | ||
| Body * | bj, | ||
| Shape * | rsi, | ||
| Shape * | rsj, | ||
| bool | justTest | ||
| ) |
Plane to box.
| si | A shape belongs the body of bi. |
| sj | A shape belongs the body of bj. |
| xi | The position fo body bi. |
| xj | The position fo body bj. |
| qi | The orientation of body bi. |
| qj | The orientation of body bj. |
| bi | A body to be checked collision. |
| bj | Another body to be checked collision. |
| rsi | A shape override si. |
| rsj | A shape override sj. |
| justTest | Just test collision only. |
| bool Narrowphase::planeConvex | ( | Shape * | planeShape, |
| Shape * | convexShape, | ||
| Vec3 & | planePosition, | ||
| Vec3 & | convexPosition, | ||
| Quaternion & | planeQuat, | ||
| Quaternion & | convexQuat, | ||
| Body * | planeBody, | ||
| Body * | convexBody, | ||
| Shape * | si, | ||
| Shape * | sj, | ||
| bool | justTest | ||
| ) |
Plane to convex.
| planeShape | A shape belongs the body of planeBody. |
| convexShape | A shape belongs the body of convexBody. |
| planePosition | The position fo body planeBody. |
| convexPosition | The position fo body convexBody. |
| planeQuat | The orientation of body planeBody. |
| convexQuat | The orientation of body convexBody. |
| planeBody | A body to be checked collision. |
| convexBody | Another body to be checked collision. |
| justTest | Just test collision only. |
| bool Narrowphase::planeParticle | ( | Shape * | si, |
| Shape * | sj, | ||
| Vec3 & | xi, | ||
| Vec3 & | xj, | ||
| Quaternion & | qi, | ||
| Quaternion & | qj, | ||
| Body * | bi, | ||
| Body * | bj, | ||
| Shape * | rsi, | ||
| Shape * | rsj, | ||
| bool | justTest | ||
| ) |
| bool Narrowphase::planeTrimesh | ( | Shape * | si, |
| Shape * | sj, | ||
| Vec3 & | planePos, | ||
| Vec3 & | trimeshPos, | ||
| Quaternion & | planeQuat, | ||
| Quaternion & | trimeshQuat, | ||
| Body * | planeBody, | ||
| Body * | trimeshBody, | ||
| Shape * | rsi, | ||
| Shape * | rsj, | ||
| bool | justTest | ||
| ) |
Plane to trimesh.
| si | A shape belongs the body of planeBody. |
| sj | A shape belongs the body of trimeshBody. |
| planePos | The position fo body planeBody. |
| trimeshPos | The position fo body trimeshBody. |
| planeQuat | The orientation of body planeBody. |
| trimeshQuat | The orientation of body trimeshBody. |
| planeBody | A body to be checked collision. |
| trimeshBody | Another body to be checked collision. |
| rsi | A shape override si. |
| rsj | A shape override sj. |
| justTest | Just test collision only. |
|
inline |
| bool Narrowphase::sphereBox | ( | Shape * | si, |
| Shape * | sj, | ||
| Vec3 & | xi, | ||
| Vec3 & | xj, | ||
| Quaternion & | qi, | ||
| Quaternion & | qj, | ||
| Body * | bi, | ||
| Body * | bj, | ||
| Shape * | rsi, | ||
| Shape * | rsj, | ||
| bool | justTest | ||
| ) |
Sphere to box.
| si | A shape belongs the body of bi. |
| sj | A shape belongs the body of bj. |
| xi | The position fo body bi. |
| xj | The position fo body bj. |
| qi | The orientation of body bi. |
| qj | The orientation of body bj. |
| bi | A body to be checked collision. |
| bj | Another body to be checked collision. |
| rsi | A shape override si. |
| rsj | A shape override sj. |
| justTest | Just test collision only. |
| bool Narrowphase::sphereConvex | ( | Shape * | si, |
| Shape * | sj, | ||
| Vec3 & | xi, | ||
| Vec3 & | xj, | ||
| Quaternion & | qi, | ||
| Quaternion & | qj, | ||
| Body * | bi, | ||
| Body * | bj, | ||
| Shape * | rsi, | ||
| Shape * | rsj, | ||
| bool | justTest | ||
| ) |
Sphere to convex.
| si | A shape belongs the body of bi. |
| sj | A shape belongs the body of bj. |
| xi | The position fo body bi. |
| xj | The position fo body bj. |
| qi | The orientation of body bi. |
| qj | The orientation of body bj. |
| bi | A body to be checked collision. |
| bj | Another body to be checked collision. |
| rsi | A shape override si. |
| rsj | A shape override sj. |
| justTest | Just test collision only. |
| bool Narrowphase::sphereHeightfield | ( | Shape * | sphereShape, |
| Shape * | hfShape, | ||
| Vec3 & | spherePos, | ||
| Vec3 & | hfPos, | ||
| Quaternion & | sphereQuat, | ||
| Quaternion & | hfQuat, | ||
| Body * | sphereBody, | ||
| Body * | hfBody, | ||
| Shape * | rsi = nullptr , |
||
| Shape * | rsj = nullptr , |
||
| bool | justTest = false |
||
| ) |
| bool Narrowphase::sphereParticle | ( | Shape * | si, |
| Shape * | sj, | ||
| Vec3 & | xi, | ||
| Vec3 & | xj, | ||
| Quaternion & | qi, | ||
| Quaternion & | qj, | ||
| Body * | bi, | ||
| Body * | bj, | ||
| Shape * | rsi, | ||
| Shape * | rsj, | ||
| bool | justTest | ||
| ) |
| bool Narrowphase::spherePlane | ( | Shape * | si, |
| Shape * | sj, | ||
| Vec3 & | xi, | ||
| Vec3 & | xj, | ||
| Quaternion & | qi, | ||
| Quaternion & | qj, | ||
| Body * | bi, | ||
| Body * | bj, | ||
| Shape * | rsi, | ||
| Shape * | rsj, | ||
| bool | justTest | ||
| ) |
Sphere to plane.
| si | A shape belongs the body of bi. |
| sj | A shape belongs the body of bj. |
| xi | The position fo body bi. |
| xj | The position fo body bj. |
| qi | The orientation of body bi. |
| qj | The orientation of body bj. |
| bi | A body to be checked collision. |
| bj | Another body to be checked collision. |
| rsi | A shape override si. |
| rsj | A shape override sj. |
| justTest | Just test collision only. |
| bool Narrowphase::sphereSphere | ( | Shape * | si, |
| Shape * | sj, | ||
| Vec3 & | xi, | ||
| Vec3 & | xj, | ||
| Quaternion & | qi, | ||
| Quaternion & | qj, | ||
| Body * | bi, | ||
| Body * | bj, | ||
| Shape * | rsi = nullptr , |
||
| Shape * | rsj = nullptr , |
||
| bool | justTest = false |
||
| ) |
Sphere to sphere.
| si | A shape belongs the body of bi. |
| sj | A shape belongs the body of bj. |
| xi | The position fo body bi. |
| xj | The position fo body bj. |
| qi | The orientation of body bi. |
| qj | The orientation of body bj. |
| bi | A body to be checked collision. |
| bj | Another body to be checked collision. |
| rsi | A shape override si. |
| rsj | A shape override sj. |
| justTest | Just test collision only. |
| bool Narrowphase::sphereTrimesh | ( | Shape * | si, |
| Shape * | sj, | ||
| Vec3 & | spherePos, | ||
| Vec3 & | trimeshPos, | ||
| Quaternion & | sphereQuat, | ||
| Quaternion & | trimeshQuat, | ||
| Body * | sphereBody, | ||
| Body * | trimeshBody, | ||
| Shape * | rsi, | ||
| Shape * | rsj, | ||
| bool | justTest | ||
| ) |
Sphere to trimesh.
| si | A shape belongs the body of sphereBody. |
| sj | A shape belongs the body of trimeshBody. |
| spherePos | The position fo body sphereBody. |
| trimeshPos | The position fo body trimeshBody. |
| sphereQuat | The orientation of body sphereBody. |
| trimeshQuat | The orientation of body trimeshBody. |
| sphereBody | A body to be checked collision. |
| trimeshBody | Another body to be checked collision. |
| rsi | A shape override si. |
| rsj | A shape override sj. |
| justTest | Just test collision only. |
|
protected |
Internal storage of pooled contact points.
|
protected |
|
protected |
|
protected |
enableFrictionReduction
|
protected |
|
protected |
|
protected |


HELLO! I'm Carter Sicard! I've been waiting for summer to start all year and it finally here so i decided to create a website for it!!
Well, it has been a long year for us at school, and we deserve a little bit of a break! I have a few ideas of stuff to do for summer, hopefully it gets sunnier than last week!
Move your head close to the image then far. watch the dot size


The Raspberry Pi is a series of small single-board computers developed to promote the teaching of basic computer science in schools
Espressif ESP32 is a Wi-Fi and Bluetooth chip. ESP-WROOM-32 is a low cost module based on this chip. The highlights of these chip/module are that they are cheap, small, low-power and versatile.
We would like to receive your feedback about this training.


The OSPF interface represents the connection of a router to the OSPF network. The OSPF interface defines the protocol metrics and security parameters for OSPF traffic on a V-Port on the specified subnet. An OSPF interface can exist in only one OSPF area.
This object has no members.
Admin state of this OSPF interface
Allowed values: DOWN, UP
Default value: UP
SDK attribute: adminState
ID of the Subnet which is associated to the current OSPFInterface. Once the OSPF interface is created, the associated subnet ID cannot be updated. The interface must be deleted and re-created with a different subnet ID.
Format: free
SDK attribute: associatedSubnetID
The authentication key that is used on the interface.
Format: free
Max length: 8
SDK attribute: authenticationKey
Authentication Type used for this OSPFInterface
Allowed values: MESSAGE_DIGEST, NONE, PASSWORD
Default value: NONE
SDK attribute: authenticationType
Enable or disable Bidirectional Forwarding Detection for this OSPF Interface.
Default value: false
SDK attribute: BFDEnabled
Time stamp when this object was created.
SDK attribute: creationDate
Time OSPF waits without receiving hello packets before declaring a neighbor down. If specified, it must be at least twice as long as 'helloInterval'.
Default value: 40
Min value: 1
Max value: 65535
SDK attribute: deadInterval
Description of this OSPF Interface.
Format: free
SDK attribute: description
Metadata objects associated with this entity. This will contain a list of Metadata objects if the API request is made using the special flag to enable the embedded Metadata feature. Only a maximum of Metadata objects is returned based on the value set in the system configuration.
SDK attribute: embeddedMetadata
Specify if scope of entity is Data center or Enterprise level
Allowed values: ENTERPRISE, GLOBAL
SDK attribute: entityScope
External object ID. Used for integration with third party systems
Format: free
SDK attribute: externalID
Time interval between OSPF hellos issued on the interface.
Default value: 10
Min value: 1
Max value: 65535
SDK attribute: helloInterval
Can be BROADCAST or POINT_TO_POINT
Allowed values: BROADCAST, POINT_TO_POINT
Default value: BROADCAST
SDK attribute: interfaceType
ID of the user who last updated the object.
Format: free
SDK attribute: lastUpdatedBy
Time stamp when this object was last updated.
SDK attribute: lastUpdatedDate
This attribute applies only when 'authenticationType' is 'MESSAGE_DIGEST'. In that case, this attribute is a list of pairs of key ID/password used for MD5 authentication. The key ID must by an integer between 1 and 255, and the value is a password (of 16 charachters maximum) used to generate an MD5 hash. The MD5 has is then used as authentication data in the OSPF packets. No duplicate key IDs are allowed. The format for each pair is 'keyID:password' (e.g. '1:foobar')
SDK attribute: messageDigestKeys
Configure an explicit route cost metric for the interface.
Min value: 1
Max value: 65535
SDK attribute: metric
MTU to be used by OSPF for this logical interface
Min value: 512
Max value: 9198
SDK attribute: mtu
Name of the OSPF Interface. The name has to be unique within the OSPFArea.
Format: free
Min length: 1
Max length: 255
SDK attribute: name
Identifies the user that has created this object.
Format: free
SDK attribute: owner
Enable the passive property of the interface.
Default value: false
SDK attribute: passiveEnabled
Determines which routers are selected as the designated router and backup designated router of the area.
Default value: 1
Max value: 255
SDK attribute: priority


Camila Cabello to perform in Birmingham
by Kirsten RawlinsPop princess Camila Cabello will perform for fans in Birmingham next year.
The former Fifth Harmony singer-songwriter and actress announced the Midland date as part of her Romance tour.
The 22-year-old American-Cuban star is best known for songs such as Never Be The Same, Señorita, Easy, and Consequences.
She has been nominated for a Grammy Award three times.
Camila will perform at Resorts World Arena on June 1, 2020.
Tickets for the show go on sale on Friday, November 29 at 9am, priced from £40.75.
For more information, click here


.col-xs-6 .col-sm-3 Resize your viewport or check it out on your phone for an example..col-xs-6 .col-sm-3 Resize your viewport or check it out on your phone for an example..col-xs-6 .col-sm-3 Resize your viewport or check it out on your phone for an example.
.col-xs-6 .col-sm-3 Resize your viewport or check it out on your phone for an example..col-xs-6 .col-sm-3 Resize your viewport or check it out on your phone for an example..col-xs-6 .col-sm-3 Resize your viewport or check it out on your phone for an example.