Alberta father charged with second-degree murder in death of 1-year-old son
by CTV News Edmonton, StaffEDMONTON -- RCMP have laid charges against a man after the death of his baby in Fort Saskatchewan on Saturday.
Emergency crews were called to a home in Fort Saskatchewan around 6:43 p.m. on Saturday for reports of a baby in medical distress. A one-year-old boy was taken to hospital, where he died.
Police say there was a second child at the scene, who suffered non-life threatening injuries.
The baby has been identified on a GoFundMe page as one-year-old Ares.
Damien Christopher Starrett, 30, of Fort Saskatchewan has been charged with second-degree murder in connection with the death of the baby, and assault against the second child.
Police confirmed that Starrett is the father of the two children. They also said he is known to police.
A court check by CTV News Edmonton shows Starrett has a lengthy criminal record consisting of criminal harassment, assault with a weapon or causing bodily harm, uttering threats and mischief.
"This is an extremely tragic situation for this family and the community at large,” said Inspector Michael McCauley, detachment commander for Fort Saskatchewan RCMP.
"It's concerning to everyone from the family to the first responders to the members of the public... This is a close-knit community. This is a very trying time for us."
Investigators do not expect any further charges to be laid.
Starrett is scheduled to appear in Fort Saskatchewan Provincial Court on Thursday.
The family is being offered multiple support resources, police said.
“Several RCMP units are involved in this investigation and the Zebra Child Protection Center has provided their expertise. In the interest of protecting the wellbeing of the family members, the RCMP are asking the media to respect the family’s privacy."


Here at Pocadetro pizza, we offer differrennt sizes depending on how much you are willing to spend. There are three categories when it comes to piza sizes: small, medium and large. The diferrence is determined by the diameter of the pizza. For instance, a small pizza has a diameter of 10 centimeters, a medium sized pizza has a diameter of 14 centimeters while a large pizza has a diameter of 20 centimeters; Note that the exact price of a given pizza depends on your choices as you fill the ordering form. The pice depends on:
We have three major categories when it comes to crust type. The indicated price is for a medium sized pizza plus crust cost:-
Here are the diferrent toppings we offer:- The price indicated is for a medium pizza plus the price of the toppings;


« CSS « CSS Reference « CSS Reference:Mozilla Extensions
This content covers features introduced in Firefox 3.
:-moz-tree-row(hover) will match an element if the mouse cursor is presently hovering over a tree row.
:-moz-tree-row(hover)
This selector is intended for use mainly by theme developers.


