text stringlengths 1 1.04M | language stringclasses 25 values |
|---|---|
<reponame>lucas-tortora/goshimmer<gh_stars>100-1000
package main
import (
"flag"
"fmt"
"os"
"github.com/iotaledger/goshimmer/client/wallet"
"github.com/iotaledger/goshimmer/client/wallet/packages/claimconditionaloptions"
)
func execClaimConditionalCommand(command *flag.FlagSet, cliWallet *wallet.Wallet) {
command.Usage = func() {
printUsage(command)
}
helpPtr := command.Bool("help", false, "show this help screen")
accessManaPledgeIDPtr := command.String("access-mana-id", "", "node ID to pledge access mana to")
consensusManaPledgeIDPtr := command.String("consensus-mana-id", "", "node ID to pledge consensus mana to")
err := command.Parse(os.Args[2:])
if err != nil {
panic(err)
}
if *helpPtr {
printUsage(command)
}
fmt.Println("Claiming conditionally owned funds... [this might take a while]")
_, err = cliWallet.ClaimConditionalFunds(
claimconditionaloptions.AccessManaPledgeID(*accessManaPledgeIDPtr),
claimconditionaloptions.ConsensusManaPledgeID(*consensusManaPledgeIDPtr),
)
if err != nil {
printUsage(command, err.Error())
}
fmt.Println()
fmt.Println("Claiming conditionally owned funds... [DONE]")
}
| go |
Jonathan Odell (born Sept. 25, 1737, Newark, N.J., U.S.—died Nov. 25, 1818, Fredericton, N.B., Can.) Canadian writer whose works are among the few extant expressions of American Tory sentiment during the Revolutionary War.
Educated in New Jersey, he was a surgeon in the British army, resigning to become an Anglican priest. During the Revolution he served as chaplain to a loyalist regiment, wrote bitterly satiric verses against the revolutionists, and played an active role in the negotiations between the American traitor Benedict Arnold and the British. His political satires and patriotic poems were collected and published in The Loyal Verses of Joseph Stansbury and Doctor Jonathan Odell (1860).
| english |
Jubilee deputy presidential Candidate William Ruto blamed late night sittings for passing the Education Act with ‘errors’ and with a lesser number of members present.
He pledged however, the commitment of the jubilee government to amend sections of the law that was offending to the church.
“The Education Act was passed in a hurry. We got representation from the church with their concerns but unfortunately some of those bills were being passed at night with very few members in the House,” said Ruto though refusing to take blame as part of the tenth Parliament.
Amani Deputy presidential candidate Jeremiah Kioni hit back claiming that the few Members of Parliament who sacrificed their time at night to pass the laws were the only ones consistent in Parliament even during the day.
“The Members of Parliament who sat even up to midnight to pass the laws was the same even at 11am in the morning; so the claim that bills passed were passed with mistakes because they were passed at night does not arise,” said Kioni in reply at the debate organised by churches.
Vice President Kalonzo Musyoka who is the running mate in the CORD coalition also pledged to consult with the education stakeholders to address issues raised by the church.
“Many of the schools owned by the church are among the best performing schools in the country; you cannot therefore change the spiritual leadership without compromising quality but the church should be assured that amending the offending sections can be done with a simple majority in the House,” assured Musyoka.
The church has been vocal on the Education Act arguing that the transfer of schools owned by the church was an undoing of the investment that the church had put in education.
The church has insisted that the schools they sponsor are on land owned by the church or held in trust by the church for the community and that the law must ensure ownership rights of religious sponsors are recognised and respected.
The church also wants that religious studies in public schools continue being taught and not at the discretion of parents.
The Act also provides that schools provide such facilities as may be practicable for a pupil to receive religious instruction in accordance with the preferences their parents wish. | english |
{
"citations" : [ {
"textCitation" : "[See pmtrsn on Metamath](http://us.metamath.org/mpegif/pmtrsn.html)"
} ],
"names" : [ "pmtrsn" ],
"language" : "METAMATH_SET_MM",
"lookupTerms" : [ "#T_cpmtr", "#T_cfv", "#T_csn--1", "#T_cA", "#T_csn--2", "#T_wceq", "#T_c0" ],
"metaLanguage" : "METAMATH",
"remarks" : " The value of the transposition generator function for a singleton is empty, i.e. there is no transposition for a singleton. This also holds for ` A e/ _V ` , i.e. for the empty set ` { A } = (/) ` resulting in ` ( pmTrsp `` (/) ) = (/) ` . (Contributed by AV, 6-Aug-2019.) ",
"statement" : "pmtrsn $p |- ( pmTrsp ` { A } ) = (/) $."
} | json |
package singletonMediator;
import singletonMediator.room.Chat;
import singletonMediator.room.ChatImpl;
import singletonMediator.room.ChatUser;
import singletonMediator.room.User;
public class ChatMain {
public static void main(String[] args) {
Chat chat = new ChatImpl();
User user1 = new ChatUser(chat, "Ivan");
User user2 = new ChatUser(chat, "Maria");
User user3 = new ChatUser(chat, "George");
user2.send("Hi guys");
user2.send("Let me addBot");
user2.send("Hey, let me tell you an amazing fact about my cat. My cAT is so curious..");
user3.send("What is the name of your cat?");
user1.send("Hahahah.. you both gonna be banned because of cat word... Oh wait, damnnn it!");
System.out.println();
System.out.println();
User user4 = new ChatUser(chat, "Ivan");
User user5 = new ChatUser(chat, "Maria");
User user6 = new ChatUser(chat, "George");
user5.send("Hi guys");
user5.send("Let me add spamBot");
user5.send("Hey, let me tell you an amazing fact about my cat. My cAT is so curious..");
user6.send("What is the name of your cat?");
user4.send("Hahahah.. you both gonna be banned because of cat word... Oh wait, damnnn it!");
}
}
/*
*
1.OUTPUT WHEN - addBot (CatBot)
-Maria sends: Hi guys
-Ivan received: Hi guys
-George received: Hi guys
-Maria sends: Let me addBot
-Ivan received: Let me addBot
-George received: Let me addBot
-Maria sends: Hey, let me tell you an amazing fact about my cat. My cAT is so curious..
-Ivan received: Hey, let me tell you an amazing fact about my cat. My cAT is so curious..
Cat bot banned: Maria
Warning, the word/words - "cat, cAT," is/are forbidden to use!
-George received: Hey, let me tell you an amazing fact about my . My is so curious..
-George sends: What is the name of your cat?
-Ivan received: What is the name of your cat?
Cat bot banned: George
Warning, the word/words - "cat," is/are forbidden to use!
-Ivan sends: Hahahah.. you both gonna be banned because of cat word... Oh wait, damnnn it!
Cat bot banned: Ivan
Warning, the word/words - "cat," is/are forbidden to use!
MY ADDITION CONDITIONS
2.OUTPUT WHEN - spamBot (SpamBot)
-Maria sends: Hi guys
-Ivan received: Hi guys
-George received: Hi guys
-Maria sends: Let me add spamBot
BOT ADDED
-Ivan received: Let me add spamBot
-George received: Let me add spamBot
-Maria sends: Hey, let me tell you an amazing fact about my cat. My cAT is so curious..
-Ivan received: Hey, let me tell you an amazing fact about my cat. My cAT is so curious..
Spam bot: Maria told: Hey, let me tell you an amazing fact about my cat. My cAT is so curious..
Spam bot: Maria told: Hey, let me tell you an amazing fact about my cat. My cAT is so curious..
Spam bot: Maria told: Hey, let me tell you an amazing fact about my cat. My cAT is so curious..
Spam bot: Maria told: Hey, let me tell you an amazing fact about my cat. My cAT is so curious..
Spam bot: Maria told: Hey, let me tell you an amazing fact about my cat. My cAT is so curious..
-George received: Hey, let me tell you an amazing fact about my cat. My cAT is so curious..
-George sends: What is the name of your cat?
-Ivan received: What is the name of your cat?
-Maria received: What is the name of your cat?
-Ivan sends: Hahahah.. you both gonna be banned because of cat word... Oh wait, damnnn it!
-Maria received: Hahahah.. you both gonna be banned because of cat word... Oh wait, damnnn it!
-George received: Hahahah.. you both gonna be banned because of cat word... Oh wait, damnnn it!
*/ | java |
{
"schema_version": "1.2.0",
"id": "GHSA-g47h-745c-4p4f",
"modified": "2021-12-28T00:01:17Z",
"published": "2021-12-22T00:00:47Z",
"aliases": [
"CVE-2021-24981"
],
"details": "The Directorist WordPress plugin before 7.0.6.2 was vulnerable to Cross-Site Request Forgery to Remote File Upload leading to arbitrary PHP shell uploads in the wp-content/plugins directory.",
"severity": [
],
"affected": [
],
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-24981"
},
{
"type": "WEB",
"url": "https://blog.sucuri.net/2021/11/fake-ransomware-infection-spooks-website-owners.html"
},
{
"type": "WEB",
"url": "https://wpscan.com/vulnerability/4c45df6d-b3f6-49e5-8b1f-edd32a12d71c"
}
],
"database_specific": {
"cwe_ids": [
"CWE-352"
],
"severity": "HIGH",
"github_reviewed": false
}
} | json |
package com.secuconnect.demo.api_integration_of_smart_checkout;
import com.secuconnect.client.ApiException;
import com.secuconnect.client.Environment;
import com.secuconnect.client.api.SmartTransactionsApi;
import com.secuconnect.client.model.*;
import com.secuconnect.demo.Globals;
/**
* API Integration of Smart Checkout
*
* Step 3: Get the details of a completed smart transaction
*
* @see <a href="https://developer.secuconnect.com/integration/API_Integration_of_Smart_Checkout.html">API Integration of Smart Checkout</a>
*/
public class Step3 {
public static void main(String[] args) {
try {
// init env
Environment.getGlobalEnv().setCredentials(Globals.O_AUTH_CLIENT_CREDENTIALS);
// run api call
SmartTransactionsProductModel response = new SmartTransactionsApi().getOne("STX_NPNF3464P2X4YJ5RABEHH3SGZJXWAH");
System.out.println(response.toString());
response.paymentInstructions(new PaymentInstructions()).id("");
/*
* Sample output:
* ==============
* class SmartTransactionsProductModel {
* class BaseProductModel {
* object: smart.transactions
* id: STX_NPNF3464P2X4YJ5RABEHH3SGZJXWAH
* }
* created: 2021-04-28T12:00:00+02:00
* updated: 2021-04-28T12:05:00+02:00
* status: received
* customer: class PaymentCustomersProductModel {
* class BaseProductModel {
* object: payment.customers
* id: PCU_WMZDQQSRF2X4YJ67G997YE8Y26XSAW
* }
* contact: class Contact {
* forename: Max
* surname: Muster
* email: <EMAIL>
* phone: +4912342134123
* address: class Address {
* street: Kolumbastr.
* streetNumber: 3TEST
* city: Köln
* postalCode: 50667
* country: DE
* }
* }
* }
* container: class SmartTransactionsContainer {
* class ProductInstanceUID {
* object: payment.containers
* id: PCT_WCB4H23TW2X4YJ6Y8B7FD5N5MS8NA2
* }
* type: bank_account
* }
* transId: 40015106
* paymentMethod: debit
* transactions: [class PaymentTransactionsProductModel {
* class BaseProductModel {
* object: payment.transactions
* id: PCI_WP7AEW23T2SMTJ0MCJTTXQ5002K8N6
* }
* transId: 40015106
* transactionHash: qkglowlxxbyz4972791
* }]
* ...
* }
*/
} catch (ApiException e) {
e.printStackTrace();
// show the error message from the api
System.out.println("ERROR: " + e.getResponseBody());
}
}
}
| java |
#ifndef STEREO_HPP
#define STEREO_HPP
#include <iostream>
#include <opencv2/opencv.hpp>
#include "calibration.hpp"
namespace sl_oc {
namespace tools {
/*!
* \brief STEREO_PAR_FILENAME default stereo parameter configuration file
*/
const std::string STEREO_PAR_FILENAME = "zed_oc_stereo.yaml";
/*!
* \brief The StereoSgbmPar class is used to store/retrieve the stereo matching parameters
*/
class StereoSgbmPar
{
public:
/*!
* \brief Default constructor
*/
StereoSgbmPar()
{
setDefaultValues();
}
/*!
* \brief load stereo matching parameters
* \return true if a configuration file exists
*/
bool load();
/*!
* \brief save stereo matching parameters
* \return true if a configuration file has been correctly created
*/
bool save();
/*!
* \brief set default stereo matching parameters
*/
void setDefaultValues();
/*!
* \brief print the current stereo matching parameters on standard output
*/
void print();
public:
int blockSize; //!< [default: 3] Matched block size. It must be an odd number >=1 . Normally, it should be somewhere in the 3..11 range.
int minDisparity; //!< [default: 0] Minimum possible disparity value. Normally, it is zero but sometimes rectification algorithms can shift images, so this parameter needs to be adjusted accordingly.
int numDisparities; //!< [default: 96] Maximum disparity minus minimum disparity. The value is always greater than zero. In the current implementation, this parameter must be divisible by 16.
int mode; //!< Set it to StereoSGBM::MODE_HH to run the full-scale two-pass dynamic programming algorithm. It will consume O(W*H*numDisparities) bytes, which is large for 640x480 stereo and huge for HD-size pictures. By default, it is set to `cv::StereoSGBM::MODE_SGBM_3WAY`.
int P1; //!< [default: 24*blockSize*blockSize] The first parameter controlling the disparity smoothness. See below.
int P2; //!< [default: 4*PI]The second parameter controlling the disparity smoothness. The larger the values are, the smoother the disparity is. P1 is the penalty on the disparity change by plus or minus 1 between neighbor pixels. P2 is the penalty on the disparity change by more than 1 between neighbor pixels. The algorithm requires P2 > P1 . See stereo_match.cpp sample where some reasonably good P1 and P2 values are shown (like 8*number_of_image_channels*blockSize*blockSize and 32*number_of_image_channels*blockSize*blockSize , respectively).
int disp12MaxDiff; //!< [default: 96] Maximum allowed difference (in integer pixel units) in the left-right disparity check. Set it to a non-positive value to disable the check.
int preFilterCap; //!< [default: 63] Truncation value for the prefiltered image pixels. The algorithm first computes x-derivative at each pixel and clips its value by [-preFilterCap, preFilterCap] interval. The result values are passed to the Birchfield-Tomasi pixel cost function.
int uniquenessRatio; //!< [default: 5] Margin in percentage by which the best (minimum) computed cost function value should "win" the second best value to consider the found match correct. Normally, a value within the 5-15 range is good enough.
int speckleWindowSize; //!< [default: 255] Maximum size of smooth disparity regions to consider their noise speckles and invalidate. Set it to 0 to disable speckle filtering. Otherwise, set it somewhere in the 50-200 range.
int speckleRange; //!< [default: 1] Maximum disparity variation within each connected component. If you do speckle filtering, set the parameter to a positive value, it will be implicitly multiplied by 16. Normally, 1 or 2 is good enough.
float minDepth_mm; //!< [default: 300] Minimum value of depth for the extracted depth map
float maxDepth_mm; //!< [default: 10000] Maximum value of depth for the extracted depth map
};
void StereoSgbmPar::setDefaultValues()
{
blockSize = 3;
minDisparity = 0;
numDisparities = 96;
mode = cv::StereoSGBM::MODE_SGBM_3WAY; // MODE_SGBM = 0, MODE_HH = 1, MODE_SGBM_3WAY = 2, MODE_HH4 = 3
P1 = 24*blockSize*blockSize;
P2 = 4*P1;
disp12MaxDiff = 96;
preFilterCap = 63;
uniquenessRatio = 5;
speckleWindowSize = 255;
speckleRange = 1;
minDepth_mm = 300.f;
maxDepth_mm = 10000.f;
}
bool StereoSgbmPar::load()
{
std::string path = getHiddenDir();
std::string par_file = path + STEREO_PAR_FILENAME;
cv::FileStorage fs;
if(!fs.open(par_file, cv::FileStorage::READ))
{
std::cerr << "Error opening stereo parameters file. Using default values." << std::endl << std::endl;
setDefaultValues();
return false;
}
fs["blockSize"] >> blockSize;
fs["minDisparity"] >> minDisparity;
fs["numDisparities"] >> numDisparities;
fs["mode"] >> mode;
fs["disp12MaxDiff"] >> disp12MaxDiff;
fs["preFilterCap"] >> preFilterCap;
fs["uniquenessRatio"] >> uniquenessRatio;
fs["speckleWindowSize"] >> speckleWindowSize;
fs["speckleRange"] >> speckleRange;
P1 = 24*blockSize*blockSize;
P2 = 96*blockSize*blockSize;
fs["minDepth_mm"] >> minDepth_mm;
fs["maxDepth_mm"] >> maxDepth_mm;
std::cout << "Stereo parameters load done: " << par_file << std::endl << std::endl;
return true;
}
bool StereoSgbmPar::save()
{
std::string path = getHiddenDir();
std::string par_file = path + STEREO_PAR_FILENAME;
cv::FileStorage fs;
if(!fs.open(par_file, cv::FileStorage::WRITE))
{
std::cerr << "Error saving stereo parameters. Cannot open file for writing: " << par_file << std::endl << std::endl;
return false;
}
fs << "blockSize" << blockSize;
fs << "minDisparity" << minDisparity;
fs << "numDisparities" << numDisparities;
fs << "mode" << mode;
fs << "disp12MaxDiff" << disp12MaxDiff;
fs << "preFilterCap" << preFilterCap;
fs << "uniquenessRatio" << uniquenessRatio;
fs << "speckleWindowSize" << speckleWindowSize;
fs << "speckleRange" << speckleRange;
fs << "minDepth_mm" << minDepth_mm;
fs << "maxDepth_mm" << maxDepth_mm;
std::cout << "Stereo parameters write done: " << par_file << std::endl << std::endl;
return true;
}
void StereoSgbmPar::print()
{
std::cout << "Stereo SGBM parameters:" << std::endl;
std::cout << "------------------------------------------" << std::endl;
std::cout << "blockSize:\t\t" << blockSize << std::endl;
std::cout << "minDisparity:\t" << minDisparity << std::endl;
std::cout << "numDisparities:\t" << numDisparities << std::endl;
std::cout << "mode:\t\t" << mode << std::endl;
std::cout << "disp12MaxDiff:\t" << disp12MaxDiff << std::endl;
std::cout << "preFilterCap:\t" << preFilterCap << std::endl;
std::cout << "uniquenessRatio:\t" << uniquenessRatio << std::endl;
std::cout << "speckleWindowSize:\t" << speckleWindowSize << std::endl;
std::cout << "speckleRange:\t" << speckleRange << std::endl;
std::cout << "P1:\t\t" << P1 << " [Calculated]" << std::endl;
std::cout << "P2:\t\t" << P2 << " [Calculated]" << std::endl;
std::cout << "minDepth_mm:\t" << minDepth_mm << std::endl;
std::cout << "maxDepth_mm:\t" << maxDepth_mm << std::endl;
std::cout << "------------------------------------------" << std::endl << std::endl;
}
} // namespace tools
} // namespace sl_oc
#endif // STEREO_HPP
| cpp |
<reponame>kevinselwyn/pkmnapi
use pkmnapi_db::string::*;
use pkmnapi_db::*;
mod common;
macro_rules! get_type_name_test {
($test_name:ident, $type_id:expr, $type_name:expr) => {
#[test]
#[ignore]
#[allow(non_snake_case)]
fn $test_name() {
let db = common::load_rom();
match db.get_type_name(&$type_id) {
Ok(type_name) => assert_eq!(
type_name,
TypeName {
name: ROMString::from($type_name)
},
"Searched for type ID: {}",
$type_id
),
Err(_) => panic!(format!("Could not find type ID: {}", $type_id)),
};
}
};
}
get_type_name_test!(get_type_name_0, 0, "NORMAL");
get_type_name_test!(get_type_name_1, 1, "FIGHTING");
get_type_name_test!(get_type_name_2, 2, "FLYING");
get_type_name_test!(get_type_name_3, 3, "POISON");
get_type_name_test!(get_type_name_4, 4, "GROUND");
get_type_name_test!(get_type_name_5, 5, "ROCK");
get_type_name_test!(get_type_name_6, 6, "BIRD");
get_type_name_test!(get_type_name_7, 7, "BUG");
get_type_name_test!(get_type_name_8, 8, "GHOST");
get_type_name_test!(get_type_name_9, 9, "NORMAL");
get_type_name_test!(get_type_name_10, 10, "NORMAL");
get_type_name_test!(get_type_name_11, 11, "NORMAL");
get_type_name_test!(get_type_name_12, 12, "NORMAL");
get_type_name_test!(get_type_name_13, 13, "NORMAL");
get_type_name_test!(get_type_name_14, 14, "NORMAL");
get_type_name_test!(get_type_name_15, 15, "NORMAL");
get_type_name_test!(get_type_name_16, 16, "NORMAL");
get_type_name_test!(get_type_name_17, 17, "NORMAL");
get_type_name_test!(get_type_name_18, 18, "NORMAL");
get_type_name_test!(get_type_name_19, 19, "NORMAL");
get_type_name_test!(get_type_name_20, 20, "FIRE");
get_type_name_test!(get_type_name_21, 21, "WATER");
get_type_name_test!(get_type_name_22, 22, "GRASS");
get_type_name_test!(get_type_name_23, 23, "ELECTRIC");
get_type_name_test!(get_type_name_24, 24, "PSYCHIC");
get_type_name_test!(get_type_name_25, 25, "ICE");
get_type_name_test!(get_type_name_26, 26, "DRAGON");
| rust |
{"remainingRequest":"/home/ahmad/tiket/experiments/myproject/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!/home/ahmad/tiket/experiments/myproject/node_modules/cache-loader/dist/cjs.js??ref--0-0!/home/ahmad/tiket/experiments/myproject/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/ahmad/tiket/experiments/myproject/node_modules/vuetable-2/src/components/VuetablePagination.vue?vue&type=template&id=371f944c&","dependencies":[{"path":"/home/ahmad/tiket/experiments/myproject/node_modules/vuetable-2/src/components/VuetablePagination.vue","mtime":1517845987000},{"path":"/home/ahmad/tiket/experiments/myproject/node_modules/cache-loader/dist/cjs.js","mtime":1563287225222},{"path":"/home/ahmad/tiket/experiments/myproject/node_modules/vue-loader/lib/loaders/templateLoader.js","mtime":499162500000},{"path":"/home/ahmad/tiket/experiments/myproject/node_modules/cache-loader/dist/cjs.js","mtime":1563287225222},{"path":"/home/ahmad/tiket/experiments/myproject/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.tablePagination && _vm.tablePagination.last_page > 1),expression:\"tablePagination && tablePagination.last_page > 1\"}],class:_vm.css.wrapperClass},[_c('a',{class:['btn-nav', _vm.css.linkClass, _vm.isOnFirstPage ? _vm.css.disabledClass : ''],on:{\"click\":function($event){_vm.loadPage(1)}}},[(_vm.css.icons.first != '')?_c('i',{class:[_vm.css.icons.first]}):_c('span',[_vm._v(\"«\")])]),_c('a',{class:['btn-nav', _vm.css.linkClass, _vm.isOnFirstPage ? _vm.css.disabledClass : ''],on:{\"click\":function($event){_vm.loadPage('prev')}}},[(_vm.css.icons.next != '')?_c('i',{class:[_vm.css.icons.prev]}):_c('span',[_vm._v(\" ‹\")])]),(_vm.notEnoughPages)?[_vm._l((_vm.totalPage),function(n){return [_c('a',{class:[_vm.css.pageClass, _vm.isCurrentPage(n) ? _vm.css.activeClass : ''],domProps:{\"innerHTML\":_vm._s(n)},on:{\"click\":function($event){_vm.loadPage(n)}}})]})]:[_vm._l((_vm.windowSize),function(n){return [_c('a',{class:[_vm.css.pageClass, _vm.isCurrentPage(_vm.windowStart+n-1) ? _vm.css.activeClass : ''],domProps:{\"innerHTML\":_vm._s(_vm.windowStart+n-1)},on:{\"click\":function($event){_vm.loadPage(_vm.windowStart+n-1)}}})]})],_c('a',{class:['btn-nav', _vm.css.linkClass, _vm.isOnLastPage ? _vm.css.disabledClass : ''],on:{\"click\":function($event){_vm.loadPage('next')}}},[(_vm.css.icons.next != '')?_c('i',{class:[_vm.css.icons.next]}):_c('span',[_vm._v(\"› \")])]),_c('a',{class:['btn-nav', _vm.css.linkClass, _vm.isOnLastPage ? _vm.css.disabledClass : ''],on:{\"click\":function($event){_vm.loadPage(_vm.totalPage)}}},[(_vm.css.icons.last != '')?_c('i',{class:[_vm.css.icons.last]}):_c('span',[_vm._v(\"»\")])])],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }"]} | json |
// Type definitions for redux-little-router 15.0.0
// Project: https://github.com/FormidableLabs/redux-little-router
// Definitions by: priecint <https://github.com/priecint>
// parkerziegler <https://github.com/parkerziegler>
// TypeScript version: 2.4
import * as React from "react";
import { Reducer, Middleware, StoreEnhancer } from "redux";
export type ObjectLiteral<T> = { [key: string]: T };
export type Query = ObjectLiteral<string>;
export type Params = ObjectLiteral<string>;
/* check out https://basarat.gitbooks.io/typescript/docs/types/index-signatures.html to read more
about what is happening here. */
export type Routes = ObjectLiteral<ObjectLiteral<any>>;
export type LocationOptions = {
persistQuery?: boolean;
updateRoutes?: boolean;
};
export interface HistoryLocation {
hash?: string,
key?: string
pathname?: string,
search?: string,
state?: ObjectLiteral<any>,
}
export interface Location extends HistoryLocation {
basename?: string;
options?: LocationOptions;
params?: Params;
previous?: Location;
query?: Query;
queue?: Array<Location>;
result?: ObjectLiteral<any>;
routes?: Routes;
}
export interface State {
router: Location;
}
export type Href = string | Location;
export const LOCATION_CHANGED = 'ROUTER_LOCATION_CHANGED';
export const PUSH = 'ROUTER_PUSH';
export const REPLACE = 'ROUTER_REPLACE';
export const GO = 'ROUTER_GO';
export const GO_BACK = 'ROUTER_GO_BACK';
export const GO_FORWARD = 'ROUTER_GO_FORWARD';
export const POP = 'ROUTER_POP';
export const BLOCK = 'ROUTER_BLOCK';
export const UNBLOCK = 'ROUTER_UNBLOCK';
export const REPLACE_ROUTES = 'ROUTER_REPLACE_ROUTES';
export const DID_REPLACE_ROUTES = 'ROUTER_DID_REPLACE_ROUTES';
export type LocationChangedAction = {
type: typeof LOCATION_CHANGED;
payload: Location;
};
export type PushAction = {
type: typeof PUSH;
payload: Location;
}
export type ReplaceAction = {
type: typeof REPLACE;
payload: Location;
};
export type GoAction = {
type: typeof GO;
payload: number;
};
export type GoBackAction = {
type: typeof GO_BACK;
};
export type GoForwardAction = {
type: typeof GO_FORWARD;
};
export type BlockAction = {
type: typeof BLOCK;
payload: BlockCallback;
};
export type UnblockAction = {
type: typeof UNBLOCK;
};
export type ReplaceRoutesAction = {
type: typeof REPLACE_ROUTES;
payload: {
routes: Routes;
options: {
updateRoutes: boolean
};
};
};
export type RouterActions =
| LocationChangedAction
| PushAction
| ReplaceAction
| GoAction
| GoBackAction
| GoForwardAction
| BlockAction
| UnblockAction
| ReplaceRoutesAction;
export function initializeCurrentLocation(location: Location): LocationChangedAction;
export function push(href: Href, options?: LocationOptions): PushAction;
export function replace(href: Href, options?: LocationOptions): ReplaceAction;
export function go(index: number): GoAction;
export function goBack(): GoBackAction;
export function goForward(): GoForwardAction;
export function block(historyShouldBlock: BlockCallback): BlockAction;
export function unblock(): UnblockAction;
export function replaceRoutes(routes: Routes): ReplaceRoutesAction;
type HistoryAction = 'PUSH' | 'POP' | 'REPLACE';
type ListenCallback = (location: Location, action?: HistoryAction) => void;
type BlockCallback = (location: Location, action?: HistoryAction) => string;
type Unsubscribe = () => void;
export interface History {
length: number;
location: Location;
action: HistoryAction;
listen(callback: ListenCallback): Unsubscribe;
push(path: string, state?: ObjectLiteral<any>): void;
push(location: Location): void;
replace(path: string, state?: ObjectLiteral<any>): void;
replace(location: Location): void;
go(n: number): void;
goBack(): void;
goForward(): void;
block(message: string): void;
block(callback: BlockCallback): Unsubscribe;
}
export interface Router {
reducer: Reducer<Location>;
middleware: Middleware;
enhancer: StoreEnhancer<Location>;
}
export interface BrowserRouterArgs {
routes: Routes;
basename?: string;
history?: History;
}
export interface HashRouterArgs {
routes: Routes;
basename?: string;
hashType?: string;
history?: History;
}
export interface ExpressRouterArgs {
routes: Routes;
request: {
path: string;
baseUrl: string;
url: string;
query: ObjectLiteral<string>;
passRouterStateToReducer?: boolean;
};
}
export interface HapiRouterArgs {
routes: Routes;
request: {
path: string;
url: string;
query: ObjectLiteral<string>;
};
}
export function routerForBrowser(options: BrowserRouterArgs): Router;
export function routerForExpress(options: ExpressRouterArgs): Router;
export function routerForHapi(options: HapiRouterArgs): Router;
export function routerForHash(options: HashRouterArgs): Router;
export function immutableRouterForBrowser(options: BrowserRouterArgs): Router;
export function immutableRouterForExpress(options: ExpressRouterArgs): Router;
export function immutableRouterForHapi(options: HapiRouterArgs): Router;
export function immutableRouterForHash(options: HashRouterArgs): Router;
export interface LinkProps {
className?: string;
href: Href;
persistQuery?: boolean;
replaceState?: boolean;
target?: string;
onClick?: (event: Event) => any;
style?: ObjectLiteral<any>;
location?: Location;
push?: (href: Href, options: LocationOptions) => {
type: string;
payload: Location;
};
replace?: (href: Href, options: LocationOptions) => {
type: string;
payload: Location;
};
activeProps?: ObjectLiteral<any>;
}
export declare class Link extends React.Component<LinkProps, {}> {}
export declare class ImmutableLink extends React.Component<LinkProps, {}> {}
export declare class PersistentQueryLink extends React.Component<LinkProps, {}> {}
export declare class ImmutablePersistentQueryLink extends React.Component<LinkProps, {}> {}
export interface FragmentProps {
location?: Location;
matchRoute?: Function;
matchWildcardRoute?: Function;
forRoute?: string;
parentRoute?: string;
withConditions?: (location: Location) => boolean;
forNoMatch?: boolean;
parentId?: string;
style?: ObjectLiteral<any>;
}
export declare class Fragment extends React.Component<FragmentProps, {}> {}
export declare class ImmutableFragment extends React.Component<FragmentProps, {}> {}
| typescript |
{"jquery.flipcountdown.css":"sha256-8uZk3jQYMH7JBrGX0gEdugD1R43o3PJbilazGQBXGQQ=","jquery.flipcountdown.js":"sha256-3CLta1xpOx65OWHJVp2ESMgRPjxVBaLduYhEP1xRyuA=","jquery.flipcountdown.min.css":"sha256-JI9+1tkNvYcJQdnuXMH3XWaU3T6BKjDHgMuazcppd2M=","jquery.flipcountdown.min.js":"sha256-4NJBOTQkLVH6qoWejANhb+uJgKa7aE7lLowZM2n3XPc="}
| json |
Aron Piper (Ander)
The Elite actor stars in Après toi le chaos, a thriller in which he lends his features to Iago, a problematic high school student (once again!) Who had an unhealthy relationship with his now deceased teacher. Raquel, his replacement, will discover everything about their passionate story … Season 1 has 8 episodes.
Ester Expósito (Carla)
The interpreter of Carla in Elite made the news at least in October with Someone Must Die, Netflix mini-series in 3 episodes of which here is the synopsis: in Spain of the 1950s, a couple brings their son back from Mexico with the aim of marrying him, but is flabbergasted when he arrives alongside a ballet dancer. The actress lends her features to Cayetana, a girl from a good family who has to accept an arranged marriage against her will. A character who is ultimately not so far from that of Elite.
But we can also see Ester Exposito in another register. She is in the casting of a feature film titled Cuando los Ángeles Duermen, available on the platform exclusively since last year. This Spanish thriller follows a father whose life turns into a nightmare when he mows down two teenage girls with his car.
Jaime Lorente (Nano)
Before arriving in Elite, where he reunited with two of his former playing partners, Jaime Lorente was part of the team of robbers from La Casa de Papel. Since then, the actor has multiplied projects with Netflix. In April 2019 we could see him in Who would you take to a deserted island?, An intimate film behind closed doors where he notably gives the answer to María Pedraza, his partner in life. The story is that of four long-time roommates whose lives are turned upside down when a secret is revealed.
If you’re looking for more action, note that Jaime Lorente is also in the cast of Gun City, a Spanish war film directed by Dani de la Torre: In 1921, when anarchists and police clash in Barcelona, an agent plays on the two fronts to find out who stole weapons and avoid a civil war. Gun City is available from us exclusively on Netflix and is aimed at fans of thrillers.
Maria Pedraza (Marina)
If many have discovered Maria Pedraza in La Casa de Papel (where she plays Alison Parker) or in Elite (her character is at the heart of season 1), the young Spanish actress is not at her first attempt. We can also see one of his old productions on Netflix, Amar. A film all smoothly around Laura and Carlos, a couple who live their first romance, made of intensity, but also of fragility, as shown by the small realities of everyday life that tarnish their ideal.
Danna Paola (Lucretia)
When she is not in the studio to record her songs, Danna Paola has a series of films. If you liked her bitchy side in Elite, where she plays Lu, she plays a similar role in A Simple Complication. Mexican actress is playing this time a 17 year old teenager who learns that the TV presenter she loves is engaged and who draws her best friend in a complicated ploy to prevent her marriage. A not-so-romantic comedy, also available exclusively on Netflix.
Georgina Amoros (Cayetana)
Georgina Amoros joined the cast of the Elite series in season 2 but her character left no one indifferent. If you want to see the actress in another role, know that she is the poster of a comic and absurd series called Bienvenidos a la familia. Broadcast on the Catalan Catalan channel TV3 since January 2018, it is available with us on Netflix. At the moment, only season 1 is available.
| english |
West Indies’ star all-rounder Dwayne Bravo has signed for Big Bash League(BBL) outfit Melbourne Renegades for the upcoming season. The one-year deal will see Bravo returning to Melbourne for his third consecutive season at the Renegades.
Meanwhile, more good news was in store for the Melbourne-based franchise as their star skipper Aaron Finch too signed a long-term deal. Finch,the second-ranked T20 batsman in the world, committed his future with the Renegades until the end of BBL|08.
“We’re delighted Aaron has agreed to extend his relationship with the club. As captain, he is a critical part of our Renegades family and a big factor for our members and fans. His record in the BBL needs no introduction and we’re looking forward to the next three seasons,”Coventry said.
The red half of the Melbourne has made just one final appearance in five seasons and it seems they are desperate to improve their record in the league. Before Bravo, they signed veteran spinner Brad Hogg and young batsman Marcus Harris from the Perth Scorchers.
Meanwhile, the Renegades are still in search of a good replacement for their last season’s recruit Chris Gayle. The Renegades ended their contract with the star West Indies batsman after he was involved in a sexism row with an Australian journalist. They are also on the lookout for a new head coach after David Saker was named as Australia’s fast-bowling coach last month.
Bravo,who won the T20 World Cup this year with West Indies, is currently playing in Caribbean Premier League. The all-rounder has been in good form and can help the Renegades to go far in the upcoming season.
| english |
<filename>fasternix_stratalorn/__init__.py<gh_stars>1-10
# Fasternix Stratalorn - Python module/library for saving the list of translators of a given Transifex project into a JSON file.
# Copyright (C) 2017 <NAME> <contact at funilrys dot com>
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
# Original Version: https://github.com/funilrys/Fasternix-Stratalorn
from getpass import getpass
from .core import Core
from .helpers import clear_screen
def get(username, project_slug, **args):
"""
Get the list of translators from a Transifex project.
:param username: A string, A Transifex username. (Must be a maintainer of the project)
:param project_slug: A string, A Transifex project_slug.
:param return_dict: A bool, True = return a dict.
:param return_list: A bool, True = return a list.
:param save_in_file: A bool, True = save in file.
"""
password = getpass('<PASSWORD>: ')
clear_screen()
return Core(username, password, project_slug, **args).get()
| python |
<filename>js/collection/Roy Fisher/The Afterlife.json
{
"author": "<NAME>",
"classification": "Free Verse",
"keywords": [
"Living",
"Death",
"Time",
"Brevity",
"Nature",
"Landscapes",
"Pastorals",
"Social Commentaries"
],
"period": "",
"reference": "http://www.poetryfoundation.org/poem/245054",
"region": "England",
"text": [
"I\u2019ve lived within half a mile of it",
"for twenty years. West",
"by the black iron weather-hen",
"half-strangled with clematis",
"on the garage roof",
"I can locate it. Past a low ridge",
"in the cliff face of a limestone dale",
"there\u2019s a cave in the bushes.",
"When the old tigers",
"were long since gone, leaving their",
"teeth, the valley people",
"would climb there with the dead",
"they thought most useful;",
"push them well in,",
"take them out again,",
"walk them around:",
"\u2018They\u2019re coming! They\u2019re coming\u2019",
"Walk them around the valley. Drop",
"here a finger",
"for the god that is a rat or a raven,",
"here a metatarsal",
"to set under the hearth for luck.",
"And what was luck?",
"The afterlife back then",
"was fairly long:",
"nothing demented like for ever,",
"nothing military. The afterlife",
"would come to the party."
],
"title": "The Afterlife",
"year": ""
} | json |
Jan. 28, 2002 -- Couples who've seen enough of the stork have two basic choices: birth control or sterilization.
Birth control can be very effective but has its drawbacks. Condoms and diaphragms get in the way, and health risks haunt users of the pill, implants, or IUDs. For those who've had enough little bundles of joy for one lifetime, sterilization is an attractive option.
The downside: somebody has to take responsibility. Usually it's the woman. In the U.S., female sterilization is more than 2.5 times more common than male sterilization. Yet a woman who has her tubes tied faces a far more complex, risky, and expensive operation than a man who has a vasectomy.
New, "no-scalpel" vasectomies have made male sterilization simpler. Will it ever get simple enough for more men to step forward? Maybe.
"With the current incisionless approach, one still has to make a puncture in the skin," Nathaniel M. Fried, PhD, tells WebMD. "We are trying to take things one step further. We want to completely avoid bleeding and scrotal pain."
Fried, an assistant professor of urology at Johns Hopkins University, leads a research team working on an ultrasound vasectomy machine. It's not ready for prime time -- animal studies continue -- but a technology firm is backing the approach with an eye to eventual human tests.
How does it work? A vasectomy cuts a piece out of the tube -- the vas deferens-- that lets sperm leave the testicles and enter the semen. This is why a man with a vasectomy is said to be "shooting blanks." His sexual function and semen production is otherwise normal -- except that he can no longer get a woman pregnant.
The ultrasound device has three parts. One is a water balloon that covers the skin. Chilled water runs through the balloon to keep the skin from burning. The second part is a clamp that holds the vas deferens in place. The third part is an ultrasound machine that focuses sound waves on the vas deferens. At the point of focus, the ultrasound energy creates intense heat.
"The idea is to heat up or cook the vas," Fried says. "It immediately cooks the tissue so that the vas closes. Then healing of the tissue creates scar tissue that further blocks the vas."
In theory, this would be more palatable to men than the current no-scalpel technique. Invented in China, the procedure first numbs the scrotum with an injection of local anesthetic into the skin. With a needle-like tool, the doctor makes a small hole in the scrotal sac. The flexible skin around the puncture is stretched, and the doctor uses a small instrument to pull the vas from each testicle through the opening. The vas is then severed and closed, often with a cauterizing tool that seals the vas shut. If done on a Friday, a man can go back to work on Monday -- and play sports the next weekend.
Even new, minimally invasive surgery to tie a woman's fallopian tubes isn't nearly as simple or painless as that. Yet it's still too scary for lots of guys.
Urologist Jay Sandlow, MD, is director of the male fertility clinic at the University of Iowa. He recently led a study that looked at the psychological issues of men who had decided to have vasectomies.
"Originally, I thought we would find that a certain number of guys would have concerns about the sudden loss of fertility -- one day you're fertile and the next day you're not," Sandlow tells WebMD. "I was surprised that the concerns about the finality of vasectomy weren't that much of an issue. Guys are much more concerned about pain and about their fear of the unknown."
Fried thinks the ultrasound device will address exactly this issue.
"It doesn't make much sense that female sterilization is still much more common than vasectomy," he says. "Presumably there is a psychology involved here in the sense of social or cultural issues of whether a couple chooses male or female sterilization -- and it falls on the female most often. If we can say we don't make any cuts in the scrotum, it may make it more popular for men."
There are still a certain number of men who regret having a vasectomy. Sandlow says this is most likely to happen when a couple finds that their financial and personal situations make them think again about having children. Sometimes -- but not always -- a vasectomy can be undone.
Vasectomy reversal is much more complicated than vasectomy itself. It's also much more expensive and there's no guarantee of success.
Very few men report erection or ejaculation problems after vasectomy. In nearly every case, this is a psychological problem and not a physical one. Even so, these men suffer. Sandlow says that in his experience, these problems go away as the man adjusts to being infertile. Sometimes he makes a referral to psychological counseling. In rare cases -- when the men exhausted all other solutions -- he performed vasectomy reversals.
"You do have guys that come and say their sex drive is less, their erections are not as good. But I can find nothing physically wrong with them," Sandlow says. "If they don't get better after psychological counseling, they do get better with a reversal. The few guys for whom I've performed a reversal in that situation have done very well."
Sandlow agrees that vasectomy is the best choice for couples seeking sterilization -- and he says it's not just because it's safer, cheaper, and simpler than female sterilization.
"If nothing else, it gives the man some participation in the whole process," he says. "A lot of guys come in for a vasectomy because both conception and contraception have always been the woman's responsibility. Here's the guy's chance to contribute and take some responsibility of his own."
| english |
<gh_stars>1-10
package April2021Leetcode;
public class _0678ValidParenthesisString {
public static void main(String[] args) {
System.out.println(checkValidString("()"));
System.out.println(checkValidString("(*)"));
System.out.println(checkValidString("(*))"));
}
public static boolean checkValidString(String s) {
if (s == null || s.length() == 0)
return true;
return checkValidString(0, 0, 0, s);
}
public static boolean checkValidString(int index, int left, int right, String s) {
if (index == s.length() && left == right) {
return true;
}
if (index >= s.length() || right > left)
return false;
char c = s.charAt(index);
if (c == '(') {
return checkValidString(index + 1, left + 1, right, s);
} else if (c == ')') {
return checkValidString(index + 1, left, right + 1, s);
} else {
return checkValidString(index + 1, left, right, s) || checkValidString(index + 1, left + 1, right, s)
|| checkValidString(index + 1, left, right + 1, s);
}
}
}
| java |
<gh_stars>1-10
{
"KSRobot_MLX90614|block": "KSRobot_MLX90614",
"KSRobot_MLX90614.Temperature_State.ObjectTempC|block": "物體 攝氏溫度",
"KSRobot_MLX90614.Temperature_State.AmbientTempC|block": "環境 攝氏溫度",
"KSRobot_MLX90614.Temperature_State.ObjectTempF|block": "物體 華氏溫度",
"KSRobot_MLX90614.Temperature_State.AmbientTempF|block": "環境 華氏溫度",
"KSRobot_MLX90614.read_temperature|block": " 測量%state "
}
| json |
Editor’s note: This story was originally published in April 2017, on the 25th anniversary of the civil unrest in Los Angeles that began when four police officers were acquitted in the beating of Rodney King. We are republishing it now as America again reckons with racial injustice, this time on a national scale, after the killing of George Floyd.
LOS ANGELES – A gray light pole outside the corner gas station bears two notices. One for a young woman who has gone missing. Below it, one for a puppy, also gone. They are faded by the sun.
There is a sandwich shop across the street, along with another gas station, and stores selling auto parts, cell phones and marijuana. Cars pass. People come and go. Another afternoon, this one breezier than most, but otherwise a regular day at the end of another week.
Most of the nearby homes are fenced in, many with bars on the first-floor windows. A few lots are empty and dusty. Life seems to be doing a reasonable enough job of fending off decay here, 25 years later after the Los Angeles riots, at the intersection of Florence and Normandie. It is a fight, though, hard enough and bloody enough, every single day.
I’m not sure what I expect to find here. But I sit for a while and watch it go by.
There is a statue of a man on a hill eight miles away. The statue is new, installed just a week before. When people see it for the first time they call it by name, almost every one of them, as though involuntarily. They rise up along the hillside until only their heads are visible.
“Jackie,” they say.
Young and old, in strollers and wheelchairs, alone and hand-in-hand, they ride the escalator to the left field reserve level to see him. They take pictures. They drag their hands across his back, where it leans over a concrete pedestal and into his slide toward an unseen home plate. They whisper in their children’s ears about that day 70 years ago, and their children look up thoughtfully and nod and ask where the cotton candy is.
So, after asking directions — “It’s outside,” the elderly black gentleman said. “Go around the corner and you’ll see it, 15 or 20 feet over. It’s beautiful.” — I sit and watch for a while.
And he was right. It is beautiful.
On a Wednesday night in April 1992, in the sixth inning of a game against the Philadelphia Phillies at Dodger Stadium, Billy DeLury walked the length of the bench in the third-base dugout. A blade of a man who’d served the organization since 1950, DeLury spread word to the players about the danger just eight miles away.
When the game is over, he told them, drive north, away from the rioting, the fires, the looting. No matter where you live, he said, go north and find a way around the smoking city. Hansen’s 30-minute drive to his Long Beach townhouse required more than an hour. He watched the news until nearly dawn, blindsided.
Mike Scioscia batted behind Hansen that night, three spots behind Eric Davis and four behind Darryl Strawberry. Davis and Strawberry were L.A. guys from the neighborhoods just south of downtown, old pals who’d way back when, made up two-thirds of an outfield for the Compton Moose in the Babe Ruth League. Davis went to Fremont High, Strawberry to Crenshaw. As DeLury went from man to man, to groups of players, explaining what little he knew, that a jury had acquitted the policemen who’d beaten the man on that video, that parts of the city were on fire and worse, and many wondered about Davis and Strawberry. Their families were there, in their communities.
Still, Scioscia said, “None of us understood the magnitude of what was happening.
The Dodgers lost in just under three hours. They scattered, north and away. The Phillies boarded a bus for their downtown hotel. Later, former infielder Dale Sveum recalled, Phillies players sat in silence on that drive, staring out the windows, many with baseball bats across their laps, just in case. Thursday’s game was canceled. A weekend’s worth of games against the Montreal Expos, too.
In an apartment in Santa Monica, a 19-year-old UCLA student and ballplayer named Dave Roberts — everyone called him DR — watched parts of the city erupt. He’d been raised on military bases, where the greater measure of a man was in the number of stripes on his sleeve. He’d become comfortable on a baseball field, where you could play or you could not, where you were a good teammate or you were not, where he played his home games at a place called Jackie Robinson Stadium. Roberts was part African-American, part Japanese, in a town drawing lines.
He did choose, too.
In about a week’s time, more than 2,000 people were injured. About 50 of those died. Damages were estimated in the billions of dollars.
It was never about the baseball. It, too, was a bystander, looking out over those eight miles, counting the hours and the wounded. Sixteen days later, more than 41,000 people returned to Dodger Stadium. Hansen was at third base, Scioscia at catcher, Davis in left field. Strawberry had injured his back. Strawberry’s brother, the cop, had been injured, but was alive. The custom interiors shop Davis and Strawberry owned in the old neighborhood was undamaged.
“We’re just on the outside looking in and still getting some perspective,” Hansen recalled. “I could not imagine being in the middle of that, in that perspective.
Twenty-five years since, the corner of Florence and Normandie still carries the reputation. Eight miles away, up on that hill at Dodger Stadium, folks ride the escalator to say the name.
On the field below, Dave Roberts stands near the third-base dugout, in the same place Billy DeLury had found it that night.
He pauses for a moment, perhaps to consider the 19-year-old him, the young man who’d watched it all go by, who’d measured injustice against reaction, against effect, and carried that along with him.
More from Yahoo Sports:
| english |
BAKSA: The National Fish Farmers' Day, 2022-cum-National Campaign on 'Emerging Aquaculture Systems and Practices' was celebrated by ICAR-Central Inland Fisheries Research Institute, Regional Centre (CIFRI RC), Guwahati at Charan Beel in the Baksa district on Sunday.
According to a press release, the programme was organized under the overall guidance of Dr BK Das, Director, ICAR-CIFRI, Barrackpore, and Dr BK Bhattacharjya, Head (Acting), ICAR-CIFRI RC, Guwahati. Dr Rajesh Kumar, Director, ICAR-ATARI, Zone-VI, Guwahati acted as the chief guest of the programme. Dr AK Yadav, Dr Pronob Das, Dr SCS Das, Senior Scientists; Dr S Borah, Scientist, and A Kakati, STA, acted as resource persons in the programme. The programme was attended by more than 60 tribal fishers/ farmers (including 15 women) of the locality under the Dhulabari Charanpar Janajati Unnayan Samity, Deulkuchi led by Naren Basumatary (president) and Jadu Swargiary (secretary).
Dr Pronob Das welcomed the guests and participants for the programme. He explained the purpose of the day-long programme. He also briefed about the role of ICAR-CIFRI for development of open water fisheries in the Northeast region. Amulya Kakati spoke about history and significance of National Fish Farmers' Day. Dr Simanku Borah briefly explained about the interventions of ICAR-CIFRI in Charan Beel. Jadu Swargiary thanked ICAR-CIFRI for their support in the form scientific and technical guidance, training to the fishers and for providing input materials (fish seed, CIFRI CAGEGROW feed, CIFRI HDPE pen, etc. ,) for supplementary stocking and pen culture in the beel. He also informed the gathering about enhancement of fish production of Charan Beel and fishers' income post ICAR-CIFRI interventions.
Dr SCS Das briefly explained about the advancement of aquaculture technologies. Dr Rajesh Kumar congratulated ICAR-CIFRI for organizing such a field programme for the tribal fish farmers. He urged the fishers to adopt integrated approach in aquaculture for overall development. He promised to provide further support from ICAR-ATARI through KVK, Baksa district. Dr BK Bhattacharjya urged the local fishers to continue fish stock enhancement and pen culture on their own beyond the project period. He promised to provide technical support to the local community.
Also Watch: | english |
{
"name": "run",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node index.js",
"docker:build": "docker build . --tag gcr.io/fly-xc/trackers",
"docker:push": "docker push gcr.io/fly-xc/trackers",
"docker:deploy": "gcloud run deploy trackers --image gcr.io/fly-xc/trackers --platform managed",
"deploy": "npm run docker:build && npm run docker:push && npm run docker:deploy"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@google-cloud/datastore": "^6.1.0",
"geojson": "^0.5.0",
"ioredis": "^4.17.3",
"koa": "^2.13.0",
"koa-bodyparser": "^4.3.0",
"koa-router": "^9.1.0",
"request-zero": "^0.2.6",
"xmldom": "^0.3.0"
}
} | json |
AOL has hired Brad Garlinghouse, the former Yahoo exec who penned the "Peanut Butter Manifesto," as president of its Internet and mobile communications. Garlinghouse will aim to expand AOL's e-mail and instant messaging services and bolster the company's Silicon Valley footprint.
Garlinghouse had roughly the same gig at Yahoo. In 2006, Garlinghouse highlighted problems at Yahoo and noted that the company was spread too thin like peanut butter. That rant became known as the "Peanut Butter Manifesto."The move to hire Garlinghouse (statement, Techmeme) is part of AOL's refocusing on communications and content. Time Warner is spinning AOL off to shareholders by the end of the year. And AOL CEO Tim Armstrong, a former Google exec who joined the company in March, has been reshaping the company. In a statement, Armstrong called Garlinghouse (right) an "all-star in the Internet industry" who can grow AOL's communications products. Garlinghouse will also be the West Coast lead AOL Ventures from the company's Mountain View campus.
As for Garlinghouse, he said he's joining AOL at "this pivotal moment in its history." Garlinghouse most recently was an in-house senior advisor at Silverlake Partners. He also spent six years at Yahoo as senior vice president of communications and communities. He joined Yahoo in 2003.
Armstrong's revitalization plan for Yahoo revolves around communications, content, local and mapping and AOL Ventures. AOL's dial-up business will hang around to fund expansion into other areas.
Garlinghouse will have his work cut out. AOL faces tough competition in messaging from Yahoo. In addition, Gmail has surpassed AOL as the No. 3 email service in the U.S.
| english |
{"pl_cbflag":"0","pl_disc":"2014","pl_pelink":"http://exoplanet.eu/catalog/kepler-176_c/","st_rad":"0.89","pl_imgflag":"0","pl_facility":"Kepler","st_teff":"5232.00","pl_astflag":"0","pl_pnum":"3","st_optmag":"14.550","ra":"294.667956","pl_discmethod":"Transit","pl_hostname":"Kepler-176","pl_tranflag":"1","pl_rade":"2.600","pl_radj":"0.232","pl_name":"Kepler-176 c","pl_rvflag":"0","rowupdate":"2014-05-14","pl_telescope":"0.95 m Kepler Telescope","pl_edelink":"http://exoplanets.org/detail/Kepler-176_c","pl_omflag":"0","pl_orbper":"12.75971200","dec":"43.853259"} | json |
{
"name": "coops",
"version": "1.0.0",
"repository": "<EMAIL>:hoshi-hitsuji/coops.git",
"author": "tnRaro <<EMAIL>>",
"license": "MIT",
"private": true,
"workspaces": [
"services/*"
],
"dependencies": {},
"devDependencies": {
"@babel/core": "^7.14.0",
"@babel/preset-env": "^7.14.0",
"@babel/preset-typescript": "^7.13.0",
"@types/jest": "^26.0.23",
"@types/node": "^14.14.37",
"babel-jest": "^26.6.3",
"esbuild": "^0.12.1",
"jest": "^26.6.3",
"typescript": "^4.2.3"
},
"optionalDependencies": {
"@shopify/eslint-plugin": "^40.2.1",
"@typescript-eslint/eslint-plugin": "^4.22.0",
"@typescript-eslint/parser": "^4.22.0",
"eslint": "^7.24.0",
"husky": "^6.0.0",
"lint-staged": "^10.5.4",
"prettier": "^2.2.1"
},
"scripts": {
"lint": "yarn eslint:fix",
"format": "yarn prettier:format",
"eslint:lint": "eslint . --ext .ts,.tsx",
"eslint:fix": "eslint . --ext .ts,.tsx --fix",
"prettier:format": "prettier --write .",
"prettier:check": "prettier --check .",
"husky:install": "husky install",
"add-service": "node ./tools/add-service.js",
"web": "yarn workspace @coops/web",
"test": "jest",
"db-rooms": "yarn workspace @coops/db-rooms",
"db-participants": "yarn workspace @coops/db-participants",
"sse": "yarn workspace @coops/sse",
"redis": "yarn workspace @coops/redis",
"core": "yarn workspace @coops/core",
"error": "yarn workspace @coops/error",
"logic": "yarn workspace @coops/logic",
"build:core": "yarn core build",
"build:error": "yarn error build",
"build:redis": "yarn redis build",
"build:logic": "yarn logic build",
"types:core": "yarn core types",
"types:error": "yarn error types",
"types:redis": "yarn redis types",
"types:logic": "yarn logic types",
"build": "yarn build:core && yarn build:error && yarn build:redis && yarn build:logic",
"types": "yarn types:core && yarn types:error && yarn types:redis && yarn types:logic"
}
}
| json |
It was two years ago that Bihar social welfare director Raj Kumar first heard about 10-year-old Prakash (name changed). The boy, who spoke only Bangla and suffered from epilepsy, was found stranded at Muzaffarpur railway station by the police in 2015. He had apparently got lost while taking a train all by himself from his home in West Bengal’s Purba Bardhaman to his grandparents’ place in Malda. Social welfare officials shifted Prakash to a state-run children’s home in Saharsa. His daily needs were taken care of there but his future remained uncertain.
Moved by the boy’s plight, Kumar stepped in. His first priority was to address his medical condition. Prakash underwent treatment at government and private hospitals in Muzaffarpur and Patna. Within a year, his seizures came under control. But Kumar, a 2010 batch IAS officer, had a bigger goal. He wanted to see Prakash reunited with his family. His team tried to trace back Prakash’s ill-fated train journey, visited towns and cities in West Bengal and sought the help of officials in Bengal and Jharkhand, but without any headway.
Kumar, then, hit upon the idea of approaching the UIDAI (Unique Identification Authority of India) to see if Prakash’s biometric details would find a match in their database. “Our search threw up a match in Purba Bardhaman district. The team that was sent there made a heartwarming breakthrough. The boy, who had been missing for five years, returned to his family this February,” says Kumar. He has had many such successes. On September 15, Kumar’s team handed over a 14-year-old deaf and mute girl to her family in Araria district. The girl was found lost at the Araria bus stand on March 3. Social welfare officials sent her to the shelter home in Kishanganj and worked for months to find her parents.
Using the biometric method, the social welfare department has been able to send 70 missing children back to their homes this year. Of them, 17 were girls; four, with special needs, were from Bengal and Jharkhand. “Reuniting children with their parents gives me utmost satisfaction,” beams Kumar.
Kumar’s initiatives go beyond helping lost children. He has arranged professional training in Bengaluru for 14 sexually abused girls, including several rescued from the infamous Muzaffarpur shelter home in 2018. He also convinced the Bihar government to allocate more funds towards food supplies at the child shelters and got cradles placed in government hospitals to dissuade couples from recklessly abandoning their babies in, say, dumpsters or on train tracks.
As a bureaucrat, 43-year-old Kumar does not have roads, buildings and big projects to showcase. He feels immensely content trying to give disadvantaged children a second chance. “I feel blessed because my job has given me the opportunity to make a difference where it matters the most,” he says.
There are a lot of myths around carbs and often people go on low-carb or carb-free diets without realising how it may impact their moods and emotions. When we eat carbs, it leads to the secretion of insulin in our bodies. Along with insulin, serotonin, a happy hormone and neurotransmitter, is also released. This helps make us happy and reduce stress. It is important to eat complex carbs such as millets, wheat, brown rice and not just processed simply like juice or candy or pastries. Processed carbs lead to a spike and fall in sugar levels which then makes you constantly crave sugar or carbs, leading eventually to weight gain and health complications.
Vitamin B6 is also connected with the regulation of serotonin. Foods high in this are green leafy vegetables, nuts, seeds and white meat.
A small amount of nuts is good. We recommend the serving size depending on a person’s weight and health. Nuts are fatty and so should not be consumed in large quantities. However, they do contain essential vitamins, including magnesium, the deficiency of which makes the body susceptible to stress, which then increases magnesium deficiency.
Salmon, mackerel have omega 3 fatty acids that help nourish the brain and improve the secretion and regulation of various mood-enhancing hormones.
Naturally fermented food, like yoghurt, helps improve our gut health. Our gut is our second brain and if you do not look after it, it will impact your mood and happiness. One shouldn’t consider the body as a dumping ground but give the gut a break once in a while by eating easily digestible food and probiotics. | english |
<filename>java/jdbc/UDFsrv.java<gh_stars>10-100
//***************************************************************************
// (c) Copyright IBM Corp. 2007 All rights reserved.
//
// The following sample of source code ("Sample") is owned by International
// Business Machines Corporation or one of its subsidiaries ("IBM") and is
// copyrighted and licensed, not sold. You may use, copy, modify, and
// distribute the Sample in any form without payment to IBM, for the purpose of
// assisting you in the development of your applications.
//
// The Sample code is provided to you on an "AS IS" basis, without warranty of
// any kind. IBM HEREBY EXPRESSLY DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR
// IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Some jurisdictions do
// not allow for the exclusion or limitation of implied warranties, so the above
// limitations or exclusions may not apply to you. IBM shall not be liable for
// any damages you suffer as a result of using, copying, modifying or
// distributing the Sample, even if IBM has been advised of the possibility of
// such damages.
//***************************************************************************
//
// SOURCE FILE NAME: UDFsrv.java
//
// Compile: the utility file and the source file with:
// javac Util.java
// javac <filename>.java
//
// Run: java <filename> [<db_name>] <username> <pwd>
// or
// java <filename> [<db_name>] <server_name> <port_num> <username> <pwd>
//
// SAMPLE: Provide UDFs to be called by UDFcli.java
//
// Parameter Style used in this program is "DB2GENERAL".
//
// Steps to run the sample with command line window:
//
// I) If you have a compatible make/nmake program on your system,
// do the following:
// 1. Compile the server source file UDFsrv (this will also compile
// the Utility file, erase the existing library/class files and
// copy the newly compiled class files, UDFsrv.class and
// Person.class from the current directory to the
// $(DB2PATH)\function directory):
// nmake/make UDFsrv
// 2. Compile the client source file UDFcli (this will also call
// the script 'udfcat' to create and catalog the UDFs):
// nmake/make UDFcli
// 3. Run the client UDFcli:
// java UDFcli
//
// II) If you don't have a compatible make/nmake program on your system,
// do the following:
// 1. Compile the utility file and the server source file with:
// javac Util.java
// javac UDFsrv.java
// 2. Erase the existing library/class files (if exists),
// UDFsrv.class and Person.class from the following path,
// $(DB2PATH)\function.
// 3. copy the class files, UDFsrv.class and Person.class from
// the current directory to the $(DB2PATH)\function.
// 4. Register the UDFs and UDT and create the UDT table with:
// udfcat
// 5. Compile UDFcli with:
// javac UDFcli.java
// 6. Run UDFcli with:
// java UDFcli
//
// OUTPUT FILE: UDFcli.out (available in the online documentation)
// Output will vary depending on the JDBC driver connectivity used.
//***************************************************************************
//
// For more information on the sample programs, see the README file.
//
// For information on developing JDBC applications, see the Application
// Development Guide.
//
// For information on using SQL statements, see the SQL Reference.
//
// For the latest information on programming, compiling, and running DB2
// applications, visit the DB2 application development website at
// http://www.software.ibm.com/data/db2/udb/ad
//**************************************************************************/
import java.lang.*; // for String class
import java.io.*; // for ...Stream classes
import COM.ibm.db2.app.UDF; // UDF classes
// Java user-defined functions are in this class
public class UDFsrv extends UDF
{
// SCRATCHPAD scalar UDF
public void scratchpadScUDF(int outCounter) throws Exception
{
int intCounter = 0;
byte[] scratchpad = getScratchpad();
// variables to read from SCRATCHPAD area
ByteArrayInputStream
byteArrayIn = new ByteArrayInputStream(scratchpad);
DataInputStream
dataIn = new DataInputStream(byteArrayIn);
// variables to write into SCRATCHPAD area
byte[] byteArrayCounter;
int i;
ByteArrayOutputStream
byteArrayOut = new ByteArrayOutputStream(10);
DataOutputStream
dataOut = new DataOutputStream(byteArrayOut);
switch(getCallType())
{
case SQLUDF_FIRST_CALL:
// initialize data
intCounter = 1;
// save data into SCRATCHPAD area
dataOut.writeInt(intCounter);
byteArrayCounter = byteArrayOut.toByteArray();
for(i = 0; i < byteArrayCounter.length; i++)
{
scratchpad[i] = byteArrayCounter[i];
}
setScratchpad(scratchpad);
break;
case SQLUDF_NORMAL_CALL:
// read data from SCRATCHPAD area
intCounter = dataIn.readInt();
// work with data
intCounter = intCounter + 1;
// save data into SCRATCHPAD area
dataOut.writeInt(intCounter);
byteArrayCounter = byteArrayOut.toByteArray();
for(i = 0; i < byteArrayCounter.length; i++)
{
scratchpad[i] = byteArrayCounter[i];
}
setScratchpad(scratchpad);
break;
}
// set the output value
set(1, intCounter);
} // scratchpadScUDF
public void scUDFReturningErr(double inOperand1,
double inOperand2,
double outResult)
throws Exception
{
if (inOperand2 == 0.00)
{
setSQLstate("38999");
setSQLmessage("DIVIDE BY ZERO ERROR");
}
else
{
outResult = inOperand1 / inOperand2;
}
set(3, outResult);
} // scUDFReturningErr
// variable for tableUDF
static final Person[] staff =
{
new Person("Pearce" , "Mgr" , 17300.00),
new Person("Wagland", "Sales", 15000.00),
new Person("Davis" , "Clerk", 10000.00)
};
// the table UDF
public void tableUDF(double inSalaryFactor,
String outName,
String outJob,
double outNewSalary)
throws Exception
{
int intRow = 0;
byte[] scratchpad = getScratchpad();
// variables to read from SCRATCHPAD area
ByteArrayInputStream
byteArrayIn = new ByteArrayInputStream(scratchpad);
DataInputStream
dataIn = new DataInputStream(byteArrayIn);
// variables to write into SCRATCHPAD area
byte[] byteArrayRow;
int i;
ByteArrayOutputStream
byteArrayOut = new ByteArrayOutputStream(10);
DataOutputStream
dataOut = new DataOutputStream(byteArrayOut);
switch (getCallType())
{
case SQLUDF_TF_FIRST:
// do initialization for the whole statement
// (the statement may invoke tableUDF more than once)
break;
case SQLUDF_TF_OPEN:
// do initialization valid for this invokation of tableUDF
intRow = 1;
// save data in SCRATCHPAD area
dataOut.writeInt(intRow);
byteArrayRow = byteArrayOut.toByteArray();
for(i = 0; i < byteArrayRow.length; i++)
{
scratchpad[i] = byteArrayRow[i];
}
setScratchpad(scratchpad);
break;
case SQLUDF_TF_FETCH:
// get data from SCRATCHPAD area
intRow = dataIn.readInt();
// work with data
if(intRow > staff.length)
{
// Set end-of-file signal and return
setSQLstate ("02000");
}
else
{
// Set the current output row and increment the row number
set(2, staff[intRow - 1].getName());
set(3, staff[intRow - 1].getJob());
set(4, staff[intRow - 1].getSalary() * inSalaryFactor);
intRow++;
}
// save data in SCRATCHPAD area
dataOut.writeInt(intRow);
byteArrayRow = byteArrayOut.toByteArray();
for(i = 0; i < byteArrayRow.length; i++)
{
scratchpad[i] = byteArrayRow[i];
}
setScratchpad(scratchpad);
break;
case SQLUDF_TF_CLOSE:
break;
case SQLUDF_TF_FINAL:
break;
}
} // tableUDF
} // UDFsrv class
// the class Person is used by the table UDF
class Person
{
String name;
String job;
double salary;
Person()
{
name = null;
job = null;
salary = 0.00;
}
Person(String n , String j, double s)
{
name = n;
job = j;
salary = s;
}
public String getName()
{
return name;
}
public String getJob()
{
return job;
}
public double getSalary()
{
return salary;
}
} // Person class
| java |
What's the story?
According to Fightful’s Sean Ross Sapp, WWE’s internal list of absentees states that Jinder Mahal is on course to return from injury at the beginning of 2020.
In April 2019, Jinder Mahal began to establish himself as a singles competitor on WWE’s main roster again after being separated from his two sidekicks, The Singh Brothers, who returned to 205 Live.
However, following a short stint in the 24/7 Championship picture, which included a title triumph over R-Truth at Frankfurt airport, Mahal ruptured his patella tendon in a match against Ali at a live event in Denver, Colorado on June 15.
Two weeks later, the former WWE Champion took to social media to reveal that he had undergone surgery and the condition of his knee was better than expected.
In an update on Fightful Select, Sean Ross Sapp reported that WWE has listed Jinder Mahal’s return date as January 1, 2020.
Jinder Mahal's patella injury has him listed as a "January 1" return. He'd just signed a new five-year deal ahead of the injury. Previous reports had indicated a possible return at the end of the year.
Sapp also noted that he has heard from employees and Superstars that some dates are not in line with when the Superstars themselves expect to return, so the list is merely an estimated date when absentees are likely to be available again.
What's next?
If the internal list is anything to go by, Jinder Mahal has another five months on the sidelines before WWE fans can expect to see him inside a squared circle again.
The 33-year-old was drafted to SmackDown Live in the 2019 Superstar Shake-Up but he continued to appear on Raw in the weeks that followed the roster changes, so it remains to be seen which brand he will be part of when he returns. | english |
<reponame>robisrob/teamcity-radiator<filename>test/unit/view/failed-build-overview.spec.js
import { FailedBuildOverview } from '../../../src/view/failed-build-overview';
describe('the failed build overview', () => {
function putFunctionOnJobQueue(expectFunction) {
Promise.resolve().then(expectFunction);
}
beforeEach(() => {
jasmine.clock().install();
});
afterEach(() => {
jasmine.clock().uninstall();
});
describe('activate function', () => {
function makeBuildServiceStub() {
let count = 0;
function getAllFailedBuilds(baseUrl) {
count++;
expect(baseUrl).toEqual("baseUrl");
return Promise.resolve(['a' + count, 'b' + count, 'c' + count]);
}
return { getAllFailedBuilds: getAllFailedBuilds };
}
it('should ask and save the failedbuilds from the buildService using the baseUrl from the parameters every 30 seconds', (done) => {
let failedBuildOverview = new FailedBuildOverview(makeBuildServiceStub());
failedBuildOverview.activate({ baseUrl: "baseUrl" });
putFunctionOnJobQueue(() => expect(failedBuildOverview.builds).toEqual(['a1', 'b1', 'c1']));
jasmine.clock().tick(30000);
putFunctionOnJobQueue(() => expect(failedBuildOverview.builds).toEqual(['a2', 'b2', 'c2']));
jasmine.clock().tick(29999);
putFunctionOnJobQueue(() => expect(failedBuildOverview.builds).toEqual(['a2', 'b2', 'c2']));
jasmine.clock().tick(1);
putFunctionOnJobQueue(() => expect(failedBuildOverview.builds).toEqual(['a3', 'b3', 'c3']));
putFunctionOnJobQueue(done);
});
});
describe('hasFailedBuilds', () => {
it('returns true when buildService returns builds', (done) => {
var failedBuildOverview = new FailedBuildOverview({ getAllFailedBuilds: () => Promise.resolve(['A', 'B']) });
failedBuildOverview.activate({ baseUrl: "baseUrl" });
putFunctionOnJobQueue(() => expect(failedBuildOverview.hasFailedBuilds).toEqual(true));
putFunctionOnJobQueue(done);
});
it('returns false when buildService returns no builds', (done) => {
var failedBuildOverview = new FailedBuildOverview({ getAllFailedBuilds: () => Promise.resolve([]) });
failedBuildOverview.activate({ baseUrl: "baseUrl" });
putFunctionOnJobQueue(() => expect(failedBuildOverview.hasFailedBuilds).toEqual(false));
putFunctionOnJobQueue(done);
});
it('returns false when buildService returns undefined', (done) => {
var failedBuildOverview = new FailedBuildOverview({ getAllFailedBuilds: () => Promise.resolve(undefined) });
failedBuildOverview.activate({ baseUrl: "baseUrl" });
putFunctionOnJobQueue(() => expect(failedBuildOverview.hasFailedBuilds).toEqual(false));
putFunctionOnJobQueue(done);
});
it('returns false when buildService returns null', (done) => {
var failedBuildOverview = new FailedBuildOverview({ getAllFailedBuilds: () => Promise.resolve(null) });
failedBuildOverview.activate({ baseUrl: "baseUrl" });
putFunctionOnJobQueue(() => expect(failedBuildOverview.hasFailedBuilds).toEqual(false));
putFunctionOnJobQueue(done);
});
});
describe('property baseUrl', () => {
it('returns the baseUrl given as parameter', (done) => {
var failedBuildOverview = new FailedBuildOverview({ getAllFailedBuilds: () => Promise.resolve(['A', 'B']) });
failedBuildOverview.activate({ baseUrl: "baseUrl" });
putFunctionOnJobQueue(() => expect(failedBuildOverview.baseUrl).toEqual("baseUrl"));
putFunctionOnJobQueue(done);
});
});
});
| javascript |
Linda Yaccarino, the former head of advertising at NBCUniversal, will be taking over as Twitter CEO.
While Yaccarino will be taking over business operations, working on transforming the micro-blogging platform into X, the everything app, Musk will be focusing on product design and new technology, the former CEO of Twitter shared in a tweet.
Yaccarino will be among the rare example of a woman heading a major tech firm, after rising steadily through the ranks of some of America’s biggest media companies. She will face the challenge of running a business that has struggled to be profitable while facing scrutiny over its management of hate speech and misinformation.
Musk’s selection of the new CEO for Twitter may free the billionaire from a major distraction and allow him to focus more on Tesla Inc. analysts said.
(For top technology news of the day, subscribe to our tech newsletter Today’s Cache)
Tesla shares, which have gained 40% this year, reversed course to trade down nearly 2% as broader markets fell. The stock had its worst year in 2022, losing 65%, amid Musk’s on-again, off-again offer for Twitter.
Ever since Musk bought Twitter in a $44 billion deal, Tesla investors have been worried that he may not be able to pay full attention to the company, which is in a price war with upstarts and legacy automakers.
(With Reuters inputs) | english |
Titans skipper Martin van Jaarsveld felt that the tournament had been fantastic for the South African team after they lost in the semi-final of the Champions League T20 2012 against Sydney Sixers at Centurion on Friday.
Titans’ skipper Martin van Jaarsveld felt that the tournament had been fantastic for the South African team after they lost in the semi-final of the Champions League T20 2012 against Sydney Sixers at Centurion on Friday.
“It’s been an absolutely fantastic tournament. The way it has been arranged, the planning, there are a lot of things that had to go into it,” Jaarsveld said.
“For us playing in front of a home crowd, the fans have been fantastic; the turnout has been in the thousands, which is great for us. For us to play against the top players in the world without our top players and still compete – I think the guys can take a lot of confidence in that,” Titans’ skipper was quoted as saying by supersport. com.
Jaarsveld said that it was a tough ask for CJ de Villiers to restrict Sydney Sixers with two runs needed off the last two balls.
“It’s a pretty tough ask as a normal player, always slightly up against it because the field’s up. All he has to do is just get bat on it to win the game,” he said.
“As it panned out, he [Pat Cummins] missed it, they took the run, the throw was slightly off target – Bob’s your uncle,” Jaarsveld added.
He also credited Henry Davids and David Wiese or their good show with the bat.
“I think it just probably panned out that way. We knew they had some gun bowlers and that’s their strength but I think a lot of credit has to go to Davids and David Wiese, the way they took him on towards the back end,” he said.
“That gave us a chance but up until that point, we probably struggled,” Titans’ skipper concluded. | english |
<reponame>lesspointless/Shakal-NG
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import jinja2.exceptions
from .loader_filesystem import DynamicLoaderMixin
class Environment(DynamicLoaderMixin, jinja2.Environment):
def get_template(self, name, *args, **kwargs):
try:
return super(Environment, self).get_template(self.get_visitors_template(name), *args, **kwargs)
except jinja2.exceptions.TemplateNotFound:
return super(Environment, self).get_template(name, *args, **kwargs)
| python |
AUGUST 21, 1978 (45th Amdt.) Bill
[Shri Eduardo Falerin]
of internal emergency. My submission, therefore, is that if there is a breakdown in a particular State, the responsibility of law and order is that of the State Government.
[MR. DEPUTY-SPEAKER in the Chair]
This power under Article 352 will encroach on the sphere of the State and will harm the federal or quasi-federal structure of our Constitution. That is the first thing. If a State is unable to control the law and order situation, then the representative of the Central Government in the State is there, that is, the Governor, and he can report to the Central Government that the State cannot manage the law and order situation and then Article 356 comes into operation. There is no reason for continuance of the power under Article 352 to declare internal emergency. This power is likely to be abused.
may point out in this connection that there has never been any situation in which a State has been unable to cope up with the law and order situation and has not immediately requested the Central Government for assistance. The Law
Minister may inform us how he visualises, on what basis he visualises such a condition in which the State Government will not request the Central Government for interfering or for sending the armed forces, if necessary, to control any law and order situation. Is there any single precedent? I say, Sir, there is not a single precedent for this type of assumption to give wide powers to the Central Government and, on the contrary, this power is likely to be abused. It has been abused in the past and there is nothing to show that it cannot be abused in the future.
Now, you consider the situation in which the Central Government is ruled by one political party and the State Government is ruled by a different political party and the Central Government wants to take over the administration of that State, though the law and order situation is perfectly solid, perfectly firm and perfectly Governor alright. Even the does not report that there is a breakdown of law and order. Even then, the Central Government just by putting their own supporters there in the State with some weapons can create a situation of armed rebellion and can intervene. It will be very bad. This will be, in substance, reducing the States to municipalities. He is making the States dignified municipalities, he is destroying the federal concept of the Constitution and the States will be big panchayats or municipalities
and the whole scheme of the Constitution, the basic scheme of the Constitution will be affected.
MR. DEPUTY-SPEAKER: Mr. Ravi, actually your amendment will be treated as not moved because it is the same as amendment No. 15. But if you want to speak, you can just take a couple of minutes.
SHRI VAYALAR RAVI (Chirayinkil): Mr. Deputy-Speaker, Sir, because my amendment is not moved as it is the same as the amendment of Mr. Somnath Chatterjee, I fully support his amendment. The demand made by him to take away this internal Emergency completely will be receiving our support.
Mr. Deputy-Speaker, Sir, every nation, the people and the society, take the lesson from the past and the history and I wish Mr. Shanti Bhushan had taken lessons from the past experience. That is my contention. Every revolution will have a message, and here your Party claims that you came through a revolution which you call a silent revolution. The message of the revolution is that the people, as you say, voted against the Emergency. The Constitution should reflect the will and pleasure of the people, especially the aspirations and decisions of the people. At the last General Election the major question you posed before the people is whether they wanted Emergency or not and the decision of the people, by and large, was that they were against internal Emergency. That is the first and basic question you have to answer before Parliament and, through Parliament, before the people that you are incorporating Internal Emergency even though you are The against it, because of other reasons. Minister has argued that many a protection has been given, and there has been substitution by 'Armed Rebellion' etc. But 'Armed Rebellion' has not at all been defined. As Shri Somnath Chatterjee had said even before coming to this clause, the Hon. Law Minister must define what he means by 'armed rebellion'. As pointed out earlier, 'armed rebellion' is always based on the political and economic content of the situation. I believe that, in the name of 'armed revellion' this can be misued because we have seen how Emergency itself has been misused. This is absolutely unnecessary and unwarranted, and this clause should be deleted.
Our Amendment is very clear and I hope Mr. Shanti Bhushan will take the message of the Indian people received through the 1977 General Election and will agree to fulfil the promises made to the people to take away Emergency which was completely misused.
SRAVANA 30, 1900 ( SAKA) (45th Amdt.) Bill 46
judice to them, I would like to add one more important clause, which makes certain modifications.
श्री लक्ष्मी नारायण नायक (खजुराहो ): माननीय सदस्य महोदय, मेरा संशोधन इस प्रकार है कि अनुच्छेद 352 में जहां पर शब्द "सशस्त्र विद्रोह" हैं, उन के स्थान पर शब्द "गृहयुद्ध" रखे जाएं । यह संशोधन मैंने इसलिए दिया है कि भारत एक बहुत बड़ा देश है और यहां पर कुछ न कुछ घटनायें होती रहती हैं और बड़े
• व्याप्त आन्दोलन भी हो सकते हैं और कोई
भी शासन उन को कह सकता है कि ये सशस्त्र विद्रोह हैं। पिछला एक उदाहरण मैं आपको देना चाहता हूं । नागालैण्ड में बराबर सशस्त्र विद्रोह होता रहा है, फिर भी शासन ने वहां पर कोई इमर्जेसी नहीं लगाई क्योंकि उस ने यह देखा कि हम अपनी शक्ति के द्वारा या मौजूदा कानूनों के द्वारा, उस से निपट सकते हैं और इस समस्या को हल कर सकते हैं । जब वहां पर इमर्जेन्सी नहीं लगी, तो मैं कि इमर्जेन्सी जो है, वह ऐसी स्थिति में ही लगाई जाए जब बाहर से कोई आक्रमण हो या यहां पर कोई गृह युद्ध हो । शासन के खिलाफ़ गृहयुद्ध होता है, तब तो यह बात सही जंचती है कि इमर्जेन्सी लगनी चाहिए, बैसे और किसी दूसरी सूरत में यह नहीं लगनी चाहिए। ये जो सशस्त्र विद्रोह हैं ये तो फुटकर होते रहते हैं और उन को ले कर इमर्जेन्सी नहीं लगनी चाहिए । हम ने देखा है कि पिछले दिनों इमर्जेन्सी के नाम पर कितना कुछ हुआ और सारा देश संकट में पड़ गया। वैसी स्थिति फिर से देश के सामने न आए, इसलिए मेरा कहना यह है कि "सशस्त्र विद्रोह" के स्थान पर "गृह-युद्ध" शब्दों को रखा जाए और ऐसा प्रावधान इस अनुच्छेद 352 में किया जाए। मैं चाहता हूं कि विधि मंत्री जी मेरे इस संशोधन को मान लें ।
SHRI R. K. MHALGI ( Thana ) : Sir, I support the view expressed on the Amendments of Hon. Members Shri Chatterjee and Shri Parulekar. But, without preThe modification I want to make is to delete Clause 11. The present Indian Constitution, unlike those of several other countries, has inbuilt provisions for punishing those found guilty of violating the Constitution. The Constitution
provides for the impeachment of the President, but, in the case of the Prime Minister, there is no corresponding pro vision at all for punishment for violation of the oath other than dismissal from office. Shah Commission has given a clear-cut finding that the ex-Prime Minister has violated the constitutional provisions, especially in respect of Article 352. The clamping of emergency by her was a fraud on the Constitution, but the present government is not in a position to go to the court against her on that ground as there is no such provision either in the Constitution or in any law for the time being in force. I, therefore, like to incorporate this provision in the Constitution so that the Parliament may legislate a law by which offenders can be brought to book.
Acharya Kripalaniji also holds these views in his press note which has been released in Madras on the 12th June 1978. I am quite conscious that Article 20 of the Constitution bars any such retrospective application and hence I have moved my amendment with certain modifications.
SHRI KANWAR LAL GUPTA: My amendment is technical in this, that for 'Union Cabinet' substitute 'Council of Ministers' and for 'other Ministers of Cabinet rank' substitute 'Council of Ministers'.
My amendment is only technical and it is because in the Constitution, so far as I know, there is no term as 'Cabinet Minister', if I am not mistaken and there the words used are only 'the Council of Ministers'. There is nothing like a 'Union Cabinet'. It may be correct, but if we take a strictly legal and constitutional view, then this should be substituted by 'Council of Ministers'.
Similar is the case with 'other Ministers of Cabinet rank' because nowhere in the Constitution, as I know, the words 'Cabinet Minister' have been used. It is always the Council of Ministers. Hence, my amendment.
श्री विनायक प्रसाद यादव (सहरसा ) :
उपाध्यक्ष महोदय, मेरा अमेंडमेंट है
[ श्री विनायक प्रसाद यादव]
"Explanation-A Proclamation of Emergency declaring that the security of any part of Indian territory is threatened by war or by external aggression or by armed rebellion may be made only after the actual occurrence of war, or of any such aggression or armed rebellion."
उपाध्यक्ष महोदय, एमर्जेन्सी का जो प्रावधान है, यह सब से ज्यादा कंट्रोवर्सियल इस संविधान संशोधन विधेयक में हूँ । जनता पार्टी ने अपने चुनाव घोषणा पत्र में साफ साफ कहा था कि इस देश में अान्तरिक मामलों में आगे एमर्जेन्सी नहीं लगायेंगे । अभी हमें पावर में आये एक साल ही हुआ हैं और हम अपने चुनाव घोषणापत्र को भूल कर उसी रास्ते पर जा रहे हैं जिस रास्ते पर श्रीमती इंदिरा गांधी गई थीं । यह जो संशोधन विधेयक लाया गया है इस में कहा गया है कि जब वार की आशंका होगी आर्ल्ड रिबेलियन की आशंका होगी तभी एमर्जेन्सी का एलान कर दिया जायेगा । इस में यह नहीं है कि जब यह सब होगा, लेकिन यह है कि जब सरकार को सिर्फ इन की आशंका हो जायगी तब देश में एमर्जेन्सी को लाया जा सकता है ।
उपाध्यक्ष महोदय, प्रेजीडेंट के जहां तक सैटिस्फेक्शन का सवाल है, उस के बारे में यह स्पष्ट है कि जब र्काऊसिल ग्राफ मिनिस्टर्स कोई राय देगी तो प्रेजीडेंट को उस के मुताबिक करना होगा । असल में प्रेजीडेंट के संटिस्फेक्शन का सवाल नहीं है बल्कि मंत्री मंडल के चाहने का सवाल है । जब कोई मंत्री मंडल या यो कहें कि प्रधान मंत्री चाहेंगे, देश में अपात काल की घोषणा उपाध्यक्ष जो, मैं हो जायेगी । पूछना चाहता हुं कानून मंत्री से कि पहले को
(45th Amdt.) Bill
धारा 352 और अब संशोधित धारा में क्या फर्क है ? ‘Internal disturbance' को जगह पर armed rebellion' रखा गया है और कहा गया है कि सिर्फ के के होने की आशंका पर ही इमरजेन्सी घोषित की जा सकती है । काउंसिल आफ मिनिस्टर्ज जिस वक्त उनको आशंका होगी या जब वे चाहेंगें इस देश में एमजेन्सी लागू कर दी जाएगी। ऐसे साधारण प्रिटक्स्ट पर जैसे इंदिरा गांधी ने किया था वैसा किया जा सकता है या कोई भी सरकार कर सकती है। आपको याद होगा कि जब श्रीमती इंदिरा गांधी ने एमरजेसी घोषित की थी उस वक्त देश में कोई आन्दोलन नहीं चल रहा था । जो छात्र आन्दोलन दो तीन साल पहले से चल रहा था वह भी खत्म हो किसी तरह का कोई या आन्दोलन उस वक्त नहीं हो रहा था । आपको यह भी याद होगा कि इलाहाबाद हाई कोर्ट का जजमेंट हुआ और तब श्रीमती इदिरा गांधी को एहसास हुआ कि इस जजमेंट के बाद उनको कोई मारल अधिकार नहीं है हकूमत करने का और उन्होंने एमरजेंसी घोषित कर दी । उस वक्त देश को कोई प्रान्तरिक या बाह्य खतरा नहीं था और उन्होंने एमरजसी घोषित कर दी और समचे देश को जेलखाना बना दिया गया । एमरजेंसी में और उसकें बाद अपने चुनाव घोषणापत्र में भी हमने जनता को साफ कहा था कि किसी भी स्थिति में साधारण परिस्थितियों में एमरजेंसी लागू नहीं की जायगी। मैं आपको सावधान करना चाहता हू और इसीलिए मैंने संशोधन दिया है कि साधारण टाइम में, किसी भी हालत में एमरजेंसी लाग कोई न कर सके, इसकी आपको व्यवस्था करनी चाहिए और एमरजसो लाई भी जाए तो तब जब वास्तव में कोई वार छिड़ जाए या वास्तव में सशस्त्र विद्रोह, हथियारी आन्दोलन शरू हो जाए । कानून मत्री जी को मेरे
| english |
We have been also specializing in improving the things administration and QC system to ensure that we could preserve terrific gain within the fiercely-competitive company for summer tank tops short set, Crop Hoodies , Formal Shirts , Cheap Cargo Pants ,Leggings Fitness . Customers' benefit and satisfaction are always our biggest goal. Please contact us. Give us a chance, give you a surprise. The product will supply to all over the world, such as Europe, America, Australia,Rome , Tunisia ,Indonesia , Angola .With a wide range, good quality, reasonable prices and stylish designs, our products are extensively used in beauty and other industries. Our products are widely recognized and trusted by users and can meet continuously changing economic and social needs.
| english |
angular.module('foodController', [])
// inject the food service factory into our controller
.controller('mainController', ['$scope','$http','Foods', function($scope, $http, Foods) {
$scope.formData = {};
$scope.loading = true;
// GET =====================================================================
// when landing on the page, get all food items in the database and show them
// use the service to get all the food items
Foods.get()
.success(function(data) {
$scope.loading = false;
$scope.foods = data;
});
// Add ==================================================================
// when submitting the add form, send the name of food item and price to the node API
$scope.addFood = function() {
// validate the formData to make sure that something is there
// if form is empty, nothing will happen
if ($scope.formData.name != undefined && $scope.formData.price != undefined) {
$scope.loading = true;
// call the create function from our service (returns a promise object)
Foods.add($scope.formData)
// if successful creation, call our get function to get all the new Food Items
.success(function(data) {
$scope.loading = false;
$scope.formData = {}; // clear the form so our user is ready to enter another
$scope.foods = data; // assign our new list of Food Items
$scope.total = {};
});
}
};
$scope.getTotal = function() {
//When user click on GetTotal Bill call the total API to get total bill of the food
Foods.getTotal()
.success(function(data) {
$scope.loading = false;
$scope.total = data;
});
};
// DELETE ==================================================================
// delete a Food Item after checking it
$scope.deleteFood = function(id) {
$scope.loading = true;
Foods.delete(id)
// if successful deletion, call our get function to get all the remaining Food items
.success(function(data) {
$scope.loading = false;
$scope.foods = data; // assign our new list of food items
$scope.total = {};
});
};
}]); | javascript |
This gorgeous young blonde beauty bypassed most of the traditional on-ramps to hardcore success. After appearing in only a couple of features she was snatched up by Vivid for an exclusive contract. One look at this ravishing stunner is enough to convince you that they made the right move. It's very rare that a woman this beautiful gets into porn, and when she does it's usually a safe bet that she\s headed for superstardom. Devon is all that and more, a wonderfully expressive sex kitten who just happens to also be one of the most breathtaking women in the business. Devon was born on March 28, 1978 in Allentown, Pennsylvania. By the time she turned eighteen Devon had blossomed into the stunning 5'2" beauty we see today. She sports some head-turning 34D-24-34 curves, and somehow her Dutch/French/Cherokee/English heritage resulted in a pure Midwestern blonde bombshell. Devon got into hardcore at the urging of her then-boyfriend, who certainly knew her passionate potential. Within months of starting in the biz Devon had already become one of the most sought-after starlets around. Devon's first foray into porn was in 1998's "New Breed." In that flick she showed off some startlingly hot oral skills. Devon was quickly signed up by Vivid and began making top-of-the-line features filled with out-there sexual antics. Among her best flicks so far is "Country Comfort," in which she joins Bobby Vitale for a heated outdoor tangle, then returns later on to team up with Halli Aston, Gwen Summers and Julian in a frantic and frenzied fourway fiesta. Devon's turn in "On The Street" is another winner. She plays a street kid who's picked up by limo-riding Jeanna Fine and Tony Tedeschi, and she's more than happy to hook up with the porno vets in a steamy back seat threeway. Later on Devon and Chloe engage in an amazingly arousing lesbian liaison, and Devon returns again for a blistering finale with Bobby Vitale. Devon's pair of torrid threesomes in "Three" also stand out, especially her ravenous romp with Inari Vachs and James Bonn. Devon's easily one of the best looking young women currently in porn, and it's no surprise that Vivid got her name on an exclusive deal. She displays a combination of wholesome good looks and down-and-dirty debauchery that\'s all too rare in this business. As long as she chooses to stick with it, Devon's sure to be one of the favorites among fans, costars and producers alike.
| english |
<reponame>jinh5/foundryvtt-forien-quest-log
<form class="quest-preview">
<nav class="quest-tabs tabs {{#unless canEdit}}hidden{{/unless}}" data-group="primary">
<a class="item" data-tab="details">{{localize 'ForienQuestLog.QuestPreview.Tabs.Details'}}</a>
{{#if isGM}}
<a class="item" data-tab="gmnotes">{{localize 'ForienQuestLog.QuestPreview.Tabs.GMNotes'}}</a>
{{/if}}
<a class="item" data-tab="management">{{localize 'ForienQuestLog.QuestPreview.Tabs.QuestManagement'}}</a>
{{#if isHidden}}
<i class="is-hidden fas fa-eye-slash" title="{{localize 'ForienQuestLog.Tooltips.HiddenQuestNoPlayers'}}"></i>
{{/if}}
{{#if isPersonal}}
<i class="is-personal fas fa-user-shield" title="{{{personalActors}}}"></i>
{{/if}}
</nav>
<section class="quest-body">
<div class="tab details" data-group="primary" data-tab="details">
{{> "modules/forien-quest-log/templates/partials/quest-preview/details.html"}}
</div>
{{#if isGM}}
<div class="tab gmnotes" data-group="primary" data-tab="gmnotes">
{{> "modules/forien-quest-log/templates/partials/quest-preview/gmnotes.html"}}
</div>
{{/if}}
{{#if canEdit}}
<div class="tab management" data-group="primary" data-tab="management">
{{> "modules/forien-quest-log/templates/partials/quest-preview/management.html"}}
</div>
{{/if}}
</section>
</form>
| html |
<gh_stars>0
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "pch.h"
#include "ReactErrorProvider.h"
namespace Mso::React {
const Mso::ErrorProvider<ReactError, ReactErrorProviderGuid> s_reactErrorProvider{};
const Mso::ErrorProvider<ReactError, ReactErrorProviderGuid> &ReactErrorProvider() noexcept {
return s_reactErrorProvider;
}
} // namespace Mso::React
namespace Mso {
// Template specialization for ErrorProvider must be defined inside of Mso namespace
template <>
Mso::CntPtr<Mso::IErrorString> ErrorProvider<Mso::React::ReactError, Mso::React::ReactErrorProviderGuid>::ToString(
const Mso::ErrorCode &errorCode) const noexcept {
return Mso::MakeErrorString(GetErrorInfo(errorCode).GetSerializedError());
}
} // namespace Mso
| cpp |
You are viewing a single comment's thread from:
God has allowed me to feel super blessed, just by opening my eyes I know that if I am alive it is because God wants it that way.
It is noticeable that he has knowledge about the word of God, but God says that it is not just a matter of reading his word but of putting it into practice.
There are people who today say "God is with me" and tomorrow says the opposite because of the situation they are going through.
Thanks for the invitation.
| english |
<filename>module-4/cdk/lib/sagemaker-stack.ts
import cdk = require('@aws-cdk/core');
import iam = require("@aws-cdk/aws-iam");
import { ServicePrincipal } from "@aws-cdk/aws-iam";
import sagemaker = require("@aws-cdk/aws-sagemaker");
import codecommit = require("@aws-cdk/aws-codecommit");
import apigw = require("@aws-cdk/aws-apigateway");
import lambda = require("@aws-cdk/aws-lambda");
export class SageMakerStack extends cdk.Stack {
constructor(scope: cdk.Construct, id:string) {
super(scope, id);
const mysfitsNotebookRole = new iam.Role(this, "MysfitsNotbookRole", {
assumedBy: new ServicePrincipal("sagemaker.amazonaws.com")
});
const mysfitsNotebookPolicy = new iam.PolicyStatement();
mysfitsNotebookPolicy.addActions('sagemaker:*',
'ecr:GetAuthorizationToken',
'ecr:GetDownloadUrlForLayer',
'ecr:BatchGetImage',
'ecr:BatchCheckLayerAvailability',
'cloudwatch:PutMetricData',
'logs:CreateLogGroup',
'logs:CreateLogStream',
'logs:DescribeLogStreams',
'logs:PutLogEvents',
'logs:GetLogEvents',
's3:CreateBucket',
's3:ListBucket',
's3:GetBucketLocation',
's3:GetObject',
's3:PutObject',
's3:DeleteObject');
mysfitsNotebookPolicy.addAllResources();
const mysfitsNotebookPassRolePolicy = new iam.PolicyStatement();
mysfitsNotebookPassRolePolicy.addActions('iam:PassRole');
mysfitsNotebookPassRolePolicy.addAllResources();
mysfitsNotebookPassRolePolicy.addCondition('StringEquals', {
'iam:PassedToService': 'sagemaker.amazonaws.com',
});
new iam.Policy(this, "MysfitsNotebookPolicy", {
policyName: "mysfits_notebook_policy",
statements: [
mysfitsNotebookPolicy,
mysfitsNotebookPassRolePolicy
],
roles: [mysfitsNotebookRole]
});
const notebookInstance = new sagemaker.CfnNotebookInstance(this, "MythicalMysfits-SageMaker-Notebook", {
instanceType: "ml.t2.medium",
roleArn: mysfitsNotebookRole.roleArn
});
const lambdaRepository = new codecommit.Repository(this, "RecommendationsLambdaRepository", {
repositoryName: "MythicalMysfits-RecommendationsLambdaRepository"
});
const recommandationsLambdaFunctionPolicyStm = new iam.PolicyStatement();
recommandationsLambdaFunctionPolicyStm.addActions("sagemaker:InvokeEndpoint");
recommandationsLambdaFunctionPolicyStm.addAllResources();
const mysfitsRecommendations = new lambda.Function(this, "Function", {
handler: "recommendations.recommend",
runtime: lambda.Runtime.PYTHON_3_6,
description: "A microservice backend to invoke a SageMaker endpoint.",
memorySize: 128,
code: lambda.Code.asset("../../lambda-recommendations/service"),
timeout: cdk.Duration.seconds(30),
initialPolicy: [
recommandationsLambdaFunctionPolicyStm
]
});
const questionsApiRole = new iam.Role(this, "QuestionsApiRole", {
assumedBy: new ServicePrincipal("apigateway.amazonaws.com")
});
const apiPolicy = new iam.PolicyStatement();
apiPolicy.addActions("lambda:InvokeFunction");
apiPolicy.addResources(mysfitsRecommendations.functionArn);
new iam.Policy(this, "QuestionsApiPolicy", {
policyName: "questions_api_policy",
statements: [
apiPolicy
],
roles: [questionsApiRole]
});
const questionsIntegration = new apigw.LambdaIntegration(
mysfitsRecommendations,
{
credentialsRole: questionsApiRole,
integrationResponses: [
{
statusCode: "200",
responseTemplates: {
"application/json": '{"status":"OK"}'
}
}
]
}
);
const api = new apigw.LambdaRestApi(this, "APIEndpoint", {
handler: mysfitsRecommendations,
options: {
restApiName: "Recommendation API Service"
},
proxy: false
});
const recommendationsMethod = api.root.addResource("recommendations");
recommendationsMethod.addMethod("POST", questionsIntegration, {
methodResponses: [{
statusCode: "200",
responseParameters: {
'method.response.header.Access-Control-Allow-Headers': true,
'method.response.header.Access-Control-Allow-Methods': true,
'method.response.header.Access-Control-Allow-Origin': true,
}
}],
authorizationType: apigw.AuthorizationType.NONE
});
recommendationsMethod.addMethod('OPTIONS', new apigw.MockIntegration({
integrationResponses: [{
statusCode: '200',
responseParameters: {
'method.response.header.Access-Control-Allow-Headers': "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token,X-Amz-User-Agent'",
'method.response.header.Access-Control-Allow-Origin': "'*'",
'method.response.header.Access-Control-Allow-Credentials': "'false'",
'method.response.header.Access-Control-Allow-Methods': "'OPTIONS,GET,PUT,POST,DELETE'",
},
}],
passthroughBehavior: apigw.PassthroughBehavior.NEVER,
requestTemplates: {
"application/json": "{\"statusCode\": 200}"
},
}), {
methodResponses: [{
statusCode: '200',
responseParameters: {
'method.response.header.Access-Control-Allow-Headers': true,
'method.response.header.Access-Control-Allow-Methods': true,
'method.response.header.Access-Control-Allow-Credentials': true,
'method.response.header.Access-Control-Allow-Origin': true,
},
}]
});
new cdk.CfnOutput(this, "recommendationsRepositoryCloneUrlHttp", {
value: lambdaRepository.repositoryCloneUrlHttp,
description: "Recommendations Lambda Repository Clone Url HTTP"
});
new cdk.CfnOutput(this, "recommendationsRepositoryCloneUrlSsh", {
value: lambdaRepository.repositoryCloneUrlSsh,
description: "Recommendations Lambda Repository Clone Url SSH"
});
}
} | typescript |
“It's been suggested that if the super-naturalists really had the powers they claim, they'd win the lottery every week. I prefer to point out that they could also win a Nobel Prize for discovering fundamental physical forces hitherto unknown to science. Either way, why are they wasting their talents doing party turns on television?
“It's natural to think that living things must be the handiwork of a designer. But it was also natural to think that the sun went around the earth. Overcoming naive impressions to figure out how things really work is one of humanity's highest callings.
“And sometimes I believe your relentless analysis of June leaves something out, which is your feeling for her beyond knowledge, or in spite of knowledge. I often see how you sob over what you destroy, how you want to stop and just worship; and you do stop, and then a moment later you are at it again with a knife, like a surgeon.
“Wish me good luck, please,” I whisper.
I smile, weakly.
I smile, weakly.
| english |
<gh_stars>0
{"published": "2015-09-18T04:49:44Z", "media-type": "News", "title": "Trump cites \u2018double standard\u2019 in comments about Fiorina\u2019s appearance", "id": "7e657aa6-29c1-44d1-97b3-bbc77149c260", "content": "WASHINGTON (CNN) \u2013 Donald Trump said Thursday he is being held to a gender \u201cdouble standard,\u201d arguing that his comments about <NAME>\u2019s appearance were viewed more harshly than remarks the former Hewlett-Packard CEO has made about her competitors in the past. \n\n\u201cIt\u2019s not only a double standard \u2014 it\u2019s being politically correct,\u201d Trump told Fox News\u2019 Sean Hannity, saying he was \u201cvery nice\u201d to his surging rival. \n\nBut he said Fiorina has criticized her political opponent\u2019s looks in the past, citing her failed 2010 Senate campaign against Barbara Boxer in California. \n\n\u201cShe was very nasty. She was running against Barbara Boxer. She lost in a landslide, but during the run she was really horrible about Barbara Boxer\u2019s looks,\u201d Trump said. \n\nHe was apparently referring to a moment during the race when Fiorina was caught on a hot mic, saying Boxer\u2019s hair was \u201cso yesterday.\u201d \n\n\u201cShe\u2019s playing the game herself,\u201d Trump added. \n\nTrump raised eyebrows last week when he seemed to ridicule Fiorina\u2019s face in an interview with Rolling Stone. \n\n\u201cLook at that face. Would anyone vote for that?\u201d he was quoted as saying. \n\nTrump later argued he was referring to her \u201cpersona.\u201d \n\nAt Wednesday\u2019s CNN Republican debate, the two rivals faced off in one of the night\u2019s most highly-anticipated moments. Fiorina calmly said that she believed \u201cevery woman\u201d in America knew what Trump was referring to in his Rolling Stone comments, but Trump maintained he had not criticized her appearance. \n\n\u201cI think she\u2019s got a beautiful face, and I think she\u2019s a beautiful woman,\u201d Trump said. \n\nAppearing on CNN\u2019s \u201cNew Day\u201d on Thursday, Fiorina said sexism remains in American politics. \n\n\u201cIt\u2019s still different for women,\u201d she said. \u201cIt\u2019s only a woman whose appearance would be talked about while running for president \u2014 never a man. And that\u2019s what women understand.\u201d", "source": "1490Wosh.com"} | json |
<reponame>cinston/Password-locker
from unittest
from credentials import Credentials
import pyperclip
class TestCredentials(TestCase):
"""
Defines test cases for the credentials class behaviours.
Args:
TestCase: A class that helps create the test cases.
"""
def setUp(self):
"""
Method that runs before the test cases.
"""
self.new_cred = Credentials('instagram','carlos_2_w', '<PASSWORD>')
def tearDown(self):
"""
Method that does clean up after each test has run.
"""
Credentials.cred_list = []
def test_init(self):
"""
Test case to see if the objects are being initialized properly.
"""
self.assertEqual(self.new_cred.account_name, 'instagram')
self.assertEqual(self.new_cred.username, 'carlos_2_w')
self.assertEqual(self.new_cred.password, '<PASSWORD>')
def test_store_existing_cred(self):
"""
Test case to check whether credentials can be stored in cred_list.
"""
self.new_cred.save_cred()
self.assertEqual(len(Credentials.cred_list), 1)
def test_store_multiple_cred(self):
"""
Test case to check whether multiple credentials can be stored in cred_list.
"""
self.new_cred.save_cred()
test_cred = Credentials('facebook','cinstonwarlos', 'qwerty98')
test_cred.save_cred()
self.assertEqual(len(Credentials.cred_list), 2)
def test_display_cred(self):
"""
Test case to check if the credentials can be displayed.
"""
self.assertEqual(Credentials.display_cred(), Credentials.cred_list)
def test_copy_cred(self):
"""
Test to check if credentials are copied to clipboard.
"""
self.new_cred.save_cred()
Credentials.copy_cred('cinstonwarlos')
self.assertEqual(pyperclip.paste(), self.new_cred.username)
if __name__ == '__main__':
main() | python |
The Kartik Aaryan-Kiara Advani starrer Bhool Bhulaiyaa 2 might resume shooting by end of 2020.
Kartik Aaryan and Kiara Advani star together in Bhool Bhulaiyaa 2.
Kartik Aaryan's Bhool Bhulaiyaa 2 has been halted after he tested positive.
Kartik Aaryan finally resumes shooting for the horror-comedy.
Kartik Aaryan to wrap up this comedy-horror soon.
| english |
<gh_stars>10-100
{
"decBase": 10,
"defaultTransactionVersionNumber": 2,
"endianness": "le",
"hexBase": 16,
"keyCodeByteLength": 1,
"opNumberOffset": 80,
"sigHashByteLength": 4,
"stackIndexByteLength": 4,
"terminatorByte": "00",
"tokensByteLength": 8
}
| json |
{
"id": 25019,
"title": [
"[Reim Settlement, Bandit Camp]"
],
"description": [
"Baskets of rotten fruit and vegetables are scattered amongst the remains of shattered shields, the sweet decaying scent attracting a swarm of tiny gnats clouding the area in pinpoints of black. Other provisions collect dust and mud next to a trio of iron-bound barrels, their lids pried open but their contents of unknown origin, seeping down each side in thick trails of slime and blood. The skeletal remains of a rodent lay against the furthest barrel, its paws wrapped around a hunk of molding cheese."
],
"paths": [
"Obvious paths: east"
],
"location": "the Settlement of Reim",
"wayto": {
"25004": "east"
},
"timeto": {
"25004": 0.2
},
"image": "imt-Reim-1260914759.png",
"image_coords": [
43,
870,
56,
882
]
} | json |
Mumbai: Varun Dhawan and Natasha Dalal are one of the most loved couples of Bollywood. They tied the knot in a private ceremony in January 2021, surrounded by their close friends and family. Their fairytale wedding was the talk of the town, and fans eagerly followed their journey as the couple embraced their new chapter together.
However, a recent tweet from a popular critic Umair Sandhu has sparked speculations about the state of their marriage. The cryptic tweet, which suggested trouble in paradise, caught the attention of fans and quickly spread across social media platforms.
“Everything is not “ Ok ” between #VarunDhawan & his wife #NatashaDalal. Separation is on the way ! ! ,” the tweet reads.
Taking to comments section under Umair tweet, Varun’s fans expressed their concern and rallied behind the couple. Many supporters have urged Varun Dhawan to take legal action against the critic for spreading fake news.
Also, it’s worth noting that Umair’s tweet should be taken with a grain of salt, as the film critic has previously been accused of spreading false rumours about celebrities.
(It is always important wait for official confirmation from the celebrities and refrain from engaging in unnecessary gossip or spreading unverified information). | english |
<reponame>buzzers/LeetCode<gh_stars>1-10
package problem_321
func maxNumber(nums1 []int, nums2 []int, k int) []int {
var mss []int
for l := 0; l <= k; l++ {
r := k - l
if l <= len(nums1) && r <= len(nums2) {
ls := maxSubSeq(nums1, l)
rs := maxSubSeq(nums2, r)
ss := merge(ls, rs)
if mss == nil || comp2(ss, mss) {
mss = ss
}
}
}
return mss
}
func comp2(nums1, nums2 []int) bool {
for i, v := range nums1 {
r := v - nums2[i]
if r != 0 {
return r > 0
}
}
return false
}
func merge(nums1, nums2 []int) []int {
if len(nums1) == 0 {
return nums2
}
if len(nums2) == 0 {
return nums1
}
ss := make([]int, 0, len(nums1)+len(nums2))
lpos, rpos := 0, 0
for lpos < len(nums1) || rpos < len(nums2) {
if comp(nums1, nums2, lpos, rpos) {
ss = append(ss, nums1[lpos])
lpos++
} else {
ss = append(ss, nums2[rpos])
rpos++
}
}
return ss
}
func comp(nums1, nums2 []int, lpos, rpos int) bool {
for lpos < len(nums1) && rpos < len(nums2) {
r := nums1[lpos] - nums2[rpos]
if r != 0 {
return r > 0
}
lpos++
rpos++
}
return len(nums1)-lpos > len(nums2)-rpos
}
func maxSubSeq(nums []int, k int) []int {
if k > 0 {
stack := make([]int, 0, k)
dropCount := len(nums) - k
for _, v := range nums {
for len(stack) > 0 && stack[len(stack)-1] < v && dropCount > 0 {
stack = stack[:len(stack)-1]
dropCount--
}
if len(stack) < k {
stack = append(stack, v)
} else {
dropCount--
}
}
return stack
}
return ([]int)(nil)
}
| go |
#ifndef CONVERTERS_H
#define CONVERTERS_H
#include <memory>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <pybind11/numpy.h>
#include <stdexcept>
#include <opencv2/core/core.hpp>
#include <Eigen/Dense>
#include <eigen3/Eigen/src/Core/Matrix.h>
#include <pybind11/eigen.h>
#include <opencv2/opencv.hpp>
#include <opencv/cxeigen.hpp>
namespace py = pybind11;
// Numpy - cv::Mat interop
namespace pybind11 { namespace detail {
template <> struct type_caster<cv::Mat> {
public:
PYBIND11_TYPE_CASTER(cv::Mat, _("numpy.ndarray"));
// Cast numpy to cv::Mat
bool load(handle src, bool)
{
/* Try a default converting into a Python */
//array b(src, true);
array b = reinterpret_borrow<array>(src);
buffer_info info = b.request();
int ndims = info.ndim;
decltype(CV_32F) dtype;
size_t elemsize;
if (info.format == format_descriptor<float>::format()) {
if (ndims == 3) {
dtype = CV_32FC3;
} else {
dtype = CV_32FC1;
}
elemsize = sizeof(float);
} else if (info.format == format_descriptor<double>::format()) {
if (ndims == 3) {
dtype = CV_64FC3;
} else {
dtype = CV_64FC1;
}
elemsize = sizeof(double);
} else if (info.format == format_descriptor<unsigned char>::format()) {
if (ndims == 3) {
dtype = CV_8UC3;
} else {
dtype = CV_8UC1;
}
elemsize = sizeof(unsigned char);
} else {
throw std::logic_error("Unsupported type");
return false;
}
std::vector<int> shape = {(int)info.shape[0], (int)info.shape[1]};
value = cv::Mat(cv::Size(shape[1], shape[0]), dtype, info.ptr, cv::Mat::AUTO_STEP);
return true;
}
// Cast cv::Mat to numpy
static handle cast(const cv::Mat &m, return_value_policy, handle defval)
{
std::string format = format_descriptor<unsigned char>::format();
size_t elemsize = sizeof(unsigned char);
int dim, channels;
switch(m.type()) {
case CV_8U:
format = format_descriptor<unsigned char>::format();
elemsize = sizeof(unsigned char);
dim = 2;
channels = 0;
break;
case CV_8UC3:
format = format_descriptor<unsigned char>::format();
elemsize = sizeof(unsigned char);
dim = 3;
channels = 3;
break;
case CV_32F:
format = format_descriptor<float>::format();
elemsize = sizeof(float);
dim = 2;
channels = 0;
break;
case CV_64F:
format = format_descriptor<double>::format();
elemsize = sizeof(double);
dim = 2;
channels = 0;
break;
case CV_32FC4:
format = format_descriptor<float>::format();
elemsize = sizeof(float);
dim = 3;
channels = 4;
break;
default:
throw std::logic_error("Unsupported type");
}
std::vector<size_t> bufferdim;
std::vector<size_t> strides;
if (dim == 2) {
bufferdim = {(size_t) m.rows, (size_t) m.cols};
strides = {elemsize * (size_t) m.cols, elemsize};
} else if (dim == 3) {
bufferdim = {(size_t) m.rows, (size_t) m.cols, (size_t) channels};
strides = {(size_t) elemsize * m.cols * channels, (size_t) elemsize * channels, (size_t) elemsize};
}
return array(buffer_info(
m.data, /* Pointer to buffer */
elemsize, /* Size of one scalar */
format, /* Python struct-style format descriptor */
dim, /* Number of dimensions */
bufferdim, /* Buffer dimensions */
strides /* Strides (in bytes) for each index */
)).release();
}
};
}} // namespace pybind11::detail
#endif | cpp |
The Prime Minister also interacted with the workers, who for nearly three years built the sprawling complex, spread over 64,500 square metres.
Prime Minister Narendra Modi on Sunday felicitated 11 workers who were involved in the construction and development of the new Parliament building, gifting them traditional shawls and mementos, hours after the inauguration of the new complex on Sunday.
The Prime Minister also interacted with the workers, who for nearly three years built the sprawling complex, spread over 64,500 square metres.
In his remarks during the inauguration of the new building, the prime minister said that the construction of the sprawling complex provided employment to 60,000 workers, and added that a digital gallery dedicated to them has also been built in the complex.
Thousands of workers were involved in the mammoth exercise, which began in December 2020, as part of the Central Vista redevelopment plan.
One of the workers present at the event on Sunday was Satyaranjan Das from West Bengal, who used to arrange water and food for the workers at the construction site. Alongside him were Ajaz Ahmed who was a supervisor and Uranjan Dalai, who arranged tea and water for the workers.
The other workers the Prime Minister honoured include Devlal Sukhar from Vadodara and Anil Kumar Yadav from Bihar, both of whom placed sandstone on the outer wall of Parliament.
Subrata Sutradhar installed the bamboo floors inside the complex, said people aware of the matter.
The others present on Saturday include Muzaffar Khan from Jharkhand, who ensured all the machines kept working during the construction; Dharmendra from Delhi who worked as a gas welder; and Anand Vishwakarma from Varanasi who worked on the ceilings of Rajya Sabha and Lok Sabha and installed chairs in the new complex. | english |
As 5G networks begin rolling out and commercializing around the world, telecoms vendors are rushing to get a headstart. Huawei equipment is now behind two-thirds of the commercially launched 5G networks outside China, said president of Huawei’s carrier business group Ryan Ding on Tuesday at an industry conference.
Huawei, the world’s largest maker of telecoms gear, has nabbed 50 commercial 5G contracts outside its home base from countries including South Korea, Switzerland, the United Kingdom, Finland and more. In all, the Shenzhen-based firm has shipped more than 150,000 base stations, according to Ding.
It’s worth noting that network carriers can work with more than one providers to deploy different parts of their 5G base stations. Huawei offers what it calls an end-to-end network solution or a full system of hardware, but whether a carrier plans to buy from multiple suppliers is contingent on their needs and local regulations, a Huawei spokesperson told TechCrunch.
In China, for instance, both Ericsson and Nokia have secured 5G contracts from state-run carrier China Mobile (although Nokia’s Chinese entity, a joint venture with Alcatel-Lucent Shanghai Bell, is directly controlled by China’s State-owned Assets Supervision and Administration Commission).
Huawei’s handsome number of deals came despite the U.S’s ongoing effort to lobby its allies against using its equipment. In May, the Trump administration put Huawei on a trade blacklist over concerns around the firm’s spying capabilities, a move that has effectively banned U.S. companies from doing businesses with the Shenzhen-based giant.
Huawei’s overall share in the U.S. telecoms market has so far been negligible, but many rural carriers have long depended on its high-performing, cost-saving hardware. That might soon end as the U.S. pressures small-town network operators to quit buying from Huawei, Reuters reported this week.
To appease potential clients, Huawei has gone around the world offering no-backdoors pacts to local governments of the U.K. and most recently India.
Huawei is in a neck and neck fight with rivals Nokia and Ericsson. In early June, Nokia CEO Rajeev Suri said in an interview with Bloomberg that the firm had won “two-thirds of the time” in bidding contracts against Ericcson and competed “quite favorably with Huawei.” Nokia at the time landed 42 5G contracts, while Huawei numbered 40 and Ericsson scored 19.
Huawei’s challenges go well beyond the realm of its carrier business. Its fast-growing smartphone unit is also getting the heat as the U.S. ban threatens to cut it off from Alphabet, whose Android operating system is used in Huawei phone, as well as a range of big chip suppliers.
Huawei CEO and founder Ren Zhengfei noted that trade restrictions may compromise the firm’s output in the short term. Total revenues are expected to dip $30 billion below estimates over the next two years, and overseas smartphone shipment faces a 40% plunge. Ren, however, is bullish that the firm’s sales would bounce back after a temporary period of adjustment while it works towards self-dependence by developing its own OS, chips and other core technologies.
| english |
<reponame>svenwb/rusoto<gh_stars>0
// =================================================================
//
// * WARNING *
//
// This file is generated!
//
// Changes made to this file will be overwritten. If changes are
// required to the generated code, the service_crategen project
// must be updated to generate the changes.
//
// =================================================================
use std::error::Error;
use std::fmt;
use async_trait::async_trait;
use rusoto_core::credential::ProvideAwsCredentials;
use rusoto_core::region;
use rusoto_core::request::{BufferedHttpResponse, DispatchSignedRequest};
use rusoto_core::{Client, RusotoError};
use rusoto_core::proto;
use rusoto_core::signature::SignedRequest;
#[allow(unused_imports)]
use serde::{Deserialize, Serialize};
use serde_json;
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
pub struct CreateSavingsPlanRequest {
/// <p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p>
#[serde(rename = "clientToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub client_token: Option<String>,
/// <p>The hourly commitment, in USD. This is a value between 0.001 and 1 million. You cannot specify more than three digits after the decimal point.</p>
#[serde(rename = "commitment")]
pub commitment: String,
/// <p>The ID of the offering.</p>
#[serde(rename = "savingsPlanOfferingId")]
pub savings_plan_offering_id: String,
/// <p>One or more tags.</p>
#[serde(rename = "tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<::std::collections::HashMap<String, String>>,
/// <p>The up-front payment amount. This is a whole number between 50 and 99 percent of the total value of the Savings Plan. This parameter is supported only if the payment option is <code>Partial Upfront</code>.</p>
#[serde(rename = "upfrontPaymentAmount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub upfront_payment_amount: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
pub struct CreateSavingsPlanResponse {
/// <p>The ID of the Savings Plan.</p>
#[serde(rename = "savingsPlanId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub savings_plan_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
pub struct DescribeSavingsPlanRatesRequest {
/// <p>The filters.</p>
#[serde(rename = "filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<SavingsPlanRateFilter>>,
/// <p>The maximum number of results to return with a single call. To retrieve additional results, make another call with the returned token value.</p>
#[serde(rename = "maxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
/// <p>The token for the next page of results.</p>
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
/// <p>The ID of the Savings Plan.</p>
#[serde(rename = "savingsPlanId")]
pub savings_plan_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
pub struct DescribeSavingsPlanRatesResponse {
/// <p>The token to use to retrieve the next page of results. This value is null when there are no more results to return.</p>
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
/// <p>The ID of the Savings Plan.</p>
#[serde(rename = "savingsPlanId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub savings_plan_id: Option<String>,
/// <p>Information about the Savings Plans rates.</p>
#[serde(rename = "searchResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub search_results: Option<Vec<SavingsPlanRate>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
pub struct DescribeSavingsPlansOfferingRatesRequest {
/// <p>The filters.</p>
#[serde(rename = "filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<SavingsPlanOfferingRateFilterElement>>,
/// <p>The maximum number of results to return with a single call. To retrieve additional results, make another call with the returned token value.</p>
#[serde(rename = "maxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
/// <p>The token for the next page of results.</p>
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
/// <p>The specific AWS operation for the line item in the billing report.</p>
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<String>>,
/// <p>The AWS products.</p>
#[serde(rename = "products")]
#[serde(skip_serializing_if = "Option::is_none")]
pub products: Option<Vec<String>>,
/// <p>The IDs of the offerings.</p>
#[serde(rename = "savingsPlanOfferingIds")]
#[serde(skip_serializing_if = "Option::is_none")]
pub savings_plan_offering_ids: Option<Vec<String>>,
/// <p>The payment options.</p>
#[serde(rename = "savingsPlanPaymentOptions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub savings_plan_payment_options: Option<Vec<String>>,
/// <p>The plan types.</p>
#[serde(rename = "savingsPlanTypes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub savings_plan_types: Option<Vec<String>>,
/// <p>The services.</p>
#[serde(rename = "serviceCodes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_codes: Option<Vec<String>>,
/// <p>The usage details of the line item in the billing report.</p>
#[serde(rename = "usageTypes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub usage_types: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
pub struct DescribeSavingsPlansOfferingRatesResponse {
/// <p>The token to use to retrieve the next page of results. This value is null when there are no more results to return.</p>
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
/// <p>Information about the Savings Plans offering rates.</p>
#[serde(rename = "searchResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub search_results: Option<Vec<SavingsPlanOfferingRate>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
pub struct DescribeSavingsPlansOfferingsRequest {
/// <p>The currencies.</p>
#[serde(rename = "currencies")]
#[serde(skip_serializing_if = "Option::is_none")]
pub currencies: Option<Vec<String>>,
/// <p>The descriptions.</p>
#[serde(rename = "descriptions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub descriptions: Option<Vec<String>>,
/// <p>The durations, in seconds.</p>
#[serde(rename = "durations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub durations: Option<Vec<i64>>,
/// <p>The filters.</p>
#[serde(rename = "filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<SavingsPlanOfferingFilterElement>>,
/// <p>The maximum number of results to return with a single call. To retrieve additional results, make another call with the returned token value.</p>
#[serde(rename = "maxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
/// <p>The token for the next page of results.</p>
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
/// <p>The IDs of the offerings.</p>
#[serde(rename = "offeringIds")]
#[serde(skip_serializing_if = "Option::is_none")]
pub offering_ids: Option<Vec<String>>,
/// <p>The specific AWS operation for the line item in the billing report.</p>
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<String>>,
/// <p>The payment options.</p>
#[serde(rename = "paymentOptions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub payment_options: Option<Vec<String>>,
/// <p>The plan type.</p>
#[serde(rename = "planTypes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub plan_types: Option<Vec<String>>,
/// <p>The product type.</p>
#[serde(rename = "productType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product_type: Option<String>,
/// <p>The services.</p>
#[serde(rename = "serviceCodes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_codes: Option<Vec<String>>,
/// <p>The usage details of the line item in the billing report.</p>
#[serde(rename = "usageTypes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub usage_types: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
pub struct DescribeSavingsPlansOfferingsResponse {
/// <p>The token to use to retrieve the next page of results. This value is null when there are no more results to return.</p>
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
/// <p>Information about the Savings Plans offerings.</p>
#[serde(rename = "searchResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub search_results: Option<Vec<SavingsPlanOffering>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
pub struct DescribeSavingsPlansRequest {
/// <p>The filters.</p>
#[serde(rename = "filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<SavingsPlanFilter>>,
/// <p>The maximum number of results to return with a single call. To retrieve additional results, make another call with the returned token value.</p>
#[serde(rename = "maxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
/// <p>The token for the next page of results.</p>
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
/// <p>The Amazon Resource Names (ARN) of the Savings Plans.</p>
#[serde(rename = "savingsPlanArns")]
#[serde(skip_serializing_if = "Option::is_none")]
pub savings_plan_arns: Option<Vec<String>>,
/// <p>The IDs of the Savings Plans.</p>
#[serde(rename = "savingsPlanIds")]
#[serde(skip_serializing_if = "Option::is_none")]
pub savings_plan_ids: Option<Vec<String>>,
/// <p>The states.</p>
#[serde(rename = "states")]
#[serde(skip_serializing_if = "Option::is_none")]
pub states: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
pub struct DescribeSavingsPlansResponse {
/// <p>The token to use to retrieve the next page of results. This value is null when there are no more results to return.</p>
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
/// <p>Information about the Savings Plans.</p>
#[serde(rename = "savingsPlans")]
#[serde(skip_serializing_if = "Option::is_none")]
pub savings_plans: Option<Vec<SavingsPlan>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
pub struct ListTagsForResourceRequest {
/// <p>The Amazon Resource Name (ARN) of the resource.</p>
#[serde(rename = "resourceArn")]
pub resource_arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
pub struct ListTagsForResourceResponse {
/// <p>Information about the tags.</p>
#[serde(rename = "tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<::std::collections::HashMap<String, String>>,
}
/// <p>Information about a Savings Plan offering.</p>
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
pub struct ParentSavingsPlanOffering {
/// <p>The currency.</p>
#[serde(rename = "currency")]
#[serde(skip_serializing_if = "Option::is_none")]
pub currency: Option<String>,
/// <p>The duration, in seconds.</p>
#[serde(rename = "durationSeconds")]
#[serde(skip_serializing_if = "Option::is_none")]
pub duration_seconds: Option<i64>,
/// <p>The ID of the offering.</p>
#[serde(rename = "offeringId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub offering_id: Option<String>,
/// <p>The payment option.</p>
#[serde(rename = "paymentOption")]
#[serde(skip_serializing_if = "Option::is_none")]
pub payment_option: Option<String>,
/// <p>The description.</p>
#[serde(rename = "planDescription")]
#[serde(skip_serializing_if = "Option::is_none")]
pub plan_description: Option<String>,
/// <p>The plan type.</p>
#[serde(rename = "planType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub plan_type: Option<String>,
}
/// <p>Information about a Savings Plan.</p>
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
pub struct SavingsPlan {
/// <p>The hourly commitment, in USD.</p>
#[serde(rename = "commitment")]
#[serde(skip_serializing_if = "Option::is_none")]
pub commitment: Option<String>,
/// <p>The currency.</p>
#[serde(rename = "currency")]
#[serde(skip_serializing_if = "Option::is_none")]
pub currency: Option<String>,
/// <p>The description.</p>
#[serde(rename = "description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
/// <p>The EC2 instance family.</p>
#[serde(rename = "ec2InstanceFamily")]
#[serde(skip_serializing_if = "Option::is_none")]
pub ec_2_instance_family: Option<String>,
/// <p>The end time.</p>
#[serde(rename = "end")]
#[serde(skip_serializing_if = "Option::is_none")]
pub end: Option<String>,
/// <p>The ID of the offering.</p>
#[serde(rename = "offeringId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub offering_id: Option<String>,
/// <p>The payment option.</p>
#[serde(rename = "paymentOption")]
#[serde(skip_serializing_if = "Option::is_none")]
pub payment_option: Option<String>,
/// <p>The product types.</p>
#[serde(rename = "productTypes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product_types: Option<Vec<String>>,
/// <p>The recurring payment amount.</p>
#[serde(rename = "recurringPaymentAmount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub recurring_payment_amount: Option<String>,
/// <p>The AWS Region.</p>
#[serde(rename = "region")]
#[serde(skip_serializing_if = "Option::is_none")]
pub region: Option<String>,
/// <p>The Amazon Resource Name (ARN) of the Savings Plan.</p>
#[serde(rename = "savingsPlanArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub savings_plan_arn: Option<String>,
/// <p>The ID of the Savings Plan.</p>
#[serde(rename = "savingsPlanId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub savings_plan_id: Option<String>,
/// <p>The plan type.</p>
#[serde(rename = "savingsPlanType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub savings_plan_type: Option<String>,
/// <p>The start time.</p>
#[serde(rename = "start")]
#[serde(skip_serializing_if = "Option::is_none")]
pub start: Option<String>,
/// <p>The state.</p>
#[serde(rename = "state")]
#[serde(skip_serializing_if = "Option::is_none")]
pub state: Option<String>,
/// <p>One or more tags.</p>
#[serde(rename = "tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<::std::collections::HashMap<String, String>>,
/// <p>The duration of the term, in seconds.</p>
#[serde(rename = "termDurationInSeconds")]
#[serde(skip_serializing_if = "Option::is_none")]
pub term_duration_in_seconds: Option<i64>,
/// <p>The up-front payment amount.</p>
#[serde(rename = "upfrontPaymentAmount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub upfront_payment_amount: Option<String>,
}
/// <p>Information about a filter.</p>
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
pub struct SavingsPlanFilter {
/// <p>The filter name.</p>
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// <p>The filter value.</p>
#[serde(rename = "values")]
#[serde(skip_serializing_if = "Option::is_none")]
pub values: Option<Vec<String>>,
}
/// <p>Information about a Savings Plan offering.</p>
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
pub struct SavingsPlanOffering {
/// <p>The currency.</p>
#[serde(rename = "currency")]
#[serde(skip_serializing_if = "Option::is_none")]
pub currency: Option<String>,
/// <p>The description.</p>
#[serde(rename = "description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
/// <p>The duration, in seconds.</p>
#[serde(rename = "durationSeconds")]
#[serde(skip_serializing_if = "Option::is_none")]
pub duration_seconds: Option<i64>,
/// <p>The ID of the offering.</p>
#[serde(rename = "offeringId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub offering_id: Option<String>,
/// <p>The specific AWS operation for the line item in the billing report.</p>
#[serde(rename = "operation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operation: Option<String>,
/// <p>The payment option.</p>
#[serde(rename = "paymentOption")]
#[serde(skip_serializing_if = "Option::is_none")]
pub payment_option: Option<String>,
/// <p>The plan type.</p>
#[serde(rename = "planType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub plan_type: Option<String>,
/// <p>The product type.</p>
#[serde(rename = "productTypes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product_types: Option<Vec<String>>,
/// <p>The properties.</p>
#[serde(rename = "properties")]
#[serde(skip_serializing_if = "Option::is_none")]
pub properties: Option<Vec<SavingsPlanOfferingProperty>>,
/// <p>The service.</p>
#[serde(rename = "serviceCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_code: Option<String>,
/// <p>The usage details of the line item in the billing report.</p>
#[serde(rename = "usageType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub usage_type: Option<String>,
}
/// <p>Information about a filter.</p>
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
pub struct SavingsPlanOfferingFilterElement {
/// <p>The filter name.</p>
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// <p>The filter values.</p>
#[serde(rename = "values")]
#[serde(skip_serializing_if = "Option::is_none")]
pub values: Option<Vec<String>>,
}
/// <p>Information about a property.</p>
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
pub struct SavingsPlanOfferingProperty {
/// <p>The property name.</p>
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// <p>The property value.</p>
#[serde(rename = "value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
/// <p>Information about a Savings Plan offering rate.</p>
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
pub struct SavingsPlanOfferingRate {
/// <p>The specific AWS operation for the line item in the billing report.</p>
#[serde(rename = "operation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operation: Option<String>,
/// <p>The product type.</p>
#[serde(rename = "productType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product_type: Option<String>,
/// <p>The properties.</p>
#[serde(rename = "properties")]
#[serde(skip_serializing_if = "Option::is_none")]
pub properties: Option<Vec<SavingsPlanOfferingRateProperty>>,
/// <p>The Savings Plan rate.</p>
#[serde(rename = "rate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub rate: Option<String>,
/// <p>The Savings Plan offering.</p>
#[serde(rename = "savingsPlanOffering")]
#[serde(skip_serializing_if = "Option::is_none")]
pub savings_plan_offering: Option<ParentSavingsPlanOffering>,
/// <p>The service.</p>
#[serde(rename = "serviceCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_code: Option<String>,
/// <p>The unit.</p>
#[serde(rename = "unit")]
#[serde(skip_serializing_if = "Option::is_none")]
pub unit: Option<String>,
/// <p>The usage details of the line item in the billing report.</p>
#[serde(rename = "usageType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub usage_type: Option<String>,
}
/// <p>Information about a filter.</p>
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
pub struct SavingsPlanOfferingRateFilterElement {
/// <p>The filter name.</p>
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// <p>The filter values.</p>
#[serde(rename = "values")]
#[serde(skip_serializing_if = "Option::is_none")]
pub values: Option<Vec<String>>,
}
/// <p>Information about a property.</p>
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
pub struct SavingsPlanOfferingRateProperty {
/// <p>The property name.</p>
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// <p>The property value.</p>
#[serde(rename = "value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
/// <p>Information about a Savings Plan rate.</p>
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
pub struct SavingsPlanRate {
/// <p>The currency.</p>
#[serde(rename = "currency")]
#[serde(skip_serializing_if = "Option::is_none")]
pub currency: Option<String>,
/// <p>The specific AWS operation for the line item in the billing report.</p>
#[serde(rename = "operation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operation: Option<String>,
/// <p>The product type.</p>
#[serde(rename = "productType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product_type: Option<String>,
/// <p>The properties.</p>
#[serde(rename = "properties")]
#[serde(skip_serializing_if = "Option::is_none")]
pub properties: Option<Vec<SavingsPlanRateProperty>>,
/// <p>The rate.</p>
#[serde(rename = "rate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub rate: Option<String>,
/// <p>The service.</p>
#[serde(rename = "serviceCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_code: Option<String>,
/// <p>The unit.</p>
#[serde(rename = "unit")]
#[serde(skip_serializing_if = "Option::is_none")]
pub unit: Option<String>,
/// <p>The usage details of the line item in the billing report.</p>
#[serde(rename = "usageType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub usage_type: Option<String>,
}
/// <p>Information about a filter.</p>
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
pub struct SavingsPlanRateFilter {
/// <p>The filter name.</p>
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// <p>The filter values.</p>
#[serde(rename = "values")]
#[serde(skip_serializing_if = "Option::is_none")]
pub values: Option<Vec<String>>,
}
/// <p>Information about a property.</p>
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
pub struct SavingsPlanRateProperty {
/// <p>The property name.</p>
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// <p>The property value.</p>
#[serde(rename = "value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
pub struct TagResourceRequest {
/// <p>The Amazon Resource Name (ARN) of the resource.</p>
#[serde(rename = "resourceArn")]
pub resource_arn: String,
/// <p>One or more tags. For example, { "tags": {"key1":"value1", "key2":"value2"} }.</p>
#[serde(rename = "tags")]
pub tags: ::std::collections::HashMap<String, String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
pub struct TagResourceResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
pub struct UntagResourceRequest {
/// <p>The Amazon Resource Name (ARN) of the resource.</p>
#[serde(rename = "resourceArn")]
pub resource_arn: String,
/// <p>The tag keys.</p>
#[serde(rename = "tagKeys")]
pub tag_keys: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
pub struct UntagResourceResponse {}
/// Errors returned by CreateSavingsPlan
#[derive(Debug, PartialEq)]
pub enum CreateSavingsPlanError {
/// <p>An unexpected error occurred.</p>
InternalServer(String),
/// <p>The specified resource was not found.</p>
ResourceNotFound(String),
/// <p>A service quota has been exceeded.</p>
ServiceQuotaExceeded(String),
}
impl CreateSavingsPlanError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateSavingsPlanError> {
if let Some(err) = proto::json::Error::parse_rest(&res) {
match err.typ.as_str() {
"InternalServerException" => {
return RusotoError::Service(CreateSavingsPlanError::InternalServer(err.msg))
}
"ResourceNotFoundException" => {
return RusotoError::Service(CreateSavingsPlanError::ResourceNotFound(err.msg))
}
"ServiceQuotaExceededException" => {
return RusotoError::Service(CreateSavingsPlanError::ServiceQuotaExceeded(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
RusotoError::Unknown(res)
}
}
impl fmt::Display for CreateSavingsPlanError {
#[allow(unused_variables)]
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match *self {
CreateSavingsPlanError::InternalServer(ref cause) => write!(f, "{}", cause),
CreateSavingsPlanError::ResourceNotFound(ref cause) => write!(f, "{}", cause),
CreateSavingsPlanError::ServiceQuotaExceeded(ref cause) => write!(f, "{}", cause),
}
}
}
impl Error for CreateSavingsPlanError {}
/// Errors returned by DescribeSavingsPlanRates
#[derive(Debug, PartialEq)]
pub enum DescribeSavingsPlanRatesError {
/// <p>The specified resource was not found.</p>
ResourceNotFound(String),
}
impl DescribeSavingsPlanRatesError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeSavingsPlanRatesError> {
if let Some(err) = proto::json::Error::parse_rest(&res) {
match err.typ.as_str() {
"ResourceNotFoundException" => {
return RusotoError::Service(DescribeSavingsPlanRatesError::ResourceNotFound(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
RusotoError::Unknown(res)
}
}
impl fmt::Display for DescribeSavingsPlanRatesError {
#[allow(unused_variables)]
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match *self {
DescribeSavingsPlanRatesError::ResourceNotFound(ref cause) => write!(f, "{}", cause),
}
}
}
impl Error for DescribeSavingsPlanRatesError {}
/// Errors returned by DescribeSavingsPlans
#[derive(Debug, PartialEq)]
pub enum DescribeSavingsPlansError {
/// <p>An unexpected error occurred.</p>
InternalServer(String),
}
impl DescribeSavingsPlansError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeSavingsPlansError> {
if let Some(err) = proto::json::Error::parse_rest(&res) {
match err.typ.as_str() {
"InternalServerException" => {
return RusotoError::Service(DescribeSavingsPlansError::InternalServer(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
RusotoError::Unknown(res)
}
}
impl fmt::Display for DescribeSavingsPlansError {
#[allow(unused_variables)]
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match *self {
DescribeSavingsPlansError::InternalServer(ref cause) => write!(f, "{}", cause),
}
}
}
impl Error for DescribeSavingsPlansError {}
/// Errors returned by DescribeSavingsPlansOfferingRates
#[derive(Debug, PartialEq)]
pub enum DescribeSavingsPlansOfferingRatesError {
/// <p>An unexpected error occurred.</p>
InternalServer(String),
}
impl DescribeSavingsPlansOfferingRatesError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeSavingsPlansOfferingRatesError> {
if let Some(err) = proto::json::Error::parse_rest(&res) {
match err.typ.as_str() {
"InternalServerException" => {
return RusotoError::Service(
DescribeSavingsPlansOfferingRatesError::InternalServer(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
RusotoError::Unknown(res)
}
}
impl fmt::Display for DescribeSavingsPlansOfferingRatesError {
#[allow(unused_variables)]
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match *self {
DescribeSavingsPlansOfferingRatesError::InternalServer(ref cause) => {
write!(f, "{}", cause)
}
}
}
}
impl Error for DescribeSavingsPlansOfferingRatesError {}
/// Errors returned by DescribeSavingsPlansOfferings
#[derive(Debug, PartialEq)]
pub enum DescribeSavingsPlansOfferingsError {
/// <p>An unexpected error occurred.</p>
InternalServer(String),
}
impl DescribeSavingsPlansOfferingsError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeSavingsPlansOfferingsError> {
if let Some(err) = proto::json::Error::parse_rest(&res) {
match err.typ.as_str() {
"InternalServerException" => {
return RusotoError::Service(
DescribeSavingsPlansOfferingsError::InternalServer(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
RusotoError::Unknown(res)
}
}
impl fmt::Display for DescribeSavingsPlansOfferingsError {
#[allow(unused_variables)]
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match *self {
DescribeSavingsPlansOfferingsError::InternalServer(ref cause) => write!(f, "{}", cause),
}
}
}
impl Error for DescribeSavingsPlansOfferingsError {}
/// Errors returned by ListTagsForResource
#[derive(Debug, PartialEq)]
pub enum ListTagsForResourceError {
/// <p>An unexpected error occurred.</p>
InternalServer(String),
/// <p>The specified resource was not found.</p>
ResourceNotFound(String),
}
impl ListTagsForResourceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListTagsForResourceError> {
if let Some(err) = proto::json::Error::parse_rest(&res) {
match err.typ.as_str() {
"InternalServerException" => {
return RusotoError::Service(ListTagsForResourceError::InternalServer(err.msg))
}
"ResourceNotFoundException" => {
return RusotoError::Service(ListTagsForResourceError::ResourceNotFound(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
RusotoError::Unknown(res)
}
}
impl fmt::Display for ListTagsForResourceError {
#[allow(unused_variables)]
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match *self {
ListTagsForResourceError::InternalServer(ref cause) => write!(f, "{}", cause),
ListTagsForResourceError::ResourceNotFound(ref cause) => write!(f, "{}", cause),
}
}
}
impl Error for ListTagsForResourceError {}
/// Errors returned by TagResource
#[derive(Debug, PartialEq)]
pub enum TagResourceError {
/// <p>An unexpected error occurred.</p>
InternalServer(String),
/// <p>The specified resource was not found.</p>
ResourceNotFound(String),
/// <p>A service quota has been exceeded.</p>
ServiceQuotaExceeded(String),
}
impl TagResourceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<TagResourceError> {
if let Some(err) = proto::json::Error::parse_rest(&res) {
match err.typ.as_str() {
"InternalServerException" => {
return RusotoError::Service(TagResourceError::InternalServer(err.msg))
}
"ResourceNotFoundException" => {
return RusotoError::Service(TagResourceError::ResourceNotFound(err.msg))
}
"ServiceQuotaExceededException" => {
return RusotoError::Service(TagResourceError::ServiceQuotaExceeded(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
RusotoError::Unknown(res)
}
}
impl fmt::Display for TagResourceError {
#[allow(unused_variables)]
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match *self {
TagResourceError::InternalServer(ref cause) => write!(f, "{}", cause),
TagResourceError::ResourceNotFound(ref cause) => write!(f, "{}", cause),
TagResourceError::ServiceQuotaExceeded(ref cause) => write!(f, "{}", cause),
}
}
}
impl Error for TagResourceError {}
/// Errors returned by UntagResource
#[derive(Debug, PartialEq)]
pub enum UntagResourceError {
/// <p>An unexpected error occurred.</p>
InternalServer(String),
/// <p>The specified resource was not found.</p>
ResourceNotFound(String),
}
impl UntagResourceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UntagResourceError> {
if let Some(err) = proto::json::Error::parse_rest(&res) {
match err.typ.as_str() {
"InternalServerException" => {
return RusotoError::Service(UntagResourceError::InternalServer(err.msg))
}
"ResourceNotFoundException" => {
return RusotoError::Service(UntagResourceError::ResourceNotFound(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
RusotoError::Unknown(res)
}
}
impl fmt::Display for UntagResourceError {
#[allow(unused_variables)]
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match *self {
UntagResourceError::InternalServer(ref cause) => write!(f, "{}", cause),
UntagResourceError::ResourceNotFound(ref cause) => write!(f, "{}", cause),
}
}
}
impl Error for UntagResourceError {}
/// Trait representing the capabilities of the AWSSavingsPlans API. AWSSavingsPlans clients implement this trait.
#[async_trait]
pub trait SavingsPlans {
/// <p>Creates a Savings Plan.</p>
async fn create_savings_plan(
&self,
input: CreateSavingsPlanRequest,
) -> Result<CreateSavingsPlanResponse, RusotoError<CreateSavingsPlanError>>;
/// <p>Describes the specified Savings Plans rates.</p>
async fn describe_savings_plan_rates(
&self,
input: DescribeSavingsPlanRatesRequest,
) -> Result<DescribeSavingsPlanRatesResponse, RusotoError<DescribeSavingsPlanRatesError>>;
/// <p>Describes the specified Savings Plans.</p>
async fn describe_savings_plans(
&self,
input: DescribeSavingsPlansRequest,
) -> Result<DescribeSavingsPlansResponse, RusotoError<DescribeSavingsPlansError>>;
/// <p>Describes the specified Savings Plans offering rates.</p>
async fn describe_savings_plans_offering_rates(
&self,
input: DescribeSavingsPlansOfferingRatesRequest,
) -> Result<
DescribeSavingsPlansOfferingRatesResponse,
RusotoError<DescribeSavingsPlansOfferingRatesError>,
>;
/// <p>Describes the specified Savings Plans offerings.</p>
async fn describe_savings_plans_offerings(
&self,
input: DescribeSavingsPlansOfferingsRequest,
) -> Result<
DescribeSavingsPlansOfferingsResponse,
RusotoError<DescribeSavingsPlansOfferingsError>,
>;
/// <p>Lists the tags for the specified resource.</p>
async fn list_tags_for_resource(
&self,
input: ListTagsForResourceRequest,
) -> Result<ListTagsForResourceResponse, RusotoError<ListTagsForResourceError>>;
/// <p>Adds the specified tags to the specified resource.</p>
async fn tag_resource(
&self,
input: TagResourceRequest,
) -> Result<TagResourceResponse, RusotoError<TagResourceError>>;
/// <p>Removes the specified tags from the specified resource.</p>
async fn untag_resource(
&self,
input: UntagResourceRequest,
) -> Result<UntagResourceResponse, RusotoError<UntagResourceError>>;
}
/// A client for the AWSSavingsPlans API.
#[derive(Clone)]
pub struct SavingsPlansClient {
client: Client,
region: region::Region,
}
impl SavingsPlansClient {
/// Creates a client backed by the default tokio event loop.
///
/// The client will use the default credentials provider and tls client.
pub fn new(region: region::Region) -> SavingsPlansClient {
SavingsPlansClient {
client: Client::shared(),
region,
}
}
pub fn new_with<P, D>(
request_dispatcher: D,
credentials_provider: P,
region: region::Region,
) -> SavingsPlansClient
where
P: ProvideAwsCredentials + Send + Sync + 'static,
D: DispatchSignedRequest + Send + Sync + 'static,
{
SavingsPlansClient {
client: Client::new_with(credentials_provider, request_dispatcher),
region,
}
}
pub fn new_with_client(client: Client, region: region::Region) -> SavingsPlansClient {
SavingsPlansClient { client, region }
}
}
#[async_trait]
impl SavingsPlans for SavingsPlansClient {
/// <p>Creates a Savings Plan.</p>
async fn create_savings_plan(
&self,
input: CreateSavingsPlanRequest,
) -> Result<CreateSavingsPlanResponse, RusotoError<CreateSavingsPlanError>> {
let request_uri = "/CreateSavingsPlan";
let mut request = SignedRequest::new("POST", "savingsplans", &self.region, &request_uri);
request.set_content_type("application/x-amz-json-1.1".to_owned());
let encoded = Some(serde_json::to_vec(&input).unwrap());
request.set_payload(encoded);
let mut response = self
.client
.sign_and_dispatch(request)
.await
.map_err(RusotoError::from)?;
if response.status.is_success() {
let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
let result = proto::json::ResponsePayload::new(&response)
.deserialize::<CreateSavingsPlanResponse, _>()?;
Ok(result)
} else {
let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
Err(CreateSavingsPlanError::from_response(response))
}
}
/// <p>Describes the specified Savings Plans rates.</p>
async fn describe_savings_plan_rates(
&self,
input: DescribeSavingsPlanRatesRequest,
) -> Result<DescribeSavingsPlanRatesResponse, RusotoError<DescribeSavingsPlanRatesError>> {
let request_uri = "/DescribeSavingsPlanRates";
let mut request = SignedRequest::new("POST", "savingsplans", &self.region, &request_uri);
request.set_content_type("application/x-amz-json-1.1".to_owned());
let encoded = Some(serde_json::to_vec(&input).unwrap());
request.set_payload(encoded);
let mut response = self
.client
.sign_and_dispatch(request)
.await
.map_err(RusotoError::from)?;
if response.status.is_success() {
let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
let result = proto::json::ResponsePayload::new(&response)
.deserialize::<DescribeSavingsPlanRatesResponse, _>()?;
Ok(result)
} else {
let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
Err(DescribeSavingsPlanRatesError::from_response(response))
}
}
/// <p>Describes the specified Savings Plans.</p>
async fn describe_savings_plans(
&self,
input: DescribeSavingsPlansRequest,
) -> Result<DescribeSavingsPlansResponse, RusotoError<DescribeSavingsPlansError>> {
let request_uri = "/DescribeSavingsPlans";
let mut request = SignedRequest::new("POST", "savingsplans", &self.region, &request_uri);
request.set_content_type("application/x-amz-json-1.1".to_owned());
let encoded = Some(serde_json::to_vec(&input).unwrap());
request.set_payload(encoded);
let mut response = self
.client
.sign_and_dispatch(request)
.await
.map_err(RusotoError::from)?;
if response.status.is_success() {
let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
let result = proto::json::ResponsePayload::new(&response)
.deserialize::<DescribeSavingsPlansResponse, _>()?;
Ok(result)
} else {
let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
Err(DescribeSavingsPlansError::from_response(response))
}
}
/// <p>Describes the specified Savings Plans offering rates.</p>
async fn describe_savings_plans_offering_rates(
&self,
input: DescribeSavingsPlansOfferingRatesRequest,
) -> Result<
DescribeSavingsPlansOfferingRatesResponse,
RusotoError<DescribeSavingsPlansOfferingRatesError>,
> {
let request_uri = "/DescribeSavingsPlansOfferingRates";
let mut request = SignedRequest::new("POST", "savingsplans", &self.region, &request_uri);
request.set_content_type("application/x-amz-json-1.1".to_owned());
let encoded = Some(serde_json::to_vec(&input).unwrap());
request.set_payload(encoded);
let mut response = self
.client
.sign_and_dispatch(request)
.await
.map_err(RusotoError::from)?;
if response.status.is_success() {
let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
let result = proto::json::ResponsePayload::new(&response)
.deserialize::<DescribeSavingsPlansOfferingRatesResponse, _>()?;
Ok(result)
} else {
let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
Err(DescribeSavingsPlansOfferingRatesError::from_response(
response,
))
}
}
/// <p>Describes the specified Savings Plans offerings.</p>
async fn describe_savings_plans_offerings(
&self,
input: DescribeSavingsPlansOfferingsRequest,
) -> Result<
DescribeSavingsPlansOfferingsResponse,
RusotoError<DescribeSavingsPlansOfferingsError>,
> {
let request_uri = "/DescribeSavingsPlansOfferings";
let mut request = SignedRequest::new("POST", "savingsplans", &self.region, &request_uri);
request.set_content_type("application/x-amz-json-1.1".to_owned());
let encoded = Some(serde_json::to_vec(&input).unwrap());
request.set_payload(encoded);
let mut response = self
.client
.sign_and_dispatch(request)
.await
.map_err(RusotoError::from)?;
if response.status.is_success() {
let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
let result = proto::json::ResponsePayload::new(&response)
.deserialize::<DescribeSavingsPlansOfferingsResponse, _>()?;
Ok(result)
} else {
let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
Err(DescribeSavingsPlansOfferingsError::from_response(response))
}
}
/// <p>Lists the tags for the specified resource.</p>
async fn list_tags_for_resource(
&self,
input: ListTagsForResourceRequest,
) -> Result<ListTagsForResourceResponse, RusotoError<ListTagsForResourceError>> {
let request_uri = "/ListTagsForResource";
let mut request = SignedRequest::new("POST", "savingsplans", &self.region, &request_uri);
request.set_content_type("application/x-amz-json-1.1".to_owned());
let encoded = Some(serde_json::to_vec(&input).unwrap());
request.set_payload(encoded);
let mut response = self
.client
.sign_and_dispatch(request)
.await
.map_err(RusotoError::from)?;
if response.status.is_success() {
let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
let result = proto::json::ResponsePayload::new(&response)
.deserialize::<ListTagsForResourceResponse, _>()?;
Ok(result)
} else {
let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
Err(ListTagsForResourceError::from_response(response))
}
}
/// <p>Adds the specified tags to the specified resource.</p>
async fn tag_resource(
&self,
input: TagResourceRequest,
) -> Result<TagResourceResponse, RusotoError<TagResourceError>> {
let request_uri = "/TagResource";
let mut request = SignedRequest::new("POST", "savingsplans", &self.region, &request_uri);
request.set_content_type("application/x-amz-json-1.1".to_owned());
let encoded = Some(serde_json::to_vec(&input).unwrap());
request.set_payload(encoded);
let mut response = self
.client
.sign_and_dispatch(request)
.await
.map_err(RusotoError::from)?;
if response.status.is_success() {
let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
let result = proto::json::ResponsePayload::new(&response)
.deserialize::<TagResourceResponse, _>()?;
Ok(result)
} else {
let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
Err(TagResourceError::from_response(response))
}
}
/// <p>Removes the specified tags from the specified resource.</p>
async fn untag_resource(
&self,
input: UntagResourceRequest,
) -> Result<UntagResourceResponse, RusotoError<UntagResourceError>> {
let request_uri = "/UntagResource";
let mut request = SignedRequest::new("POST", "savingsplans", &self.region, &request_uri);
request.set_content_type("application/x-amz-json-1.1".to_owned());
let encoded = Some(serde_json::to_vec(&input).unwrap());
request.set_payload(encoded);
let mut response = self
.client
.sign_and_dispatch(request)
.await
.map_err(RusotoError::from)?;
if response.status.is_success() {
let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
let result = proto::json::ResponsePayload::new(&response)
.deserialize::<UntagResourceResponse, _>()?;
Ok(result)
} else {
let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
Err(UntagResourceError::from_response(response))
}
}
}
| rust |
About Derek Carter / Who is Derek Carter ?
Derek Carter is a sensitive and emotional person. The hard knocks of this world have more effects on Derek Carter than they have on most other people, and Derek Carter lose some of the enjoyment of life in consequence. What other people say and think of Derek Carter is taken by Derek Carter to heart. Thus, there are a certain number of things which cause Derek Carter unhappiness which, after all, are not worth troubling about.Derek Carter's manner is quiet, as a rule, and this quality gives Derek Carter the appearance of being strong and determined in the eyes of Derek Carter's fellow-men and women. It enables Derek Carter to get Derek Carter's own way when Derek Carter want it.Derek Carter do not say as much as Derek Carter think and while Derek Carter is thinking, Derek Carter is reasoning. It follows that Derek Carter's judgement is worth having and people will flock to Derek Carter for advice.Derek Carter have several excellent qualities. Derek Carter is highly sympathetic, which makes Derek Carter a good friend. Derek Carter is loyal and patriotic and are thus a first class citizen. Derek Carter is, or would be a most lovable parent. Derek Carter is, or would be, everything that Derek Carter's partner could desire. Clearly, the good qualities of yours far outweigh the others.
Derek Carter is brave and ambitious. Unafraid to take chances and enact their plans, Derek Carter is extremely active individual who stimulates others into action. A busy person who is always doing something constructively, Derek Carter rarely misuse energy. If what Derek Carter is doing with Derek Carter's life is unfulfilling, Derek Carter is unafraid to change it.
Derek Carter is precisely the one, people are talking about when they say that behind every successful person there is a lover. Derek Carter's marriage partner will motivate Derek Carter to accomplish Derek Carter's objectives.
| english |
<filename>base/fs/remotefs/dfs/dfsserver/serverlibrary/dfstrusteddomain.cxx<gh_stars>10-100
//+----------------------------------------------------------------------------
//
// Copyright (C) 2000, Microsoft Corporation
//
// File: DfsTrustedDomain.cxx
//
// Contents: implements the trusted domain
//
// Classes: DfsTrustedDomain
//
// History: Apr. 8 2000, Author: udayh
//
//-----------------------------------------------------------------------------
#include <nt.h>
#include <ntrtl.h>
#include <nturtl.h>
#include <windows.h>
#include <windowsx.h>
#include <ntsam.h>
#include <dsgetdc.h>
#include <lmcons.h>
#include <lmapibuf.h>
#include <lmaccess.h>
#include <string.h>
#include <tchar.h>
#include <stdarg.h>
#include <process.h>
#include <ole2.h>
#include <ntdsapi.h>
#include "DfsReferralData.hxx"
#include "DfsTrustedDomain.hxx"
#include "DfsReplica.hxx"
//
// logging specific includes
//
#include "DfsTrustedDomain.tmh"
//+-------------------------------------------------------------------------
//
// Function: GetDcReferralData - get the referral data
//
// Arguments: ppReferralData - the referral data for this instance
// pCacheHit - did we find it already loaded?
//
// Returns: Status
// ERROR_SUCCESS if we could get the referral data
// error status otherwise.
//
//
// Description: This routine returns a reference DfsReferralDAta
// If one does not already exist in this class instance,
// we create a new one. If someone is in the process
// of loading the referral, we wait on the event in
// the referral data which gets signalled when the thread
// responsible for loading is done with the load.
//
//--------------------------------------------------------------------------
DFSSTATUS
DfsTrustedDomain::GetDcReferralData(
OUT DfsReferralData **ppReferralData,
OUT BOOLEAN *pCacheHit )
{
DfsReferralData *pRefData = NULL;
DFSSTATUS Status = STATUS_SUCCESS;
if (_DomainName.Length == 0)
{
return ERROR_INVALID_PARAMETER;
}
*pCacheHit = FALSE;
Status = AcquireLock();
if ( Status != STATUS_SUCCESS )
{
return Status;
}
// First see if we may need to do a reload.
if (_LoadState == DfsTrustedDomainDcLoadFailed &&
IsTimeToRetry())
{
ASSERT(_pDcReferralData == NULL);
_LoadState = DfsTrustedDomainDcNotLoaded;
}
//
// WE take difference action depending on the load state.
//
switch ( _LoadState )
{
case DfsTrustedDomainDcLoaded:
DFS_TRACE_LOW(REFERRAL_SERVER, " Get Referral Data: Cache hit\n");
//
// we are dealing with a loaded instance. Just acquire a reference
// and return the loaded referral data.
//
ASSERT (_pDcReferralData != NULL);
pRefData = _pDcReferralData;
pRefData->AcquireReference();
ReleaseLock();
*pCacheHit = TRUE;
*ppReferralData = pRefData;
break;
case DfsTrustedDomainDcNotLoaded:
//
// The dc info is not loaded. Make sure that the referral data is
// indeed empty. Create a new instance of the referral data
// and set the state to load in progress.
ASSERT(_pDcReferralData == NULL);
DFS_TRACE_NORM(REFERRAL_SERVER, " Get Referral Data: not loaded\n");
_pDcReferralData = new DfsReferralData( &Status );
if ( _pDcReferralData != NULL )
{
if(Status == ERROR_SUCCESS)
{
_LoadState = DfsTrustedDomainDcLoadInProgress;
//
// Acquire a reference on the new referral data, since we
// have to return a referenced referral data to the caller.
//
pRefData = _pDcReferralData;
pRefData->AcquireReference();
}
else
{
_pDcReferralData->ReleaseReference();
_pDcReferralData = NULL;
}
} else
{
Status = ERROR_NOT_ENOUGH_MEMORY;
}
//
// We no longer need the lock. We have allocate the referral
// data and marked the state accordingly. No other thread can
// interfere with our load now.
//
ReleaseLock();
//
// Now we load the referral data, and save the status of the
// load in both our load status as well as the load status
// in the referral data.
// If the load was successful, we add this to the loaded list
// of referral data that can be scavenged later. We set the load
// state to loaded, and signal the event so that all waiting
// threads can now be woken up.
//
if ( Status == ERROR_SUCCESS )
{
_pDcReferralData->DoSiteCosting = (BOOLEAN)DfsCheckSiteCostingEnabled();
Status = LoadDcReferralData( _pDcReferralData );
_LoadStatus = Status;
_RetryFailedLoadTimeout = 0;
_pDcReferralData->LoadStatus = Status;
if ( Status == ERROR_SUCCESS )
{
_LoadState = DfsTrustedDomainDcLoaded;
*ppReferralData = pRefData;
pRefData->Signal();
} else
{
_LoadState = DfsTrustedDomainDcLoadFailed;
_RetryFailedLoadTimeout = GetTickCount();
pRefData->Signal();
(VOID)RemoveDcReferralData( pRefData, NULL );
DFS_TRACE_ERROR_HIGH(Status, REFERRAL_SERVER,
"DomainDC load failed for %wZ, LoadStatus %x, Status %x\n",
GetDomainName(),
_LoadStatus,
Status );
}
}
break;
case DfsTrustedDomainDcLoadInProgress:
//
// The load is in progress. We acquire a reference on the
// referral data being loaded and wait for the event in the
// referral data to be signalled. The return status of the wait
// indicates if we can return the referral data or we fail
// this request with an error.
//
DFS_TRACE_NORM(REFERRAL_SERVER, " Get Referral Data: load in progress\n");
ASSERT(_pDcReferralData != NULL);
pRefData = _pDcReferralData;
pRefData->AcquireReference();
ReleaseLock();
DFS_TRACE_NORM(REFERRAL_SERVER, "Thread: Waiting for referral load\n");
Status = pRefData->Wait();
if ( Status == ERROR_SUCCESS )
{
*ppReferralData = pRefData;
} else
{
pRefData->ReleaseReference();
}
DFS_TRACE_NORM(REFERRAL_SERVER, " Get Referral Data: load in progress done\n");
break;
case DfsTrustedDomainDcLoadFailed:
//
// The Load failed. REturn error. We need to setup a time
// after which we need to reattempt the load.
//
Status = _LoadStatus;
ReleaseLock();
*ppReferralData = NULL;
break;
default:
//
// We should never get here. Its an invalid state.
//
ASSERT(TRUE);
Status = ERROR_INVALID_STATE;
ReleaseLock();
break;
}
ASSERT((Status != ERROR_SUCCESS) || (*ppReferralData != NULL));
return Status;
}
DFSSTATUS
DfsTrustedDomain::RemoveDcReferralData(
DfsReferralData *pRemoveReferralData,
PBOOLEAN pRemoved )
{
DFSSTATUS Status = ERROR_SUCCESS;
DfsReferralData *pRefData = NULL;
//
// Get the exclusive lock on this instance
//
if (pRemoved != NULL)
{
*pRemoved = FALSE;
}
AcquireLock();
//
// make sure _LoadState indicates that it is loaded.
// Set the referralData to null, and state to NotLoaded.
//
if (_LoadState == DfsTrustedDomainDcLoaded || _LoadState == DfsTrustedDomainDcLoadFailed)
{
pRefData = _pDcReferralData;
if ( (pRemoveReferralData == NULL) ||
(pRemoveReferralData == pRefData) )
{
_pDcReferralData = NULL;
_LoadState = (_LoadState == DfsTrustedDomainDcLoaded) ?
DfsTrustedDomainDcNotLoaded : DfsTrustedDomainDcLoadFailed;
}
else {
pRefData = NULL;
}
}
ReleaseLock();
//
// Release reference on the referral data. This is the reference
// we had taken when we had cached the referral data here.
//
if (pRefData != NULL)
{
pRefData->ReleaseReference();
if (pRemoved != NULL)
{
*pRemoved = TRUE;
}
}
return Status;
}
DFSSTATUS
DfsTrustedDomain::LoadDcReferralData(
IN DfsReferralData *pReferralData )
{
DFSSTATUS Status;
PDS_DOMAIN_CONTROLLER_INFO_1 pDsDomainControllerInfo1 = NULL;
HANDLE HandleToDs = NULL;
ULONG NameCount = 0, Index;
ULONG DsDcCount = 0;
ULONG UseIndex = 0;
BOOLEAN CacheHit = FALSE;
LPWSTR DomainController = NULL;
//
// we have a problem that DsBind fails when going across forests
// for netbios domains as local system.
// So we bind to the DNS domain name only for cross forest domains,
// this information is stored by UseBindDomain boolean.
//
Status = DsBind(DomainController,
_UseBindDomain ? _BindDomainName.Buffer : _DomainName.Buffer,
&HandleToDs);
DFS_TRACE_ERROR_HIGH(Status, REFERRAL_SERVER, "DfsTrustedDomain DsBind Status %d\n",
Status);
if (Status == ERROR_SUCCESS)
{
Status = DsGetDomainControllerInfo( HandleToDs,
_DomainName.Buffer,
1,
&NameCount,
(PVOID *)(&pDsDomainControllerInfo1));
DFS_TRACE_ERROR_HIGH(Status, REFERRAL_SERVER, "DfsTrustedDomain DsGetDomainControllerInfo Status %d\n",
Status);
DsUnBind( &HandleToDs);
}
if (Status == ERROR_SUCCESS)
{
for (Index = 0; Index < NameCount; Index++)
{
if (pDsDomainControllerInfo1[Index].fDsEnabled == TRUE)
{
DsDcCount++;
}
}
if (DsDcCount > 0)
{
pReferralData->pReplicas = new DfsReplica[ DsDcCount ];
if (pReferralData->pReplicas == NULL)
{
Status = ERROR_NOT_ENOUGH_MEMORY;
}
else
{
pReferralData->ReplicaCount = DsDcCount;
}
}
for (Index = 0; ((Index < NameCount) && (Status == ERROR_SUCCESS)); Index++)
{
LPWSTR UseName;
CacheHit = FALSE;
if (pDsDomainControllerInfo1[Index].fDsEnabled != TRUE)
{
continue;
}
if (_Netbios == TRUE)
{
UseName = pDsDomainControllerInfo1[Index].NetbiosName;
}
else
{
UseName = pDsDomainControllerInfo1[Index].DnsHostName;
if (UseName == NULL)
{
UseName = pDsDomainControllerInfo1[Index].NetbiosName;
DFS_TRACE_ERROR_HIGH(Status, REFERRAL_SERVER, "DfsDomainInformation DNS Name is NULL. Using Netbios =%ws Status %d\n",
UseName, Status);
}
}
if (UseName != NULL)
{
UNICODE_STRING TargetName;
Status = DfsRtlInitUnicodeStringEx(&TargetName, UseName);
if(Status == ERROR_SUCCESS)
{
Status = (&pReferralData->pReplicas[ UseIndex ])->SetTargetServer( &TargetName, &CacheHit );
DFS_TRACE_ERROR_HIGH(Status, REFERRAL_SERVER, "DfsDomainInformation SetTargetServer=%wZ Status %d\n",
&TargetName, Status);
}
UseIndex++;
}
}
DsFreeDomainControllerInfo( 1,
NameCount,
pDsDomainControllerInfo1);
}
return Status;
}
| cpp |
mod atlas;
#[cfg(feature = "image_rs")]
mod raster;
#[cfg(feature = "svg")]
mod vector;
use crate::Transformation;
use atlas::Atlas;
use iced_graphics::layer;
use iced_native::Rectangle;
use std::cell::RefCell;
use std::mem;
use bytemuck::{Pod, Zeroable};
#[cfg(feature = "image_rs")]
use iced_native::image;
#[cfg(feature = "svg")]
use iced_native::svg;
#[derive(Debug)]
pub struct Pipeline {
#[cfg(feature = "image_rs")]
raster_cache: RefCell<raster::Cache>,
#[cfg(feature = "svg")]
vector_cache: RefCell<vector::Cache>,
pipeline: wgpu::RenderPipeline,
uniforms: wgpu::Buffer,
vertices: wgpu::Buffer,
indices: wgpu::Buffer,
instances: wgpu::Buffer,
constants: wgpu::BindGroup,
texture: wgpu::BindGroup,
texture_version: usize,
texture_layout: wgpu::BindGroupLayout,
texture_atlas: Atlas,
}
impl Pipeline {
pub fn new(device: &wgpu::Device, format: wgpu::TextureFormat) -> Self {
use wgpu::util::DeviceExt;
let sampler = device.create_sampler(&wgpu::SamplerDescriptor {
address_mode_u: wgpu::AddressMode::ClampToEdge,
address_mode_v: wgpu::AddressMode::ClampToEdge,
address_mode_w: wgpu::AddressMode::ClampToEdge,
mag_filter: wgpu::FilterMode::Linear,
min_filter: wgpu::FilterMode::Linear,
mipmap_filter: wgpu::FilterMode::Linear,
..Default::default()
});
let constant_layout =
device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor {
label: Some("iced_wgpu::image constants layout"),
entries: &[
wgpu::BindGroupLayoutEntry {
binding: 0,
visibility: wgpu::ShaderStages::VERTEX,
ty: wgpu::BindingType::Buffer {
ty: wgpu::BufferBindingType::Uniform,
has_dynamic_offset: false,
min_binding_size: wgpu::BufferSize::new(
mem::size_of::<Uniforms>() as u64,
),
},
count: None,
},
wgpu::BindGroupLayoutEntry {
binding: 1,
visibility: wgpu::ShaderStages::FRAGMENT,
ty: wgpu::BindingType::Sampler {
comparison: false,
filtering: true,
},
count: None,
},
],
});
let uniforms_buffer = device.create_buffer(&wgpu::BufferDescriptor {
label: Some("iced_wgpu::image uniforms buffer"),
size: mem::size_of::<Uniforms>() as u64,
usage: wgpu::BufferUsages::UNIFORM | wgpu::BufferUsages::COPY_DST,
mapped_at_creation: false,
});
let constant_bind_group =
device.create_bind_group(&wgpu::BindGroupDescriptor {
label: Some("iced_wgpu::image constants bind group"),
layout: &constant_layout,
entries: &[
wgpu::BindGroupEntry {
binding: 0,
resource: wgpu::BindingResource::Buffer(
wgpu::BufferBinding {
buffer: &uniforms_buffer,
offset: 0,
size: None,
},
),
},
wgpu::BindGroupEntry {
binding: 1,
resource: wgpu::BindingResource::Sampler(&sampler),
},
],
});
let texture_layout =
device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor {
label: Some("iced_wgpu::image texture atlas layout"),
entries: &[wgpu::BindGroupLayoutEntry {
binding: 0,
visibility: wgpu::ShaderStages::FRAGMENT,
ty: wgpu::BindingType::Texture {
sample_type: wgpu::TextureSampleType::Float {
filterable: true,
},
view_dimension: wgpu::TextureViewDimension::D2Array,
multisampled: false,
},
count: None,
}],
});
let layout =
device.create_pipeline_layout(&wgpu::PipelineLayoutDescriptor {
label: Some("iced_wgpu::image pipeline layout"),
push_constant_ranges: &[],
bind_group_layouts: &[&constant_layout, &texture_layout],
});
let shader =
device.create_shader_module(&wgpu::ShaderModuleDescriptor {
label: Some("iced_wgpu::image::shader"),
source: wgpu::ShaderSource::Wgsl(std::borrow::Cow::Borrowed(
include_str!("shader/image.wgsl"),
)),
});
let pipeline =
device.create_render_pipeline(&wgpu::RenderPipelineDescriptor {
label: Some("iced_wgpu::image pipeline"),
layout: Some(&layout),
vertex: wgpu::VertexState {
module: &shader,
entry_point: "vs_main",
buffers: &[
wgpu::VertexBufferLayout {
array_stride: mem::size_of::<Vertex>() as u64,
step_mode: wgpu::VertexStepMode::Vertex,
attributes: &[wgpu::VertexAttribute {
shader_location: 0,
format: wgpu::VertexFormat::Float32x2,
offset: 0,
}],
},
wgpu::VertexBufferLayout {
array_stride: mem::size_of::<Instance>() as u64,
step_mode: wgpu::VertexStepMode::Instance,
attributes: &wgpu::vertex_attr_array!(
1 => Float32x2,
2 => Float32x2,
3 => Float32x2,
4 => Float32x2,
5 => Sint32,
),
},
],
},
fragment: Some(wgpu::FragmentState {
module: &shader,
entry_point: "fs_main",
targets: &[wgpu::ColorTargetState {
format,
blend: Some(wgpu::BlendState {
color: wgpu::BlendComponent {
src_factor: wgpu::BlendFactor::SrcAlpha,
dst_factor: wgpu::BlendFactor::OneMinusSrcAlpha,
operation: wgpu::BlendOperation::Add,
},
alpha: wgpu::BlendComponent {
src_factor: wgpu::BlendFactor::One,
dst_factor: wgpu::BlendFactor::OneMinusSrcAlpha,
operation: wgpu::BlendOperation::Add,
},
}),
write_mask: wgpu::ColorWrites::ALL,
}],
}),
primitive: wgpu::PrimitiveState {
topology: wgpu::PrimitiveTopology::TriangleList,
front_face: wgpu::FrontFace::Cw,
..Default::default()
},
depth_stencil: None,
multisample: wgpu::MultisampleState {
count: 1,
mask: !0,
alpha_to_coverage_enabled: false,
},
});
let vertices =
device.create_buffer_init(&wgpu::util::BufferInitDescriptor {
label: Some("iced_wgpu::image vertex buffer"),
contents: bytemuck::cast_slice(&QUAD_VERTS),
usage: wgpu::BufferUsages::VERTEX,
});
let indices =
device.create_buffer_init(&wgpu::util::BufferInitDescriptor {
label: Some("iced_wgpu::image index buffer"),
contents: bytemuck::cast_slice(&QUAD_INDICES),
usage: wgpu::BufferUsages::INDEX,
});
let instances = device.create_buffer(&wgpu::BufferDescriptor {
label: Some("iced_wgpu::image instance buffer"),
size: mem::size_of::<Instance>() as u64 * Instance::MAX as u64,
usage: wgpu::BufferUsages::VERTEX | wgpu::BufferUsages::COPY_DST,
mapped_at_creation: false,
});
let texture_atlas = Atlas::new(device);
let texture = device.create_bind_group(&wgpu::BindGroupDescriptor {
label: Some("iced_wgpu::image texture atlas bind group"),
layout: &texture_layout,
entries: &[wgpu::BindGroupEntry {
binding: 0,
resource: wgpu::BindingResource::TextureView(
&texture_atlas.view(),
),
}],
});
Pipeline {
#[cfg(feature = "image_rs")]
raster_cache: RefCell::new(raster::Cache::new()),
#[cfg(feature = "svg")]
vector_cache: RefCell::new(vector::Cache::new()),
pipeline,
uniforms: uniforms_buffer,
vertices,
indices,
instances,
constants: constant_bind_group,
texture,
texture_version: texture_atlas.layer_count(),
texture_layout,
texture_atlas,
}
}
#[cfg(feature = "image_rs")]
pub fn dimensions(&self, handle: &image::Handle) -> (u32, u32) {
let mut cache = self.raster_cache.borrow_mut();
let memory = cache.load(&handle);
memory.dimensions()
}
#[cfg(feature = "svg")]
pub fn viewport_dimensions(&self, handle: &svg::Handle) -> (u32, u32) {
let mut cache = self.vector_cache.borrow_mut();
let svg = cache.load(&handle);
svg.viewport_dimensions()
}
pub fn draw(
&mut self,
device: &wgpu::Device,
staging_belt: &mut wgpu::util::StagingBelt,
encoder: &mut wgpu::CommandEncoder,
images: &[layer::Image],
transformation: Transformation,
bounds: Rectangle<u32>,
target: &wgpu::TextureView,
_scale: f32,
) {
let instances: &mut Vec<Instance> = &mut Vec::new();
#[cfg(feature = "image_rs")]
let mut raster_cache = self.raster_cache.borrow_mut();
#[cfg(feature = "svg")]
let mut vector_cache = self.vector_cache.borrow_mut();
for image in images {
match &image {
#[cfg(feature = "image_rs")]
layer::Image::Raster { handle, bounds } => {
if let Some(atlas_entry) = raster_cache.upload(
handle,
device,
encoder,
&mut self.texture_atlas,
) {
add_instances(
[bounds.x, bounds.y],
[bounds.width, bounds.height],
atlas_entry,
instances,
);
}
}
#[cfg(not(feature = "image_rs"))]
layer::Image::Raster { .. } => {}
#[cfg(feature = "svg")]
layer::Image::Vector { handle, bounds } => {
let size = [bounds.width, bounds.height];
if let Some(atlas_entry) = vector_cache.upload(
handle,
size,
_scale,
device,
encoder,
&mut self.texture_atlas,
) {
add_instances(
[bounds.x, bounds.y],
size,
atlas_entry,
instances,
);
}
}
#[cfg(not(feature = "svg"))]
layer::Image::Vector { .. } => {}
}
}
if instances.is_empty() {
return;
}
let texture_version = self.texture_atlas.layer_count();
if self.texture_version != texture_version {
log::info!("Atlas has grown. Recreating bind group...");
self.texture =
device.create_bind_group(&wgpu::BindGroupDescriptor {
label: Some("iced_wgpu::image texture atlas bind group"),
layout: &self.texture_layout,
entries: &[wgpu::BindGroupEntry {
binding: 0,
resource: wgpu::BindingResource::TextureView(
&self.texture_atlas.view(),
),
}],
});
self.texture_version = texture_version;
}
{
let mut uniforms_buffer = staging_belt.write_buffer(
encoder,
&self.uniforms,
0,
wgpu::BufferSize::new(mem::size_of::<Uniforms>() as u64)
.unwrap(),
device,
);
uniforms_buffer.copy_from_slice(bytemuck::bytes_of(&Uniforms {
transform: transformation.into(),
}));
}
let mut i = 0;
let total = instances.len();
while i < total {
let end = (i + Instance::MAX).min(total);
let amount = end - i;
let mut instances_buffer = staging_belt.write_buffer(
encoder,
&self.instances,
0,
wgpu::BufferSize::new(
(amount * std::mem::size_of::<Instance>()) as u64,
)
.unwrap(),
device,
);
instances_buffer.copy_from_slice(bytemuck::cast_slice(
&instances[i..i + amount],
));
let mut render_pass =
encoder.begin_render_pass(&wgpu::RenderPassDescriptor {
label: Some("iced_wgpu::image render pass"),
color_attachments: &[wgpu::RenderPassColorAttachment {
view: target,
resolve_target: None,
ops: wgpu::Operations {
load: wgpu::LoadOp::Load,
store: true,
},
}],
depth_stencil_attachment: None,
});
render_pass.set_pipeline(&self.pipeline);
render_pass.set_bind_group(0, &self.constants, &[]);
render_pass.set_bind_group(1, &self.texture, &[]);
render_pass.set_index_buffer(
self.indices.slice(..),
wgpu::IndexFormat::Uint16,
);
render_pass.set_vertex_buffer(0, self.vertices.slice(..));
render_pass.set_vertex_buffer(1, self.instances.slice(..));
render_pass.set_scissor_rect(
bounds.x,
bounds.y,
bounds.width,
bounds.height,
);
render_pass.draw_indexed(
0..QUAD_INDICES.len() as u32,
0,
0..amount as u32,
);
i += Instance::MAX;
}
}
pub fn trim_cache(&mut self) {
#[cfg(feature = "image_rs")]
self.raster_cache.borrow_mut().trim(&mut self.texture_atlas);
#[cfg(feature = "svg")]
self.vector_cache.borrow_mut().trim(&mut self.texture_atlas);
}
}
#[repr(C)]
#[derive(Clone, Copy, Zeroable, Pod)]
pub struct Vertex {
_position: [f32; 2],
}
const QUAD_INDICES: [u16; 6] = [0, 1, 2, 0, 2, 3];
const QUAD_VERTS: [Vertex; 4] = [
Vertex {
_position: [0.0, 0.0],
},
Vertex {
_position: [1.0, 0.0],
},
Vertex {
_position: [1.0, 1.0],
},
Vertex {
_position: [0.0, 1.0],
},
];
#[repr(C)]
#[derive(Debug, Clone, Copy, Zeroable, Pod)]
struct Instance {
_position: [f32; 2],
_size: [f32; 2],
_position_in_atlas: [f32; 2],
_size_in_atlas: [f32; 2],
_layer: u32,
}
impl Instance {
pub const MAX: usize = 1_000;
}
#[repr(C)]
#[derive(Debug, Clone, Copy, Zeroable, Pod)]
struct Uniforms {
transform: [f32; 16],
}
fn add_instances(
image_position: [f32; 2],
image_size: [f32; 2],
entry: &atlas::Entry,
instances: &mut Vec<Instance>,
) {
match entry {
atlas::Entry::Contiguous(allocation) => {
add_instance(image_position, image_size, allocation, instances);
}
atlas::Entry::Fragmented { fragments, size } => {
let scaling_x = image_size[0] / size.0 as f32;
let scaling_y = image_size[1] / size.1 as f32;
for fragment in fragments {
let allocation = &fragment.allocation;
let [x, y] = image_position;
let (fragment_x, fragment_y) = fragment.position;
let (fragment_width, fragment_height) = allocation.size();
let position = [
x + fragment_x as f32 * scaling_x,
y + fragment_y as f32 * scaling_y,
];
let size = [
fragment_width as f32 * scaling_x,
fragment_height as f32 * scaling_y,
];
add_instance(position, size, allocation, instances);
}
}
}
}
#[inline]
fn add_instance(
position: [f32; 2],
size: [f32; 2],
allocation: &atlas::Allocation,
instances: &mut Vec<Instance>,
) {
let (x, y) = allocation.position();
let (width, height) = allocation.size();
let layer = allocation.layer();
let instance = Instance {
_position: position,
_size: size,
_position_in_atlas: [
(x as f32 + 0.5) / atlas::SIZE as f32,
(y as f32 + 0.5) / atlas::SIZE as f32,
],
_size_in_atlas: [
(width as f32 - 1.0) / atlas::SIZE as f32,
(height as f32 - 1.0) / atlas::SIZE as f32,
],
_layer: layer as u32,
};
instances.push(instance);
}
| rust |
<reponame>thinhtran3588/web-template
import {Document} from '@core/components/document';
export default Document;
| typescript |
Indian pace bowling has come a long way in the past few decades. From a time when the Indian team craved quality fast bowlers during the 90s to have one of the best fast bowling attacks in the world, it has been a major revolution in Indian cricket. In a team that has equally good fast bowlers waiting for their opportunity to break into playing XI, Indian pacers have wreaked havoc in recent times.
India was never good at producing fast bowlers until the most recent decade. However, arch-rivals Pakistan was considered to master the art of fast bowling. The ‘Men in Green’ was indeed known as the land of fast bowlers as they kept producing one after the other. While most have acknowledged their potency as a fast bowling nation, they fail to fathom India’s recent rise as a dominant force.
In one of the recent Social media post made by an Australian journalist, he took a dig at India’s pace bowler Bhuvneshwar Kumar. He trolled Bhuvi for his average pace and how still India considers him as a fast bowler despite his slow speed. Bhuvneshwar, who came into reckoning majorly due to swing bowling, has gained pace in his recent years at the international level.
The journalist even mentioned Shahid Afridi, the former Pakistani all-rounder who once delivered the fastest ball bowled by a spinner in cricket history. He drew comparisons of how Afridi’s fastest delivery as a spinner was once quicker than Bhuvi’s fastest ball. However, he didn’t bother taking Bhuvi’s improvement into consideration.
This didn’t go well with the Indian fans as they gave it back to the journalist for trying to seek unnecessary attention. A lot of fans made him realize Bhuvi’s recent progress at the international level.
Here’s what the journalist tweeted:
Here’s how the Twitter reacted on this Bhuvi’s insult by the Australian journalist:
And this tweet (without any facts as Bhuvi has hit 140 clicks in recent times) has about 10000 likes. The man who is playing a cheap game by trying to insult one nation in order to gain followers from the other. Twitter is one curious place.
Knowing your cricketing knowledge, there’s a good chance you’ve mixed up Praveen Kumar and Bhuvneshwar Kumar ? Because those really following cricket now, know Bhuvi hits 140+ consistently ???
And when Bhuvneshwar Kumar bowled Mohammed Hafeez on the first ball in his T20 debut match, his speed was also 140kph.
Babar Azam last 5 ODI matches in New Zealand.
Considered best batsman in Pakistan history.
Considered a bowler in India.
| english |
/* sphinxcontrib-vcs style */
.contrib-vcs-message {
cursor: pointer;
}
.toggle-open {
display: inline;
}
.toggle-close {
display: none;
}
| css |
<reponame>mikhailshilkov/cloudbench
require('aws-sdk');
require('fb');
require('googleapis');
require('lodash');
require('mongodb');
require('neo4j');
require('request');
require('request-promise');
const instance = `RAND:${Math.random().toString(36).substring(3)}`;
const memory = process.env.FUNCTION_MEMORY_MB;
let count = 0;
exports.handler = (request, response) => {
count += 1;
response
.status(200)
.set('Content-Type', 'text/plain')
.set('X-CB-Name', `GCP_JSXLDeps_${memory}`)
.set('X-CB-Count', count)
.set('X-CB-Instance', instance)
.send(`GCP_JSXLDeps_${memory}_${instance}`);
};
| javascript |
{
"name": "TG Vc Video Stream",
"discription": "A Video Streaming Bot",
"logo": "https://telegra.ph/file/6969f6dac0aa325b85745.jpg",
"keywords": [
"python3",
"telegram",
"bot"
],
"repository": "https://github.com/shubham-king/TGVideoStream",
"website": "https://github.com/loverboyXD",
"env": {
"API_ID": {
"description": "Your Api_id get from @Api_ScrapperRoBot or my.telegram.org",
"value": "",
"required": true
},
"API_HASH": {
"description": "Your Api_Hash get from @Api_ScrapperRoBot or my.telegram.org",
"value": "",
"required": true
},
"BOT_USERNAME": {
"description": "Your bot username",
"value": "",
"required": true
},
"BOT_TOKEN": {
"description": "Get from @botfather",
"value": "",
"required": true
},
"SESSION_NAME": {
"description": "Get String Session",
"value": "",
"required": true
},
"STREAM_URL": {
"description": "Get StREAM URL",
"value": "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
"required": true
},
"SUDO_USERS": {
"description": "SUDO USERS",
"value": "1856841927",
"required": true
}
},
"addons": [{
"plan": "heroku-postgresql",
"options": {
"version": "12"
}
}]
}
| json |
<reponame>matt-thomson/rutie
use std::ptr;
use rubysys::thread;
use types::{c_void, CallbackPtr, CallbackMutPtr, Value};
use util;
#[cfg(unix)]
use types::RawFd;
use Object;
pub fn create<F, R>(func: F) -> Value
where
F: FnMut() -> R,
R: Object,
{
let fnbox = Box::new(func) as Box<dyn FnMut() -> R>;
let closure_ptr = Box::into_raw(Box::new(fnbox)) as CallbackMutPtr;
unsafe { thread::rb_thread_create(thread_create_callbox::<R>, closure_ptr) }
}
#[cfg(unix)]
pub fn wait_fd(fd: RawFd) {
unsafe { thread::rb_thread_wait_fd(fd) };
}
pub fn call_without_gvl<F, R, G>(func: F, unblock_func: Option<G>) -> R
where
F: FnMut() -> R,
G: FnMut(),
{
unsafe {
let ptr = if let Some(ubf) = unblock_func {
thread::rb_thread_call_without_gvl(
thread_call_callbox as CallbackPtr,
util::closure_to_ptr(func),
thread_call_callbox as CallbackPtr,
util::closure_to_ptr(ubf),
)
} else {
thread::rb_thread_call_without_gvl(
thread_call_callbox as CallbackPtr,
util::closure_to_ptr(func),
ptr::null() as CallbackPtr,
ptr::null() as CallbackPtr,
)
};
util::ptr_to_data(ptr)
}
}
pub fn call_without_gvl2<F, R, G>(func: F, unblock_func: Option<G>) -> R
where
F: FnMut() -> R,
G: FnMut(),
{
unsafe {
let ptr = if let Some(ubf) = unblock_func {
thread::rb_thread_call_without_gvl2(
thread_call_callbox as CallbackPtr,
util::closure_to_ptr(func),
thread_call_callbox as CallbackPtr,
util::closure_to_ptr(ubf),
)
} else {
thread::rb_thread_call_without_gvl2(
thread_call_callbox as CallbackPtr,
util::closure_to_ptr(func),
ptr::null() as CallbackPtr,
ptr::null() as CallbackPtr,
)
};
util::ptr_to_data(ptr)
}
}
pub fn call_with_gvl<F, R>(func: F) -> R
where
F: FnMut() -> R,
{
unsafe {
let ptr = thread::rb_thread_call_with_gvl(
thread_call_callbox as CallbackPtr,
util::closure_to_ptr(func),
);
util::ptr_to_data(ptr)
}
}
extern "C" fn thread_create_callbox<R>(boxptr: CallbackMutPtr) -> Value
where
R: Object,
{
let mut fnbox: Box<Box<dyn FnMut() -> R>> =
unsafe { Box::from_raw(boxptr as *mut Box<dyn FnMut() -> R>) };
fnbox().value()
}
extern "C" fn thread_call_callbox(boxptr: CallbackMutPtr) -> CallbackPtr {
let mut fnbox: Box<Box<dyn FnMut() -> CallbackPtr>> =
unsafe { Box::from_raw(boxptr as *mut Box<dyn FnMut() -> CallbackPtr>) };
fnbox()
}
| rust |
Cody Bellinger hit 39 home runs and 97 RBIs in 2017. In a sensational freshman campaign, the then-21-year-old Los Angeles Dodgers star was named Rookie of the Year.
Two seasons later, the 23-year-old followed up his success, slashing . 305/. 406/. 629 with 47 home runs and 115 RBIs. On account of the epic performances, Bellinger was awarded a Gold Glove, Silver Slugger, and the NL MVP Award for the 2019 season.
It was then that fans believed that the Arizona native would continue slugging forever. However, after helping the Dodgers win the World Series in the shortened 2020 season, Bellinger began to cool off in a big way.
In 2021, Bellinger hit just . 165 in 95 games with the Los Angeles Dodgers. In 2022, despite penning a one-year deal worth $17 million to avoid arbitration, Bellinger hit just . 210 with a . 265 on-base percentage, the lowest in the majors.
After 2022, the Dodgers non-tendered his contract, and Bellinger's story came to represent the biggest fall from grace in MLB history.
In December 2022, he signed a one-year deal with the Chicago Cubs. The contract, seen as a risky measure from the Cubs, included a mutual option for 2024 should Bellinger meet the team's expectations.
In 37 games for the Cubs this year, Bellinger is hitting . 271/. 337/. 439 with seven home runs and 20 RBIs. While it may be premature to label Bellinger's season as a comeback, some other teams are starting to take notice.
This past weekend, Houston Astros GM Dana Brown spoke on the radio of his intent to acquire a versatile left-hitter come the trade deadline. While the utility man certainly fits Brown's description, not all Astros fans are on board with potentially acquiring Cody Bellinger.
In a creative Tweet, Astros writer Michael Schwab claimed that Bellinger is a "rental" and "washed up" outfielder. Needless to say, Schwab thinks that Bellinger's record speaks for itself, and any attempt to trade for him will not pan out how the team would have wanted.
Any player with a Rookie of the Year and an MVP Award by the age of 23 knows how to play baseball. In the case of Cody Bellinger, injury and schedule irregularities may have given him a severe case of the yips.
While he still represents a risk, Bellinger is a player who could yield big returns for any team willing to take a chance on him. | english |
<gh_stars>0
from django.db import models
from django.contrib.auth.models import User
from django.utils import timezone
from django.db.models.signals import post_save
from django.dispatch import receiver
from django.http import Http404
class Neighborhood(models.Model):
name = models.CharField(max_length=50)
location = models.CharField(max_length=150)
occupants = models.IntegerField()
image = models.ImageField(default='hood.jpg', upload_to='hood/')
datecreated = models.DateTimeField(default=timezone.now)
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='hood')
health_department_contact = models.IntegerField()
police_authority_contact = models.IntegerField()
def __str__(self):
return f'{self.name} Neighborhood'
class Meta:
db_table ='Neighborhood'
def save_neighborhood(self):
self.save()
def delete_neighborhood(self):
self.delete()
class Profile(models.Model):
name = models.CharField(max_length=50, null=True)
email = models.CharField(max_length=255)
user= models.OneToOneField(User, on_delete=models.CASCADE, related_name='profile')
neighborhood = models.ForeignKey(Neighborhood, null=True, on_delete=models.CASCADE)
image = models.ImageField(default='default.png', upload_to='profile/')
def __str__(self):
return f'{self.user.username} Profile'
class Meta:
db_table ='Profile'
@receiver(post_save, sender=User)
def update_create_profile(sender,instance,created, **kwargs):
if created:
Profile.objects.create(user=instance)
@receiver(post_save,sender = User)
def save_profile(sender,instance,**kwargs):
instance.profile.save()
class Business(models.Model):
name = models.CharField(max_length=50)
email = models.CharField(max_length=255)
user = models.ForeignKey(User, on_delete=models.CASCADE)
neighborhood = models.ForeignKey(Neighborhood, on_delete=models.CASCADE)
def __str__(self):
return f'{self.user} Business'
class Meta:
db_table ='Business'
def save_business(self):
self.save()
def delete_business(self):
self.delete()
@classmethod
def search_by_name(cls,search_term):
business = cls.objects.filter(name__icontains=search_term)
return business
class Post(models.Model):
title = models.CharField(max_length=100)
story = models.TextField()
user = models.ForeignKey(User, on_delete=models.CASCADE)
neighborhood = models.ForeignKey(Neighborhood, on_delete=models.CASCADE)
def save_post(self):
self.save()
def delete_post(self):
self.delete()
def __str__(self):
return f'{self.title} Post' | python |
The Office of the United Nations High Commissioner for Human Rights (OHCHR) said Wednesday that a total of 7,964 civilian casualties have been recorded since the start of Russia's war in Ukraine.
That tally includes 3,778 killed and 4,186 injured.
In the Donetsk and Lunhansk regions alone, there have been 2,070 people killed and 2,256 injured.
The office noted that most civilian casualties were caused by the use of explosive weapons with a wide impact area, including shelling from heavy artillery and multiple launch rocket systems and missile and airstrikes.
It also said it believes that the actual figures are considerably higher, due to delayed and pending information and reports.
Thus far, 6,312,255 refugees have fled Ukraine since the assault began on Feb. 24.
That total is around 14% of the country's pre-war population of 44 million.
The majority of the refugees displaced by the war are women and children, marking Europe’s biggest refugee crisis since World War Two.
A Russian soldier, Sgt. Vadim Shyshimarin, pleaded guilty to war crimes charges on Wednesday.
Also on Wednesday, Russia said its military destroyed several artillery pieces that the U. S. delivered to Ukraine, although, Russian Defense Ministry spokesman Maj. Gen. Igor Konashenkov's claims could not be independently verified.
Konashenkov also said almost 1,000 troops left Mariupol's last stronghold this week.
Mariupol’s defenders clung to the steel mill for months; its full capture would give Russia an unbroken land bridge to the Crimean Peninsula.
Mariupol was a Russian target from the beginning.
Ukraine’s human rights ombudsman said the Russian military was holding more than 3,000 civilians from Mariupol at another former penal colony in the Donetsk region.
The Associated Press contributed to this report. | english |
<gh_stars>0
/**
* Created by Xiaozhong on 2020/9/14.
* Copyright (c) 2020/9/14 Xiaozhong. All rights reserved.
*/
#include "vector"
#include "iostream"
using namespace std;
class Solution {
private:
int helper(vector<int> &stones, int index, int jumpsize, vector<vector<int>> memo) {
if (memo[index][jumpsize] >= 0) return memo[index][jumpsize];
for (int i = index + 1; i < stones.size(); i++) {
int gap = stones[i] - stones[index];
if (gap >= jumpsize - 1 && gap <= jumpsize + 1) {
if (helper(stones, i, gap, memo) == 1) {
memo[index][gap] = 1;
return 1;
}
}
}
memo[index][jumpsize] = (index == stones.size() - 1) ? 1 : 0;
return memo[index][jumpsize];
}
public:
bool canCross(vector<int> &stones) {
vector<vector<int>> memo(stones.size(), vector<int>(stones.size(), -1));
return helper(stones, 0, 0, memo) == 1;
}
};
int main() {
Solution s;
vector<int> nums = {0, 1, 3, 5, 6, 8, 12, 17};
cout << s.canCross(nums) << endl;
nums = {0, 1, 2, 3, 4, 8, 9, 11};
cout << s.canCross(nums);
} | cpp |
Germany manager Joachim Low reacted to the 2022 World Cup qualifying draw on Monday. The 2014 World Champions will face Romania, Iceland, North Macedonia, Armenia and Liechtenstein and Low predicts a fairly easy run. The 60-year-old said the group is "interesting", but he still sees Germany as the "the clear favorites". Germany have recently reached a historical low after they lost 6-0 against Spain and missed the UEFA Nations League playoffs. However, DFB (German Football Association) confirmed Low would remain in post despite recent results.
| english |
Intel released its powerful Core i9 9900 processor in October 2018. It features 8 cores and 16 threads, making it appropriate for demanding tasks like video editing, gaming, and 3D rendering. However, as we approach 2023, the question arises of whether or not the Intel Core i9 9900 is still worth buying.
There are a few things to consider before buying this CPU, and it’s also important to compare it with the other options available in the market. Here are some of the details that you should know if you're looking to purchase the Core i9 9900.
Will Intel Core i9 9900 meet your demands in 2023?
Although it was released four years ago, and there are many alternatives currently available in the market, the Core i9 9900 continues to be a viable option in 2023.
It's impossible to ignore how powerful this processor is, with a base clock speed of 3.1GHz and a turbo boost speed of up to 4.7GHz. It also has 16MB of L3 cache, which further improves performance.
Its 8 cores and 16 threads make it a great option to run multiple tasks together at the same time. This one is especially a good pick for heavy users and gamers.
Another reason why it is a good option in 2023 is because of its amazing gaming performance. The Intel Core i9 9900 has more than the required power to handle most games in high settings and HD resolution.
Additionally, the Intel Core i9 9900 supports Intel's Hyper-Threading technology, which allows for even better performance in gaming and other demanding tasks.
When it comes to pricing, the Intel i9 9900 is one of the more affordable options in 2023. It's still a high-end processor, however, the price has dropped over the last few years after the release of recent Intel processors.
Additionally, even though newer models such as the Core i9 10900 and the Core i9 11900 have been released, the Core i9 9900 is still a powerful processor that can compete with them in terms of performance. This makes it a more cost-effective option for those on a budget.
Lastly, the Core i9 9900 has been in the market for over four years, and there are no major complaints regarding this processor. This means that it's a well-established processor that has a proven track record of being stable and reliable.
This is a great choice for professionals and power users who like multitasking. Additionally, the Core i9 9900 is compatible with a wide range of motherboards and memory kits, making it easy to find the right components to build a high-performance system.
Personal needs and preferences will determine whether or not you can get the most value out of this processor. This can be a great option for a lot of users, but if you're looking for a processor to work with your RTX 4000 series GPU, you should consider other alternatives. However, if you have a GPU such as the RTX 3070, the Core i9 9900 is good to go.
| english |
<filename>locales/nl-NL/misc.json
{
"admins_description": "Toon een lijst met de chatbeheerders.",
"admins_list": "Beheerders in de chat {chat_title}:\n{admins_list}",
"html_description": "Maakt de opgegeven tekst op met HTML syntax.",
"html_usage": "<b>Gebruik:</b> <code>/html <b>tekst</b> in <i>html</i></code> - Maakt de opgegeven tekst op met de HTML syntax.",
"mark_description": "Maakt de opgegeven tekst op met Markdown syntax.",
"mark_usage": "<b>Gebruik:</b> <code>/mark **tekst** in __markdown__</code> - Maakt de de opgegeven tekst op met de Markdown syntax.",
"token_description": "Krijg informatie over de opgegeven bot token.",
"bot_token_invalid": "Ongeldige bot token.",
"urldecode_description": "Codeer de opgegeven tekst met URL-veilige codering.",
"urlencode_description": "Decodeer de opgegeven tekst vanuit URL-veilige codering.",
"parsebutton_description": "Help om knoppen op te maken.",
"bug_reported_success_to_bot_admins": "De bug is succesvol gerapporteerd.",
"err_cant_send_bug_report_to_bot_admins": "Fout, het bugrapport kon niet worden verstuurd naar de beheerders van de bot.",
"donatecmdstring": "Als je het project leuk vindt en wilt dat het gratis en levend blijft, laat dan je waardering zien door op onderstaande link te klikken. Elk bedrag wordt gewaardeerd. Bedankt!\n\nhttps://amanoteam.com/donate",
"report_admns": "{admins_list}{reported_user} Gerapporteerd aan de beheerders."
}
| json |
Kamal Haasan slams TN govt and CM Edappadi Palanisamy!
In the critical times of Coronavirus pandemic, yesterday, the Tamil Nadu govt reasserted strongly that NGOs and other organisations cannot be directly donating relief items or food/ essentials to the needy people now, and can only route it via CM's relief fund or through district collectors.
The govt also has said that violating this will lead to legal action, and this move of the govt has been criticised by many. Makkal needhi maiam president Kamal Haasan has tweeted "Neighbouring states in south are seeking help of NGO’s, youth & retired doctors. Unfortunate, my TN Government has passed an order impeding help from the willing and earnest. Oh! Respected? Ministers. No time for commision or omission. Let trained civil service personnel do their job. Stay safe. No time for brownie points. "
Besides he also attacked chief minister Edappadi Palanisamy for not announcing the extension of lockdown yet and waiting for PM's command, as he tweeted "While other state CMs take an autonomous call on lockdown, What are you waiting for, my Honourable CM? Your Master's voice? My voice is of the People and from them. Wake up sir while you sit, still in your chair. "
My voice is of the People and from them. Wake up sir while you sit, still in your chair.
Oh! Respected? Ministers. No time for commision or omission. (1/2)
Follow us on Google News and stay updated with the latest! | english |
30 The word of the Lord came again to me, saying, 2 “Son of man, prophesy and say, ‘Thus says the Lord God,
“For the day is near,
Even the day of the Lord is near,
It will be a cloudy day;
A time of doom for the nations.
“A sword will come upon Egypt,
And anguish and trembling will be in Ethiopia (Cush),
And her foundations are torn down.
‘Thus says the Lord,
And the pride of her power will come down;
Says the Lord God.
In the midst of countries that are desolated;
Among cities that are devastated [by plunder and slavery].
“And they will know [without any doubt] that I am the Lord,
And all her helpers are shattered and destroyed.
10 ‘Thus says the Lord God,
By the hand of [b]Nebuchadnezzar king of Babylon.
“He and his people with him,
The most violent and ruthless of the nations,
Will be brought in to destroy the land,
And fill the land with the slain.
And sell the land into the hands of evil men;
And all that is in it,
‘Thus says the Lord God,
And I will put an end to the images in Memphis;
There will no longer be a prince of the land of Egypt.
And I will put fear in the land of Egypt.
“I will make Pathros desolate,
And execute judgments and punishments on Thebes.
“I will pour out My wrath on Pelusium,
The stronghold of Egypt,
And I will cut off (destroy) the population of Thebes.
“I will set fire to Egypt;
Pelusium will writhe in [great] anguish,
And Memphis shall be in daily distress.
Will fall by the sword,
And the women [and children] will go into captivity.
When I break the yoke bars and dominion of Egypt there.
Then the pride of her power will come to an end;
A cloud [of disasters] will cover her,
And her daughters will go into captivity.
“In this way I will bring judgment and punishment on Egypt.
- Ezekiel 30:5 Or the mixed people.
- Ezekiel 30:10 See note Jer 21:2.
Copyright © 2015 by The Lockman Foundation, La Habra, CA 90631. All rights reserved.
| english |
Known as the ‘Showman of Indian cinema’, filmmaker Raj Kapoor started his journey in the movies in the 1930s as a child actor. After working alongside many technicians, he established RK Studios in 1948 at the age of 24 and it was with this that he started his journey as a storyteller. Raj Kapoor adapted his filmmaking to changing times but it is his cinema from the 1950s that established him as a pioneer in Hindi cinema.
The film took Raj Kapoor’s cinema to an international audience with its participation at Cannes Film Festival. It was with this film that he first displayed his version of Charlie Chaplin’s Tramp. Kapoor adapted the character into an Indian setting and made him a recurring character in many of his works in the 1950s.
His next directorial was the 1955 film Shree 420, which again starred him in the lead role with Nargis. With this film, Kapoor spoke about the post Independence economic crises where educated people could not find jobs. The film blatantly pointed out the government’s failure in creating employment opportunities which further divided the gap between the haves and have-nots. Despite its critique of the government, the film celebrated patriotism in its full glory. The song “Mera Joota Hai Japani” is still associated with India in many parts of the world.
Awara and Shree 420’s success made Raj Kapoor a living legend when he was still in his 20s. The themes of wealth disparity in the society, unemployment, loss of faith in the government, disenchantment with our newfound independence – all reflected heavily in his work of those days. While the movies were honest interpretations of the struggles of that era, they were made palatable for the masses with some popular music and a dreamy love story. Kapoor was very clear about the fact that he wanted to make mainstream popular cinema and his movies indicated the same.
“I make cinema for the people, millions of people are going to see a film I make. So I make so-called commercial films, successful films which people pay to see time and time again. I am not an intellectual, not even a pseudo-intellectual, I don’t profess to be one. But I want to do films, using the little knowledge I’ve got, that can appeal to many more people rather than just a few,” he told in the same 1976 interview.
Apart from his two directorials in the 1950s, he produced other significant films of the era – Boot Polish and Jagte Raho. Interestingly, these two films were not as mainstream and some of his other works but spoke about similar themes. Boot Polish, which followed a pre-teen brother and sister as they live on the streets and struggle to make ends meet, spoke about the system that ignores those below the poverty line. Jagte Raho was another experiment in cinema where Kapoor played the lead role of a man who is just trying to get some water when he is mistaken for a thief by the so-called well-respected people of the society. As he spends time in their surroundings, he learns more about the hypocrisy of those who pretend to be above the rest.
With every decade, Raj Kapoor’s cinema tried to adapt to the current times. Looking back in 2021, it was perhaps his films from the 1950s that made him the ‘showman’ that he eventually became. His understanding of the problems of that era wasn’t perfect but Kapoor knew how to perfectly disguise the ills of the society and wrap them in a sugary treat so the audience could smile, shed a tear and experience the magic of the movies. | english |
The new film Haram` by Vinod Sukumaran will have three north Indian heroines for its lead star Fahadh Fazil. While Radhika Apte will play his wife in the movie, Raajshree desh Paande and Bagariga will come up as his close friends in the movie.
Haram is one movie that will once again have Fahadh Fazil in his new generation looks. He is casted as Balu working in an IT firm in Bangalore. The movie narratives the story of him suddenly falling in love with a fellow worker , marrying her and getting divorced even before completing their honeymoon. The movie which is also edited by the director will have music by Thaikudam Bridge while Satheesh Kurup handles the cinematography.
Follow us on Google News and stay updated with the latest! | english |
{"categories":["Manual","Operating Systems","Sysadmin"],"desc":" If you’re curious, but hesitant, about finding your way around Microsoft’s new Windows Server 2008, ","details":{"authors":"<NAME>","format":"pdf","isbn-10":"0470180439","isbn-13":"978-0470180433","pages":"432 pages","publication date":"March 31, 2008","publisher":"For Dummies","size":"8.00Mb"},"img":"http://172.16.58.38/covers/b0/b0466be790fd5c323681e1c38023b084.jpg","link":"https://rapidhosting.info/files/e0e","title":"Windows Server 2008 For Dummies"} | json |
returned to Washington on Thursday for a whirlwind one-day visit, this time facing the Republicans now questioning the flow of American dollars that for 19 months has helped keep his troops in the fight against Russian forces.House Minority Leader Hakeem Jeffries escorted Zelenskyy into the Capitol. House Republican leaders, who promised tough questions for Zelenskyy on his plans for the way forward forwar effort, notably chose not to join in greeting the Ukrainian president before the cameras.
House Minority Leader Hakeem Jeffries escorted Zelenskyy into the Capitol. House Republican leaders, who promised tough questions for Zelenskyy on his plans for the way forward forwar effort, notably chose not to join in greeting the Ukrainian president before the cameras.
“War of attrition is not going to win this,” McCaul said. “That’s what Putin wants. He wants to break the will of the American people and the Europeans.”Zelenskyy demands UN Security Council strip Russia of veto powerRead more:
returned to Washington on Thursday for a whirlwind one-day visit, this time facing the Republicans now questioning the flow of American dollars that for 19 months has helped keep his troops in the fight against Russian forces.
Zelenskyy arrived at the Capitol to talk privately with Republican and Democratic leaders of the House and Senate as the world is watching Western support for Kyiv. He will also meet with President Joe Biden at the White House and will speak with U.S. military leaders at the Pentagon.
House Minority Leader Hakeem Jeffries escorted Zelenskyy into the Capitol. House Republican leaders, who promised tough questions for Zelenskyy on his plans for the way forward forwar effort, notably chose not to join in greeting the Ukrainian president before the cameras.
House Foreign Affairs Chairman Michael McCaul said Zelenskyy’s message for House lawmakers Thursday was “that he’s winning.”Speaking to reporters, McCaul stressed “The majority of the majority support this,” but said there had to be confidence in a clear strategy for victory for Ukraine.
Zelenskyy is also expected to make an appearance in Ottawa and Toronto on Friday,It is Zelenskyy’s second visit to Washington since Russia invaded Ukraine in February 2022 and comes as Biden’s request to Congress for an additional $24 billion for Ukraine’s military and humanitarian needs is hanging in the balance. Back home, Russia launched its heaviest strikes in a month in the hours before Zelenskyy’s arrival at Congress, killing three, igniting fires and damaging energy infrastructure as Russian missiles and artillery pounded cities across Ukraine.National Security Council spokesman John Kirby called the Ukrainian president “our best messenger” in persuading U.S. lawmakers to keep vital U.S. money and weapons coming.
Biden has called on world leaders to stand strong with Ukraine, even as he faces domestic political divisions at home. A hard-right flank of Republicans, led by former President Donald Trump, Biden’s chief rival in the 2024 race for the White House, is increasingly opposed to sending more money overseas.
As the White House worked to shore up support for Ukraine before Zelenskyy’s visit, Secretary of State Antony Blinken and top intelligence officials briefed senior lawmakers behind closed doors Wednesday to argue the case.
Zelenskyy faces challenges in Europe as well as cracks emerge in what had been a largely united Western alliance behind Ukraine.
Zelenskyy’s visit comes with U.S. and world government leaders watching as Ukrainian forces struggle to take back territory that Russia gained over the past year. Their progress in the next month or so before the rains come and the ground turns to mud could be critical to rousing additional global support over the winter. Russian President Vladimir Putin, who believes he can outlast allied backing for Kyiv, will be ready to capitalize if he sees Ukraine is running low on air defense or other weaponsSince the start of the war, most members of Congress supported approving four rounds of aid to Ukraine, totaling about $113 billion, viewing defense of the country and its democracy as an imperative, especially when it comes to containing Putin. Some of that money went toward replenishing U.S. military equipment sent to the frontlines.
| english |
New Delhi, Jan 4 It is not only the northern part of India that is in the grip of severe winter pollution but several cities in other regions including in the central Indian states of Madhya Pradesh and Chhattisgarh are experiencing a worsening of winter pollution, finds a latest analysis from Centre for Science and Environment (CSE).
The analysis shows that air pollution during winter is a problem in all the cities in these two states, with Gwalior and Singrauli having the worst air quality as bad as the winter air quality of cities in the National Capital Region and Uttar Pradesh. Nitrogen dioxide (NO2) pollution is also high in these cities, with Indore recording the highest for the region.
Singrauli, a small town in eastern Madhya Pradesh, but designated as a critically polluted area by the Central Pollution Control Board, has the most polluted air in the region with a 2021 average of 81 micrograms per metre cube. It is followed by Gwalior and Katni that have 2021 averages of 56 micrograms per metre cube and 54 micrograms per metre cube, respectively.
The 2021 average has bypassed the 2020 average in all the major cities Bhopal, Indore, Jabalpur and Ujjain and it does not meet the annual standard as well.
"Satna has the lowest 2021 average value, but the quality of data from the city's only station is suspect. Bilaspur, Bhilai and Maihar do not have adequate data for computation of annual values," a release from the CSE said on Monday.
"Even though real time air quality data is extremely limited in this region, whatever real time data is emerging from only 17 cities of these two big states indicate a growing crisis and vulnerability to winter smog. This demands early and stronger multi-sector action at a regional scale to meet the clean air targets," said executive director, research and advocacy, CSE, Anumita Roychowdhury.
"Gaps in air quality data and lack of quality control of data makes it difficult to construct reliable air quality trends and do proper risk assessment," said Avikal Somvanshi, programme manager, Urban Lab, CSE.
"The worsening of air quality in the region has not drawn adequate public attention. In winter, air quality of cities such as Singrauli, Gwalior, Jabalpur and Katni could get nearly three times worse than their annual average levels. "
The CSE analysis of air quality status in cities of Madhya Pradesh and Chhattisgarh is an assessment of annual and seasonal trends in PM2. 5 concentration for the period January 1, 2019 to December 12, 2021. This analysis is based on real time data available from the current working air quality monitoring stations in central India.
The analysis covers 18 continuous ambient air quality monitoring stations (CAAQMS) spread across 17 cities in the two states two stations in Gwalior and one station each at Bhopal, Damoh, Dewas, Indore, Jabalpur, Katni, Maihar, Mandideep, Pithampur, Ratlam, Sagar, Satna, Singrauli, Ujjain, Bhilai and Bilaspur.
Air quality monitoring is still very limited in the central region. Cities in MP have data available for over two years; but real time monitors in Chhattisgarh became operational only in the latter half of 2021, which limits the possibility of assessing long term trends. Therefore, the data is indicative of the current status of air quality and seasonal variations in particulate pollution in medium and smaller cities in the region, the CSE release said. | english |
Were it not for the deadly serious nature of the work conducted there, the State Department’s new Foreign Affairs Security Training Center in Blackstone, Virginia, would certainly be a cool place to hang out.
Take the 19 miles of intertwined roads that replicate virtually every type of automotive interchange, intersection, and interstate likely to carry the federal agents tasked with protecting US diplomats and citizens around the world. They include traffic-free driving circles, twisties, and long highway sections where agents learn to evade ambushes and intercept suspects. The tree-lined labyrinth is both a tempting playground and a post-apocalyptic vision of suburban emptiness.
The nearby off-road course includes a simulated rocky riverbed, a real sand pit, a craggy hill, and cement staircases. Agents weave Jeep Wrangler Rubicons through a field of moguls. Elsewhere on the 1,300-acre compound you’ll find a rappelling wall, an explosives range, and live fire “shoot house.” In the “smokehouse,” agents learn to escape burning buildings. In the tactical maze—a warehouse holding dozens of interconnected rooms—teams of agents practice security missions. They bust down doors and stalk their enemies, while instructors observe from catwalks.
All wild stuff, but nothing compared to the centerpiece of this new training center: the “military operations in urban terrain” simulator. Also known as the MOUT, this is a proper town, complete with back alleys, main drags, and a life-size US embassy compound. The multistory buildings sport rooms, stairs, balconies, and rooftops, all of which can serve as stages for faux bad guys or the agents securing the structure while managing a search, evacuation, or watching over a motorcade. The only thing missing is a Starbucks on every corner—or any other permanent set dressing. The town is a blank, reusable canvas that can be modded to play a global capital or developing nation’s unkempt urban center. Actors interact with agents; networked speakers replicate rumbling tanks, bleating goats, midtown Manhattan traffic, and more.
The facility, built on the grounds of Fort Pickett, a Virginia Army National Guard base, will train the service’s 2,000 special agents on an ongoing basis, as well as up to 10,000 additional engineers, couriers, technicians, and security professionals from the State Department and the US foreign service community. It consolidates the work of 11 existing sites, making it the largest and most comprehensive of any US law-enforcement training resource.
The site, which opened this month after three years of construction, is meant to adapt to emerging security threats and imparts the lessons of recent traumas. The elevated median that runs down the MOUT’s main boulevard, a feature typical of African and Middle Eastern cities, is the kind that almost ensnared the vehicles of agents responding to the 2012 attacks on the American diplomatic compound in Benghazi, Libya in 2012. A seemingly harmless motor scooter by the side of the road holds an improvised explosive device of the sort that has menaced the US presence in Iraq and Afghanistan. The “smokehouse” too comes from Benghazi: It was fire that killed American ambassador Christopher Stevens, and that training has been a priority for the service since. The facility also incorporates learnings from the simultaneous bombings in 1998 of the US embassies in Tanzania and Nairobi, which permanently altered the State Department’s presence overseas. Embassies have been designed more like fortresses ever since, and the security measures protecting them rigorously maintained..
So much for having fun. A pronounced aura of menace colors exploration of even the empty facility, as I discovered during a visit the day before it officially opened. As I went from door to door and floor to floor at twilight, it was easy to sense what agents will face: uncertainty and unfamiliarity, speckled with chaotic radio chatter, aggressive crowds, small arms fire, even pyrotechnics. “It’s designed to make it as realistic as possible, in order for the brain to really make the synapses kick together and go ‘Yeah, this is real life,’” said facility director Bob Weitzel.
This is no Call of Duty romp, to be sure. But that doesn’t mean there isn’t a game-like flow to the proceedings conducted here. After all, because the training areas are built in close proximity, instructors can link several together for single exercises—progressing, for example, from the MOUT and the smokehouse to the open roads. Once out here, agents are trained in one of the contexts more familiar to them and the casual observer: driving.
But the training itself, whether in one of the 55 identical white Dodge Challengers, an armored vehicle, or a Jeep, looks nothing like the average track course. Learning to control the vehicle at high speed and power-sliding around wet corners is the basic stuff. Agents are trained to speed away from ambushes in reverse, to ram a pair of vehicles out of the way, to push a motorcade through a crowded thoroughfare, and to balance brake and throttle to slowly and steadily take a vehicle up a seemingly impossible rocky incline. Instructors go over the proper way to sit behind the wheel and where to look, as well as how to best employ your toes and fingers.
“We put as much into a 10-hour course as we possibly can, so when they walk away they have tools that they can use for that worst-day-of-your life scenario,” noted one of the instructors, speaking anonymously per State Department policy.
Yet for all the ramming and racing, agents are shown how to do it all without damaging their own vehicles. After all, that could be their lifeline in a crisis. In this mock world and the much scarier real one, the difference between success and failure can be applying one lesson well enough that you stick around to apply another two minutes later.
- 🏃🏽♀️ Want the best tools to get healthy? Check out our Gear team’s picks for the best fitness trackers, running gear (including shoes and socks), and best headphones.
| english |
{
"cards": [
{
"id": 1,
"title": "Axure",
"subTitle": "Desktop App",
"desc": "Simple click-through diagrams or highly functional, rich prototypes",
"link": "https://www.axure.com/",
"imgSrc": "axure.jpg"
},
{
"id": 2,
"title": "Balsamiq",
"subTitle": "Desktop and Web App",
"desc": "Rapid wireframing tool",
"link": "https://balsamiq.com/",
"imgSrc": "balsamiq.jpg"
},
{
"id": 3,
"title": "Adobe XD",
"subTitle": "Desktop App",
"desc": "All-in-one cross-platform tool for designing and prototyping websites and mobile apps",
"link": "http://www.adobe.com/products/experience-design.html",
"imgSrc": "adobexd.jpg"
},
{
"id": 4,
"title": "Sketch",
"subTitle": "Mac Desktop App",
"desc": "For designing interfaces, websites, icons",
"link": "https://www.sketchapp.com",
"imgSrc": "sketch.jpg"
}
]
}
| json |
# 78. Subsets
# Runtime: 32 ms, faster than 85.43% of Python3 online submissions for Subsets.
# Memory Usage: 14.3 MB, less than 78.59% of Python3 online submissions for Subsets.
class Solution:
# Cascading
def subsets(self, nums: list[int]) -> list[list[int]]:
res = [[]]
for n in nums:
res += [curr + [n] for curr in res]
return res | python |
#! /usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import unittest
import torch
from botorch.test_functions.michalewicz import (
GLOBAL_MAXIMIZER,
GLOBAL_MAXIMUM,
neg_michalewicz,
)
class TestNegMichalewicz(unittest.TestCase):
def test_single_eval_neg_michalewicz(self, cuda=False):
device = torch.device("cuda") if cuda else torch.device("cpu")
for dtype in (torch.float, torch.double):
X = torch.zeros(10, device=device, dtype=dtype)
res = neg_michalewicz(X)
self.assertEqual(res.dtype, dtype)
self.assertEqual(res.device.type, device.type)
self.assertEqual(res.shape, torch.Size())
def test_single_eval_neg_michalewicz_cuda(self):
if torch.cuda.is_available():
self.test_single_eval_neg_michalewicz(cuda=True)
def test_batch_eval_neg_michalewicz(self, cuda=False):
device = torch.device("cuda") if cuda else torch.device("cpu")
for dtype in (torch.float, torch.double):
X = torch.zeros(2, 10, device=device, dtype=dtype)
res = neg_michalewicz(X)
self.assertEqual(res.dtype, dtype)
self.assertEqual(res.device.type, device.type)
self.assertEqual(res.shape, torch.Size([2]))
def test_batch_eval_neg_michalewicz_cuda(self):
if torch.cuda.is_available():
self.test_batch_eval_neg_michalewicz(cuda=True)
def test_neg_michalewicz_global_maximum(self, cuda=False):
device = torch.device("cuda") if cuda else torch.device("cpu")
for dtype in (torch.float, torch.double):
X = torch.tensor(
GLOBAL_MAXIMIZER, device=device, dtype=dtype, requires_grad=True
)
res = neg_michalewicz(X)
res.backward()
self.assertAlmostEqual(res.item(), GLOBAL_MAXIMUM, places=4)
self.assertLess(X.grad.abs().max().item(), 1e-3)
def test_neg_michalewicz_global_maximum_cuda(self):
if torch.cuda.is_available():
self.test_neg_michalewicz_global_maximum(cuda=False)
| python |
version https://git-lfs.github.com/spec/v1
oid sha256:944079d980064bf3c62bfb1057f5589381cc37431a53c6a9aedfe6c330beeccf
size 7021
| json |
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/renderer_host/render_view_host_delegate.h"
#include "base/gfx/rect.h"
#include "chrome/common/renderer_preferences.h"
#include "googleurl/src/gurl.h"
#include "webkit/glue/webpreferences.h"
RenderViewHostDelegate::View* RenderViewHostDelegate::GetViewDelegate() {
return NULL;
}
RenderViewHostDelegate::RendererManagement*
RenderViewHostDelegate::GetRendererManagementDelegate() {
return NULL;
}
RenderViewHostDelegate::BrowserIntegration*
RenderViewHostDelegate::GetBrowserIntegrationDelegate() {
return NULL;
}
RenderViewHostDelegate::Resource*
RenderViewHostDelegate::GetResourceDelegate() {
return NULL;
}
RenderViewHostDelegate::Save* RenderViewHostDelegate::GetSaveDelegate() {
return NULL;
}
RenderViewHostDelegate::Printing*
RenderViewHostDelegate::GetPrintingDelegate() {
return NULL;
}
RenderViewHostDelegate::FavIcon*
RenderViewHostDelegate::GetFavIconDelegate() {
return NULL;
}
RenderViewHostDelegate::Autofill*
RenderViewHostDelegate::GetAutofillDelegate() {
return NULL;
}
const GURL& RenderViewHostDelegate::GetURL() const {
return GURL::EmptyGURL();
}
TabContents* RenderViewHostDelegate::GetAsTabContents() {
return NULL;
}
GURL RenderViewHostDelegate::GetAlternateErrorPageURL() const {
return GURL();
}
RendererPreferences RenderViewHostDelegate::GetRendererPrefs() const {
return RendererPreferences();
}
WebPreferences RenderViewHostDelegate::GetWebkitPrefs() {
return WebPreferences();
}
bool RenderViewHostDelegate::CanBlur() const {
return true;
}
gfx::Rect RenderViewHostDelegate::GetRootWindowResizerRect() const {
return gfx::Rect();
}
bool RenderViewHostDelegate::IsExternalTabContainer() const {
return false;
}
| cpp |
import Taro, { PureComponent, ComponentOptions } from "@tarojs/taro";
import { View, Image, Text, ScrollView, Button } from "@tarojs/components";
import "./index.styl";
import { inflate } from "zlib";
interface Props {
/**默认当前高亮的索引值 */
status:Boolean;
orderid:Number;
}
class GiftItemDetails extends PureComponent<Props> {
constructor (props) {
super(props)
}
state = {
details: {type: 2, status: false},
shippingList: [1,1,1,3,3,3],
status: true
};
static options: ComponentOptions = {
addGlobalClass: true
};
onCloseDetails () {
}
render() {
let details
if (this.state.details.type === 1) {
details = <View className="content logistics">
<View className="flex logistics-top blg">
<Image className="gift-image" src="http://www.w3school.com.cn/i/eg_tulip.jpg" />
<View className="bd fs24">
<Text className="name cdb">礼品名称</Text>
<Text className="delivery cdb">物流公司: 圆通速度</Text>
<Text className="num cdb">运单编号:1234567897894</Text>
</View>
</View>
<ScrollView scrollY className="shipping-info">
{this.state.shippingList.map((_)=>(
<View className="shipping-info-cell flex">
<View className="time fs24 tac">
<Text className="cdb">4.20</Text>
<Text className="fs18 cdb">20:50</Text>
</View>
<View className="right-text">
<Text className="cdb fs26">已签收</Text>
<Text className="cdb">已签收【广州市】已签收,签收人为本人。已签收【广州市】已签收,签收人为本人。已签收【广州市】已签收,签收人为本人。</Text>
</View>
</View>
))}
</ScrollView>
<View className="fs24 tac more">上滑查看更多</View>
</View>
}
else if(this.state.details.type === 2) {
details = <View className="claim-goods content">
<View className={this.state.details.status ? 'blg useless' : 'blg'}>
<View className="fs48">取货码</View>
<View className="imge-view">
<Image className="image" src="http://www.w3school.com.cn/i/eg_tulip.jpg" />
</View>
<View className="count fs48"><Text>21342354235643</Text></View>
<View className="fs26">*取件时向商家展示取件码即可</View>
</View>
<View className="pd35">
<View className="flex">
<Image className="gift-image" src="http://www.w3school.com.cn/i/eg_tulip.jpg" />
<View className="flex column">
<Text className="cdb">礼品名称</Text>
<Text className="label-cell cdb">有效期至:<Text className="val">2019.4.30</Text></Text>
</View>
</View>
<View className="pd33">
<Text className="label-cell cdb">有效期至:<Text className="val">2019.4.30</Text></Text>
</View>
<View className="pd33">
<Text className="label-cell cdb">取件地址:<Text className="val">北京市东城区长安街00001号门头沟拐弯三岔
路头子口</Text></Text>
</View>
<View className="pd33">
<Text className="label-cell cdb">联系电话:<Text className="val">53423523523</Text></Text>
</View>
</View>
</View>
}
else {
details = <View className="past-due content ">
<View className="claim-goods">
<View className="flex">
<Image className="gift-image" src="http://www.w3school.com.cn/i/eg_tulip.jpg" />
<View className="flex column">
<Text className="cdb name">礼品名称</Text>
<Text className="label-cell cdb">有效期至:<Text className="val">2019.4.30</Text></Text>
</View>
</View>
</View>
<View >
<Button className="btn-order">查看我的订单</Button>
</View>
</View>
}
return (
<View className="gift-item-details flex">
{details}
<Image className="close-img" src="" onClick={this.onCloseDetails.bind(this)}
/>
</View>
);
}
}
export default GiftItemDetails;
| typescript |
{
"eqeqeq": true,
"freeze": true,
"immed": true,
"latedef": true,
"nonbsp": true,
"undef": true,
"strict": false,
"node": true,
"sub": true,
"globals": {
"exports": true,
"describe": true,
"before": true,
"beforeEach": true,
"after": true,
"afterEach": true,
"it": true
}
} | json |
<gh_stars>1-10
---
layout: article
title: Neurips 2018
comments: true
categories: finance
image:
teaser: jupyter-main-logo.svg
---
# Deep Unsupervised Learning Tutorial (Mon)
- Types of learning:
- active:
+ with teacher: RL/Active learning
+ without teacher: Instrinsic motivation
- passive:
+ with teacher: supervised learning
+ w/o teacher: unsupervised learning
- why Unsupervised?
- labels / rewards difficult to obtain
- Unsupervised more human like
- we want rapid generalization to new tasks and situations
- Transfer learning:
- kind of works but never seems to transfer (generalize) as far or as fast as we want (one hypothesis: there isn't enough info there. Humans don't learn tasks that transfer, they learn skills)
- Basic challenge of unsupervised learning is that the task is undefined
- simplest this is to do max likelihood on data (density estimation) instead of targets (supervised learning).
- max likelihood says basically learn everything about the data
- no consensus on what to do for unsupervised learning. maybe trying to learn everything about data not good, shouldn't we focus on learning things that will be useful in future?
- problem: density estimation is hard
- problem: log-likelihood depend more on how low-level details (pixels) than on highlevel structure (image content, semantics)
- problem: even if we learn structure, it's difficult to access them. need to learn representations.
- modeling densities also give us generative models of the data.
- allow us to understand what the model hasn't learned.
- models (Autoregressive models):
- basic trick: split high dim data up into a seq of small pieces, predict each from those before.
- conditioning done using (lstm, masked convs, transformers), output layer parameterizes predictions.
- they are simple, easy to generate samples, best log-likelihoods for many types of data. but, they are very expensive for high dim data, order-dependant, teacher forcing (only learning to predict one step ahead, potentially brittle representation)
---
- tip1 : always look at the data before modeling
- tip2 : PCA and K-means are very often very strong baselines
- learning representations (self-supervised learning):
- taking different parts of an image and classifying them (Dorsch 2015) as way to learn representations and use as initialization.
- predict whether a video is playing forward or backward (D. Wei 2018 CVPR) and use as initialization.
- learning by clustering
---
# NLP session (Tuesday)
- on the dimensionality of word embeddings
- prove mathematically that there is an optimal dimensionality
- uses a pairwise
-
| markdown |
Nathaniel “Tank” Dell, Houston: 5’8″, 165 pounds.
Nathaniel “Tank” Dell was a top-200 JUCO recruit in 2020. After showing flashes as a freshman (29-428-3) in eight games, Dell jumped onto the scene in 2021, with 90 catches for 1329 yards and 12 touchdowns.
His numbers were even better as a junior (109-1398-17) and he made the AAC’s first-team in back-to-back years as one of the premier play-makers in that conference.
+ Consistently is a vertical threat off the ball, with the way he runs with his pads over his knees and keeps his head down.
+ When defenders try to challenge him at the line, you see the elusiveness and active hands to leave them behind in the dust. At times he would take half a step back and side-swipe the guy’s reach before running by him.
+ Understands how to open up the post for himself by the way he stems off the snap and then can burn corners quickly when isolated with them.
+ Has that final gear to separate from defenders when his quarterback has let the ball fly, and then tracks it exceptionally well over his head.
+ You can feel the gravity this guy has when you see safeties in two-high looks just continue to gain ground when Dell pushes vertically from the slot.
+ Yet, his speed to run away from his man or clear the hook-defenders working across the field can get him lost or get somebody else open behind him.
+ So impressive with the way he can stop on a dime and make DBs overrun the break point, along with an effective swipe-through to avoid being tugged.
+ Seemed to constantly be open on curl routes because of how scared DBs were about his deep speed, as well as beating them across their face on slant routes with hard jab-steps.
+ Is aware of late coverage rotations and how to delay his approach ever so slightly in order to not run himself into defenders replacing teammates in their assignments.
+ Shows a good feel for soft-spots and when to slow down when entering those versus zone shells.
+ Plucks the ball out of the air at full extension and doesn’t allow the catch to slow him down.
+ Has a couple of really impressive catches on tape, where he has to elevate for the ball and a defender’s swiping through the catch point, but he still secures the ball (hauled in seven of 13 attempts in contested situations).
+ Can quickly pull away from the pursuit if you just flip it out to him on a bubble screen and your safety better take a conservative angle towards the sideline.
+ So sudden with the ball in his hands that he makes people miss without losing much speed. He is able to put on the breaks against guys who overpursue, incorporate dead-legs, etc.
+ And he can stack those moves on top of each other to navigate around multiple defenders (forced 19 missed tackles last year).
+ Was responsible for 71 first downs this past season, moving the chains much more consistently than guys typically labeled as deep threats. He scored a touchdown in each of his final ten games, including the game-winner on his final collegiate snap versus Louisiana in the Independence Bowl.
+ May not impose his will on anybody, but Dell does look for work as a blocker once one of his teammates catches the ball or the run bounces out his way.
+ Basically cooked everybody to put in front of him at the Senior Bowl, because of the way he could scare them with his juice off the ball, the way he incorporated head- and shoulder-nods and his ability to stop on a dime.
– Does feature a fairly slender frame and didn’t really have to prove himself against press-coverage, being able to take advantage of all of those three releases, where defenders were put at his mercy (currently there are no starting WRs in the NFL below 170 pounds).
– Overdoes it with releases against off-man defenders, with hop-steps and excessive steps, that cost him time.
– Allows the ball to get into his body and pins it against his chest on routine catches when he could extend for it (dropped 21 passes over the past two seasons combined in part because of that).
– Will get overwhelmed by bigger slot defenders in the run game, who run right through his chest. You see him straight-up bounce backwards as guys attack him.
If your team misses out on Boston College’s Zay Flowers in the first round, I think Tank Dell is a slighter, but very exciting option later on day two.
He’s so sudden with or without the ball, he has a legit extra gear to blow past fast defensive backs. He tracks the ball exceptionally well, staying focused even if the flight of the ball leads him back into contact.
Unlike Flowers, I don’t believe you want Tank to extensively play on the line as much of the intrigue with him is based on the threat he presents as you move him along the formation. You either let him create issues in the structure of the defense (as he uses that momentum to his advantage) or you put the ball in his hands in creative ways, thanks to the way he can make people look silly on the run.
The slender build will be a hold-up for some teams, but if he just works on always catching the ball away from his frame, I think he brings plenty of juice to pretty much any offense.
Grade: Third round.
You might like other 2023 NFL Draft Scouting Reports: Jaxon Smith-Njigba (WR), Ohio; Zay Flowers (WR), Boston; Jordan Addison (WR), USC; Jalin Hyatt (WR), Tennessee; Jordan Addison (WR), USC; Quentin Johnston (WR), TCU; Zach Charbonnet (RB), UCLA; Bijan Robinson (RB), Texas.
Feel free to head over to halilsrealfootballtalk. com for all my draft breakdowns and check out my YouTube channel for even more NFL content! | english |
{"pe_name":"SenseMirror.dll","pe_type":523,"pe_size":159744,"pe_subsystem":2,"pe_subsystem_caption":"The Windows graphical user interface (GUI) subsystem","pe_path":"c:\\Windows\\WinSxS\\amd64_windows-senseclient-service_31bf3856ad364e35_10.0.18362.752_none_fdeef4e920d95b03\\SenseMirror.dll","pe_timedate_stamp":2390729478,"pe_timedate_human":"2045-10-04T11:31:18.000Z","ImageDLLImports":[{"name":"msvcp_win.dll","imports":30,"functions":["??0_Locinfo@std@@QEAA@PEBD@Z","??0_Lockit@std@@QEAA@H@Z","??0facet@locale@std@@IEAA@_K@Z","??1_Locinfo@std@@QEAA@XZ","??1_Lockit@std@@QEAA@XZ","??1facet@locale@std@@MEAA@XZ","??Bid@locale@std@@QEAA_KXZ","?_Decref@facet@locale@std@@UEAAPEAV_Facet_base@3@XZ","?_Getcat@?$ctype@_W@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@Z","?_Getcoll@_Locinfo@std@@QEBA?AU_Collvec@@XZ","?_Getgloballocale@locale@std@@CAPEAV_Locimp@12@XZ","?_Incref@facet@locale@std@@UEAAXXZ","?_Init@locale@std@@CAPEAV_Locimp@12@_N@Z","?_Xbad_alloc@std@@YAXXZ","?_Xbad_function_call@std@@YAXXZ","?_Xlength_error@std@@YAXPEBD@Z","?_Xout_of_range@std@@YAXPEBD@Z","?_Xregex_error@std@@YAXW4error_type@regex_constants@1@@Z","?__ExceptionPtrCopy@@YAXPEAXPEBX@Z","?__ExceptionPtrCreate@@YAXPEAX@Z","?__ExceptionPtrCurrentException@@YAXPEAX@Z","?__ExceptionPtrDestroy@@YAXPEAX@Z","?__ExceptionPtrRethrow@@YAXPEBX@Z","?id@?$collate@_W@std@@2V0locale@2@A","?id@?$ctype@_W@std@@2V0locale@2@A","?is@?$ctype@_W@std@@QEBA_NF_W@Z","?tolower@?$ctype@_W@std@@QEBAPEB_WPEA_WPEB_W@Z","?tolower@?$ctype@_W@std@@QEBA_W_W@Z","_Wcscoll","_Wcsxfrm"]},{"name":"api-ms-win-crt-runtime-l1-1-0.dll","imports":2,"functions":["_initterm","_initterm_e"]},{"name":"api-ms-win-crt-string-l1-1-0.dll","imports":2,"functions":["memset","wcsncmp"]},{"name":"api-ms-win-crt-private-l1-1-0.dll","imports":33,"functions":["_CxxThrowException","__C_specific_handler","__CxxFrameHandler3","__std_terminate","_o___std_exception_copy","_o___std_exception_destroy","_o___std_type_info_destroy_list","_o___stdio_common_vsnprintf_s","_o___stdio_common_vswprintf","_o__callnewh","_o__cexit","_o__configure_narrow_argv","_o__crt_atexit","_o__errno","_o__execute_onexit_table","_o__free_base","_o__initialize_narrow_environment","_o__initialize_onexit_table","_o__invalid_parameter_noinfo","_o__invalid_parameter_noinfo_noreturn","_o__malloc_base","_o__register_onexit_function","_o__seh_filter_dll","_o__wcsnicmp","_o_free","_o_malloc","_o_pow","_o_realloc","_o_terminate","_o_toupper","memcpy","memmove","strchr"]},{"name":"ntdll.dll","imports":4,"functions":["NtDeleteKey","RtlCaptureContext","RtlLookupFunctionEntry","RtlVirtualUnwind"]},{"name":"kernel32.dll","imports":46,"functions":["AcquireSRWLockExclusive","CloseHandle","CloseThreadpoolTimer","CreateEventW","CreateMutexExW","CreateSemaphoreExW","DebugBreak","DeleteCriticalSection","DisableThreadLibraryCalls","FormatMessageW","GetCurrentProcess","GetCurrentProcessId","GetCurrentThreadId","GetLastError","GetModuleFileNameA","GetModuleHandleExW","GetModuleHandleW","GetProcAddress","GetProcessHeap","GetSystemTimeAsFileTime","GetTickCount","HeapAlloc","HeapFree","InitOnceBeginInitialize","InitOnceComplete","InitializeCriticalSectionAndSpinCount","InitializeCriticalSectionEx","InitializeSListHead","IsDebuggerPresent","IsProcessorFeaturePresent","LocalAlloc","OpenSemaphoreW","OutputDebugStringW","QueryPerformanceCounter","ReleaseMutex","ReleaseSRWLockExclusive","ReleaseSemaphore","SetLastError","SetThreadpoolTimer","SetUnhandledExceptionFilter","Sleep","TerminateProcess","UnhandledExceptionFilter","WaitForSingleObject","WaitForSingleObjectEx","WaitForThreadpoolTimerCallbacks"]},{"name":"advapi32.dll","imports":20,"functions":["AdjustTokenPrivileges","ChangeServiceConfigW","CloseServiceHandle","EventActivityIdControl","EventProviderEnabled","EventRegister","EventSetInformation","EventUnregister","EventWriteTransfer","LookupPrivilegeValueW","OpenProcessToken","OpenSCManagerW","OpenServiceW","QueryServiceConfigW","RegCloseKey","RegCreateKeyExW","RegGetValueW","RegOpenKeyExW","RegQueryValueExW","StartServiceW"]},{"name":"shell32.dll","imports":1,"functions":["SHGetKnownFolderPath"]},{"name":"ole32.dll","imports":1,"functions":["CoTaskMemFree"]},{"name":"bcrypt.dll","imports":2,"functions":["BCryptCloseAlgorithmProvider","BCryptDestroyHash"]}],"ImageDLLExports":{"exports":1,"functions":["CreateSettingsProvider"]},"ImageHashSignatures":{"md5":"a309b6930e65cce4fee3eaa65baf0a16","sha2":"3dae30512146fc9c03bd43ddc6be1528e43b94a11d640668ba69ddab971f9e04"}} | json |
New England Patriots owner Robert Kraft has been charged with soliciting prostitution as part of a wide-ranging probe into a Florida massage parlour targeted in a human trafficking investigation, police said on Friday.
Kraft, 77, was one of 25 men charged after an investigation by police in Jupiter into the Orchids of Asia Day Spa.
In a news conference in Florida, Jupiter Police Chief Daniel Kerr said: "Yes, he is one of the individuals, that would be Mr. Robert Kraft.
"He is being charged with the same offences as the others and that is soliciting another to commit prostitution. "
Asked whether video evidence existed of the alleged acts, Kerr replied: "Yes, sir – for all of the individuals being charged. "
A spokesperson for Kraft released a statement to media outlets disputing the charges. It read: "We categorically deny that Mr. Kraft engaged in any illegal activity. Because it is a judicial matter, we will not be commenting further. "
Law enforcement officials told reporters Kraft faces two charges, but they would not disclose what services he paid for. Detective Andrew Sharp said at the news conference that the rate at the spa was $59 for 30 minutes or $79 for an hour. He added that another person drove Kraft to the parlour.
Earlier this week, multiple employees of the spa were arrested and charged with a variety of crimes as part of an investigation in massage parlours across Florida.
Like all NFL team personnel, owners are subject to the league's personal conduct policy, so Kraft could face a fine or other penalties from the league in connection with the case. | english |
import { Suit } from "./Suit";
export interface ICardState {
value: number;
suit: Suit;
} | typescript |
<reponame>Blackmesa-Canteen/INFO30005-Snacks-in-a-Van<filename>utils/coordinate_convertor.js
/**
* WGS->GCJ
* WGS->BD09
* GCJ->BD09
*/
function Convertor(ak) {
this.stepCount = 100;
this.pointCount = [];
this.Result = [];
this.NoisIndex = [];
this.Time = new Date();
this.AK = ak;
this.M_PI = 3.14159265358979324;
this.A = 6378245.0;
this.EE = 0.00669342162296594323;
this.X_PI = this.M_PI * 3000.0 / 180.0;
}
Convertor.prototype.outofChine = function (p) {
if (p.lng < 72.004 || p.lng > 137.8347) {
return true;
}
if (p.lat < 0.8293 || p.lat > 55.8271) {
return true;
}
return false;
}
;
Convertor.prototype.WGS2GCJ_lat = function (x, y) {
var ret1 = -100.0 + 2.0 * x + 3.0 * y + 0.2 * y * y + 0.1 * x * y + 0.2 * Math.sqrt(Math.abs(x));
ret1 += (20.0 * Math.sin(6.0 * x * this.M_PI) + 20.0 * Math.sin(2.0 * x * this.M_PI)) * 2.0 / 3.0;
ret1 += (20.0 * Math.sin(y * this.M_PI) + 40.0 * Math.sin(y / 3.0 * this.M_PI)) * 2.0 / 3.0;
ret1 += (160.0 * Math.sin(y / 12.0 * this.M_PI) + 320 * Math.sin(y * this.M_PI / 30.0)) * 2.0 / 3.0;
return ret1;
}
;
Convertor.prototype.WGS2GCJ_lng = function (x, y) {
var ret2 = 300.0 + x + 2.0 * y + 0.1 * x * x + 0.1 * x * y + 0.1 * Math.sqrt(Math.abs(x));
ret2 += (20.0 * Math.sin(6.0 * x * this.M_PI) + 20.0 * Math.sin(2.0 * x * this.M_PI)) * 2.0 / 3.0;
ret2 += (20.0 * Math.sin(x * this.M_PI) + 40.0 * Math.sin(x / 3.0 * this.M_PI)) * 2.0 / 3.0;
ret2 += (150.0 * Math.sin(x / 12.0 * this.M_PI) + 300.0 * Math.sin(x / 30.0 * this.M_PI)) * 2.0 / 3.0;
return ret2;
}
;
Convertor.prototype.WGS2GCJ = function (poi) {
if (this.outofChine(poi)) {
return;
}
var poi2 = {};
var dLat = this.WGS2GCJ_lat(poi.lng - 105.0, poi.lat - 35.0);
var dLon = this.WGS2GCJ_lng(poi.lng - 105.0, poi.lat - 35.0);
var radLat = poi.lat / 180.0 * this.M_PI;
var magic = Math.sin(radLat);
magic = 1 - this.EE * magic * magic;
var sqrtMagic = Math.sqrt(magic);
dLat = (dLat * 180.0) / ((this.A * (1 - this.EE)) / (magic * sqrtMagic) * this.M_PI);
dLon = (dLon * 180.0) / (this.A / sqrtMagic * Math.cos(radLat) * this.M_PI);
poi2.lat = poi.lat + dLat;
poi2.lng = poi.lng + dLon;
return poi2;
}
;
Convertor.prototype.GCJ2BD09 = function (poi) {
var poi2 = {};
var x = poi.lng
, y = poi.lat;
var z = Math.sqrt(x * x + y * y) + 0.00002 * Math.sin(y * this.X_PI);
var theta = Math.atan2(y, x) + 0.000003 * Math.cos(x * this.X_PI);
poi2.lng = z * Math.cos(theta) + 0.0065;
poi2.lat = z * Math.sin(theta) + 0.006;
return poi2;
}
;
/**
* WGS-> BaiduMap coordinate
*/
Convertor.prototype.WGS2BD09 = function (poi) {
//WGS->GCJ
var poi2 = this.WGS2GCJ(poi);
if (typeof poi2 === "undefined") {
return;
}
//GCJ->Baidu Map Coordinate
return this.GCJ2BD09(poi2);
}
module.exports = {Convertor}
| javascript |
<filename>composer.json
{
"name": "aleskafka/component-macro",
"type": "library",
"description": "Extends Latte with simple component model",
"keywords": ["latte", "macro", "component", "templating"],
"license": "MIT",
"authors": [
{
"name": "<NAME>"
}
],
"require": {
"php": ">=5.3"
},
"require": {
},
"require-dev": {
"latte/latte": "~2.3",
"nette/tester": "~1.3"
},
"autoload": {
"classmap": ["src/"]
}
}
| json |
<gh_stars>0
import mongoose from 'mongoose';
import { DATABASE_URI } from './config';
export default function connectToDatabase(
cb: (err: Error) => void,
): (err: Error) => void {
mongoose.Promise = global.Promise;
mongoose.connect(DATABASE_URI, {
useNewUrlParser: true,
useCreateIndex: true,
useUnifiedTopology: true,
useFindAndModify: false,
});
mongoose.connection.on(
'error',
console.error.bind(
console,
'MongoDB connection error. Please make sure MongoDB is running.',
),
);
mongoose.connection.once('open', () => {
console.log('MongoDB database connection established succesfully 🤖');
});
return cb;
}
| typescript |
<reponame>citelao/win32
---
title: Retrieving the objectClass Attribute
description: The objectClass attribute contains the class of which the object is an instance, as well as all classes from which that class is derived.
ms.assetid: 6066d9c3-f97b-482a-88c7-0fde1dc2f4c4
ms.tgt_platform: multiple
ms.topic: article
ms.date: 05/31/2018
---
# Retrieving the objectClass Attribute
The **objectClass** attribute contains the class of which the object is an instance, as well as all classes from which that class is derived. For example, the **user** class inherits from **top**, **person**, and **organizationalPerson**; therefore, the **objectClass** attribute contains the names of those classes, as well as user. So, how do you find out what class the object is an instance of? The **objectClass** attribute is the only attribute with multiple values that has ordered values. The first value is the top of the class hierarchy, which is the top class, and the last value is the most derived class, which is the class that the object is an instance of.
The following function takes a pointer to a column containing an **objectClass** attribute and returns the instantiated **objectClass** of the object.
```C++
HRESULT GetClass(ADS_SEARCH_COLUMN *pcol, LPOLESTR *ppClass)
{
if (!pcol)
return E_POINTER;
HRESULT hr = E_FAIL;
if (ppClass)
{
LPOLESTR szClass = new OLECHAR[MAX_PATH];
wcscpy_s(szClass, L"");
if ( _wcsicmp(pcol->pszAttrName,L"objectClass") == 0 )
{
for (DWORD x = 0; x< pcol->dwNumValues; x++)
{
wcscpy_s(szClass, pcol->pADsValues[x].CaseIgnoreString);
}
}
if (0==wcscmp(L"", szClass))
{
hr = E_FAIL;
}
else
{
//Allocate memory for string.
//Caller must free using CoTaskMemFree.
*ppClass = (OLECHAR *)CoTaskMemAlloc (
sizeof(OLECHAR)*(wcslen(szClass)+1));
if (*ppClass)
{
wcscpy_s(*ppClass, szClass);
hr = S_OK;
}
else
hr=E_FAIL;
}
}
return hr;
}
```
| markdown |
Chennai: After an epic win in Ahmedabad, Chennai Super Kings visited Trupati temple with their fifth IPL trophy. Team management presented their fifth IPL trophy to Sri Venkateswara Swamy at Tirupati temple in Tirumala. The priests performed special poojas and the footages went viral on social media.
Earlier in 2021, the team management brought the trophy to the temple and offered special poojas too. | english |
From Wikipedia, the free encyclopedia. Michael Roesch (born April 24, 1974) is a film director, film producer and screenwriter. He collaborates on his movies with fellow filmmaker Peter Scheerer. A movie aficionado since he was a kid, Michael Roesch started shooting short 8 mm movies at age 12. While Roesch was at college, he worked as a film journalist for several newspapers and magazines. Later he started together with his writing partner Peter Scheerer a successful career as a screenwriter, and worked in various production capacities. Among their screenwriting credits are 'House of the Dead 2 and the upcoming Far Cry. In 2006 Roesch and Scheerer directed their first feature, the vampire thriller Brotherhood of Blood, starring Victoria Pratt, Sid Haig and Ken Foree. The movie had its world premiere at the prestigious Sitges Film Festival in Sitges, Spain in October 2007. In 2007 Roesch and Scheerer directed Alone in the Dark II, starring Rick Yune, Lance Henriksen and Danny Trejo. It is a sequel to the 2005 film Alone in the Dark. Description above from the Wikipedia article Michael Roesch, licensed under CC-BY-SA, full list of contributors on Wikipedia.
| english |
{
"name": "@outtacontrol/socks",
"version": "1.0.3",
"author": "<NAME> <<EMAIL>>, phoenix344",
"description": "SOCKS protocol version 5 server and client implementations for node.js",
"main": "./index.js",
"types": "./index.d.ts",
"scripts": {
"test": "node test/test.js"
},
"engines": {
"node": ">=10"
},
"keywords": [
"socks",
"socks5",
"socksv5",
"proxy"
],
"licenses": [
{
"type": "MIT",
"url": "https://github.com/phoenix344/socksv5/raw/master/LICENSE"
}
],
"repository": {
"type": "git",
"url": "https://github.com/phoenix344/socksv5.git"
},
"dependencies": {
"ip-address": "^5.8.9"
},
"devDependencies": {
"@types/node": "^10.7.1"
}
}
| json |
{"elapsed":"1.07","endpoint-url":"https://datamillnorth.org/download/brownfield-land-register/0898f71c-58f3-4d97-ab4b-32ace8e72fd1/LCC_BrownfieldRegister_01_02_19.csv","entry-date":"2021-04-19T00:07:21.334319","request-headers":{"Accept":"*/*","Accept-Encoding":"gzip, deflate","Connection":"keep-alive","User-Agent":"Digital Land"},"resource":"0718b0fcb6c27713952a624965815f05a214a9c1861a8271367502f60ac44e82","response-headers":{"Accept-Ranges":"bytes","Cache-Control":"no-cache","Content-Length":"184247","Content-Type":"text/csv","Date":"Mon, 19 Apr 2021 00:16:10 GMT","ETag":"\"80515b0ef19ee015037341f0e664b1ff\"","Last-Modified":"Tue, 05 Feb 2019 08:52:11 GMT","Server":"AmazonS3","x-amz-id-2":"Vq2+hDYa8IsiPWiaF9s6C6/B3qhgQdo0WS+DILauHGh4AEvhPbGq/PL+wlGMEwiZXhp2usW/W3Q=","x-amz-request-id":"4NWZ7KRZWGQT1MEZ","x-amz-version-id":"SZFBtyRkB8175Ff7_rNs8qRoUYfkfiPP"},"ssl-verify":true,"status":"200"} | json |
Actor Shalin Bhanot has currently become a household name on Indian television. He is currently seen in Ekta Kapoor's Bekaboo, which has been receiving high TRP ratings. However, Bhanot believes that his success as an actor cannot be solely measured by the show's ratings.
Bigg Boss 16 star reflected on Bekaboo's rising TRP and shared his perspective on success: "My success as an actor goes beyond TRP ratings. While I am grateful for the increasing popularity of Bekaboo and the support of its viewers, I believe that success is measured by more than just numbers. It is about the impact I can make as an artist and the connection I can forge with the audience. For me, the true essence of success lies in the satisfaction I derive from my craft, the growth I experience as an actor, and the ability to touch people's lives through storytelling. It is about the emotions evoked, the conversations sparked, and the way in which the show resonates with the viewers."
Shalin further expressed," TRP ratings are undoubtedly an important industry metric, but they do not define the entire journey or the quality of my work. I strive to bring depth, authenticity, and passion to my performances, and that is what I value the most. I want to leave a lasting impression, create memorable characters, and contribute to the art form."
"So, while I celebrate the rising TRP of Bekaboo, I remain grounded and focused on the artistic journey. I aim to grow as an actor, embrace challenging roles, and tell stories that resonate with people on a deeper level. The true measure of success, for me, is the impact I can make through my craft and the lasting impression I leave on the hearts of the viewers." Shalin concluded.
Catch us for latest Bollywood News, New Bollywood Movies update, Box office collection, New Movies Release , Bollywood News Hindi, Entertainment News, Bollywood Live News Today & Upcoming Movies 2024 and stay updated with latest hindi movies only on Bollywood Hungama.
| english |
Rachel McAdams belongs to the category of actresses, who even after 30 years play the role of young girls in youth films. At 35 years old the girl looks great, that's why she enjoys huge popularity both with spectators and directors. Despite the fact that the actress starred in 1997, the filmography of Rachel McAdams has already 64 works, for many of them she received honorable awards.
Rachel was born in the Canadian city of London, in the province of Ontario on November 17, 1978. She grew up in a simple family of driver and nurse, has a brother Daniel and sister Keilin. Since childhood, the young talent showed interest in creativity, at the age of 4, her parents recorded her in a dance group and figure skating. In adolescence, McAdams first thought about her acting career, so she happily played during the summer holidays at the local theater camp, and at school she took part in the performances. After school, Rachel entered the University of York, where she was involved in student short films.
Biography Rachel McAdams is not so cloudless as all the novice actresses at the beginning of the journey she had a hard time, because it was necessary to fight for a place in the sun, beg for at least small roles to show themselves. After graduating from university, the girl stayed in Toronto, to somehow make her way to the cinema. Initially, Rachel interrupted secondary roles in the series. In 1998, the television series "The Famous Jet Jackson" was released, where she played the eldest sister of the protagonist. Among the more significant works, it should be noted "My name is Tatino", as well as "Ideal Pie", for which the actress was nominated for the "Gini" award.
Filmography Rachel McAdams in the 2000s was replenished with several successful works. The first landmark role of the actress was Jessica Spencer from the movie "Chick". This comedy film opened the way for Rachel to the world of cinema, many directors began to perceive her as a promising and talented actress, worthy of the main roles. Then there was the work in the "Diary of Memory", for this film McAdams together with partner Gosling received the MTV Movie Awards for the "Best Kiss". The heroine Rachel from the "Mean Girls" liked the audience so much that after the film was released onto the big screens, the actress woke up to the famous one in a moment.
Movies with Rachel McAdams are very interesting, and her characters are vivid and memorable. The actress does not fixate on one kind of role, there are a lot of diverse movie images in her moneybox, she is not afraid to show new facets of her talent. In 2005, McAdams starred in the film drama "Hello Family! ", The viewer really liked her character Amy Stone. Rachel's partners in the set were Claire Danes, Demort Mulroney, Diane Keaton. Among the most successful films, it is also worth highlighting "Night Flight", "Uninvited Guests". The actress was able to brilliantly convey the character of her character in the comedy "Cool Turn", as well as show the individuality in the movie "Marriage".
Filmography Rachel McAdams annually updated with new movie cores. In 2009, the movie Guy Ritchie "Sherlock Holmes", in which the actress played the role of Irene Adler, was released. The heroine liked many, McAdams noted excellent work not only by the audience, but also by critics. Career Rachel markedly went up the hill, in 2009, the big screen went to the drama "Great Game", in 2010, the actress starred in R. Michella's "Good Morning", in 2011 - Allen's "Midnight in Paris", in 2012 - "Oath", "Passion", in 2013 - "Boyfriend from the future. "
Relations, hobbies, growth, weight Rachel McAdams - all this interests fans and fans of the actress. It should be noted that this girl is almost the ideal of beauty: figure 88-59-91, height 165 cm, weight 52 kg. In excellent form, Rachel manages to stay on top of the vegetarian diet. As for the relationship with the opposite sex, the first time McAdams married in 2004 for her partner in the film "Diary of Memory" by Ryan Gosling. Joint life did not work out and in 2007 the couple divorced. In 2008, there were attempts to resume the relationship, but they did not lead to anything. Then about 4 months Rachel met with Josh Lucas. In 2010, the actress began a relationship with Michael Sheen, with him, and to this day.
Filmography Rachel McAdams is not the only interesting fact from the biography of the actress. Fans are usually interested in everything related to their idol. Here are some interesting facts from celebrity life:
- Actress to 22 years avoided flying on airplanes.
- McAdams was born in the same hospital as her ex-husband Ryan Gosling.
- Rachel has blonde hair from nature.
- The actress suffers from allergies to horses.
- At school, she was an exemplary student, you might even say, a "nerd".
- In her childhood she dreamed of becoming a secretary, still loves to type and work with paper clips and staplers.
- Thanks to Russell Crow, Rachel got carried away by rugby. | english |
A federal judge handling the re-trial of two men charged in connection to an alleged kidnapping plot of Democratic Michigan Gov. Gretchen Whitmer decided Tuesday that information about the first trial, the acquittals of two other men and text messages with an FBI informant cannot be included as part of the evidence presented before the jury during the second trial slated to begin next month.
During the final pre-trial hearing in Grand Rapids on Tuesday ahead of the second trial for defendants Adam Fox and Barry Croft Jr. , U. S. District Judge Robert Jonker decided some texts and communication made by a secret FBI informant dubbed "Big Dan" with his FBI handler would not be permitted.
Jonker, appointed in 2007 by former President George W. Bush, also said the jurors will not be permitted to hear that the other two defendants, Daniel Harris and Brandon Caserta, were found not guilty of kidnapping conspiracy in the alleged plot to kidnap Whitmer over apparent anger stemming from her COVID-19-era lockdown orders.
The judge admitted that potential jurors might already know of the acquittals and could "blurt out" the outcome of the first trial during the jury selection process for the second, but that doesn’t mean information about the outcome of the first trial can be included as evidence, according to Michigan Radio.
Jonker acknowledged that the defense indicated they want to call Harris and Caserta as witnesses during the second trial for Fox and Croft Jr. , and if that happens, the jury could learn of their acquittals anyway.
Still, there’s another possibility Harris and Caserta could invoke their Fifth Amendment rights not to incriminate themselves and choose not to testify during the next trial. Jury selection is set for Aug. 9.
In the same trial in April, the jury deadlocked and could not reach a verdict for Fox and Croft Jr. , and a mistrial was declared, while Harris and Caserta were found not guilty on all federal charges.
The defense accused the FBI of entrapment, arguing their clients were weekend warriors who smoked marijuana and were prone to big talk – not the domestic extremists prosecutors portrayed them to be.
The first trial included a video of the men setting off explosives during apparent training exercises, and prosecutors said they planned to blow up a bridge near Whitmer’s vacation home to delay law enforcement response and then move in to kidnap the governor. The mission was never set into motion.
U. S. Assistant Attorney Nils Kessler said prosecutors will submit 302 pieces of evidence in the new trial – about half of the evidence presented during the first, WWMT reported. New evidence will include 17 social media messages exchanged between Fox and Croft Jr. , and prosecutors plan to call 21 witnesses.
Fox's attorney, Christopher Gibbons, said among witnesses the defense will call, a cell phone expert will testify to demonstrate a "lack of communication between Fox and the Wolverine Watchmen group. "
A total of 11 men were charged in connection to the alleged kidnapping plot against Whitmer in October 2020.
Six of them were charged in federal court, and Ty Garbin and Kaleb Franks both later pleaded guilty and testified for the government during the April trial for Fox, Croft Jr. , Harris and Caserta.
The eight remaining men were charged in state court. Three of them are to face trial in September in Jackson County, while a trial start date has not been set for the five others.
Whitmer is up for re-election in November. The GOP primary during which her potential challengers will face off for a slot on the ballot is scheduled for Aug. 7. | english |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Open 3D Engine PhysXDebug Gem API Reference: PhysXDebug::DebugRequests Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="/images/api-reference/api-ref-icon.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Open 3D Engine PhysXDebug Gem API Reference
 <span id="projectnumber">2107.1 (Developer Preview)</span>
</div>
<div id="projectbrief">O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><b>PhysXDebug</b></li><li class="navelem"><a class="el" href="class_phys_x_debug_1_1_debug_requests.html">DebugRequests</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pub-static-attribs">Static Public Attributes</a> |
<a href="class_phys_x_debug_1_1_debug_requests-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">PhysXDebug::DebugRequests Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
</div><!--header-->
<div class="contents">
<p>Inherits EBusTraits.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ab6f610e23cd977f8dc9a1434bb83f56d"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_phys_x_debug_1_1_debug_requests.html#ab6f610e23cd977f8dc9a1434bb83f56d">SetVisualization</a> (bool enabled)=0</td></tr>
<tr class="separator:ab6f610e23cd977f8dc9a1434bb83f56d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a013300ff22b727b75030dfc70a8dc17c"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_phys_x_debug_1_1_debug_requests.html#a013300ff22b727b75030dfc70a8dc17c">ToggleVisualizationConfiguration</a> ()=0</td></tr>
<tr class="separator:a013300ff22b727b75030dfc70a8dc17c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a194112654ab6d63f95074a3836a452da"><td class="memItemLeft" align="right" valign="top"><a id="a194112654ab6d63f95074a3836a452da"></a>
virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_phys_x_debug_1_1_debug_requests.html#a194112654ab6d63f95074a3836a452da">ToggleColliderProximityDebugVisualization</a> ()=0</td></tr>
<tr class="memdesc:a194112654ab6d63f95074a3836a452da"><td class="mdescLeft"> </td><td class="mdescRight">Toggle editor mode collider proximity debug visualization on/off (disabled by default) <br /></td></tr>
<tr class="separator:a194112654ab6d63f95074a3836a452da"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5b2fcc7f179b3d6c315aaf74cb7fb896"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_phys_x_debug_1_1_debug_requests.html#a5b2fcc7f179b3d6c315aaf74cb7fb896">SetCullingBoxSize</a> (float cullingBoxSize)=0</td></tr>
<tr class="separator:a5b2fcc7f179b3d6c315aaf74cb7fb896"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1fc616e3947cce1c48f58f3bbea8a1c1"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_phys_x_debug_1_1_debug_requests.html#a1fc616e3947cce1c48f58f3bbea8a1c1">ToggleCullingWireFrame</a> ()=0</td></tr>
<tr class="separator:a1fc616e3947cce1c48f58f3bbea8a1c1"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:a79cf657d3f8c32e08252131cdc932223"><td class="memItemLeft" align="right" valign="top"><a id="a79cf657d3f8c32e08252131cdc932223"></a>
static const AZ::EBusHandlerPolicy </td><td class="memItemRight" valign="bottom"><b>HandlerPolicy</b> = AZ::EBusHandlerPolicy::Single</td></tr>
<tr class="separator:a79cf657d3f8c32e08252131cdc932223"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6e7ac28d3cb21f2219990e215e1d681c"><td class="memItemLeft" align="right" valign="top"><a id="a6e7ac28d3cb21f2219990e215e1d681c"></a>
static const AZ::EBusAddressPolicy </td><td class="memItemRight" valign="bottom"><b>AddressPolicy</b> = AZ::EBusAddressPolicy::Single</td></tr>
<tr class="separator:a6e7ac28d3cb21f2219990e215e1d681c"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a5b2fcc7f179b3d6c315aaf74cb7fb896"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b2fcc7f179b3d6c315aaf74cb7fb896">◆ </a></span>SetCullingBoxSize()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void PhysXDebug::DebugRequests::SetCullingBoxSize </td>
<td>(</td>
<td class="paramtype">float </td>
<td class="paramname"><em>cullingBoxSize</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Enables PhysX debug visualization and also sets the culling box size. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">cullingBoxSize</td><td>specifies the new culling box size to use. A value of 0 or less turns off culling. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="ab6f610e23cd977f8dc9a1434bb83f56d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab6f610e23cd977f8dc9a1434bb83f56d">◆ </a></span>SetVisualization()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void PhysXDebug::DebugRequests::SetVisualization </td>
<td>(</td>
<td class="paramtype">bool </td>
<td class="paramname"><em>enabled</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Toggle the PhysX debug gem visualization on/off. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">enabled</td><td>to enable visualization or not. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a1fc616e3947cce1c48f58f3bbea8a1c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1fc616e3947cce1c48f58f3bbea8a1c1">◆ </a></span>ToggleCullingWireFrame()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void PhysXDebug::DebugRequests::ToggleCullingWireFrame </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Toggle the visual culling box. The visual culling box is disabled by default. </p>
</div>
</div>
<a id="a013300ff22b727b75030dfc70a8dc17c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a013300ff22b727b75030dfc70a8dc17c">◆ </a></span>ToggleVisualizationConfiguration()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void PhysXDebug::DebugRequests::ToggleVisualizationConfiguration </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Toggle between minimal physx::PxVisualizationParameter::eCOLLISION_SHAPES and eCOLLISION_EDGES and full visualization everything in physx::PxVisualizationParameter configuration. Will switch between minimal and full on call. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>Gems/PhysXDebug/Code/Include/PhysXDebug/PhysXDebugBus.h</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Sep 17 2021 13:57:22 for Open 3D Engine PhysXDebug Gem API Reference by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
| html |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.