text stringlengths 1 1.04M | language stringclasses 25 values |
|---|---|
It's that time of the year again! IPL 2018 is just around the corner and season 11 of this lucrative T20 tournament promises to be bigger and better than ever!
The Fantasy League adds to the excitement of the tournament by giving you the chance to be a part of the action and experience, by building your own team and squad with the players of your choice. Points are awarded to you based on the on-field performances of the players you have chosen in your fantasy IPL team.
In the build-up to the tournament, let us look at 5 players who must be in your fantasy IPL teams at any cost!
Ben Stokes was the most valuable player at the end of IPL 2017, even at a price tag of Rs. 14.5 crores. He scored 316 runs with a high score of 103*, and took 12 wickets, at a more that respectable economy of 7.18.
The Englishman took five catches in the tournament and was always in the midst of the action, be it batting, bowling or fielding. He will be representing the Rajasthan Royals in IPL 2018.
This English powerhouse all-rounder is the kind of player who will most certainly play every single game for the Royals, unless injured. After hitting the jackpot in the IPL players auction for the second time in a row, he will look to justify his price tag by performing well for his team.
After recent controversies off the field, he will be eager to get out there and do well on the field. Be sure to have Ben Stokes in your fantasy teams!
This man needs no introduction. He is the greatest entertainer on the cricket field, be it with his batting, bowling or quirky dance moves. Dwayne Bravo is always one of the first few names on any team's list.
Back with the Chennai Super Kings this year, the West Indian will look to hit the ground running in IPL 2018. He has played in plenty of T20 leagues around the world and has a fine knowledge of the game.
He is a hard-hitting batsman who can take apart any bowling attack on his day. With the ball in hand, he is a world-class death overs specialist and has won the purple cap two times. He has always been in the top half of the leading wicket-takers list.
Bravo has a safe pair of hands and saves plenty of runs on the field, too. He is sure to fetch you plenty of points in the fantasy league!
Sunil Narine is a mystery spinner from Trinidad & Tobago who has become a vital member of the Kolkata Knight Riders squad. Narine bowls wicket to wicket and hardly gives anything away.
Last year, he left everyone shell-shocked when he walked out to open the batting for the Knight Riders. He gave the Knight Riders a strong start at the top of the order by taking on the bowlers and bludgeoning the ball from the word go.
The Caribbean spin king finished the season with a batting strike rate of 172.30 and is currently the joint record holder of the fastest fifty in IPL history as he smashed 50 of 15 balls against RCB last year. It is very likely that Narine will open the batting for KKR even in IPL 2018.
He is a safe fielder and doesn't drop many catches on the field. His four miserly overs of off-spin and his powerful shots at the top of the order will fetch you a big pile of points in the fantasy league!
Hardik Pandya first came into the limelight in IPL 2015, when he smashed 61 runs off 31 balls for the Mumbai Indians against the Kolkata Knight Riders. After a poor season in IPL 2016, Pandya gave it his all for Mumbai in IPL 2017, smashing the ball to all parts of the Wankhede.
He made his Test debut in July 2017 and is now a regular for India in all three formats of the game. When at his best, he can hit the ball many a mile.
The Baroda all-rounder is very economical with the ball in hand and gets crucial wickets in the middle overs, and is always in the midst of action.
He took 12 catches in the tournament last year and gives it his all on the field. The T20 format is tailor-made for someone like Pandya and you can be sure to reap massive rewards by keeping him in your fantasy IPL teams!
Bhuvaneshwar Kumar has been the leading wicket-taker in the tournament for two consecutive years! The Sunrisers Hyderabad will only be too glad if he makes it a hat-trick of purple caps at the end of IPL 2018.
Bhuvi is the go-to-man when the team is in desperate need of a wicket. He is incredibly versatile as a bowler, and swings the ball both ways at the beginning of the innings, causing problems for the opening batsmen.
At the fag end of the innings, he deploys his yorkers ball-after-ball, effortlessly and leaves batsmen frustrated. Bhuvi has a safe pair of hands and doesn't drop many catches on the field.
| english |
import pytest
import logging
import json
import random
import string
from typing import List
# from flask import FlaskClient
from werkzeug.wrappers import Response
from . import common
ENDPOINT: str = common.BASE_URL + "/depot"
@pytest.fixture()
def random_depot():
"""Return random generated depot"""
return {"latitude": random.uniform(-90, 90), "longitude": random.uniform(-180, 180)}
@pytest.fixture()
def random_depots(num_objects=20):
"""Return list of random depots"""
return [
{"latitude": random.uniform(-90, 90), "longitude": random.uniform(-180, 180)}
for i in range(num_objects)
]
@pytest.mark.parametrize(
"content_type",
[
"audio/aac",
"application/x-abiword",
"application/x-freearc",
"video/x-msvideo",
"application/vnd.amazon.ebook",
"application/octet-stream",
"image/bmp",
"application/x-bzip",
"application/x-bzip2",
"application/x-csh",
"text/css",
"text/csv",
"application/msword",
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application/vnd.ms-fontobject",
"application/epub+zip",
"application/gzip",
"image/gif",
"text/html",
"image/vnd.microsoft.icon",
"text/calendar",
"application/java-archive",
"image/jpeg",
"text/javascript, per the following specifications:",
"audio/midi",
"text/javascript",
"audio/mpeg",
"video/mpeg",
"application/vnd.apple.installer+xml",
"application/vnd.oasis.opendocument.presentation",
"application/vnd.oasis.opendocument.spreadsheet",
"application/vnd.oasis.opendocument.text",
"audio/ogg",
"video/ogg",
"application/ogg",
"audio/opus",
"font/otf",
"image/png",
"application/pdf",
"application/x-httpd-php",
"application/vnd.ms-powerpoint",
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
"application/vnd.rar",
"application/rtf",
"application/x-sh",
"image/svg+xml",
"application/x-shockwave-flash",
"application/x-tar",
"image/tiff",
"video/mp2t",
"font/ttf",
"text/plain",
"application/vnd.visio",
"audio/wav",
"audio/webm",
"video/webm",
"image/webp",
"font/woff",
"font/woff2",
"application/xhtml+xml",
"application/vnd.ms-excel",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"application/xml ",
"application/vnd.mozilla.xul+xml",
"application/zip",
"video/3gpp",
"video/3gpp2",
"application/x-7z-compressed",
],
)
def test_non_json_request(client, auth_header: dict, content_type: str):
"""Test with content types other than 'application/json'"""
logging.debug(f"Testing with content-type : {content_type}")
HEADERS: dict = dict(auth_header, **{"Content-Type": content_type})
res: Response = client.post(ENDPOINT, headers=HEADERS, data="")
logging.debug(f"Response : {res}")
logging.debug(f"Response Data : {res.data}")
assert res.status_code == 400
assert res.headers["Content-Type"] == "application/json"
assert res.json["message"] == "Incorrect request format! Request data must be JSON"
def test_invalid_json(client, auth_header: dict):
"""Test with invalid JSON in request"""
logging.debug("Testing with invalid JSON")
logging.debug(f'Sending request to "{ENDPOINT}"')
HEADERS: dict = dict(auth_header, **{"Content-Type": "application/json"})
res: Response = client.post(
ENDPOINT,
headers=HEADERS,
data="".join(
random.choices(
string.ascii_letters + "".join(["{", "}", '"', "'"]),
k=random.randint(1, 27),
)
),
)
logging.debug(f"Response : {res}")
logging.debug(f"Response Data : {res.data}")
assert res.status_code == 400
assert res.headers["Content-Type"] == "application/json"
assert res.json["message"] == "Invalid JSON received! Request data must be JSON"
def test_empty_depot(client, auth_header: dict):
"""Test by sending empty depot array"""
logging.debug("Testing with empty 'depots' array")
HEADERS: dict = dict(auth_header, **{"Content-Type": "application/json"})
res: Response = client.post(ENDPOINT, headers=HEADERS, json={"depots": []})
logging.debug(f"Response : {res}")
logging.debug(f"Response Data : {res.data}")
assert res.status_code == 400
assert res.headers["Content-Type"] == "application/json"
error_message = res.json["message"]
assert error_message == "'depots' is empty"
@pytest.mark.parametrize(
"param, value",
[
("latitude", -101.536),
("latitude", "-101.536"),
("latitude", -846),
("latitude", "-846"),
("latitude", 507.305),
("latitude", "1.04"),
("latitude", 643),
("latitude", "75"),
("latitude", "abl{s"),
("latitude", ""),
("longitude", -967.895),
("longitude", "-967.895"),
("longitude", -816),
("longitude", "-816"),
("longitude", 2131.114),
("longitude", "2131.114"),
("longitude", 137),
("longitude", "137"),
("longitude", "itKv{a"),
("longitude", ""),
],
)
def test_invalid_depot(
client, auth_header: dict, param: str, value: any, random_depot: dict
):
"""Test with invalid parameters in depot"""
depot: dict = random_depot
input_data: dict = {"depots": [depot], "stack_id": 1}
logging.debug(f"Depot : {depot}")
logging.debug(f"Input data: {input_data}")
depot[param]: any = value
logging.debug(f"Invalid depot : {depot}")
HEADERS: dict = dict(auth_header, **{"Content-Type": "application/json"})
res: Response = client.post(ENDPOINT, headers=HEADERS, json=input_data)
assert res.status_code == 400
assert f"Invalid {param}" in res.json["message"]
def test_single_insert(client, auth_header: dict, random_depot: dict):
"""Test with single depot"""
depot: dict = random_depot
input_data: dict = {"depots": [depot], "stack_id": 1}
logging.debug(f"Depot : {depot}")
logging.debug(f"Input data: {input_data}")
HEADERS: dict = dict(auth_header, **{"Content-Type": "application/json"})
res: Response = client.post(ENDPOINT, headers=HEADERS, json=input_data)
logging.debug(f"Response : {res}")
logging.debug(f"Response Data : {res.data}")
assert res.status_code == 201
assert res.headers["Content-Type"] == "application/json"
for depot, response in zip([depot], res.json["depots"]):
id: int = response.pop("id")
assert isinstance(id, int)
assert depot == response
response["id"]: int = id
def test_multiple_insert(client, auth_header: dict, random_depots: List[dict]):
"""Test with multiple objects in array"""
input_data: dict = {"stack_id": 1, "depots": random_depots}
logging.debug(f"Number of depots : {len(random_depots)}")
logging.debug(f"Input data: {input_data}")
HEADERS: dict = dict(auth_header, **{"Content-Type": "application/json"})
res: Response = client.post(ENDPOINT, headers=HEADERS, json=input_data)
logging.debug(f"Response : {res}")
logging.debug(f"Response Data : {res.data}")
assert res.status_code == 400
assert res.headers["Content-Type"] == "application/json"
assert "contains more than one object" in res.json["message"]
def test_individual_get(client, auth_header: dict, random_depot: dict):
"""Test by inserting depot and GET from individual resource"""
depot: dict = random_depot
depots: List[dict] = [depot]
input_data: dict = {"depots": depots, "stack_id": 1}
logging.debug(f"Depot : {depot}")
HEADERS: dict = dict(auth_header, **{"Content-Type": "application/json"})
res: Response = client.post(ENDPOINT, headers=HEADERS, json=input_data)
logging.debug(f"Response : {res}")
logging.debug(f"Response Data : {res.data}")
assert res.status_code == 201
assert res.headers["Content-Type"] == "application/json"
for depot, response in zip(depots, res.json["depots"]):
id: int = response.pop("id")
assert isinstance(id, int)
assert depot == response
response["id"]: int = id
test_res: Response = client.get(ENDPOINT + f"/{id}", headers=HEADERS)
logging.debug(f"Individual Response for id {id} : {test_res}")
logging.debug(f"Individual Response Data : {test_res.data}")
individual_depot: dict = test_res.json
individual_depot.pop("id")
individual_depot.pop("stack_id")
assert test_res.status_code == 200
assert test_res.is_json
assert individual_depot == depot
def test_individual_put(client, auth_header: dict, random_depot: dict):
"""Test by inserting depot and PUT from individual resource"""
depots: list = [random_depot]
input_data: dict = {"depots": depots, "stack_id": 1}
logging.debug(f"Depot: {random_depot}")
logging.debug(f"Input data: {input_data}")
HEADERS: dict = dict(auth_header, **{"Content-Type": "application/json"})
res: Response = client.post(ENDPOINT, headers=HEADERS, json=input_data)
logging.debug(f"Response : {res}")
logging.debug(f"Response Data : {res.data}")
assert res.status_code == 201
assert res.is_json
for depot, response in zip(depots, res.json["depots"]):
id: int = response.pop("id")
assert isinstance(id, int)
# PUT individual endpoint data
test_res: Response = client.put(
ENDPOINT + f"/{id}",
headers=HEADERS,
json={"depot": random_depot, "stack_id": 1},
)
logging.debug(f"Individual Response for id {id} : {test_res}")
logging.debug(f"Individual Response Data : {test_res.data}")
assert test_res.status_code == 200
assert test_res.is_json
individual_depot: dict = test_res.json["depot"]
individual_depot.pop("id")
individual_depot.pop("stack_id")
assert individual_depot == depot
| python |
#intro {
background-color: white;
}
#intro h2 {
margin: 130px 0 0;
text-align: center;
font-size: 70px;
}
#intro p {
margin: 80px 0 0;
text-align: center;
font-size: 32px;
}
#isomophicDiagram h2 {
margin: 0;
}
#isomophicDiagram img {
height: 500px;
margin-left: 50%;
transform: translateX(-50%);
}
#react h2 {
margin-top: 50px;
transform: translateY(0);
}
#react img {
width: 300px;
margin-left: 50%;
transform: translateX(-50%);
}
#flux {
background-color: #eee;
}
#flux img {
margin-left: 50%;
transform: translateX(-50%);
}
#fluxDiagram {
background-color: #4e4d4f;
}
#fluxDiagram img {
width: 100%;
transform: translateY(50%);
}
#fullComponent pre {
font-size: 20px;
}
#victory img {
margin: 100px 15%;
} | css |
{"ast":null,"code":"import React from \"react\";\nexport var discoveryFilms = function discoveryFilms() {\n return new Promise(function (resolve, reject) {\n var url = \"https://api.themoviedb.org/3/discover/movie?api_key=657047754a636ca6765f2bdce74a5c16&language=fr-US&sort_by=popularity.desc&include_adult=false&include_video=false&page=1&with_watch_monetization_types=flatrate\";\n fetch(url, {\n method: \"GET\",\n headers: {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\"\n }\n }).then(function (response) {\n if (response.ok) {\n return response;\n } else {\n reject();\n throw response;\n }\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n resolve(responseData);\n }).catch(function (error) {\n return console.log(\"error\", error);\n }).finally(function () {});\n });\n};","map":{"version":3,"sources":["/Users/enzotoyos/Desktop/Best-Movie/src/API/index.js"],"names":["React","discoveryFilms","Promise","resolve","reject","url","fetch","method","headers","Accept","then","response","ok","json","responseData","catch","error","console","log","finally"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAGA,OAAO,IAAMC,cAAc,GAAG,SAAjBA,cAAiB,GAAM;AAClC,SAAO,IAAIC,OAAJ,CAAY,UAACC,OAAD,EAAUC,MAAV,EAAqB;AACtC,QAAMC,GAAG,GACP,mNADF;AAGAC,IAAAA,KAAK,CAACD,GAAD,EAAM;AACTE,MAAAA,MAAM,EAAE,KADC;AAETC,MAAAA,OAAO,EAAE;AACPC,QAAAA,MAAM,EAAE,kBADD;AAEP,wBAAgB;AAFT;AAFA,KAAN,CAAL,CAOGC,IAPH,CAOQ,UAACC,QAAD,EAAc;AAElB,UAAIA,QAAQ,CAACC,EAAb,EAAiB;AACf,eAAOD,QAAP;AACD,OAFD,MAEO;AACLP,QAAAA,MAAM;AACN,cAAMO,QAAN;AACD;AACF,KAfH,EAiBGD,IAjBH,CAiBQ,UAACC,QAAD;AAAA,aAAcA,QAAQ,CAACE,IAAT,EAAd;AAAA,KAjBR,EAkBGH,IAlBH,CAkBQ,UAACI,YAAD,EAAkB;AACtBX,MAAAA,OAAO,CAACW,YAAD,CAAP;AACD,KApBH,EAqBGC,KArBH,CAqBS,UAACC,KAAD;AAAA,aAAWC,OAAO,CAACC,GAAR,CAAY,OAAZ,EAAqBF,KAArB,CAAX;AAAA,KArBT,EAsBGG,OAtBH,CAsBW,YAAM,CAAE,CAtBnB;AAuBD,GA3BM,CAAP;AA4BD,CA7BM","sourcesContent":["import React from \"react\";\n\n// Requรชte pour dรฉcouvrir les films les plus populaires du moment\nexport const discoveryFilms = () => {\n return new Promise((resolve, reject) => {\n const url =\n \"https://api.themoviedb.org/3/discover/movie?api_key=657047754a636ca6765f2bdce74a5c16&language=fr-US&sort_by=popularity.desc&include_adult=false&include_video=false&page=1&with_watch_monetization_types=flatrate\";\n\n fetch(url, {\n method: \"GET\",\n headers: {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\",\n },\n })\n .then((response) => {\n //Si rรฉponse OK on passe au then suivant sinon erreur\n if (response.ok) {\n return response;\n } else {\n reject();\n throw response;\n }\n })\n //Parse les donnรฉes recues\n .then((response) => response.json())\n .then((responseData) => {\n resolve(responseData);\n })\n .catch((error) => console.log(\"error\", error))\n .finally(() => {});\n });\n};\n"]},"metadata":{},"sourceType":"module"} | json |
{
"name": "simple-condition-assignment-server",
"version": "1.0.0",
"description": "A simple server for assigning and tracking condition assignments to clients.",
"main": "server.js",
"dependencies": {
"express": "^4.17.1",
"sqlite3": "^4.2.0"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node server.js > server.log",
"dev-start": "nodemon server.js"
},
"author": "<NAME>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/scottbateman/simple-csv-server.git"
},
"keywords": [
"simple",
"experiment",
"conditions",
"server",
"sqlite3"
],
"bugs": {
"url": "https://github.com/scottbateman/simple-condition-assignment-server/issues"
},
"homepage": "https://github.com/scottbateman/simple-condition-assignment-server#readme"
}
| json |
const BronyaC2 = {
data: {
"๋ธ๋ก๋_ํฉ๋งคํ": {
"oName": "<NAME> - ๊ธฐ๋ ์ฅ๊ฐยทํฉ๋งคํ",
"rank": "A",
"bimg": "BronyaC2",
"type": "์ด๋ฅ",
"weapon": "์คํ๊ธฐ",
"skill": [
{
"tag": "๋ฆฌ๋ ์คํฌ",
"name": "<NAME>",
"icon": "Skill_Bronya_ZP_005",
"desc": "๋ฆฌ๋๋ก ๋ฐฐ์น ์ ๋ค์ ํจ๊ณผ๊ฐ ๋ฐ๋๋๋ค.",
"sub": [
{
"name": "์ ์ ๋์กฐ",
"icon": "Skill_Nagative_Damage02",
"text": "30์ฝค๋ณด ์ด๊ณผ ์ ์ ์์ ํฌ๋ฆฌํฐ์ปฌ๋ฅ ์ด 26% ์ฆ๊ฐํ๊ณ , ์ด๋ฅ ์บ๋ฆญํฐ์ ํฌ๋ฆฌํฐ์ปฌ ๋๋ฏธ์ง๊ฐ 29% ์ฆ๊ฐ",
},
]
},
{
"tag": "ํจ์๋ธ",
"name": "ํจ์๋ธ",
"icon": "Skill_Bronya_ZP_006",
"desc": "ํจ์๋ธ ์คํฌ์ ์๋์ผ๋ก ๋ฐ๋๋๋ค.",
"sub": [
{
"name": "<NAME>",
"icon": "Skill_Nagative_Damage01",
"text": "๋ชจ๋์๊ฒ ๋ฌผ๋ฆฌ ๋๋ฏธ์ง๋ฅผ ํก์ํ๋ ๊ธฐ๊ฐ ์ค๋๋ฅผ ์์ฑํ๋ค. ์ค๋์ HP๋ 558์ด๋ฉฐ, 6.0์ด ๋์ ๊ณต๊ฒฉ๋นํ์ง ์์ผ๋ฉด HP๋ฅผ ์์ ํ๋ณตํ๋ค.",
},
{
"name": "<NAME>",
"icon": "Skill_Nagative_Skill03",
"text": "๊ธฐ๊ฐ ์ค๋๊ฐ ํ๊ดด๋ ์, ๊ทผ์ฒ์ ์ ์๊ฒ 1,620์ ์ ๊ฒฉ ๋๋ฏธ์ง๋ฅผ ์
ํ๋ฉฐ ๋๋ฐฑ์ํจ๋ค.",
},
{
"name": "์ถฉ๊ฒฉ ํก์ ๊ธฐ๊ฐ",
"rank": "S",
"icon": "Skill_Nagative_Survive02",
"text": "๊ธฐ๊ฐ ์ค๋๊ฐ ์บ๋ฆญํฐ ๋ฐฉ์ด๋ ฅ์ 100%๋งํผ ๋ฐฉ์ด๋ ฅ์ ์ด์ด๋ฐ๋๋ค.",
},
]
},
{
"tag": "๊ธฐ๋ณธ ๊ณต๊ฒฉ",
"name": "์ฐจ์ง - ์ค์
์ํฌ",
"icon": "Skill_Bronya_ZP_001",
"desc": "์ฐจ์งํ ์๋ก ๊ฐ๋ ฅํด์ง๋ ํฌ๊ฒฉ / ํ์
์ฒด์ธ์ง : ์ฅ๋นํ ๋ฌด๊ธฐ์ ๋ฐ๋ผ ์ฐจ์ง ๊ณต๊ฒฉ์ด ๋ฐ๋๋ค.",
"sub": [
{
"name": "๊ธฐ๊ณ์ ๊ณตํฌ",
"icon": "Skill_Nagative_Survive02",
"text": "์ฐจ์งํ์ง ์๊ณ ๊ณต๊ฒฉํ๋ ๊ฒฝ์ฐ ์ ์ ์ทจ์ฝ ์ํ๋ก ๋ง๋ค์ด 10.0์ด ๋์ ๋ฐฉ์ด๋ ฅ์ 30.0% ๊ฐ์์ํจ๋ค.",
},
{
"name": "<NAME>",
"rank": "S",
"icon": "Skill_Nagative_Damage03",
"text": "์ฐจ์ง ์๋๊ฐ 50.0% ์์นํ์ง๋ง, ํฌ๋ฆฌํฐ์ปฌ๋ฅ ์ด 50% ๊ฐ์ํ๋ค.",
},
]
},
{
"tag": "ํน์ ์คํฌ",
"name": "๊ต๋๊ธฐ - ์ค๋ ์ดํ",
"icon": "Skill_Bronya_ZP_002",
"desc": "๊ต๋ ์ ์ค๋ ์ดํ์ ๋ฐ๋ํ๋ค. / ์ค๋ ์ดํ : ๊ณต๊ฒฉ๋ ฅ์ 150%์ ๋ฌผ๋ฆฌ ๋๋ฏธ์ง๋ฅผ ์
ํ๋ฉฐ ์ ์ ๋๋ฐฑ์ํจ๋ค.",
"sub": [
{
"name": "๊ฐ๋ ฅ ์ถฉ๋",
"icon": "Skill_Nagative_StartUp01",
"text": "์ค๋ ์ดํ์ ๋ง์ ์ ์๊ฒ 1,125 ์ ๋ฌผ๋ฆฌ ๋๋ฏธ์ง๋ฅผ ์ถ๊ฐ๋ก ์
ํ๋ค.",
},
{
"name": "QTE - <NAME>",
"icon": "Skill_Nagative_StartUp02",
"text": "์ ์ด ์๊ณต ๊ฐ์ ์ํ์ผ ๋ QTE ๊ต๋ํ๋ฉด ๋ฐ๋๋๋ค. ์ค๋ ์ดํ์ด ๋ฐ๋๋๋ฉฐ ๊ณต๊ฒฉ๋ ฅ์ 450%์ ๋ฌผ๋ฆฌ ๋๋ฏธ์ง๋ฅผ ์
ํ๊ณ 5.0์ด ๋์ ๊ธฐ์ ์ํ๋ก ๋ง๋ ๋ค.",
},
]
},
{
"tag": "ํ์ด๊ธฐ",
"name": "์ค๋ฒ๋ก๋",
"icon": "Skill_Bronya_BQ_004",
"desc": "๊ธฐ๊ฐ ์๋์ง์ ๋ฆฌ๋ฏธํฐ๋ฅผ ํด์ ํ์ฌ ์ค๋ฒ๋ก๋ ์ํ๊ฐ ๋๋ค / ์ค๋ฒ๋ก๋ : 10 SP๋ฅผ ์๋ชจํ์ฌ ๋ฐ๋ ํ, SP๊ฐ ์์ง๋ ๋๊น์ง ์ด๋น 10 SP์ฉ ์๋ชจํ๋ฉฐ ์ํผ ์๋จธ ์ํ๊ฐ ๋๋ค. / ์ค์์น : ๋ฐ๋ ์ค ํ์ด๊ธฐ ๋ฒํผ์ ๋๋ฌ ์ค๋ฒ๋ก๋ ์ํ๋ฅผ ๋๋ผ ์ ์๋ค. / ํํธ๋ฆฌ์
: ํ์ด๊ธฐ ์ฌ์ฉ ์ ๋ ์ด์ ๋ฌด๊ธฐ์ ํํธ ๊ฒ์ด์ง๋ฅผ ์ด๊ธฐํ ํ๋ค.",
"sub": [
{
"name": "<NAME>",
"icon": "Skill_Nagative_Damage02",
"text": "์ค๋ฒ๋ก๋ ์ํ์ผ ๋, ์ทจ์ฝ ์ํ์ ์ ์ ์ฃผ๋จน์ผ๋ก ๊ณต๊ฒฉํ ๋๋ง๋ค ์ ์์ HP๋ฅผ 108 ํ๋ณต",
},
{
"name": "<NAME>ํ",
"icon": "Skill_Nagative_Skill03",
"text": "์ค๋ฒ๋ก๋ ๋ฐ๋ ์ ์ทจ์ฝ ์ํ์ ์ ์ 10.0์ด ๋์ ์๊ณต ์๋ฐ ์ํ๋ก ๋ง๋ค๊ณ , ์ง์ ์๊ฐ ๋์ ์ทจ์ฝ ์ํ๋ฅผ ์ ์ง ์ํจ๋ค.",
},
{
"name": "๊ด์ ์ฌ์์ฑ",
"icon": "Skill_Nagative_Skill01",
"rank": "SSS",
"text": "์ค๋ฒ๋ก๋ ์ํ์์ ์ ์ ์ฒ์นํ ๋๋ง๋ค ์ ์์ HP๋ฅผ 299 ํ๋ณต",
},
]
},
{
"tag": "ํํผ",
"name": "<NAME>",
"icon": "Skill_Bronya_BQ_003",
"desc": "๋ฐฉํจ๋ก ์ ๋ฉด ๊ณต๊ฒฉ์ ๋ฐฉ์ดํ๋ค. / ๊ฐ๋ ์นด์ดํฐ : ๊ณต๊ฒฉ์ ๋ฐ๋ ์๊ฐ ๋ฐฉ์ด ๋ฒํผ์ ๋ผ๋ฉด ์ ์๊ฒ ๋ฐ๊ฒฉํ๋ค. / ํผํํธ ๊ฐ๋ : ๋ฐ๊ฒฉ ์ 5์ด๊ฐ ๋ชจ๋ ์ ์ ํ๋์ด ๋๋ ค์ง๋ ์๊ณต ๋จ์ด์ ๋ฐ๋ํ๋ค. ์ฟจํ์ 15์ด",
"sub": [
{
"name": "<NAME>",
"icon": "Skill_Nagative_Skill01",
"text": "์๊ฑฐ๋ฆฌ ๊ณต๊ฒฉ๋ ๋ฐฉ์ดํ๊ณ ๋ฐ๊ฒฉํ ์ ์๋ค. ์ค๋ ์ดํ์ด ์ ์ ์ฐ์ ์ํ๋ก ๋ง๋ค๊ณ 10.0์ด ๋์ 0.5์ด๋ง๋ค 154์ ํ์ผ ๋๋ฏธ์ง๋ฅผ ์
ํ๋ค.",
},
{
"name": "<NAME>",
"icon": "Skill_Nagative_Skill02",
"text": "์๊ฑฐ๋ฆฌ ๊ณต๊ฒฉ์ ๋ฐ์ฌํ์ฌ, ํฌ์ฌ์ฒด์ 350%์ ๋๋ฏธ์ง๋ฅผ ์
ํ๋ค.",
},
{
"name": "<NAME>",
"rank": "SS",
"icon": "Skill_Nagative_Skill03",
"text": "๋ฐ๊ฒฉํ ์๊ฐ ์ ์์ SP๋ฅผ 4 ํ๋ณต",
},
]
},
],
},
}
}
export default BronyaC2 | javascript |
The evening game of the doubleheader on Monday will see the Sunrisers Hyderabad take on the Kings XI Punjab at the Rajiv Gandhi International Stadium in Uppal. Both teams are coming into the competition on the back of losses in their previous matches and will look to reverse the trend on Monday night.
For the Sunrisers, they will need to bring back Mustafizur Rahman and hope he strikes form. He might not have had the best of starts to the 2017 campaign, but is still a key component of their side and should be brought back into the fray.
Their batting will once again revolve around David Warner, who has been instrumental in giving them good starts at the top of the order. Yuvraj Singh will also be important in the middle order. The players who will need to stand up and deliver are the likes of Shikhar Dhawan. Deepak Hooda and others who must ensure Warner and Yuvraj get the support that they needed.
In the bowling, the headaches are fewer. Rashid Khan continues to impress with his leg-spin while Bhuvneshwar Kumar is the current holder of the Purple Cap. So in that regard, Warner should not be as worried as he should be with the batting.
Kings XI, on the other hand, suffered their second defeat of the competition on Saturday, this time at the hands of the Delhi Daredevils. The bowlers faltered first and then the batting also did not rise up to the challenge, thereby resulting in a big loss for the side.
The player on who a lot will hinge on again is their skipper Glenn Maxwell. The Australian has been aggressive in his leadership and with the bat in hand and will need to once again, lead from the front on Monday.
Their bowling has also struggled in recent times, particularly at the death and that is an area which they will need to improve upon.
With the kind of batting that they possess, the Sunrisers should aim for a total, in excess of 170+. For that, they will need at least 4 out of the Top 5 to fire and if that does happen, then they should be on course to reaching that score at home.
A lot will depend on the kind of start that Hashim Amla and Manan Vohra give to this side. Maxwell and David Miller will be vital to their cause in the middle order. Their bowling performance will determine their eventual result.
Prediction: The Sunrisers Hyderabad seem the better side in this contest with a good all-round side at their disposal. If they get a big score like they did on the opening day of the competition, then the Kings XI could find it hard to reverse their losing trend.
| english |
/*
* Copyright 2021 ICON Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test
import (
"io"
"testing"
"github.com/stretchr/testify/assert"
"github.com/icon-project/goloop/module"
)
func AssertBlock(
t *testing.T, blk module.Block,
version int, height int64, id []byte, prevID []byte,
) {
assert.EqualValues(t, version, blk.Version())
assert.EqualValues(t, height, blk.Height())
assert.EqualValues(t, id, blk.ID())
assert.EqualValues(t, prevID, blk.PrevID())
}
func AssertBlockInBM(
t *testing.T, bm module.BlockManager,
version int, height int64, id []byte, prevID []byte,
) {
blk, err := bm.GetBlockByHeight(height)
assert.NoError(t, err)
AssertBlock(t, blk, version, height, id, prevID)
blk, err = bm.GetBlock(id)
assert.NoError(t, err)
AssertBlock(t, blk, version, height, id, prevID)
}
func AssertLastBlock(
t *testing.T, bm module.BlockManager,
height int64, prevID []byte, version int,
) {
blk, err := bm.GetLastBlock()
assert.NoError(t, err)
AssertBlock(t, blk, version, height, blk.ID(), prevID)
AssertBlockInBM(t, bm, version, height, blk.ID(), prevID)
}
func GetLastBlock(t *testing.T, bm module.BlockManager) module.Block {
blk, err := bm.GetLastBlock()
assert.NoError(t, err)
return blk
}
type cbResult struct {
bc module.BlockCandidate
cbErr error
}
func ProposeBlock(
bm module.BlockManager,
prevID []byte, votes module.CommitVoteSet,
) (bc module.BlockCandidate, err error, cbError error) {
ch := make(chan cbResult)
_, err = bm.Propose(
prevID, votes, func (bc module.BlockCandidate, err error) {
ch <- cbResult{ bc, err }
},
)
if err != nil {
return nil, err, nil
}
res := <- ch
return res.bc, nil, res.cbErr
}
func ImportBlockByReader(
t *testing.T, bm module.BlockManager,
r io.Reader, flag int,
) (resBc module.BlockCandidate, err error, cbErr error) {
ch := make(chan cbResult)
_, err = bm.Import(
r, flag, func(bc module.BlockCandidate, err error) {
assert.NoError(t, err)
ch <- cbResult{ bc, err }
},
)
if err != nil {
return nil, err, nil
}
res := <- ch
return res.bc, nil, res.cbErr
}
func ImportBlock(
t *testing.T, bm module.BlockManager,
bc module.BlockCandidate, flag int,
) (resBc module.BlockCandidate, err error, cbErr error) {
ch := make(chan cbResult)
_, err = bm.ImportBlock(
bc, flag, func(bc module.BlockCandidate, err error) {
assert.NoError(t, err)
ch <- cbResult{ bc, err }
},
)
if err != nil {
return nil, err, nil
}
res := <- ch
return res.bc, nil, res.cbErr
}
func FinalizeBlock(
t *testing.T, bm module.BlockManager, bc module.BlockCandidate,
) {
err := bm.Finalize(bc)
assert.NoError(t, err)
}
| go |
Jo-Wilfried Tsonga claimed his second ATP title of the year when he won the Marseille Open with a 7-5, 7-6 defeat of fellow Frenchman Michael Llodra in Sunday's final.
Fourth-seeded Tsonga, who won the South African Open two weeks ago, kept his cool under Llodra's pressure at the net to seal victory in one hour 43 minutes.
Tsonga, who now has four ATP titles under his belt, broke decisively in the 11th game to snatch the opening set.
The second set went with serve and world number 12 Tsonga took the resulting tiebreak 7-3, ending the match with his 11th ace on his first match-point.
| english |
{
"provider": "SAP Kyma",
"name": "PubSub connector",
"description": "Connector for integration with PubSub messaging system.",
"shortDescription": "Kyma PubSub connector",
"labels": {
"app": "pubsub-connector"
},
"events": {
"spec": {
"asyncapi": "2.0.0",
"info": {
"title": "Kyma PubSub connector",
"version": "1.0.0",
"description": "pubsub events gateway"
},
"channels": {
"oomevent/found/v1": {
"publish": {
"operationId": "oomFound",
"summary": "A new oom event was found in kyma tests.",
"tags": [
{
"name": "oomevent",
"description": "events about detected OOM events"
}
],
"message": {
"$ref": "#/components/messages/"
}
}
}
},
"components": {
"messages": {
"schemaFormat": "application/cloudevents+json; version=0.2; charset=utf-8",
"contentType": "application/json",
"payload": {
"type": "object",
"externalDocs": "https://github.com/kyma-project/test-infra/development/pubsub-connector/pubsubConnector/README.md"
}
}
}
},
"documentation": {
"displayName": "PubSub connector documentation",
"description": "Documentation for PubSub connector for Kyma Runtime",
"docs": [
{
"title": "PubSub connector documentation",
"source": "https://github.com/kyma-project/test-infra/development/pubsub-connector/pubsubConnector/README.md",
"type": ".md"
}
]
}
}
}
| json |
More than 2,000 people have been identified as victims of fake Covid-19 vaccination camps in the countryโs commercial capital Mumbai. Seven FIRs have been registered against the camps and eight people, including a woman, have been arrested by the police.
Authorities believe the gang gave the victims saltwater or saline vaccines. โA total of 9 fake vaccination camps have been identified in Mumbai. The camps were run by a group of eight members. All of them were arrested. We seized Rs. 12. 40 lakhs from them. The bank accounts of Manish Tripathi and Mahendra Singh, the main accused, have been seized, โ said the Joint Commissioner of Police (Law and Order).
Police sources said that the Covishield violins used by the gang to administer the vaccines were procured from Gujarat. 390 people were vaccinated last week at a housing society in Kandivali, Mumbai. None of them showed any symptoms after vaccination.
In addition, there were certificates of vaccination from various hospitals. Suspicious members of the housing society called the relevant hospitals. However, the owners of the hospitals said that they were not the ones who administered the vaccines. This brought the gang affair to light. | english |
<gh_stars>10-100
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var x2o_builder_1 = require("./x2o-builder");
/**
* ๅฐxmlๅญ็ฌฆไธฒ่ฝฌๅไธบๅฏน่ฑก
*/
function x2o(xml) {
return new x2o_builder_1.default(xml).build();
}
exports.default = x2o;
| javascript |
# -*- coding: utf-8 -*-
"""
# Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
#
# This file was generated and any changes will be overwritten.
"""
from __future__ import unicode_literals
from ..model.identity_set import IdentitySet
from ..graph_object_base import GraphObjectBase
class Shared(GraphObjectBase):
def __init__(self, prop_dict={}):
self._prop_dict = prop_dict
@property
def owner(self):
"""
Gets and sets the owner
Returns:
:class:`IdentitySet<microsoft.graph.model.identity_set.IdentitySet>`:
The owner
"""
if "owner" in self._prop_dict:
if isinstance(self._prop_dict["owner"], GraphObjectBase):
return self._prop_dict["owner"]
else :
self._prop_dict["owner"] = IdentitySet(self._prop_dict["owner"])
return self._prop_dict["owner"]
return None
@owner.setter
def owner(self, val):
self._prop_dict["owner"] = val
@property
def scope(self):
"""Gets and sets the scope
Returns:
str:
The scope
"""
if "scope" in self._prop_dict:
return self._prop_dict["scope"]
else:
return None
@scope.setter
def scope(self, val):
self._prop_dict["scope"] = val
| python |
{
"_from": "react-native-auto-scale-image",
"_id": "react-native-auto-scale-image@1.0.1",
"_inBundle": false,
"_integrity": "sha512-cimwT+1ikWhgni34jpqJOutG9tnqX8G2PwzqRVopy3wupUz37ediYb1fA/ljZZcPrkGHN4UckO1MNwCohrBywQ==",
"_location": "/react-native-auto-scale-image",
"_phantomChildren": {},
"types": "index.d.ts",
"_requested": {
"type": "tag",
"registry": true,
"raw": "react-native-auto-scale-image",
"name": "react-native-auto-scale-image",
"escapedName": "react-native-auto-scale-image",
"rawSpec": "",
"saveSpec": null,
"fetchSpec": "latest"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/react-native-auto-scale-image/-/react-native-auto-scale-image-1.0.1.tgz",
"_shasum": "a429e70284db2e1aad3b5b6a15bbb371418d0778",
"_spec": "react-native-auto-scale-image",
"_where": "E:\\SimplificaCI\\projects\\app-mobile\\doohnow",
"author": {
"name": "<NAME>",
"url": "https://github.com/sourabhv"
},
"bugs": {
"url": "https://github.com/sourabhv/react-native-auto-scale-image/issues"
},
"bundleDependencies": false,
"dependencies": {},
"deprecated": false,
"description": "React Native Image component to calculate width or height automatically, given the other value, to preserve image's aspect ratio",
"devDependencies": {},
"homepage": "https://github.com/sourabhv/react-native-auto-scale-image#readme",
"keywords": [
"react-native",
"image",
"component",
"scale",
"scalable",
"aspect",
"ratio",
"aspect-ratio",
"fit",
"auto",
"scale-width",
"scale-height"
],
"license": "ISC",
"main": "index.js",
"name": "react-native-auto-scale-image",
"peerDependencies": {
"prop-types": "^15.7.2",
"react": "^16.8.3",
"react-native": "^0.59.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/sourabhv/react-native-auto-scale-image.git"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"version": "1.0.1"
}
| json |
<reponame>bundie1990/new-website
{"buybutton.js":"sha256-GCNnr3C821csS6eqzqL7wZXB/H1tnaGzgNtkntes3TY=","buybutton.min.js":"sha256-HVgP8/SXMWZgXo7EkZlO9uzzjij91tvUt2jvNgqs1tI="} | json |
{"nom":"Chanceaux","circ":"4รจme circonscription","dpt":"Cรดte-d'Or","inscrits":161,"abs":83,"votants":78,"blancs":5,"nuls":1,"exp":72,"res":[{"nuance":"LR","nom":"M. <NAME>","voix":37},{"nuance":"REM","nom":"Mme <NAME>","voix":35}]} | json |
[{"id":"1011","provinceId":"14","regencyId":"07","districtId":"02","name":"Bagan Punak"},{"id":"1012","provinceId":"14","regencyId":"07","districtId":"02","name":"Bagan Kota"},{"id":"1015","provinceId":"14","regencyId":"07","districtId":"02","name":"Bagan Hulu"},{"id":"1016","provinceId":"14","regencyId":"07","districtId":"02","name":"Bagan Barat"},{"id":"1017","provinceId":"14","regencyId":"07","districtId":"02","name":"Bagan Timur"},{"id":"2009","provinceId":"14","regencyId":"07","districtId":"02","name":"Labuhan Tangga Kecil"},{"id":"2010","provinceId":"14","regencyId":"07","districtId":"02","name":"Labuhan Tangga Besar"},{"id":"2013","provinceId":"14","regencyId":"07","districtId":"02","name":"Bagan Jawa"},{"id":"2014","provinceId":"14","regencyId":"07","districtId":"02","name":"Parit Aman"},{"id":"2019","provinceId":"14","regencyId":"07","districtId":"02","name":"Labuhan Tangga Baru"},{"id":"2021","provinceId":"14","regencyId":"07","districtId":"02","name":"Bagan Jawa Pesisir"},{"id":"2022","provinceId":"14","regencyId":"07","districtId":"02","name":"Serusa"},{"id":"2023","provinceId":"14","regencyId":"07","districtId":"02","name":"Labuhan Tangga Hilir"},{"id":"2024","provinceId":"14","regencyId":"07","districtId":"02","name":"Bagan Punak Meranti"},{"id":"2025","provinceId":"14","regencyId":"07","districtId":"02","name":"Bagan Punak Pesisir"}] | json |
Several State-run social sector programmes need reimagining. Shouldnโt the Pradhan Mantri Awas Yojana enable the construction of climate and disaster resilient housing? Shouldnโt the Har Ghar Jal Yojana aim to harness sustainable water sources? The local development plans at the block and panchayat levels need to focus on developing climate-resilient systems, livelihoods, and assets, both public and private.
Two recent publications point out pathways for India to meet the challenges posed by the climate crisis.
The Intergovernmental Panel on Climate Change (IPCC)โs Sixth Assessment Report, released in August, acknowledged Indiaโs efforts towards pledges on emission, but advocated a net-zero deadline. Then, an article by Indian and American scientists (published in Nature) highlighted the socio-economic impact of even small changes in rainfall patterns. Using records spanning over 200 years, the study concluded that even rainfall variation of 14% or more due to the climate crisis can lead to large-scale disruptions such as famine, starvation, riots, and epidemics.
The message for India, therefore, is not so much mitigation, but to go for a quicker, broader, and deeper climate crisis adaptation plan. There are two fundamental approaches that India can adopt to meet this goal.
One, integrate climate adaptation, disaster risk resilience and Sustainable Development Goals (SDGs) in development policies, including public and private expenditure. A good start has been made by combining these elements in the National Disaster Management Plan 2019, but these aspects need to become the basis of all development plans and activities.
Second, reorient mitigation as a subset of both adaptation and the countryโs socio-economic aspirations. India needs to strengthen its SDG strategy. No resilience strategy is better than a combination of economic prosperity, inclusive and sustainable public services, and an adequate social safety net. Further, as the Covid-19 pandemic showed, scientific prowess and strong institutions are also necessary. Not only are SDGs more relevant, especially for the poor and vulnerable citizens, but they have to be achieved by 2030. In the long-run, this will help India become a net-zero carbon economy without communities and individuals falling through the cracks.
Several State-run social sector programmes need reimagining. Shouldnโt the Pradhan Mantri Awas Yojana enable the construction of climate and disaster resilient housing? Shouldnโt the Har Ghar Jal Yojana aim to harness sustainable water sources? The local development plans at the block and panchayat levels need to focus on developing climate-resilient systems, livelihoods, and assets, both public and private.
Shouldnโt the Mahatma Gandhi National Rural Employment Guarantee Scheme-funded projects combine climate resilience and attainment of SDGs, along with livelihood support? Shouldnโt India shift towards outcome-based public budgets, measuring resilience as a key indicator? Are the skill development programmes factoring in future jobs arising from climate actions by the private sector? What role should research organisations play in furthering climate action knowledge, and how will this be translated into policies and programmes in the public and private sectors?
The answers to these critical questions can help form a coherent, people-driven, and collaborative adaptation strategy at the national, state, and local levels.
Under this government, India has taken the lead in climate action by spearheading initiatives such as the Coalition for Disaster Resilient Infrastructure, International Solar Alliance, and the Global Cooling Prize. But the integration of such initiatives in every sector of the economy and each village, town, and city will not be an easy task.
Infrastructure must be redesigned to meet resilience standards. Investments in early warning systems and climate and disaster resilient infrastructure will minimise the loss of lives, livelihoods, and assets in the event of a disaster. Fortunately, the majority of such infrastructure in India is yet to be built. The increasing use of solar power has to accompany the retiring of coal-fired power plants. It is not just air conditioning and refrigeration that needs reimagining; sectors such as construction, local transport, food processing, farming, and water resources management must be rehauled.
The country also needs to invest in improved climate data collection, management, and analyses. In addition, downscaled modelling, which examines relatively small areas in detail, will be necessary to predict and manage short- to long-term impacts. Given Indiaโs federal structure and diverse geography, the state and local authorities will need to take the lead on such measures with strong support from the Centre.
The current state action plans on climate change must be revised and upgraded to evidence-based and outcome-orientated strategies; these must be flexible, inclusive, and developed using a bottom-up approach.
While the climate crisis is often perceived as an environmental issue, it is more of a social development and economic growth concern for India. Therefore, every household, community, and business must be well prepared to meet the emerging challenges. | english |
<reponame>cyamonide/FRC-2017<filename>OpenCV/networktablesaddon.py
from networktables import NetworkTable
import logging
logging.basicConfig(level=logging.DEBUG) # enables logging for pynetworktables
NetworkTable.setIPAddress("roboRIO-4914-FRC.local")
NetworkTable.setClientMode()
NewtorkTable.initialize()
table = NetworkTable.getTable("ContoursReport")
while True:
if len(filteredContours) > 0:
table.putNumber('isTarget', 1)
table.putNumber('cX', cX)
table.putNumber('cY', cY)
else:
table.putNumber('isTarget', 0)
table.putNumber('cX', -1)
table.putNumber('cY', -1)
| python |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.9.1"/>
<title>Wiimote API: WiimoteApi.IRData 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="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</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 style="padding-left: 0.5em;">
<div id="projectname">Wiimote API
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Packages</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespace_wiimote_api.html">WiimoteApi</a></li><li class="navelem"><a class="el" href="class_wiimote_api_1_1_i_r_data.html">IRData</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="#properties">Properties</a> |
<a href="class_wiimote_api_1_1_i_r_data-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">WiimoteApi.IRData Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for WiimoteApi.IRData:</div>
<div class="dyncontent">
<div class="center">
<img src="class_wiimote_api_1_1_i_r_data.png" usemap="#WiimoteApi.IRData_map" alt=""/>
<map id="WiimoteApi.IRData_map" name="WiimoteApi.IRData_map">
<area href="class_wiimote_api_1_1_wiimote_data.html" alt="WiimoteApi.WiimoteData" shape="rect" coords="0,0,147,24"/>
</map>
</div></div>
<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:ae66b703e8ff1bfe56f19edae301c85aa"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_wiimote_api_1_1_i_r_data.html#ae66b703e8ff1bfe56f19edae301c85aa">IRData</a> (<a class="el" href="class_wiimote_api_1_1_wiimote.html">Wiimote</a> <a class="el" href="class_wiimote_api_1_1_wiimote_data.html#a1e02de970532af49a657113006d82d66">Owner</a>)</td></tr>
<tr class="separator:ae66b703e8ff1bfe56f19edae301c85aa"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2dbf5e6095aac45c3e0239c0d537681f"><td class="memItemLeft" align="right" valign="top">override bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_wiimote_api_1_1_i_r_data.html#a2dbf5e6095aac45c3e0239c0d537681f">InterpretData</a> (byte[] data)</td></tr>
<tr class="memdesc:a2dbf5e6095aac45c3e0239c0d537681f"><td class="mdescLeft"> </td><td class="mdescRight">Interprets raw byte data reported by the Wii Remote. The format of the actual bytes passed to this depends on the Wii Remote's current data report mode and the type of data being passed. <a href="#a2dbf5e6095aac45c3e0239c0d537681f">More...</a><br /></td></tr>
<tr class="separator:a2dbf5e6095aac45c3e0239c0d537681f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a962907af2859df7ab2f21ca326106d05"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_wiimote_api_1_1_i_r_data.html#a962907af2859df7ab2f21ca326106d05">InterpretDataInterleaved</a> (byte[] data1, byte[] data2)</td></tr>
<tr class="memdesc:a962907af2859df7ab2f21ca326106d05"><td class="mdescLeft"> </td><td class="mdescRight">Interprets raw byte data reported by the Wii Remote when in interleaved data reporting mode. The format of the actual bytes passed to this depends on the Wii Remote's current data report mode and the type of data being passed. <a href="#a962907af2859df7ab2f21ca326106d05">More...</a><br /></td></tr>
<tr class="separator:a962907af2859df7ab2f21ca326106d05"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a47e1265b23766c67254f8dd4d165d656"><td class="memItemLeft" align="right" valign="top">float[] </td><td class="memItemRight" valign="bottom"><a class="el" href="class_wiimote_api_1_1_i_r_data.html#a47e1265b23766c67254f8dd4d165d656">GetPointingPosition</a> ()</td></tr>
<tr class="memdesc:a47e1265b23766c67254f8dd4d165d656"><td class="mdescLeft"> </td><td class="mdescRight">Size: 2. Returns the position at which the Wii Remote is pointing to. This is a value from 0-1 representing the camera-space pointing position in X and Y. Assume a 4x3 aspect ratio. <a href="#a47e1265b23766c67254f8dd4d165d656">More...</a><br /></td></tr>
<tr class="separator:a47e1265b23766c67254f8dd4d165d656"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1e979eacbe564b980c860a68de673950"><td class="memItemLeft" align="right" valign="top">float[] </td><td class="memItemRight" valign="bottom"><a class="el" href="class_wiimote_api_1_1_i_r_data.html#a1e979eacbe564b980c860a68de673950">GetIRMidpoint</a> (bool predict=true)</td></tr>
<tr class="memdesc:a1e979eacbe564b980c860a68de673950"><td class="mdescLeft"> </td><td class="mdescRight">Size: 2. Returns the midpoint of all IR dots, or [0, 0] if none are found. This is a value from 0-1 representing the camera-space position in X and Y. <a href="#a1e979eacbe564b980c860a68de673950">More...</a><br /></td></tr>
<tr class="separator:a1e979eacbe564b980c860a68de673950"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a06c8b572db7a3ea1d560a580955db350"><td class="memItemLeft" align="right" valign="top">float[,] </td><td class="memItemRight" valign="bottom"><a class="el" href="class_wiimote_api_1_1_i_r_data.html#a06c8b572db7a3ea1d560a580955db350">GetProbableSensorBarIR</a> (bool predict=true)</td></tr>
<tr class="memdesc:a06c8b572db7a3ea1d560a580955db350"><td class="mdescLeft"> </td><td class="mdescRight">Attempts to identify which of the four IR "dots" reported by the Wii Remote are from the Wii sensor bar. <a href="#a06c8b572db7a3ea1d560a580955db350">More...</a><br /></td></tr>
<tr class="separator:a06c8b572db7a3ea1d560a580955db350"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_methods_class_wiimote_api_1_1_wiimote_data"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_wiimote_api_1_1_wiimote_data')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="class_wiimote_api_1_1_wiimote_data.html">WiimoteApi.WiimoteData</a></td></tr>
<tr class="memitem:a461a8475775895d728de5f11d9fb99e9 inherit pub_methods_class_wiimote_api_1_1_wiimote_data"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_wiimote_api_1_1_wiimote_data.html#a461a8475775895d728de5f11d9fb99e9">WiimoteData</a> (<a class="el" href="class_wiimote_api_1_1_wiimote.html">Wiimote</a> <a class="el" href="class_wiimote_api_1_1_wiimote_data.html#a1e02de970532af49a657113006d82d66">Owner</a>)</td></tr>
<tr class="separator:a461a8475775895d728de5f11d9fb99e9 inherit pub_methods_class_wiimote_api_1_1_wiimote_data"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a114af030a9a10d1e9b38e576eecdd3e8"><td class="memItemLeft" align="right" valign="top">ReadOnlyMatrix< int > </td><td class="memItemRight" valign="bottom"><a class="el" href="class_wiimote_api_1_1_i_r_data.html#a114af030a9a10d1e9b38e576eecdd3e8">ir</a><code> [get]</code></td></tr>
<tr class="memdesc:a114af030a9a10d1e9b38e576eecdd3e8"><td class="mdescLeft"> </td><td class="mdescRight">Size: 4x3. Current Wii Remote RAW IR data. Wii Remote IR data can detect up to four IR dots. Data = -1 if it is inapplicable (for example, if there are less than four dots, or if size data is unavailable due to the selected IRDataType). <a href="#a114af030a9a10d1e9b38e576eecdd3e8">More...</a><br /></td></tr>
<tr class="separator:a114af030a9a10d1e9b38e576eecdd3e8"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_attribs_class_wiimote_api_1_1_wiimote_data"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_wiimote_api_1_1_wiimote_data')"><img src="closed.png" alt="-"/> Protected Attributes inherited from <a class="el" href="class_wiimote_api_1_1_wiimote_data.html">WiimoteApi.WiimoteData</a></td></tr>
<tr class="memitem:a1e02de970532af49a657113006d82d66 inherit pro_attribs_class_wiimote_api_1_1_wiimote_data"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_wiimote_api_1_1_wiimote.html">Wiimote</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_wiimote_api_1_1_wiimote_data.html#a1e02de970532af49a657113006d82d66">Owner</a></td></tr>
<tr class="separator:a1e02de970532af49a657113006d82d66 inherit pro_attribs_class_wiimote_api_1_1_wiimote_data"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a class="anchor" id="ae66b703e8ff1bfe56f19edae301c85aa"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">WiimoteApi.IRData.IRData </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_wiimote_api_1_1_wiimote.html">Wiimote</a> </td>
<td class="paramname"><em>Owner</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a1e979eacbe564b980c860a68de673950"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float [] WiimoteApi.IRData.GetIRMidpoint </td>
<td>(</td>
<td class="paramtype">bool </td>
<td class="paramname"><em>predict</em> = <code>true</code></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Size: 2. Returns the midpoint of all IR dots, or [0, 0] if none are found. This is a value from 0-1 representing the camera-space position in X and Y. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">predict</td><td>If true, and one of the IR "dots" from the sensor bar is outside of the IR camera field of view, <a class="el" href="namespace_wiimote_api.html">WiimoteApi</a> will attempt to predict the other dot's position outside of the camera (default true). </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a47e1265b23766c67254f8dd4d165d656"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float [] WiimoteApi.IRData.GetPointingPosition </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Size: 2. Returns the position at which the Wii Remote is pointing to. This is a value from 0-1 representing the camera-space pointing position in X and Y. Assume a 4x3 aspect ratio. </p>
<p>This takes into account the rotation of the remote (using the Wii Remote's Accelerometer) to correct for rotational distortion. </p>
</div>
</div>
<a class="anchor" id="a06c8b572db7a3ea1d560a580955db350"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float [,] WiimoteApi.IRData.GetProbableSensorBarIR </td>
<td>(</td>
<td class="paramtype">bool </td>
<td class="paramname"><em>predict</em> = <code>true</code></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Attempts to identify which of the four IR "dots" reported by the Wii Remote are from the Wii sensor bar. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">predict</td><td>If true, and one of the dots is outside of the Wii Remote's field of view, <a class="el" href="namespace_wiimote_api.html">WiimoteApi</a> will attempt to predict the other dot's position outside of the screen (default true).</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>First Dimension: Index of detected IR dot.<br />
Second Dimension: 0: X, 1: Y, 2: Index in <a class="el" href="class_wiimote_api_1_1_i_r_data.html#a114af030a9a10d1e9b38e576eecdd3e8">ir</a> (or -1 if predicted)<br />
Size: 2x3<br />
Range: 0-1 with respect to the Wii Remote Camera dimensions. If <code>predict</code> is true this may be outside of that range. </dd></dl>
</div>
</div>
<a class="anchor" id="a2dbf5e6095aac45c3e0239c0d537681f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">override bool WiimoteApi.IRData.InterpretData </td>
<td>(</td>
<td class="paramtype">byte[] </td>
<td class="paramname"><em>data</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Interprets raw byte data reported by the Wii Remote. The format of the actual bytes passed to this depends on the Wii Remote's current data report mode and the type of data being passed. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_wiimote_api_1_1_wiimote.html#ae4788b07e63ac9b2b0c37dd07c0d0988" title="Reads and interprets data reported by the Wii Remote. ">Wiimote::ReadWiimoteData()</a> </dd></dl>
<p>Implements <a class="el" href="class_wiimote_api_1_1_wiimote_data.html#a3f7f4a9a99cb82e2966c6b51074af2ad">WiimoteApi.WiimoteData</a>.</p>
</div>
</div>
<a class="anchor" id="a962907af2859df7ab2f21ca326106d05"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool WiimoteApi.IRData.InterpretDataInterleaved </td>
<td>(</td>
<td class="paramtype">byte[] </td>
<td class="paramname"><em>data1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">byte[] </td>
<td class="paramname"><em>data2</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Interprets raw byte data reported by the Wii Remote when in interleaved data reporting mode. The format of the actual bytes passed to this depends on the Wii Remote's current data report mode and the type of data being passed. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_wiimote_api_1_1_wiimote.html#ae4788b07e63ac9b2b0c37dd07c0d0988" title="Reads and interprets data reported by the Wii Remote. ">Wiimote::ReadWiimoteData()</a> </dd></dl>
</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a class="anchor" id="a114af030a9a10d1e9b38e576eecdd3e8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">ReadOnlyMatrix<int> WiimoteApi.IRData.ir</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Size: 4x3. Current Wii Remote RAW IR data. Wii Remote IR data can detect up to four IR dots. Data = -1 if it is inapplicable (for example, if there are less than four dots, or if size data is unavailable due to the selected IRDataType). </p>
<p>This is only updated if the Wii Remote has a report mode with IR</p>
<table class="doxtable">
<tr>
<th></th><th>Position X </th><th>Position Y </th><th>Size </th><th>X min </th><th>Y min </th><th>X max </th><th>Y max </th><th>Intensity </th></tr>
<tr>
<td>Range: </td><td>0 - 1023 </td><td>0 - 767 </td><td>0 - 15 </td><td>0 - 127 </td><td>0 - 127 </td><td>0 - 127 </td><td>0 - 127 </td><td>0 - 256 </td></tr>
<tr>
<td>Index: </td><td>0 </td><td>1 </td><td>2 </td><td>3 </td><td>4 </td><td>5 </td><td>6 </td><td>7 </td></tr>
</table>
<div class="fragment"><div class="line"><span class="keywordtype">int</span>[dot index, x (0) / y (1) / size (2) / xmin (3) / ymin (4) / xmax (5) / ymax (6) / intensity (7)] </div>
</div><!-- fragment --><dl class="section see"><dt>See also</dt><dd><a class="el" href="namespace_wiimote_api.html#a9549244c36e3618c8a2387020b805289">IRDataType</a>, <a class="el" href="class_wiimote_api_1_1_wiimote.html#a95f5bb7ae8bea462be96f570c4723ed6" title="Performs a series of coperations to initialize the IR camera. ">Wiimote::SetupIRCamera(IRDataType)</a> </dd></dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>WiimoteData/<a class="el" href="_i_r_data_8cs.html">IRData.cs</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Oct 13 2015 09:44:43 for Wiimote API by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
| html |
This week Advocacy for Animals presents a first-person story with a happy ending for a wounded bird.
For the record, it was my wife, Michelle, who spotted โArrow Momโ first: a big, beautiful sandhill crane standing along the roadside in Wisconsin with a bowmanโs arrow protruding out both sides of her body. The crane had been shot in the back, the pointed end of the missile extending several inches out of her breast.
Our part of the story took place on the border of Wisconsin Rapids and the town of Biron on August 29, 2008. It was there on Plover Road that our meandering Labor Day weekend drive through central Wisconsin took a sorrowful turnโas sorrowful as the sight of a federally protected migratory bird with an arrow through it can beโand just as fall migration was about to begin.
It didnโt take long for our anger to turn to grief over what we figured would be a slow and torturous death for the disabled crane. We wondered: Did the attack just happen? Can we catch the jerk who did it? Report him?
We pulled into the driveway of a cemetery on the east side of Plover Road. As Michelle watched for approaching traffic, I walked toward the crane to see if I could somehow corral it and keep it safe from traffic until help was summoned. But, although it couldnโt fly, it was able to move quickly on the ground and scooted past me. We last saw the arrowed bird as it disappeared into shrubbery in back of an abandoned-looking house.
After reporting to local 911 exactly where we lost sight of โthe crane with the arrow in it,โ we continued to a family get-together in Kaukauna, Wisconsin. The next morning I called the Wisconsin Rapids Police, the dispatcher explaining that a responding officer sighted โthe bird with the arrow in itโ and gave chase, but it got away. Also to no avail was a Labor Day call to a live Wisconsin Public Radio show with two Wisconsin-based ornithologists fielding questions; they could think of no way to help and didnโt know of any wildlife rehabilitators in the area. Another dead-end was a phone conversation with a Wisconsin Rapids area Department of Natural Resources employee, as was an online โinjured bird alertโ that an obliging Wisconsinite forwarded to the Wisconsin Birding List for us.
Unfortunately, no one we talked to knew of Marge Gibson, Executive Director of the Raptor Rehabilitation Education Group, Inc. (REGI), a two-hour drive away in Antigo, Wisconsin, or Nicki Christianson, a mammal rehabilitator right there in Wisconsin Rapids who could have been of help. Both of these women were involved in the eventual rescue of the bird.
It wasnโt until nearly a month later that the wounded crane was sighted and reported to Gibsonโs group. Eleven-year-old Monica Schaetz of Biron spotted โthe bird with the arrow in itโ by a stream near her house. Monicaโs mother, Connie, had heard of REGI and called them. Sadly, the small army of rescuers who captured the crane, now near death, on September 30th noticed her mate and offspring (a โcolt,โ as juvenile cranes are termed) lingering nearby. Cranes mate for life.
The moral of this story might simply be that one of the worldโs most beautiful migratory birds was rescued from a violent encounter with the worst man has to offer, and that the bird is free and flying today because of the painstaking efforts of the best man has to offer. And that would be true. But thereโs more.
Migratory bird rescues and releases are taking place right now during this 2009 spring migration, not all with such happy endings. But because of nonprofit organizations like REGI, there will indeed be more rescues and releases, providing they have the resources. Keep in mind, according to Gibson, 98 percent of the birds she and her co-founder, husband Don Gibson, receiveโ150 patients at any given time (owls, eagles, hawks, cranes, swans, you name it)โare injured or incapacitated because of human activity, be it gunshot, arrowshot, lead poisoning, or hit by cars. REGI cares for 600 to 800 birds a year, of all native species, and, like other similar facilities nationwide, is supported solely by private donations.
Images: The wounded crane stands in a creekbed; Marge Gibson holds the wounded crane on the day of its capture; the crane takes her first steps to freedom. All photos courtesy of REGI.
- Read more details about the rescue.
- If you;d like to know more about the mission of this non-profit organization, go to REGIโs Web site or check their new blog. It is a way to experience their day to day work at REGI and includes patients admitted and updates including photos.
- See National Geographicโs videos of sandhill cranes during this yearโs migration and learn more about them.
- The International Crane Foundationโs sandhill crane page.
How Can I Help?
- Support the work of REGI by becoming a member or adopting a bird.
- If youโve found an injured animal, The Wildlife Information Directory offers advice on what to do. It includes a list of U.S. state agencies dealing with wildlife.
| english |
import React from 'react';
function SocialMedia(props){
return (
<div class="SocialMedia">
<img id="profileImg" src={props.profileImg} alt="Unable to load profile pic." />
<p>
{props.role}
|
<a href={props.url} target="_blank" rel="noopener noreferrer">{props.username}</a>
</p>
</div>
);
}
export default SocialMedia;
| javascript |
---
-api-id: P:Windows.UI.StartScreen.StartScreenManager.User
-api-type: winrt property
---
<!-- Property syntax.
public User User { get; }
-->
# Windows.UI.StartScreen.StartScreenManager.User
## -description
Gets the user associated with the current Start screen.
## -property-value
## -remarks
## -see-also
## -examples
| markdown |
Glodaladolazi u nekoliko oblika i mnogo veliฤina.Postoji i izbor premaza, kao i kuta nagiba i broja reznih povrลกina.
- Oblik:Nekoliko standardnih oblikaglodalodanas se koriste u industriji, a koji su detaljnije objaลกnjeni u nastavku.
- ลฝljebovi / zubi:ลฝljebovi glodala su duboki spiralni utori koji se proteลพu uz glodalo, dok je oลกtra oลกtrica duลพ ruba ลพlijeba poznata kao zub.Zub reลพe materijal, a strugotine tog materijala se rotacijom rezaฤa povlaฤe u ลพljeb.Gotovo uvijek postoji jedan zub po ลพlijebu, ali neki rezaฤi imaju dva zuba po ลพlijebu.ฤesto, rijeฤiflautaizubkoriste se naizmjeniฤno.Glodala mogu imati od jednog do viลกe zuba, a najฤeลกฤe su dva, tri i ฤetiri.Tipiฤno, ลกto viลกe zubaca rezaฤ ima, to brลพe moลพe ukloniti materijal.Dakle, aRezaฤ s 4 zubamoลพe ukloniti materijal dvostruko brลพe od arezaฤ s dva zuba.
- Kut zavojnice:ลฝljebovi glodala su gotovo uvijek spiralni.Da su ลพljebovi ravni, cijeli bi zub odjednom udario u materijal, uzrokujuฤi vibracije i smanjujuฤi toฤnost i kvalitetu povrลกine.Postavljanje ลพljebova pod kutom omoguฤuje postupni ulazak zuba u materijal, smanjujuฤi vibracije.Tipiฤno, rezaฤi za zavrลกnu obradu imaju veฤi nagibni kut (ฤvrลกฤa spirala) kako bi se dobila bolja zavrลกna obrada.
- Srediลกnje rezanje:Neka glodala mogu buลกiti ravno prema dolje (uroniti) kroz materijal, dok druga ne mogu.To je zato ลกto zubi nekih rezaฤa ne idu skroz do srediลกta ฤeone strane.Meฤutim, ovi rezaฤi mogu rezati prema dolje pod kutom od 45 stupnjeva.
- Gruba ili zavrลกna obrada:Dostupne su razliฤite vrste rezaฤa za rezanje velikih koliฤina materijala, ostavljajuฤi loลกu zavrลกnu obradu povrลกine (hrapava obrada) ili uklanjanje manje koliฤine materijala, ali ostavljajuฤi dobru zavrลกnu obradu povrลกine (zavrลกna obrada).Rezaฤ za grubu obradumogu imati nazubljene zube za lomljenje komadiฤa materijala na manje komade.Ovi zubi iza sebe ostavljaju grubu povrลกinu.Rezaฤ za zavrลกnu obradu moลพe imati veliki broj (ฤetiri ili viลกe) zubaca za paลพljivo uklanjanje materijala.Meฤutim, veliki broj ลพljebova ostavlja malo prostora za uฤinkovito uklanjanje strugotina, pa su manje prikladni za uklanjanje velikih koliฤina materijala.
- Premazi:Pravi premazi alata mogu imati velik utjecaj na proces rezanja poveฤanjem brzine rezanja i vijeka trajanja alata te poboljลกanjem zavrลกne obrade povrลกine.Polikristalni dijamant (PCD) iznimno je ฤvrst premaz koji se koristi narezaฤikoji mora izdrลพati visoko abrazivno troลกenje.Alat s PCD premazom moลพe trajati do 100 puta duลพe od alata bez premaza.Meฤutim, premaz se ne moลพe koristiti na temperaturama iznad 600 stupnjeva C, ili na ลพeljeznim metalima.Alati za strojnu obradu aluminija ponekad imaju sloj TiAlN.Aluminij je relativno ljepljiv metal i moลพe se zavariti za zube alata, uzrokujuฤi da oni izgledaju tupi.Meฤutim, obiฤno se ne lijepi za TiAlN, ลกto omoguฤuje dulju upotrebu alata u aluminiju.
- drลกka:Drลกka je cilindriฤni (bez ลพljebova) dio alata koji se koristi za njegovo drลพanje i postavljanje u drลพaฤ alata.Drลกka moลพe biti savrลกeno okrugla i drลพati se trenjem, ili moลพe imati Weldon Flat, gdje vijak za namjeลกtanje, takoฤer poznat kao grubi vijak, uspostavlja kontakt za poveฤanje momenta bez klizanja alata.Promjer se moลพe razlikovati od promjera reznog dijela alata, tako da se moลพe drลพati standardnim drลพaฤem alata.ยง Duljina drลกke takoฤer moลพe biti dostupna u razliฤitim veliฤinama, s relativno kratkim drลกkama (oko 1,5x promjera) koje se nazivaju "izboฤina", dugim (5x promjer), ekstra dugim (8x promjer) i ekstra ekstra dugim (12x promjer).
| english |
Jannayak Janta Party (JJP) national executive member Dharambir Sihag on Sunday said that the party has added 4. 5 lakh new primary members in the party fold in Haryana during a month-long special membership campaign.
Talking to The Indian Express, Sihag said the party had set a target of enrolling 5,000 new primary members in each of the 90 Assembly constituencies in the state during the membership campaign which was scheduled from March 13 to April 13. โWe have received reports that this target has already been achieved,โ said the JJP leader, adding that the party leadership will take a call regarding the next phase of the special membership drive. The JJP has a target to add 10 lakh new members in 2022.
Before the drive for primary members, Sihag said, the JJP had added 45,000 active members in all 90 constituencies. The JJP leader said they have enrolled 500 active members in each of the constituencies.
Earlier, JJPโs national president Ajay Chautala had stated that the party will launch a state wide membership drive. โPartyโs leadership and workers will go door to door to tell people about the policies of JJP and join people with the party. On the basis of the hard work of the workers, the party is reaching new heights every day and Deputy CM Dushyant Chautala is fulfilling many election promises made by JJP to the people,โ Chautala had stated.
On the other hand, Dushyant Chautala, who is also JJPโs senior national vice president, had called upon the party officials and workers to promote the policies of the government and partyโs policies amongst public. | english |
# https://leetcode.com/problems/split-a-string-in-balanced-strings/
# Balanced strings are those that have an equal quantity of 'L' and 'R' characters.
# Given a balanced string s, split it in the maximum amount of balanced strings.
# Return the maximum amount of split balanced strings.
import pytest
class Solution:
def balancedStringSplit(self, s: str) -> int:
stack = []
temp = ""
count = 0
for i in s:
if len(stack) == 0 or stack[0] == i:
stack.append(i)
temp = i
else:
stack.remove(temp)
if len(stack) == 0:
count += 1
return count
@pytest.mark.parametrize(
("s", "expected"),
[
("LR", 1),
("RRLLLLRR", 2),
("RLRRLLRLRL", 4),
("LLRRLLRRLLLRRRRL", 4),
("RLLLLRRRLR", 3),
("LLLLRRRR", 1),
],
)
def test_basic(s: str, expected: int) -> None:
assert expected == Solution().balancedStringSplit(s)
| python |
Texas: Two parents remain jailed on federal drug charges after authorities allege they tried using their 19-month-old child to help smuggle methamphetamine from Mexico into the US.
According to a criminal complaint, Orlando Ramirez-Leal and Cynthia Uresti were crossing the Gateway International Bridge into Brownsville, Texas, on Wednesday when they were stopped by inspectors.
Officials say they found six packages hidden on Uresti's body as well as on the body of her child.
Authorities say the bundles contained a total of more than 7 pounds of meth.
The complaint states Ramirez-Leal told investigators the couple had planned to transport the illegal drugs to Houston.
Both Ramirez-Leal and Uresti are being held without bond.
Attorneys for both defendants did not immediately return calls seeking comment today.
(This story has not been edited by NDTV staff and is auto-generated from a syndicated feed. ) | english |
Joe Denly expresses disappointment: The English batsman was left out after playing only the first Test of the ongoing summer.
Having played 14 limited-over matches in 2009-2010, England batsman Joe Denly waited for eight years to play another match at the highest level.
What followed was the right-hand batsman adding 14 more white-ball appearances in front of his name. However, it must have been the 15 Test matches which would have given him more satisfaction for he hadnโt played any before.
Despite being Englandโs fourth-highest run-scorer since his Test debut, Denlyโs 827 runs at an average of 29.53 werenโt enough to convince the selectors to give him more chances especially with much younger guys in Dom Sibley and Zac Crawley doing comparatively well.
โYeah, thereโs been some blows. These things happen. I am a positive guy who tries not to let things get me down, having done that in the past and learnt from that. Itโs just the way things go unfortunately,โ Denly was quoted as saying by Standard Sport with respect to recent developments surrounding his Test career.
Disappointed and frustrated, as any player should be after facing being shown the door, Denly understands that it was a โfairโ decision. โAbsolutely gutted, disappointed. But it was a fair decision.
โI had opportunities to get big scores and looking back thatโs the most frustrating thing. I havenโt been able to capitalise and get three or four big hundreds and really make that No. 3 spot my own. I always felt comfortable, never out of my depth. Itโs frustration with myself,โ Denly said.
Denly, 34, was replaced by his 22-year old Kent teammate Crawley in the second Test against West Indies in Southampton last month. In addition to Crawley, Denly also wishes well for wicket-keeper batsman Sam Billings who replaced him in the ODI series against Ireland.
โWhen Zak [Crawley] was selected ahead of me, I was delighted for him. I sent him a message wishing him the best. He looked in fantastic form in the nets and in the Test, looked at ease. There were no grudges there. I hope he has a long Test career.
โLikewise with Bilbo [Sam Billings], who has had some tough luck with injury, I was delighted to see him do so well,โ Denly added.
After being left out from the Test squad, Denly was added to the ODI training group to prepare for Ireland ODIs. Englandโs highest run-scorer on the back of scoring 153 runs at an average of 76.50 and a strike rate of 84.06 against South Africa earlier this year, Denly was highly likely to bat at No. 5 against Ireland.
However, an injury on the eve of the match saw him missing the three-match series. With Billings scoring 132 runs in three innings at a strike rate of 99.24 including two unbeaten match-winning contributions, it would be interesting to see who makes the cut between him and Denly during Englandโs proposed ODI series against Australia next month.
| english |
From fake Drake to AI-generated Eminem tracks: Can musicians copyright style?
An AI-generated song that cloned Drake and The Weeknd's voices and mimicked their styles highlights new copyright issues borne from artificial intelligence's rapid development, a university lecturer told Fox News.
Whether artists can "protect the style of something via copyright is an issue that โฆ is gonna start happening as it relates to AI," Tyler Coleman, a University of Texas at Austin adjunct art lecturer specializing in AI, said.
The AI-generated song, "Heart On my Sleeve," serves as a great example of the issue, according to Coleman.
"It sounds remarkably like [Drake], but it's not his lyrics," the AI educator told Fox News. "It's not his song. "
Coleman, who's experimented with AI since about 2017 in his role as a gaming developer, said he believed the AI software that produced the song "was trained potentially" on Drake's voice.
"Everything about the labeling of it online says this was an AI song made using Drake's likeness," Coleman told Fox News.
The song was played millions of times across multiple platforms before Apple Music and Spotify removed it early last week, according to The New York Times.
On YouTube, the original version of the song shows a message stating "This video is no longer available due to a copyright claim by Universal Music Group. "
A video including another AI-generated song, this time mimicking rapper Eminem, also made waves online last week. A YouTube link to the video was still active Monday evening.
EVERYTHING YOU NEED TO KNOW ABOUT ARTIFICIAL INTELLIGENCE: WHAT IS IT USED FOR?
Coleman questioned whether "Heart on My Sleeve" itself could be copyrighted.
"This is a new song created," he told Fox News. "It is a very similar sounding voice that potentially could be mistaken as the voice of an artist. Can that be copyrighted? "
To watch the full interview, click here. | english |
{
"name": "Ebenholzbogen",
"description": "Ein Langbogen aus Ebenholz, dessen Material viel fester als bei anderen Bรถgen ist, was seine Durchschlagskraft deutlich erhรถht.",
"weapontype": "Bogen",
"rarity": "3",
"baseatk": 39,
"substat": "ANG",
"subvalue": "7.7",
"effectname": "Steinbrecher",
"effect": "Erhรถht den Vorrichtungen in Ruinen zugefรผgten Schaden um {0}.",
"r1": [
"40 %"
],
"r2": [
"50 %"
],
"r3": [
"60 %"
],
"r4": [
"70 %"
],
"r5": [
"80 %"
],
"weaponmaterialtype": ""
} | json |
Sindhu Tolani was almost down and out in Tollywood. Though Aithey did give her a good opening, the beautiful belle could not sustain the momentum.
But the success of Atanokkade gave her a new opening.
And now she is back with full vigor and vitality.
Sindhu, reflecting her raising career graph, got to replace Kamalini in Tammareddy film Bullet.
Sindhu Tolani is also acting opposite Navadeep in a film that is being directed by P Arun Prasad and produced by C C Reddy of Visu Consultancy.
Sindhu feels Bullet will give her more opportunities. Many feel that she deserves that.
After all, Sindhu is one actress who is both beautiful and talented. A rare combo, indeed.
Follow us on Google News and stay updated with the latest! | english |
For everyone planning on purchasing a Nintendo Wii next month, it seems like there is more good news coming our way. Thereโs been a rumor floating around that Nintendo of America President, Reggie Fils-Aime, told GameSpot,
There will be another big Wii revelation around launch time.
GamePro confirmed the rumor a few days ago, but no one has any idea what the Wii announcement will actually entail. Seeing as how Reggie stated that it would be a โbigโ revelation, it very well may be spec related. Or maybe it might be something small, like a microphone built into the Wiimote. Thereโs no date on when the announcement will come, but there is only a few weeks until launch.
| english |
Wankhede said the allegations of extortion against him in Ayan Khan case were baseless and that he had not been summoned by the authorities, but was in the national capital for a different purpose.
The Narcotics Control Bureauโs (NCB) Mumbai zone director Sameer Wankhede landed in Delhi on Monday evening amid allegations of extortion charges levelled against him and others in the drugs-on-cruise-case in which Bollywood superstar Shah Rukh Khanโs son Aryan is behind the bars since a few weeks now.
Wankhede said allegations against him were baseless and that he had not been summoned by the authorities, but was in the national capital for a different purpose.
"I have not been summoned. I've come here for a different purpose. Allegations against me are baseless," the top officer of the NCB was quoted as saying by news agency ANI.
The NCB has ordered a vigilance inquiry into the claims made by a witness in the case that an extortion bid of โน25 crore was made by some agency officials, including its Wankhede, and others for letting off accused Aryan.
The inquiry will be conducted by Gyaneshwar Singh, the NCB deputy director general (DDG) of the northern region based at its headquarters here. Singh is also the chief vigilance officer (CVO) of the federal anti-narcotics agency.
Earlier in the day, the federal anti-drug agency and Wankhede filed affidavits before a special court under the Narcotics Drugs and Psychotropic Substances (NDPS) Act, against the allegations of extortion attempts levelled against them.
In the affidavits, they urged the court to pass an order saying no court should take cognizance of the affidavit prepared by the independent witness, Prabhakar Sail. As per the NCB and its zonal director, the allegations made by Sail were only an attempt to create hurdles and scuttle the investigation into the case. However, the court disposed of the applications and refused to pass any blanket order. | english |
//========================================================================
//Copyright 2004-2008 Mort Bay Consulting Pty. Ltd.
//------------------------------------------------------------------------
//Licensed under the Apache License, Version 2.0 (the "License");
//you may not use this file except in compliance with the License.
//You may obtain a copy of the License at
//http://www.apache.org/licenses/LICENSE-2.0
//Unless required by applicable law or agreed to in writing, software
//distributed under the License is distributed on an "AS IS" BASIS,
//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//See the License for the specific language governing permissions and
//limitations under the License.
//========================================================================
/*
* Created on 9/01/2004
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package org.mortbay.jetty;
import java.util.Date;
import java.util.Enumeration;
import java.util.List;
import junit.framework.TestCase;
import org.mortbay.jetty.handler.ContextHandler;
import org.mortbay.jetty.handler.HandlerCollection;
/**
* @author gregw
*
*/
public class RFC2616Test extends TestCase
{
Server server=new Server();
LocalConnector connector=new LocalConnector();
/**
* Constructor for RFC2616Test.
*
* @param arg0
*/
public RFC2616Test(String arg0)
{
super(arg0);
server.setConnectors(new Connector[]
{ connector });
ContextHandler vcontext=new ContextHandler();
vcontext.setContextPath("/");
vcontext.setVirtualHosts(new String[]
{ "VirtualHost" });
vcontext.setHandler(new DumpHandler("Virtual Dump"));
ContextHandler context=new ContextHandler();
context.setContextPath("/");
context.setHandler(new DumpHandler());
HandlerCollection collection=new HandlerCollection();
collection.setHandlers(new Handler[]
{ vcontext, context });
server.setHandler(collection);
}
/*
* @see TestCase#setUp()
*/
protected void setUp() throws Exception
{
super.setUp();
server.start();
}
/*
* @see TestCase#tearDown()
*/
protected void tearDown() throws Exception
{
super.tearDown();
server.stop();
}
/* --------------------------------------------------------------- */
public void test3_3()
{
try
{
HttpFields fields=new HttpFields();
fields.put("D1","Sun, 6 Nov 1994 08:49:37 GMT");
fields.put("D2","Sunday, 6-Nov-94 08:49:37 GMT");
fields.put("D3","Sun Nov 6 08:49:37 1994");
Date d1=new Date(fields.getDateField("D1"));
Date d2=new Date(fields.getDateField("D2"));
Date d3=new Date(fields.getDateField("D3"));
assertEquals("3.3.1 RFC 822 RFC 850",d2,d1);
assertEquals("3.3.1 RFC 850 ANSI C",d3,d2);
fields.putDateField("Date",d1.getTime());
assertEquals("3.3.1 RFC 822 preferred","Sun, 06 Nov 1994 08:49:37 GMT",fields.getStringField("Date"));
}
catch (Exception e)
{
e.printStackTrace();
assertTrue(false);
}
}
/* --------------------------------------------------------------- */
public void test3_6()
{
String response=null;
try
{
int offset=0;
// Chunk last
offset=0;
connector.reopen();
response=connector.getResponses("GET /R1 HTTP/1.1\n"+"Host: localhost\n"+"Transfer-Encoding: chunked,identity\n"+"Content-Type: text/plain\n"
+"\015\012"+"5;\015\012"+"123\015\012\015\012"+"0;\015\012\015\012");
checkContains(response,offset,"HTTP/1.1 400 Bad","Chunked last");
// Chunked
offset=0;
connector.reopen();
response=connector.getResponses("GET /R1 HTTP/1.1\n"+"Host: localhost\n"+"Transfer-Encoding: chunked\n"+"Content-Type: text/plain\n"+"\n"+"2;\n"
+"12\n"+"3;\n"+"345\n"+"0;\n\n"+
"GET /R2 HTTP/1.1\n"+"Host: localhost\n"+"Transfer-Encoding: chunked\n"+"Content-Type: text/plain\n"+"\n"+"4;\n"+"6789\n"+"5;\n"+"abcde\n"
+"0;\n\n"+
"GET /R3 HTTP/1.1\n"+"Host: localhost\n"+"Connection: close\n"+"\n");
offset=checkContains(response,offset,"HTTP/1.1 200","3.6.1 Chunking");
offset=checkContains(response,offset,"12345","3.6.1 Chunking");
offset=checkContains(response,offset,"HTTP/1.1 200","3.6.1 Chunking");
offset=checkContains(response,offset,"6789abcde","3.6.1 Chunking");
offset=checkContains(response,offset,"/R3","3.6.1 Chunking");
// Chunked
offset=0;
connector.reopen();
response=connector.getResponses("POST /R1 HTTP/1.1\n"+"Host: localhost\n"+"Transfer-Encoding: chunked\n"+"Content-Type: text/plain\n"+"\n"+"3;\n"
+"fgh\n"+"3;\n"+"Ijk\n"+"0;\n\n"+
"POST /R2 HTTP/1.1\n"+"Host: localhost\n"+"Transfer-Encoding: chunked\n"+"Content-Type: text/plain\n"+"\n"+"4;\n"+"lmno\n"+"5;\n"+"Pqrst\n"
+"0;\n\n"+
"GET /R3 HTTP/1.1\n"+"Host: localhost\n"+"Connection: close\n"+"\n");
checkNotContained(response,"HTTP/1.1 100","3.6.1 Chunking");
offset=checkContains(response,offset,"HTTP/1.1 200","3.6.1 Chunking");
offset=checkContains(response,offset,"fghIjk","3.6.1 Chunking");
offset=checkContains(response,offset,"HTTP/1.1 200","3.6.1 Chunking");
offset=checkContains(response,offset,"lmnoPqrst","3.6.1 Chunking");
offset=checkContains(response,offset,"/R3","3.6.1 Chunking");
// Chunked and keep alive
offset=0;
connector.reopen();
response=connector.getResponses("GET /R1 HTTP/1.1\n"+"Host: localhost\n"+"Transfer-Encoding: chunked\n"+"Content-Type: text/plain\n"
+"Connection: keep-alive\n"+"\n"+"3;\n"+"123\n"+"3;\n"+"456\n"+"0;\n\n"+
"GET /R2 HTTP/1.1\n"+"Host: localhost\n"+"Connection: close\n"+"\n");
offset=checkContains(response,offset,"HTTP/1.1 200","3.6.1 Chunking")+10;
offset=checkContains(response,offset,"123456","3.6.1 Chunking");
offset=checkContains(response,offset,"/R2","3.6.1 Chunking")+10;
}
catch (Exception e)
{
e.printStackTrace();
assertTrue(false);
if (response!=null)
System.err.println(response);
}
}
/* --------------------------------------------------------------- */
public void test3_9()
{
try
{
HttpFields fields=new HttpFields();
fields.put("Q","bbb;q=0.5,aaa,ccc;q=0.002,d;q=0,e;q=0.0001,ddd;q=0.001,aa2,abb;q=0.7");
Enumeration qualities=fields.getValues("Q",", \t");
List list=HttpFields.qualityList(qualities);
assertEquals("Quality parameters","aaa",HttpFields.valueParameters(list.get(0).toString(),null));
assertEquals("Quality parameters","aa2",HttpFields.valueParameters(list.get(1).toString(),null));
assertEquals("Quality parameters","abb",HttpFields.valueParameters(list.get(2).toString(),null));
assertEquals("Quality parameters","bbb",HttpFields.valueParameters(list.get(3).toString(),null));
assertEquals("Quality parameters","ccc",HttpFields.valueParameters(list.get(4).toString(),null));
assertEquals("Quality parameters","ddd",HttpFields.valueParameters(list.get(5).toString(),null));
}
catch (Exception e)
{
e.printStackTrace();
assertTrue(false);
}
}
/* --------------------------------------------------------------- */
public void test4_4()
{
try
{
String response;
int offset=0;
connector.reopen();
// 2
// If _content length not used, second request will not be read.
offset=0;
connector.reopen();
response=connector.getResponses("GET /R1 HTTP/1.1\n"+"Host: localhost\n"+"Transfer-Encoding: identity\n"+"Content-Type: text/plain\n"
+"Content-Length: 5\n"+"\n"+"123\015\012"+
"GET /R2 HTTP/1.1\n"+"Host: localhost\n"+"Connection: close\n"+"\n");
offset=checkContains(response,offset,"HTTP/1.1 200 OK","2. identity")+10;
offset=checkContains(response,offset,"/R1","2. identity")+3;
offset=checkContains(response,offset,"HTTP/1.1 200 OK","2. identity")+10;
offset=checkContains(response,offset,"/R2","2. identity")+3;
// 3
// _content length is ignored, as chunking is used. If it is
// not ignored, the second request wont be seen.
offset=0;
connector.reopen();
response=connector.getResponses("GET /R1 HTTP/1.1\n"+"Host: localhost\n"+"Transfer-Encoding: chunked\n"+"Content-Type: text/plain\n"
+"Content-Length: 100\n"+"\n"+"3;\n"+"123\n"+"3;\n"+"456\n"+"0;\n"+"\n"+
"GET /R2 HTTP/1.1\n"+"Host: localhost\n"+"Connection: close\n"+"Content-Type: text/plain\n"+"Content-Length: 6\n"+"\n"+"123456");
offset=checkContains(response,offset,"HTTP/1.1 200 OK","3. ignore c-l")+1;
offset=checkContains(response,offset,"/R1","3. ignore c-l")+1;
offset=checkContains(response,offset,"123456","3. ignore c-l")+1;
offset=checkContains(response,offset,"HTTP/1.1 200 OK","3. ignore c-l")+1;
offset=checkContains(response,offset,"/R2","3. _content-length")+1;
offset=checkContains(response,offset,"123456","3. _content-length")+1;
// No _content length
assertTrue("Skip 411 checks as IE breaks this rule",true);
// offset=0; connector.reopen();
// response=connector.getResponses("GET /R2 HTTP/1.1\n"+
// "Host: localhost\n"+
// "Content-Type: text/plain\n"+
// "Connection: close\n"+
// "\n"+
// "123456");
// offset=checkContains(response,offset,
// "HTTP/1.1 411 ","411 length required")+10;
// offset=0; connector.reopen();
// response=connector.getResponses("GET /R2 HTTP/1.0\n"+
// "Content-Type: text/plain\n"+
// "\n"+
// "123456");
// offset=checkContains(response,offset,
// "HTTP/1.0 411 ","411 length required")+10;
}
catch (Exception e)
{
e.printStackTrace();
assertTrue(false);
}
}
/* --------------------------------------------------------------- */
public void test5_2() throws Exception
{
String response;
int offset=0;
connector.reopen();
// Default Host
offset=0;
connector.reopen();
response=connector.getResponses("GET /path/R1 HTTP/1.1\n"+"Host: localhost\n"+"\n");
offset=checkContains(response,offset,"HTTP/1.1 200","Default host")+1;
offset=checkContains(response,offset,"Dump HttpHandler","Default host")+1;
offset=checkContains(response,offset,"pathInfo=/path/R1","Default host")+1;
// Virtual Host
offset=0;
connector.reopen();
response=connector.getResponses("GET /path/R1 HTTP/1.1\n"+"Host: VirtualHost\n"+"\n");
offset=checkContains(response,offset,"HTTP/1.1 200","2. virtual host field")+1;
offset=checkContains(response,offset,"Virtual Dump","2. virtual host field")+1;
offset=checkContains(response,offset,"pathInfo=/path/R1","2. virtual host field")+1;
// Virtual Host case insensitive
offset=0;
connector.reopen();
response=connector.getResponses("GET /path/R1 HTTP/1.1\n"+"Host: ViRtUalhOst\n"+"\n");
offset=checkContains(response,offset,"HTTP/1.1 200","2. virtual host field")+1;
offset=checkContains(response,offset,"Virtual Dump","2. virtual host field")+1;
offset=checkContains(response,offset,"pathInfo=/path/R1","2. virtual host field")+1;
// Virtual Host
offset=0;
connector.reopen();
response=connector.getResponses("GET /path/R1 HTTP/1.1\n"+"\n");
offset=checkContains(response,offset,"HTTP/1.1 400","3. no host")+1;
}
/* --------------------------------------------------------------- */
public void test8_1()
{
try
{
String response;
int offset=0;
connector.reopen();
offset=0;
connector.reopen();
response=connector.getResponses("GET /R1 HTTP/1.1\n"+"Host: localhost\n"+"\n");
offset=checkContains(response,offset,"HTTP/1.1 200 OK\015\012","8.1.2 default")+10;
checkContains(response,offset,"Content-Length: ","8.1.2 default");
offset=0;
connector.reopen();
response=connector.getResponses("GET /R1 HTTP/1.1\n"+"Host: localhost\n"+"\n"+
"GET /R2 HTTP/1.1\n"+"Host: localhost\n"+"Connection: close\n"+"\n"+
"GET /R3 HTTP/1.1\n"+"Host: localhost\n"+"Connection: close\n"+"\n");
offset=checkContains(response,offset,"HTTP/1.1 200 OK\015\012","8.1.2 default")+1;
offset=checkContains(response,offset,"/R1","8.1.2 default")+1;
assertEquals("8.1.2.1 close",-1,response.indexOf("/R3"));
offset=checkContains(response,offset,"HTTP/1.1 200 OK\015\012","8.1.2.2 pipeline")+11;
offset=checkContains(response,offset,"Connection: close","8.1.2.2 pipeline")+1;
offset=checkContains(response,offset,"/R2","8.1.2.1 close")+3;
}
catch (Exception e)
{
e.printStackTrace();
assertTrue(false);
}
}
/* --------------------------------------------------------------- */
public void test8_2()
{
try
{
String response;
int offset=0;
connector.reopen();
// No Expect 100
offset=0;
connector.reopen();
response=connector.getResponses("GET /R1 HTTP/1.1\n"+
"Host: localhost\n"+
"Content-Type: text/plain\n"+
"Content-Length: 8\n"+
"\n",true);
assertTrue("8.2.3 no expect 100",response==null || response.length()==0);
response=connector.getResponses("AbCdEf\015\012");
offset=checkContains(response,offset,"HTTP/1.1 200","8.2.3 no expect 100")+1;
offset=checkContains(response,offset,"AbCdEf","8.2.3 no expect 100")+1;
// Expect Failure
offset=0;
connector.reopen();
response=connector.getResponses("GET /R1 HTTP/1.1\n"+"Host: localhost\n"+"Expect: unknown\n"+"Content-Type: text/plain\n"+"Content-Length: 8\n"
+"\n");
offset=checkContains(response,offset,"HTTP/1.1 417","8.2.3 expect failure")+1;
// Expect with body
offset=0;
connector.reopen();
response=connector.getResponses("GET /R1 HTTP/1.1\n"+"Host: localhost\n"+"Expect: 100-continue\n"+"Content-Type: text/plain\n"
+"Content-Length: 8\n"+"Connection: close\n"+"\n"+"123456\015\012");
checkNotContained(response,offset,"HTTP/1.1 100 ","8.2.3 expect 100");
offset=checkContains(response,offset,"HTTP/1.1 200 OK","8.2.3 expect with body")+1;
// Expect 100
offset=0;
connector.reopen();
response=connector.getResponses("GET /R1 HTTP/1.1\n"+
"Host: localhost\n"+
"Connection: close\n"+
"Expect: 100-continue\n"+
"Content-Type: text/plain\n"+
"Content-Length: 8\n"+
"\n",true);
offset=checkContains(response,offset,"HTTP/1.1 100 ","8.2.3 expect 100")+1;
checkNotContained(response,offset,"HTTP/1.1 200","8.2.3 expect 100");
response=connector.getResponses("654321\015\012");
offset=checkContains(response,offset,"HTTP/1.1 200","8.2.3 expect 100")+1;
offset=checkContains(response,offset,"654321","8.2.3 expect 100")+1;
}
catch (Exception e)
{
e.printStackTrace();
assertTrue(false);
}
finally
{
}
}
/* --------------------------------------------------------------- */
public void test9_2()
{
// TODO
/*
* try { TestListener listener = new TestListener(); String response;
* int offset=0; connector.reopen();
* // Default Host offset=0; connector.reopen();
* response=connector.getResponses("OPTIONS * HTTP/1.1\n"+ "Connection:
* close\n"+ "Host: localhost\n"+ "\n");
* offset=checkContains(response,offset, "HTTP/1.1 200","200")+1;
* offset=checkContains(response,offset, "Allow: GET, HEAD, POST, PUT,
* DELETE, MOVE, OPTIONS, TRACE","Allow")+1;
* } catch(Exception e) { e.printStackTrace(); assertTrue(false); }
*/
}
/* --------------------------------------------------------------- */
public void test9_4()
{
try
{
String get=connector.getResponses("GET /R1 HTTP/1.0\n"+"Host: localhost\n"+"\n");
checkContains(get,0,"HTTP/1.1 200","GET");
checkContains(get,0,"Content-Type: text/html","GET _content");
checkContains(get,0,"<html>","GET body");
connector.reopen();
String head=connector.getResponses("HEAD /R1 HTTP/1.0\n"+"Host: localhost\n"+"\n");
checkContains(head,0,"HTTP/1.1 200","HEAD");
checkContains(head,0,"Content-Type: text/html","HEAD _content");
assertEquals("HEAD no body",-1,head.indexOf("<html>"));
}
catch (Exception e)
{
e.printStackTrace();
assertTrue(false);
}
}
/* --------------------------------------------------------------- */
public void test9_8()
{
// TODO
/*
* try { TestListener listener = new TestListener(); String response;
* int offset=0; connector.reopen();
* // Default Host offset=0; connector.reopen();
* response=connector.getResponses("TRACE /path HTTP/1.1\n"+ "Host:
* localhost\n"+ "Connection: close\n"+ "\n");
* offset=checkContains(response,offset, "HTTP/1.1 200","200")+1;
* offset=checkContains(response,offset, "Content-Type: message/http",
* "message/http")+1; offset=checkContains(response,offset, "TRACE /path
* HTTP/1.1\r\n"+ "Host: localhost\r\n", "Request"); } catch(Exception
* e) { e.printStackTrace(); assertTrue(false); }
*/
}
/* --------------------------------------------------------------- */
public void test10_2_7()
{
// TODO
/*
*
* try { TestListener listener = new TestListener(); String response;
* int offset=0; connector.reopen();
* // check to see if corresponging GET w/o range would return // a)
* ETag // b) Content-Location // these same headers will be required
* for corresponding // sub range requests
*
* response=connector.getResponses("GET /" +
* TestRFC2616.testFiles[0].name + " HTTP/1.1\n"+ "Host: localhost\n"+
* "Connection: close\n"+ "\n");
*
* boolean noRangeHasContentLocation =
* (response.indexOf("\r\nContent-Location: ") != -1);
*
* // now try again for the same resource but this time WITH range
* header
*
* response=connector.getResponses("GET /" +
* TestRFC2616.testFiles[0].name + " HTTP/1.1\n"+ "Host: localhost\n"+
* "Connection: close\n"+ "Range: bytes=1-3\n"+ "\n");
*
* offset=0; connector.reopen(); offset=checkContains(response,offset,
* "HTTP/1.1 206 Partial Content\r\n", "1. proper 206 status code");
* offset=checkContains(response,offset, "Content-Type: text/plain", "2.
* _content type") + 2; offset=checkContains(response,offset,
* "Last-Modified: " + TestRFC2616.testFiles[0].modDate + "\r\n", "3.
* correct resource mod date");
* // if GET w/o range had Content-Location, then the corresponding //
* response for the a GET w/ range must also have that same header
*
* offset=checkContains(response,offset, "Content-Range: bytes 1-3/26",
* "4. _content range") + 2;
*
* if (noRangeHasContentLocation) {
* offset=checkContains(response,offset, "Content-Location: ", "5.
* Content-Location header as with 200"); } else { // no need to check
* for Conten-Location header in 206 response // spec does not require
* existence or absence if these want any // header for the get w/o
* range }
*
* String expectedData = TestRFC2616.testFiles[0].data.substring(1,
* 3+1); offset=checkContains(response,offset, expectedData, "6.
* subrange data: \"" + expectedData + "\""); } catch(Exception e) {
* e.printStackTrace(); assertTrue(false); }
*
*/
}
/* --------------------------------------------------------------- */
public void test10_3()
{
// TODO
/*
* try { TestListener listener = new TestListener(); String response;
* int offset=0; connector.reopen();
* // HTTP/1.0 offset=0; connector.reopen();
* response=connector.getResponses("GET /redirect HTTP/1.0\n"+
* "Connection: Keep-Alive\n"+ "\n" );
* offset=checkContains(response,offset, "HTTP/1.1 302","302")+1;
* checkContains(response,offset, "Location: /dump", "redirected");
* checkContains(response,offset, "Connection: close", "Connection:
* close");
*
* // HTTP/1.1 offset=0; connector.reopen();
* response=connector.getResponses("GET /redirect HTTP/1.1\n"+ "Host:
* localhost\n"+ "\n"+ "GET /redirect HTTP/1.1\n"+ "Host: localhost\n"+
* "Connection: close\n"+ "\n" ); offset=checkContains(response,offset,
* "HTTP/1.1 302","302")+1; checkContains(response,offset, "Location:
* /dump", "redirected"); checkContains(response,offset,
* "Transfer-Encoding: chunked", "Transfer-Encoding: chunked");
*
* offset=checkContains(response,offset, "HTTP/1.1 302","302")+1;
* checkContains(response,offset, "Location: /dump", "redirected");
* checkContains(response,offset, "Connection: close", "closed");
* // HTTP/1.0 _content offset=0; connector.reopen();
* response=connector.getResponses("GET /redirect/_content HTTP/1.0\n"+
* "Connection: Keep-Alive\n"+ "\n"+ "GET /redirect/_content
* HTTP/1.0\n"+ "\n" ); offset=checkContains(response,offset, "HTTP/1.1
* 302","302")+1; checkContains(response,offset, "Location: /dump",
* "redirected"); checkContains(response,offset, "Connection: close",
* "close no _content length");
* // HTTP/1.1 _content offset=0; connector.reopen();
* response=connector.getResponses("GET /redirect/_content HTTP/1.1\n"+
* "Host: localhost\n"+ "\n"+ "GET /redirect/_content HTTP/1.1\n"+
* "Host: localhost\n"+ "Connection: close\n"+ "\n" );
* offset=checkContains(response,offset, "HTTP/1.1 302","302")+1;
* checkContains(response,offset, "Location: /dump", "redirected");
* checkContains(response,offset, "Transfer-Encoding: chunked", "chunked
* _content length");
*
* offset=checkContains(response,offset, "HTTP/1.1 302","302")+1;
* checkContains(response,offset, "Location: /dump", "redirected");
* checkContains(response,offset, "Connection: close", "closed");
* } catch(Exception e) { e.printStackTrace(); assertTrue(false); }
*
*/
}
/* --------------------------------------------------------------- */
public void checkContentRange(LocalConnector listener, String tname, String path, String reqRanges, int expectedStatus, String expectedRange,
String expectedData)
{
try
{
String response;
int offset=0;
connector.reopen();
String byteRangeHeader="";
if (reqRanges!=null)
{
byteRangeHeader="Range: "+reqRanges+"\n";
}
response=connector.getResponses("GET /"+path+" HTTP/1.1\n"+"Host: localhost\n"+byteRangeHeader+"Connection: close\n"+"\n");
switch (expectedStatus)
{
case 200:
{
offset=checkContains(response,offset,"HTTP/1.1 200 OK\r\n",tname+".1. proper 200 OK status code");
break;
}
case 206:
{
offset=checkContains(response,offset,"HTTP/1.1 206 Partial Content\r\n",tname+".1. proper 206 Partial Content status code");
break;
}
case 416:
{
offset=checkContains(response,offset,"HTTP/1.1 416 Requested Range Not Satisfiable\r\n",tname
+".1. proper 416 Requested Range not Satisfiable status code");
break;
}
}
if (expectedRange!=null)
{
String expectedContentRange="Content-Range: bytes "+expectedRange+"\r\n";
offset=checkContains(response,offset,expectedContentRange,tname+".2. _content range "+expectedRange);
}
if (expectedStatus==200||expectedStatus==206)
{
offset=checkContains(response,offset,expectedData,tname+".3. subrange data: \""+expectedData+"\"");
}
}
catch (Exception e)
{
e.printStackTrace();
assertTrue(false);
}
}
public void test14_16()
{
// TODO
/*
* try { TestListener listener = new TestListener();
*
* int id = 0;
*
* // // calibrate with normal request (no ranges); if this doesnt //
* work, dont expect ranges to work either //
* connector.checkContentRange( t, Integer.toString(id++),
* TestRFC2616.testFiles[0].name, null, 200, null,
* TestRFC2616.testFiles[0].data );
*
* // // server should ignore all range headers which include // at
* least one syntactically invalid range // String [] totallyBadRanges = {
* "bytes=a-b", "bytes=-1-2", "bytes=-1-2,2-3", "bytes=-", "bytes=-1-",
* "bytes=a-b,-1-1-1", "doublehalfwords=1-2", };
*
* for (int i = 0; i < totallyBadRanges.length; i++) {
* connector.checkContentRange( t, "BadRange"+i,
* TestRFC2616.testFiles[0].name, totallyBadRanges[i], 416, null,
* TestRFC2616.testFiles[0].data ); }
*
* // // should test for combinations of good and syntactically //
* invalid ranges here, but I am not certain what the right // behavior
* is abymore // // a) Range: bytes=a-b,5-8 // // b) Range:
* bytes=a-b,bytes=5-8 // // c) Range: bytes=a-b // Range: bytes=5-8 //
*
* // // return data for valid ranges while ignoring unsatisfiable //
* ranges //
*
* connector.checkContentRange( t, "bytes=5-8",
* TestRFC2616.testFiles[0].name, "bytes=5-8", 206, "5-8/26",
* TestRFC2616.testFiles[0].data.substring(5,8+1) );
* // // server should not return a 416 if at least syntactically valid
* ranges // are is satisfiable // connector.checkContentRange( t,
* "bytes=5-8,50-60", TestRFC2616.testFiles[0].name, "bytes=5-8,50-60",
* 206, "5-8/26", TestRFC2616.testFiles[0].data.substring(5,8+1) );
* connector.checkContentRange( t, "bytes=50-60,5-8",
* TestRFC2616.testFiles[0].name, "bytes=50-60,5-8", 206, "5-8/26",
* TestRFC2616.testFiles[0].data.substring(5,8+1) );
* // 416 as none are satisfiable connector.checkContentRange( t,
* "bytes=50-60", TestRFC2616.testFiles[0].name, "bytes=50-60", 416,
* "*REMOVE_THIS/26", null );
*
* }
*
* catch(Exception e) { e.printStackTrace(); assertTrue(false); }
*/
}
/* --------------------------------------------------------------- */
public void test14_23()
{
try
{
String response;
int offset=0;
connector.reopen();
// HTTP/1.0 OK with no host
offset=0;
connector.reopen();
response=connector.getResponses("GET /R1 HTTP/1.0\n"+"\n");
offset=checkContains(response,offset,"HTTP/1.1 200","200")+1;
offset=0;
connector.reopen();
response=connector.getResponses("GET /R1 HTTP/1.1\n"+"\n");
offset=checkContains(response,offset,"HTTP/1.1 400","400")+1;
offset=0;
connector.reopen();
response=connector.getResponses("GET /R1 HTTP/1.1\n"+"Host: localhost\n"+"\n");
offset=checkContains(response,offset,"HTTP/1.1 200","200")+1;
offset=0;
connector.reopen();
response=connector.getResponses("GET /R1 HTTP/1.1\n"+"Host:\n"+"\n");
offset=checkContains(response,offset,"HTTP/1.1 200","200")+1;
}
catch (Exception e)
{
e.printStackTrace();
assertTrue(false);
}
}
/* --------------------------------------------------------------- */
public void test14_35()
{
// TODO
/*
* try { TestListener listener = new TestListener();
* // // test various valid range specs that have not been // tested
* yet //
*
* connector.checkContentRange( t, "bytes=0-2",
* TestRFC2616.testFiles[0].name, "bytes=0-2", 206, "0-2/26",
* TestRFC2616.testFiles[0].data.substring(0,2+1) );
*
* connector.checkContentRange( t, "bytes=23-",
* TestRFC2616.testFiles[0].name, "bytes=23-", 206, "23-25/26",
* TestRFC2616.testFiles[0].data.substring(23,25+1) );
*
* connector.checkContentRange( t, "bytes=23-42",
* TestRFC2616.testFiles[0].name, "bytes=23-42", 206, "23-25/26",
* TestRFC2616.testFiles[0].data.substring(23,25+1) );
*
* connector.checkContentRange( t, "bytes=-3",
* TestRFC2616.testFiles[0].name, "bytes=-3", 206, "23-25/26",
* TestRFC2616.testFiles[0].data.substring(23,25+1) );
*
* connector.checkContentRange( t, "bytes=23-23,-2",
* TestRFC2616.testFiles[0].name, "bytes=23-23,-2", 206, "23-23/26",
* TestRFC2616.testFiles[0].data.substring(23,23+1) );
*
* connector.checkContentRange( t, "bytes=-1,-2,-3",
* TestRFC2616.testFiles[0].name, "bytes=-1,-2,-3", 206, "25-25/26",
* TestRFC2616.testFiles[0].data.substring(25,25+1) );
* }
*
* catch(Exception e) { e.printStackTrace(); assertTrue(false); }
*/}
/* --------------------------------------------------------------- */
public void test14_39()
{
// TODO
/*
* try { TestListener listener = new TestListener(); String response;
* int offset=0; connector.reopen();
* // Gzip accepted offset=0; connector.reopen();
* response=connector.getResponses("GET /R1?gzip HTTP/1.1\n"+ "Host:
* localhost\n"+ "TE: gzip;q=0.5\n"+ "Connection: close\n"+ "\n");
* offset=checkContains(response,offset, "HTTP/1.1 200","TE: coding")+1;
* offset=checkContains(response,offset, "Transfer-Encoding: gzip","TE:
* coding")+1;
* // Gzip not accepted offset=0; connector.reopen();
* response=connector.getResponses("GET /R1?gzip HTTP/1.1\n"+ "Host:
* localhost\n"+ "TE: deflate\n"+ "Connection: close\n"+ "\n");
* offset=checkContains(response,offset, "HTTP/1.1 501","TE: coding not
* accepted")+1;
* } catch(Exception e) { e.printStackTrace(); assertTrue(false); }
*/
}
/* --------------------------------------------------------------- */
public void test19_6()
{
try
{
String response;
int offset=0;
connector.reopen();
offset=0;
connector.reopen();
response=connector.getResponses("GET /R1 HTTP/1.0\n"+"\n");
offset=checkContains(response,offset,"HTTP/1.1 200 OK\015\012","19.6.2 default close")+10;
checkNotContained(response,offset,"Connection: close","19.6.2 not assumed");
offset=0;
connector.reopen();
response=connector.getResponses("GET /R1 HTTP/1.0\n"+"Host: localhost\n"+"Connection: keep-alive\n"+"\n"+
"GET /R2 HTTP/1.0\n"+"Host: localhost\n"+"Connection: close\n"+"\n"+
"GET /R3 HTTP/1.0\n"+"Host: localhost\n"+"Connection: close\n"+"\n");
offset=checkContains(response,offset,"HTTP/1.1 200 OK\015\012","19.6.2 Keep-alive 1")+1;
offset=checkContains(response,offset,"Connection: keep-alive","19.6.2 Keep-alive 1")+1;
offset=checkContains(response,offset,"<html>","19.6.2 Keep-alive 1")+1;
offset=checkContains(response,offset,"/R1","19.6.2 Keep-alive 1")+1;
offset=checkContains(response,offset,"HTTP/1.1 200 OK\015\012","19.6.2 Keep-alive 2")+11;
offset=checkContains(response,offset,"Connection: close","19.6.2 Keep-alive close")+1;
offset=checkContains(response,offset,"/R2","19.6.2 Keep-alive close")+3;
assertEquals("19.6.2 closed",-1,response.indexOf("/R3"));
offset=0;
connector.reopen();
response=connector.getResponses("GET /R1 HTTP/1.0\n"+"Host: localhost\n"+"Connection: keep-alive\n"+"Content-Length: 10\n"+"\n"+"1234567890\n"+
"GET /RA HTTP/1.0\n"+"Host: localhost\n"+"Connection: keep-alive\n"+"Content-Length: 10\n"+"\n"+"ABCDEFGHIJ\n"+
"GET /R2 HTTP/1.0\n"+"Host: localhost\n"+"Connection: close\n"+"\n"+
"GET /R3 HTTP/1.0\n"+"Host: localhost\n"+"Connection: close\n"+"\n");
offset=checkContains(response,offset,"HTTP/1.1 200 OK\015\012","19.6.2 Keep-alive 1")+1;
offset=checkContains(response,offset,"Connection: keep-alive","19.6.2 Keep-alive 1")+1;
offset=checkContains(response,offset,"<html>","19.6.2 Keep-alive 1")+1;
offset=checkContains(response,offset,"1234567890","19.6.2 Keep-alive 1")+1;
offset=checkContains(response,offset,"HTTP/1.1 200 OK\015\012","19.6.2 Keep-alive 1")+1;
offset=checkContains(response,offset,"Connection: keep-alive","19.6.2 Keep-alive 1")+1;
offset=checkContains(response,offset,"<html>","19.6.2 Keep-alive 1")+1;
offset=checkContains(response,offset,"ABCDEFGHIJ","19.6.2 Keep-alive 1")+1;
offset=checkContains(response,offset,"HTTP/1.1 200 OK\015\012","19.6.2 Keep-alive 2")+11;
offset=checkContains(response,offset,"Connection: close","19.6.2 Keep-alive close")+1;
offset=checkContains(response,offset,"/R2","19.6.2 Keep-alive close")+3;
assertEquals("19.6.2 closed",-1,response.indexOf("/R3"));
}
catch (Exception e)
{
e.printStackTrace();
assertTrue(false);
}
}
private int checkContains(String s, int offset, String c, String test)
{
int o=s.indexOf(c,offset);
if (o<offset)
{
System.err.println("FAILED: "+test);
System.err.println("'"+c+"' not in:");
System.err.println(s.substring(offset));
System.err.flush();
System.out.println("--\n"+s);
System.out.flush();
assertTrue(test,false);
}
return o;
}
private void checkNotContained(String s, int offset, String c, String test)
{
int o=s.indexOf(c,offset);
assertTrue(test,o<offset);
}
private void checkNotContained(String s, String c, String test)
{
checkNotContained(s,0,c,test);
}
}
| java |
<gh_stars>1-10
import com.jogamp.opengl.GLCapabilities;
import com.jogamp.opengl.GLProfile;
import com.jogamp.opengl.awt.GLCanvas;
import com.jogamp.opengl.util.FPSAnimator;
import javax.swing.*;
public class Main {
public static void main(String[] args) {
final GLProfile profile = GLProfile.get(GLProfile.GL2);
GLCapabilities capabilities = new GLCapabilities(profile);
final GLCanvas glcanvas = new GLCanvas(capabilities);
Floor floor = new Floor();
Ski ski = new Ski();
glcanvas.addGLEventListener(floor);
glcanvas.addGLEventListener(ski);
glcanvas.setSize(800, 800);
final JFrame frame = new JFrame ("Ski-Slope");
frame.getContentPane().add(glcanvas);
frame.setSize(frame.getContentPane().getPreferredSize());
frame.setVisible(true);
final FPSAnimator animator = new FPSAnimator(glcanvas, 300,true);
animator.start();
}
}
| java |
<filename>node_modules/.cache/babel-loader/8ff25e0c583cd39ea12c4c60d061d38f.json
{"ast":null,"code":"var $ = require('../internals/export');\n\nvar parseInt = require('../internals/number-parse-int'); // `Number.parseInt` method\n// https://tc39.es/ecma262/#sec-number.parseint\n\n\n$({\n target: 'Number',\n stat: true,\n forced: Number.parseInt != parseInt\n}, {\n parseInt: parseInt\n});","map":{"version":3,"sources":["/Users/mashrurhossainkhan/Desktop/ famouscar/famousefrontend/node_modules/core-js/modules/es.number.parse-int.js"],"names":["$","require","parseInt","target","stat","forced","Number"],"mappings":"AAAA,IAAIA,CAAC,GAAGC,OAAO,CAAC,qBAAD,CAAf;;AACA,IAAIC,QAAQ,GAAGD,OAAO,CAAC,+BAAD,CAAtB,C,CAEA;AACA;;;AACAD,CAAC,CAAC;AAAEG,EAAAA,MAAM,EAAE,QAAV;AAAoBC,EAAAA,IAAI,EAAE,IAA1B;AAAgCC,EAAAA,MAAM,EAAEC,MAAM,CAACJ,QAAP,IAAmBA;AAA3D,CAAD,EAAwE;AACvEA,EAAAA,QAAQ,EAAEA;AAD6D,CAAxE,CAAD","sourcesContent":["var $ = require('../internals/export');\nvar parseInt = require('../internals/number-parse-int');\n\n// `Number.parseInt` method\n// https://tc39.es/ecma262/#sec-number.parseint\n$({ target: 'Number', stat: true, forced: Number.parseInt != parseInt }, {\n parseInt: parseInt\n});\n"]},"metadata":{},"sourceType":"script"} | json |
Daffodil International University Forum contains information about Open Text material, which is only intended for the significant learning purposes of the university students, faculty, other members, and the knowledge seekers of the entire world and is hoped that the offerings will aide in the distribution of reliable information and data relating to the many areas of knowledge.
by Mizanur Rahman (GED)
เฆเงเฆจเง เฆจเฆฟเฆจ เฆชเฆพ เฆซเงเฆฒเฆพเฆฐ เฆเฆพเฆฐเฆจ!
เฆเงเฆจเง เฆจเฆฟเฆจ เฆฆเงเฆฐเงเฆค เฆเฆพเฆเฆช เฆถเงเฆเฆพเฆฐ เฆเงเฆถเฆฒ..
เฆเงเฆจเง เฆจเฆฟเฆจ เฆเฆพเฆฒเงเฆเฆฟเฆฐเฆพเฆฐ เฆเฆถเงเฆเฆฐเงเฆฏเฆธเฆฌ เฆเฆทเฆงเฆฟเฆเงเฆฃ!
Hot Topic (More than 15 replies)
Very Hot Topic (More than 25 replies)
| english |
Apple may be forced to ditch its Lightning port connector on future iPhones if new legislation being proposed by the European Commission comes into force.
A source speaking to Reuters has said the European Union wants to introduce a universal charging standard for smartphones to help with consumer confusion and cut down on e-waste.
This has yet to be confirmed, but the source says that the EU executive are in the process of drafting the legislation and that it's expected to be introduced during September 2021.
If this goes ahead it will mean if Apple wants to sell its smartphones in Europe it will have to adhere to this law and use a similar charging technology to most Android phones.
There's no guarantee the EU will choose USB-C as the standard charging tech, but previously it has looked toward the technology as the norm for future smartphones, as it's so common on modern Android handsets.
The fact this will be introduced in September 2021 means it's very unlikely to affect the iPhone 13, which we currently expect to debut on September 14 alongside three other phones and an Apple Watch 7.
It could be introduced before the iPhone 14 though, so it may be something Apple has to follow for its 2022 models. Exactly when this will take effect is unclear, so we'll have to wait and see what happens from the EU's perspective.
There is also a chance this won't affect any iPhone model, especially if the company decides to introduce portless models in the next few years.
Analysis: will Apple go portless first?
Rumors are abound that Apple is experimenting with the idea of a portless smartphone. It was one of the first manufacturers to drop the headphone jack from its smartphones, so could Apple be the first to drop the charging port too?
If it were to do this, you'd instead be charging your smartphone through wireless charging. With the introduction of MagSafe wireless charging on the iPhone 12 series, this may seem like a priority for Apple's future smartphones.
It would be a big jump for Apple to make in the near future, as wireless charging technology is still not the priority method of charging smartphones for most people.
One rumor at the end of 2020 did suggest Apple will be experimenting with this on one model of the iPhone 13 series, but that was just one source and it doesn't seem likely it'll be happening anymore.
This would be one way for Apple to avoid switching to USB-C, but it seems like this EU law is coming a touch earlier than the company may have hoped.
Get the hottest deals available in your inbox plus news, reviews, opinion, analysis, deals and more from the TechRadar team.
James is Managing Editor for Android Police. Previously, he was Senior Phones Editor for TechRadar, and he has covered smartphones and the mobile space for the best part of a decade bringing you news on all the big announcements from top manufacturers making mobile phones and other portable gadgets. James is often testing out and reviewing the latest and greatest mobile phones, smartwatches, tablets, virtual reality headsets, fitness trackers and more. He once fell over.
| english |
<filename>node_modules/@ant-design/pro-provider/es/index.js
import "antd/es/config-provider/style";
import _ConfigProvider from "antd/es/config-provider";
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
import _createForOfIteratorHelper from "@babel/runtime/helpers/esm/createForOfIteratorHelper";
import React, { useContext, useEffect } from 'react';
import { useSWRConfig, SWRConfig } from 'swr';
import zh_CN from "antd/es/locale/zh_CN";
import arEG from './locale/ar_EG';
import zhCN from './locale/zh_CN';
import enUS from './locale/en_US';
import enGB from './locale/en_GB';
import viVN from './locale/vi_VN';
import itIT from './locale/it_IT';
import esES from './locale/es_ES';
import jaJP from './locale/ja_JP';
import ruRU from './locale/ru_RU';
import srRS from './locale/sr_RS';
import msMY from './locale/ms_MY';
import zhTW from './locale/zh_TW';
import frFR from './locale/fr_FR';
import ptBR from './locale/pt_BR';
import koKR from './locale/ko_KR';
import idID from './locale/id_ID';
import deDE from './locale/de_DE';
import faIR from './locale/fa_IR';
import trTR from './locale/tr_TR';
import plPL from './locale/pl_PL';
function get(source, path, defaultValue) {
// a[3].b -> a.3.b
var paths = path.replace(/\[(\d+)\]/g, '.$1').split('.');
var result = source;
var message = defaultValue; // eslint-disable-next-line no-restricted-syntax
var _iterator = _createForOfIteratorHelper(paths),
_step;
try {
for (_iterator.s(); !(_step = _iterator.n()).done;) {
var p = _step.value;
message = Object(result)[p];
result = Object(result)[p];
if (message === undefined) {
return defaultValue;
}
}
} catch (err) {
_iterator.e(err);
} finally {
_iterator.f();
}
return message;
}
/**
* ๅๅปบไธไธชๆไฝๅฝๆฐ
*
* @param locale
* @param localeMap
*/
var createIntl = function createIntl(locale, localeMap) {
return {
getMessage: function getMessage(id, defaultMessage) {
return get(localeMap, id, defaultMessage) || defaultMessage;
},
locale: locale
};
};
var arEGIntl = createIntl('ar_EG', arEG);
var zhCNIntl = createIntl('zh_CN', zhCN);
var enUSIntl = createIntl('en_US', enUS);
var enGBIntl = createIntl('en_GB', enGB);
var viVNIntl = createIntl('vi_VN', viVN);
var itITIntl = createIntl('it_IT', itIT);
var jaJPIntl = createIntl('ja_JP', jaJP);
var esESIntl = createIntl('es_ES', esES);
var ruRUIntl = createIntl('ru_RU', ruRU);
var srRSIntl = createIntl('sr_RS', srRS);
var msMYIntl = createIntl('ms_MY', msMY);
var zhTWIntl = createIntl('zh_TW', zhTW);
var frFRIntl = createIntl('fr_FR', frFR);
var ptBRIntl = createIntl('pt_BR', ptBR);
var koKRIntl = createIntl('ko_KR', koKR);
var idIDIntl = createIntl('id_ID', idID);
var deDEIntl = createIntl('de_DE', deDE);
var faIRIntl = createIntl('fa_IR', faIR);
var trTRIntl = createIntl('tr_TR', trTR);
var plPLIntl = createIntl('pl_PL', plPL);
var intlMap = {
'ar-EG': arEGIntl,
'zh-CN': zhCNIntl,
'en-US': enUSIntl,
'en-GB': enGBIntl,
'vi-VN': viVNIntl,
'it-IT': itITIntl,
'ja-JP': jaJPIntl,
'es-ES': esESIntl,
'ru-RU': ruRUIntl,
'sr-RS': srRSIntl,
'ms-MY': msMYIntl,
'zh-TW': zhTWIntl,
'fr-FR': frFRIntl,
'pt-BR': ptBRIntl,
'ko-KR': koKRIntl,
'id-ID': idIDIntl,
'de-DE': deDEIntl,
'fa-IR': faIRIntl,
'tr-TR': trTRIntl,
'pl-PL': plPLIntl
};
var intlMapKeys = Object.keys(intlMap);
export { arEGIntl, enUSIntl, enGBIntl, zhCNIntl, viVNIntl, itITIntl, jaJPIntl, esESIntl, ruRUIntl, srRSIntl, msMYIntl, zhTWIntl, frFRIntl, ptBRIntl, koKRIntl, idIDIntl, deDEIntl, faIRIntl, trTRIntl, plPLIntl, intlMap, intlMapKeys };
var ConfigContext = /*#__PURE__*/React.createContext({
intl: _objectSpread(_objectSpread({}, zhCNIntl), {}, {
locale: 'default'
}),
valueTypeMap: {}
});
var ConfigConsumer = ConfigContext.Consumer,
ConfigProvider = ConfigContext.Provider;
/**
* ๆ นๆฎ antd ็ key ๆฅๆพๅฐ็ locale ๆไปถ็ key
*
* @param localeKey
*/
var findIntlKeyByAntdLocaleKey = function findIntlKeyByAntdLocaleKey(localeKey) {
if (!localeKey) {
return 'zh-CN';
}
var localeName = localeKey.toLocaleLowerCase();
return intlMapKeys.find(function (intlKey) {
var LowerCaseKey = intlKey.toLocaleLowerCase();
return LowerCaseKey.includes(localeName);
});
};
/**
* ็ปไปถ่งฃ้คๆ่ฝฝๅๆธ
็ฉบไธไธ cache
*
* @returns
*/
var CacheClean = function CacheClean() {
var _useSWRConfig = useSWRConfig(),
cache = _useSWRConfig.cache;
useEffect(function () {
return function () {
// is a map
// @ts-ignore
cache.clear();
}; // eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
return null;
};
/**
* ๅฆๆๆฒกๆ้
็ฝฎ locale๏ผ่ฟ้็ปไปถไผๆ นๆฎ antd ็ key ๆฅ่ชๅจ้ๆฉ
*
* @param param0
*/
var ConfigProviderWrap = function ConfigProviderWrap(_ref) {
var children = _ref.children,
_ref$autoClearCache = _ref.autoClearCache,
autoClearCache = _ref$autoClearCache === void 0 ? false : _ref$autoClearCache;
var _useContext = useContext(_ConfigProvider.ConfigContext),
locale = _useContext.locale; // ๅฆๆ locale ไธๅญๅจ่ชๅจๆณจๅ
ฅ็ AntdConfigProvider
var Provider = locale === undefined ? _ConfigProvider : React.Fragment;
var configProviderDom = /*#__PURE__*/React.createElement(ConfigConsumer, null, function (value) {
var _value$intl;
var localeName = locale === null || locale === void 0 ? void 0 : locale.locale;
var key = findIntlKeyByAntdLocaleKey(localeName); // antd ็ key ๅญๅจ็ๆถๅไปฅ antd ็ไธบไธป
var intl = localeName && ((_value$intl = value.intl) === null || _value$intl === void 0 ? void 0 : _value$intl.locale) === 'default' ? intlMap[key] : value.intl || intlMap[key]; // ่ชๅจๆณจๅ
ฅ antd ็้
็ฝฎ
var configProvider = locale === undefined ? {
locale: zh_CN
} : {};
return /*#__PURE__*/React.createElement(Provider, configProvider, /*#__PURE__*/React.createElement(ConfigProvider, {
value: _objectSpread(_objectSpread({}, value), {}, {
intl: intl || zhCNIntl
})
}, autoClearCache && /*#__PURE__*/React.createElement(CacheClean, null), children));
});
if (!autoClearCache) return configProviderDom;
return /*#__PURE__*/React.createElement(SWRConfig, {
value: {
provider: function provider() {
return new Map();
}
}
}, configProviderDom);
};
export { ConfigConsumer, ConfigProvider, ConfigProviderWrap, createIntl };
export function useIntl() {
var context = useContext(ConfigContext);
return context.intl || zhCNIntl;
}
export default ConfigContext; | javascript |
"""
A simple webhook event handler for Sendgrid
"""
import os
import json
import flask
from flask import request, jsonify
import flask_sqlalchemy
from sqlalchemy.ext.hybrid import hybrid_property
app = flask.Flask(__name__)
app.config['BASE_URL'] = os.environ['BASE_URL']
app.config['SQLALCHEMY_DATABASE_URI'] = os.environ['SQLALCHEMY_DATABASE_URI']
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
# username/pass to POST
post_user, post_pass = os.environ['POST_USERNAME'], os.environ['POST_PASSWORD']
db = flask_sqlalchemy.SQLAlchemy()
db.init_app(app)
# Based on
# https://sendgrid.com/docs/for-developers/tracking-events/event/#event-objects
# These are other rarer(?) possibilities:
# asm_group_id, unique_args, marketing_campaign_id, marketing_campaign_name, pool
class Event(db.Model):
email = db.Column(db.Text)
timestamp = db.Column(db.Integer) # DateTime)
event = db.Column(db.Text)
smtp_id = db.Column(db.Text) # sg key is 'smtp-id'
useragent = db.Column(db.Text)
ip = db.Column(db.Text)
sg_event_id = db.Column(db.String(100), primary_key=True)
sg_message_id = db.Column(db.Text)
reason = db.Column(db.Text)
status = db.Column(db.Text)
response = db.Column(db.Text)
tls = db.Column(db.Text)
url = db.Column(db.Text)
urloffset = db.Column(db.Text)
attempt = db.Column(db.Text)
category = db.Column(db.Text)
type_ = db.Column(db.Text)
_other = db.Column('other', db.Text, default='[]')
@hybrid_property
def other(self):
return json.loads(self._other)
@other.setter
def other(self, lst):
self._other = json.dumps(lst)
event_keys = [k.strip('_')
for k in flask_sqlalchemy.inspect(Event).columns.keys()
if not k.startswith('_')]
@app.route('/', methods=['POST'])
def home():
if request.authorization["username"] != post_user or \
request.authorization["password"] != post_pass:
return jsonify({"message": "Unauthorized"}), 401
# No data, just return
if not request.json:
return ""
for item in request.json:
# fix name mangling
if 'smtp-id' in item.keys():
item['smtp_id'] = item.pop('smtp-id')
# collect keys not in model
other = {}
for k in list(item.keys()):
if k not in event_keys:
other[k] = str(item.pop(k))
obj = Event(**item)
obj.other = other
db.session.merge(obj)
db.session.commit()
return ""
@app.cli.command("initdb")
def init_db():
db.create_all()
db.session.commit()
return
if __name__ == "__main__":
app.run(debug=True, threaded=True, use_reloader=True)
| python |
<HTML><HEAD>
<TITLE>Review for American Outlaws (2001)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0244000">American Outlaws (2001)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Max+Messier"><NAME></A></H3><HR WIDTH="40%" SIZE="4">
<PRE>AMERICAN OUTLAWS
A film review by <NAME>
Copyright 2001 filmcritic.com</PRE>
<P>Not so long ago, men by the names of Peckinpah, Ford, Leone, and
Eastwood made westerns. Real westerns. These were some of the best
films of the twentieth century.</P>
<P>Those days are gone. Now we have crap like Wild Wild West to pass for
the western. And that record is not improved with the unbearable tale
of American Outlaws.</P>
<P>Outlaws is yet another re-telling of the Jesse James legend, courtesy of
B-movie king <NAME> (producer of such classics as Wrongfully
Accused and Chill Factor). Delayed since the spring, this version stars
the Irish hunka hunka burning love <NAME> (the best part of
Schumacher's Tigerland) as the bad-ass <NAME>. Alas, any sense of
his character has been left on the ranch, leaving us with only cute
chicks like Ali Larter (minus the whipped cream) to watch.</P>
<P>The spin this time around: Fresh from serving as Southern militiamen in
the Civil War, <NAME> (Farrell), his brother Frank (<NAME>),
and his pal <NAME> (<NAME>) lay down their arms and head home
to Missouri to tend the family farms after the war has ended. But
trouble is brewing in their small town of Liberty when evil railroad
baron <NAME>ains (<NAME>) and his cronies <NAME> (Terry
O'Quinn) and <NAME> (<NAME>) demand the boys turn over
their lands to the railroads. The Jameses and the Youngers then join
forces to fight the railroad -- by robbing banks up and down Missouri,
thus cutting off the railroad's financial surplus and playing <NAME>
to the local people.</P>
<P>Along the way, the boys squabble over who's the cutest of the gang,
who's the most popular cowboy in the gang, and who ought to go on MTV's
Total Request Live. They rob numerous banks with identical interiors,
always with the kindest of hearts, strutting in their grungy dusters as
Moby songs play in the background. The witty banter they share could be
plastered within a Hallmark card.</P>
<P>The biggest disappointment here lies in the acting of <NAME>.
After a great job in Tigerland, Farrell walks through this role easier
then Nicolas Cage in Gone in 60 Seconds. And his American accent rivals
<NAME>'s Irish accent in The Jackal. Combined with feeling like
Bonanza: The Teen Years, this homogenized production (toned down to get
the ever-popular PG-13 rating) gives us an invincible <NAME> that
quickly grows tiresome and boring. The unbearable villains courtesy of
<NAME> and <NAME> spend the entire film proclaiming that
everyone should be hanged, sucking out any energy left in the film.</P>
<P>Not to mention: The real story of <NAME> and his gang bears no
resemblance to the plot of American Outlaws. Instead, the movie is full
of old, outrageous tales about the Wild West -- tales which went out of
style in 5-cent magazines about a century ago.</P>
<PRE>RATING: *1/2</PRE>
<PRE>|------------------------------|
\ ***** Perfection \
\ **** Good, memorable film \
\ *** Average, hits and misses \
\ ** Sub-par on many levels \
\ * Unquestionably awful \
|------------------------------|</PRE>
<PRE>MPAA Rating: PG-13</PRE>
<P>Director: <NAME>
Producer: <NAME>, <NAME>
Writer: <NAME>, <NAME>
Starring: <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME></P>
<PRE><A HREF="http://www.americanoutlaws.com">http://www.americanoutlaws.com</A></PRE>
<P>---
<A HREF="http://www.amazon.com/exec/obidos/redirect?tag=filmcriticcom&path=subst/video/sellers/amazon-top-100-dvd.html">http://www.amazon.com/exec/obidos/redirect?tag=filmcriticcom&path=subst/video/sellers/amazon-top-100-dvd.html</A>
Movie Fiends: Check out Amazon.com's Top 100 Hot DVDs!</P>
<P>Visit filmcritic.com on the Web at <A HREF="http://www.filmcritic.com">http://www.filmcritic.com</A></P>
<PRE>==========
X-RAMR-ID: 29234
X-Language: en
X-RT-ReviewID: 244266
X-RT-TitleID: 1109343
X-RT-SourceID: 178
X-RT-AuthorID: 1198
X-RT-RatingText: 1.5/5</PRE>
<HR><P CLASS=flush><SMALL>The review above was posted to the
<A HREF="news:rec.arts.movies.reviews">rec.arts.movies.reviews</A> newsgroup (<A HREF="news:de.rec.film.kritiken">de.rec.film.kritiken</A> for German reviews).<BR>
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.<BR>
Please direct comments/criticisms of the review to relevant newsgroups.<BR>
Broken URLs inthe reviews are the responsibility of the author.<BR>
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
</SMALL></P>
<P ALIGN=CENTER>Related links: <A HREF="/Reviews/">index of all rec.arts.movies.reviews reviews</A></P>
</P></BODY></HTML>
| html |
The president of South Korea pardoned Lee Jae-yong, the de facto head of Samsung, on Friday for crimes including bribery, giving him more freedom to run the smartphone and semiconductor behemoth.
Lee Jae-yong, also known as Jay Y. Lee in the West, is a South Korean business magnate and the vice chairman of Samsung Electronics. He is the only son of Hong Ra-hee and Lee Kun-hee.
Despite not holding the title of chairman, Jae-yong serves as the de facto leader of the Samsung group as vice chairman of Samsung Electronics.
Jae-yong was born in Seoul, South Korea. He went to Kyungbock High School. He graduated from Seoul National University with a B. A. in East Asian history and Keio University with an M. B. A. He spent about five years at Harvard Business School pursuing a Doctor of Business Administration degree, but he did not graduate.
Jae-yong was employed by Samsung in 1991. He started out in management as the Vice President of Strategic Planning before being named the โChief Customer Officer,โ a position created specifically for Jae-yong.
When his father Kun-hee resigned as Chairman due to tax evasion, his chances for future company leadership were reduced.
However, after Jae-yong joined Samsung Electronics as the companyโs COO in December 2009, his chances of succeeding him were revived. His role as vice chairman of Samsung began in December 2012.
His ownership of 11% of Samsung SDS makes him one of the major shareholders in Samsungโs financial services subsidiary.
The South Korean prosecutorโs office charged Jae-yong with bribery, embezzlement, and perjury in January 2017, and he was arrested on February 16, 2017. Jae-yong was sentenced to 5 years in prison on August 25, 2017, after being found guilty of corruption.
On February 5, 2018, the appeals court suspended his sentence and reduced it to 2. 5 years, allowing him to be released.
That arrest warrant issued in January 2017 by the South Korean prosecutorโs office, which resulted in his subsequent arrest in mid-February of that same year, first brought to light his involvement in a bribery act with the then-South Korean President Park Geun-hye.
Jae-yongโs five-year sentence for bribing former president Park Geun-hye was suspended by a South Korean court on February 5, 2018, allowing him to be released from custody. A high court sentenced him to two years and six months in prison on January 18, 2021, and Jae-yong was then sent to Seoul Detention Center.
Jae-yong was identified by The ICJJ in the Pandora Paper Leak on October 4, 2021. He received a presidential pardon from President Yoon Suk-yeol on August 12, 2022.
The pardon will become official on August 15, 2022.
Prior to the nationโs Liberation Day, which commemorates the liberation of Korea from Japanese imperial rule in 1945, he was granted a pardon. | english |
<filename>geography/zipcodes/all/30730.geo.json<gh_stars>10-100
{"geometry": {"type": "Point", "coordinates": [-85.4, 34.4]}, "type": "Feature", "id": "30730", "properties": {"other_cities": "", "city": "Lyerly", "state": "GA", "county": "Chattooga County"}} | json |
With only one arrest in the case so far, the Pimpri Chinchwad police have formed a Special Investigation Team (SIT) to probe the hoarding collapse which killed five persons and injured three others in Kiwale on April 17.
In the wake of the incident, the police earlier registered a suo motu case of culpable homicide and booked the owner of the site, the contractor who erected the hoarding, the person who had rented it and the firm that was advertising on it, officials said. Officers have till now arrested Namdeo Barku Mhasudge, who owns the site, while the others remain on the run.
Besides Mhasudge, the others booked include Datta Gulab Taras, the contractor who constructed the structure and Mahesh Tanaji Gade, who rented the hoarding.
Asked whether the company that was advertising on the hoarding has been identified, DCP Dole said, โWe are currently searching for Gade who had rented the hoarding. After his arrest, we will get the exact details of his transaction with the building and construction company that was using the hoarding for its advertisement. โ Officials said that the SIT comprises Inspector Shivaji Gaware of Ravet police station and Inspector Sanosh Patil from Wakad police station, their supporting staff and some police officials from Dehu Road police station.
Five people, including four women, were killed and three more seriously injured after the steel structure of the hoarding collapsed next to the service road of the Katraj Dehu Road Bypass in the Kiwale area on Monday evening. The incident had taken place around 5. 30 pm on the service road of the bypass of the Mumbai-Bengaluru highway. The probe has revealed that the hoarding was illegally constructed. | english |
<filename>data/scraped_data/coreNLP_output_2015_guardian/science.2015.jul.28.french.archaeologist.finds.tooth.dating.560000.years.tautavel.txt.json<gh_stars>1-10
version https://git-lfs.github.com/spec/v1
oid sha256:aa2cee6e5f9b38f5a378200d0cd33e0af4b1cf65078caa2820efa271848c2e28
size 497146
| json |
---
name: Custom issue template
about: Do you have a question related to the project? Use this template.
title: ''
labels: ''
assignees: ''
---
### Describe your question
A clear and concise description of what you want to know.
### Which Blazor project type is your question related to?
<!-- Remove the items which don't apply from the following list -->
- Client-Side
- Server-Side | markdown |
US President Donald Trump has distorted remarks by his Iranian counterpart, Hassan Rouhani, regarding Tehranโs uranium enrichment plans in reciprocation of Washingtonโs unilateral exit from a 2015 nuclear deal and the other partiesโ failure to keep their side of the accord.
According to Press TV, on Wednesday, Rouhani said Iran would surpass the limit placed by the Joint Comprehensive Plan of Action (JCPOA) on the level of purity of the uranium it produces when the July 7 deadline set by Tehran for the remaining deal partners expires.
The US president pulled the US out of the JCPOA last May, calling it the โworst deal ever negotiated,โ leaving the fate of the landmark diplomatic achievement in doubt.
Washington then unleashed a campaign of โmaximum pressureโ on Iran in an attempt to force Tehran into negotiating a โnew deal,โ which would cover the Islamic Republicโs conventional missile activities and its counter-terrorism role in the region.
Iran has repeatedly stressed that it would not renegotiate the deal with the US, urging Washington to return to the nuclear agreement, which has been endorsed by the UN Security Council.
Iran has just issued a New Warning. Rouhani says that they will Enrich Uranium to โany amount we wantโ if there is no new Nuclear Deal. Be careful with the threats, Iran. They can come back to bite you like nobody has been bitten before!
Tensions have been running high between Tehran and Washington since last year, when Trump withdrew the US from the JCPOA and unleashed the โtoughest everโ sanctions against Iran, notably targeting its energy sector.
In the wake of Washingtonโs pullout, the JCPOA cosignatories pledged to make efforts to save the deal by protecting Iran against Washingtonโs โtoughest everโ sanctions, but they failed to adopt practical measures to that effect.
On May 8, a year into Washingtonโs exit, Tehran announced a decision to scale back its own commitments and gave a 60-day deadline for the other parties to fulfill their side of the deal.
Tehran has said it would reduce more of its commitments beyond the June 7 deadline if the other signatories continue to fail Iran.
Iran, however, says its countermeasures are reversible if the other parties meet Iran's demands.
Trumpโs new threat comes as the US has taken a quasi-warlike posture against Iran and stepped up its provocative military moves in West Asia.
Last month, the US sent a drone on a spying mission into Iranโs airspace over the coastal Province of Hormozgan following reports of a plan by the US to launch a โtactical assaultโ on a nuclear facility. That aircraft was shot down by Iranian air defenses. | english |
<gh_stars>0
export default function isType(value: any, type: string): boolean {
return {}.toString.call(value) === `[object ${type}]`;
}
| typescript |
Even as India's airlines were struggling to get back to normalcy after weathering the global recession, the volcanic ash from Iceland has given the industry another jolt while also affecting the country's exports.
Just a few days before ash spewing out of the Icelandic volcano crippled Europe's airports, Civil Aviation Minister Praful Patel had said that Air India has now turned the corner. His comments about the national carrier may have been premature but he was certainly reflecting the general upbeat mood of the civil aviation industry in recent months. Traffic has been picking up and the bottomlines of companies are not looking as red as in the past.
In fact, the sudden shutdown of European airports last week has hit Indian exporters harder than the aviation industry itself. Some export associations peg the losses at as high as Rs. 1,000 crore ($220 million) in this period while others say exports of $1 billion of high-end merchandise to the US and Europe may face delays or cancellations.
Higher freight rates now being charged by the airlines that have resumed flights are going to add on to costs and adversely affect competitiveness of Indian products in major markets of the developed world.
As for domestic airlines, they have not yet totted up the numbers relating to losses. But the International Air Transport Association (IATA) says the global aviation industry has lost $1. 7 billion over the span of just a few days.
The skies are gradually opening up but there are huge backlogs with many passengers still stranded on European soil. There are equally large numbers of other travellers who have been trying to get back to Europe.
The whole problem began when Iceland's volcano with the tongue twisting name of Eyjafjallajoekull began to erupt throwing metallic ash particles into the air. These particles have the potential of damaging airline engines and leading to air crashes.
The first such instance was in 1982 when a Boeing 747 of British Airways en route from Kuala Lumpur to Jakarta flew through an ash cloud leading to failure of all four engines. The aircraft ultimately had to glide and the engines revived enabling it to make a miraculous safe landing at Jakarta.
Despite this and other experiences, there have been voices from the international aviation industry insisting that European governments were too hasty in closing down airports. Clearly, one must applaud the safety first approach of the Eurozone governments that persisted in stopping flights even though it led to huge commercial losses for airlines as well as discomfort for passengers.
In the case of Indian carriers on foreign routes, aviation experts say the shutdown may actually reduce the growing losses of at least one of them, the public sector Air India. Five of its aircraft were grounded at European and US airports from April 16 onwards.
Experts say that grounding might actually have resulted in considerable savings in fuel and other costs for the airline which has suffered losses of about Rs. 5,500 crore ($1. 2 billion). The airline is not likely to agree with this assessment and may even claim that it has made more losses during this period of disruption.
Kingfisher and Jet Airways which also operate on international routes are still in the process of computing their losses, though global estimates are that airlines are losing $200 million daily due to the shutdown.
Whatever the losses, there is no doubt that airlines have been trying to recoup by jacking up fares as soon as the skies were opened above Europe. In fact, there are reports that fares to London are being quoted between Rs. 50,000-Rs. 100,000 ($1,100-$2,200) as against the earlier rates of about Rs. 30,000 ($660).
This has really added insult to injury for most travellers who have already had to suffer trauma by extending stay abroad and incurring heavy costs on hotels while others have had visa problems owing to overstaying beyond the scheduled date. Some countries like Britain made the effort of sending rescue ships for their citizens in Europe, bringing hundreds of them back home in luxury cruise liners.
Apart from the airlines, the stoppage of air traffic over Europe has been a graver setback to Indian exporters. The Federation of Indian Export Organisations (FIEO) has estimated that $1 billion worth of high end merchandise has been affected by the ash crisis.
Exporters also say the ploy by both Indian and foreign airlines to raise fares has extended to cargo as well. Instead of the normal rates, airlines are charging express fares for normal cargo deliveries which has pushed up costs for exporters already struggling to remain competitive in the European and US markets.
In other words, freight rates have virtually doubled for cargo going to these two major markets. To add to their woes, buyers will be looking for discounts owing to delayed deliveries and there is even the prospect of export orders being cancelled.
While one can empathise with the aviation industry for facing the disruption in flights at a time when recovery was on the cards, it has definitely not taken the high road by raising passenger fares and freight rates to take advantage of the demand-supply gap. It is high time for the government to intervene and rescue individual travellers as well as industry from this kind of blatant profiteering.
This kind of approach is not, however, likely to win friends for the aviation companies. Even in Europe and Britain some airlines are creating more problems for travellers. But others have taken a different tack and even eliminated cancellation charges on flights owing to the crisis.
There is life after such emergencies and it is clear that the travelling public will opt for the airline that has gone the extra mile to help them out. India's domestic carriers like Kingfisher, Jet Airways and Air India need to adopt a long-term approach in such situations and ease travelling conditions for passengers rather than try to make a quick buck in the midst of a crisis. | english |
import { Component, OnInit } from '@angular/core';
export interface WalletData{
walletName:string;
walletAmount:string;
}
@Component({
selector: 'app-table-list',
templateUrl: './table-list.component.html',
styleUrls: ['./table-list.component.css']
})
export class TableListComponent implements OnInit {
WalletNotcreated:boolean=true;
createWallet:boolean=false;
Walletcreated:boolean=false;
myWallet:WalletData={
walletName:"",
walletAmount:""
}
constructor() { }
ngOnInit() {
}
CreateWallet(){
this.createWallet=true;
this.WalletNotcreated=false;
}
OnWalletCreated(){
this.Walletcreated=true;
this.createWallet=false;
}
OnWalletNotCreated(){
this.WalletNotcreated=true;
this.createWallet=false;
}
}
| typescript |
Orson Welles should find jobs which involve Orson Welles with groups of people and where there is no pressure to meet commitments and responsibilities on a commercial level. Orson Welles would find success in a career which would help people, such as group leadership.
Almost any work that requires steady, intelligent plodding will give Orson Welles satisfaction, especially in middle life or later. Orson Welles's judgement is sound and Orson Welles is thorough in all Orson Welles do. Orson Welles want to be left in peace and quiet to get on with Orson Welles's duties. Orson Welles resent being hurried. Orson Welles's methodical nature fits Orson Welles or being placed in authority over others and, as Orson Welles is placid and not fiery-tempered, Orson Welles will secure the loyalty of those Orson Welles have to direct. Orson Welles possess a head for finance, which suggest that Orson Welles would do well in the banking word, in the office of a finance company or a stock-broker. But most office work should suit to Orson Welles's temperament.
Orson Welles will have great ability in making money in all forms of industry, business organisation or in the employment of others. Orson Welles will always see a way out of any difficulty and be self-reliant and determined in whatever course of action Orson Welles may decide to follow. Orson Welles will be a speculator on a large scale in all Orson Welles undertake. Orson Welles will treat life more as a game than from a serious standpoint. As a general rule, luck will favour Orson Welles during the greater part of Orson Welles's life. In relation to finance Orson Welles need have nothing to fear. Once the early part of Orson Welles's life is over, Orson Welles will begin to reap forward for the foundation Orson Welles have laid and from that point Orson Welles is likely to accumulate wealth and position.
| english |
Kochi: The Kerala High Court has sought a report from the state government on the stray dog menace. The court directed the government to submit a report detailing the steps taken to implement previous orders regarding the sterilisation of stray dogs and its measures to deal with growing dog attacks in the state. The report is to be submitted by Friday.
"The state government is obliged to protect citizens from attack of ferocious dogs by identifying and containing such canines and removing them from public places," the High Court said on Wednesday.
These directions were issued by a bench of Justices A K Jayasankaran Nambiar and Gopinath P in a special sitting convened by it in the wake of instances of dog bites being reported from across the state.
The court also advised the public against taking the law into their hands and to refrain from harming stray dogs. The state police chief was directed to issue a circular in this regard as well.
The Kerala government on Tuesday had said that all stray dogs in the state would be vaccinated and steps had been initiated to identify hotspots of dog bites.
The Health Department has also launched a campaign to create awareness among the people on the steps to be taken in case of stray dog bites.
Recently, the Supreme Court, while hearing a batch of petitions on issues relating to orders passed by various civic bodies on the culling of stray dogs which have become a menace, especially in Kerala and Mumbai, said a balance has to be maintained between the safety of people and animal rights while suggesting that people who feed stray dogs could be made responsible for vaccinating them and bearing costs if somebody is attacked by the animal.
Over the past couple of weeks, stray dog attacks have been the biggest issue bugging Kerala. On Tuesday, 78 people sought treatment for stray dog bites in Ernakulam alone. In just four-and-a-half hours, 24 people sought treatment for dog bites in the Palakkad district. A total of 33 people in Kozhikode, 28 in Kannur, 20 in Kollam, 18 in Kasaragod, five in Pathanamthitta, and two in Thiruvananthapuram districts sought treatment after dog bites. In Pathanamthitta, it was pet dogs that mauled the victims.
(With PTI inputs) | english |
After the Indian U-16 team lost narrowly by a solitary goal against Russia in its opening match of the BRICS U-17 football tournament, www.the-aiff.com caught up with head coach Nicolai Adam and talked at length about Indiaโs performance against Russia and Indiaโs next opponent South Africa. Edited excerpts:
Question: What is your analysis of Indiaโs match against Russia?
Answer: Russia is one of the countries which has the potential to qualify for the FIFA U-17 World Cup India 2017 and we had to be realistic against them. We had hardly time to play and create clear goal scoring opportunities, but we were able to bring them at par with us in football terms.
We tried to kill Russiaโs strength, their wingplay, in the second half and that worked for us. Although the team followed the tactical orders to perfection, and there were a lot of positives to take from the match, we still have to remember that we lost and still there is a lot of work to be done.
The Russian coach hailed India as stronger than Moldova, Latvia and Bosnia and Herzegovina.
I hope nobody finds me arrogant but I agree with the Russian coach because we prepared well in Europe for our age group and I knew our level of competitiveness beforehand.
We have the calibre to play against some of the top reams of Europe like Russia, however this is still a work in progress, and we have to strive to become better in order to ensure our competitiveness in the FIFA World Cup next year.
I am pleasantly surprised that the overall picture shows we are competitive and can give some of the best teams in the world a hard time.
Did India deserve to lose against Russia?
We tried our best to score and we tried hard. I even made some attacking changes but credit to the Russian team for not allowing many clear goal scoring opportunities. At the end of the day, the result counts. It does not matter whether we deserved to win or lose.
What are your thoughts on Indiaโs next opponents South Africa?
We have to digest the difference styles of football in this tournament. We have already played against the European style of play in Russia and now we look forward to see the African style of play.
We are not favourites to win the match as South Africa is physically and offensively better, and is stronger.
| english |
<reponame>GroupDigitalHub/il-kentico-kontent-prototype<filename>node_modules/.cache/babel-loader/f2bd49d9d2bab7cb8d7191cdfaa807f4.json<gh_stars>0
{"ast":null,"code":"'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isISSN;\n\nvar _assertString = require('./util/assertString');\n\nvar _assertString2 = _interopRequireDefault(_assertString);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nvar issn = '^\\\\d{4}-?\\\\d{3}[\\\\dX]$';\n\nfunction isISSN(str) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n (0, _assertString2.default)(str);\n var testIssn = issn;\n testIssn = options.require_hyphen ? testIssn.replace('?', '') : testIssn;\n testIssn = options.case_sensitive ? new RegExp(testIssn) : new RegExp(testIssn, 'i');\n\n if (!testIssn.test(str)) {\n return false;\n }\n\n var digits = str.replace('-', '').toUpperCase();\n var checksum = 0;\n\n for (var i = 0; i < digits.length; i++) {\n var digit = digits[i];\n checksum += (digit === 'X' ? 10 : +digit) * (8 - i);\n }\n\n return checksum % 11 === 0;\n}\n\nmodule.exports = exports['default'];","map":null,"metadata":{},"sourceType":"script"} | json |
package com.exemple.stage.Adapters;
/**
* Created By <NAME>
*/
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.exemple.stage.R;
import com.exemple.stage.modele.eventt;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;
import java.util.List;
public class EventAdapter extends RecyclerView.Adapter<EventAdapter.ImageViewHolder> {
int t = 0;
private Context mContext;
private List<eventt> mUploads;
private DatabaseReference ref = FirebaseDatabase.getInstance().getReference().child("eventt");
public EventAdapter(Context context, List<eventt> uploads) {
this.mUploads = uploads;
this.mContext = context;
}
@Override
public ImageViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View view = LayoutInflater.from(mContext).inflate(R.layout.evnt_list_delete, parent, false);
return new EventAdapter.ImageViewHolder(view);
}
@Override
public void onBindViewHolder(ImageViewHolder Holder, final int position) {
final eventt eventt = mUploads.get(position);
Holder.t1.setText("Your Event is : " + eventt.getText());
Holder.t2.setText("Date : " + eventt.getDate());
Holder.delete.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
ref.orderByChild("Text").equalTo(eventt.getText()).addListenerForSingleValueEvent(new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot dataSnapshot) {
for (DataSnapshot ds : dataSnapshot.getChildren()) {
ds.getRef().removeValue();
}
}
@Override
public void onCancelled(DatabaseError databaseError) {
}
});
}
});
}
@Override
public int getItemCount() {
return mUploads.size();
}
public static class ImageViewHolder extends RecyclerView.ViewHolder {
TextView t1, t2;
Button delete;
public ImageViewHolder(@NonNull View itemView) {
super(itemView);
t1 = itemView.findViewById(R.id.EventText2);
t2 = itemView.findViewById(R.id.DateText2);
delete = itemView.findViewById(R.id.delete);
}
}
}
| java |
1 Nigmatut, ma gis tl glululuoq 'st'ge' ta'n tel glulieg ta'nig gigji majulgwala'titl Wejuli Nisgaml. Amujpa na tel glululoq 'st'ge' mimajuinu'g ta'n menaq gawasga'lugwi'tigul lue'utigtug aq menaq mesna'tigul Wejuli Nisgaml. Tel glululoq st'ge' mijua'ji'jg muta tel pmita'ioq 'st'ge' atel poqji gtlams'tmu'tioq. 2 Amujpa na tmg gopisunji'jg mlagejg ignmujig, gesgmnaq gisgajeiug mijipjewei smugsin. Pa na gilew wijei, amujpa sangew gegina'muloq gesgmnaq gisgajo'ltiwoq goqwei metue'g gisi ns'tmu'tinew. Aq we'gaw nige' menaq gisgajo'ltiwoq. 3 Ta'n tujiw wisgualtultioq aq gi'gaita'ioq, wijei telo'ltioq pa wijei aq ta'nig mo majulgwala'tigul Gjisaqamawl. Musgalsultioq na me' mijua'ji'juultioq aq me' mnaq ignmuawoq Wejuli Nisgam ilgwenugsinew. 4 Siaw wisgualtultioq ta'n telueioq, โNi'n majulgwalg Poligap,โ aq igtig, โNi'n majulgwalg Apollos.โ Wijei telo'ltioq pa na wijei aq ta'nig mo majulgwala'tigul Gjinisgaml. Musgalsultioq teli apje'jg ta'n tel lugutioq Gjinisgamewigtug.
5 'Lpa na ninen Poligap aq Apollos mo wenig? Ninen pas'g Gjinisgam ugtlgowinumg, ta'n ilgwenuleg'p ugjit 'gtlams'tmu'tinew Gjinisgamewigtug. Ala wen ap igtig elugwatmeg 'ntlgowaqaninen, ta'n Gjisaqamaw ignmugsieg'p. 6 Apollos aq ni'n pestunmatmeg Gjinisgam ugglusuaqanml aq gilew nutmoqol. Maw lugutieg Gjinisgam. Na pa na wijei aq nuji iga'taqu'tijig. Newgte'jit iga'taqug 'sginminn aq igtig samqwana'teget gatu Gjinisgam gisa'toqop nigwen. 7 Ta'n pas'g wen gis iga'taqutew aq ta'n pas'g wen gis samqwana'tegetew gatu pas'g Gjinisgam gisa'tutew nigwen. 8 'Ms't wen geggung ta'n tl lugwetew. Newgte'jit iga'taqug aq igtig samqwana'teget. Gjinisgam apangituatal ingute'jilitl ta'n telamu'g 'lgowaqan gisa'toq. 9 Ninen pestunmatmeg Gjinisgam ugglusuaqanml. Gjinisgam gisa'toq nigwen 'ggamlamunuaq. Gilew pa wijei aq Gjinisgam ugtiga'taqanml. Elt gilew pa wijei aq Nisgamewei wen'ji'guom.
10 'Ntlgowaqan elugwatmap e'wmap ta'n goqwe'l Gjinisgam ignmuipnn. Pestunmatmuloqop Se'suguli pa wijei aq mujgajewei nuji'teget iga'toq gelu'lg epganaqataqan ugjit wen'ji'guom gatu ap igtig mimajuinu ewi'gatg. Ingute'jit amujpa na ango'tg ta'n teli iga'tg. 11 Pas'g newgte' epganaqataqan eteg ugjit mimajuinu ewi'gatg Gjinisgamewigtug. Gjinisgam gi's gisa'lapnn Se'sugulial 'ngute'tilin ugjit epganaqataqan Gjinisgamewigtug. Ma piluei i'gtnug epganaqataqan pas'g Se'suguli. 12-13 'Ms't wen ta'n getlams'tasit ewi'gatg ula epganaqataqan. Wegla ta'nig sangew tla'taqatijig ta'n Gjinisgam tel puatg, gelu'lg 'lgowaqan elugwatmi'tij. Maw gelu'lg aq tepawgtig pa wijei aq wisaw suliewei aq muj gajewe'l gun'tal. Gatu igtigl mo piam gelu'lgtnugl ugtlgowaqanmual pa wijei aq gmu'j ta'n etl'gaq, 'msigu, gisna siguaqs'te'gn. Ta'n tel gelu'lg ugtlgowaqan nmituaten na na'gweg Se'suguli 'pgising aq 'gtnu'gwatas'gt'tew pugtewigtug. Ta'n mimajuinu gis tl lugwej, na pugtew musga'tutew ta'n tel gelu'lg ugtlgowaqan. 14 'Lpa na ta'n goqwei mimajuinu gis tla'teget, gisipuguig pugtewigtug, na negm 'msntew ugtapangitueweim. 15 Gatu mimajuinu ta'n goqwei gisi iga'tg gaqamgleg, na tujiw 'n'tutew ugtapangitueweim. Gatu negm ugs'tawiatew, pa wijei aq gis smugt'g pugtew.
16 Gilew ta'nig getlams'tasultioq mawnutultioq pa wijei aq 'gjia'sutuo'guom ugjit Gjinisgam aq Wejuli Nisgam eig 'gtinnewaq aq ta'n eimu'tioq. 17 Ta'n pas'g wen seioqwa'toq Gjinisgam 'gjia'sutuo'guom Gjinisgam seioqwa'lataq. Na tla'tegetew muta Gjinisgam 'gjia'sutuo'guom sape'wig. Etna na gilew ta'n wesgumuloq.
18 Pun lue'walsultigw! Ta'n wen te'sioq tl'ta'sij nestue'g ula ta'n ugs'tqamu tel pmiaq amujpa na gnu'tmasij glaman ugji gji'tutew ta'n teli apje'jg gisi gji'toq. Pa na wijei aq mo goqwei Gjinisgamewigtug. Na tujiw gisi pqoji ns'tue'tew Gjinisgamewigtug. 19 Gatu ta'n goqwei mimajuinu'g teli ugsua'tu'tij 'ns'tue'gtn, 'lpa 'nsngo'qonewei Gjinisgamewigtug. Ta'n tel wi'gas'g Gjinisgam ugtwi'gatign, โTa'n tujiw tetaputesg iga'q, Gjinisgam naqa'lataq natawo'ltiliji ta'n getu gistesgua'tiji mimajuinu'g ugjit 'msnmnew ta'n goqwei puatmi'tij.โ Na tliatew. 20 Ap igtig tel wi'gas'g, โGjisaqamaw geitoq ta'n teli angita'sultilij natawo'ltiliji aq mo tepawgtinug Gjinisgamewigtug.โ 21 Mut ginnualanew mimajuinu gisna ta'n mimajuinu gis tla'tegetew. 'Lpa Se'suguliewigtug 'ms't goqwei gilewewei. 22 Gjinisgam ignmugsioqopnig Poligap, Apollos, aq Pie'l ugjit apoqonmugsinew. Ta'n goqwe'l etegl ugs'tqamug ignmugsioqopnn e'wmanew ta'n goqwei nige' aq ta'n goqwei jugu'etew. Ula 'ms't gilewewei toqo wije'tioq Se'suguliewigtug aq ta'n tujiw 'npu'tioq 'lta'toqs'p negmeg. 23 Etna na ugjit gilew tleiaultioq Se'suguliewigtug, aq Se'suguli tleiawit Gjinisgamewigtug.
| english |
Hindu Forum of Britain (HFB), an umbrella group of Hindu organisations and temples in the UK, has called on the Bank of England to withdraw the new 5-pound note from circulation because it uses animal fat. HFB said it was convinced the move was not โmaliciousโ but a result of โignoranceโ and called for the notes to be made โKarma-freeโ at the earliest.
โSaving and sharing wealth (the Goddess of fortune) in currency tainted by unnecessary harm to animals is somewhat of an oxymoron,โ said Shree Gauridas, spiritual commissioner of HFB and a director of the UKโs ISKCON temple. The group has been encouraging people to sign a petition calling for the withdrawal of the notes as vegans and vegetarians continued to express outrage at the use of tallow, a substance derived from animal fat, which emerged in a Twitter response earlier this week.
The new notes with an image of Britainโs war-time Prime Minister Winston Churchill became legal tender in September this year. A vegetarian cafรฉ in the university town of Cambridge is refusing to accept the new notes and Sharon Meijland, owner of Rainbow Cafe, has put up signs warning customers about the policy.
โTallowโs an animal product isnโt it? Our whole business is based around not having anything like that on the premises. Although the same person doesnโt handle the money that handles the food, thatโs not really the point,โ she said. The Bank of England says it is now looking into ways of removing the substance from the supply chain.
โWe are aware of some peopleโs concerns about traces of tallow in our new five pound note. We respect those concerns and are treating them with the utmost seriousness,โ a spokesperson said. Meanwhile, the Australian pioneer of the polymer bank note says itโs โstupidโ that vegetarian and vegans are protesting in the UK about the five pound polymer note containing animal fat.
Professor David Solomon says the polymer notes contain trivial amounts of tallow, which is also used in candles and soap. โItโs stupid. Itโs absolutely stupid. Thereโs trivial amounts of it in there. It picks up less drugs than paper notes and you donโt chop down trees. Itโs more hygienic than a paper note by a long way,โ he said. | english |
# Network Over COM.LTE tutorial
>Network Over COM.LTE mode enables all network data to be sent via LTE when the device uses UIFlow.
>Note: When `CORE2` uses `Network Over COM.LTE mode`, the 5V power supply of the M-BUS will be switched to input mode, please directly input 5V power to M-BUS or use a DC adapter to connect to LTE The module supplies power.
## Pre-requirements
### Driver Installation
>Before we start programming, users of M5Core type host (including BASIC/GRAY/M5GO/FIRE/FACES/CORE2) should download the corresponding CP210X driver compressed package according to the operating system you are using. After decompressing the package, Select the installation package corresponding to the number of operating systems to install.
* __Download CP210X driver__
<div class="files_download">
<p class="item">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/drivers/CP210x_VCP_Windows.zip">
<img src="/image/base/Windows_logo.webp" width="50">
<span class="item-title">Windows10</span>
</a>
</p>
<p class="item">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/drivers/CP210x_VCP_MacOS.zip">
<img src="/image/base/MacOS_logo.webp" width="50">
<span class="item-title">MacOS</span>
</a>
</p>
<p class="item">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/drivers/CP210x_VCP_Linux.zip">
<img src="/image/base/Linux_logo.webp" width="50">
<span class="item-title">Linux</span>
</a>
</p>
</div>
<img src="/image/base/CP210X_install.gif "width="80%">
### Burning tool
>Please click the button below to download the corresponding M5Burner firmware burning tool according to the operating system you are using. Unzip and open the application.
<div class="files_download">
<p class="item">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/software/M5Burner.zip">
<img src="/image/base/Windows_logo.webp" width="50">
<span class="item-title">Windows10</span>
</a>
</p>
<p class="item">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/software/M5Burner_MacOS.zip">
<img src="/image/base/MacOS_logo.webp" width="50">
<span class="item-title">MacOS</span>
</a>
</p>
<p class="item">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/software/M5Burner_Linux.zip">
<img src="/image/base/Linux_logo.webp" width="50">
<span class="item-title">Linux</span>
</a>
</p>
</div>
<img src="assets/img/getting_started_pics/how_to_burn_firmware/M5Burner/M5Burner_01.webp">
?>Note: After installation for MacOS users, please put the application into the Application folder, as shown in the figure below.
<img src="/image/base/application.webp" width="80%">
?>Note: For Linux users, please switch to the decompressed file path and run `./M5Burner` in the terminal to run the application.
### Firmware burning
>1. Double-click to open the Burner burning tool, select the corresponding device type in the left menu, select the firmware version you need, and click the download button to download.
<img src="assets/img/quick_start/core/burner_m5core01.webp" width="80%">
>2. Then connect the M5 device to the computer through the Type-C data cable, select the corresponding COM port, and click "Burn" to start burning.
<img src="assets/img/quick_start/core/burner_m5core02.webp" width="80%">
>3. When the burning log prompts `Burn Successfully`, it means that the firmware has been burned.
<img src="assets/img/quick_start/core/burner_done.webp" width="80%">
### LTE module
>1. Insert the MicroSIM card into the module card slot, adjust the DIP switch, `enable pins 13,5`, and connect the external antenna.
?>When using the CORE1 device, please adjust the DIP switch to `pin 13,5`, and CORE2 adjust the DIP switch to `pin 16,17`
<img src="assets/img/quick_start/comx_lte/lte_network_over_com_01.webp" width="80%">
## Set APN/Switch Mode
>1. Click `Configuration`, the software will start to read the configuration information of the current device. In the pop-up configuration box, you can reconfigure the APN according to the operator you are using. (The default APN is CMNET)
<img src="assets/img/quick_start/comx_lte/configuration.webp" width="80%">
<img src="assets/img/quick_start/comx_lte/config_window.webp" width="80%">
>2. Switch the device to COM.LTE working mode, you can set the `COM.X` option in the configuration box to `True`, or after the device is started, enter the Setup configuration page to switch modes.
<img src="assets/img/quick_start/comx_lte/lte_network_over_com_02.webp" width="80%">
## start using
>1. After the configuration is completed, it will be automatically activated after booting, and the inspection will begin. After passing the test, you will enter the programming mode page.
>2. Refer to the following case and request the URL `https://httpbin.org/ip` through http to obtain the current IP of the machine.
<img src="assets/img/quick_start/comx_lte/http_get_ip.webp" width="80%">
<script>
anchor_search();
scrollFunc();
</script>
| markdown |
How do I follow truth in a post truth world?
The world around us is in a state of confusion over truth. Truth in the 21st century has become relative, based on preference and experience. What may be true for me, may not be true for you. Today's truth is often shaped by an over saturation of media exposure. The cascading result of this is disagreements, quarrels, and fallout of morality. If we human beings don't have a solid foundation to base our lives on, we will forever be in conflict of interests.
A river without banks is a puddle. If we are to move forward in life with truth in our hearts, we must have an anchor in truth.
When ships navigate in narrow channels, they use a technique called dredging anchor. What they basically do is drop the anchor ahead of the ship and pull themselves closer to the anchor. Jesus for us is the Anchor. He is the Truth. He exercised truth and as His followers, we are asked to do so, irrespective of how the world defines truth. When temptation strikes, when immorality is all you see as examples, when youโre at the verge of speaking the slightest lie to save yourself, pull closer to Jesus. Revel in His truth and see the difference that makes. We mustn't put our faith in the trends of today, but rather in the God of timeless tomorrow.
God anchor me in the truth and help me stand strong in my faith and in your word. May my ears be sensitive to the truth and my hands and feet be quick to follow in the path of truth. Guide me Lord. Amen.
Choosing Each Day: God or Self?
| english |
<filename>paddle/fluid/framework/ir/multi_devices_graph_pass/multi_devices_graph_print_pass.cc<gh_stars>1000+
// Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/fluid/framework/ir/graph_helper.h"
#include "paddle/fluid/framework/ir/graph_printer.h"
namespace paddle {
namespace framework {
namespace ir {
class SSAGraghBuilderWithPrinterPass : public ir::Pass {
protected:
void ApplyImpl(ir::Graph *graph) const override {
std::unique_ptr<std::ostream> fout(
new std::ofstream(Get<std::string>(kGraphvizPath)));
PADDLE_ENFORCE_EQ(
fout->good(), true,
platform::errors::Unavailable("Open file fail! kGraphvizPath = %s.",
Get<std::string>(kGraphvizPath)));
if (Has("graph_printer")) {
Get<GraphvizSSAGraphPrinter>("graph_printer").Print(*graph, *fout);
} else {
GraphvizSSAGraphPrinter printer;
printer.Print(*graph, *fout);
}
}
};
template <typename Callback>
static inline void IterAllVar(const ir::Graph &graph, Callback callback) {
for (auto &each : graph.Get<details::GraphVars>(details::kGraphVars)) {
for (auto &pair1 : each) {
for (auto &pair2 : pair1.second) {
callback(*pair2);
}
}
}
for (auto &var : graph.Get<details::GraphDepVars>(details::kGraphDepVars)) {
callback(*var);
}
}
void GraphvizSSAGraphPrinter::Print(const ir::Graph &graph,
std::ostream &sout) const {
size_t var_id = 0;
std::unordered_map<const details::VarHandleBase *, size_t> vars;
sout << "digraph G {\n";
IterAllVar(graph, [&](const details::VarHandleBase &var) {
auto *var_ptr = &var;
auto *var_handle_ptr = dynamic_cast<const details::VarHandle *>(var_ptr);
auto *dummy_ptr = dynamic_cast<const details::DummyVarHandle *>(var_ptr);
size_t cur_var_id = var_id++;
vars[var_ptr] = cur_var_id;
if (var_handle_ptr) {
sout << "var_" << cur_var_id << " [label=\"" << var_handle_ptr->name()
<< "\\n"
<< var_handle_ptr->place() << "\\n"
<< "scope: " << var_handle_ptr->scope_idx() << "\\n"
<< "v" << var_handle_ptr->version() << "\"]" << std::endl;
} else if (dummy_ptr) {
sout << "var_" << cur_var_id << " [label=\"dummy\"]" << std::endl;
}
});
size_t op_id = 0;
for (auto &op : ir::FilterByNodeWrapper<details::OpHandleBase>(graph)) {
std::string op_name = "op_" + std::to_string(op_id++);
sout << op_name << " [label=\"" << op->Name() << "\", shape=rect]"
<< std::endl;
for (auto in : op->Inputs()) {
std::string var_name = "var_" + std::to_string(vars[in]);
sout << var_name << " -> " << op_name << std::endl;
}
for (auto out : op->Outputs()) {
std::string var_name = "var_" + std::to_string(vars[out]);
sout << op_name << " -> " << var_name << std::endl;
}
}
sout << "}\n";
}
} // namespace ir
} // namespace framework
} // namespace paddle
REGISTER_PASS(multi_devices_print_pass,
paddle::framework::ir::SSAGraghBuilderWithPrinterPass)
.RequirePassAttr(paddle::framework::ir::kGraphvizPath);
| cpp |
import { Field, InputType } from '@nestjs/graphql';
import { IsNotEmpty, IsOptional } from 'class-validator';
@InputType()
export class CreateFlowInput {
@Field()
@IsNotEmpty()
userId: string;
@Field()
@IsNotEmpty()
category: string;
@Field({nullable: true})
@IsOptional()
subCategory?: string;
@Field()
@IsNotEmpty()
value: number;
@Field()
@IsNotEmpty()
date: Date;
}
| typescript |
Chaar Bayt are a four line sequence of verses sung to the beat of the 'duff' (a percussion instrument). It is performed in States of Rajasthan, Uttar Pradesh, and Madhya Pradesh. It is believed that Chaar Bayt originated from an Arab poetic form called Rajeez and its origin can be traced back to the 7th century. These songs were sung by the soldiers. In the war camps they would sing songs in the evenings to instill valour and courage in their ranks. Songs are sung at a high pitch with fast beats. These songs later travelled eastwards along with the soldiers to Persia and Afghanistan, where they came to be sung in the local language. In 18th century India, many states had their private armies, which recruited Pathan and Afghani soldiers. These soldiers brought along with them the tradition of Chaar Bayt, which is still alive. A Chaar Bayt troupe is referred to as an 'akhara' (arena) which is headed by an 'ustad' (teacher/guru). The groups sing in the evenings, and compete with each other in a didactic style of question and answer. Often the poet sits with the group and writes new verses on the spot. The highly involved and deeply participatory performances would go on till late in the night.
| english |
Mino Raiola was a football agent who belonged to a separate league of wheelers and dealers in the world of football โ a league in which he was partly responsible for some of the highest transfer fees football has ever seen. During his time as a super-agent, the economics of football transformed in favour of agents to such an extent that the world body of the sport (FIFA) decided to go out on war against the middlemen of the sport, a move that incensed Raiola. He was also known for his combative nature and had fallen out with many managers across leagues and clubs over the handling of his players.
His death at the age of 54 came amid two of his biggest clients โ Manchester United midfielder Paul Pogba and Borussia Dortmund striker Erling-Braut Haaland โ in the middle of an epic summer of transfer battles and signature chasings. Raiola was going through a long illness, underwent surgery in January this year and was wrongly considered dead only a few days ago.
How did Raiola make his money from transfers?
In 2019 it was ascertained that football agents made $653 million in commissions. According to the Guardian, this was an 18% rise from the previous year.
Using data provided by Forbes, it was calculated that despite possessing fewer players than other super-agents, Raiola still made close to ยฃ800,000 per deal. This was mostly down to the quality of players that his agency possessed and one other factor โ his ability to be a thorn in the side of the playerโs current club.
The Pogba to Manchester United transfer netted him millions as he represented all parties involved and took commissions from the player, the buying club and the selling club to broker a then world record transfer fee for the Frenchman to move back to his former team in Manchester.
What was Raiolaโs relationship with clubs and managers like?
Raiola successfully inflated the prices of certain football players under his wings through simply sowing discord in the current club of the player. He would criticise management, the manager of the club and essentially keep the image of his players as that of talented, yet underutilised and settled, yet ready to move.
The ploy would work as the club would continue to remain destabilised while the stock of the player rarely went down, come injury or poor form. He once said that Pep Guardiola should be sent to a psychiatric hospital for keeping Ibrahimovic on the Barcelona bench. But such has been the power of the agent and his ability to build relationships with his clients that the Guardiola-led City continue to make Raiola-client Erling-Braut Haaland a priority target for Manchester City this summer.
Sir Alex Ferguson described his relationship with the Dutch agent as โoil and waterโ in his biography. The former Manchester United great blamed Raiola for sowing discord among the club and Pogba which led to the talented teenager moving from England to Juventus on a free transfer.
Why did Raiola tussle with FIFA?
Before Raiola died, he had formed the Football Forum alongside fellow super-agent Jonathan Barnett (Agent of Gareth Bale, Mason Mount and Jack Grealish). This was to counter FIFA and their plans to reform agentsโ hold on football through commissions.
Football Forum intended on organizing agents across the world under one umbrella and taking on FIFAโs oncoming rulings on agent fees. Raiola went as far ahead to even predict that โFIFA will not exist in 10 yearsโ timeโ.
FIFAโs new regulations for agents suggested that an agent representing a buying club would receive 3% of the transfer fee while an agent representing a selling club would receive 10% of the transfer fee. Crucially, the new regulations would also force an agent to represent either the player or the selling club or the buying club but not all. An exception would have been that the agent could represent the buying club and player, if all parties involved agreed.
For a man that always fought tooth and nail for his players and for himself, the oncoming fight against FIFA was one that he would eventually not be able to represent. | english |
import os
import sys
import argparse
import importlib
import multiprocessing
import cv2 as cv
import torch.backends.cudnn
env_path = os.path.join(os.path.dirname(__file__), '..')
if env_path not in sys.path:
sys.path.append(env_path)
import ltr.admin.settings as ws_settings
def run_training(train_module, train_name, cudnn_benchmark=True):
"""Run a train scripts in train_settings.
args:
train_module: Name of module in the "train_settings/" folder.
train_name: Name of the train settings file.
cudnn_benchmark: Use cudnn benchmark or not (default is True).
"""
# This is needed to avoid strange crashes related to opencv
cv.setNumThreads(0)
torch.backends.cudnn.benchmark = cudnn_benchmark
print('Training: {} {}'.format(train_module, train_name))
settings = ws_settings.Settings()
if settings.env.workspace_dir == '':
raise Exception('Setup your workspace_dir in "ltr/admin/local.py".')
settings.module_name = train_module
settings.script_name = train_name
settings.project_path = 'ltr/{}/{}'.format(train_module, train_name)
expr_module = importlib.import_module('ltr.train_settings.{}.{}'.format(train_module, train_name))
expr_func = getattr(expr_module, 'run')
expr_func(settings)
def main():
parser = argparse.ArgumentParser(description='Run a train scripts in train_settings.')
parser.add_argument('train_module', type=str, help='Name of module in the "train_settings/" folder.')
parser.add_argument('train_name', type=str, help='Name of the train settings file.')
parser.add_argument('--cudnn_benchmark', type=bool, default=True, help='Set cudnn benchmark on (1) or off (0) (default is on).')
args = parser.parse_args()
run_training(args.train_module, args.train_name, args.cudnn_benchmark)
if __name__ == '__main__':
multiprocessing.set_start_method('spawn', force=True)
main()
| python |
<filename>aws-java-sdk-elasticache/src/main/java/com/amazonaws/services/elasticache/AmazonElastiCache.java
/*
* Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.elasticache;
import javax.annotation.Generated;
import com.amazonaws.*;
import com.amazonaws.regions.*;
import com.amazonaws.services.elasticache.model.*;
import com.amazonaws.services.elasticache.waiters.AmazonElastiCacheWaiters;
/**
* Interface for accessing Amazon ElastiCache.
* <p>
* <b>Note:</b> Do not directly implement this interface, new methods are added to it regularly. Extend from
* {@link com.amazonaws.services.elasticache.AbstractAmazonElastiCache} instead.
* </p>
* <p>
* <fullname>Amazon ElastiCache</fullname>
* <p>
* Amazon ElastiCache is a web service that makes it easier to set up, operate, and scale a distributed cache in the
* cloud.
* </p>
* <p>
* With ElastiCache, customers get all of the benefits of a high-performance, in-memory cache with less of the
* administrative burden involved in launching and managing a distributed cache. The service makes setup, scaling, and
* cluster failure handling much simpler than in a self-managed cache deployment.
* </p>
* <p>
* In addition, through integration with Amazon CloudWatch, customers get enhanced visibility into the key performance
* statistics associated with their cache and can receive alarms if a part of their cache runs hot.
* </p>
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public interface AmazonElastiCache {
/**
* The region metadata service name for computing region endpoints. You can use this value to retrieve metadata
* (such as supported regions) of the service.
*
* @see RegionUtils#getRegionsForService(String)
*/
String ENDPOINT_PREFIX = "elasticache";
/**
* Overrides the default endpoint for this client ("elasticache.us-east-1.amazonaws.com"). Callers can use this
* method to control which AWS region they want to work with.
* <p>
* Callers can pass in just the endpoint (ex: "elasticache.us-east-1.amazonaws.com") or a full URL, including the
* protocol (ex: "elasticache.us-east-1.amazonaws.com"). If the protocol is not specified here, the default protocol
* from this client's {@link ClientConfiguration} will be used, which by default is HTTPS.
* <p>
* For more information on using AWS regions with the AWS SDK for Java, and a complete list of all available
* endpoints for all AWS services, see: <a href=
* "https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/java-dg-region-selection.html#region-selection-choose-endpoint"
* > https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/java-dg-region-selection.html#region-selection-
* choose-endpoint</a>
* <p>
* <b>This method is not threadsafe. An endpoint should be configured when the client is created and before any
* service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in
* transit or retrying.</b>
*
* @param endpoint
* The endpoint (ex: "elasticache.us-east-1.amazonaws.com") or a full URL, including the protocol (ex:
* "elasticache.us-east-1.amazonaws.com") of the region specific AWS endpoint this client will communicate
* with.
* @deprecated use {@link AwsClientBuilder#setEndpointConfiguration(AwsClientBuilder.EndpointConfiguration)} for
* example:
* {@code builder.setEndpointConfiguration(new EndpointConfiguration(endpoint, signingRegion));}
*/
@Deprecated
void setEndpoint(String endpoint);
/**
* An alternative to {@link AmazonElastiCache#setEndpoint(String)}, sets the regional endpoint for this client's
* service calls. Callers can use this method to control which AWS region they want to work with.
* <p>
* By default, all service endpoints in all regions use the https protocol. To use http instead, specify it in the
* {@link ClientConfiguration} supplied at construction.
* <p>
* <b>This method is not threadsafe. A region should be configured when the client is created and before any service
* requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit
* or retrying.</b>
*
* @param region
* The region this client will communicate with. See {@link Region#getRegion(com.amazonaws.regions.Regions)}
* for accessing a given region. Must not be null and must be a region where the service is available.
*
* @see Region#getRegion(com.amazonaws.regions.Regions)
* @see Region#createClient(Class, com.amazonaws.auth.AWSCredentialsProvider, ClientConfiguration)
* @see Region#isServiceSupported(String)
* @deprecated use {@link AwsClientBuilder#setRegion(String)}
*/
@Deprecated
void setRegion(Region region);
/**
* <p>
* Adds up to 50 cost allocation tags to the named resource. A cost allocation tag is a key-value pair where the key
* and value are case-sensitive. You can use cost allocation tags to categorize and track your AWS costs.
* </p>
* <p>
* When you apply tags to your ElastiCache resources, AWS generates a cost allocation report as a comma-separated
* value (CSV) file with your usage and costs aggregated by your tags. You can apply tags that represent business
* categories (such as cost centers, application names, or owners) to organize your costs across multiple services.
* For more information, see <a
* href="https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Tagging.html">Using Cost Allocation Tags in
* Amazon ElastiCache</a> in the <i>ElastiCache User Guide</i>.
* </p>
*
* @param addTagsToResourceRequest
* Represents the input of an AddTagsToResource operation.
* @return Result of the AddTagsToResource operation returned by the service.
* @throws CacheClusterNotFoundException
* The requested cluster ID does not refer to an existing cluster.
* @throws SnapshotNotFoundException
* The requested snapshot name does not refer to an existing snapshot.
* @throws TagQuotaPerResourceExceededException
* The request cannot be processed because it would cause the resource to have more than the allowed number
* of tags. The maximum number of tags permitted on a resource is 50.
* @throws InvalidARNException
* The requested Amazon Resource Name (ARN) does not refer to an existing resource.
* @sample AmazonElastiCache.AddTagsToResource
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/AddTagsToResource" target="_top">AWS
* API Documentation</a>
*/
AddTagsToResourceResult addTagsToResource(AddTagsToResourceRequest addTagsToResourceRequest);
/**
* <p>
* Allows network ingress to a cache security group. Applications using ElastiCache must be running on Amazon EC2,
* and Amazon EC2 security groups are used as the authorization mechanism.
* </p>
* <note>
* <p>
* You cannot authorize ingress from an Amazon EC2 security group in one region to an ElastiCache cluster in another
* region.
* </p>
* </note>
*
* @param authorizeCacheSecurityGroupIngressRequest
* Represents the input of an AuthorizeCacheSecurityGroupIngress operation.
* @return Result of the AuthorizeCacheSecurityGroupIngress operation returned by the service.
* @throws CacheSecurityGroupNotFoundException
* The requested cache security group name does not refer to an existing cache security group.
* @throws InvalidCacheSecurityGroupStateException
* The current state of the cache security group does not allow deletion.
* @throws AuthorizationAlreadyExistsException
* The specified Amazon EC2 security group is already authorized for the specified cache security group.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.AuthorizeCacheSecurityGroupIngress
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/AuthorizeCacheSecurityGroupIngress"
* target="_top">AWS API Documentation</a>
*/
CacheSecurityGroup authorizeCacheSecurityGroupIngress(AuthorizeCacheSecurityGroupIngressRequest authorizeCacheSecurityGroupIngressRequest);
/**
* <p>
* Apply the service update. For more information on service updates and applying them, see <a
* href="https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/applying-updates.html">Applying Service
* Updates</a>.
* </p>
*
* @param batchApplyUpdateActionRequest
* @return Result of the BatchApplyUpdateAction operation returned by the service.
* @throws ServiceUpdateNotFoundException
* The service update doesn't exist
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @sample AmazonElastiCache.BatchApplyUpdateAction
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/BatchApplyUpdateAction"
* target="_top">AWS API Documentation</a>
*/
BatchApplyUpdateActionResult batchApplyUpdateAction(BatchApplyUpdateActionRequest batchApplyUpdateActionRequest);
/**
* <p>
* Stop the service update. For more information on service updates and stopping them, see <a
* href="https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/stopping-self-service-updates.html">Stopping
* Service Updates</a>.
* </p>
*
* @param batchStopUpdateActionRequest
* @return Result of the BatchStopUpdateAction operation returned by the service.
* @throws ServiceUpdateNotFoundException
* The service update doesn't exist
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @sample AmazonElastiCache.BatchStopUpdateAction
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/BatchStopUpdateAction"
* target="_top">AWS API Documentation</a>
*/
BatchStopUpdateActionResult batchStopUpdateAction(BatchStopUpdateActionRequest batchStopUpdateActionRequest);
/**
* <p>
* Complete the migration of data.
* </p>
*
* @param completeMigrationRequest
* @return Result of the CompleteMigration operation returned by the service.
* @throws ReplicationGroupNotFoundException
* The specified replication group does not exist.
* @throws InvalidReplicationGroupStateException
* The requested replication group is not in the <code>available</code> state.
* @throws ReplicationGroupNotUnderMigrationException
* The designated replication group is not available for data migration.
* @sample AmazonElastiCache.CompleteMigration
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CompleteMigration" target="_top">AWS
* API Documentation</a>
*/
ReplicationGroup completeMigration(CompleteMigrationRequest completeMigrationRequest);
/**
* <p>
* Makes a copy of an existing snapshot.
* </p>
* <note>
* <p>
* This operation is valid for Redis only.
* </p>
* </note> <important>
* <p>
* Users or groups that have permissions to use the <code>CopySnapshot</code> operation can create their own Amazon
* S3 buckets and copy snapshots to it. To control access to your snapshots, use an IAM policy to control who has
* the ability to use the <code>CopySnapshot</code> operation. For more information about using IAM to control the
* use of ElastiCache operations, see <a
* href="https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/backups-exporting.html">Exporting Snapshots</a>
* and <a href="https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/IAM.html">Authentication & Access
* Control</a>.
* </p>
* </important>
* <p>
* You could receive the following error messages.
* </p>
* <p class="title">
* <b>Error Messages</b>
* </p>
* <ul>
* <li>
* <p>
* <b>Error Message:</b> The S3 bucket %s is outside of the region.
* </p>
* <p>
* <b>Solution:</b> Create an Amazon S3 bucket in the same region as your snapshot. For more information, see <a
* href=
* "https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/backups-exporting.html#backups-exporting-create-s3-bucket"
* >Step 1: Create an Amazon S3 Bucket</a> in the ElastiCache User Guide.
* </p>
* </li>
* <li>
* <p>
* <b>Error Message:</b> The S3 bucket %s does not exist.
* </p>
* <p>
* <b>Solution:</b> Create an Amazon S3 bucket in the same region as your snapshot. For more information, see <a
* href=
* "https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/backups-exporting.html#backups-exporting-create-s3-bucket"
* >Step 1: Create an Amazon S3 Bucket</a> in the ElastiCache User Guide.
* </p>
* </li>
* <li>
* <p>
* <b>Error Message:</b> The S3 bucket %s is not owned by the authenticated user.
* </p>
* <p>
* <b>Solution:</b> Create an Amazon S3 bucket in the same region as your snapshot. For more information, see <a
* href=
* "https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/backups-exporting.html#backups-exporting-create-s3-bucket"
* >Step 1: Create an Amazon S3 Bucket</a> in the ElastiCache User Guide.
* </p>
* </li>
* <li>
* <p>
* <b>Error Message:</b> The authenticated user does not have sufficient permissions to perform the desired
* activity.
* </p>
* <p>
* <b>Solution:</b> Contact your system administrator to get the needed permissions.
* </p>
* </li>
* <li>
* <p>
* <b>Error Message:</b> The S3 bucket %s already contains an object with key %s.
* </p>
* <p>
* <b>Solution:</b> Give the <code>TargetSnapshotName</code> a new and unique value. If exporting a snapshot, you
* could alternatively create a new Amazon S3 bucket and use this same value for <code>TargetSnapshotName</code>.
* </p>
* </li>
* <li>
* <p>
* <b>Error Message: </b> ElastiCache has not been granted READ permissions %s on the S3 Bucket.
* </p>
* <p>
* <b>Solution:</b> Add List and Read permissions on the bucket. For more information, see <a href=
* "https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/backups-exporting.html#backups-exporting-grant-access"
* >Step 2: Grant ElastiCache Access to Your Amazon S3 Bucket</a> in the ElastiCache User Guide.
* </p>
* </li>
* <li>
* <p>
* <b>Error Message: </b> ElastiCache has not been granted WRITE permissions %s on the S3 Bucket.
* </p>
* <p>
* <b>Solution:</b> Add Upload/Delete permissions on the bucket. For more information, see <a href=
* "https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/backups-exporting.html#backups-exporting-grant-access"
* >Step 2: Grant ElastiCache Access to Your Amazon S3 Bucket</a> in the ElastiCache User Guide.
* </p>
* </li>
* <li>
* <p>
* <b>Error Message: </b> ElastiCache has not been granted READ_ACP permissions %s on the S3 Bucket.
* </p>
* <p>
* <b>Solution:</b> Add View Permissions on the bucket. For more information, see <a href=
* "https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/backups-exporting.html#backups-exporting-grant-access"
* >Step 2: Grant ElastiCache Access to Your Amazon S3 Bucket</a> in the ElastiCache User Guide.
* </p>
* </li>
* </ul>
*
* @param copySnapshotRequest
* Represents the input of a <code>CopySnapshotMessage</code> operation.
* @return Result of the CopySnapshot operation returned by the service.
* @throws SnapshotAlreadyExistsException
* You already have a snapshot with the given name.
* @throws SnapshotNotFoundException
* The requested snapshot name does not refer to an existing snapshot.
* @throws SnapshotQuotaExceededException
* The request cannot be processed because it would exceed the maximum number of snapshots.
* @throws InvalidSnapshotStateException
* The current state of the snapshot does not allow the requested operation to occur.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.CopySnapshot
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CopySnapshot" target="_top">AWS API
* Documentation</a>
*/
Snapshot copySnapshot(CopySnapshotRequest copySnapshotRequest);
/**
* <p>
* Creates a cluster. All nodes in the cluster run the same protocol-compliant cache engine software, either
* Memcached or Redis.
* </p>
* <p>
* This operation is not supported for Redis (cluster mode enabled) clusters.
* </p>
*
* @param createCacheClusterRequest
* Represents the input of a CreateCacheCluster operation.
* @return Result of the CreateCacheCluster operation returned by the service.
* @throws ReplicationGroupNotFoundException
* The specified replication group does not exist.
* @throws InvalidReplicationGroupStateException
* The requested replication group is not in the <code>available</code> state.
* @throws CacheClusterAlreadyExistsException
* You already have a cluster with the given identifier.
* @throws InsufficientCacheClusterCapacityException
* The requested cache node type is not available in the specified Availability Zone. For more information,
* see <a href=
* "http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ErrorMessages.html#ErrorMessages.INSUFFICIENT_CACHE_CLUSTER_CAPACITY"
* >InsufficientCacheClusterCapacity</a> in the ElastiCache User Guide.
* @throws CacheSecurityGroupNotFoundException
* The requested cache security group name does not refer to an existing cache security group.
* @throws CacheSubnetGroupNotFoundException
* The requested cache subnet group name does not refer to an existing cache subnet group.
* @throws ClusterQuotaForCustomerExceededException
* The request cannot be processed because it would exceed the allowed number of clusters per customer.
* @throws NodeQuotaForClusterExceededException
* The request cannot be processed because it would exceed the allowed number of cache nodes in a single
* cluster.
* @throws NodeQuotaForCustomerExceededException
* The request cannot be processed because it would exceed the allowed number of cache nodes per customer.
* @throws CacheParameterGroupNotFoundException
* The requested cache parameter group name does not refer to an existing cache parameter group.
* @throws InvalidVPCNetworkStateException
* The VPC network is in an invalid state.
* @throws TagQuotaPerResourceExceededException
* The request cannot be processed because it would cause the resource to have more than the allowed number
* of tags. The maximum number of tags permitted on a resource is 50.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.CreateCacheCluster
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateCacheCluster" target="_top">AWS
* API Documentation</a>
*/
CacheCluster createCacheCluster(CreateCacheClusterRequest createCacheClusterRequest);
/**
* <p>
* Creates a new Amazon ElastiCache cache parameter group. An ElastiCache cache parameter group is a collection of
* parameters and their values that are applied to all of the nodes in any cluster or replication group using the
* CacheParameterGroup.
* </p>
* <p>
* A newly created CacheParameterGroup is an exact duplicate of the default parameter group for the
* CacheParameterGroupFamily. To customize the newly created CacheParameterGroup you can change the values of
* specific parameters. For more information, see:
* </p>
* <ul>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/AmazonElastiCache/latest/APIReference/API_ModifyCacheParameterGroup.html">
* ModifyCacheParameterGroup</a> in the ElastiCache API Reference.
* </p>
* </li>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ParameterGroups.html">Parameters and
* Parameter Groups</a> in the ElastiCache User Guide.
* </p>
* </li>
* </ul>
*
* @param createCacheParameterGroupRequest
* Represents the input of a <code>CreateCacheParameterGroup</code> operation.
* @return Result of the CreateCacheParameterGroup operation returned by the service.
* @throws CacheParameterGroupQuotaExceededException
* The request cannot be processed because it would exceed the maximum number of cache security groups.
* @throws CacheParameterGroupAlreadyExistsException
* A cache parameter group with the requested name already exists.
* @throws InvalidCacheParameterGroupStateException
* The current state of the cache parameter group does not allow the requested operation to occur.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.CreateCacheParameterGroup
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateCacheParameterGroup"
* target="_top">AWS API Documentation</a>
*/
CacheParameterGroup createCacheParameterGroup(CreateCacheParameterGroupRequest createCacheParameterGroupRequest);
/**
* <p>
* Creates a new cache security group. Use a cache security group to control access to one or more clusters.
* </p>
* <p>
* Cache security groups are only used when you are creating a cluster outside of an Amazon Virtual Private Cloud
* (Amazon VPC). If you are creating a cluster inside of a VPC, use a cache subnet group instead. For more
* information, see <a
* href="https://docs.aws.amazon.com/AmazonElastiCache/latest/APIReference/API_CreateCacheSubnetGroup.html"
* >CreateCacheSubnetGroup</a>.
* </p>
*
* @param createCacheSecurityGroupRequest
* Represents the input of a <code>CreateCacheSecurityGroup</code> operation.
* @return Result of the CreateCacheSecurityGroup operation returned by the service.
* @throws CacheSecurityGroupAlreadyExistsException
* A cache security group with the specified name already exists.
* @throws CacheSecurityGroupQuotaExceededException
* The request cannot be processed because it would exceed the allowed number of cache security groups.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.CreateCacheSecurityGroup
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateCacheSecurityGroup"
* target="_top">AWS API Documentation</a>
*/
CacheSecurityGroup createCacheSecurityGroup(CreateCacheSecurityGroupRequest createCacheSecurityGroupRequest);
/**
* <p>
* Creates a new cache subnet group.
* </p>
* <p>
* Use this parameter only when you are creating a cluster in an Amazon Virtual Private Cloud (Amazon VPC).
* </p>
*
* @param createCacheSubnetGroupRequest
* Represents the input of a <code>CreateCacheSubnetGroup</code> operation.
* @return Result of the CreateCacheSubnetGroup operation returned by the service.
* @throws CacheSubnetGroupAlreadyExistsException
* The requested cache subnet group name is already in use by an existing cache subnet group.
* @throws CacheSubnetGroupQuotaExceededException
* The request cannot be processed because it would exceed the allowed number of cache subnet groups.
* @throws CacheSubnetQuotaExceededException
* The request cannot be processed because it would exceed the allowed number of subnets in a cache subnet
* group.
* @throws InvalidSubnetException
* An invalid subnet identifier was specified.
* @throws SubnetNotAllowedException
* At least one subnet ID does not match the other subnet IDs. This mismatch typically occurs when a user
* sets one subnet ID to a regional Availability Zone and a different one to an outpost. Or when a user sets
* the subnet ID to an Outpost when not subscribed on this service.
* @sample AmazonElastiCache.CreateCacheSubnetGroup
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateCacheSubnetGroup"
* target="_top">AWS API Documentation</a>
*/
CacheSubnetGroup createCacheSubnetGroup(CreateCacheSubnetGroupRequest createCacheSubnetGroupRequest);
/**
* <p>
* Global Datastore for Redis offers fully managed, fast, reliable and secure cross-region replication. Using Global
* Datastore for Redis, you can create cross-region read replica clusters for ElastiCache for Redis to enable
* low-latency reads and disaster recovery across regions. For more information, see <a
* href="/AmazonElastiCache/latest/red-ug/Redis-Global-Clusters.html">Replication Across Regions Using Global
* Datastore</a>.
* </p>
* <ul>
* <li>
* <p>
* The <b>GlobalReplicationGroupIdSuffix</b> is the name of the Global Datastore.
* </p>
* </li>
* <li>
* <p>
* The <b>PrimaryReplicationGroupId</b> represents the name of the primary cluster that accepts writes and will
* replicate updates to the secondary cluster.
* </p>
* </li>
* </ul>
*
* @param createGlobalReplicationGroupRequest
* @return Result of the CreateGlobalReplicationGroup operation returned by the service.
* @throws ReplicationGroupNotFoundException
* The specified replication group does not exist.
* @throws InvalidReplicationGroupStateException
* The requested replication group is not in the <code>available</code> state.
* @throws GlobalReplicationGroupAlreadyExistsException
* The Global Datastore name already exists.
* @throws ServiceLinkedRoleNotFoundException
* The specified service linked role (SLR) was not found.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @sample AmazonElastiCache.CreateGlobalReplicationGroup
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateGlobalReplicationGroup"
* target="_top">AWS API Documentation</a>
*/
GlobalReplicationGroup createGlobalReplicationGroup(CreateGlobalReplicationGroupRequest createGlobalReplicationGroupRequest);
/**
* <p>
* Creates a Redis (cluster mode disabled) or a Redis (cluster mode enabled) replication group.
* </p>
* <p>
* This API can be used to create a standalone regional replication group or a secondary replication group
* associated with a Global Datastore.
* </p>
* <p>
* A Redis (cluster mode disabled) replication group is a collection of clusters, where one of the clusters is a
* read/write primary and the others are read-only replicas. Writes to the primary are asynchronously propagated to
* the replicas.
* </p>
* <p>
* A Redis (cluster mode enabled) replication group is a collection of 1 to 90 node groups (shards). Each node group
* (shard) has one read/write primary node and up to 5 read-only replica nodes. Writes to the primary are
* asynchronously propagated to the replicas. Redis (cluster mode enabled) replication groups partition the data
* across node groups (shards).
* </p>
* <p>
* When a Redis (cluster mode disabled) replication group has been successfully created, you can add one or more
* read replicas to it, up to a total of 5 read replicas. If you need to increase or decrease the number of node
* groups (console: shards), you can avail yourself of ElastiCache for Redis' scaling. For more information, see <a
* href="https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Scaling.html">Scaling ElastiCache for Redis
* Clusters</a> in the <i>ElastiCache User Guide</i>.
* </p>
* <note>
* <p>
* This operation is valid for Redis only.
* </p>
* </note>
*
* @param createReplicationGroupRequest
* Represents the input of a <code>CreateReplicationGroup</code> operation.
* @return Result of the CreateReplicationGroup operation returned by the service.
* @throws CacheClusterNotFoundException
* The requested cluster ID does not refer to an existing cluster.
* @throws InvalidCacheClusterStateException
* The requested cluster is not in the <code>available</code> state.
* @throws ReplicationGroupAlreadyExistsException
* The specified replication group already exists.
* @throws InvalidUserGroupStateException
* The user group is not in an active state.
* @throws UserGroupNotFoundException
* The user group was not found or does not exist
* @throws InsufficientCacheClusterCapacityException
* The requested cache node type is not available in the specified Availability Zone. For more information,
* see <a href=
* "http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ErrorMessages.html#ErrorMessages.INSUFFICIENT_CACHE_CLUSTER_CAPACITY"
* >InsufficientCacheClusterCapacity</a> in the ElastiCache User Guide.
* @throws CacheSecurityGroupNotFoundException
* The requested cache security group name does not refer to an existing cache security group.
* @throws CacheSubnetGroupNotFoundException
* The requested cache subnet group name does not refer to an existing cache subnet group.
* @throws ClusterQuotaForCustomerExceededException
* The request cannot be processed because it would exceed the allowed number of clusters per customer.
* @throws NodeQuotaForClusterExceededException
* The request cannot be processed because it would exceed the allowed number of cache nodes in a single
* cluster.
* @throws NodeQuotaForCustomerExceededException
* The request cannot be processed because it would exceed the allowed number of cache nodes per customer.
* @throws CacheParameterGroupNotFoundException
* The requested cache parameter group name does not refer to an existing cache parameter group.
* @throws InvalidVPCNetworkStateException
* The VPC network is in an invalid state.
* @throws TagQuotaPerResourceExceededException
* The request cannot be processed because it would cause the resource to have more than the allowed number
* of tags. The maximum number of tags permitted on a resource is 50.
* @throws NodeGroupsPerReplicationGroupQuotaExceededException
* The request cannot be processed because it would exceed the maximum allowed number of node groups
* (shards) in a single replication group. The default maximum is 90
* @throws GlobalReplicationGroupNotFoundException
* The Global Datastore does not exist
* @throws InvalidGlobalReplicationGroupStateException
* The Global Datastore is not available or in primary-only state.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.CreateReplicationGroup
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateReplicationGroup"
* target="_top">AWS API Documentation</a>
*/
ReplicationGroup createReplicationGroup(CreateReplicationGroupRequest createReplicationGroupRequest);
/**
* <p>
* Creates a copy of an entire cluster or replication group at a specific moment in time.
* </p>
* <note>
* <p>
* This operation is valid for Redis only.
* </p>
* </note>
*
* @param createSnapshotRequest
* Represents the input of a <code>CreateSnapshot</code> operation.
* @return Result of the CreateSnapshot operation returned by the service.
* @throws SnapshotAlreadyExistsException
* You already have a snapshot with the given name.
* @throws CacheClusterNotFoundException
* The requested cluster ID does not refer to an existing cluster.
* @throws ReplicationGroupNotFoundException
* The specified replication group does not exist.
* @throws InvalidCacheClusterStateException
* The requested cluster is not in the <code>available</code> state.
* @throws InvalidReplicationGroupStateException
* The requested replication group is not in the <code>available</code> state.
* @throws SnapshotQuotaExceededException
* The request cannot be processed because it would exceed the maximum number of snapshots.
* @throws SnapshotFeatureNotSupportedException
* You attempted one of the following operations:</p>
* <ul>
* <li>
* <p>
* Creating a snapshot of a Redis cluster running on a <code>cache.t1.micro</code> cache node.
* </p>
* </li>
* <li>
* <p>
* Creating a snapshot of a cluster that is running Memcached rather than Redis.
* </p>
* </li>
* </ul>
* <p>
* Neither of these are supported by ElastiCache.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @sample AmazonElastiCache.CreateSnapshot
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateSnapshot" target="_top">AWS API
* Documentation</a>
*/
Snapshot createSnapshot(CreateSnapshotRequest createSnapshotRequest);
/**
* <p>
* For Redis engine version 6.x onwards: Creates a Redis user. For more information, see <a
* href="http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Clusters.RBAC.html">Using Role Based Access
* Control (RBAC)</a>.
* </p>
*
* @param createUserRequest
* @return Result of the CreateUser operation returned by the service.
* @throws UserAlreadyExistsException
* A user with this ID already exists.
* @throws UserQuotaExceededException
* The quota of users has been exceeded.
* @throws DuplicateUserNameException
* A user with this username already exists.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.CreateUser
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateUser" target="_top">AWS API
* Documentation</a>
*/
CreateUserResult createUser(CreateUserRequest createUserRequest);
/**
* <p>
* For Redis engine version 6.x onwards: Creates a Redis user group. For more information, see <a
* href="http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Clusters.RBAC.html">Using Role Based Access
* Control (RBAC)</a>
* </p>
*
* @param createUserGroupRequest
* @return Result of the CreateUserGroup operation returned by the service.
* @throws UserNotFoundException
* The user does not exist or could not be found.
* @throws DuplicateUserNameException
* A user with this username already exists.
* @throws UserGroupAlreadyExistsException
* The user group with this ID already exists.
* @throws DefaultUserRequiredException
* You must add default user to a user group.
* @throws UserGroupQuotaExceededException
* The number of users exceeds the user group limit.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @sample AmazonElastiCache.CreateUserGroup
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateUserGroup" target="_top">AWS
* API Documentation</a>
*/
CreateUserGroupResult createUserGroup(CreateUserGroupRequest createUserGroupRequest);
/**
* <p>
* Decreases the number of node groups in a Global Datastore
* </p>
*
* @param decreaseNodeGroupsInGlobalReplicationGroupRequest
* @return Result of the DecreaseNodeGroupsInGlobalReplicationGroup operation returned by the service.
* @throws GlobalReplicationGroupNotFoundException
* The Global Datastore does not exist
* @throws InvalidGlobalReplicationGroupStateException
* The Global Datastore is not available or in primary-only state.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.DecreaseNodeGroupsInGlobalReplicationGroup
* @see <a
* href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DecreaseNodeGroupsInGlobalReplicationGroup"
* target="_top">AWS API Documentation</a>
*/
GlobalReplicationGroup decreaseNodeGroupsInGlobalReplicationGroup(
DecreaseNodeGroupsInGlobalReplicationGroupRequest decreaseNodeGroupsInGlobalReplicationGroupRequest);
/**
* <p>
* Dynamically decreases the number of replicas in a Redis (cluster mode disabled) replication group or the number
* of replica nodes in one or more node groups (shards) of a Redis (cluster mode enabled) replication group. This
* operation is performed with no cluster down time.
* </p>
*
* @param decreaseReplicaCountRequest
* @return Result of the DecreaseReplicaCount operation returned by the service.
* @throws ReplicationGroupNotFoundException
* The specified replication group does not exist.
* @throws InvalidReplicationGroupStateException
* The requested replication group is not in the <code>available</code> state.
* @throws InvalidCacheClusterStateException
* The requested cluster is not in the <code>available</code> state.
* @throws InvalidVPCNetworkStateException
* The VPC network is in an invalid state.
* @throws InsufficientCacheClusterCapacityException
* The requested cache node type is not available in the specified Availability Zone. For more information,
* see <a href=
* "http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ErrorMessages.html#ErrorMessages.INSUFFICIENT_CACHE_CLUSTER_CAPACITY"
* >InsufficientCacheClusterCapacity</a> in the ElastiCache User Guide.
* @throws ClusterQuotaForCustomerExceededException
* The request cannot be processed because it would exceed the allowed number of clusters per customer.
* @throws NodeGroupsPerReplicationGroupQuotaExceededException
* The request cannot be processed because it would exceed the maximum allowed number of node groups
* (shards) in a single replication group. The default maximum is 90
* @throws NodeQuotaForCustomerExceededException
* The request cannot be processed because it would exceed the allowed number of cache nodes per customer.
* @throws ServiceLinkedRoleNotFoundException
* The specified service linked role (SLR) was not found.
* @throws NoOperationException
* The operation was not performed because no changes were required.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.DecreaseReplicaCount
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DecreaseReplicaCount"
* target="_top">AWS API Documentation</a>
*/
ReplicationGroup decreaseReplicaCount(DecreaseReplicaCountRequest decreaseReplicaCountRequest);
/**
* <p>
* Deletes a previously provisioned cluster. <code>DeleteCacheCluster</code> deletes all associated cache nodes,
* node endpoints and the cluster itself. When you receive a successful response from this operation, Amazon
* ElastiCache immediately begins deleting the cluster; you cannot cancel or revert this operation.
* </p>
* <p>
* This operation is not valid for:
* </p>
* <ul>
* <li>
* <p>
* Redis (cluster mode enabled) clusters
* </p>
* </li>
* <li>
* <p>
* A cluster that is the last read replica of a replication group
* </p>
* </li>
* <li>
* <p>
* A node group (shard) that has Multi-AZ mode enabled
* </p>
* </li>
* <li>
* <p>
* A cluster from a Redis (cluster mode enabled) replication group
* </p>
* </li>
* <li>
* <p>
* A cluster that is not in the <code>available</code> state
* </p>
* </li>
* </ul>
*
* @param deleteCacheClusterRequest
* Represents the input of a <code>DeleteCacheCluster</code> operation.
* @return Result of the DeleteCacheCluster operation returned by the service.
* @throws CacheClusterNotFoundException
* The requested cluster ID does not refer to an existing cluster.
* @throws InvalidCacheClusterStateException
* The requested cluster is not in the <code>available</code> state.
* @throws SnapshotAlreadyExistsException
* You already have a snapshot with the given name.
* @throws SnapshotFeatureNotSupportedException
* You attempted one of the following operations:</p>
* <ul>
* <li>
* <p>
* Creating a snapshot of a Redis cluster running on a <code>cache.t1.micro</code> cache node.
* </p>
* </li>
* <li>
* <p>
* Creating a snapshot of a cluster that is running Memcached rather than Redis.
* </p>
* </li>
* </ul>
* <p>
* Neither of these are supported by ElastiCache.
* @throws SnapshotQuotaExceededException
* The request cannot be processed because it would exceed the maximum number of snapshots.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.DeleteCacheCluster
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteCacheCluster" target="_top">AWS
* API Documentation</a>
*/
CacheCluster deleteCacheCluster(DeleteCacheClusterRequest deleteCacheClusterRequest);
/**
* <p>
* Deletes the specified cache parameter group. You cannot delete a cache parameter group if it is associated with
* any cache clusters.
* </p>
*
* @param deleteCacheParameterGroupRequest
* Represents the input of a <code>DeleteCacheParameterGroup</code> operation.
* @return Result of the DeleteCacheParameterGroup operation returned by the service.
* @throws InvalidCacheParameterGroupStateException
* The current state of the cache parameter group does not allow the requested operation to occur.
* @throws CacheParameterGroupNotFoundException
* The requested cache parameter group name does not refer to an existing cache parameter group.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.DeleteCacheParameterGroup
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteCacheParameterGroup"
* target="_top">AWS API Documentation</a>
*/
DeleteCacheParameterGroupResult deleteCacheParameterGroup(DeleteCacheParameterGroupRequest deleteCacheParameterGroupRequest);
/**
* <p>
* Deletes a cache security group.
* </p>
* <note>
* <p>
* You cannot delete a cache security group if it is associated with any clusters.
* </p>
* </note>
*
* @param deleteCacheSecurityGroupRequest
* Represents the input of a <code>DeleteCacheSecurityGroup</code> operation.
* @return Result of the DeleteCacheSecurityGroup operation returned by the service.
* @throws InvalidCacheSecurityGroupStateException
* The current state of the cache security group does not allow deletion.
* @throws CacheSecurityGroupNotFoundException
* The requested cache security group name does not refer to an existing cache security group.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.DeleteCacheSecurityGroup
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteCacheSecurityGroup"
* target="_top">AWS API Documentation</a>
*/
DeleteCacheSecurityGroupResult deleteCacheSecurityGroup(DeleteCacheSecurityGroupRequest deleteCacheSecurityGroupRequest);
/**
* <p>
* Deletes a cache subnet group.
* </p>
* <note>
* <p>
* You cannot delete a cache subnet group if it is associated with any clusters.
* </p>
* </note>
*
* @param deleteCacheSubnetGroupRequest
* Represents the input of a <code>DeleteCacheSubnetGroup</code> operation.
* @return Result of the DeleteCacheSubnetGroup operation returned by the service.
* @throws CacheSubnetGroupInUseException
* The requested cache subnet group is currently in use.
* @throws CacheSubnetGroupNotFoundException
* The requested cache subnet group name does not refer to an existing cache subnet group.
* @sample AmazonElastiCache.DeleteCacheSubnetGroup
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteCacheSubnetGroup"
* target="_top">AWS API Documentation</a>
*/
DeleteCacheSubnetGroupResult deleteCacheSubnetGroup(DeleteCacheSubnetGroupRequest deleteCacheSubnetGroupRequest);
/**
* <p>
* Deleting a Global Datastore is a two-step process:
* </p>
* <ul>
* <li>
* <p>
* First, you must <a>DisassociateGlobalReplicationGroup</a> to remove the secondary clusters in the Global
* Datastore.
* </p>
* </li>
* <li>
* <p>
* Once the Global Datastore contains only the primary cluster, you can use DeleteGlobalReplicationGroup API to
* delete the Global Datastore while retainining the primary cluster using Retainโฆ= true.
* </p>
* </li>
* </ul>
* <p>
* Since the Global Datastore has only a primary cluster, you can delete the Global Datastore while retaining the
* primary by setting <code>RetainPrimaryCluster=true</code>.
* </p>
* <p>
* When you receive a successful response from this operation, Amazon ElastiCache immediately begins deleting the
* selected resources; you cannot cancel or revert this operation.
* </p>
*
* @param deleteGlobalReplicationGroupRequest
* @return Result of the DeleteGlobalReplicationGroup operation returned by the service.
* @throws GlobalReplicationGroupNotFoundException
* The Global Datastore does not exist
* @throws InvalidGlobalReplicationGroupStateException
* The Global Datastore is not available or in primary-only state.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @sample AmazonElastiCache.DeleteGlobalReplicationGroup
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteGlobalReplicationGroup"
* target="_top">AWS API Documentation</a>
*/
GlobalReplicationGroup deleteGlobalReplicationGroup(DeleteGlobalReplicationGroupRequest deleteGlobalReplicationGroupRequest);
/**
* <p>
* Deletes an existing replication group. By default, this operation deletes the entire replication group, including
* the primary/primaries and all of the read replicas. If the replication group has only one primary, you can
* optionally delete only the read replicas, while retaining the primary by setting
* <code>RetainPrimaryCluster=true</code>.
* </p>
* <p>
* When you receive a successful response from this operation, Amazon ElastiCache immediately begins deleting the
* selected resources; you cannot cancel or revert this operation.
* </p>
* <note>
* <p>
* This operation is valid for Redis only.
* </p>
* </note>
*
* @param deleteReplicationGroupRequest
* Represents the input of a <code>DeleteReplicationGroup</code> operation.
* @return Result of the DeleteReplicationGroup operation returned by the service.
* @throws ReplicationGroupNotFoundException
* The specified replication group does not exist.
* @throws InvalidReplicationGroupStateException
* The requested replication group is not in the <code>available</code> state.
* @throws SnapshotAlreadyExistsException
* You already have a snapshot with the given name.
* @throws SnapshotFeatureNotSupportedException
* You attempted one of the following operations:</p>
* <ul>
* <li>
* <p>
* Creating a snapshot of a Redis cluster running on a <code>cache.t1.micro</code> cache node.
* </p>
* </li>
* <li>
* <p>
* Creating a snapshot of a cluster that is running Memcached rather than Redis.
* </p>
* </li>
* </ul>
* <p>
* Neither of these are supported by ElastiCache.
* @throws SnapshotQuotaExceededException
* The request cannot be processed because it would exceed the maximum number of snapshots.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.DeleteReplicationGroup
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteReplicationGroup"
* target="_top">AWS API Documentation</a>
*/
ReplicationGroup deleteReplicationGroup(DeleteReplicationGroupRequest deleteReplicationGroupRequest);
/**
* <p>
* Deletes an existing snapshot. When you receive a successful response from this operation, ElastiCache immediately
* begins deleting the snapshot; you cannot cancel or revert this operation.
* </p>
* <note>
* <p>
* This operation is valid for Redis only.
* </p>
* </note>
*
* @param deleteSnapshotRequest
* Represents the input of a <code>DeleteSnapshot</code> operation.
* @return Result of the DeleteSnapshot operation returned by the service.
* @throws SnapshotNotFoundException
* The requested snapshot name does not refer to an existing snapshot.
* @throws InvalidSnapshotStateException
* The current state of the snapshot does not allow the requested operation to occur.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.DeleteSnapshot
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteSnapshot" target="_top">AWS API
* Documentation</a>
*/
Snapshot deleteSnapshot(DeleteSnapshotRequest deleteSnapshotRequest);
/**
* <p>
* For Redis engine version 6.x onwards: Deletes a user. The user will be removed from all user groups and in turn
* removed from all replication groups. For more information, see <a
* href="http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Clusters.RBAC.html">Using Role Based Access
* Control (RBAC)</a>.
* </p>
*
* @param deleteUserRequest
* @return Result of the DeleteUser operation returned by the service.
* @throws InvalidUserStateException
* The user is not in active state.
* @throws UserNotFoundException
* The user does not exist or could not be found.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws DefaultUserAssociatedToUserGroupException
* @sample AmazonElastiCache.DeleteUser
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteUser" target="_top">AWS API
* Documentation</a>
*/
DeleteUserResult deleteUser(DeleteUserRequest deleteUserRequest);
/**
* <p>
* For Redis engine version 6.x onwards: Deletes a ser group. The user group must first be disassociated from the
* replcation group before it can be deleted. For more information, see <a
* href="http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Clusters.RBAC.html">Using Role Based Access
* Control (RBAC)</a>.
* </p>
*
* @param deleteUserGroupRequest
* @return Result of the DeleteUserGroup operation returned by the service.
* @throws UserGroupNotFoundException
* The user group was not found or does not exist
* @throws InvalidUserGroupStateException
* The user group is not in an active state.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @sample AmazonElastiCache.DeleteUserGroup
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteUserGroup" target="_top">AWS
* API Documentation</a>
*/
DeleteUserGroupResult deleteUserGroup(DeleteUserGroupRequest deleteUserGroupRequest);
/**
* <p>
* Returns information about all provisioned clusters if no cluster identifier is specified, or about a specific
* cache cluster if a cluster identifier is supplied.
* </p>
* <p>
* By default, abbreviated information about the clusters is returned. You can use the optional
* <i>ShowCacheNodeInfo</i> flag to retrieve detailed information about the cache nodes associated with the
* clusters. These details include the DNS address and port for the cache node endpoint.
* </p>
* <p>
* If the cluster is in the <i>creating</i> state, only cluster-level information is displayed until all of the
* nodes are successfully provisioned.
* </p>
* <p>
* If the cluster is in the <i>deleting</i> state, only cluster-level information is displayed.
* </p>
* <p>
* If cache nodes are currently being added to the cluster, node endpoint information and creation time for the
* additional nodes are not displayed until they are completely provisioned. When the cluster state is
* <i>available</i>, the cluster is ready for use.
* </p>
* <p>
* If cache nodes are currently being removed from the cluster, no endpoint information for the removed nodes is
* displayed.
* </p>
*
* @param describeCacheClustersRequest
* Represents the input of a <code>DescribeCacheClusters</code> operation.
* @return Result of the DescribeCacheClusters operation returned by the service.
* @throws CacheClusterNotFoundException
* The requested cluster ID does not refer to an existing cluster.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.DescribeCacheClusters
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeCacheClusters"
* target="_top">AWS API Documentation</a>
*/
DescribeCacheClustersResult describeCacheClusters(DescribeCacheClustersRequest describeCacheClustersRequest);
/**
* Simplified method form for invoking the DescribeCacheClusters operation.
*
* @see #describeCacheClusters(DescribeCacheClustersRequest)
*/
DescribeCacheClustersResult describeCacheClusters();
/**
* <p>
* Returns a list of the available cache engines and their versions.
* </p>
*
* @param describeCacheEngineVersionsRequest
* Represents the input of a <code>DescribeCacheEngineVersions</code> operation.
* @return Result of the DescribeCacheEngineVersions operation returned by the service.
* @sample AmazonElastiCache.DescribeCacheEngineVersions
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeCacheEngineVersions"
* target="_top">AWS API Documentation</a>
*/
DescribeCacheEngineVersionsResult describeCacheEngineVersions(DescribeCacheEngineVersionsRequest describeCacheEngineVersionsRequest);
/**
* Simplified method form for invoking the DescribeCacheEngineVersions operation.
*
* @see #describeCacheEngineVersions(DescribeCacheEngineVersionsRequest)
*/
DescribeCacheEngineVersionsResult describeCacheEngineVersions();
/**
* <p>
* Returns a list of cache parameter group descriptions. If a cache parameter group name is specified, the list
* contains only the descriptions for that group.
* </p>
*
* @param describeCacheParameterGroupsRequest
* Represents the input of a <code>DescribeCacheParameterGroups</code> operation.
* @return Result of the DescribeCacheParameterGroups operation returned by the service.
* @throws CacheParameterGroupNotFoundException
* The requested cache parameter group name does not refer to an existing cache parameter group.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.DescribeCacheParameterGroups
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeCacheParameterGroups"
* target="_top">AWS API Documentation</a>
*/
DescribeCacheParameterGroupsResult describeCacheParameterGroups(DescribeCacheParameterGroupsRequest describeCacheParameterGroupsRequest);
/**
* Simplified method form for invoking the DescribeCacheParameterGroups operation.
*
* @see #describeCacheParameterGroups(DescribeCacheParameterGroupsRequest)
*/
DescribeCacheParameterGroupsResult describeCacheParameterGroups();
/**
* <p>
* Returns the detailed parameter list for a particular cache parameter group.
* </p>
*
* @param describeCacheParametersRequest
* Represents the input of a <code>DescribeCacheParameters</code> operation.
* @return Result of the DescribeCacheParameters operation returned by the service.
* @throws CacheParameterGroupNotFoundException
* The requested cache parameter group name does not refer to an existing cache parameter group.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.DescribeCacheParameters
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeCacheParameters"
* target="_top">AWS API Documentation</a>
*/
DescribeCacheParametersResult describeCacheParameters(DescribeCacheParametersRequest describeCacheParametersRequest);
/**
* <p>
* Returns a list of cache security group descriptions. If a cache security group name is specified, the list
* contains only the description of that group. This applicable only when you have ElastiCache in Classic setup
* </p>
*
* @param describeCacheSecurityGroupsRequest
* Represents the input of a <code>DescribeCacheSecurityGroups</code> operation.
* @return Result of the DescribeCacheSecurityGroups operation returned by the service.
* @throws CacheSecurityGroupNotFoundException
* The requested cache security group name does not refer to an existing cache security group.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.DescribeCacheSecurityGroups
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeCacheSecurityGroups"
* target="_top">AWS API Documentation</a>
*/
DescribeCacheSecurityGroupsResult describeCacheSecurityGroups(DescribeCacheSecurityGroupsRequest describeCacheSecurityGroupsRequest);
/**
* Simplified method form for invoking the DescribeCacheSecurityGroups operation.
*
* @see #describeCacheSecurityGroups(DescribeCacheSecurityGroupsRequest)
*/
DescribeCacheSecurityGroupsResult describeCacheSecurityGroups();
/**
* <p>
* Returns a list of cache subnet group descriptions. If a subnet group name is specified, the list contains only
* the description of that group. This is applicable only when you have ElastiCache in VPC setup. All ElastiCache
* clusters now launch in VPC by default.
* </p>
*
* @param describeCacheSubnetGroupsRequest
* Represents the input of a <code>DescribeCacheSubnetGroups</code> operation.
* @return Result of the DescribeCacheSubnetGroups operation returned by the service.
* @throws CacheSubnetGroupNotFoundException
* The requested cache subnet group name does not refer to an existing cache subnet group.
* @sample AmazonElastiCache.DescribeCacheSubnetGroups
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeCacheSubnetGroups"
* target="_top">AWS API Documentation</a>
*/
DescribeCacheSubnetGroupsResult describeCacheSubnetGroups(DescribeCacheSubnetGroupsRequest describeCacheSubnetGroupsRequest);
/**
* Simplified method form for invoking the DescribeCacheSubnetGroups operation.
*
* @see #describeCacheSubnetGroups(DescribeCacheSubnetGroupsRequest)
*/
DescribeCacheSubnetGroupsResult describeCacheSubnetGroups();
/**
* <p>
* Returns the default engine and system parameter information for the specified cache engine.
* </p>
*
* @param describeEngineDefaultParametersRequest
* Represents the input of a <code>DescribeEngineDefaultParameters</code> operation.
* @return Result of the DescribeEngineDefaultParameters operation returned by the service.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.DescribeEngineDefaultParameters
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeEngineDefaultParameters"
* target="_top">AWS API Documentation</a>
*/
EngineDefaults describeEngineDefaultParameters(DescribeEngineDefaultParametersRequest describeEngineDefaultParametersRequest);
/**
* <p>
* Returns events related to clusters, cache security groups, and cache parameter groups. You can obtain events
* specific to a particular cluster, cache security group, or cache parameter group by providing the name as a
* parameter.
* </p>
* <p>
* By default, only the events occurring within the last hour are returned; however, you can retrieve up to 14 days'
* worth of events if necessary.
* </p>
*
* @param describeEventsRequest
* Represents the input of a <code>DescribeEvents</code> operation.
* @return Result of the DescribeEvents operation returned by the service.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.DescribeEvents
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeEvents" target="_top">AWS API
* Documentation</a>
*/
DescribeEventsResult describeEvents(DescribeEventsRequest describeEventsRequest);
/**
* Simplified method form for invoking the DescribeEvents operation.
*
* @see #describeEvents(DescribeEventsRequest)
*/
DescribeEventsResult describeEvents();
/**
* <p>
* Returns information about a particular global replication group. If no identifier is specified, returns
* information about all Global Datastores.
* </p>
*
* @param describeGlobalReplicationGroupsRequest
* @return Result of the DescribeGlobalReplicationGroups operation returned by the service.
* @throws GlobalReplicationGroupNotFoundException
* The Global Datastore does not exist
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.DescribeGlobalReplicationGroups
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeGlobalReplicationGroups"
* target="_top">AWS API Documentation</a>
*/
DescribeGlobalReplicationGroupsResult describeGlobalReplicationGroups(DescribeGlobalReplicationGroupsRequest describeGlobalReplicationGroupsRequest);
/**
* <p>
* Returns information about a particular replication group. If no identifier is specified,
* <code>DescribeReplicationGroups</code> returns information about all replication groups.
* </p>
* <note>
* <p>
* This operation is valid for Redis only.
* </p>
* </note>
*
* @param describeReplicationGroupsRequest
* Represents the input of a <code>DescribeReplicationGroups</code> operation.
* @return Result of the DescribeReplicationGroups operation returned by the service.
* @throws ReplicationGroupNotFoundException
* The specified replication group does not exist.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.DescribeReplicationGroups
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeReplicationGroups"
* target="_top">AWS API Documentation</a>
*/
DescribeReplicationGroupsResult describeReplicationGroups(DescribeReplicationGroupsRequest describeReplicationGroupsRequest);
/**
* Simplified method form for invoking the DescribeReplicationGroups operation.
*
* @see #describeReplicationGroups(DescribeReplicationGroupsRequest)
*/
DescribeReplicationGroupsResult describeReplicationGroups();
/**
* <p>
* Returns information about reserved cache nodes for this account, or about a specified reserved cache node.
* </p>
*
* @param describeReservedCacheNodesRequest
* Represents the input of a <code>DescribeReservedCacheNodes</code> operation.
* @return Result of the DescribeReservedCacheNodes operation returned by the service.
* @throws ReservedCacheNodeNotFoundException
* The requested reserved cache node was not found.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.DescribeReservedCacheNodes
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeReservedCacheNodes"
* target="_top">AWS API Documentation</a>
*/
DescribeReservedCacheNodesResult describeReservedCacheNodes(DescribeReservedCacheNodesRequest describeReservedCacheNodesRequest);
/**
* Simplified method form for invoking the DescribeReservedCacheNodes operation.
*
* @see #describeReservedCacheNodes(DescribeReservedCacheNodesRequest)
*/
DescribeReservedCacheNodesResult describeReservedCacheNodes();
/**
* <p>
* Lists available reserved cache node offerings.
* </p>
*
* @param describeReservedCacheNodesOfferingsRequest
* Represents the input of a <code>DescribeReservedCacheNodesOfferings</code> operation.
* @return Result of the DescribeReservedCacheNodesOfferings operation returned by the service.
* @throws ReservedCacheNodesOfferingNotFoundException
* The requested cache node offering does not exist.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.DescribeReservedCacheNodesOfferings
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeReservedCacheNodesOfferings"
* target="_top">AWS API Documentation</a>
*/
DescribeReservedCacheNodesOfferingsResult describeReservedCacheNodesOfferings(
DescribeReservedCacheNodesOfferingsRequest describeReservedCacheNodesOfferingsRequest);
/**
* Simplified method form for invoking the DescribeReservedCacheNodesOfferings operation.
*
* @see #describeReservedCacheNodesOfferings(DescribeReservedCacheNodesOfferingsRequest)
*/
DescribeReservedCacheNodesOfferingsResult describeReservedCacheNodesOfferings();
/**
* <p>
* Returns details of the service updates
* </p>
*
* @param describeServiceUpdatesRequest
* @return Result of the DescribeServiceUpdates operation returned by the service.
* @throws ServiceUpdateNotFoundException
* The service update doesn't exist
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.DescribeServiceUpdates
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeServiceUpdates"
* target="_top">AWS API Documentation</a>
*/
DescribeServiceUpdatesResult describeServiceUpdates(DescribeServiceUpdatesRequest describeServiceUpdatesRequest);
/**
* <p>
* Returns information about cluster or replication group snapshots. By default, <code>DescribeSnapshots</code>
* lists all of your snapshots; it can optionally describe a single snapshot, or just the snapshots associated with
* a particular cache cluster.
* </p>
* <note>
* <p>
* This operation is valid for Redis only.
* </p>
* </note>
*
* @param describeSnapshotsRequest
* Represents the input of a <code>DescribeSnapshotsMessage</code> operation.
* @return Result of the DescribeSnapshots operation returned by the service.
* @throws CacheClusterNotFoundException
* The requested cluster ID does not refer to an existing cluster.
* @throws SnapshotNotFoundException
* The requested snapshot name does not refer to an existing snapshot.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.DescribeSnapshots
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeSnapshots" target="_top">AWS
* API Documentation</a>
*/
DescribeSnapshotsResult describeSnapshots(DescribeSnapshotsRequest describeSnapshotsRequest);
/**
* Simplified method form for invoking the DescribeSnapshots operation.
*
* @see #describeSnapshots(DescribeSnapshotsRequest)
*/
DescribeSnapshotsResult describeSnapshots();
/**
* <p>
* Returns details of the update actions
* </p>
*
* @param describeUpdateActionsRequest
* @return Result of the DescribeUpdateActions operation returned by the service.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.DescribeUpdateActions
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeUpdateActions"
* target="_top">AWS API Documentation</a>
*/
DescribeUpdateActionsResult describeUpdateActions(DescribeUpdateActionsRequest describeUpdateActionsRequest);
/**
* <p>
* Returns a list of user groups.
* </p>
*
* @param describeUserGroupsRequest
* @return Result of the DescribeUserGroups operation returned by the service.
* @throws UserGroupNotFoundException
* The user group was not found or does not exist
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.DescribeUserGroups
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeUserGroups" target="_top">AWS
* API Documentation</a>
*/
DescribeUserGroupsResult describeUserGroups(DescribeUserGroupsRequest describeUserGroupsRequest);
/**
* <p>
* Returns a list of users.
* </p>
*
* @param describeUsersRequest
* @return Result of the DescribeUsers operation returned by the service.
* @throws UserNotFoundException
* The user does not exist or could not be found.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.DescribeUsers
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DescribeUsers" target="_top">AWS API
* Documentation</a>
*/
DescribeUsersResult describeUsers(DescribeUsersRequest describeUsersRequest);
/**
* <p>
* Remove a secondary cluster from the Global Datastore using the Global Datastore name. The secondary cluster will
* no longer receive updates from the primary cluster, but will remain as a standalone cluster in that AWS region.
* </p>
*
* @param disassociateGlobalReplicationGroupRequest
* @return Result of the DisassociateGlobalReplicationGroup operation returned by the service.
* @throws GlobalReplicationGroupNotFoundException
* The Global Datastore does not exist
* @throws InvalidGlobalReplicationGroupStateException
* The Global Datastore is not available or in primary-only state.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.DisassociateGlobalReplicationGroup
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DisassociateGlobalReplicationGroup"
* target="_top">AWS API Documentation</a>
*/
GlobalReplicationGroup disassociateGlobalReplicationGroup(DisassociateGlobalReplicationGroupRequest disassociateGlobalReplicationGroupRequest);
/**
* <p>
* Used to failover the primary region to a selected secondary region. The selected secondary region will become
* primary, and all other clusters will become secondary.
* </p>
*
* @param failoverGlobalReplicationGroupRequest
* @return Result of the FailoverGlobalReplicationGroup operation returned by the service.
* @throws GlobalReplicationGroupNotFoundException
* The Global Datastore does not exist
* @throws InvalidGlobalReplicationGroupStateException
* The Global Datastore is not available or in primary-only state.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.FailoverGlobalReplicationGroup
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/FailoverGlobalReplicationGroup"
* target="_top">AWS API Documentation</a>
*/
GlobalReplicationGroup failoverGlobalReplicationGroup(FailoverGlobalReplicationGroupRequest failoverGlobalReplicationGroupRequest);
/**
* <p>
* Increase the number of node groups in the Global Datastore
* </p>
*
* @param increaseNodeGroupsInGlobalReplicationGroupRequest
* @return Result of the IncreaseNodeGroupsInGlobalReplicationGroup operation returned by the service.
* @throws GlobalReplicationGroupNotFoundException
* The Global Datastore does not exist
* @throws InvalidGlobalReplicationGroupStateException
* The Global Datastore is not available or in primary-only state.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @sample AmazonElastiCache.IncreaseNodeGroupsInGlobalReplicationGroup
* @see <a
* href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/IncreaseNodeGroupsInGlobalReplicationGroup"
* target="_top">AWS API Documentation</a>
*/
GlobalReplicationGroup increaseNodeGroupsInGlobalReplicationGroup(
IncreaseNodeGroupsInGlobalReplicationGroupRequest increaseNodeGroupsInGlobalReplicationGroupRequest);
/**
* <p>
* Dynamically increases the number of replics in a Redis (cluster mode disabled) replication group or the number of
* replica nodes in one or more node groups (shards) of a Redis (cluster mode enabled) replication group. This
* operation is performed with no cluster down time.
* </p>
*
* @param increaseReplicaCountRequest
* @return Result of the IncreaseReplicaCount operation returned by the service.
* @throws ReplicationGroupNotFoundException
* The specified replication group does not exist.
* @throws InvalidReplicationGroupStateException
* The requested replication group is not in the <code>available</code> state.
* @throws InvalidCacheClusterStateException
* The requested cluster is not in the <code>available</code> state.
* @throws InvalidVPCNetworkStateException
* The VPC network is in an invalid state.
* @throws InsufficientCacheClusterCapacityException
* The requested cache node type is not available in the specified Availability Zone. For more information,
* see <a href=
* "http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ErrorMessages.html#ErrorMessages.INSUFFICIENT_CACHE_CLUSTER_CAPACITY"
* >InsufficientCacheClusterCapacity</a> in the ElastiCache User Guide.
* @throws ClusterQuotaForCustomerExceededException
* The request cannot be processed because it would exceed the allowed number of clusters per customer.
* @throws NodeGroupsPerReplicationGroupQuotaExceededException
* The request cannot be processed because it would exceed the maximum allowed number of node groups
* (shards) in a single replication group. The default maximum is 90
* @throws NodeQuotaForCustomerExceededException
* The request cannot be processed because it would exceed the allowed number of cache nodes per customer.
* @throws NoOperationException
* The operation was not performed because no changes were required.
* @throws InvalidKMSKeyException
* The KMS key supplied is not valid.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.IncreaseReplicaCount
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/IncreaseReplicaCount"
* target="_top">AWS API Documentation</a>
*/
ReplicationGroup increaseReplicaCount(IncreaseReplicaCountRequest increaseReplicaCountRequest);
/**
* <p>
* Lists all available node types that you can scale your Redis cluster's or replication group's current node type.
* </p>
* <p>
* When you use the <code>ModifyCacheCluster</code> or <code>ModifyReplicationGroup</code> operations to scale your
* cluster or replication group, the value of the <code>CacheNodeType</code> parameter must be one of the node types
* returned by this operation.
* </p>
*
* @param listAllowedNodeTypeModificationsRequest
* The input parameters for the <code>ListAllowedNodeTypeModifications</code> operation.
* @return Result of the ListAllowedNodeTypeModifications operation returned by the service.
* @throws CacheClusterNotFoundException
* The requested cluster ID does not refer to an existing cluster.
* @throws ReplicationGroupNotFoundException
* The specified replication group does not exist.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @sample AmazonElastiCache.ListAllowedNodeTypeModifications
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ListAllowedNodeTypeModifications"
* target="_top">AWS API Documentation</a>
*/
ListAllowedNodeTypeModificationsResult listAllowedNodeTypeModifications(ListAllowedNodeTypeModificationsRequest listAllowedNodeTypeModificationsRequest);
/**
* Simplified method form for invoking the ListAllowedNodeTypeModifications operation.
*
* @see #listAllowedNodeTypeModifications(ListAllowedNodeTypeModificationsRequest)
*/
ListAllowedNodeTypeModificationsResult listAllowedNodeTypeModifications();
/**
* <p>
* Lists all cost allocation tags currently on the named resource. A <code>cost allocation tag</code> is a key-value
* pair where the key is case-sensitive and the value is optional. You can use cost allocation tags to categorize
* and track your AWS costs.
* </p>
* <p>
* If the cluster is not in the <i>available</i> state, <code>ListTagsForResource</code> returns an error.
* </p>
* <p>
* You can have a maximum of 50 cost allocation tags on an ElastiCache resource. For more information, see <a
* href="https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Tagging.html">Monitoring Costs with Tags</a>.
* </p>
*
* @param listTagsForResourceRequest
* The input parameters for the <code>ListTagsForResource</code> operation.
* @return Result of the ListTagsForResource operation returned by the service.
* @throws CacheClusterNotFoundException
* The requested cluster ID does not refer to an existing cluster.
* @throws SnapshotNotFoundException
* The requested snapshot name does not refer to an existing snapshot.
* @throws InvalidARNException
* The requested Amazon Resource Name (ARN) does not refer to an existing resource.
* @sample AmazonElastiCache.ListTagsForResource
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ListTagsForResource"
* target="_top">AWS API Documentation</a>
*/
ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest);
/**
* <p>
* Modifies the settings for a cluster. You can use this operation to change one or more cluster configuration
* parameters by specifying the parameters and the new values.
* </p>
*
* @param modifyCacheClusterRequest
* Represents the input of a <code>ModifyCacheCluster</code> operation.
* @return Result of the ModifyCacheCluster operation returned by the service.
* @throws InvalidCacheClusterStateException
* The requested cluster is not in the <code>available</code> state.
* @throws InvalidCacheSecurityGroupStateException
* The current state of the cache security group does not allow deletion.
* @throws InsufficientCacheClusterCapacityException
* The requested cache node type is not available in the specified Availability Zone. For more information,
* see <a href=
* "http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ErrorMessages.html#ErrorMessages.INSUFFICIENT_CACHE_CLUSTER_CAPACITY"
* >InsufficientCacheClusterCapacity</a> in the ElastiCache User Guide.
* @throws CacheClusterNotFoundException
* The requested cluster ID does not refer to an existing cluster.
* @throws NodeQuotaForClusterExceededException
* The request cannot be processed because it would exceed the allowed number of cache nodes in a single
* cluster.
* @throws NodeQuotaForCustomerExceededException
* The request cannot be processed because it would exceed the allowed number of cache nodes per customer.
* @throws CacheSecurityGroupNotFoundException
* The requested cache security group name does not refer to an existing cache security group.
* @throws CacheParameterGroupNotFoundException
* The requested cache parameter group name does not refer to an existing cache parameter group.
* @throws InvalidVPCNetworkStateException
* The VPC network is in an invalid state.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.ModifyCacheCluster
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyCacheCluster" target="_top">AWS
* API Documentation</a>
*/
CacheCluster modifyCacheCluster(ModifyCacheClusterRequest modifyCacheClusterRequest);
/**
* <p>
* Modifies the parameters of a cache parameter group. You can modify up to 20 parameters in a single request by
* submitting a list parameter name and value pairs.
* </p>
*
* @param modifyCacheParameterGroupRequest
* Represents the input of a <code>ModifyCacheParameterGroup</code> operation.
* @return Result of the ModifyCacheParameterGroup operation returned by the service.
* @throws CacheParameterGroupNotFoundException
* The requested cache parameter group name does not refer to an existing cache parameter group.
* @throws InvalidCacheParameterGroupStateException
* The current state of the cache parameter group does not allow the requested operation to occur.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @throws InvalidGlobalReplicationGroupStateException
* The Global Datastore is not available or in primary-only state.
* @sample AmazonElastiCache.ModifyCacheParameterGroup
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyCacheParameterGroup"
* target="_top">AWS API Documentation</a>
*/
ModifyCacheParameterGroupResult modifyCacheParameterGroup(ModifyCacheParameterGroupRequest modifyCacheParameterGroupRequest);
/**
* <p>
* Modifies an existing cache subnet group.
* </p>
*
* @param modifyCacheSubnetGroupRequest
* Represents the input of a <code>ModifyCacheSubnetGroup</code> operation.
* @return Result of the ModifyCacheSubnetGroup operation returned by the service.
* @throws CacheSubnetGroupNotFoundException
* The requested cache subnet group name does not refer to an existing cache subnet group.
* @throws CacheSubnetQuotaExceededException
* The request cannot be processed because it would exceed the allowed number of subnets in a cache subnet
* group.
* @throws SubnetInUseException
* The requested subnet is being used by another cache subnet group.
* @throws InvalidSubnetException
* An invalid subnet identifier was specified.
* @throws SubnetNotAllowedException
* At least one subnet ID does not match the other subnet IDs. This mismatch typically occurs when a user
* sets one subnet ID to a regional Availability Zone and a different one to an outpost. Or when a user sets
* the subnet ID to an Outpost when not subscribed on this service.
* @sample AmazonElastiCache.ModifyCacheSubnetGroup
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyCacheSubnetGroup"
* target="_top">AWS API Documentation</a>
*/
CacheSubnetGroup modifyCacheSubnetGroup(ModifyCacheSubnetGroupRequest modifyCacheSubnetGroupRequest);
/**
* <p>
* Modifies the settings for a Global Datastore.
* </p>
*
* @param modifyGlobalReplicationGroupRequest
* @return Result of the ModifyGlobalReplicationGroup operation returned by the service.
* @throws GlobalReplicationGroupNotFoundException
* The Global Datastore does not exist
* @throws InvalidGlobalReplicationGroupStateException
* The Global Datastore is not available or in primary-only state.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @sample AmazonElastiCache.ModifyGlobalReplicationGroup
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyGlobalReplicationGroup"
* target="_top">AWS API Documentation</a>
*/
GlobalReplicationGroup modifyGlobalReplicationGroup(ModifyGlobalReplicationGroupRequest modifyGlobalReplicationGroupRequest);
/**
* <p>
* Modifies the settings for a replication group.
* </p>
* <ul>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/scaling-redis-cluster-mode-enabled.html">
* Scaling for Amazon ElastiCache for Redis (cluster mode enabled)</a> in the ElastiCache User Guide
* </p>
* </li>
* <li>
* <p>
* <a href=
* "https://docs.aws.amazon.com/AmazonElastiCache/latest/APIReference/API_ModifyReplicationGroupShardConfiguration.html"
* >ModifyReplicationGroupShardConfiguration</a> in the ElastiCache API Reference
* </p>
* </li>
* </ul>
* <note>
* <p>
* This operation is valid for Redis only.
* </p>
* </note>
*
* @param modifyReplicationGroupRequest
* Represents the input of a <code>ModifyReplicationGroups</code> operation.
* @return Result of the ModifyReplicationGroup operation returned by the service.
* @throws ReplicationGroupNotFoundException
* The specified replication group does not exist.
* @throws InvalidReplicationGroupStateException
* The requested replication group is not in the <code>available</code> state.
* @throws InvalidUserGroupStateException
* The user group is not in an active state.
* @throws UserGroupNotFoundException
* The user group was not found or does not exist
* @throws InvalidCacheClusterStateException
* The requested cluster is not in the <code>available</code> state.
* @throws InvalidCacheSecurityGroupStateException
* The current state of the cache security group does not allow deletion.
* @throws InsufficientCacheClusterCapacityException
* The requested cache node type is not available in the specified Availability Zone. For more information,
* see <a href=
* "http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ErrorMessages.html#ErrorMessages.INSUFFICIENT_CACHE_CLUSTER_CAPACITY"
* >InsufficientCacheClusterCapacity</a> in the ElastiCache User Guide.
* @throws CacheClusterNotFoundException
* The requested cluster ID does not refer to an existing cluster.
* @throws NodeQuotaForClusterExceededException
* The request cannot be processed because it would exceed the allowed number of cache nodes in a single
* cluster.
* @throws NodeQuotaForCustomerExceededException
* The request cannot be processed because it would exceed the allowed number of cache nodes per customer.
* @throws CacheSecurityGroupNotFoundException
* The requested cache security group name does not refer to an existing cache security group.
* @throws CacheParameterGroupNotFoundException
* The requested cache parameter group name does not refer to an existing cache parameter group.
* @throws InvalidVPCNetworkStateException
* The VPC network is in an invalid state.
* @throws InvalidKMSKeyException
* The KMS key supplied is not valid.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.ModifyReplicationGroup
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyReplicationGroup"
* target="_top">AWS API Documentation</a>
*/
ReplicationGroup modifyReplicationGroup(ModifyReplicationGroupRequest modifyReplicationGroupRequest);
/**
* <p>
* Modifies a replication group's shards (node groups) by allowing you to add shards, remove shards, or rebalance
* the keyspaces among exisiting shards.
* </p>
*
* @param modifyReplicationGroupShardConfigurationRequest
* Represents the input for a <code>ModifyReplicationGroupShardConfiguration</code> operation.
* @return Result of the ModifyReplicationGroupShardConfiguration operation returned by the service.
* @throws ReplicationGroupNotFoundException
* The specified replication group does not exist.
* @throws InvalidReplicationGroupStateException
* The requested replication group is not in the <code>available</code> state.
* @throws InvalidCacheClusterStateException
* The requested cluster is not in the <code>available</code> state.
* @throws InvalidVPCNetworkStateException
* The VPC network is in an invalid state.
* @throws InsufficientCacheClusterCapacityException
* The requested cache node type is not available in the specified Availability Zone. For more information,
* see <a href=
* "http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ErrorMessages.html#ErrorMessages.INSUFFICIENT_CACHE_CLUSTER_CAPACITY"
* >InsufficientCacheClusterCapacity</a> in the ElastiCache User Guide.
* @throws NodeGroupsPerReplicationGroupQuotaExceededException
* The request cannot be processed because it would exceed the maximum allowed number of node groups
* (shards) in a single replication group. The default maximum is 90
* @throws NodeQuotaForCustomerExceededException
* The request cannot be processed because it would exceed the allowed number of cache nodes per customer.
* @throws InvalidKMSKeyException
* The KMS key supplied is not valid.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.ModifyReplicationGroupShardConfiguration
* @see <a
* href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyReplicationGroupShardConfiguration"
* target="_top">AWS API Documentation</a>
*/
ReplicationGroup modifyReplicationGroupShardConfiguration(ModifyReplicationGroupShardConfigurationRequest modifyReplicationGroupShardConfigurationRequest);
/**
* <p>
* Changes user password(s) and/or access string.
* </p>
*
* @param modifyUserRequest
* @return Result of the ModifyUser operation returned by the service.
* @throws UserNotFoundException
* The user does not exist or could not be found.
* @throws InvalidUserStateException
* The user is not in active state.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.ModifyUser
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyUser" target="_top">AWS API
* Documentation</a>
*/
ModifyUserResult modifyUser(ModifyUserRequest modifyUserRequest);
/**
* <p>
* Changes the list of users that belong to the user group.
* </p>
*
* @param modifyUserGroupRequest
* @return Result of the ModifyUserGroup operation returned by the service.
* @throws UserGroupNotFoundException
* The user group was not found or does not exist
* @throws UserNotFoundException
* The user does not exist or could not be found.
* @throws DuplicateUserNameException
* A user with this username already exists.
* @throws DefaultUserRequiredException
* You must add default user to a user group.
* @throws InvalidUserGroupStateException
* The user group is not in an active state.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.ModifyUserGroup
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyUserGroup" target="_top">AWS
* API Documentation</a>
*/
ModifyUserGroupResult modifyUserGroup(ModifyUserGroupRequest modifyUserGroupRequest);
/**
* <p>
* Allows you to purchase a reserved cache node offering.
* </p>
*
* @param purchaseReservedCacheNodesOfferingRequest
* Represents the input of a <code>PurchaseReservedCacheNodesOffering</code> operation.
* @return Result of the PurchaseReservedCacheNodesOffering operation returned by the service.
* @throws ReservedCacheNodesOfferingNotFoundException
* The requested cache node offering does not exist.
* @throws ReservedCacheNodeAlreadyExistsException
* You already have a reservation with the given identifier.
* @throws ReservedCacheNodeQuotaExceededException
* The request cannot be processed because it would exceed the user's cache node quota.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.PurchaseReservedCacheNodesOffering
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/PurchaseReservedCacheNodesOffering"
* target="_top">AWS API Documentation</a>
*/
ReservedCacheNode purchaseReservedCacheNodesOffering(PurchaseReservedCacheNodesOfferingRequest purchaseReservedCacheNodesOfferingRequest);
/**
* <p>
* Redistribute slots to ensure uniform distribution across existing shards in the cluster.
* </p>
*
* @param rebalanceSlotsInGlobalReplicationGroupRequest
* @return Result of the RebalanceSlotsInGlobalReplicationGroup operation returned by the service.
* @throws GlobalReplicationGroupNotFoundException
* The Global Datastore does not exist
* @throws InvalidGlobalReplicationGroupStateException
* The Global Datastore is not available or in primary-only state.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @sample AmazonElastiCache.RebalanceSlotsInGlobalReplicationGroup
* @see <a
* href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RebalanceSlotsInGlobalReplicationGroup"
* target="_top">AWS API Documentation</a>
*/
GlobalReplicationGroup rebalanceSlotsInGlobalReplicationGroup(RebalanceSlotsInGlobalReplicationGroupRequest rebalanceSlotsInGlobalReplicationGroupRequest);
/**
* <p>
* Reboots some, or all, of the cache nodes within a provisioned cluster. This operation applies any modified cache
* parameter groups to the cluster. The reboot operation takes place as soon as possible, and results in a momentary
* outage to the cluster. During the reboot, the cluster status is set to REBOOTING.
* </p>
* <p>
* The reboot causes the contents of the cache (for each cache node being rebooted) to be lost.
* </p>
* <p>
* When the reboot is complete, a cluster event is created.
* </p>
* <p>
* Rebooting a cluster is currently supported on Memcached and Redis (cluster mode disabled) clusters. Rebooting is
* not supported on Redis (cluster mode enabled) clusters.
* </p>
* <p>
* If you make changes to parameters that require a Redis (cluster mode enabled) cluster reboot for the changes to
* be applied, see <a
* href="http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Clusters.Rebooting.html">Rebooting a Cluster</a>
* for an alternate process.
* </p>
*
* @param rebootCacheClusterRequest
* Represents the input of a <code>RebootCacheCluster</code> operation.
* @return Result of the RebootCacheCluster operation returned by the service.
* @throws InvalidCacheClusterStateException
* The requested cluster is not in the <code>available</code> state.
* @throws CacheClusterNotFoundException
* The requested cluster ID does not refer to an existing cluster.
* @sample AmazonElastiCache.RebootCacheCluster
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RebootCacheCluster" target="_top">AWS
* API Documentation</a>
*/
CacheCluster rebootCacheCluster(RebootCacheClusterRequest rebootCacheClusterRequest);
/**
* <p>
* Removes the tags identified by the <code>TagKeys</code> list from the named resource.
* </p>
*
* @param removeTagsFromResourceRequest
* Represents the input of a <code>RemoveTagsFromResource</code> operation.
* @return Result of the RemoveTagsFromResource operation returned by the service.
* @throws CacheClusterNotFoundException
* The requested cluster ID does not refer to an existing cluster.
* @throws SnapshotNotFoundException
* The requested snapshot name does not refer to an existing snapshot.
* @throws InvalidARNException
* The requested Amazon Resource Name (ARN) does not refer to an existing resource.
* @throws TagNotFoundException
* The requested tag was not found on this resource.
* @sample AmazonElastiCache.RemoveTagsFromResource
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RemoveTagsFromResource"
* target="_top">AWS API Documentation</a>
*/
RemoveTagsFromResourceResult removeTagsFromResource(RemoveTagsFromResourceRequest removeTagsFromResourceRequest);
/**
* <p>
* Modifies the parameters of a cache parameter group to the engine or system default value. You can reset specific
* parameters by submitting a list of parameter names. To reset the entire cache parameter group, specify the
* <code>ResetAllParameters</code> and <code>CacheParameterGroupName</code> parameters.
* </p>
*
* @param resetCacheParameterGroupRequest
* Represents the input of a <code>ResetCacheParameterGroup</code> operation.
* @return Result of the ResetCacheParameterGroup operation returned by the service.
* @throws InvalidCacheParameterGroupStateException
* The current state of the cache parameter group does not allow the requested operation to occur.
* @throws CacheParameterGroupNotFoundException
* The requested cache parameter group name does not refer to an existing cache parameter group.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @throws InvalidGlobalReplicationGroupStateException
* The Global Datastore is not available or in primary-only state.
* @sample AmazonElastiCache.ResetCacheParameterGroup
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ResetCacheParameterGroup"
* target="_top">AWS API Documentation</a>
*/
ResetCacheParameterGroupResult resetCacheParameterGroup(ResetCacheParameterGroupRequest resetCacheParameterGroupRequest);
/**
* <p>
* Revokes ingress from a cache security group. Use this operation to disallow access from an Amazon EC2 security
* group that had been previously authorized.
* </p>
*
* @param revokeCacheSecurityGroupIngressRequest
* Represents the input of a <code>RevokeCacheSecurityGroupIngress</code> operation.
* @return Result of the RevokeCacheSecurityGroupIngress operation returned by the service.
* @throws CacheSecurityGroupNotFoundException
* The requested cache security group name does not refer to an existing cache security group.
* @throws AuthorizationNotFoundException
* The specified Amazon EC2 security group is not authorized for the specified cache security group.
* @throws InvalidCacheSecurityGroupStateException
* The current state of the cache security group does not allow deletion.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.RevokeCacheSecurityGroupIngress
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/RevokeCacheSecurityGroupIngress"
* target="_top">AWS API Documentation</a>
*/
CacheSecurityGroup revokeCacheSecurityGroupIngress(RevokeCacheSecurityGroupIngressRequest revokeCacheSecurityGroupIngressRequest);
/**
* <p>
* Start the migration of data.
* </p>
*
* @param startMigrationRequest
* @return Result of the StartMigration operation returned by the service.
* @throws ReplicationGroupNotFoundException
* The specified replication group does not exist.
* @throws InvalidReplicationGroupStateException
* The requested replication group is not in the <code>available</code> state.
* @throws ReplicationGroupAlreadyUnderMigrationException
* The targeted replication group is not available.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @sample AmazonElastiCache.StartMigration
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/StartMigration" target="_top">AWS API
* Documentation</a>
*/
ReplicationGroup startMigration(StartMigrationRequest startMigrationRequest);
/**
* <p>
* Represents the input of a <code>TestFailover</code> operation which test automatic failover on a specified node
* group (called shard in the console) in a replication group (called cluster in the console).
* </p>
* <p class="title">
* <b>Note the following</b>
* </p>
* <ul>
* <li>
* <p>
* A customer can use this operation to test automatic failover on up to 5 shards (called node groups in the
* ElastiCache API and AWS CLI) in any rolling 24-hour period.
* </p>
* </li>
* <li>
* <p>
* If calling this operation on shards in different clusters (called replication groups in the API and CLI), the
* calls can be made concurrently.
* </p>
* <p>
* </p></li>
* <li>
* <p>
* If calling this operation multiple times on different shards in the same Redis (cluster mode enabled) replication
* group, the first node replacement must complete before a subsequent call can be made.
* </p>
* </li>
* <li>
* <p>
* To determine whether the node replacement is complete you can check Events using the Amazon ElastiCache console,
* the AWS CLI, or the ElastiCache API. Look for the following automatic failover related events, listed here in
* order of occurrance:
* </p>
* <ol>
* <li>
* <p>
* Replication group message: <code>Test Failover API called for node group <node-group-id></code>
* </p>
* </li>
* <li>
* <p>
* Cache cluster message:
* <code>Failover from primary node <primary-node-id> to replica node <node-id> completed</code>
* </p>
* </li>
* <li>
* <p>
* Replication group message:
* <code>Failover from primary node <primary-node-id> to replica node <node-id> completed</code>
* </p>
* </li>
* <li>
* <p>
* Cache cluster message: <code>Recovering cache nodes <node-id></code>
* </p>
* </li>
* <li>
* <p>
* Cache cluster message: <code>Finished recovery for cache nodes <node-id></code>
* </p>
* </li>
* </ol>
* <p>
* For more information see:
* </p>
* <ul>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ECEvents.Viewing.html">Viewing ElastiCache
* Events</a> in the <i>ElastiCache User Guide</i>
* </p>
* </li>
* <li>
* <p>
* <a
* href="https://docs.aws.amazon.com/AmazonElastiCache/latest/APIReference/API_DescribeEvents.html">DescribeEvents
* </a> in the ElastiCache API Reference
* </p>
* </li>
* </ul>
* </li>
* </ul>
* <p>
* Also see, <a
* href="https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/AutoFailover.html#auto-failover-test">Testing
* Multi-AZ </a> in the <i>ElastiCache User Guide</i>.
* </p>
*
* @param testFailoverRequest
* @return Result of the TestFailover operation returned by the service.
* @throws APICallRateForCustomerExceededException
* The customer has exceeded the allowed rate of API calls.
* @throws InvalidCacheClusterStateException
* The requested cluster is not in the <code>available</code> state.
* @throws InvalidReplicationGroupStateException
* The requested replication group is not in the <code>available</code> state.
* @throws NodeGroupNotFoundException
* The node group specified by the <code>NodeGroupId</code> parameter could not be found. Please verify that
* the node group exists and that you spelled the <code>NodeGroupId</code> value correctly.
* @throws ReplicationGroupNotFoundException
* The specified replication group does not exist.
* @throws TestFailoverNotAvailableException
* The <code>TestFailover</code> action is not available.
* @throws InvalidKMSKeyException
* The KMS key supplied is not valid.
* @throws InvalidParameterValueException
* The value for a parameter is invalid.
* @throws InvalidParameterCombinationException
* Two or more incompatible parameters were specified.
* @sample AmazonElastiCache.TestFailover
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/TestFailover" target="_top">AWS API
* Documentation</a>
*/
ReplicationGroup testFailover(TestFailoverRequest testFailoverRequest);
/**
* Shuts down this client object, releasing any resources that might be held open. This is an optional method, and
* callers are not expected to call it, but can if they want to explicitly release any open resources. Once a client
* has been shutdown, it should not be used to make any more requests.
*/
void shutdown();
/**
* Returns additional metadata for a previously executed successful request, typically used for debugging issues
* where a service isn't acting as expected. This data isn't considered part of the result data returned by an
* operation, so it's available through this separate, diagnostic interface.
* <p>
* Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic
* information for an executed request, you should use this method to retrieve it as soon as possible after
* executing a request.
*
* @param request
* The originally executed request.
*
* @return The response metadata for the specified request, or null if none is available.
*/
ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request);
AmazonElastiCacheWaiters waiters();
}
| java |
Vijay Deverakonda attained a mass following within a short span. Whatever he does is becoming viral. He didnโt get the desired result with his latest outing, Liger,
directed by Puri Jagannadh, which also marked the actorโs first PAN Indian film.
The actor is currently shooting for the Jai Jawan program to pay tribute to the armed forces. He had a rapid-fire round done by the national media revealed that he has Ophidiophobia which is the fear of snakes. Vijay said that he wished to do the iconic role of Gladiator.
He stated that he wanted to be a bus driver, cop, actor, and cricketer when he was a child. Vijay said that his favorite destination spot would always be beaches. He said that anything that his fans do is out of love. Vijay also spoke about his fashion choice and added that he wears whatever his mind and body tell him to do.
Articles that might interest you:
| english |
FMCG major Hindustan Unilever Ltd (HUL) will loosen its purse strings by Rs 2,084 crore for paying dividend to shareholders as well as the dividend distribution tax in the current fiscal.
The board of the consumer goods maker has declared an interim dividend of Rs 8 per share of face value Re 1 each for the year ending March 2018.
The dividend amounting to Rs 1,732 crore will cover about 216 crore shares, Hindustan Unilever said in an investor presentation.
Besides, there is a Rs 352 crore dividend distribution tax which will be borne by the company.
Last fiscal, the company had paid dividends amounting to Rs 1,515 crore for similar number of shares, down 14. 32 per cent. The dividend distribution tax was Rs 308 crore last year.
"The company's Dividend Distribution Policy shall ensure that it returns cash from operations that is in excess of its immediate and foreseeable needs back to the shareholders over the long term," an HUL spokesperson told PTI.
The board has declared an interim dividend due to strong overall performance in a challenging business environment, the spokesperson added.
HUL reported a 16. 42 per cent jump in standalone net profit at Rs 1,276 crore for the September quarter on the back of lower expenses, despite short-term challenges including transition to the new GST regime from July 1.
The company had posted a net profit of Rs 1,096 crore during the same period of the previous fiscal.
Net sales during the quarter under review stood at Rs 8,199 crore as against Rs 8,335 crore in the year-ago period, down 1. 63 per cent.
HUL's expenses in the second quarter were down 5. 95 per cent at Rs 6,748 crore compared to Rs 7,175 crore during July-September last fiscal. | english |
- เดเดฒเตเดฒเดพเด (15)
- Performance (2)
- Comfort (1)
- Engine (1)
- Looks (1)
- Power (1)
- Price (1)
This is a giant performer, using it for last one year. Glamour boy, eye-catching, most powerful and majestic. The best in the class.
Best Of The Rest.
Very bright future and also a great performance. It is also a family car. My friend's father in America has it. I was waiting for it to launch in India.
Are you Confused?
How much mileage?
How much เดเดเดธเต ground clearance?
Does gle coupe come with mercedesโ new e-active body control (hip hop feature)?
| english |
/**
* Copyright 2011-2017 Asakusa Framework Team.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.asakusafw.dmdl.java.emitter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import com.asakusafw.dmdl.java.Configuration;
import com.asakusafw.dmdl.java.spi.JavaDataModelDriver;
import com.asakusafw.dmdl.semantics.DmdlSemantics;
import com.asakusafw.dmdl.semantics.ModelDeclaration;
import com.asakusafw.dmdl.semantics.PropertyDeclaration;
import com.asakusafw.runtime.model.DataModel;
import com.asakusafw.utils.java.model.syntax.Attribute;
import com.asakusafw.utils.java.model.syntax.FieldDeclaration;
import com.asakusafw.utils.java.model.syntax.FormalParameterDeclaration;
import com.asakusafw.utils.java.model.syntax.MethodDeclaration;
import com.asakusafw.utils.java.model.syntax.ModelFactory;
import com.asakusafw.utils.java.model.syntax.SimpleName;
import com.asakusafw.utils.java.model.syntax.Statement;
import com.asakusafw.utils.java.model.syntax.Type;
import com.asakusafw.utils.java.model.syntax.TypeBodyDeclaration;
import com.asakusafw.utils.java.model.util.AttributeBuilder;
import com.asakusafw.utils.java.model.util.ExpressionBuilder;
import com.asakusafw.utils.java.model.util.JavadocBuilder;
import com.asakusafw.utils.java.model.util.Models;
/**
* Abstract super class which emits a record/joined/summarized model
* as a Java model class.
*/
public class ConcreteModelEmitter {
private final ModelDeclaration model;
private final EmitContext context;
private final JavaDataModelDriver driver;
private final ModelFactory f;
/**
* Creates and returns a new instance.
* @param semantics the semantic model root
* @param config the current configuration
* @param model the model to emit
* @param driver the emitter driver
* @throws IllegalArgumentException if some parameters were {@code null}
*/
public ConcreteModelEmitter(
DmdlSemantics semantics,
Configuration config,
ModelDeclaration model,
JavaDataModelDriver driver) {
if (semantics == null) {
throw new IllegalArgumentException("semantics must not be null"); //$NON-NLS-1$
}
if (config == null) {
throw new IllegalArgumentException("config must not be null"); //$NON-NLS-1$
}
if (driver == null) {
throw new IllegalArgumentException("driver must not be null"); //$NON-NLS-1$
}
if (model == null) {
throw new IllegalArgumentException("model must not be null"); //$NON-NLS-1$
}
this.model = model;
this.context = new EmitContext(
semantics,
config,
model,
NameConstants.CATEGORY_DATA_MODEL,
NameConstants.PATTERN_DATA_MODEL);
this.driver = driver;
this.f = config.getFactory();
}
/**
* Emits the projective model.
* @throws IOException if failed to emit a source program
*/
public void emit() throws IOException {
driver.generateResources(context, model);
context.emit(f.newClassDeclaration(
new JavadocBuilder(f)
.text(Messages.getString("ConcreteModelEmitter.javadocClass"), //$NON-NLS-1$
context.getDescription(model))
.toJavadoc(),
createModifiers(),
context.getTypeName(),
null,
createSuperInterfaces(),
createMembers()));
}
private List<Attribute> createModifiers() throws IOException {
List<Attribute> results = new ArrayList<>();
results.addAll(driver.getTypeAnnotations(context, model));
results.addAll(new AttributeBuilder(f)
.Public()
.toAttributes());
return results;
}
private List<Type> createSuperInterfaces() throws IOException {
List<Type> results = new ArrayList<>();
results.add(f.newParameterizedType(
context.resolve(DataModel.class),
context.resolve(context.getQualifiedTypeName())));
results.addAll(driver.getInterfaces(context, model));
return results;
}
private List<TypeBodyDeclaration> createMembers() throws IOException {
List<TypeBodyDeclaration> results = new ArrayList<>();
results.addAll(createPropertyFields());
results.addAll(driver.getFields(context, model));
results.addAll(createDataModelMethods());
results.addAll(createPropertyAccessors());
results.addAll(driver.getMethods(context, model));
return results;
}
private List<FieldDeclaration> createPropertyFields() {
List<FieldDeclaration> results = new ArrayList<>();
for (PropertyDeclaration property : model.getDeclaredProperties()) {
Type type = context.getFieldType(property);
SimpleName name = context.getFieldName(property);
results.add(f.newFieldDeclaration(
null,
new AttributeBuilder(f)
.Private()
.Final()
.toAttributes(),
type,
name,
context.getFieldInitializer(property)));
}
return results;
}
private List<MethodDeclaration> createDataModelMethods() {
List<MethodDeclaration> results = new ArrayList<>();
results.add(createResetMethod());
results.add(createCopyMethod());
return results;
}
private MethodDeclaration createResetMethod() {
List<Statement> statements = new ArrayList<>();
for (PropertyDeclaration property : model.getDeclaredProperties()) {
statements.add(new ExpressionBuilder(f, f.newThis())
.field(context.getFieldName(property))
.method("setNull") //$NON-NLS-1$
.toStatement());
}
return f.newMethodDeclaration(
null,
new AttributeBuilder(f)
.annotation(context.resolve(Override.class))
.annotation(context.resolve(SuppressWarnings.class),
Models.toLiteral(f, "deprecation")) //$NON-NLS-1$
.Public()
.toAttributes(),
context.resolve(void.class),
f.newSimpleName("reset"), //$NON-NLS-1$
Collections.emptyList(),
statements);
}
private MethodDeclaration createCopyMethod() {
SimpleName other = context.createVariableName("other"); //$NON-NLS-1$
List<Statement> statements = new ArrayList<>();
for (PropertyDeclaration property : model.getDeclaredProperties()) {
statements.add(new ExpressionBuilder(f, f.newThis())
.field(context.getFieldName(property))
.method("copyFrom", new ExpressionBuilder(f, other) //$NON-NLS-1$
.field(context.getFieldName(property))
.toExpression())
.toStatement());
}
return f.newMethodDeclaration(
null,
new AttributeBuilder(f)
.annotation(context.resolve(Override.class))
.annotation(context.resolve(SuppressWarnings.class),
Models.toLiteral(f, "deprecation")) //$NON-NLS-1$
.Public()
.toAttributes(),
context.resolve(void.class),
f.newSimpleName("copyFrom"), //$NON-NLS-1$
Collections.singletonList(f.newFormalParameterDeclaration(
context.resolve(context.getQualifiedTypeName()),
other)),
statements);
}
private List<MethodDeclaration> createPropertyAccessors() throws IOException {
List<MethodDeclaration> results = new ArrayList<>();
for (PropertyDeclaration property : model.getDeclaredProperties()) {
results.add(createValueGetter(property));
results.add(createValueSetter(property));
results.add(createOptionGetter(property));
results.add(createOptionSetter(property));
}
return results;
}
private MethodDeclaration createValueGetter(PropertyDeclaration property) {
assert property != null;
List<Attribute> attributes = new ArrayList<>();
attributes.addAll(new AttributeBuilder(f)
.Public()
.toAttributes());
return f.newMethodDeclaration(
new JavadocBuilder(f)
.text(Messages.getString("ConcreteModelEmitter.javadocGetter"), //$NON-NLS-1$
context.getDescription(property))
.returns()
.text(context.getDescription(property))
.exception(context.resolve(NullPointerException.class))
.text(Messages.getString(
"ConcreteModelEmitter.javadocGetterNullPointerException"), //$NON-NLS-1$
context.getDescription(property))
.toJavadoc(),
attributes,
context.getValueType(property),
context.getValueGetterName(property),
Collections.emptyList(),
Collections.singletonList(new ExpressionBuilder(f, f.newThis())
.field(context.getFieldName(property))
.method("get") //$NON-NLS-1$
.toReturnStatement()));
}
private MethodDeclaration createValueSetter(PropertyDeclaration property) {
assert property != null;
SimpleName paramName = context.createVariableName("value"); //$NON-NLS-1$
Type valueType = context.getValueType(property);
return f.newMethodDeclaration(
new JavadocBuilder(f)
.text(Messages.getString("ConcreteModelEmitter.javadocSetter"), //$NON-NLS-1$
context.getDescription(property))
.param(paramName)
.text(Messages.getString("ConcreteModelEmitter.javadocSetterParameter"), //$NON-NLS-1$
context.getDescription(property))
.toJavadoc(),
new AttributeBuilder(f)
.annotation(
context.resolve(SuppressWarnings.class),
Models.toLiteral(f, "deprecation")) //$NON-NLS-1$
.Public()
.toAttributes(),
context.resolve(void.class),
context.getValueSetterName(property),
Arrays.asList(new FormalParameterDeclaration[] {
f.newFormalParameterDeclaration(valueType, paramName)
}),
Collections.singletonList(new ExpressionBuilder(f, f.newThis())
.field(context.getFieldName(property))
.method("modify", paramName) //$NON-NLS-1$
.toStatement()));
}
private MethodDeclaration createOptionGetter(PropertyDeclaration property) throws IOException {
assert property != null;
List<Attribute> attributes = new ArrayList<>();
attributes.addAll(driver.getMemberAnnotations(context, property));
attributes.addAll(new AttributeBuilder(f)
.Public()
.toAttributes());
return f.newMethodDeclaration(
new JavadocBuilder(f)
.text(Messages.getString("ConcreteModelEmitter.javadocOptionGetter"), //$NON-NLS-1$
context.getDescription(property))
.returns()
.text(context.getDescription(property))
.toJavadoc(),
attributes,
context.getFieldType(property),
context.getOptionGetterName(property),
Collections.emptyList(),
Collections.singletonList(new ExpressionBuilder(f, f.newThis())
.field(context.getFieldName(property))
.toReturnStatement()));
}
private MethodDeclaration createOptionSetter(PropertyDeclaration property) {
assert property != null;
SimpleName paramName = context.createVariableName("option"); //$NON-NLS-1$
Type optionType = context.getFieldType(property);
return f.newMethodDeclaration(
new JavadocBuilder(f)
.text(Messages.getString("ConcreteModelEmitter.javadocOptionSetter"), //$NON-NLS-1$
context.getDescription(property))
.param(paramName)
.text(Messages.getString("ConcreteModelEmitter.javadocOptionSetterParameter"), //$NON-NLS-1$
context.getDescription(property))
.toJavadoc(),
new AttributeBuilder(f)
.annotation(
context.resolve(SuppressWarnings.class),
Models.toLiteral(f, "deprecation")) //$NON-NLS-1$
.Public()
.toAttributes(),
context.resolve(void.class),
context.getOptionSetterName(property),
Arrays.asList(new FormalParameterDeclaration[] {
f.newFormalParameterDeclaration(optionType, paramName)
}),
Collections.singletonList(new ExpressionBuilder(f, f.newThis())
.field(context.getFieldName(property))
.method("copyFrom", paramName) //$NON-NLS-1$
.toStatement()));
}
}
| java |
<filename>public/javascripts/simile/exhibit/api-2.0/scripts/util/facets.js<gh_stars>0
/*==================================================
* Exhibit.FacetUtilities
*
* Utilities for facets' code.
*==================================================
*/
Exhibit.FacetUtilities = new Object();
Exhibit.FacetUtilities.constructFacetFrame = function(div, facetLabel, onClearAllSelections, uiContext, collapsible, collapsed) {
div.className = "exhibit-facet";
var dom = SimileAjax.DOM.createDOMFromString(
div,
"<div class='exhibit-facet-header'>" +
"<div class='exhibit-facet-header-filterControl' id='clearSelectionsDiv' title='" + Exhibit.FacetUtilities.l10n.clearSelectionsTooltip + "'>" +
"<span id='filterCountSpan'></span>" +
"<img id='checkImage' />" +
"</div>" +
((collapsible) ?
"<img src='"+Exhibit.urlPrefix+"images/collapse.png' class='exhibit-facet-header-collapse' id='collapseImg' />" :
"") +
"<span class='exhibit-facet-header-title'>" + facetLabel + "</span>" +
"</div>" +
"<div class='exhibit-facet-body-frame' id='frameDiv'></div>",
{ checkImage: Exhibit.UI.createTranslucentImage("images/black-check.png") }
);
var resizableDivWidget = Exhibit.ResizableDivWidget.create({}, dom.frameDiv, uiContext);
dom.valuesContainer = resizableDivWidget.getContentDiv();
dom.valuesContainer.className = "exhibit-facet-body";
dom.setSelectionCount = function(count) {
this.filterCountSpan.innerHTML = count;
this.clearSelectionsDiv.style.display = count > 0 ? "block" : "none";
};
SimileAjax.WindowManager.registerEvent(dom.clearSelectionsDiv, "click", onClearAllSelections);
if (collapsible) {
SimileAjax.WindowManager.registerEvent(dom.collapseImg, "click", function() {
Exhibit.FacetUtilities.toggleCollapse(dom);
});
if (collapsed) {
Exhibit.FacetUtilities.toggleCollapse(dom);
}
}
return dom;
};
Exhibit.FacetUtilities.toggleCollapse = function(dom) {
var el = dom.frameDiv;
if (el.style.display != "none") {
el.style.display = "none";
dom.collapseImg.src = Exhibit.urlPrefix + "images/expand.png";
} else {
el.style.display = "block";
dom.collapseImg.src = Exhibit.urlPrefix + "images/collapse.png";
}
};
Exhibit.FacetUtilities.isCollapsed = function(facet) {
var el = facet._dom.frameDiv;
return el.style.display == "none";
};
Exhibit.FacetUtilities.constructFacetItem = function(
label,
count,
color,
selected,
facetHasSelection,
onSelect,
onSelectOnly,
uiContext
) {
if (Exhibit.params.safe) {
label = Exhibit.Formatter.encodeAngleBrackets(label);
}
var dom = SimileAjax.DOM.createDOMFromString(
"div",
"<div class='exhibit-facet-value-count'>" + count + "</div>" +
"<div class='exhibit-facet-value-inner' id='inner'>" +
( "<div class='exhibit-facet-value-checkbox'> " +
SimileAjax.Graphics.createTranslucentImageHTML(
Exhibit.urlPrefix +
( facetHasSelection ?
(selected ? "images/black-check.png" : "images/no-check.png") :
"images/no-check-no-border.png"
)) +
"</div>"
) +
"<a class='exhibit-facet-value-link' href='javascript:{}' id='link'></a>" +
"</div>"
);
dom.elmt.className = selected ? "exhibit-facet-value exhibit-facet-value-selected" : "exhibit-facet-value";
if (typeof label == "string") {
dom.elmt.title = label;
dom.link.appendChild(document.createTextNode(label));
if (color != null) {
dom.link.style.color = color;
}
} else {
dom.link.appendChild(label);
if (color != null) {
label.style.color = color;
}
}
SimileAjax.WindowManager.registerEvent(dom.elmt, "click", onSelectOnly, SimileAjax.WindowManager.getBaseLayer());
if (facetHasSelection) {
SimileAjax.WindowManager.registerEvent(dom.inner.firstChild, "click", onSelect, SimileAjax.WindowManager.getBaseLayer());
}
return dom.elmt;
};
Exhibit.FacetUtilities.constructFlowingFacetFrame = function(div, facetLabel, onClearAllSelections, uiContext, collapsible, collapsed) {
div.className = "exhibit-flowingFacet";
var dom = SimileAjax.DOM.createDOMFromString(
div,
"<div class='exhibit-flowingFacet-header'>" +
((collapsible) ?
"<img src='" + Exhibit.urlPrefix + "images/collapse.png' class='exhibit-facet-header-collapse' id='collapseImg' />" :
"") +
"<span class='exhibit-flowingFacet-header-title'>" + facetLabel + "</span>" +
"</div>" +
"<div id='frameDiv'><div class='exhibit-flowingFacet-body' id='valuesContainer'></div></div>"
);
dom.setSelectionCount = function(count) {
// nothing
};
if (collapsible) {
SimileAjax.WindowManager.registerEvent(dom.collapseImg, "click", function() {
Exhibit.FacetUtilities.toggleCollapse(dom);
});
if (collapsed) {
Exhibit.FacetUtilities.toggleCollapse(dom);
}
}
return dom;
};
Exhibit.FacetUtilities.constructFlowingFacetItem = function(
label,
count,
color,
selected,
facetHasSelection,
onSelect,
onSelectOnly,
uiContext
) {
if (Exhibit.params.safe) {
label = Exhibit.Formatter.encodeAngleBrackets(label);
}
var dom = SimileAjax.DOM.createDOMFromString(
"div",
( "<div class='exhibit-flowingFacet-value-checkbox'>" +
SimileAjax.Graphics.createTranslucentImageHTML(
Exhibit.urlPrefix +
( facetHasSelection ?
(selected ? "images/black-check.png" : "images/no-check.png") :
"images/no-check-no-border.png"
)) +
"</div>"
) +
"<a class='exhibit-flowingFacet-value-link' href='javascript:{}' id='inner'></a>" +
" " +
"<span class='exhibit-flowingFacet-value-count'>(" + count + ")</span>"
);
dom.elmt.className = selected ? "exhibit-flowingFacet-value exhibit-flowingFacet-value-selected" : "exhibit-flowingFacet-value";
if (typeof label == "string") {
dom.elmt.title = label;
dom.inner.appendChild(document.createTextNode(label));
if (color != null) {
dom.inner.style.color = color;
}
} else {
dom.inner.appendChild(label);
if (color != null) {
label.style.color = color;
}
}
SimileAjax.WindowManager.registerEvent(dom.elmt, "click", onSelectOnly, SimileAjax.WindowManager.getBaseLayer());
if (facetHasSelection) {
SimileAjax.WindowManager.registerEvent(dom.elmt.firstChild, "click", onSelect, SimileAjax.WindowManager.getBaseLayer());
}
return dom.elmt;
};
Exhibit.FacetUtilities.constructHierarchicalFacetItem = function(
label,
count,
color,
selected,
hasChildren,
expanded,
facetHasSelection,
onSelect,
onSelectOnly,
onToggleChildren,
uiContext
) {
if (Exhibit.params.safe) {
label = Exhibit.Formatter.encodeAngleBrackets(label);
}
var dom = SimileAjax.DOM.createDOMFromString(
"div",
"<div class='exhibit-facet-value-count'>" + count + "</div>" +
"<div class='exhibit-facet-value-inner' id='inner'>" +
( "<div class='exhibit-facet-value-checkbox'> " +
SimileAjax.Graphics.createTranslucentImageHTML(
Exhibit.urlPrefix +
( facetHasSelection ?
(selected ? "images/black-check.png" : "images/no-check.png") :
"images/no-check-no-border.png"
)) +
"</div>"
) +
"<a class='exhibit-facet-value-link' href='javascript:{}' id='link'></a>" +
( hasChildren ?
( "<a class='exhibit-facet-value-children-toggle' href='javascript:{}' id='toggle'>" +
SimileAjax.Graphics.createTranslucentImageHTML(
Exhibit.urlPrefix + "images/down-arrow.png") +
SimileAjax.Graphics.createTranslucentImageHTML(
Exhibit.urlPrefix + "images/right-arrow.png") +
"</a>"
) :
""
) +
"</div>" +
(hasChildren ? "<div class='exhibit-facet-childrenContainer' id='childrenContainer'></div>" : "")
);
dom.elmt.className = selected ? "exhibit-facet-value exhibit-facet-value-selected" : "exhibit-facet-value";
if (typeof label == "string") {
dom.elmt.title = label;
dom.link.appendChild(document.createTextNode(label));
if (color != null) {
dom.link.style.color = color;
}
} else {
dom.link.appendChild(label);
if (color != null) {
label.style.color = color;
}
}
SimileAjax.WindowManager.registerEvent(dom.elmt, "click", onSelectOnly, SimileAjax.WindowManager.getBaseLayer());
if (facetHasSelection) {
SimileAjax.WindowManager.registerEvent(dom.inner.firstChild, "click", onSelect, SimileAjax.WindowManager.getBaseLayer());
}
if (hasChildren) {
dom.showChildren = function(show) {
dom.childrenContainer.style.display = show ? "block" : "none";
dom.toggle.childNodes[0].style.display = show ? "inline" : "none";
dom.toggle.childNodes[1].style.display = show ? "none" : "inline";
}
SimileAjax.WindowManager.registerEvent(dom.toggle, "click", onToggleChildren, SimileAjax.WindowManager.getBaseLayer());
dom.showChildren(expanded);
}
return dom;
};
Exhibit.FacetUtilities.constructFlowingHierarchicalFacetItem = function(
label,
count,
color,
selected,
hasChildren,
expanded,
facetHasSelection,
onSelect,
onSelectOnly,
onToggleChildren,
uiContext
) {
if (Exhibit.params.safe) {
label = Exhibit.Formatter.encodeAngleBrackets(label);
}
var dom = SimileAjax.DOM.createDOMFromString(
"div",
( "<div class='exhibit-flowingFacet-value-checkbox'>" +
SimileAjax.Graphics.createTranslucentImageHTML(
Exhibit.urlPrefix +
( facetHasSelection ?
(selected ? "images/black-check.png" : "images/no-check.png") :
"images/no-check-no-border.png"
)) +
"</div>"
) +
"<a class='exhibit-flowingFacet-value-link' href='javascript:{}' id='inner'></a>" +
" " +
"<span class='exhibit-flowingFacet-value-count'>(" + count + ")</span>" +
( hasChildren ?
( "<a class='exhibit-flowingFacet-value-children-toggle' href='javascript:{}' id='toggle'>" +
SimileAjax.Graphics.createTranslucentImageHTML(
Exhibit.urlPrefix + "images/down-arrow.png") +
SimileAjax.Graphics.createTranslucentImageHTML(
Exhibit.urlPrefix + "images/right-arrow.png") +
"</a>"
) :
""
) +
(hasChildren ? "<div class='exhibit-flowingFacet-childrenContainer' id='childrenContainer'></div>" : "")
);
dom.elmt.className = selected ? "exhibit-flowingFacet-value exhibit-flowingFacet-value-selected" : "exhibit-flowingFacet-value";
if (typeof label == "string") {
dom.elmt.title = label;
dom.inner.appendChild(document.createTextNode(label));
if (color != null) {
dom.inner.style.color = color;
}
} else {
dom.inner.appendChild(label);
if (color != null) {
label.style.color = color;
}
}
SimileAjax.WindowManager.registerEvent(dom.elmt, "click", onSelectOnly, SimileAjax.WindowManager.getBaseLayer());
if (facetHasSelection) {
SimileAjax.WindowManager.registerEvent(dom.elmt.firstChild, "click", onSelect, SimileAjax.WindowManager.getBaseLayer());
}
if (hasChildren) {
dom.showChildren = function(show) {
dom.childrenContainer.style.display = show ? "block" : "none";
dom.toggle.childNodes[0].style.display = show ? "inline" : "none";
dom.toggle.childNodes[1].style.display = show ? "none" : "inline";
}
SimileAjax.WindowManager.registerEvent(dom.toggle, "click", onToggleChildren, SimileAjax.WindowManager.getBaseLayer());
dom.showChildren(expanded);
}
return dom;
};
/*======================================================================
* Cache for item/value mapping
*======================================================================
*/
Exhibit.FacetUtilities.Cache = function(database, collection, expression) {
var self = this;
this._database = database;
this._collection = collection;
this._expression = expression;
this._listener = {
onRootItemsChanged: function() {
if ("_itemToValue" in self) {
delete self._itemToValue;
}
if ("_valueToItem" in self) {
delete self._valueToItem;
}
if ("_missingItems" in self) {
delete self._missingItems;
}
}
};
collection.addListener(this._listener);
}
Exhibit.FacetUtilities.Cache.prototype.dispose = function() {
this._collection.removeListener(this._listener);
this._collection = null;
this._listener = null;
this._itemToValue = null;
this._valueToItem = null;
this._missingItems = null;
}
Exhibit.FacetUtilities.Cache.prototype.getItemsFromValues = function(values, filter) {
var set;
if (this._expression.isPath()) {
set = this._expression.getPath().walkBackward(
values,
"item",
filter,
this._database
).getSet();
} else {
this._buildMaps();
set = new Exhibit.Set();
var valueToItem = this._valueToItem;
values.visit(function(value) {
if (value in valueToItem) {
var itemA = valueToItem[value];
for (var i = 0; i < itemA.length; i++) {
var item = itemA[i];
if (filter.contains(item)) {
set.add(item);
}
}
}
});
}
return set;
}
Exhibit.FacetUtilities.Cache.prototype.getItemsMissingValue = function(filter, results) {
this._buildMaps();
results = results || new Exhibit.Set();
var missingItems = this._missingItems;
filter.visit(function(item) {
if (item in missingItems) {
results.add(item);
}
});
return results;
}
Exhibit.FacetUtilities.Cache.prototype.getValueCountsFromItems = function(items) {
var entries = [];
var database = this._database;
var valueType = "text";
if (this._expression.isPath()) {
var path = this._expression.getPath();
var facetValueResult = path.walkForward(items, "item", database);
valueType = facetValueResult.valueType;
if (facetValueResult.size > 0) {
facetValueResult.forEachValue(function(facetValue) {
var itemSubcollection = path.evaluateBackward(facetValue, valueType, items, database);
entries.push({ value: facetValue, count: itemSubcollection.size });
});
};
} else {
this._buildMaps();
valueType = this._valueType;
for (var value in this._valueToItem) {
var itemA = this._valueToItem[value];
var count = 0;
for (var i = 0; i < itemA.length; i++) {
if (items.contains(itemA[i])) {
count++;
}
}
if (count > 0) {
entries.push({ value: value, count: count });
}
}
}
return { entries: entries, valueType: valueType };
}
Exhibit.FacetUtilities.Cache.prototype.getValuesFromItems = function(items) {
if (this._expression.isPath()) {
return this._expression.getPath().walkForward(items, "item", database).getSet();
} else {
this._buildMaps();
var set = new Exhibit.Set();
var itemToValue = this._itemToValue;
items.visit(function(item) {
if (item in itemToValue) {
var a = itemToValue[item];
for (var i = 0; i < a.length; i++) {
set.add(a[i]);
}
}
});
return set;
}
}
Exhibit.FacetUtilities.Cache.prototype.countItemsMissingValue = function(items) {
this._buildMaps();
var count = 0;
for (var item in this._missingItems) {
if (items.contains(item)) {
count++;
}
}
return count;
}
Exhibit.FacetUtilities.Cache.prototype._buildMaps = function() {
if (!("_itemToValue" in this)) {
var itemToValue = {};
var valueToItem = {};
var missingItems = {};
var valueType = "text";
var insert = function(x, y, map) {
if (x in map) {
map[x].push(y);
} else {
map[x] = [ y ];
}
};
var expression = this._expression;
var database = this._database;
this._collection.getAllItems().visit(function(item) {
var results = expression.evaluateOnItem(item, database);
if (results.values.size() > 0) {
valueType = results.valueType;
results.values.visit(function(value) {
insert(item, value, itemToValue);
insert(value, item, valueToItem);
});
} else {
missingItems[item] = true;
}
});
this._itemToValue = itemToValue;
this._valueToItem = valueToItem;
this._missingItems = missingItems;
this._valueType = valueType;
}
};
| javascript |
The final season of Succession is finally upon us, and fans are in awe of the premiere. Welcoming back TV's most dysfunction family for one last time, fans are especially praising the dynamic of this season while saying that it starts off on a very high note. Praise in particular is being given to Sarah Snook, who is being highlighted as a standout of the episode. Succession Season 4 Streaming Date and Time: How to Watch Brian Cox, Jeremy Strong's HBO Drama Series Online.
Definitely Should be Studied!
Missed Them!
Her Best Performance!
Pure Art!
Definitely Getting Her That Emmy!
(SocialLY brings you all the latest breaking news, viral trends and information from social media world, including Twitter, Instagram and Youtube. The above post is embeded directly from the user's social media account and LatestLY Staff may not have modified or edited the content body. The views and facts appearing in the social media post do not reflect the opinions of LatestLY, also LatestLY does not assume any responsibility or liability for the same. ) | english |
{"limit":5000,"name":"Praying m<NAME>ouch","value":4624,"highalch":2774,"id":12011,"lowalch":1849,"name_pt":"<NAME>-a-deus","price":3218,"last":3218}
| json |
<filename>javascript/prototype-ui/window/themes/window/mac_os_x.css
.mac_os_x .nw {
background:transparent url(mac_os_x/top_unactive.gif) no-repeat scroll 0px 0px;
height:22px;
padding-left:10px;
}
.mac_os_x_focused .nw {
background:transparent url(mac_os_x/top.gif) no-repeat scroll 0px 0px !important;
}
.mac_os_x .ne {
background:transparent url(mac_os_x/top_unactive.gif) no-repeat scroll right -44px;
height:22px;
padding-right:10px;
}
.mac_os_x_focused .ne {
background:transparent url(mac_os_x/top.gif) no-repeat scroll right -44px !important;
}
.mac_os_x .n {
background:transparent url(mac_os_x/top_unactive.gif) repeat-x scroll right -22px;
color:#17385B;
font:normal 14px/26px Arial, sans-serif;
height:22px;
margin:0;
padding:0;
text-align:center;
overflow: hidden;
padding-left:60px;
line-height: 20px;
color: #000;
}
.mac_os_x_focused .n {
background:transparent url(mac_os_x/top.gif) repeat-x scroll right -22px !important;
}
.mac_os_x .content {
background:#FFF;
color:#000;
font:normal 12px/1em Verdana, Arial, sans-serif;
overflow:auto;
}
.mac_os_x .w {
border-left:1px solid #DDD;
border-right:1px solid #DDD;
}
.mac_os_x .e {
border-left:1px solid #EEE;
border-right:1px solid #EEE;
}
.mac_os_x .sw {
background:transparent url(mac_os_x/bottom_unactive.gif) no-repeat scroll 0 0px;
font-size:2px;
height:15px;
padding-left:12px;
}
.mac_os_x_focused .sw {
background:transparent url(mac_os_x/bottom.gif) no-repeat scroll 0 0px !important;
}
.mac_os_x .se {
background:transparent url(mac_os_x/bottom_unactive.gif) no-repeat scroll right -30px;
font-size:2px;
height:15px;
padding-right:12px;
}
.mac_os_x_focused .se {
background:transparent url(mac_os_x/bottom.gif) no-repeat scroll right -30px !important;
}
.mac_os_x_focused .se_sizer {
width:12px;
height:12px;
}
.mac_os_x .se_resize_handle {
background:transparent url(mac_os_x/bottom_unactive.gif) no-repeat scroll right -45px;
font-size:2px;
height:15px;
padding-right:12px;
}
.mac_os_x_focused .se_resize_handle {
background:transparent url(mac_os_x/bottom.gif) no-repeat scroll right -45px !important;
}
.mac_os_x .s {
background:transparent url(mac_os_x/bottom_unactive.gif) repeat-x scroll 0 -15px;
font-size:12px;
line-height:15px;
height:15px;
overflow:hidden;
}
.mac_os_x_focused .s {
background:transparent url(mac_os_x/bottom.gif) repeat-x scroll 0 -15px !important;
}
.mac_os_x .buttons {
position: absolute;
top:1px;
left:7px;
height: 20px;
}
.mac_os_x .buttons a.close {
float:left;
background:transparent url(mac_os_x/button_unactive.gif) no-repeat 0 0;
background-repeat: no-repeat;
height:15px;
width:14px;
margin: 3px 7px 0 0px;
padding-top:0px; /* padding-top = buttons order, it will be reset to 0, do not use padding, use margin*/
overflow:hidden;
}
.mac_os_x_focused .buttons a.close {
background:transparent url(mac_os_x/buttons.gif) no-repeat 0 0 !important;
background-repeat: no-repeat;
}
.mac_os_x .buttons.over a.close {
background:transparent url(mac_os_x/buttons_over.gif) no-repeat 0 0px !important;
}
.mac_os_x .buttons a.maximize {
float:left;
background:transparent url(mac_os_x/button_unactive.gif) no-repeat 0 0;
height:15px;
width:14px;
margin: 3px 7px 0 0;
padding-top:2px; /* padding-top = buttons order, it will be reset to 0, do not use padding, use margin*/
overflow:hidden;
}
.mac_os_x_focused .buttons a.maximize {
background:transparent url(mac_os_x/buttons.gif) no-repeat 0 -30px !important;
}
.mac_os_x .buttons.over a.maximize {
background:transparent url(mac_os_x/buttons_over.gif) no-repeat 0 -30px !important;
}
.mac_os_x .buttons a.minimize {
float:left;
background:transparent url(mac_os_x/button_unactive.gif) no-repeat 0 0;
height:15px;
width:14px;
margin: 3px 7px 0 0;
padding-top:1px; /* padding-top = buttons order, it will be reset to 0, do not use padding, use margin*/
overflow:hidden;
}
.mac_os_x_focused .buttons a.minimize {
background:transparent url(mac_os_x/buttons.gif) no-repeat 0 -15px !important;
}
.mac_os_x .buttons.over a.minimize {
background:transparent url(mac_os_x/buttons_over.gif) no-repeat 0 -15px !important;
}
.mac_os_x .buttons a.minimize.disabled, .mac_os_x .buttons.over a.minimize.disabled {
background:transparent url(leopard/button_unactive.gif) no-repeat 0 0 !important;
}
.mac_os_x_overlay {
position:absolute;
top:0;
left:0;
width:100%;
background-color:#DDD;
filter:alpha(opacity=60);
opacity: 0.6;
-moz-opacity: 0.6;
}
| css |
{"categories":["Data Management"],"desc":"\n","details":{"authors":"<NAME>","format":"pdf","isbn-10":"1782169334","isbn-13":"978-1782169338","pages":"162 pages","publication date":"November 25, 2013","publisher":"Packt Publishing","size":"5.00Mb"},"img":"http://2172.16.17.328/covers/ee/ee570a1c2da554cc98dd75e10b05057f.jpg","link":"https://rapidhosting.info/files/eor","title":"Exploring Data with RapidMiner"} | json |
//Order class has the orders of the customer.
public class Order
{
private String orderId;
private Customer customer;
private Address address;
private Product product;
private double price;
private int[] quantities;
private int startDate;
private int endDate;
private String status;
public Order(String orderId, Customer customer, Address address, Product product, double price, int[] quantities, int startDate, int endDate)
{
this.orderId = orderId;
this.customer = customer;
this.address = address;
this.product = product;
this.price = price;
this.quantities = quantities;
this.startDate = startDate;
this.endDate = endDate;
this.status = "active";
}
public Order(String orderId,Product product, double price,int[] quantities, int startDate,int endDate)
{
this.orderId = orderId;
this.product = product;
this.price = price;
this.quantities = quantities;
this.startDate = startDate;
this.endDate = endDate;
this.status = "active";
}
public String getOrderId()
{
return orderId;
}
public Customer getCustomer()
{
return customer;
}
public void setCustomer(Customer customer)
{
this.customer = customer;
}
public Address getAddress()
{
return address;
}
public void setAddress(Address address)
{
this.address = address;
}
public void setOrderStatus(String status)
{
this.status = status;
}
public Product getProduct()
{
return product;
}
public void setProduct(Product product)
{
this.product = product;
}
public double getPrice()
{
return price;
}
public int getQuantity()
{
int a =0;
for(int i=0;i<quantities.length;i++)
{
a+=quantities[i];
}
return a;
}
public int getStartDate()
{
return startDate;
}
public int getEndDate()
{
return endDate;
}
public String getStatus()
{
return status;
}
public String toString()
{
return getClass().getName() + "[Id:" +getOrderId() + " , customer: " +getCustomer().getCustomerId() +", address: "+getAddress().getAddressId() +", Product: "+getProduct().getProductId() + ", Price: "+getPrice()+", quantities: "+getQuantity()+", Start date: " +getStartDate() +" , End Date:" +getEndDate() +", Status:" +getStatus() +"]";
}
} | java |
import FWCore.ParameterSet.Config as cms
import EventFilter.RPCRawToDigi.rpcUnpackingModule_cfi
rpcunpacker = EventFilter.RPCRawToDigi.rpcUnpackingModule_cfi.rpcUnpackingModule.clone()
rpcunpacker.InputLabel = cms.InputTag("rawDataCollector")
rpcunpacker.doSynchro = cms.bool(True)
| python |
Mumbai : An IAF plane carrying 190 Indian nationals evacuated from Yemen landed here today, in the government's first major mission to rescue Indians stranded in the strife-torn nation.
The evacuees, which included nurses and workers, among others, reached home in a special flight, thus bringing an end to their about a week-long ordeal. The Indian Air Force's C-17 Globemaster, carrying them landed at around 3:25 AM at the city's international airport here.
This was the second flight in the rescue efforts, as at 2 AM, an IAF plane carrying 168 Indians aboard, evacuated from Yemen landed in Kochi.
Defence sources said that the flight to Mumbai could not take off on time from Djibouti due to the pending paper work of the evacuees. Many people did not have even their passports with them leading to delay in flight, the sources said. Maharashtra Tourism and Parliamentary Affairs Minister Prakash Mehta and MP Kirit Somaiya were present the airport to welcome the evacuees.
They were part of as many as 350 Indians who reached Djibouti after being evacuated on a Navy vessel from Aden, the seaport city of Yemen.
Meanwhile, the Central Railway has offered free-of-cost travelling for the evacuees till their destinations.
The evacuation operation was a very difficult task as not much details were available with the IAF, Wing Commander Vikram Abbi, co-pilot of the flight, told PTI.
Abbi said that the crew were told about the rescue operation on March 30 and the flight departed from India yesterday.
work. "
"All the shops were closed, we didn't have food for many days," she said.
A spokesperson in the External Affairs Ministry has said of the 350 evacuees, 206 belong to Kerala, 40 are from Tamil Nadu, 31 from Maharashtra, 23 from West Bengal and 22 from Delhi, besides other states.
The Indians were evacuated late Monday night by INS Sumitra, which was diverted from its anti-piracy patrol in the region. It waited for hours to get local clearances as heavy fighting was reported in the city.
Meanwhile, Central Railway will be adding extra coaches to the trains heading towards Kerala, Chennai and Kolkata to ensure hassle-free travel for evacuees to reach their destinations.
"We would be adding extra coaches to the Kerala-bound Mangala Express, Chennai-bound Chennai Mail and Kolkata-bound Duronto Express to facilitate their (evacuees') early home going. While 60 evacuees would be travelling to Kerala, 40 to Chennai and 30 to Kolkata," General Manager, Central Railway, Sunil Kumar Sood told PTI here.
Sood said the railways have requested normal passengers who have booked tickets under emergency quota to postpone their trip by a day so that their tickets could be used for evacuees, to which they have agreed.
Meanwhile, one of the evacuees, who identified herself as Faiju, said the Yemini city of Sana'a is almost destroyed in the civil war and fighters have moved to the seaport city of Aden.
Narrating her plight, Faiju, who used to work as a nurse in Sana'a, said, "We were not given any salary. We were also made to work overtime as all the local nurses had fled our hospital," she said, adding there could be about 300 Indian people who are still stuck up in Aden. | english |
Ever thought a hot room could help you lose weight? Sounds too easy, right? Well, youโre not alone. However, saunas have gained popularity over time for weight loss. Besides possibly shedding pounds, they may come with other potential health benefits. So, letโs dive into this sauna world. Letโs look at the science behind it, potential risks, and how to incorporate sauna sessions into your weight loss route.
Weโll look at different types of saunas, their possible health perks, and safety concerns. Weโll also share tips on how to safely mix sauna sessions with your workout and diet. Plus, weโll answer common questions about sauna use for weight loss.
Did you know?
Saunas come in various forms. All of them have unique ways of heating. Now, letโs talk about the four main types of saunas and how they generate heat.
In this type of sauna, wood is burned in a stove. This heat then warms the rocks around the stove. The heated rocks warm the air in the sauna room. These saunas have high heat and low moisture levels. So, users get a dry heat feel.
Electrically heated saunas work with an electric heater thatโs often on the floor or wall. The heater generates the heat. Like the wood-burning ones, these also have high heat and low moisture levels. Users enjoy a dry heat session.
Steam rooms, also known as Turkish baths, provide a different experience. Heat is generated by boiling water to create a steam-filled humid space. Despite lower temperatures than dry heat saunas, steam rooms have 100% humidity. This means users get a wet heat session.
Infrared saunas use light waves to warm the body directly. So, they donโt heat the air around. Users can get perks like more sweat and relaxation, just like traditional saunas offer.
Now letโs look at a quick summary of these types of saunas and their heating methods:
Saunas may potentially help you shed pounds through various means. These include losing water weight through sweat, burning calories by increasing heart rate, and improving your metabolism. Letโs go into detail about each of these aspects.
One reason why saunas may appear to aid in weight loss lies in quick water weight reduction through sweating. When youโre in a sauna, your bodyโs temperature goes up, and you start to sweat. The sweating process may lead to a short-term loss of water weight as your body loses fluids. But note that this type of weight loss is short-lived. You regain the water weight as soon as you hydrate after your sauna sessions.
While losing water weight might feel like a win, keep in mind the risk of dehydration linked with sauna use. Dehydration can happen when you lose more fluids than you take in. It can lead to health problems like dizziness, fatigue, and fainting. So, to curb the risk of dehydration, make sure to drink lots of water before, during, and after your sauna sessions.
Being aware of dehydration signs can help you know when you need to leave the sauna and take in fluids. Common signs include dry mouth, extreme thirst, and feeling woozy. If you experience these symptoms in a sauna, leave right away and drink fluids. To prevent dehydration, limit sauna use to 15-20 minutes at a time. Also, keep yourself well-hydrated throughout the day.
Saunas also may help with weight loss by raising your heart rate. In high temperatures, your heart works harder to pump blood and keep your bodyโs core temperature steady. This increase in heart rate is similar to what happens during moderate physical activity. So, spending time in a sauna may potentially lead to a slightly higher calorie burn compared to being at rest.
Besides potentially burning calories and shedding water weight, studies show saunas may improve lipid profiles and metabolism for some users. More research is needed to support this, but bear in mind that using a sauna alone likely wonโt lead to significant long-term weight loss. You must pair it with healthy eating and exercise habits in your day-to-day life.
Hereโs a brief overview of the ways saunas contribute to weight loss:
Possible positive impacts on cholesterol levels and metabolism, more research is needed regarding this.
While sauna use may help you lose weight and offer numerous other potential health perks, there are also risks to think about. Letโs discuss them:
As mentioned earlier, using a sauna raises your body temperature and triggers sweating. This can cause dehydration if you donโt properly hydrate before, during, and after sauna sessions. Being in the heat for too long can also lead to overheating. This can result in health problems such as dizziness, confusion, and feeling sick. To control these risks, stay well-hydrated and limit sauna sessions to no more than 15-20 minutes. Advice is particularly important for people new to saunas or those with a history of dehydration.
While sauna use may enhance circulation and may potentially help some peopleโs heart health, it can pose risks to others with prior heart conditions. The high heat levels in saunas can stress the heart and trigger irregular heartbeats, chest pain, or shortness of breath in users with a heart disease history. If youโre worried about your heart health, talk to your healthcare provider before using a sauna.
If you have a heart condition, know that sauna use may both aid and pose a risk. Potentially beneficial impacts may include better circulation, reduced blood pressure, and lower heart-related sickness and death rates. However, individuals with heart issues must be extra careful and heed their healthcare providerโs advice.
Certain people should steer clear of saunas or limit their use to protect their health. These include:
Letโs put these sauna risks into a simple overview:
Sauna use may be linked to other potential health benefits besides losing weight. These include:
A key perk that often may be tied to sauna use is its ability to help remove toxins and heavy metals from the body. As saunas promote profuse sweating. They help release impurities and waste through the skin, aiding detoxification. More research on this is required.
Sauna use is proposed to speed up the post-workout recovery process by increasing blood flow to tired and strained muscles. This may help reduce muscle soreness and stiffness and aid in overall muscle relaxation.
Regular sauna use may lower the risk of chronic health conditions and death from any cause. Research points out that frequent sauna goers have a lower risk of dying from heart disease, sudden cardiac death, and other health-related issues. More research needs to be undertaken to corroborate this potential benefit.
Sauna use may impact respiratory function by loosening phlegm, clearing nasal congestion, and reducing symptoms of asthma and other breathing troubles.
People suffering from chronic pain or fatigue may find relief in regular sauna sessions. By promoting relaxation and increasing blood flow, saunas may potentially help symptoms related to conditions such as rheumatoid arthritis and fibromyalgia.
Lastly, sauna use has been said to potentially reduce stress and promote mental well-being. By creating a relaxing environment, sauna sessions may be a key part of a stress management plan, leading to a calmer, balanced mindset.
Hereโs a quick recap of these health benefits:
May help release impurities and waste products through the skin. More research is needed.
May reduce the risk of death from heart disease and other health events. More research is needed.
So now you are aware of the possible benefits of sauna use for weight loss. But how do you include sauna sessions in your fitness plan? Well, here are a few handy hints for doing so safely and effectively:
Keep up proper hydration when using a sauna for weight loss. Remember to drink a good amount of water before going into the sauna. Continue to sip water during your session. After leaving the sauna, take in even more liquids to replace any lost through sweating. This will save you from dehydration and let your body enjoy all sauna perks.
While sauna use may bring some weight loss perks, donโt use it as the only weight loss method. Instead, aim to mix sauna sessions into a more extensive fitness plan that also covers regular exercise and a balanced diet. This approach will make sure that any weight loss from sauna use stays in the long run.
As a rule of thumb, try to stay in the sauna for no more than 15-20 minutes. Begin with 1-2 sauna sessions per week and slowly increase to 3-4 sessions, only if your body can cope. Listen to your body and adjust as needed, taking care not to push it too hard. Also always keep your doctor in the loop before incorporating or increasing the sauna sessions.
And lastly, always keep safety first when using a sauna for weight loss. Be mindful of your personal limits and leave the sauna if you feel off or feel like fainting. Take note of dehydration signs such as dry mouth, feeling thirsty, and not sweating. If you have any pre-existing health troubles, especially regarding heart health, talk to your healthcare provider before putting in sauna sessions into your fitness plan.
Here are these practical guidelines summarized:
Aim for 15-20 minutes per session, begin with 1-2 sessions per week, and increase as tolerated while keeping your doctor in the loop.
Sauna use may help with weight loss, though majorly through short-term water weight reduction rather than meaningful long-term fat loss. The heart rate and calorie burn increase linked with sauna use, along with the potentially better lipid profile and metabolism, may make it a good complement to a full-fledged fitness routine that also includes regular exercise and a balanced diet. Plus, saunas may present various potential health benefits beyond weight loss, such as better respiratory function, stress reduction, and heart health upgrades. Some of which require more research to be corroborated.
But remember, use saunas in the right way. Using them wrong can cause risks like dehydration, overheating, and stress on existing heart conditions. By following the handy tips given above and checking with your healthcare provider for personalized guidance, you can safely and effectively include sauna sessions into your fitness and weight loss journey for optimal results.
While sauna use may help with overall weight loss through water weight reduction and calorie burn, shedding belly fat specifically isnโt backed by strong evidence.
The main difference between saunas and steam rooms lies in dry or wet heat. Both may yield weight loss perks through sweat and calorie burn. Choosing between them depends on personal likes, comfort, and access.
Limit sauna sessions to no more than 15-20 minutes per go.
Calorie burn in a sauna session varies depending on factors like your body makeup and the specific sauna type. While sauna use may only lead to a minor calorie burn increase, so do not consider it as the only method for weight loss.
Everyday sauna use can cause health risks such as dehydration and overheating. Begin sauna use with 1-2 weekly sessions and increase gradually if you can tolerate it, paying close attention to signs of dehydration or discomfort. Always check with your healthcare provider for personalized guidance on how to safely use the sauna for weight loss.
| english |
<filename>dataset/klga/19710429.json
version https://git-lfs.github.com/spec/v1
oid sha256:249deb6013bb3ed1fbabbfc5561e165ec2e5c798eaaa370870d6d12a991e9563
size 7004
| json |
A sample MDN app that uses getUserMedia and MediaRecorder API for recording audio snippets, and The Web Audio API for visualizations.
You can [play with the live demo](https://mdn.github.io/web-dictaphone/).
Documentation:
* [Using the MediaRecorder API](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder_API/Using_the_MediaRecorder_API): Explains in detail how the Web Dictaphone works.
* [MediaRecorder API landing page](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder_API): includes API reference and more
Thanks to [Sole](http://soledadpenades.com/) for the oscilloscope code.
## Run
1. [Install](https://www.php.net/manual/en/install.php) php
2. Run
```php
php -S localhost:8080
```
3. Open the browser with `http://localhost:8080`
## Comment
The audio files recorded and saved and `.ogg`. There are some way to convert them to `.mp3`. One of them is to use [`ffmpeg`](https://www.ffmpeg.org/).
If `ffmpeg` is installed on your machine, go to `server.php` and remove lines 4-5 and uncomment line 6
```diff
-move_uploaded_file($audio, $name.'.ogg');
-// encode the file to mp3 if ffmpeg is installed
-//exec('ffmpeg -i '.$audio.' '.$name.'.mp3')
+exec('ffmpeg -i '.$audio.' '.$name.'.mp3')
``` | markdown |
Punjab Minister of Sports and Youth Affairs Rana Sodhi on Friday said that the state government will use the abundant talent and expertise of Abhinav Bindra to guide budding athletes in the new proposed Sports University in Patiala.
Punjab Minister of Sports and Youth Affairs Rana Sodhi on Friday said that the state government will use the abundant talent and expertise of Abhinav Bindra to guide budding athletes in the new proposed Sports University in Patiala.
Sondhi's remark came after he interacted with Padma Bhushan and Rajiv Gandhi Khel Ratna Award winner Abhinav Bindra in his office at the Punjab Civil Secretariat.
"The proposals have been made to establish a new High-Performance Centre that can assess and Train the Physical Parameters of an Athlete using Data and Real-Time Visual Feedback.
Technology would enable athletes to access Sport-Specific training routines customized for them by a team of Sports Medicine Consultants Physiotherapists, Sports Scientists, and Data Analysts," Sodhi said.
"State Government will be looking to support the plan with the help of a corporate sponsor. Such initiatives would certainly steer Punjab towards glory in the sporting arena," Sodhi added.
The Olympic gold medallist on the occasion also saw the gallery of photographs of eminent sportspersons, including his pictures in the minister's room, who have carved out a niche for themselves as well as brought laurels to Punjab. The minister also recalled the memories of the Beijing Olympics (2008) in which Bindra won India's first individual gold medal where the minister was also present. The minister also recalled the journey of Bindra from his days at the Doon School right till his becoming Olympic Champion. | english |
Lout in Tajik: What's Tajik for lout? If you want to know how to say lout in Tajik, you will find the translation here. We hope this will help you to understand Tajik better.
"Lout in Tajik." In Different Languages, https://www.indifferentlanguages.com/words/lout/tajik. Accessed 07 Oct 2023.
Check out other translations to the Tajik language:
| english |
<filename>hl7.fhir.rX/hl7.fhir.r2b.core/package/CodeSystem-v3-PatientImportance.json
๏ปฟ{"resourceType":"CodeSystem","id":"v3-PatientImportance","meta":{"lastUpdated":"2016-03-23T00:00:00.000+11:00"},"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/valueset-oid","valueUri":"urn:oid:2.16.840.1.113883.5.1075"}],"url":"http://hl7.org/fhir/v3/PatientImportance","version":"2016-03-23","name":"v3 Code System PatientImportance","status":"active","experimental":false,"publisher":"HL7, Inc","contact":[{"telecom":[{"system":"other","value":"http://hl7.org","rank":1}]}],"description":" Patient VIP code","caseSensitive":true,"valueSet":"http://hl7.org/fhir/ValueSet/v3-PatientImportance","compositional":false,"versionNeeded":false,"content":"complete","count":0,"concept":[{"code":"BM","display":"Board Member","definition":"Board member of health care organization"},{"code":"DFM","display":"Physician Family Member","definition":"Family member of staff physician"},{"code":"DR","display":"Staff Physician","definition":"Member of the health care organization physician staff"},{"code":"FD","display":"Financial Donor","definition":"Financial donor to the health care organization"},{"code":"FOR","display":"Foreign Dignitary","definition":"Foreign citizen dignitary of interest to the health care organization"},{"code":"GOVT","display":"Government Dignitary","definition":"Government dignitary of interest to the organization"},{"code":"SFM","display":"Staff Family Member","definition":"Family member of staff member"},{"code":"STF","display":"Staff Member","definition":"Staff member of the health care organization"},{"code":"VIP","display":"Very Important Person","definition":"Very important person of interest to the health care organization"}]} | json |
Bihar Cricket Association (BCA) chief Jagnnath Singh โ also an advocate โ has sent a legal notice to BCCI GM Cricket OperationsSaba Karim for interfering in the process of the age-verification test of the U-16 players by anti-doping manager Abhijit Salvi. As per the BCA chief, Karim stopped the checks once the players picked by the disqualified committee of the BCA โ led by Gopal Bohra and Rabi Shankar Prasad Singh โ were tested. In the notice, accessed by IANS, the BCA chief has pulled up Karim for interfering in the process of the AVP (age verification programme) Medical Examination of the players selected for the U-16 age group by the committee of BCA led by the president.
You intervened in the matter and forbid Salvi from doing the AVP Medical Examination of the players selected for the U-16 age group by the committee of BCA led by me. As soon as the test of the players of the Bohra-led committee was over, you asked Salvi not to conduct medical test of the team of the players of under-16 age group, 57 in numbers telephonically.
With the situation at the clinic griming, I was apprehensive of any un-toward incident taking place and contacted you on telephone, you again did not pick my call and I sent you a message. The facts stated clearly demonstrate that you are bent on disobeying the emails/orders of the Committee of Administrators (CoA) appointed by the Supreme Court,โ he wrote in the notice.
Singhโs message to Karim after the tests were stopped read: โSaba Karim, when Salvi was ready for medical test of players of both the factions, you forbidden (sic) him telephonically not to do the medical test of 57 players of under 16 age group on the ground that CoA has only directed for medical of players notified by Bohra led committee of BCA.
If any ugly scene is created by players you will be solely responsible for your wrong exercise of power in the name of CoA of BCCI.
The BCA chief further asked Karim to remember that he holds a public position and shouldnโt be a part of any act that puts the future of talented cricketers in the state in jeopardy.
You should not forget that you are holding a public post in the BCCI as GM Cricket Operations and from the above actions, it is abundantly clear that you are bent upon allowing the disqualified committee to sell out the talent of Bihar. You should refrain from taking part in the politics of Bihar. Through this legal notice, I would like to request you to please refrain from doing all such acts. You should also not forget that none is above the law,โ he warned.
Singh had written to the CoA on Sunday, informing them that nothing has changed in Bihar and that the disqualified committee of the BCA-led by Gopal Bohra and Rabi Shankar Prasad Singh are still calling the shots in all matters related to the BCCI. | english |
alright guys. my system arrived yesterday and I've been tweaking away. here are my results.
first off, flashing your GPU is a risky thing if you don't know what you're doing. be very careful before you go ahead.
my method of choice was to use my existing bios and unlock the shaders and reflash it. to do this, i used the following (Google these and get the latest versions):
step 1. Fire up GPUZ and note your card details. My screen looked like this:
Once I did this, my screen looked like this.
Step 4. Click on Additional features, as shown in this pic:
This will lead you to a screen like this:
The circled area is where the magic happens. Select the "6970 shader count". Then go to the bottom of the screen, where the option to save the bios is located. I saved it with the name "6970". don't bother with file extensions.
Step 5 . Make sure you download the latest version of ATI Winflash. the reason I say this is, the older versions weren't compatible with windows 7 64 bit. Run the program and you'll get this screen:
select load image, as shown, and then you go to the folder where you saved the modded bios. once you do that, the option next to load image, called "Program" is activated. this is the button that flashes your modified bios onto the card. Before you press this, make sure that the BIOS switch on the 6950 is at slot 1. if it is, go ahead and press "Program".
the flashing process begins and then asks you to restart. Cross your fingers, like i did and restart the system.
Yes. I unlocked the additional shaders and my card ran 3d mark vantage fine without artifacts.
So there you have it. pretty easy process as long as you're careful.
and yeah, I go the rest of my system from Delta, but the graphics card was found in a small shop in Ritchie street after an afternoon of searching. the guy was friendly and told me that the card had arrived only last week. I double checked to make sure the price was right. 15K was what he charged in the invoice, but added 1.5K in VAT when he delivered. so yeah, i paid about 16.5K in total.
Still happy with my purchase though. I kind of trust gigabyte more than sapphire and powercolor to be honest.
oh, and quick question. how do you modify a thread title after creating one?
| english |
Battling to survive as an Olympic sport, weightliftingโs world governing body is likely to introduce six new divisions among a total of 10 for the 2024 Paris Games, retaining only four from the Tokyo edition, a move that will see Indian teen sensation Jeremy Lalrinnungaโs current category being lopped off the roster.
The proposal needs to be approved by the International Weightlifting Federationโs General Council before being sent to the International Olympic Committee (IOC) for its nod.
The proposed weight categories for Paris 2024 include five each for males and females. They are 61 kg, 73 kg, 89 kg, 102 kg and +102 kg for men, and 49 kg, 59 kg, 71 kg, 81 kg and +81 kg for women.
The ones retained from Tokyo are 49 kg and 59 kg for women and 61 kg and 73 kg for men.
The changes, which come a year after the IOC allocated a quota of 120 athletes across all divisions for the Paris Games, highlights the diminishing presence of weightlifting at the sporting extravaganza.
While the 2016 Rio Games had seen participation of 260 athletes across 15 weight categories, the quota was cut came down to 196 in 14 classes in the Tokyo Olympics earlier this year.
โThis (10 weight categories) is just a proposal, it well first go to IWFโs general body for approval followed by the IOC. Only then will these categories be confirmed," Indian Weightlifting Federation (IWLF) president Sahdev Yadav told PTI.
A final decision is expected by the end of February.
โThe next (IWF General Council) meeting date has not been decided yet. Chances are that by January or February it will happen," Yadav said.
Should the proposal be approved, Jeremy, who currently competes in the menโs 67 kg category will have to either bulk up to 73 kg or come down to 61 kg.
Tokyo Olympics silver medalist Mirabai Chanu, the other Indian lifter in the fray for the Paris Games, remains unaffected as her weight class is proposed to be retained.
Asked how the new categories will impact the Indian camp Yadav said, โThis will not affect us, we will take Jeremy to the upper category 73 kg. I donโt think it (the decreasing weight categories in the Olympics) will make a difference to weightlifting in India. "
Reiterating Yadavโs comments, national coach Vijay Sharma said the Asian Games next year will be the last event in which Jeremy participates in the 67 kg category before moving on to his new weight class.
โThis is a good thing for us, we will start preparing for the Olympics after the Asian Games. Up till the Asian Games Jeremy will take part in 67 kg till. After that he will move to the 73 kg category.
โHe will have to work hard to bulk up but we will manage," Sharma said from Patiala.
This will not be the first time Jeremy will have to bulk up.
The 19-year-old lifter from Mizoram had won the the 2018 Youth Olympics gold medal in Buenos Aires in the 62 kg category.
He had then moved to 67 kg to comply with the new Olympic weight categories the IWF had introduced then.
Recently, Jeremy has consistently been improving his personal best in the 67 kg and has already qualified in the 67 kg category for the 2022 Birmingham Commonwealth Games thanks to his gold medal finish at the Commonwealth Championship in Tashkent earlier this month.
Weightlifting also remains at risk of being removed from the 2028 LA Games program because of governance issues and a lengthy history of doping problems.
Read all the Latest Sports News here(This story has not been edited by News18 staff and is published from a syndicated news agency feed - PTI) | english |
<filename>app/views/welcome/base_tmpl.scala.html
@(title: String, navbar: Html = Html(""), above_content: Html = Html(""), body_args: Map[Symbol,Any] = Map())(
content: Html)(
css: Html *)(
js: Html *)(
implicit req: RequestHeader, messages: Messages, env: Environment)
<!DOCTYPE html>
<html lang="en">
<head>
<title>@title</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
@libs.webjars("css", "bootstrap")
@libs.webjars("css", "font-awesome")
@libs.webjars("css", "animate.css")
@css
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="../assets/js/html5shiv.js"></script>
<![endif]-->
</head>
<body @toHtmlArgs(bodyHtmlArgs)>
@navbar
@above_content
<div class="container-fluid">
@content
</div>
@libs.webjars("js", "bootstrap")
@libs.webjars("js", "holder")
@js
</body>
<link rel="shortcut icon" type="image/png"
href="@routes.Assets.at("images/favicon.png")">
</html>
@bodyHtmlArgs = @{
body_args
.filterNot(_._1.name.startsWith("_"))
.filterNot(_._1 == 'id)
.toMap
} | html |
1. Short title and commencement.- (1) This Act may be called the Karnataka Legislature Salaries, Pensions and Allowances and certain other Law (Amendment) Act, 2020.
(2) It shall come into force with effect from 1st day of April 2020.
2. Amendment of Karnataka Act 2 of 1957.- In the Karnataka Legislature Salaries, Pensions and Allowances Act, 1956 (Karnataka Act 2 of 1957), after section 3, following new section shall be inserted, namely:"3A. Reduction in salary and allowances.- Notwithstanding anything contained in the Karnataka Legislature Salaries, Pensions and Allowances Act 1956 ( Karnataka Act 2 of 1957), Salary and Allowances payable to Chairman, Deputy Chairman, Speaker, Deputy Speaker, Leader of Opposition, Government Chief Whip, Opposition Chief Whip, Members of the Legislative Assembly and the Legislative Council shall be reduced by thirty per cent, for a period of one year commencing from the 1st April, 2020, to meet the exigencies arising out of Corona Virus (COVID-19) pandemic."
3. Amendment of Karnataka Act 5 of 1957.- In the Karnataka Ministers Salaries and Allowances Act, 1956 ( Karnataka Act 5 of 1957), after section 3, the following new section shall be inserted, namely:"3A. Reduction in Salary and allowances Notwithstanding anything contained in the Karnataka Ministers Salaries and Allowances Act, 1956 (Karnataka Act 5 of 1957), Salary and Allowances payable to Chief Minister, Minister, Minister of State and Deputy Minister shall be reduced by thirty per cent, for a period of one year commencing from the 1st April, 2020, to meet the exigencies arising out of Corona Virus (COVID-19) pandemic."
4. Power to remove difficulties .-If any difficulty arises in giving effect to the provisions of this Act, the Government may, by a notification or by order published in the Official Gazette, make such provisions which are not inconsistent with the provisions of this Act, as appear it to be necessary or expedient, for removing the difficulty:
Provided that, no notification or order under this section shall be made after the expiry of a period of two years from the date of commencement of this Act:
Provided further that, any clarification or Government proceedings issued, if any, by the Government in this behalf before the publication of this Act shall be deemed to have been issued under the provisions of this Act,
5. Repeal and Savings.- (1) the Karnataka Legislature Salaries, pensions and Allowances and certain other Law (Amendment) Ordinance, 2020 ( Karnataka Ordinance No.4 of 2020) is hereby repealed.
(2) Notwithstanding such repeal anything done or any action taken under the principal Act, as amended by the said Ordinance, shall be deemed to have been done or taken under the principal Act, as amended by this Act.
STATEMENT OF OBJECTS AND REASONS
In order to manage and control such situation, it has become necessary to raise resources by reductions of salaries and allowances of Chief Minister, Minister, Minister of State Deputy Minister, Chairman, Deputy Chairman, Speaker Deputy, Speaker Leader of Opposition Government Chief whip, Opposition Government Chief whip, Members of the Legislative Assembly and the Legislative Council;
Therefore, it is considered Necessary to amend the Karnataka Legislature Salaries, Pensions and Allowances Act, 1956 (Karnataka Act 2 of a 1957) And the Karnataka Ministers Salaries and Allowances Act, 1956( Karnataka act 5 of 1957).
As the matter was urgent and both the Houses of the Karnataka Legislature were not in session, the Karnataka Legislature Salaries Pension and Allowances and certain other law (Amendment) Ordinance, 2020 (Karnataka ordinance 4 of 2020) was promulgated to achieve the above object.
This Bill seeks to replace the above Ordinance.
Hence the Bill.
EXPLANATORY STATEMENT AS REQUIRED BY SUB-RULE (1) OF RULE
80 OF THE RULES OF PROCEDURE AND CONDUCT OF BUSINESS IN THE KARNATAKA LEGISLATIVE ASSEMBLY.
In order to manage and control such situation, it has become necessary to raise resources by reduction of salaries and allowances of Chief Minister, Minister, Minister of State Deputy Minister, Chairman, Deputy Chairman, Speaker, Deputy Speaker, Leader of Opposition Government Chief Whip, Opposition Government Chief whip, Members of the Legislative Assembly and the Legislative Council;
Therefore, it is considered necessary to amend the Karnataka Legislature Salaries, Pensions and Allowances Act, 1956 (Karnataka Act 2 of 1957) and the Karnataka Ministers Salaries and Allowances Act, 1956 ( Karnataka Act 5 of 1957).
As the matter was urgent and both the Houses of the Karnataka Legislature were not in session, the Karnataka Legislature Salaries, Pensions and Allowances and certain other Law (Amendment) Ordinance, 2020 (Karnataka ordinance 4 of 2020) was promulgated to achieve the above object.
FINANCIAL MEMORANDUM
There is no extra expenditure involved in the proposed Legislative measure.
J.C. Madhu Swamy Minister for Law
Parliamentary Affairs and
Legislation and Minor Irrigation
M.K. Vishalakshi
Secretary (I/c) Karnataka Legislative Assembly
Vikasa Soudha, Bengaluru, 3rd September, 2020, P7, W.D. 241, Copies 500
| english |
Los Angeles: The โSorry not sorryโ hitmaker, who completed her 90-day rehab treatment for drug overdose a few days ago, is still heavily dependent on her former beau Wilmer Valderrama, to remain sober.
A source close to Lovato told tmz. com that Lovato and Valderrama communicate regularly.
The singer recently left rehab stint, which followed her hospitalisation from an overdose July.
She is now spending three days a week at a sober house, which has counselling staff on hand, as well as people who she can share experiences with. | english |
<reponame>jmyates2014/Code-Snippet-Cheatsheet
body {
background: #f8f9fa;
}
.snippets-list {
margin: 0 0 7rem 0;
}
| css |
{
"name": "YeddoToolkit",
"version": "1.0.0",
"summary": "This is such a yeddo toolkit!",
"description": "This is some super yeddo toolkit that was made by crazy guy",
"homepage": "https://github.com/qmskills/YeddoToolkit",
"license": "MIT",
"authors": {
"<NAME>": "<EMAIL>"
},
"platforms": {
"ios": "11.0"
},
"source": {
"git": "https://github.com/qmskills/YeddoToolkit.git",
"tag": "1.0.0"
},
"source_files": "YeddoToolkit/**/*.{h,m,swift}",
"swift_versions": "5.0",
"swift_version": "5.0"
}
| json |
<reponame>liminalvillage/bridgemedicine
{
"name":"Genosociogram",
"text": "Door te werken met een genosociogram (link) kunnen we beginnen met het benoemen van de vergeten voorouders en hun levensgebeurtenissen, zodat ze kunnen worden geรฏntegreerd in ons persoonlijke verhaal. Een genosociogram is een stamboom aangevuld met belangrijke levensgebeurtenissen en hun emotionele context. Voorbeelden zijn: ongelukken, verdrongen rouw, onuitgesproken gebeurtenissen, familiemythen, enzovoort. Als je een tekening maakt, helpt het om het geheel van deze relaties en gebeurtenissen te bevatten."
}
| json |
Spain's biggest telecoms company Telefonica signed an agreement with rivals Vodafone and Orange on Tuesday, granting them access to its fibre optic network to roll out faster broadband for customers.
Vodafone and Orange will make a one-off payments on individual installations to share them for no less than 20 years and Spain's telecoms regulator CMT will set prices, the three companies said in a statement. They gave no further details of the payments.
The agreement is reciprocal for the three firms, though as Telefonica's fibre network currently reaches over 2 million homes the deal is more attractive immediately for Vodafone and Orange.
Telefonica said in return, when these companies roll out their own networks where Telefonica does not have coverage, it will ask to share them.
Vodafone and Orange, which in April had asked the CMT to intervene in talks with Telefonica over fibre optic connections into individual homes, teamed up earlier this year to build a fibre optic network offering fast broadband speeds.
Both companies plan to invest up to 1 billion euros in their joint network that will bring fibre optic to 6 million homes.
In recession-hit Spain, where 27 percent of the workforce is unemployed, telecoms operators face tough competition as they slash prices and try to hold on to customers.
In this cut-throat environment, so-called quad play packages - combining fixed line, mobile, internet and television services - have become popular, though competitors cannot match Telefonica's across-the-board offerings or its fibre footprint.
At the end of 2012, only 252,388 of Spain's 9 million residential broadband internet connections were via fibre to the home, according to data from the CMT.
Catch the latest from the Consumer Electronics Show on Gadgets 360, at our CES 2024 hub.
| english |
Sports broadcaster ESPN Star Sports (ESS) is set to rake in over Rs 120 crore from ads during the upcoming Champions League Twenty20 (CLT), defying notions that viewer interest in the game would dip after team Indiaโs disastrous tour of England.
โWe are already sold out for the Champions League and have kept some 5-10 per cent ad inventory for the last minute, like we do for every tournament,โ ESS Executive Vice President, Ad Sales and New Media, Sanjay Kailash told PTI.
ESS has already roped in Nokia and Next Retail as joint presenting sponsors, and Coca Cola, Sony India, Tata Docomo, Reliance Netconnect, Digiworld and Toshiba as associate sponsors.
โAdvertising revenues this time is 20-25 per cent more compared to the last yearโs tournament,โ Kailash said but did not disclose the exact figures.
Industry sources said ESS has already sold almost all the ad spots for Rs 120 crore. According to media buyers, the spot rates are priced ranging between around Rs 1.5 lakh to Rs 1.75 2 lakh for a ten seconds slot. This, however, is much less compared to IPL, in which MSM has charged about Rs 5 lakh per ten seconds spot.
Analysts said despite Indiaโs poor showing in England, CLT is attracting advertiser interest due to a host of factors.
โThe CLT20 is timed very well with the festival season in India. With at least four IPL teams playing, it is a great opportunity for brand who look for getting into T20 formats but cannot given the higher entry level costs of IPL,โ ZenithOptimedia India Managing Partner Navin Khemka said.
He said brands, which are looking to dominate the festival season will look at this as a good launch into the festival campaigns.
โGiven that it is a T20 format the cost benefit for the tournament is very attractive for advertisers,โ he added.
Nokia is the title sponsor for this yearโs tournament to be played by 10 top sides from India, Australia, England, Sri Lanka, New Zealand and the West Indies from September 19 to October 9. For the last two years the title sponsor was Airtel.
In order to attract viewers, ESS has already kicked off a mass media campaign featuring Shahrukh Khan, Sachin Tendulkar, MS Dhoni, Gautam Gambhir and Virat Kohli with a total budget of around Rs 40 crore to promote the tournament.
Apart from Nokia, Toshiba, Coca Cola, Venkys, Indian Oil Corporation Ltd, and UB Ltd have signed up for on-ground sponsorships.(PTI)
| english |
<reponame>RaymondMcGuire/JEngine
#include "JE_PCH.h"
#include "spdlog/sinks/stdout_color_sinks.h"
namespace JEngine {
std::shared_ptr<spdlog::logger> Log::s_CoreLogger(nullptr);
std::shared_ptr<spdlog::logger> Log::s_ClientLogger(nullptr);
void Log::Init()
{
spdlog::set_pattern("%^[%T] %n:%$ %v");
s_CoreLogger = spdlog::stdout_color_mt("JENGINE");
s_CoreLogger->set_level(spdlog::level::trace);
s_ClientLogger = spdlog::stdout_color_mt("APP");
s_ClientLogger->set_level(spdlog::level::trace);
}
}
| cpp |
Prime Minister Narendra Modi hailed the performance of para-shooter Avani Lekhara, who won the bronze medal in the women's 50m Rifle 3 Position SH1 event of the Tokyo Paralympics. Avani has earlier won the gold in 10m air rifle SH1.
By India Today Web Desk: Prime Minister Narendra Modi on Friday congratulated para-shooter Avani Lekhara after she won bronze medal in the womenโs 50m Rifle 3 Position SH1 event at the Tokyo Paraympics. Avani won the bronze with the score of 445. 9 in the final.
โMore glory at the Tokyo #Paralympics. Elated by the stupendous performance of AvaniLekhara,โ said PM Narendra Modi in a tweet.
Abhinav Bindra, Indiaโs first individual gold medallist in the Olympics, also heaped praise on Avani Lekhara and called her performance for ages.
โAvani Lekhara take a bow young lady! A Bronze in 50m Rifle to add to your historic Gold at the #Tokyo2020 Paralympics. A performance for the ages! Many Congratulations,โ said Bindra.
China's Cuiping Zhang won gold with a Paralympic record score of 457. 9 while Germany's Natascha Hiltrop shot 457. 1 to win silver.
The 19-year-old shooter from Jaipur, Rajasthan became the first women to win two medals in the same Games. Earlier, she had won a gold medal in the 10m air rifle SH1 event.
#IND at all previous #Paralympics - 12 medals #IND at #Tokyo2020 alone - 12 medals (and counting)
Avaniโs bronze is Indiaโs 12th medal in the ongoing game. Before the Tokyo Paralympics, India had only managed to win a total of 12 medals in the Games. | english |
<filename>packs/src/classfeatures/overchannel.json<gh_stars>0
{
"_id": "VUtSLeCzFubGXmGx",
"name": "Overchannel",
"permission": {
"default": 0
},
"type": "feat",
"data": {
"description": {
"value": "<p>Starting at 14th level, you can increase the power of your simpler spells. When you cast a wizard spell of 1st through 5th level that deals damage, you can deal maximum damage with that spell.</p><p>The first time you do so, you suffer no adverse effect. If you use this feature again before you finish a long rest, you take 2d12 necrotic damage for each level of the spell, immediately after you cast it. Each time you use this feature again before finishing a long rest, the necrotic damage per spell level increases by 1d12. This damage ignores resistance and immunity.</p><p><em>**Foundry note: Note the limited use is to track the first, safe instance of Overchanneling. The damage formula is set to the base default of 2d12. The Versatile roll is set to 1d12 to add any additional damage.</em></p>",
"chat": "",
"unidentified": ""
},
"source": "PHB pg. 118",
"activation": {
"type": "special",
"cost": null,
"condition": ""
},
"duration": {
"value": null,
"units": ""
},
"target": {
"value": null,
"units": null,
"type": "self"
},
"range": {
"value": null,
"long": null,
"units": "self"
},
"uses": {
"value": 1,
"max": 1,
"per": "lr",
"type": "lr"
},
"ability": "",
"actionType": "other",
"attackBonus": 0,
"chatFlavor": "",
"critical": {
"threshold": null,
"damage": ""
},
"damage": {
"parts": [
[
"2d12",
"necrotic"
]
],
"versatile": "1d12"
},
"formula": "",
"save": {
"ability": "",
"dc": null,
"value": "",
"scaling": "spell"
},
"requirements": "School of Evocation 14",
"recharge": {
"value": null,
"charged": false
}
},
"flags": {},
"img": "icons/magic/acid/projectile-faceted-glob.webp",
"effects": []
}
| json |
package com.example.android.inventoryapp.Data;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
import com.example.android.inventoryapp.Data.ProductContract.ProductEntry;
public class ProductsDbHelper extends SQLiteOpenHelper {
//For constructors
public static final String DATABASE_NAME = "product.db";
private static final int DATABASE_VERSION = 2;
private static final String COMMA = " , ";
private static final String INTEGER_TYPE = " INTEGER";
private static final String TEXT_TYPE = " TEXT";
private static final String CREATE_TABLE =
"CREATE TABLE IF NOT EXISTS " + ProductEntry.TABLE_NAME + " (" +
ProductEntry.COLUMN_ID + INTEGER_TYPE + " PRIMARY KEY" +COMMA +
ProductEntry.COLUMN_PIC + TEXT_TYPE + COMMA +
ProductEntry.COLUMN_NAME + TEXT_TYPE + " NOT NULL" + COMMA +
ProductEntry.COLUMN_QUANTITY + INTEGER_TYPE + " DEFAULT 0" + COMMA +
ProductEntry.COLUMN_PRICE + " REAL" + " DEFAULT 0" + ")" + ";";
public ProductsDbHelper(Context context) {
super(context, DATABASE_NAME, null, DATABASE_VERSION);
}
@Override
public void onCreate(SQLiteDatabase sqLiteDatabase) {
sqLiteDatabase.execSQL(CREATE_TABLE);
}
@Override
public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {
sqLiteDatabase.execSQL("DROP TABLE IF EXISTS "+ProductEntry.TABLE_NAME);
onCreate(sqLiteDatabase);
}
}
| java |
The friendship bracelet trend, inspired by Swift's concerts, became a staple at her shows and played a role in sparking Taylor Swift's initial interest in Kelce before their romantic involvement. Kelce, a Chiefs star, was spotted trading these Swift-themed bracelets with fans at one of her concerts in July, further fueling the connection between the two.
The altered snapshot showcased Reynolds' face on Lively's body and Kelce's face on Swift's, creating a hilarious twist on the cozy moment the two friends shared on a blue velvet couch. The original image depicted Lively placing her hand on Swift's thigh as they smiled for the camera.
Former NFL player Sergio Brown, who had been missing since his mother's tragic death last month, has now been apprehended and is expected to face first-degree murder charges in connection to the killing of his 73-year-old mother, Myrtle Brown.
Maywood police are on the lookout for a former NFL player following the discovery of his mother, Myrtle Brown, 73, deceased near a creek behind her residence. Family members reported their inability to locate Myrtle and her son, Sergio Brown, 35, prompting a missing person investigation by the Maywood Police Department.
Sunday Night Football on NBC kicks off with Football Night in America at 7 p.m. ET, followed by the main game at 8:20 p.m. ET, also available on Peacock. Games after week 4 are subject to the NFL's flex scheduling policy, with matchups announced closer to the game. Exciting matchups await, making this season unpredictable.
The NFL's trend of record-breaking contracts shows no signs of slowing down. With the likes of Philadelphia Eagles' Jalen Hurts and upcoming talents like Trevor Lawrence (Jacksonville Jaguars), Tua Tagovailoa (Miami Dolphins), and Justin Fields (Chicago Bears) in the pipeline, the sky's the limit for future earnings in the league.
The Ministry of Consumer Affairs is working on new rules to make ecommerce platforms Lori Amazon and Flipkart liable for fraud committed by their sellers. This and more in todayโs ETtech Morning Dispatch.
Twitter has turned into what campaigners call a cesspool of misinformation, hate-filled conspiracies and racial slurs amid what appears to be reduced content moderation in recent weeks following mass layoffs and an exodus of key staff focused on user safety.
According to sources familiar with the situation, Mike Garafolo reported on Tuesday morning that the Bills have added Cole Beasley, the seasoned receiver, to the practice squad and plan to promote him to the active roster soon. Later, the news was made public, along with Brandin Bryant's addition to the active roster.
Rihanna has confirmed that she will be performing at the National Football League (NFL) Super Bowl Halftime Show. The artiste posted a picture on Instagram wherein her tattooed hand was seen holding an NFL-branded football. Her fans were quick to guess the postโs significance and were overjoyed.
The former Green Bay Packers quarterback's weekly show, "The Brett Favre Show", has been put on hold by SiriusXM due to the welfare fraud case against Brett Favre. The former NFL star has been accused of diverting federal welfare funds towards construction of a volleyball stadium at the University of Southern Mississippi. He is the alum of the university and his daughter has also played volleyball here.
NFL athlete Colin Kaepernick and his girlfriend Nessa Diab welcomed their first kid. The revelation of the newborn's arrival came only hours before Diab was scheduled to host the MTV VMA Awards 2022 on Sunday night.
Emboldened by their deep pockets and eager to boost viewership of their streaming-subscription services, Apple and Amazon have thrust themselves into negotiations for media rights held by the NFL, MLB, Formula One racing and college conferences.
Forbes estimates that the Cowboys enjoyed an operating profit of $280 million in 2020. Of course, there are structural reasons that make the finances of American football more stable and secure than football, not least that teams never risk being relegated to a lower competition.
| english |
<filename>by-location/40.816646-73.942840.json
{
"710024f-a": {
"width": 600,
"thumb_url": "http://oldnyc-assets.nypl.org/thumb/710024f-a.jpg",
"image_url": "http://oldnyc-assets.nypl.org/600px/710024f-a.jpg",
"title": "",
"date": "",
"text": "7th Aven[u]e, 137th to 138th Street, east side. (Before\nReconstruction).\nPresident Borough of Manhattan.\nCREDIT LINE IMPERATIVE.\n\nNeg: 2736\n",
"folder": "7th Avenue & 137th Street, Manhattan, NY",
"height": 418,
"original_title": "Manhattan: 7th Avenue - 137th Street",
"years": [
""
]
}
} | json |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.