This Week in Rust
Hello and welcome to the fifth issue of This Week in Rust, a weekly overview of Rust and its community.
0.7
was released this week. Hello to the newcomers! I’ve also decided to put
breaking changes first. Feel free to skip the rest, it’s relatively
unimportant.
Newcomers
There’s already a lot of traffic from Rust newbies, so you get your own section! Welcome to Rust. I wrote The State of Rust 0.7 especially for newcomers, so you should read that. Jump on IRC if you have any questions or need help. We’re a quite friendly bunch, and we usually don’t bite.
What’s cooking on master?
Issue churn this week was +12. 35 PRs were merged, total PR churn was -8. There continues to be a lot more cleanup than breaking changes, which is encouraging! As I understand it, graydon wants to focus this release cycle on cleanup, rather than language features. Hopefully the compiler can get into a much better state.
Breaking changes
- dbaupp continues to
slaughter the free functions in
std::vec
where methods can replace them. - He also added a lint for lowercase statics, which is enabled by default because of an astoundingly poor error message.
- Seldaek moved a bunch of iter
stuff to
extra
.
Notable compiler additions, bugfixes, and cleanup
- doener removed an extra layer of indirection that method calls incurred.
- Blei fixed a codegen problem
with structs containing
f32
when used with FFI. - I propagated the great renaming throughout the rest of the codebase (besides compiletest, apparently).
- acrichto rewrote some str code to avoid allocations.
- strcat is removing headers from exchange allocs (see also #7605 and #7521). They are entirely unused, they just need to be removed and the fallout fixed throughout the compiler.
- yjh0502 fixed a bug that
allowed duplicate struct fields (like
struct Foo {a: uint, a: uint}
) - acrichto turned on LLVM threading.
- Luqman changed configure to require either wget or curl.
- Dretch improved the error message for implementing unknown traits to mention the trait name.
- sankha93 improved the error
message for trying to capture
environment in a plain
fn
. - bblum improved the error mssage
for using a moved value, it now gives better suggestions than just
copy
. - sanxiyn fixed a bug where eligible newtype structs weren’t marked as an immediate value (and thus not passed in registers when they could have been).
- Luqman paved the way for 64-bit windows support.
- jensnockert added byte swapping intrinsics that specialize per-platform, avoiding unnecessary operations.
- jld removed an unused function
- sully fixed more default method bugs.
Notable library additions, bugfixes, and cleanup
- sfackler fixed up some documentation related to the drop/finalize renaming.
- acrichto fixed a correctness
bug in TreeMap’s
Ord
implementation. - sfackler much improved and genericized the base64 handling.
- graydon did a bunch of cleanup
in
extra::stats
. - Seldaek fixed a patological case with
str::each_split_within
.
Meetings
The Tuesday meeting
featured more discussion about @
and @mut
, that was honestly over my head
(as most of the type system stuff is). If someone wants to write some more
here, feel free to email me<EMAIL_ADDRESS>a paragraph or two. You
will get attribution, of course.


jquery-confirm
v
-
docs
view on Github
Easy to use and highly flexible!
A jQuery plugin that provides great set of features like,
Auto-close, Ajax-loading, Themes, Animations and more.
This plugin is actively developed, I would love you have your suggestions.
angular-confirm is here
Use angular scope within your confirm modal, with all the features of
jquery-confirm
These features can practically be used like so.
Elegant Alerts.
Stacked Confirmations
Success, error, warning
Need input?
Its also a Dialog.
Not so important modal
Loading from remote places
Some actions maybe critical
Responds to keystrokes
Automatically centered
Loading images
Clean animations
Drag me around
jquery-confirm comes loaded with themes for all common use cases.
Download
Download the Latest version and use files in the /dist/
folder.
via CDN:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.2.3/jquery-confirm.min.css">

via Bower:
Simply copy these links
$ bower install craftpip/jquery-confirm
via Npm:
$ npm install jquery-confirm
Dependencies:
useBootstrap:
false
$.alert
adds one button (okay) if no buttons are specified, this lets the user to close the modal.
$.alert({
title: 'Alert!',
content: 'Simple alert!',
});
$.confirm
if no buttons are specified, two buttons (Okay & cancel) will be added.
$.confirm({
title: 'Confirm!',
content: 'Simple confirm!',
buttons: {
confirm: function () {
$.alert('Confirmed!');
},
cancel: function () {
$.alert('Canceled!');
},
somethingElse: {
text: 'Something else',
btnClass: 'btn-blue',
keys: ['enter', 'shift'],
action: function(){
$.alert('Something else?');
}
}
}
});
Simply add form to the content and bind the events you want.
This form can also be loaded via ajax.
$.confirm({
title: 'Prompt!',
content: '' +
'<form action="" class="formName">' +
'
' +
'Enter something here' +
'<input type="text" placeholder="Your name" class="name form-control" required />' +
'
' +
'</form>',
buttons: {
formSubmit: {
text: 'Submit',
btnClass: 'btn-blue',
action: function () {
var name = this.$content.find('.name').val();
if(!name){
$.alert('provide a valid name');
return false;
}
$.alert('Your name is ' + name);
}
},
cancel: function () {
//close
},
},
onContentReady: function () {
// bind to events
var jc = this;
this.$content.find('form').on('submit', function (e) {
// if the user submits the form by pressing enter in the field.
e.preventDefault();
jc.$$formSubmit.trigger('click'); // reference the button and click it
});
}
});
$.dialog
removes buttons and explicitly shows the closeIcon (×)
$.dialog({
title: 'Text content!',
content: 'Simple modal!',
});
$.fn.confirm
This can be used to bind to a element directly
If no buttons are defined, the default buttons (okay and cancel) will be added, and
default action for okay will be to redirect on the given href.
use
this.$target
to get the clicked element.
Goto twitter
Javascript
$('a.twitter').confirm({
content: "...",
});
$('a.twitter').confirm({
buttons: {
hey: function(){
location.href = this.$target.attr('href');
}
}
});
The shorthand thingy takes in two string arguments, first one is the content of the dialog and second the title of the dialog. The second argument is optional.
$.alert('Content here', 'Title here'); try me
$.confirm('A message', 'Title is optional'); try me
$.dialog('Just to let you know'); try me
If you want to create a instance of jconfirm and save it for later use.
var a = $.confirm({
lazyOpen: true,
});
a.open();
a.close();
a.toggle(); // toggle open close.
NOTE
:
The $.confirm()
, $.dialog()
& $.alert()
methods are alias
of jconfirm()
.
All three methods indirectly call the jconfirm base function altering the
provided options.
ADVANCED:
this.$body
is the body div for jquery-confirm. You can find and alter any element at
run time.
Dialog types helps give the user a hint as to what the dialog is about
$.confirm({
title: 'Encountered an error!',
content: 'Something went downhill, this may be serious',
type: 'red',
typeAnimated: true,
buttons: {
tryAgain: {
text: 'Try again',
btnClass: 'btn-red',
action: function(){
}
},
close: function () {
}
}
});
Give meaning to your dialog with custom icons.
Read about Font Awesome
here
.
$.confirm({
icon: 'glyphicon glyphicon-heart',
title: 'glyphicon'
});
$.confirm({
icon: 'fa fa-warning',
title: 'font-awesome'
});
$.confirm({
icon: 'fa fa-spinner fa-spin',
title: 'Working!',
content: 'Sit back, we are processing your request!'
});
jQuery confirm uses ×
html entity for this close symbol, however you can
use Any icon of your choice (fa, glyphicon, zmdi)
closeIcon
is set to null
.
That means, if buttons are not defined the closeIcon will be shown, else will not be shown.
closeIcon
set it to a truthy value and vise versa.
Turn on closeIcon explicitly
$.confirm({
closeIcon: true
});
Using other libraries for icons
$.confirm({
closeIcon: true,
closeIconClass: 'fa fa-close'
});
Control what happens when close icon is clicked.
closeIcon can take in function to handle the button click or you can return a button name.
$.confirm({
closeIcon: function(){
return false; // to prevent close the modal.
// or
return 'aRandomButton'; // set a button handler, 'aRandomButton' prevents close.
},
// or
closeIcon: 'aRandomButton', // set a button handler
buttons: {
aRandomButton: function(){
$.alert('A random button is called, and i prevent closing the modal');
return false; // you shall not pass
},
close: function(){
}
}
});
Jquery-confirm uses bootstrap's grid system for its layout by default. You can simply provide column classes to adjust the modal's width.
You can also set responsive layouts. Bootstrap grid docs
instead of typing the whole thing, provide keywords like
xlarge
/xl
equivalent to col-md-12
large
/l
equivalent to col-md-8 col-md-offset-2
medium
/m
equivalent to col-md-6 col-md-offset-3
small
/s
equivalent to col-md-4 col-md-offset-4
xsmall
/xs
equivalent to col-md-2 col-md-offset-5
$.confirm({
columnClass: 'small'
});
$.confirm({
columnClass: 'col-md-4'
});
$.confirm({
columnClass: 'col-md-4 col-md-offset-8 col-xs-4 col-xs-offset-8'
});
$.confirm({
columnClass: 'col-md-4 col-md-offset-8 col-xs-4 col-xs-offset-8',
containerFluid: true, // this will add 'container-fluid' instead of 'container'
});
Many have a different taste, who wont be using bootstrap in their projects.
You can simply provide the width of the modal, in px or any metric you want.
useBootstrap
must be set to false
to use this feature $.confirm({
boxWidth: '30%',
useBootstrap: false,
});
$.confirm({
boxWidth: '500px',
useBootstrap: false,
});
Namespacing is basically isolating the bootstrap classes names, like turning '.row' to
'.custom-row'
If you're using a namespaced bootstrap library, this option is for you.
it is ideal to set this in jconfirm.defaults
$.confirm({
bootstrapClasses: {
container: 'container',
containerFluid: 'container-fluid',
row: 'row',
},
});
Make the dialog draggable. simple.
$.confirm({
title: 'Hello there',
content: 'click and hold on the title to drag',
draggable: true,
});
The animations section is moved to the animations.html page.
This page has docs for animations for modal open/close and backgroundDismiss
It also describes how to create custom animations.
The themes section is moved to the themes.html page
This page has docs for themes & how to create custom themes
With jconfirm you have the power to load content directly when needed via ajax, no extra code.
Two methods are available to load content via Ajax:
content: "URL:http://example.com/getData?id=1"
content: function(){ return $.get(...); }
Using the url prefix is the quick way, however has some limitations like you cannot modify the ajax
call's method, dataType, etc.
To use, prepend your URL with "URL:" ends up like "URL:http://example.com/file.extension".
NOTE: the returned data is set as content automatically before contentLoaded callback is called.
view text.txt$.confirm({
title: 'Title',
content: 'url:text.txt',
onContentReady: function () {
var self = this;
this.setContentPrepend('
Prepended text
');
setTimeout(function () {
self.setContentAppend('
Appended text after 2 seconds
');
}, 2000);
},
columnClass: 'medium',
});
This option provides full control over the ajax options and what data is to be inserted. The content takes a function that returns a jQuery promise ($.ajax, $.get, $.post, etc.). In this example a json object is requested, and a part of it is set as content.
NOTE: the returned data is NOT set as content automatically, you must set the content yourself.
view bower.json$.confirm({
content: function () {
var self = this;
return $.ajax({
url: 'bower.json',
dataType: 'json',
method: 'get'
}).done(function (response) {
self.setContent('Description: ' + response.description);
self.setContentAppend('
Version: ' + response.version);
self.setTitle(response.name);
}).fail(function(){
self.setContent('Something went wrong.');
});
}
});
contentLoaded
When the ajax call is complete the contentLoaded
function is called with arguments
Data, Status & Xhr object.
contentLoaded
is called before the content is put in DOM
If you want to do stuff after the content has put in DOM, use onContentReady
$.confirm({
content: 'url:text.txt',
contentLoaded: function(data, status, xhr){
// data is already set in content
this.setContentAppend('
Status: ' + status);
}
});
Using the url: prefix method
$.confirm({
content: function(){
var self = this;
self.setContent('Checking callback flow');
return $.ajax({
url: 'bower.json',
dataType: 'json',
method: 'get'
}).done(function (response) {
self.setContentAppend('
Done!');
}).fail(function(){
self.setContentAppend('
Fail!');
}).always(function(){
self.setContentAppend('
Always!');
});
},
contentLoaded: function(data, status, xhr){
self.setContentAppend('
Content loaded!');
},
onContentReady: function(){
this.setContentAppend('
Content ready!');
}
});
Using the Ajax promise method
You can set your content in any of the callbacks. callback execution flow:
Do a action if the user does not respond within the specified time.
This comes in handly when the user is about to do something critical.
The autoClose
option takes in a string, like 'confirm|4000'
where confirm
is the action to trigger after 4000 milliseconds.
Practical examples of autoClose
$.confirm({
title: 'Delete user?',
content: 'This dialog will automatically trigger \'cancel\' in 6 seconds if you don\'t respond.',
autoClose: 'cancelAction|8000',
buttons: {
deleteUser: {
text: 'delete user',
action: function () {
$.alert('Deleted the user!');
}
},
cancelAction: function () {
$.alert('action is canceled');
}
}
});
$.confirm({
title: 'Logout?',
content: 'Your time is out, you will be automatically logged out in 10 seconds.',
autoClose: 'logoutUser|10000',
buttons: {
logoutUser: {
text: 'logout myself',
action: function () {
$.alert('The user was logged out');
}
},
cancel: function () {
$.alert('canceled');
}
}
});
Control what happens if the user clicks outside the modal.
$.confirm({
backgroundDismiss: true, // this will just close the modal
});
$.confirm({
backgroundDismiss: function(){
return false; // modal wont close.
},
});
$.confirm({
backgroundDismiss: function(){
return 'buttonName'; // the button will handle it
},
});
$.confirm({
backgroundDismiss: 'buttonName',
content: 'in here the backgroundDismiss action is handled by buttonName' +
'
<input type="checkbox" id="enableCheckbox"> Enable backgroundDismiss
',
buttons: {
buttonName: function () {
var $checkbox = this.$content.find('#enableCheckbox');
return $checkbox.prop('checked');
},
close: function () {
}
}
});
Fancy animations to grab users attention. Click outside the modal to see the animation.
$.confirm({
backgroundDismiss: false,
backgroundDismissAnimation: 'shake',
});
$.confirm({
backgroundDismiss: false,
backgroundDismissAnimation: 'glow',
});
Control what happens when the escape key is pressed. This is enabled by default.
backgroundDismiss is called when escape key is pressed. if backgroundDismiss is false, it will shake
the modal.
$.confirm({
escapeKey: true,
backgroundDismiss: false,
});
$.confirm({
escapeKey: 'buttonName',
buttons: {
buttonName: function(){
$.alert('Button name was called');
},
close: function(){
}
}
});
If you need to show the confirm box in rtl then you should set the rtl option to true.
$.alert({
title: 'پیغام',
content: 'این یک متن به زبان شیرین فارسی است',
rtl: true,
closeIcon: true,
buttons: {
confirm: {
text: 'تایید',
btnClass: 'btn-blue',
action: function () {
$.alert('تایید شد.');
}
},
cancel: {
text: 'انصراف',
action: function () {
}
}
}
});
Get more control over the modal, mainly important for binding events for the modal elements.
contentLoaded callback is called when Ajax loading is used
$.confirm({
title: false,
content: 'url:callback.html',
onContentReady: function () {
// when content is fetched & rendered in DOM
alert('onContentReady');
var self = this;
this.buttons.ok.disable();
this.$content.find('.btn').click(function(){
self.$content.find('input').val('Chuck norris');
self.buttons.ok.enable();
});
},
contentLoaded: function(data, status, xhr){
// when content is fetched
alert('contentLoaded: ' + status);
},
onOpenBefore: function () {
// before the modal is displayed.
alert('onOpenBefore');
},
onOpen: function () {
// after the modal is displayed.
alert('onOpen');
},
onClose: function () {
// before the modal is hidden.
alert('onClose');
},
onDestroy: function () {
// when the modal is removed from DOM
alert('onDestroy');
},
onAction: function (btnName) {
// when a button is clicked, with the button name
alert('onAction: ' + btnName);
},
buttons: {
ok: function(){
}
}
});
You can setup global settings for your jconfirm.
jconfirm.defaults should be set after the plugin has loaded. of course.
jconfirm.defaults = {
title: 'Hello',
titleClass: '',
type: 'default',
draggable: true,
alignMiddle: true,
typeAnimated: true,
content: 'Are you sure to continue?',
buttons: {},
defaultButtons: {
ok: {
action: function () {
}
},
close: {
action: function () {
}
},
},
contentLoaded: function(data, status, xhr){
},
icon: '',
lazyOpen: false,
bgOpacity: null,
theme: 'light',
animation: 'zoom',
closeAnimation: 'scale',
animationSpeed: 400,
animationBounce: 1.2,
rtl: false,
container: 'body',
containerFluid: false,
backgroundDismiss: false,
backgroundDismissAnimation: 'shake',
autoClose: false,
closeIcon: null,
closeIconClass: false,
watchInterval: 100,
columnClass: 'col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1',
boxWidth: '50%',
scrollToPreviousElement: true,
scrollToPreviousElementAnimate: true,
useBootstrap: true,
offsetTop: 50,
offsetBottom: 50,
dragWindowGap: 15,
bootstrapClasses: {
container: 'container',
containerFluid: 'container-fluid',
row: 'row',
},
onContentReady: function () {},
onOpenBefore: function () {},
onOpen: function () {},
onClose: function () {},
onDestroy: function () {},
onAction: function () {}
};
Options, their defaults, possibilities and explanations.
| Name | Type | Default | Description |
|---|---|---|---|
| title | String, Function |
'Hello'
|
Title of the dialog. Also accepts a function that returns a string. |
| titleClass | String |
''
|
Class that will be applied to the title. |
| type | String |
'default'
|
Colors the modal to give the user a hint of success/failure/warning, available options are: 'blue, green, red, orange, purple & dark' |
| typeAnimated | Boolean |
true
|
Adds a little animation to the colors. |
| draggable | Boolean |
false
|
Makes the dialog draggable,
the drag point is the title of the model, if the title is not defined the model
won't be draggable.
alignMiddle is set to false, when using draggable. |
| alignMiddle | Boolean |
true
|
The model will be position in center of the screen. When the content in the model changes, the model is reposition itself. |
| content | String, Function | 'Are you sure to continue?' |
Content for the dialog. Accepts functions that return string or ajax promise. |
| contentLoaded | Function | function(data,status,xhr){} |
In use only when content is loaded via Ajax. is called on always callback of $.ajax |
| buttons | Object | {} |
Multiple definition of buttons
please see button definition for button properties |
| icon | String | '' |
Icon class prepended before the title. ex: 'fa fa-icon' |
| lazyOpen | Boolean | false |
Does not open the modal instantly. requires to call the open() function to open the modal |
| bgOpacity | Float | null |
if null, the theme's default bg opacity is applied. |
| theme | String | 'light' |
Color theme for the dialog. possible options are 'light', 'dark', 'material' & 'bootstrap' |
| animation | String | 'zoom' |
The Open animation for the dialog. possible options are right, left, bottom, top, rotate, none, opacity, scale, zoom, scaleY, scaleX, rotateY, rotateYR (reverse), rotateX, rotateXR (reverse) The 'blur' animation was removed in v1.1.2 |
| closeAnimation | String | 'scale' |
The close animation for the dialog. Same options as animation. |
| animationSpeed | Number | 500 |
Animation duration in milliseconds. |
| animationBounce | Float | 1.2 |
Adds a Bounce open animation, 1 = No bounce |
| escapeKey | Boolean, String | false |
if false, escapeKey wont work, if true, will work, but no callbacks, if string, will be assigned to button. |
| rtl | Boolean | false |
Use the Right to left text layout. |
| container | String | 'body' |
Specify where the generated HTML content for jconfirm should append. By default it appends in the document's . |
| containerFluid | Boolean | false |
If true, will use the container-fluid layout, to use the full browser width. |
| backgroundDismiss | Boolean, String, Function | false |
If false, user wont be able to exit by clicking out. If true, user will be able to click out, no callback. If string, will be assigned to button. If function, will be used as callback. |
| backgroundDismissAnimation | String | 'shake' |
Animation to perform to grab the user's attention when user clicks out of the box. |
| autoClose | String | false |
Auto-close the dialog within a specified time, if the user doesn't respond. possible option 'buttonName|400'
the string is divided in two halves with pipe |
| closeIcon | Boolean | null |
By default closeIcon is visible if both buttons are false. (dialog mode). closeIcon can be shown by setting this value to true. |
| closeIconClass | String | false |
By default jQuery confirm uses × html entity for this close symbol. You can
provide icon class here to change it. |
| watchInterval | Number | 100 |
Watch the modal for changes and is centered on screen. Added in v 2.5.0 |
| columnClass | String | 'col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-10
col-xs-offset-1' |
Provides a better way to set Custom width and is responsive. You can also set custom widths for different display sizes using the Bootstraps grid. |
| useBootstrap | Boolean | true |
if true, bootstrap classes will be set on the modal. 'columnClass' wil be set on the box. if false, bootstrap classes will not be set, instead 'boxWidth' will be set on the box. |
| boxWidth | String | '50%' |
This options sets the width of the box, when you're not planning to use bootstrap in
your project
Will only work if 'useBootstrap' is set to false, |
| scrollToPreviousElement | Boolean | true |
Scroll back to the element that was focused before jconfirm model opened. |
| scrollToPreviousElementAnimate | Boolean | true |
Animates the scroll to previous element. |
| offsetTop | Number | 50 |
The model will maintain at least 50px from the window's top. |
| offsetBottom | Number | 50 |
The model will maintain at least 50px from the window's bottom. |
| dragWindowGap | Number | 15 |
The model will maintain at least 15px from the window's top, left, and right side. |
| bootstrapClasses | object | {
container: 'container',
containerFluid: 'container-fluid',
row: 'row',
} |
These are the default classes that are set when bootstrap is used, this option is available to folks who use namespaced bootstrap classes. |
| onContentReady | Function | function(){} |
is called when the content is put in DOM and the modal is open. (When the modal is completed ready.) |
| onOpenBefore | Function | function(){} |
is called when the modal is going to be opened. |
| onOpen | Function | function(){} |
is called when the modal has finished opening. |
| onClose | Function | function(){} |
is called when the modal is going to be closed. |
| onDestroy | Function | function(){} |
is called after the modal element is removed from the DOM. |
| onAction | Function | function(buttonName){} |
is called when any of the button is clicked. buttonName is provided as argument. |
These are a few stuff, that will let you interact and make changes in your modal on run time.
The function $.confirm()
returns an object on execution.
var jc = $.confirm({
title: 'awesome',
onContentReady: function(){
// this === jc
}
});
jc.setTitle(string)
function
Sets the title and overwrites jc.title
jc.setContent(string)
function
Sets the content and overwrites jc.content
jc.setContentPrepend(string)
function
Prepends content to content.
jc.setContentAppend(string)
function
Appends content to content
jc.setType(string)
function
Sets a new type class
jc.<buttonName>.setText(text)
function
Set text for a button
jc.<buttonName>.addClass(text)
function
Adds a class to the button
jc.<buttonName>.removeClass(text)
function
Removes class from the button
jc.buttons.<buttonName>.disable()
function
Disabled the button with attribute disabled='disabled'
jc.buttons.<buttonName>.enable()
function
Enables a previously disabled button
jc.buttons.<buttonName>.hide()
function
Hides the button using CSS 'display: none'
jc.buttons.<buttonName>.show()
function
Shows a previously hidden button
jc.setIcon(iconClass)
function
Sets the icon and overwrites jc.icon
jc.close()
function
The close method closes/destroys the dialog.
jc.open()
function
Opens the modal again, if it is closed. (Added in v3.0.0)
jc.isClosed()
function
returns true if the modal is closed, else false.
jc.isOpen()
function
returns true if the modal is open, else false.
jc.setDialogCenter()
function
Centers the dialog on screen. This is done for you by the watch timer when the content changes.
jc.$body
jquery DOM element
Alias: jc.$b, is the modal body that includes buttons content title and stuff.
jc.$content
jquery DOM element
You can access your Dialogs contents via this object.
jc.$title
jquery DOM element
To access the title DOM of the modal. same use as with $content
jc.$icon
jquery DOM element
To access the icon DOM of the modal. same use as with $content
jc.$target
jquery DOM element
To access the clicked element, only available when using $(element).confirm() and using a confirm callback.


Face
LIVE
Created by Yu Hoshino and Callum Carmicheal
Welcome
FaceLive is a open-source real social network that contains real communities and the truest form of a social network without sell-out adverts everwhere.
Your privacy is our concern, please read our TOS about the
Data Protection Act 2015
.
Enter your Username
Login
Attempts
refresh
Chat


Portfolio details
Project information
- Category: Web design
- Client: Self
- Project date: 15 January, 2020
- Project URL: Web 1 : https://safalb1.github.io/st/
- Web 2 : https://safalb1.gituhub.io/css-my-site
- Web 3 : https://safalb1.gituhub.io/s-td/
When I completed Full stack web development course.
These websites was build as a project assignment from London App Brewery. I used HTML, CSS & Bootstrap to have some special effects on the Webpage.


Goodluck Jonathan’s Kinsmen Celebrate PDP’s Defeat In Bayelsa (VIDEO)
by George OgboluFormer President Goodluck Jonathan’s kinsmen in Kolo, Ogbia LGA, of Bayelsa State, on Saturday, trooped out to celebrate the defeat of the Peoples Democratic Party (PDP) in Ward 9.
Members of Kolo community hit the streets immediately the results of the 13 units in Ward 9 were announced by officials of the Independent National Electoral Commission (INEC) officials and the All Progressives Congress (APC) was declared the winner of the ward.
Jonathan’s kinsmen said they were given as much as N10,000 by agents of the PDP but rejected the money because they were united and determined to vote in APC.
“We are happy because we won the PDP in all the units,” one of them, who failed to mention his name out of excitement said.
Also in Eppie-Atissa in Yenagoa, residents took over the road celebrating over the defeat of the PDP in the area.


Created on 12/03/2012
@author: victor
Bases: object
A cluster object is defined a group of elements which have one or more characteristics in common and one element which is the most representative element of the cluster.
Calculates the medoid (element with minimal distance to all other objects) of the elements of the cluster which are in elements_into_account.
Calculates the medoid for all_elements of the cluster and updates the prototype.
Creates a cluster from a cluster dictionary describing it (as reverse operation of ‘to_dic’).
@param cluster_dic: The cluster in dictionary form (output of ‘to_dic’)
Returns a random sample of the elements.
@param n: Number of random elements to get.
@param rand_seed: Seed for the random package. Used for testing (repeteability)
@return: A random sample of the cluster elements.
Creates a cluster from a tupple formed by a first element being the prototype and a second element being the list of all elements.
Generates the clusters that describe a group list. A group list for a N elements clustering is defined as the list of N elements with the number of cluster to which each cluster belongs. Example: for 4 elements [1,2,3,4] a possible group list would be: [2,1,2,1] which means that element 0 and 2 belong to cluster 2 and the others to cluster 2. As it’s not possible to define a centroid or medioid. ATENTION: the first element of the cluster will be defined as the centroid/medoid.
Created on 20/03/2012
@author: victor
Bases: object
Class representing the result of a clustering algorithm (a set of clusters).
Classifies a collection of clusterings using the classes in ‘tags’, counting the occurrences for each class. A clustering belongs to a class if in its ‘details’ string the class-tag appears.
@param tags: An array with the class-tags used to classify. @param clusterings: The list of clusterings to classify.
@return: A counter of the class occurrences.
Returns the index where the cluster ‘cluster’ is in the list ‘self.clusters’ or -1 if it’s not.
Returns True if the cluster ‘cluster’ is currently in the clusters list.
Deletes one cluster of the clusters list. The cluster has to be inside the list.
Deletes all the clusters with a number of elements under cluster_size.
Creates a clustering from a clustering dictionary describing it (as reverse operation of ‘to_dic’).
Returns a list containing the medoids of all clusters.
@param distance_matrix: Is the distance matrix used to calculate the clustering.
@return: The list of medoids.
Returns the percentage of elements of this cluster over the number of all the elements of the dataset used to get the clusters (total_elements).
Gets the percentage of population over total population of the first n bigger modules.
Returns a list with the medoids and a random sample of cluster elements so that the number of elements of each cluster in the list is proportional to the size of each cluster.
@param number_of_structures: Is the final number of elements we want in our list.
@param distance_matrix: Is the distance matrix used to calculate the clustering.
@return: The list of representative elements.
Loads all clusterings residing in a directory.
@param directory: The directory path.
@return: The list of loaded clusterings (with their filenames) inside this directory.
Loads a clustering which was stored into disk.
@param path_with_file_name: complete path with name of the file (the same used for saving).
@return: The clustering stored in this file.
Returns the number of clusters needed to get the percentage ‘percent’ over total_elements.
Saves itself as a binary file.
@param filename: complete path with name of the file


|
PCD8544_Simple
Arduino Library for Nokia 5110 Display Modules
|
Inherits Print.
Public Member Functions | |
| void | begin (uint8_t resetPin=9, uint8_t dataCommandPin=8, uint8_t chipEnablePin=255) |
| Initialize. More... | |
| void | setContrast (uint8_t vOP=68, uint8_t bias=2, uint8_t tempCoef=1) |
| Set the Contrast. More... | |
| void | invertDisplay (uint8_t inverse=true) |
| Set the display to inverted (or not inverted) mode. More... | |
| void | update () |
| Update (refresh, render) the display. More... | |
| void | update (uint8_t y0, uint8_t y1) |
| Update (refresh, render) a part of the display. More... | |
| virtual size_t | write (uint8_t data) |
| print(), println() support. More... | |
| virtual size_t | write (const uint8_t *buffer, size_t size) |
| print(), println() support. More... | |
| void | invertText (uint8_t inversionStatus=true) |
| Invert (or stop inverting) future strings passd to print/println/drawText. More... | |
| void | setPixel (uint8_t x, uint8_t y, uint8_t value) |
| Set a pixel of the display. More... | |
| void | drawLine (uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2) |
| Draw a line on the display. More... | |
| void | drawRectangle (uint8_t x, uint8_t y, uint8_t width, uint8_t height) |
| Draw a rectangle (outline) on the display. More... | |
| void | drawFilledRectangle (uint8_t x, uint8_t y, uint8_t width, uint8_t height) |
| Draw a filled rectangle on the display. More... | |
| void | drawCircle (uint8_t x0, uint8_t y0, uint8_t radius) |
| Draw a circle (outline) on the display. More... | |
| void | drawFilledCircle (uint8_t x0, uint8_t y0, uint8_t radius) |
| Draw a filled circle on the display. More... | |
| void | drawText (const char *text, uint8_t x, uint8_t y) |
| Draw text at a pixel location on the display. More... | |
| void | drawBitmap (const uint8_t *bitmap, uint8_t x, uint8_t y, uint8_t widthPX, uint8_t heightPX, uint8_t fromProgmem=true) |
| Draw bitmap at a pixel location on the display. More... | |
| void | clear (bool render=true) |
| Clear the display. More... | |
| void | reset () |
| Reset the display. More... | |
| uint8_t | setCursor (uint8_t x, uint8_t y) |
| Set the "cursor" to a position. More... | |
| void PCD8544_Simple::begin | ( | uint8_t | resetPin = 9 , |
| uint8_t | dataCommandPin = 8 , |
||
| uint8_t | chipEnablePin = 255 |
||
| ) |
Initialize.
| Arduino | digital pin connected to 5110 RST |
| Arduino | digital pin connected to 5110 DC |
| Arduino | digital pin connected to 5110 CE If CE toggling is not required, connect CE to ground and chipEnablePin as 255 to disable it. |
| void PCD8544_Simple::clear | ( | bool | render = true | ) |
Clear the display.
| True | to clear immediately (update), false if you just want to clear the buffer. |
| void PCD8544_Simple::drawBitmap | ( | const uint8_t * | bitmap, |
| uint8_t | x, | ||
| uint8_t | y, | ||
| uint8_t | widthPX, | ||
| uint8_t | heightPX, | ||
| uint8_t | fromProgmem = true |
||
| ) |
Draw bitmap at a pixel location on the display.
Top left pixel is 0, 0. You must call update() after drawing if you want to see it (or of course, draw a bunch of stuff then call update())
To generate a suitable bitmap, you can use my tool here: http://sparks.gogo.co.nz/pcd8554-bmp.html
| The | bitmap data to draw |
| X | coordinate of top left point of bitmap |
| Y | coordinate of top left point of bitmap |
| Width | of the bitmap |
| Height | of the bitmap |
| True | if the bitmap is in PROGMEM, False if it is already in SRAM |
| void PCD8544_Simple::drawCircle | ( | uint8_t | x0, |
| uint8_t | y0, | ||
| uint8_t | radius | ||
| ) |
Draw a circle (outline) on the display.
Top left pixel is 0, 0. You must call update() after drawing if you want to see it (or of course, draw a bunch of stuff then call update())
| X | coordinate of center point of circle - 0 is left |
| Y | coordinate of center point of circle - 0 is top |
| Radius | of circle |
| void PCD8544_Simple::drawFilledCircle | ( | uint8_t | x0, |
| uint8_t | y0, | ||
| uint8_t | radius | ||
| ) |
Draw a filled circle on the display.
Top left pixel is 0, 0. You must call update() after drawing if you want to see it (or of course, draw a bunch of stuff then call update())
| X | coordinate of center point of circle - 0 is left |
| Y | coordinate of center point of circle - 0 is top |
| Radius | of circle |
| void PCD8544_Simple::drawFilledRectangle | ( | uint8_t | x, |
| uint8_t | y, | ||
| uint8_t | width, | ||
| uint8_t | height | ||
| ) |
Draw a filled rectangle on the display.
Top left pixel is 0, 0. You must call update() after drawing if you want to see it (or of course, draw a bunch of stuff then call update())
| X | coordinate of top left corner point - 0 is left |
| Y | coordinate of top left corner point - 0 is top |
| Width | of rectangle |
| Height | of rectangle |
| void PCD8544_Simple::drawLine | ( | uint8_t | x1, |
| uint8_t | y1, | ||
| uint8_t | x2, | ||
| uint8_t | y2 | ||
| ) |
Draw a line on the display.
Top left pixel is 0, 0. You must call update() after drawing if you want to see it (or of course, draw a bunch of stuff then call update())
| X | coordinate of first point - 0 is left |
| Y | coordinate of first point - 0 is top |
| X | coordinate of second point - 0 is left |
| Y | coordinate of second point - 0 is top |
| void PCD8544_Simple::drawRectangle | ( | uint8_t | x, |
| uint8_t | y, | ||
| uint8_t | width, | ||
| uint8_t | height | ||
| ) |
Draw a rectangle (outline) on the display.
Top left pixel is 0, 0. You must call update() after drawing if you want to see it (or of course, draw a bunch of stuff then call update())
| X | coordinate of top left corner point - 0 is left |
| Y | coordinate of top left corner point - 0 is top |
| Width | of rectangle |
| Height | of rectangle |
| void PCD8544_Simple::drawText | ( | const char * | text, |
| uint8_t | x, | ||
| uint8_t | y | ||
| ) |
Draw text at a pixel location on the display.
Top left pixel is 0, 0. You must call update() after drawing if you want to see it (or of course, draw a bunch of stuff then call update())
print() etc only work on "character locations" (setCursor) while this method can put the text at any pixel location.
| The | string to draw. |
| X | coordinate of top left point of first character |
| Y | coordinate of top left point of first character |
| void PCD8544_Simple::invertDisplay | ( | uint8_t | inverse = true | ) |
Set the display to inverted (or not inverted) mode.
| Pass | true to invert the entire display, false to go back to normal mode. |
| void PCD8544_Simple::invertText | ( | uint8_t | inversionStatus = true | ) |
Invert (or stop inverting) future strings passd to print/println/drawText.
Example, for highlighting a menu option you might invert the selected option (white text on black background)
| True | to invert future strings, False to stop inverting future strings. |
| void PCD8544_Simple::reset | ( | ) |
Reset the display.
NB: Contrast goes back to default setting, as does display inversion.
| void PCD8544_Simple::setContrast | ( | uint8_t | vOP = 68 , |
| uint8_t | bias = 2 , |
||
| uint8_t | tempCoef = 1 |
||
| ) |
Set the Contrast.
In general, just change the vOP value, leave bias and tempCoef as defaults. (experimentally determined defaults).
Note that setting the contrast will reset the display to non-inverted mode (seems to help keep the display working..)
| The | contrast to use, range of 0..127, values around 45 seem to be best (default). |
| The | bias, range of 0..7, 2 seems to work fine |
| The | temperature co-efficient, range 0..3, 0 seems to work fine. |
| uint8_t PCD8544_Simple::setCursor | ( | uint8_t | x, |
| uint8_t | y | ||
| ) |
Set the "cursor" to a position.
The cursor is used for print/println operations, the display is divided into 6 rows (0..5) and 14 columns (0..13) in accordance with out 6x8 font (5x8 plus an extra blank column per character for spacing). This sets the cursor position for the next character printed.
| Column | 0..13 |
| Row | 0..5 |
| void PCD8544_Simple::setPixel | ( | uint8_t | x, |
| uint8_t | y, | ||
| uint8_t | value | ||
| ) |
| void PCD8544_Simple::update | ( | ) |
Update (refresh, render) the display.
When using the draw_____() methods, you must call update() to actually cause what it was you drew to display (calling .print() type methods does this automatically)
| void PCD8544_Simple::update | ( | uint8_t | y0, |
| uint8_t | y1 | ||
| ) |
Update (refresh, render) a part of the display.
As for update() but only re-renders part of the display between the two y pixel coordinates. Due to addressing being in 8 pixel vertical blocks, the portion of the display updated is expanded to at least 8 vertical pixels.
|
virtual |
|
virtual |


@(name : String, crewMembersSize : Integer, crewMembers : List[String], kitten : String) @import helper._
You, @name, reach China and load up on fidget spinners.
When you get back to England the Queen discovered that the fidget spinners were covered in lead paint.
She scolds you and throws you in the Tower of London to think about your negligence until you wither away into
a shell of the man you once were. The end.
Healthy crew members left: @crewMembersSize
List of remaining crew members:
@crewMembers


Resume
- Skills
- HTML
- CSS
- JavaScript
- Git
- Unix
- Education
- Gonzaga University
- Code Fellows
- Experience
- Hood Technology Corporation
- Gonzaga University Machine Shop
- West Coast Deck
- Physics Lab Teaching Assistant
My Top 10 Favorite Movies!
- Borat
- Land Before Time
- The Dark Night
- The 40 Year Old Virgin
- Scarface
- The Godfather
- The Godfather pt. 2
- The Departed
- Iron Man
- Gangs of New York


Welcome to the Intuit OAuth2 Sample App!
Before using this app, please make sure you do the following:
Update config.json with your Client ID and Client Secret (found on
developer.intuit.com
)
In
developer.intuit.com
, add an allowed Redirect URI to this sample app! (config.json - redirectUri value:
http://localhost:9090/oauth2redirect
)
Sign In With Intuit
Connect To QuickBooks
Get App Now
Get App Now


Plugin Information |
|---|
View DaticalDB4Jenkins on the plugin site for more information. |
This plugin adds Datical DB support to Jenkins and requires Datical DB to be installed.
Screenshot
Global Configuration:
Project Configuration
Advanced Project Configuration
Change Log
Version 1.0.38 (May 18, 2015)
- Added support for Convert SQL Groovy script.
Version 1.0.35 (March 30, 2015)
- Added support for Groovy scripts.
Version 1.0.23 (October 6, 2014)
- Added support for Check Rules.
Version 1.0.22 (June 26, 2014)
- Added support for Export SQL for Rollback. Previously, this was only available for Forecast and Deploy.
Version 1.0.21 (June 19, 2014)
- Added support for Export SQL and Export Rollback SQL
Version 1.0.20 (Apr 28, 2014)
- Added support for installing a License Key
Version 1.0.19 (Apr 21, 2014)
- Added support for newProject and newDBDef commands. Used for when you want to create a Datical DB project dynamically.
Version 1.0.18 (Feb 17, 2014)
- Added ability to set Project specific Datical DB Command and override Global setting. Useful for Master-Node installs.
Version 1.0.16 (Feb 14, 2014)
- Added support for Status Details action.
Version 1.0.15 (Feb 7, 2014)
- Added support for Rollback and Auto Rollback actions.
Version 1.0.14 (Nov 12, 2013)
- Replaced Radio Buttons with Select list.
- Added support for Diff and History actions.
Version 1.0.13 (Nov 8, 2013)
- Fixed diffChangelog issue on Linux.
Version 1.0.12 (Nov 2, 2013)
- Added support for new diffChanglog functionality.
Version 1.0.6 (Sep 24, 2013)
- JENKINS-19667 - Fixed path issue on non-Windows platforms.
Version 1.0.4 (Jun 17, 2013)
- Initial Release
Attachments:
DaticalDB4Jenkins-global_config.png (image/png)
DaticalDB4Jenkins-project_config.png (image/png)
Untitled.png (image/png)
Untitled.png (image/png)
DaticalDB4Jenkins.png (image/png)
Untitled.png (image/png)
DaticalDB4Jenkins Global Config.png (image/png)
DaticalDB4Jenkins Project Config.png (image/png)
Untitled.png (image/png)
Untitled.png (image/png)
1.35.png (image/png)
DaticalDB4Jenkins-1.png (image/png)
DaticalDB4Jenkins-2.png (image/png)
global settings1.png (image/png)
global settings.png (image/png)
one.png (image/png)
two.png (image/png)
three.png (image/png)
DaticalDB4Jenkins-project_config.png (image/png)
Untitled.png (image/png)
Untitled.png (image/png)
DaticalDB4Jenkins.png (image/png)
Untitled.png (image/png)
DaticalDB4Jenkins Global Config.png (image/png)
DaticalDB4Jenkins Project Config.png (image/png)
Untitled.png (image/png)
Untitled.png (image/png)
1.35.png (image/png)
DaticalDB4Jenkins-1.png (image/png)
DaticalDB4Jenkins-2.png (image/png)
global settings1.png (image/png)
global settings.png (image/png)
one.png (image/png)
two.png (image/png)
three.png (image/png)


{# ========================================================================== Reusable Text ========================================================================== Description: Reusable pieces of content, currently to be placed in either a full width text module, or the sidefoot. value.title: Title for internal display/search purposes. Never gets displayed on the webpage. value.sidefoot_heading: Heading text to be used if this snippet is only for use in sidebars and prefooters (the "sidefoot"). value.text: Rich text field that gets displayed on the page. ========================================================================== #}
We're the Consumer Financial Protection Bureau (CFPB), a U.S. government agency that makes sure banks, lenders, and other financial companies treat you fairly.


This Month Codathon Winners
|
Winner Of the Month
|
|||
| S.No | Name of the participant | Score | section |
| 1 | Name | 999 | A |
| 2 | Name | 998 | A |
| 3 | Name | 997 | A |
| 4 | Name | 996 | A |
| 5 | Name | 995 | A |
| 6 | Name | 994 | A |
| 7 | Name | 993 | A |
| 8 | Name | 992 | A |
| 9 | Name | 991 | A |
| 10 | Name | 990 | A |
Previous Month Winners
|
Winner of the Previous month
|
|||
| S.No | Name of the participant | Score | section |
| 1 | Name | 999 | A |
| 2 | Name | 998 | A |
| 3 | Name | 997 | A |
| 4 | Name | 996 | A |
| 5 | Name | 995 | A |
| 6 | Name | 994 | A |
| 7 | Name | 993 | A |
| 8 | Name | 992 | A |
| 9 | Name | 991 | A |
| 10 | Name | 990 | A |
Organizers For The codethan
| Dr.v.Sree Ram Murthy | K.Sai Krishna Surya Vamsi | B.Adarsh |
Code Anytime, an initiative augmented by GMRIT ACM and ACM-W in an effort to develop a coding culture within campus. An environment where everyone is provided with the opportunity to code, learn and grow.


| Project Settings |
|---|
| Project Name | ice40blinkingled_syn | Implementation Name | ice40blinkingled_Implmnt |
| Top Module | [auto] | Pipelining | 1 |
| Retiming | 0 | Resource Sharing | 1 |
| Fanout Guide | 10000 | Disable I/O Insertion | 0 |
| Clock Conversion | 1 | FSM Compiler | 1 |
| Run Status |
| Job Name |
Status |
|
|
|
CPU Time |
Real Time |
Memory |
Date/Time |
| (compiler) | Complete |
6 |
0 |
0 |
- |
0m:02s |
- |
18-Jul-16 9:40:37 AM |
| (premap) | Complete |
3 |
0 |
0 |
0m:00s |
0m:00s |
79MB |
18-Jul-16 9:40:44 AM |
| (fpga_mapper) | Complete |
12 |
0 |
0 |
0m:01s |
0m:01s |
80MB |
18-Jul-16 9:40:47 AM |
| Multi-srs Generator |
Complete | | | | 0m:01s | | | 18-Jul-16 9:40:40 AM |
| Area Summary |
|
| PADS | 5 |
FLOPS | 49 |
| RAMS
(v_ram) | 0 |
CARRYS | 46 |
| LUTS
(total_luts) | 70 |
| |
| Timing Summary |
|
| Clock Name | Req Freq | Est Freq | Slack |
| CLK | 100.0 MHz | 101.6 MHz | 0.158 |
| Optimizations Summary |
| Combined Clock Conversion | 1 / 0 |
| |
|


SAFETUSSIN PM- dextromethorphan and doxylamine succinate liquid
Kramer Laboratories
Disclaimer: Most OTC drugs are not reviewed and approved by FDA, however they may be marketed if they comply with applicable regulations and policies. FDA has not evaluated whether this product complies.
Dextromethorphan
Doxylamine Succinate
Antihistamine
Cough Suppressant
Keep out of reach of children. In case of
overdose, get medical help or contact a Poison
Control Center right away
Temporarily relieves cold symptoms:
•Cough
•Runny nose and sneezing
Do not exceed 4 doses per 24 hours.
adults and children
12 years and over
children 4 to 12 years
children under 4 years
4 teaspoons
every 6 hours
Ask a doctor
aspartame
benzoic acid
citric acid
glycerin
menthol
methylparaben
natural peppermint flavor
propylene glycol
propylparaben
purified water
Do not use •If you are now taking a
prescription monoamine oxidase inhibitor (MAOI)
(certain drugs for depression, psychiatric or
emotional conditions, or Parkinson's disease), or
for 2 weeks after stopping the MAOI drug. If you
do not know if your prescription drug contains an
MAOI, ask a doctor or pharmacist before taking
this product.•To make a child sleep


The strangest thing happened today An invisible mailman passed my way He handed me something that wasn't quite there And to receive invisible mail is really quite rare So I opened this nothing real real wide To find even less of nothing inside The penmanship was neat and clean So clean in face it couldn't be seen The scent was sweet as I recall So sweet in fact there was nothing at all So I'm writing you back with love you can bet And thanks for the letter I never did get Truly right now is a time i need you But the letter i expected It never came through Next time girl you should stop and think twice And pay close attention to this here advice If things can only change somehow, I can be out there where things are better And you could be in here expecting a Mother Fucking letter
By: Carlo Moscatiello


Employee Directory
Search for employees by entering their name. You may also click on "Name" to sort alphabetically.


[gecode-users] Help:How to compute Autocorrelation of a v-length sequence
George Rudolph
george.rudolph at citadel.edu
Thu Oct 18 19:41:51 CEST 2007
As stated in the comments below, I need help figuring out
how to express constraints on the autocorrelation of a v-length sequence.
I am sure there is an easier way to rotate a list,
compare two lists for positional matches, count the member of matches,
and constrain the number of matches to be a particular value,
and I need help finding it.
------------- begin code --------------
package citadel;
import static org.gecode.Gecode.*;
import static org.gecode.GecodeEnumConstants.*;
import org.gecode.*;
/**
* Script for computing 2-class association schemes, modified from the Queens
* example. The goal of this script is to generate (v-1)-length sequences with
* the following properties:
* 1. v is prime and v=4t+1, t >=0.
* 2. each sequence has n1 occurrences of lambda1 and n2 occurrences of lambda2.
* 3. the sequence is a palindrome: element 0 and element v-2 have the sane value, element 1 and
* element v-3 have the same value, element 2 and element 4-4 have the same
* value, etc.
* 4. The autocorrelation sequence generated by this sequence is flat. That is,
* if you prepend a 0 to the sequence, and then take the cross-correlation C of
* the extended sequence with rotated copies of itself for all shift values y=1...(v-1),
* then c[i] = 2t-1.
* Since 0 matched with non-zero value is a mismatch, it should be possible
* take the cross-correlation without prepending the 0.
*
* @author George Rudolph
* @version 1.0 Sep 20, 2007
*/
public class AssociationScheme extends Space {
/**
* v is the size or length of the sequence,
* must be prime.
*/
public int v;
/**
* v = 4t + 1, so t = (v-1)/4, t > 0
*/
public int t;
/**
* the number of 1st associates of any element x.
*/
public int n1;
/**
* The number of 2nd associates of any element x.
*/
public int n2;
/**
*
*/
public int lambda1;
public int lambda2;
public VarArray<IntVar> schemeCount;
/**
* @param opt
* Convenience object containing options
* @see citadel.Options#toString()
*/
public AssociationScheme(Options opt) {
super();
v = opt.size;
t = (v - 1) / 4;
n1 = (v - 1) / 2;
n2 = (v - 1) / 2;
lambda1 = 1;
lambda2 = 2;
schemeCount = new VarArray<IntVar>(this, v - 1, IntVar.class, 1, 2);
// in the difference vector, constrain it so that
// the value of position i is the same as the value at position v-i
// for a (v-1)-length array starting at (conceptual) index 1
// TODO: simplify the indexing in this constraint
for (int i = 1; i <= v - 1; i++) {
rel(this, schemeCount.get(i - 1), IRT_EQ, schemeCount
.get(v - 1 - i), opt.icl);
}
// "exactly n1 elements have the value lambda1 in schemeCount"
// "exactly n2 elements have the value lambda2 in schemeCount"
count(this, schemeCount, lambda1, IRT_EQ, n1, opt.icl);
count(this, schemeCount, lambda2, IRT_EQ, n2, opt.icl);
/********************** begin autocorrelation code ***************************/
/** what am I doing wrong below? **/
/* each element of the autocorrelation sequence for schemeCount
// must equal 2t-1 = ((v-1)/2) - 1
// autocorrelation is the cross-correlation of a sequence with a rotated copy
// of itself.
// An autocorrelation sequence is the sequence generated by taking the
// cross-correlation for each rotation--the ith position in the autocorrelation
// sequence is obtained by taking the cross-correlation of schemeCount with a
// copy of schemeCount rotated right i places (mod v).
// But I don't need a second copy of the sequence, I can just manipulate
// the indices. This is what I am trying to do below, but I am not getting
* the results I expect. Invalid solutions are being accepted.
*
* The algorithm is to match schemeCount against a shifted copy of itself using
* the offset y, count the matches as 1, and the mismatches as 0,
* stored in the sequence Intersect0Y, then sum up all
* the 1's in Intersect0Y, and finally, constrain that the sum must be 2t-1
* for *each* shift 1...v-1.
* It works for v=5, but is broken for v=13.
* I suspect it only works for v-5 because of the small space.
*
* If there is an easier way to write this constraint,
* I'm open to suggestions.
*
*<PHONE_NUMBER>12 is a valid solution for v=13.
*
* Note, really the sequence is<PHONE_NUMBER>212,
* so rotated 5 places it looks like<PHONE_NUMBER>111,
* but since 0 matched with anything is 10, in this case,
* I'm trying to avoid prepending the 0 to schemeCount,
* which doesn't include it above.
*
*/
for (int y = 1; y < v; y++) {
VarArray<BoolVar> intersectY0 = new VarArray<BoolVar>(this, v - 1,
BoolVar.class);
for (int x = 1; x < v; x++) {
if (x == y) {
continue;
}
int z = ((x - y + v) % v)-1;
eq(this, schemeCount.get(y-1), schemeCount.get(z), intersectY0
.get(x-1), opt.icl);
} // end for x
VarArray<IntVar> pijk = new VarArray<IntVar>(intersectY0);
// exactly 2t-1 elements have the value 1 in pijk
count(this, pijk, 1, IRT_EQ, 2 * t - 1, opt.icl);
} // end for y
/*********************** end autocorrelation code **************************/
branch(this, schemeCount, BVAR_SIZE_MIN, BVAL_MIN);
}
/**
* Copy constructor.
*
* @param share
* @param scheme
*/
public AssociationScheme(Boolean share, AssociationScheme scheme) {
super(share, scheme);
v = scheme.v;
t= (v-1)/4;
n1 = (v - 1) / 2;
n2 = (v - 1) / 2;
lambda1 = 1;
lambda2 = 2;
schemeCount = new VarArray<IntVar>(this, share, scheme.schemeCount);
}
/**
*
* @see org.gecode.Space#toString()
*/
public String toString() {
return schemeCount.toString();
}
/**
* Application startup
*
* @param args
*/
public static void main(String[] args) {
Options opt = new Options();
opt.size = 5;
opt.gui = true;
opt.parse(args);
opt.name = "" + opt.size + "-Schemes";
AssociationScheme schemes = new AssociationScheme(opt);
opt.doSearch(schemes);
}
}
--------------------- end code -------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ps.uni-sb.de/pipermail/users/attachments/20071018/c0c34fb9/attachment.htm>
More information about the gecode-users
mailing list


the question are listed questions and answers, all supposed to be commonly asked in some context.
KMITL Pay Servies is a safe, convenient online platform for KMITL Bank customers to perform banking transactions
or to pay the bills via the Internet. There is no extra charge for using this platform in case of PromptPay users
however , normal product fees and charges continue to apply, if any.
It's safe. You can now bank with confidence knowing that your transactions remain safe with us using our Online Banking platform.
KMITL Pay Servies maintains world class security standards on our Online Banking platform.
It's convenient. You can perform banking transactions from the comfort of your home or office, anywhere in the world, anytime, with our 24 by 7 service. No special software is required.
As long as you have a personal computer (PC) with the minimum configuration, you are ready to start.
For an overview of our services, please click here to our Function Overview.
Any KMITL Bank customer with a Savings Account can apply for KMITL Pay Servies.
There is 2 step to register for KMITL Pay Servies:
You need to know your Account ID & OTPPassword to register KMITL Pay Servies.
Actually, you need a PC with internet access and for receiving the One Time Passcode (OTP) via bank website.
KMITL Pay Services is supported by the following browsers:
if you have any question that is not in FAQ , you can contact us in below box.


A key part of OOP is the reusing of self-contained code structures. In Ruby we call these classes, and in JavaScript, constructors.
In ruby, classes are used to create objects. The initialize method allows for arguments for object specific properties & the class variable is inherited by all objects of the class.
class Player
@@level = 1
def initialize(name, difficulty)
@name = name
@difficulty = difficulty
end
end
night_crawler = Player.new("Night Crawler", 5)
In javascript, constructor functions are used to create objects. These objects can inherit properties from the parent object, and also be instantiated with their own properties.
function Player(name, difficulty) {
Player.level = 1;
this.name = name;
this.difficulty = difficulty;
}
var nightCrawler = new Player("Night Crawler", 5)


|
TLM-2.0
2.0.5
Accellera TLM-2.0 proof-of-concept library
|
Go to the source code of this file.
Namespaces | |
| tlm | |
Functions | |
| const unsigned int | tlm::tlm_version_major (TLM_VERSION_MAJOR) |
| const unsigned int | tlm::tlm_version_minor (TLM_VERSION_MINOR) |
| const unsigned int | tlm::tlm_version_patch (TLM_VERSION_PATCH) |
| const bool | tlm::tlm_is_prerelease (TLM_IS_PRERELEASE) |
| const std::string | tlm::tlm_version_string (TLM_VERSION_STRING) |
| const std::string | tlm::tlm_version_originator (TLM_VERSION_ORIGINATOR) |
| const std::string | tlm::tlm_version_prerelease (TLM_VERSION_PRERELEASE) |
| const std::string | tlm::tlm_version_release_date (TLM_VERSION_STRING_RELEASE_DATE) |
| const std::string | tlm::tlm_copyright_string (TLM_COPYRIGHT) |
| const std::string | tlm::tlm_version_string_2 (TLM_VERSION_STRING_2) |
| const char * | tlm::tlm_release (void) |
| const char * | tlm::tlm_version (void) |
| const char * | tlm::tlm_copyright (void) |
| #define TLM_COPYRIGHT |
Definition at line 84 of file tlm_version.h.
| #define TLM_IS_PRERELEASE 1 |
pre-release flag ( 1 / 0 )
Definition at line 72 of file tlm_version.h.
| #define TLM_VERSION TLM_VERSION_STRING |
Definition at line 137 of file tlm_version.h.
| #define TLM_VERSION_MAJOR 2 |
version major level ( numeric )
Definition at line 66 of file tlm_version.h.
| #define TLM_VERSION_MINOR 0 |
version minor level ( numeric )
Definition at line 67 of file tlm_version.h.
| #define TLM_VERSION_ORIGINATOR "Accellera" |
TLM creator string.
Definition at line 69 of file tlm_version.h.
| #define TLM_VERSION_PATCH 5 |
version patch level ( numeric )
Definition at line 68 of file tlm_version.h.
| #define TLM_VERSION_PRERELEASE "pub_rev" |
pre-release version string
Definition at line 75 of file tlm_version.h.
| #define TLM_VERSION_RELEASE_DATE |
Definition at line 92 of file tlm_version.h.
| #define TLM_VERSION_RELEASE_DAY "04" |
release day ( DD )
Definition at line 82 of file tlm_version.h.
| #define TLM_VERSION_RELEASE_MONTH "09" |
release month ( MM )
Definition at line 81 of file tlm_version.h.
| #define TLM_VERSION_RELEASE_YEAR "2018" |
release year ( YYYY )
Definition at line 80 of file tlm_version.h.
| #define TLM_VERSION_SEPARATOR "." |
version string separator
Definition at line 70 of file tlm_version.h.
| #define TLM_VERSION_STR | ( | x | ) | TLM_VERSION_STR_HELPER(x) |
Definition at line 96 of file tlm_version.h.
| #define TLM_VERSION_STR_HELPER | ( | x | ) | #x |
Definition at line 97 of file tlm_version.h.
| #define TLM_VERSION_STRING |
Definition at line 122 of file tlm_version.h.
| #define TLM_VERSION_STRING_2 |
Definition at line 128 of file tlm_version.h.
| #define TLM_VERSION_STRING_MAJOR TLM_VERSION_STR(TLM_VERSION_MAJOR) |
Definition at line 99 of file tlm_version.h.
| #define TLM_VERSION_STRING_MINOR TLM_VERSION_STR(TLM_VERSION_MINOR) |
Definition at line 100 of file tlm_version.h.
| #define TLM_VERSION_STRING_MMP |
Definition at line 103 of file tlm_version.h.
| #define TLM_VERSION_STRING_PATCH TLM_VERSION_STR(TLM_VERSION_PATCH) |
Definition at line 101 of file tlm_version.h.
| #define TLM_VERSION_STRING_PRE_END "-" |
Definition at line 108 of file tlm_version.h.
| #define TLM_VERSION_STRING_PRE_START "_" |
Definition at line 107 of file tlm_version.h.
| #define TLM_VERSION_STRING_PRERELEASE TLM_VERSION_PRERELEASE |
Definition at line 112 of file tlm_version.h.
| #define TLM_VERSION_STRING_RELEASE_DATE "" |
Definition at line 113 of file tlm_version.h.


I'm supposed to have three links in this page-- one to the New York Times, one to CNN, and one to the LA Times. But they're all broken!!!


This class embodies an Embed fragment.
§ __construct()
| Prismic\Fragment\Embed::__construct |
( |
|
$type, |
|
|
|
$provider, |
|
|
|
$url, |
|
|
|
$maybeWidth, |
|
|
|
$maybeHeigth, |
|
|
|
$maybeHtml, |
|
|
|
$oembedJson |
|
) |
| |
Constructs an Embed fragment.
- Parameters
-
| string | $type | the OEmbed resource's type |
| string | $provider | the OEmbed resource's provider |
| string | $url | the OEmbed resource's URL |
| string | $maybeWidth | the OEmbed resource's width |
| string | $maybeHeigth | the OEmbed resource's height |
| string | $maybeHtml | the OEmbed resource's HTML |
| string | $oembedJson | the OEmbed resource's JSON |
§ asHtml()
| Prismic\Fragment\Embed::asHtml |
( |
|
$linkResolver = null | ) |
|
§ asText()
| Prismic\Fragment\Embed::asText |
( |
| ) |
|
§ getHeight()
| Prismic\Fragment\Embed::getHeight |
( |
| ) |
|
Get the the OEmbed height
- Returns
- string
§ getOEmbedJson()
| Prismic\Fragment\Embed::getOEmbedJson |
( |
| ) |
|
Get the the OEmbed resource's JSON.
- Returns
§ getProvider()
| Prismic\Fragment\Embed::getProvider |
( |
| ) |
|
Get the the OEmbed provider
- Returns
- string
§ getType()
| Prismic\Fragment\Embed::getType |
( |
| ) |
|
Get the the OEmbed type
- Returns
- string
§ getUrl()
| Prismic\Fragment\Embed::getUrl |
( |
| ) |
|
Get the the OEmbed url
- Returns
- string
§ getWidth()
| Prismic\Fragment\Embed::getWidth |
( |
| ) |
|
Get the the OEmbed width
- Returns
- string
§ parse()
| static Prismic\Fragment\Embed::parse |
( |
|
$json | ) |
|
|
static |
Parses a given Embed fragment. Not meant to be used except for testing.
- Parameters
-
| \stdClass | $json | the json bit retrieved from the API that represents an Embed fragment. |
- Returns
- the manipulable object for that Embed fragment.
The documentation for this class was generated from the following file:
- src/Prismic/Fragment/Embed.php


The 'infodemic' on Social Media impacts health and welfare of society,
both at a local and global scale. We analyze twitter information cascades to detect and combat misinformation.
We expose and maintain a list of false, misleading and clickbait claims detected from information cascades about Coronavirus from March 9 to 17, 2020.


Ablov Eugene began his career in 1996 with the position of senior assistant prosecutor of the October district. Odessa.
He then worked in the Odessa Oblast prosecutor's office, prosecutor's office Shevchenko district of Kyiv Prosecutor's Office Krivoy Rog, Courtdeyu District Administrative Court.
In his current position Courtdi District adminCourtu m. Kyiv Ablov came in 2010.
fortune:
"Our Money" reported that Eugene Courtdya Ablov declared his family owned two apartments with a total value of 8.56 million USD.
One apartment belongs Courtdi son Matthew Ablovu. Courtdya reported that its cost, the latest estimate of 5.86 million. USD. The registry is the data that Matthew Ablov has one apartment of 144 square meters. m in Odessa avenue Shevchenko, 12/2. Son Courtdi acquired an apartment in the property under a contract of sale October 3, 2016
Courtdya declared another apartment in Odessa area of 144 square meters. m. The cost 2,70 mln. UAH., which uses one of his son Elijah. Eugene Ablov said that owners of apartments with 2006 is Valentine Ablova (mother Courtdi) Svetlana Vorobiev. However, in the register of real estate is evidence that Ablova and Sparrow had such an apartment on Prospect Shevchenko, 12/2. This is the same apartment, whose owner recently became Courtdi son Matthew. Data on their other apartment in the registry could not be found. P>
In the registry is the data that have Courtdi Ablova Svetlana Vorobyova have a three-story cottage dacha. House area of 274 sq.m. purchased in 2013 and is located in the village council Dalnytskoyi array "Golden Bugaz». p>
According to the declaration nor Eugene Ablov nor his family have no vehicles. In previous years Courtdya declared 2006 Mazda3 RV and to use the family is Porsche RV 2012
Activities:
On the legal forum to express Ablova not very friendly, calling it corrupt. It is alleged that Courtdi is nicknamed "Jeka 20%".
Resonance decisions about media:
As Courtdeyu District Administrative Court, hearing the case against Ablov Odessa broadcasting company "ATV". Courtdya sided with the odious journalist Gregory Kvasnyuka through which channel three times warned the National Council for Television and Radio Broadcasting, decided that statements Kvasnyuka like "Bay Jew delivered Odessa" is not incitement to ethnic hatred and protected channel.
2015 Courtdya Ablov examined the case "Baby TV" to "Inter". Children's TV Court asked to cancel the decision of the National Council on Television and Radio to extend the license "Inter". Courtdya ruled in favor of "Inter". However, representatives of "Baby TV» talked with fotodokazy as Ablov one of football matches as if sitting in the VIP-boxes of the stadium "Olympic" together with Igor Fursin that the junior partner Dmitry Firtash - the owner of "Inter". Therefore, in Courtdi during consideration of this case was a conflict of interest.
The ban opposition rallies:
Ablov decided to ban the opposition action "Day of Wrath" in the May-June 2011 prohibit the promotion Court asked the Kyiv state administration. Activists said that the purpose of the action - to seek the resignation of the president and parliament, full re-criminal, they believe authorities. This decision turned COURT protesters fight with police at the Mariinsky park, winding detention and administrative cases. P>
Later Eugene Ablov decided to ban peaceful action near Pechersk Court and Luk`yanivskoho prison, where the assembled supporters of Yulia Tymoshenko.
Banks and SOEs:
In March 2016, the District Administrative Court of Kyiv in the person of Eugene Ablova quashed the decision of the NBU and the Fund Deposit Guarantee to revoke the banking license and liquidation of PJSC CB "Union". National Bank liquidated the bank "Union" by committed systematic violations of legislation on financial monitoring.
Also Ablova decision of 2014 was a barrier to returning to the use of state of the two main businesses of titanium industry - Irshansk GOK (IHOK) and Vilnohirsk Mining and Metallurgical Combine (VHMK). They were leased Group DF, which belongs to oligarch Dmitry Firtash. In August 2014 Courtdya Ablov issued a ruling banning the inventory of property Irshansk mining plant. In fact, it Courtove decision prohibiting proper inventory of state property and blocked the implementation of a government decision on the return of plants under the control of the state.
Ablov also considering a lawsuit against the government of Yulia Tymoshenko of Ukraine to abolish the government's decision to raise gas prices by half and NKREKP decision to increase tariffs.


Indicates which set of lights should be considered "on" to illuminate geometry at this level and below.
More...
|
| const RenderAttrib | addLight (Light light) |
| | Returns a new LightAttrib, just like this one, but with the indicated light added to the list of lights. More...
|
| |
| const RenderAttrib | addOffLight (const NodePath light) |
| | Returns a new LightAttrib, just like this one, but with the indicated light added to the list of lights turned off by this attrib. More...
|
| |
| const RenderAttrib | addOnLight (const NodePath light) |
| | Returns a new LightAttrib, just like this one, but with the indicated light added to the list of lights turned on by this attrib. More...
|
| |
| LColor | getAmbientContribution () |
| | Returns the total contribution of all the ambient lights. More...
|
| |
| Light | getLight (int n) |
| | Returns the nth light listed in the attribute. More...
|
| |
| NodePath | getMostImportantLight () |
| | Returns the most important light (that is, the light with the highest priority) in the LightAttrib, excluding any ambient lights. More...
|
| |
| int | getNumLights () |
| | Returns the number of lights listed in the attribute. More...
|
| |
| int | getNumNonAmbientLights () |
| | Returns the number of non-ambient lights that are turned on by this attribute. More...
|
| |
| int | getNumOffLights () |
| | Returns the number of lights that are turned off by the attribute. More...
|
| |
| int | getNumOnLights () |
| | Returns the number of lights that are turned on by the attribute. More...
|
| |
| NodePath | getOffLight (int n) |
| | Returns the nth light turned off by the attribute, sorted in arbitrary (pointer) order. More...
|
| |
| list | getOffLights () |
| |
| NodePath | getOnLight (int n) |
| | Returns the nth light turned on by the attribute, sorted in render order. More...
|
| |
| list | getOnLights () |
| |
| LightAttrib::Operation | getOperation () |
| | Returns the basic operation type of the LightAttrib. More...
|
| |
| bool | hasAllOff () |
| | Returns true if this attrib turns off all lights (although it may also turn some on). More...
|
| |
| bool | hasAnyOnLight () |
| | Returns true if any light is turned on by the attrib, false otherwise. More...
|
| |
| bool | hasLight (Light light) |
| | Returns true if the indicated light is listed in the attrib, false otherwise. More...
|
| |
| bool | hasOffLight (const NodePath light) |
| | Returns true if the indicated light is turned off by the attrib, false otherwise. More...
|
| |
| bool | hasOnLight (const NodePath light) |
| | Returns true if the indicated light is turned on by the attrib, false otherwise. More...
|
| |
| bool | isIdentity () |
| | Returns true if this is an identity attrib: it does not change the set of lights in use. More...
|
| |
| const RenderAttrib | removeLight (Light light) |
| | Returns a new LightAttrib, just like this one, but with the indicated light removed from the list of lights. More...
|
| |
| const RenderAttrib | removeOffLight (const NodePath light) |
| | Returns a new LightAttrib, just like this one, but with the indicated light removed from the list of lights turned off by this attrib. More...
|
| |
| const RenderAttrib | removeOnLight (const NodePath light) |
| | Returns a new LightAttrib, just like this one, but with the indicated light removed from the list of lights turned on by this attrib. More...
|
| |
| Public Member Functions inherited from RenderAttrib |
| int | compareTo (const RenderAttrib other) |
| | Provides an arbitrary ordering among all unique RenderAttribs, so we can store the essentially different ones in a big set and throw away the rest. More...
|
| |
| const RenderAttrib | compose (const RenderAttrib other) |
| | Returns a new RenderAttrib object that represents the composition of this attrib with the other attrib. More...
|
| |
| int | getHash () |
| | Returns a suitable hash value for phash_map. More...
|
| |
| int | getSlot () |
| |
| const RenderAttrib | getUnique () |
| | Returns the pointer to the unique RenderAttrib in the cache that is equivalent to this one. More...
|
| |
| const RenderAttrib | invertCompose (const RenderAttrib other) |
| | Returns a new RenderAttrib object that represents the composition of the inverse of this attrib with the other attrib. More...
|
| |
| bool | lowerAttribCanOverride () |
| | Intended to be overridden by derived RenderAttrib types to specify how two consecutive RenderAttrib objects of the same type interact. More...
|
| |
| | output (Ostream out) |
| |
| | write (Ostream out, int indent_level) |
| |
| Public Member Functions inherited from TypedWritable |
| object | __reduce__ () |
| |
| object | __reduce_persist__ (object pickler) |
| |
| VectorUchar | encodeToBamStream () |
| | Converts the TypedWritable object into a single stream of data using a BamWriter, and returns that data as a bytes object. More...
|
| |
| bool | encodeToBamStream (VectorUchar data, BamWriter writer) |
| | Converts the TypedWritable object into a single stream of data using a BamWriter, and stores that data in the indicated string. More...
|
| |
| | fillin (DatagramIterator scan, BamReader manager) |
| | This internal function is intended to be called by each class's make_from_bam() method to read in all of the relevant data from the BamFile for the new object. More...
|
| |
| UpdateSeq | getBamModified () |
| | Returns the current bam_modified counter. More...
|
| |
| | markBamModified () |
| | Increments the bam_modified counter, so that this object will be invalidated and retransmitted on any open bam streams. More...
|
| |
| Public Member Functions inherited from TypedObject |
| TypeHandle | getType () |
| |
| int | getTypeIndex () |
| | Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. More...
|
| |
| bool | isExactType (TypeHandle handle) |
| | Returns true if the current object is the indicated type exactly. More...
|
| |
| bool | isOfType (TypeHandle handle) |
| | Returns true if the current object is or derives from the indicated type. More...
|
| |
| Public Member Functions inherited from ReferenceCount |
| int | getRefCount () |
| | Returns the current reference count. More...
|
| |
| | ref () |
| | Explicitly increments the reference count. More...
|
| |
| bool | testRefCountIntegrity () |
| | Does some easy checks to make sure that the reference count isn't completely bogus. More...
|
| |
| bool | testRefCountNonzero () |
| | Does some easy checks to make sure that the reference count isn't zero, or completely bogus. More...
|
| |
| bool | unref () |
| | Explicitly decrements the reference count. More...
|
| |
|
| static int | getClassSlot () |
| |
| static TypeHandle | getClassType () |
| |
| static const RenderAttrib | make () |
| |
| static const RenderAttrib | make (LightAttrib::Operation op, Light light) |
| | Constructs a new LightAttrib object that turns on (or off, according to op) the indicated light(s). More...
|
| |
| static const RenderAttrib | make (LightAttrib::Operation op, Light light1, Light light2) |
| | Constructs a new LightAttrib object that turns on (or off, according to op) the indicate light(s). More...
|
| |
| static const RenderAttrib | make (LightAttrib::Operation op, Light light1, Light light2, Light light3) |
| | Constructs a new LightAttrib object that turns on (or off, according to op) the indicate light(s). More...
|
| |
| static const RenderAttrib | make (LightAttrib::Operation op, Light light1, Light light2, Light light3, Light light4) |
| | Constructs a new LightAttrib object that turns on (or off, according to op) the indicate light(s). More...
|
| |
| static const RenderAttrib | makeAllOff () |
| | Constructs a new LightAttrib object that turns off all lights (and hence disables lighting). More...
|
| |
| static const RenderAttrib | makeDefault () |
| | Returns a RenderAttrib that corresponds to whatever the standard default properties for render attributes of this type ought to be. More...
|
| |
| Static Public Member Functions inherited from RenderAttrib |
| static int | garbageCollect () |
| | Performs a garbage-collection cycle. More...
|
| |
| static TypeHandle | getClassType () |
| |
| static int | getNumAttribs () |
| | Returns the total number of unique RenderAttrib objects allocated in the world. More...
|
| |
| static | listAttribs (Ostream out) |
| | Lists all of the RenderAttribs in the cache to the output stream, one per line. More...
|
| |
| static bool | validateAttribs () |
| | Ensures that the cache is still stored in sorted order. More...
|
| |
| Static Public Member Functions inherited from TypedWritableReferenceCount |
| static TypedWritableReferenceCount | decodeFromBamStream (VectorUchar data, BamReader reader) |
| | Reads the bytes created by a previous call to encode_to_bam_stream(), and extracts and returns the single object on those bytes. More...
|
| |
| static TypeHandle | getClassType () |
| |
| Static Public Member Functions inherited from TypedWritable |
| static TypeHandle | getClassType () |
| |
| Static Public Member Functions inherited from TypedObject |
| static TypeHandle | getClassType () |
| |
| Static Public Member Functions inherited from ReferenceCount |
| static TypeHandle | getClassType () |
| |
Indicates which set of lights should be considered "on" to illuminate geometry at this level and below.
A LightAttrib can either add lights or remove lights from the total set of "on" lights.


| Blended | Traditional | Online | Crash Course | |
|---|---|---|---|---|
| Access to in-class lessons | yes | yes | No | No |
| Access to online lessons | Yes | No | Yes | Yes |
| Cultural immersion | Yes | Yes | Yes | Yes |
| Conversations with native speakers | Yes | Yes | Yes | Yes |
| More | More | More | More |
Blended
Our blended package provides the highest level of flexibility, with access to both physical and online classes. This allows you to revisit the classes to revise whenever necessary or if you are unable to make it to a class you will be able to veiw it at your pleasure. Sign up here
Traditional
Our traditional package allows you to take classes at our language center. This allows you to have interactions with our instructors during the lessons. Sign up here
Online
Our online package is designed for those of you would be unable to make it to traditional classes, but would still like to enjoy the benefits that eureka has to offer. Sign up here
Crash Course
Our Crash Course is gives short term access to all Eureka's online services to allow you to prepare for exams or for a vacation oversees. Sign up here


Stacked Queries
Stacked queries provide a lot of control to the attacker. By terminating the original query and adding a new one, it will be possible to modify data and call stored procedures. This technique is massively used in SQL injection attacks and understanding its principle is essential to a sound understanding of this security issue.
Principle
In SQL, a semicolon indicates that the end of a statement has been reached and what follows is a new one. This allows executing multiple statements in the same call to the database server. Contrary to UNION attacks which are limited to SELECT statements, stacked queries can be used to execute any SQL statement or procedure. A classic attack using this technique could look like the following.
Malicious user input.
1; DELETE FROM products
Generated query with multiple statements. The parameter productid was not sanitized.
SELECT * FROM products WHERE productid=1; DELETE FROM products
When the query is executed, a product is returned by the first statement and all products are deleted by the second.
Stacked Queries Limitations
It is important to mention that query stacking does not work in every situation. Most of the time, this kind of attack is impossible because the API and/or database engine do not support this functionality. Insufficient rights could also explain why the attacker is unable to modify data or call some procedures.
Below is a list of query stacking support by the principal API and DBMS.
Stacked query support.
MySQL/PHP - Not supported (supported by MySQL for other API).
SQL Server/Any API - Supported.
Oracle/Any API - Not supported.
Even though we mentioned earlier that stacked queries can add any SQL statement, this injection technique is frequently limited when it comes to adding SELECTs. Both statements will be executed but software code is usually designed to handle the results returned by only one query. Consequently, the injected SELECT query will often generate an error or its results will simply be ignored. For this reason it is recommended to use UNION attacks when trying to extract data.
One last thing needs to be mentionned: to inject a valid SQL segment, the attacker will need to know some basic information such as table names, column names, etc. For more information refer to the section dedicated to information gathering.
Altering Data
The example presented at the beginning of the article demonstrates how query stacking can be used to delete information from the database. Instead of destroying data, attackers usually try to steal it or grant themselves high privileges on the system. A frequent approach is to change the administrator’s password. The example below illustrates a classic data modification using SQL injection.
User input.
1; UPDATE members SET password='pwd' WHERE username='admin'
Generated query.
SELECT * FROM products WHERE categoryid=1; UPDATE members SET password='pwd' WHERE username='admin'
Calling Stored Procedures
Calling a procedure can bring SQL injections attacks to a whole new level. Nowadays, many database management systems come with built in packages of functions and procedures to simplify development and provide new functionalities. Therefore, it becomes possible to communicate with network, control the operating system and do even more from a simple SQL statement.
As there is no convention between DBMS regarding to packages and procedures name, the attacker will have to identify which database system is used before trying to call a built-in procedure. From there, the principle is the same as examples presented earlier except that the injected query is a stored procedure call. Let see how it can be done with the use of xp_shellcmd; a SQL Server’s specific command which allows executing operating system calls.
User input.
1; exec master..xp_cmdshell 'DEL important_file.txt'
Generated query.
SELECT * FROM products WHERE categoryid=1; exec master..xp_cmdshell 'DEL important_file.txt'
The query above will return a product list and delete "important_file.txt". A much more complex attack could have been launched to take control over the operating system, but this is outside the scope of this article. The injected statement is not limited to built-in packages; a user-defined procedure could also be called. This approach is not frequent but it could be useful in some specific cases.


{% extends 'base.html' %} {% block header %}
In this game your goal is to escape from Chucky, or at least survive as long as you can. Have fun!
{{ error }}
Thanks! Go to the Game Menu


Hello! My name is Dana and I am a front end web developer. I strive to create functional, user-friendly, and beautiful websites for PC, tablet, and mobile devices.
Hello! My name is Dana and I am a front end web developer. I strive to create functional, user-friendly, and beautiful websites for PC, tablet, and mobile devices.


Testing os/exec.Command
Jun 26, 2015In Juju, we often have code that needs to run external executables. Testing this code is a nightmare… because you really don’t want to run those files on the dev’s machine or the CI machine. But mocking out os/exec is really hard. There’s no interface to replace, there’s no function to mock out and replace. In the end, your code calls the Run method on the exec.Cmd struct.
There’s a bunch of bad ways you can mock this out - you can write out scripts to disk with the right name and structure their contents to write out the correct data to stdout, stderr and return the right return code… but then you’re writing platform-specific code in your tests, which means you need a Windows version and a Linux version… It also means you’re writing shell scripts or Windows batch files or whatever, instead of writing Go. And we all know that we want our tests to be in Go, not shell scripts.
So what’s the answer? Well, it turns out, if you want to mock out exec.Command, the best place to look is in the exec package’s tests themselves. Lo and behold, it’s right there in the first function of exec_test.go
func helperCommand(t *testing.T, s ...string) *exec.Cmd {
cs := []string{"-test.run=TestHelperProcess", "--"}
cs = append(cs, s...)
cmd := exec.Command(os.Args[0], cs...)
cmd.Env = []string{"GO_WANT_HELPER_PROCESS=1"}
return cmd
}
(one line elided for clarity)
What the heck is that doing? It’s pretty slick, so I’ll explain it.
First off, you have to understand how tests in Go work. When running go test
,
the go tool compiles an executable from your code, runs it, and passes it the
flags you passed to go test
. It’s that executable which actually handles the
flags and runs the tests. Thus, while your tests are running, os.Args[0] is the
name of the test executable.
This function is making an exec.Command that runs the test executable, and
passes it the flag to tell the executable just to run a single test. It then
terminates the argument list with --
and appends the command and arguments
that would have been given to exec.Command to run your command.
The end result is that when you run the exec.Cmd that is returned, it will run
the single test from this package called “TestHelperProcess” and os.Args will
contain (after the --
) the command and arguments from the original call.
The environment variable is there so that the test can know to do nothing unless that environment variable is set.
This is awesome for a few reasons:
- It’s all Go code. No more needing to write shell scripts.
- The code run in the excutable is compiled with the rest of your test code. No more needing to worry about typos in the strings you’re writing to disk.
- No need to create new files on disk - the executable is already there and runnable, by definition.
So, let’s use this in a real example to make it more clear.
In your production code, you can do something like this:
var execCommand = exec.Command
func RunDocker(container string) ([]byte, error) {
cmd := execCommand("docker", "run", "-d", container)
out, err := cmd.CombinedOutput()
}
Mocking this out in test code is now super easy:
func fakeExecCommand(command string, args...string) *exec.Cmd {
cs := []string{"-test.run=TestHelperProcess", "--", command}
cs = append(cs, args...)
cmd := exec.Command(os.Args[0], cs...)
cmd.Env = []string{"GO_WANT_HELPER_PROCESS=1"}
return cmd
}
const dockerRunResult = "foo!"
func TestRunDocker(t *testing.T) {
execCommand = fakeExecCommand
defer func(){ execCommand = exec.Command }()
out, err := RunDocker("docker/whalesay")
if err != nil {
t.Errorf("Expected nil error, got %#v", err)
}
if string(out) != dockerRunResult {
t.Errorf("Expected %q, got %q", dockerRunResult, out)
}
}
func TestHelperProcess(t *testing.T){
if os.Getenv("GO_WANT_HELPER_PROCESS") != "1" {
return
}
// some code here to check arguments perhaps?
fmt.Fprintf(os.Stdout, dockerRunResult)
os.Exit(0)
}
Of course, you can do a lot more interesting things. The environment variables on the command that fakeExecCommand returns make a nice side channel for telling the executable what you want it to do. I use one to tell the process to exit with a non-zero error code, which is great for testing your error handling code. You can see how the standard library uses its TestHelperProcess test here.
Hopefully this will help you avoid writing really gnarly testing code (or even worse, not testing your code at all).


This web page gives examples for the paper "Multi-level tree based approach for interactive graph visualization with semantic zoom".
The Google Topics Graph (Paper Here) captures relations between research topics. The graph was extracted from Google Scholar academic research profiles and this version contains 5,947 nodes. The nodes of the graph are research topics, with weights corresponding to the number of people reporting to work on them. Edges are placed between pairs of topics that co-occur in the profiles.
The LastFM Graph (Paper Here) shows relations between musical artists and contains 2588 nodes. This graph, is based on data from a 2009 web crawl of the last.fm website, an Internet radio and music community website with a recommender system based on user listening habits. The nodes are popular musical artists with weights corresponding to the number of listeners. Edges are placed between pairs of similar artists, based on listening habits.


@* * Copyright 2020 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *@ @import config.ApplicationConfig @(questionnaireForm: Form[models.Questionnaire])(implicit request : Request[_], messages: Messages, appConfig: ApplicationConfig) @import uk.gov.hmrc.play.views.html._ @import uk.gov.hmrc.play.views.html.helpers._ @import views.html.helpers._ @views.html.ras_main(title = "Relief at Source Feedback Questionnaire - Look up residency status for relief at source - GOV.UK", bodyClasses = None, contentHeader = None, signOutEnabled = false, hasTimeOut = false){
@Messages("label.feedback.use")
@helpers.form(action = controllers.routes.QuestionnaireController.submitQuestionnaire, 'class -> "satisfactionSurveyForm") {


{% extends "layout.html" %} {% block head %} {% include "includes/head-MTP.html" %} {% endblock %} {% block content %} {% include "includes/banner.html" %} Pay now by debit card Enter amount to send Amount Please enter the amount in pounds For example, 20.00 £ {% endblock %}


| Top |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkWindow ╰── GtkShortcutsWindow
A GtkShortcutsWindow shows brief information about the keyboard shortcuts and gestures of an application. The shortcuts can be grouped, and you can have multiple sections in this window, corresponding to the major modes of your application.
Additionally, the shortcuts can be filtered by the current view, to avoid showing information that is not relevant in the current application context.
The recommended way to construct a GtkShortcutsWindow is with GtkBuilder, by populating a GtkShortcutsWindow with one or more GtkShortcutsSection objects, which contain GtkShortcutsGroups that in turn contain objects of class GtkShortcutsShortcut.
This example has as single section. As you can see, the shortcut groups are arranged in columns, and spread across several pages if there are too many to find on a single page.
The .ui file for this example can be found here.
This example shows a GtkShortcutsWindow that has been configured to show only the shortcuts relevant to the "stopwatch" view.
The .ui file for this example can be found here.
This example shows a GtkShortcutsWindow with two sections, "Editor Shortcuts" and "Terminal Shortcuts".
The .ui file for this example can be found here.
“section-name”
property“section-name” gchar *
The name of the section to show.
This should be the section-name of one of the GtkShortcutsSection objects that are in this shortcuts window.
Flags: Read / Write
Default value: "internal-search"
“view-name”
property“view-name” gchar *
The view name by which to filter the contents.
This should correspond to the “view” property of some of the GtkShortcutsGroup objects that are inside this shortcuts window.
Set this to NULL
to show all groups.
Flags: Read / Write
Default value: NULL
“close”
signalvoid user_function (GtkShortcutsWindow *arg0, gpointer user_data)
The ::close signal is a keybinding signal which gets emitted when the user uses a keybinding to close the window.
The default binding for this signal is the Escape key.
Flags: Action
“search”
signalvoid user_function (GtkShortcutsWindow *arg0, gpointer user_data)
The ::search signal is a keybinding signal which gets emitted when the user uses a keybinding to start a search.
The default binding for this signal is Control-F.
Flags: Action