text stringlengths 1 1.04M | language stringclasses 25 values |
|---|---|
#postdate {
position: relative;
color: navy;
font-size: 12px;
}
html {
font-family: Arial;
}
#quote {
font-family: cursive;
font-size: 24px;
}
img {
display: block;
border: 1px solid black;
height: 200px;
margin-left: auto;
margin-right: auto;
}
#blogtext {
text-align: left;
white-space: normal;
}
.ruby {
font-style: bold;
background-color: #70F171;
} | css |
Chahar to A Russell, SIX, yup, a smoke. Chahar continues keeping it on a good length, and this time Russell connects, slogging, getting a slight top-edge, but those biceps have been good enough to clear most ropes, so what is Jadeja's diving there now at long-on? ..
| english |
{
"name": "data catalog",
"alternateName": ["randomcatalog"],
"description": "random data catalog",
"url": "www.google.com",
"dataset": ["fakeDataset"],
"identifier": "catalog",
"@id": "catalogdoi",
"sameAs": ["www.google.com"],
"keywords": ["Ebola", "Lassa"],
"datePublished": "2019-01-01",
"dateModified": "2019-01-01",
"updatedBy": "LDH",
"temporalCoverage": {
"lte": "2019-12-31",
"gte": "2019-01-01"
},
"spatialCoverage": [{
"@type": "Country",
"name": "Sierra Leone",
"identifier": "SL",
"url": "https:\/\/www.iso.org\/obp\/ui\/#iso:code:3166:SL"
}],
"publisher": [{
"@type": "Organization",
"url": "https://cvisb.org/",
"name": "Center for Viral Systems Biology",
"alternateName": ["CViSB"],
"description": "What are the immunological, genetic, microbial and physiological attributes that play essential roles in determining outcomes from viral infections? The mission of the Center for Viral Systems Biology (CViSB; pronounced “SEE-VIZ-bee”) is to identify such factors and elucidate the molecular and immunological networks that determine outcomes of human disease. We hope that via this research we will be able to provide a deep system-level understanding of the virus and human determinants of clinical outcome to discover predictive markers of disease, and guide future therapies.
We will achieve these goals by applying several‘ omics’ technologies,
continuous physiological sensing,
and high - throughput experimental approaches to unique patient and survivor cohorts of Lassa fever and Ebola virus disease in West Africa.We will develop predictive models
for identifying critical disease correlates and analyze large - scale data sets to pinpoint causal host - pathogen interactions.By elucidation the molecular networks that play critical roles in clinical outcomes,
this research will allow us to identify new targets
for medicines and vaccines,
inform personalized treatment strategies,
and provide novel computational algorithms applicable to a wide range of other human pathogens.
",
"email": "<EMAIL>",
"logo": "https://cvisb.org/wp-content/uploads/2018/01/cvisb_icon_600px.png",
"address": {
"streetAddress": "10550 North Torrey Pines Road, SGM-300",
"addressLocality": "La Jolla",
"addressRegion": "California",
"postalCode": "92037",
"addressCountry": {
"@type": "Country",
"name": "United States",
"identifier": "US",
"url": "https:\/\/www.iso.org\/obp\/ui\/#iso:code:3166:US"
}
},
"contactPoint": {
"@type": "ContactPoint",
"contactType": "technical support",
"url": "https://cvisb.org/",
"email": "<EMAIL>"
}
}],
"_version": 6,
"releaseVersion": "0.1.1",
"schemaVersion": "0.0.1",
"funding": [{
"identifier": "U19AI135995",
"funder": {
"@type": "Organization",
"name": "National Institute of Allergy & Infectious Diseases",
"alternateName": ["NIAID"],
"description": "Funding for the Center for Viral Systems Biology is provided by National Institute of Allergy & Infectious Diseases (National Institutes for Health) award U19AI135995",
"url": "https://taggs.hhs.gov/Detail/AwardDetail?arg_AwardNum=U19AI135995&arg_ProgOfficeCode=104",
"parentOrganization": "National Institutes for Health"
}
}],
}
| json |
{
"id": "adventure-token",
"symbol": "twa",
"name": "Adventure Token",
"platforms": {
"ethereum": "0xa2ef2757d2ed560c9e3758d1946d7bcccbd5a7fe"
},
"hashing_algorithm": null,
"categories": [],
"description": {
"en": "WHAT IS ADVENTURE TOKEN?\r\nTWA Adventure Token is a deflationary community token. \r\n\r\nEvery time Adventure Token is purchased, sold or transferred between wallets one percent of the total transaction value is burnt, meaning that with every trade Adventure Token becomes scarcer. Trading attracts liquidity, which in-turn attracts further trading. Liquidity grows and the supply of Adventure Token decreases with every trade.\r\n\r\nHolding Adventure Token also gives you the opportunity to earn further rewards in the Adventure Luna Fund."
},
"country_origin": "KY",
"genesis_date": null,
"contract_address": "0xa2ef2757d2ed560c9e3758d1946d7bcccbd5a7fe",
"url": "https://www.adventuretoken.com/",
"explorers": [
"https://etherscan.io/token/0xa2ef2757d2ed560c9e3758d1946d7bcccbd5a7fe",
"https://ethplorer.io/address/0xa2ef2757d2ed560c9e3758d1946d7bcccbd5a7fe"
],
"twitter": "Adventure_Token",
"telegram": "AdventureToken",
"github_org": "AdrianWoodward"
} | json |
<reponame>forest-fire/firemock<gh_stars>1-10
import { updateUser, currentUser } from "../../state-mgmt";
/**
* Updates a user's profile data.
*
* Example:
*
* ```typescript
* user.updateProfile({
displayName: "<NAME>",
photoURL: "https://example.com/jane-q-user/profile.jpg"
})
* ```
[Documentation](https://firebase.google.com/docs/reference/js/firebase.User#updateprofile)
*/
export async function updateProfile(profile: {
displayName?: string;
photoUrl?: string;
}) {
updateUser(currentUser().uid, profile);
}
| typescript |
With cases of coronavirus disease (Covid-19) declining, government hospitals in the city such as the All India Institute of Medical Sciences, Lok Nayak, and Guru Teg Bahadue hospital have resumed routine hospitalisations and surgeries.
“In view of the decreased need of hospitalisation of Covid-19 positive patients and also considering the relaxation of curbs imposed earlier …, it has been decided that routine inpatient admissions including elective surgeries in general wards as well as private wards in AIIMS hospital and all centres be resumed with immediate effect on restricted basis as per availability of staff, inpatient beds, and OT services,” read an order by the hospital’s medical superintendent Dr DK Sharma.
AIIMS was the first to stop routine admissions, surgeries, and procedures in January first week when the Covid-19 cases had started increasing. This was done as a contingency plan to make space for Covid-19 patients. In the process, the hospital had also moved all trauma care services from the stand-along trauma centre to the main hospital, a move that was opposed by several doctors from the hospital.
Planned surgeries were resumed in mid-June after the massive second wave of Covid-19. Routine surgeries and procedures had remained suspended for nearly 10 months during the first wave of the pandemic and were restarted only in January last year.
There were 2,272 fresh cases of Covid-19 reported in Delhi on Friday, with a positivity rate of 3. 85 per cent. At the peak of the current surge over 28,000 cases and positivity rate of 30. 64 per cent was reported. This is comparable to over 28,000 cases and positivity rate of 36 per cent reported during the previous surge. However, the delta variant led to more severe disease with over 20,000 persons admitted to hospitals at the peak of the previous wave in comparison to around 2,700 during the current wave.
Currently, there are just 1,200 patients admitted to city hospitals.
Lok Nayak and GTB hospitals had stopped routine admissions and surgeries as per government’s order during the second week of January. “In view of the downing trend in number of Covid-19 cases in Delhi, it is hereby directed that routine/elective surgeries shall be started in Lok Nayak hospital and Guru Teg Bahadur hospital … with immediate effect,” according to an order by the special secretary (health) SM Ali.
The services at all three hospitals were curtailed at a time when several healthcare workers were testing positive in one go resulting in staff crunch. | english |
<reponame>andrewosh/thunder-streaming
#!/usr/bin/env python
"""Basic example of feeding files into a directory being watched by spark streaming.
This script will monitor a directory tree passed as a argument. When new files are added inside this tree
(provided that they are lexicographically later than the last file fed into the stream - see updating_walk.py)
they will be first copied into a temporary directory, then moved into the passed output directory. After a specified
lag time, they will be automatically deleted from the output directory.
The temporary directory must be on the same filesystem as the output directory, or else errors will likely be
thrown by os.rename. The root of the temporary directory tree can be set on most linux systems by the TMP environment
variable.
"""
import logging
import sys
from thunder_streaming.feeder.core import build_filecheck_generators, runloop
from thunder_streaming.feeder.feeders import CopyAndMoveFeeder
from thunder_streaming.feeder.utils.logger import global_logger
from thunder_streaming.feeder.utils.regex import RegexMatchToPredicate
def parse_options():
import optparse
parser = optparse.OptionParser(usage="%prog indir outdir [options]")
parser.add_option("-p", "--poll-time", type="float", default=1.0,
help="Time between checks of indir in s, default %default")
parser.add_option("-m", "--mod-buffer-time", type="float", default=1.0,
help="Time to wait after last file modification time before feeding file into stream, "
"default %default")
parser.add_option("-l", "--linger-time", type="float", default=5.0,
help="Time to wait after feeding into stream before deleting intermediate file "
"(negative time disables), default %default")
parser.add_option("--max-files", type="int", default=-1,
help="Max files to copy in one iteration "
"(negative disables), default %default")
parser.add_option("--filter-regex-file", default=None,
help="File containing python regular expression. If passed, only move files for which " +
"the base filename matches the given regex.")
opts, args = parser.parse_args()
if len(args) != 2:
print >> sys.stderr, parser.get_usage()
sys.exit(1)
setattr(opts, "indir", args[0])
setattr(opts, "outdir", args[1])
return opts
def main():
_handler = logging.StreamHandler(sys.stdout)
_handler.setFormatter(logging.Formatter('%(levelname)s:%(name)s:%(asctime)s:%(message)s'))
global_logger.get().addHandler(_handler)
global_logger.get().setLevel(logging.INFO)
opts = parse_options()
if opts.filter_regex_file:
pred_fcn = RegexMatchToPredicate.fromFile(opts.filter_regex_file).predicate
else:
pred_fcn = None
feeder = CopyAndMoveFeeder.fromOptions(opts)
file_checkers = build_filecheck_generators(opts.indir, opts.mod_buffer_time,
max_files=opts.max_files, filename_predicate=pred_fcn)
runloop(file_checkers, feeder, opts.poll_time)
if __name__ == "__main__":
main() | python |
<reponame>xincao9/Zebra
/*
* Copyright (c) 2011-2018, <NAME>. All Rights Reserved.
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.dianping.zebra.shard.parser;
import com.alibaba.druid.sql.ast.SQLExpr;
import com.alibaba.druid.sql.ast.expr.SQLListExpr;
import com.alibaba.druid.sql.ast.expr.SQLValuableExpr;
import com.alibaba.druid.sql.ast.expr.SQLVariantRefExpr;
import java.util.*;
public class SQLInExprWrapper {
private Set<String> shardColumns = new HashSet<String>();
// SQLValuableExpr, SQLVariantRefExpr or SQLListExpr
private final SQLExpr sqlExpr;
private int hash;
private boolean initHash;
private boolean initValueRefSet;
private Set<Integer> valueRefSet = new LinkedHashSet<Integer>();
public SQLInExprWrapper(SQLExpr sqlExpr) {
this.sqlExpr = sqlExpr;
}
public SQLInExprWrapper(String shardColumn, SQLExpr sqlExpr) {
this.sqlExpr = sqlExpr;
this.shardColumns.add(shardColumn);
}
public SQLInExprWrapper(Set<String> shardColumns, SQLExpr sqlExpr) {
this.sqlExpr = sqlExpr;
if (shardColumns != null) {
this.shardColumns = shardColumns;
}
}
public Set<Integer> getValueRefSet() {
if (!initValueRefSet) {
if (sqlExpr instanceof SQLVariantRefExpr) {
valueRefSet.add(((SQLVariantRefExpr) sqlExpr).getIndex());
} else if (sqlExpr instanceof SQLListExpr) {
List<SQLExpr> items = ((SQLListExpr) sqlExpr).getItems();
if (items != null) {
for (SQLExpr expr : items) {
if (expr instanceof SQLVariantRefExpr) {
valueRefSet.add(((SQLVariantRefExpr) expr).getIndex());
}
}
}
}
initValueRefSet = true;
}
if (valueRefSet == null) {
valueRefSet = new HashSet<Integer>();
}
return valueRefSet;
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
SQLInExprWrapper wrapper = (SQLInExprWrapper) obj;
if (sqlExpr == wrapper.sqlExpr) {
return true;
}
if (sqlExpr != null && wrapper.sqlExpr != null) {
if (sqlExpr.getClass() != wrapper.sqlExpr.getClass()) {
return false;
}
if (sqlExpr instanceof SQLVariantRefExpr && wrapper.sqlExpr instanceof SQLVariantRefExpr) {
SQLVariantRefExpr ref1 = (SQLVariantRefExpr) sqlExpr;
SQLVariantRefExpr ref2 = (SQLVariantRefExpr) wrapper.sqlExpr;
return (ref1.equals(ref2) && ref1.getIndex() == ref2.getIndex());
} else if (sqlExpr instanceof SQLListExpr && wrapper.sqlExpr instanceof SQLListExpr) {
List<SQLExpr> list1 = ((SQLListExpr) sqlExpr).getItems();
List<SQLExpr> list2 = ((SQLListExpr) wrapper.sqlExpr).getItems();
if (list1 == list2) {
return true;
} else if (list1 != null && list2 != null) {
Iterator<SQLExpr> it1 = list1.iterator();
Iterator<SQLExpr> it2 = list2.iterator();
while (it1.hasNext() && it2.hasNext()) {
SQLExpr expr1 = it1.next();
SQLExpr expr2 = it2.next();
if (expr1 == expr2) {
continue;
} else if (expr1 != null && expr2 != null) {
if (expr1 instanceof SQLVariantRefExpr && expr2 instanceof SQLVariantRefExpr) {
return expr1.equals(expr2)
&& (((SQLVariantRefExpr) expr1).getIndex() == ((SQLVariantRefExpr) expr2).getIndex());
}
return expr1.equals(expr2);
} else {
return false;
}
}
return !(it1.hasNext() || it2.hasNext());
} else {
return false;
}
} else {
return sqlExpr.equals(wrapper.sqlExpr);
}
} else {
return false;
}
}
@Override
public int hashCode() {
if (!initHash) {
if (sqlExpr instanceof SQLValuableExpr) {
hash = sqlExpr.hashCode();
} else if (sqlExpr instanceof SQLVariantRefExpr) {
SQLVariantRefExpr ref = (SQLVariantRefExpr) sqlExpr;
hash = ref.hashCode() * 31 + ref.getIndex();
valueRefSet.add(ref.getIndex());
} else if (sqlExpr instanceof SQLListExpr) {
SQLListExpr listExpr = (SQLListExpr) sqlExpr;
List<SQLExpr> items = listExpr.getItems();
hash = 1;
if (items != null) {
for (SQLExpr expr : items) {
if (expr instanceof SQLVariantRefExpr) {
hash = (hash * 31 + expr.hashCode()) * 31 + ((SQLVariantRefExpr) expr).getIndex();
valueRefSet.add(((SQLVariantRefExpr) expr).getIndex());
} else {
hash = hash * 31 + expr.hashCode();
}
}
}
}
initValueRefSet = true;
initHash = true;
}
return hash;
}
} | java |
<filename>src/Template/VideoTemplate.cpp
using namespace Cooper;
// Video template grid
class VideoTemplate : public Template {
public:
void grid(std::string name, std::vector<Video> videos) {
this->set(name, "");
double _l = videos.size() / 3.0;
std::size_t length = std::ceil(_l);
for(std::size_t i = 0; i < length; i++) {
Template line("main/_index-video-line");
for(std::size_t j = 0; j < 3; j++) {
int id = ( i * 3 ) + j;
if (id < videos.size()) {
Template box("main/_index-video-box");
box.set("id", videos[id].getId());
box.set("title", videos[id].getTitle());
box.set("preview", videos[id].getPreview());
line.add("videoline", box.render(false));
}
}
this->add(name, line.render(false));
}
}
void list(std::string name, std::vector<Video> videos) {
this->set(name, "");
std::size_t length = videos.size();
for(std::size_t i = 0; i < length; i++) {
Template line("main/_video-video-line");
line.set("id", videos[i].getId());
line.set("title", videos[i].getTitle());
line.set("preview", videos[i].getPreview());
this->add(name, line.render(false));
}
}
VideoTemplate(std::string name) : Template(name) {}
}; | cpp |
Veteran spinner Harbhajan Singh has criticised India’s decision to drop Yuzvendra Chahal for Krunal Pandya in the playing eleven for the first T20I against Australia.
Team India sprung a huge surprise on Wednesday by including Krunal Pandya in the team at the expense of Yuzvendra Chahal. Krunal had made his T20I debut during the series against Windies earlier this month. And although, he played all the three games, he could not make much of a mark. The allrounder picked up one wicket in the first game but went wicketless in the following two while conceding 40 and 55 runs.
But the team-management cared little about the stats as it pinned its hope on Krunal instead of proven Chahal. And unfortunately, the move badly backfired. Krunal ended up conceding 55 runs in four overs including three sixes in a row in his third over. He also failed to pick up a single wicket. His costly spell made the difference in the end as India lost the thrilling game by just 4 runs.
Asked to bat first, Australia were 158 for 4 in 17 overs when rain intervened. India were then given a revised total of 174. Shikhar Dhawan’s blistering fifty kept India in hunt but they eventually lost the game by four runs.
“That [team combination] is something that they have to look at. Whenever Kuldeep [Yadav] and [Yuzvendra] Chahal have bowled together, they have taken wickets, put pressure on the opposition and they have been quite successful as a pair. That is where the Indian cricket team have to think about what is the combination going forward,” Harbhajan Singh told India Today.
Harbhajan, who has enough experience of playing Down Under, further said that the team should include specialist bowlers in tough conditions of Australia.
“We might not see Krunal Pandya batting at 6 and bowling his four overs. He is more of a bowler who bowls a few overs here and there but in Australia, you need someone else to bowl those four overs because he doesn’t spin the ball and bowls it really, really fast,” Harbhajan Singh said.
“I think we will get to see Chahal in the next game and it could be in place of Krunal. There are a lot of problems that need to be solved before we get into the World Cup, the spin department especially. We need Chahal, if not this game then we will need him in the next game,” added the 38-year-old.
India will be looking to level the three-match series when they take on the hosts in the second T20I on Friday in Melbourne.
| english |
{"ast":null,"code":"var svgURI = 'http://www.w3.org/2000/svg';\n\nfunction createElement(name) {\n return document.createElementNS(svgURI, name);\n}\n\nexports.createElement = createElement;","map":null,"metadata":{},"sourceType":"script"} | json |
United Auto Workers members on a picket line outside the Stellantis NV Toledo Assembly Complex in Toledo, Ohio, on Sept. 18, 2023.
General Motors and Stellantis said they have laid off additional workers because of consequences related to the United Auto Workers strike.
GM said in a statement Wednesday that it has halted production at its assembly plant in Fairfax, Kansas, because of a “shortage of critical stampings” that would have been supplied by its factory in Wentzville, Missouri, where workers went on strike last week. About 2,000 workers are affected.
Earlier Wednesday, Stellantis said it is laying off about 370 employees at three parts factories in Ohio and Indiana immediately due to “storage constraints,” also related to the strike. The plants make parts for Jeep vehicles built at the automaker’s Toledo Assembly Complex, where workers are also on strike.
UAW-represented workers walked out of the Wentzville and Toledo assembly plants, as well as a Ford Motor factory in Wayne, Michigan, near Detroit, on Sep. 15, after the three automakers failed to reach a deal on a new contract with the union.
GM’s Fairfax Assembly plant builds the Chevrolet Malibu sedan and Cadillac XT4 crossover. GM said that because of the strike, the 2,000 workers laid off from Fairfax will not be eligible for the supplemental unemployment benefits that its laid-off employees would normally receive.
Nearly 13,000 GM, Ford and Stellantis workers are on strike at the Wentzville, Toledo and Wayne plants. UAW President Shawn Fain said the union would announce more strikes Friday unless there is “serious progress” in negotiations.
The post GM and Stellantis just laid off more than 2,000 additional workers because of the UAW’s strike appeared first on Stockxpo - Grow more with Investors, Traders, Analyst and Research.
| english |
Vickie as GM…? :Vickie Guerrero revealed on Twitter that she will be the General Manager of RAW and SmackDown next week. The official announcement will be made by WWE on this Friday’s SmackDown. Vickie wrote:
Plans on Raw after going 3 Hours: The current plan once RAW moves to three-hours in July is to spend the first 50 minutes or so hyping up a top-of-the-hour match on both TV and Twitter, then kick it off at 8:55pm to run through the top of the hour. WWE will go with another big match or segment right around 10pm and the final angle will close out the show during the overrun as usual. RAW will apparently have a more structured feel to it.
John Cena‘s Loss & Win: WWE’s website has a new article up asking if John Cena has redeemed himself following the major loss to The Rock at WrestleMania 28. They point out Cena’s win over Brock Lesnar at Extreme Rules, his win over Big Show at No Way Out and then his sendoff for John Laurinaitis on Monday’s RAW (18 June 2012).
Ted Dibiase Update: F4Wonline. com is reporting Ted DiBiase is expected to return to the active WWE roster sometime this summer. Dibiase has been out for months with an ankle injury.
Cena’s Wife says He Cheated: TMZ. com is reporting that John Cena’s estranged wife believes he was cheating on her and that she is going to be able to prove it. The divorce papers, sent by John, were delivered to Liz on May 3, and rumors have circulated since then of many reasons why the divorce is taking place.
John talked about a project in their house that was causing stress to him and his wife, and that they could not get along. Other reasons were when Liz spoke out about John not paying a contractor for his work, which caused a fight.
“We’re definitely following up on every lead relative to his being unfaithful before AND after the separation,” Rafool says.
There were calls to Cena’s representatives, but no response. | english |
When Ludhiana MP Ravneet Bittu batted for the induction of Aam Aadmi Party (AAP) leader Bhagwant Mann into the Congress, Punjab chief minister Captain Amarinder Singh was quick to snub him publicly through a media statement.
A “surprised” Captain asked Bittu not to speak outside the party forum on issues that could be “detrimental to interests” of the Congress in the run-up to the 2019 Lok Sabha elections.
Amarinder’s riposte to late CM Beant Singh’s political heir has underscored the internal conflict in both AAP and the Congress. Mann, who resigned as Punjab AAP chief after the party’s national convener and Delhi CM Arvind Kejriwal offered an “unconditional” apology to Akali leader Bikram Singh Majithia over drug trafficking allegations, wants to dump AAP.
“He sees it (AAP) as a sinking ship in Punjab. Also, no one from the Delhi leadership has spoken to him to take back the resignation,” says a leader close to him.
Though pitted against Shiromani Akali Dal president Sukhbir Badal and Bittu in a triangular contest in Jalalabad during the assembly polls last year, the Sangrur MP is friends with his Ludhiana counterpart.
Bittu says he is keen on Mann’s inclusion as the latter is a crowd puller and can be the party’s star campaigner in the parliamentary polls. “But as advised by the CM, I will speak to him (CM) and Punjab Congress president Sunil Jakhar about it,” he said.
Mann also has a sympathiser in Jakhar. The Sangrur MP has often joined ranks with the Gurdaspur MP and Bittu inside the Lok Sabha. Jakhar, however, refuses to be drawn into the controversy. “We have come together in the Lok Sabha cutting across party lines only on issues concerning the state. Any decision on taking in someone who had contested against a Congress candidate rests with the party high command. Also, Mann is a sitting MP,” Jakhar said.
Congress leaders supporting Mann’s entry feel it would totally dismantle AAP in Punjab. Two of AAP’s four MPs are already under suspension for “anti-leadership” remarks. If three of the four switch over to the Congress, it makes it a two-third split, not in conflict with the anti-defection law.
It will also give the party a challenger against Sukhbir’s wife and Union food processing minister Harsimrat Kaur Badal in the Bathinda segment. But the Amarinder camp sees Mann’s entry as an alignment that will consolidate position of Bittu, who is part of Congress president Rahul Gandhi’s youth brigade and enjoys his and Jakhar’s confidence.
Also, while the CM is seen as going “soft” on the Badals, Mann’s mainstay in politics is Badal-bashing. Bittu too has openly demanded that they be sent to jail, a sentiment that resonates with many Congressmen. Amarinder, according to his close aide, also wants Mann to approach him directly for being accepted into the party fold.
The bone of contention is also learnt to be the Sangrur Lok Sabha seat. Sangrur is up for grabs as Congress nominee Vijay Inder Singla, who lost the last the parliamentary polls, is now a minister in the Amarinder Singh cabinet. Singla, according to Congress sources, is not keen to contest but does not want to lose his home turf to Mann, and therefore, is opposed to his entry. He reportedly has used his good equation with general secretary in-charge of Punjab, Asha Kumari, to prompt Captain to snub Bittu. Also, eyeing the seat are Rajinder Kaur Bhattal, Kewal Dhillon and a member of CM’s family.
Mann too is not willing to give up his claim. “My victory margin was the highest in Punjab. I have nurtured the seat with MPLAD funds to give it streetlights, roads and ambulances. Why should I leave it? ” he says.
The comedian-turned politician is not burning bridges with AAP either. “I will not take my resignation back. But I will contest elections and campaign for the party as people throng my rallies and love my political digs,” he says. | english |
Here’s how you can get the Honor 8X for Re. 1.
Honor 8X is a recent offering from the company. The device was launched in two variants - one with 4GB RAM and 64GB storage space priced at Rs. 14,999 and the other with 6GB RAM and 128GB storage space priced at Rs. 16,999. Recently, the company received a red paint job and now this variant is available under a special sale.
Well, the Honor 8X is available as a part of the company's promotional Onderful Sale. During this sale period, the red color variant of the device will be available for Re. 1. The sale debuted at 11:45 AM and will last until the stocks are empty. And, do note that only the 4GB variant of the Honor 8X in red color is available for Re. 1.
Notably, only those who have registered to take part in the sale will be eligible to grab hold of the red Honor 8X at Re. 1. Each registered consumer can get only 1 unit per day. As there is a huge demand for this variant and limited units available, there is a chance that it will go out of stock very soon. Once the order is taken, users have to give in the delivery details and complete the payment process to successfully place the order.
To recap on its specifications, the Honor 8X flaunts a metal and glass finish making it look stylish. The device flaunts a 6. 5-inch display with a resolution of 2340 x 1080 pixels and an aspect ratio of 19. 5:9. The device has a notch on top for a taller aspect ratio. The smartphone employs the company's in-house HiSilicon Kirin 710 SoC paired with 4GB/6GB RAM and 64GB/128GB storage space.
On the imaging front, this smartphone has a dual camera module at its rear with a 20MP primary sensor and a 2MP secondary sensor. At the front, there is a 16MP selfie camera. The 8X runs Android 8. 1 Oreo out of the box and is packed with connectivity features including 4G VoLTE, NFC, GPS, Wi-Fi, Bluetooth, a rear-mounted fingerprint and dual-SIM support. The device gets the power from a 3750mAh battery operating under its hood. | english |
A summer trek to this beautiful place was full of fun & lovely experiences. But there was a slightly scary experience during THIS winter day-trip. Wanna know what happened, then read along!
But first, lemme tell you about this gorgeous place.
OESCHINENSEE (see in German means lake) is cozily located on top of the mountains in the village of Kandersteg, Bern. This mountain lake at the foot of Mt. Blüemlisalphorn, located at 1578 mtrs above sea level is fed by glacial water bodies.
A 2h car ride from Zurich will take you to this beautiful valley. Since I love train journeys, I took train from Zurich HB to Bern to Kandersteg bahnhof with daily swiss pass costing 40 chf (approx 2h 30mins ride)
From the train station, follow signs to the cable car which is about 10 - 15 mins by foot. 20 mins gondola ride takes you to the top of the mountain costing 26 chf for both ways but there are some concessions for swiss pass holders. Incredible views all-around, this ride is a treat to the eyes!
Once on top of the mountain, you can also enjoy the views of the valley down below. There are signs all along the forest path to the lake. There are narrow/ steep paths for an adventurous soul too.
It was my second time visiting the lake. I was naturally thrilled. BUT, trekking through the paths was a lil bit inconvenient and scary, coz both my feet were nearly frozen as I had worn non-compatible snow shoes. ???? Brrrr!! Unaware of the amount of snow on the mountains, wearing normal boots was not ideal yet all. I even tried filling my boots with few tissues to give me some warmth. But all in vain! The struggle was real but the gorgeous view all around kept me going.
After a hour of trekking, reached the lake. This time, the turquoise blue lake was completely frozen and covered with snow. The lake with mountainous surroundings is part of The UNESCO World Heritage site. Ice-skating & ice-fishing are popular activities in winter.
There is a restaurant 'Restaurant Oeschinensee' nearby with the lake front view to enjoy delicious swiss meals and also hotels/ rooms are available for overnight stay.
One can return in the same route or can hike down all the way to the Kander valley from the lake. No doubt, I chose the former. And all I wanted was to go back to the mainland as there was comparatively less snow.
Despite being scary, I was so glad to have visited the beautiful valley also the lake again. If possible, I would definitely go back, maybe during spring/ autumn as I wanna see this place in all seasons. Whatever the experiences be, this is still one of my FAVOURITE places in SWITZERLAND. Hands down!!
| english |
Meta Connect 2022 will kick off at 10am PT / 1pm ET / 6pm BST on October 11 (3am AEST on October 12), and we can’t wait to see what Mark Zuckerberg and his company have to show us at the opening keynote.
But if you’re eager to know what the Oculus Quest 2 creator will likely reveal right now – or wondering if the event is worth tuning into – we’ve put together our predictions based on the slew of official announcements we've heard, along with assorted leaks and teasers.
We’ll almost certainly see Project Cambria in full at Meta Connect 2022. The headset was announced at last year's Connect event, with Meta promising that it would launch in 2022 – so it doesn't have long left if it's going to make good on that commitment.
With its announcement all but guaranteed, what should we expect from Project Cambria?
Meta has been upfront that this will be a premium VR headset that's aimed at people after a high-end experience, so we expect to see some technical upgrades compared to the Oculus Quest 2, including more RAM, more storage, and better battery life.
The company has also said Project Cambria will get full-color passthrough – which will help to facilitate more immersive augmented reality experiences – and will have face and eye tracking, which among other benefits will help to make avatars more expressive.
As for the design, so far we’ve only seen an official silhouette of the headset, but it looks like it’ll be a fair bit slimmer than the Quest 2. Also, the controllers have lost their tracking rings, indicating that the headset will use a different method of keeping track of the handsets – most likely cameras built into the controllers.
Last but not least, the headset will most likely be called the Meta Quest Pro, based on leaks like one in September, when a person found several Project Cambria headsets in a hotel room and shared images online. As with all rumors that leak should be treated with caution, but the name and design match up with what we’re expecting to see on October 11.
What’s the use of new hardware if you’ve got nothing to play on it?
Alongside hardware announcements, expect to see several of the best Oculus Quest 2 games get their time in the spotlight too. We expect that several titles and experiences will introduce mixed-reality capabilities to take advantage of Project Cambria’s new color passthrough feature.
Meta has also already confirmed that it’ll be sharing details about some upcoming Horizon Worlds upgrades, via a post on Mark Zuckerberg’s Instagram, and we expect other Meta-owned titles, like Beat Saber, will get some stage time at Connect 2022; although with the Lizzo Music Pack only recently dropping for Beat Saber it might just be a re-announcement of that.
Beyond Meta’s own games, we’ll hopefully find out more about some hotly anticipated titles like GTA San Andreas VR, Among Us VR, and Ghostbusters VR among others. However, with this being Meta Connect, rather than the more game-focused Quest Gaming Showcase that was held in April, we don’t expect any major announcements on the software side – although we’ll be happy to be proved wrong.
The Oculus Quest 3?
With Project Cambria expected to be a high-end device, and the Pico 4 starting to muscle in on the Oculus Quest 2's territory, Meta may also use Connect to remind fans of its more budget-friendly hardware that they haven't been forgotten.
We don’t expect a full-on Oculus Quest 3 reveal, but we wouldn’t be surprised if Meta teased that headset, like it did with Project Cambria at Meta Connect 2021. By that we mean Meta will confirm that the device is in development, will tease us with a couple of details, and maybe show us a silhouette of the thing – and then say we won’t find out more until 2023.
We’ll have to wait until Meta Connect 2022 to know for certain what Meta will be showing off, so be sure to tune in, and check back here for all the announcements as they happen, plus our expert analysis.
Get the hottest deals available in your inbox plus news, reviews, opinion, analysis, deals and more from the TechRadar team.
Hamish is a Senior Staff Writer for TechRadar and you’ll see his name appearing on articles across nearly every topic on the site from smart home deals to speaker reviews to graphics card news and everything in between. He uses his broad range of knowledge to help explain the latest gadgets and if they’re a must-buy or a fad fueled by hype. Though his specialty is writing about everything going on in the world of virtual reality and augmented reality.
| english |
Umang app, the mega app that lets citizens access all government services, lets people check their Employees Provident Fund (EPF) claim status. Recently, the government also allowed people to view their pension passbooks via Umang app. Umang app is available on Google Play, App Store and Windows Store. Umang app provides seamless integration with popular customer-centric services like Aadhaar and Digilocker. Umang app provides 213 services across 39 department in nine states. Umang can be explored on multiple channels such as smartphones, desktops and tablets.
1) Launch Umang app. Click on EPFO (Employees' Provident Fund Organisation), the retirement fund body which administers EPF contributions.
2) Click on 'General Services'.
3) Click 'Know Your Claim Status'.
4) Enter UAN or Universal Account Number, the 12-digit number that every EPF contributor is allotted. You will get a one-time password or OTP on your registered mobile number.
5) Enter the OTP and click login.
6) Click the claim ID. The details of your claim are displayed on screen.
You can also use Umang app to view your provident fund (PF) passbook and balance.
1) Clicking 'View Passbook' option in Umang app.
2) You will then be required to type your Pension Payment Order (PPO number) and date of birth (DOB). PPO refers to a unique number allotted to each pensioner.
3) After you successfully validate the information you fed, an OTP will be sent to your registered mobile number.
4) Enter the OTP.
5) The 'Pensioner Passbook' will display the details of the pensioner like name, date of birth along with the last pension credited information.
Among other things, Umang app also allows users to lodge complaint of lost items on Indian airports, request a refill of LPG cylinders, and apply for a new PAN (Permanent Account Number) card. | english |
Noted Malayalam director-cinematographer-screenwriter Amal Neerad, former cinematographer of Ram Gopal Varma, debuted as an independent director in 2007 with the Mammootty starrer Big B, followed by Sagar Alias Jacky Reloaded (2009).
A product of Calcutta SRFTI Film Institute, Amal is now all set to debut in Tamil as director with the remake of I. V. Sasi's super hit Malayalam film Mrigaya (1989), which will have hot and happening star Suriya playing the�lead�role.
Suriya will be playing the role of Varunni, a leopard hunter, which was brilliantly portrayed by Mammootty in the original and even got him a State award. Suriya was recently in Kerala to have a discussion with Amal and has confirmed his participation in this film. | english |
Former South Africa skipper Faf du Plessis on Wednesday announced his retirement from the longest format of the game.
Du Plessis, who recently featured in the two-match Test series against Pakistan, represented South Africa in 69 fixtures of the longest format of the game.
The former South Africa skipper amassed 4163 Test runs with an average of 40. 02. He also hit 10 centuries and 21 half-centuries in the longest format of the game.
Du Plessis didn't' have a good outing with the bat in Pakistan. He scored 55 runs in four innings as South Africa faced a crushing 2-0 defeat in the Test series.
"It has been a year of refinement in the fire for us all. Uncertain were the times, but they brought clarity for me in many respects. My heart is clear and the time is right to walk into a new chapter. It has been an honour to play for my country in all the formats of the game, but the time has come for me to retire from Test cricket," Du Plessis said in his Instagram post.
"If someone had told me 15 years ago, that I would play 69 Test matches for South Africa and captain the side, I wouldn't have believed them. I stand in a place of utmost gratitude for a test career full of blessings bestowed on me. Every high and low has shaped me into the mon I am proud to stand as today. In all things, those instances worked towards the good of who I believe I am today," he added.
The right-handed batsman, who plays for Chennai Super Kings (CSK) in the India Premier League (IPL), wants to focus on the two upcoming T20I World Cups slated to be held in India and Australia respectively.
"The next two years are ICC T20 World cup years. Because of this, my focus is shifting to this format and I want to play as much of it as possible around the world so that I can be the best player I can possibly be. I strongly believe that I have a lot to offer to the Proteas in this format. This does not mean that ODI cricket is no longer in the plans, I'm just making T20 cricket the priority in the short-term," said Du Plessis.
"I will be in conversation with CSA over the next couple of months on what the future might look like for me over the next year to find a solution that works for both of us," he added.
Du Plessis thanked each and everyone person who supported the former South Africa skipper during the journey.
"For now, I would like to take this opportunity to thank each and every person who had an influence on my Test career. I would like to single out my wife and family in particular -- I would not have been able to do without their support during the unforgettable journey that Test cricket has taken me on," said Du Plessis.
"To my coaches, teammates and support staff over the years, I would also like to give a note of thanks and of course, to Cricket South Africa for the opportunity to be able to represent and lead my country in the pinnacle of the game we all love. It has been an incredible journey, with many stories that I look forward to one day sharing," he added.
Du Plessis had made his Test debut against Australia at Adelaide in November 2012. He scored an impressive 78 in the first innings and hit a valiant century in the second essay to help South Africa draw the Test against Australia.
(ANI) | english |
<reponame>toofuns/codeituk-ccd-data-store-api
package uk.gov.hmcts.ccd.v2.internal.controller;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.github.tomakehurst.wiremock.client.WireMock;
import com.google.common.collect.Lists;
import org.apache.commons.lang.RandomStringUtils;
import org.junit.Before;
import org.junit.Test;
import org.mockito.ArgumentCaptor;
import org.springframework.boot.test.mock.mockito.SpyBean;
import org.springframework.http.HttpHeaders;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.test.context.jdbc.Sql;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.MvcResult;
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
import org.springframework.web.context.WebApplicationContext;
import uk.gov.hmcts.ccd.MockUtils;
import uk.gov.hmcts.ccd.WireMockBaseTest;
import uk.gov.hmcts.ccd.auditlog.AuditEntry;
import uk.gov.hmcts.ccd.auditlog.AuditOperationType;
import uk.gov.hmcts.ccd.auditlog.AuditRepository;
import uk.gov.hmcts.ccd.v2.V2;
import uk.gov.hmcts.ccd.v2.internal.resource.CaseHistoryViewResource;
import uk.gov.hmcts.ccd.v2.internal.resource.CaseViewResource;
import uk.gov.hmcts.reform.idam.client.models.UserInfo;
import javax.inject.Inject;
import static com.github.tomakehurst.wiremock.client.WireMock.*;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.*;
import static org.mockito.Mockito.verify;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.springframework.http.HttpHeaders.AUTHORIZATION;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
public class UICaseControllerCaseRolesIT extends WireMockBaseTest {
private static final String GET_CASE = "/internal/cases/1504259907353529";
private static final String GET_EVENT = "/internal/cases/1504259907353529/events/1";
private static final String UID_NO_EVENT_ACCESS = "1234";
private static final String UID_WITH_EVENT_ACCESS = "123";
private static final int NUMBER_OF_CASES = 1;
@Inject
private WebApplicationContext wac;
@SpyBean
private AuditRepository auditRepository;
private MockMvc mockMvc;
private JdbcTemplate template;
@Before
public void setUp() {
MockUtils.setSecurityAuthorities(RandomStringUtils.randomAlphanumeric(10), authentication, MockUtils.ROLE_CASEWORKER_PUBLIC);
mockMvc = MockMvcBuilders.webAppContextSetup(wac).build();
template = new JdbcTemplate(db);
}
@Test
@Sql(executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD, scripts = { "classpath:sql/insert_cases_event_access_case_roles.sql" })
public void shouldNotReturnEventHistoryDataForCitizenWhoHasNoAccessToEvents() throws Exception {
UserInfo userInfo = UserInfo.builder()
.uid(UID_NO_EVENT_ACCESS)
.roles(Lists.newArrayList(MockUtils.ROLE_CASEWORKER_PUBLIC))
.build();
stubFor(WireMock.get(urlMatching("/o/userinfo"))
.willReturn(okJson(mapper.writeValueAsString(userInfo)).withStatus(200)));
assertCaseDataResultSetSize();
HttpHeaders headers = new HttpHeaders();
headers.add(AUTHORIZATION, "Bearer " + UID_NO_EVENT_ACCESS);
headers.add(V2.EXPERIMENTAL_HEADER, "true");
final MvcResult result = mockMvc.perform(get(GET_CASE)
.contentType(JSON_CONTENT_TYPE)
.headers(headers))
.andExpect(status().is(200))
.andReturn();
assertEquals(result.getResponse().getContentAsString(), 200, result.getResponse().getStatus());
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
String content = result.getResponse().getContentAsString();
assertNotNull("Content Should not be null", content);
CaseViewResource savedCaseResource = mapper.readValue(content, CaseViewResource.class);
assertNotNull("Saved Case Details should not be null", savedCaseResource);
assertEquals("Should not contain events with case role access", 1, savedCaseResource.getCaseViewEvents().length);
}
@Test
@Sql(executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD, scripts = { "classpath:sql/insert_cases_event_access_case_roles.sql" })
public void shouldReturnEventHistoryDataForCitizenWhoHasCaseRoleAccess() throws Exception {
assertCaseDataResultSetSize();
UserInfo userInfo = UserInfo.builder()
.uid(UID_WITH_EVENT_ACCESS)
.roles(Lists.newArrayList(MockUtils.ROLE_CASEWORKER_PUBLIC))
.build();
stubFor(WireMock.get(urlMatching("/o/userinfo"))
.willReturn(okJson(mapper.writeValueAsString(userInfo)).withStatus(200)));
HttpHeaders headers = new HttpHeaders();
headers.add(AUTHORIZATION, "Bearer " + UID_WITH_EVENT_ACCESS);
headers.add(V2.EXPERIMENTAL_HEADER, "true");
final MvcResult result = mockMvc.perform(get(GET_CASE)
.contentType(JSON_CONTENT_TYPE)
.headers(headers))
.andExpect(status().is(200))
.andReturn();
assertEquals(result.getResponse().getContentAsString(), 200, result.getResponse().getStatus());
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
String content = result.getResponse().getContentAsString();
assertNotNull("Content Should not be null", content);
CaseViewResource savedCaseResource = mapper.readValue(content, CaseViewResource.class);
assertNotNull("Saved Case Details should not be null", savedCaseResource);
assertEquals("Should contain events with case role access", 2, savedCaseResource.getCaseViewEvents().length);
ArgumentCaptor<AuditEntry> captor = ArgumentCaptor.forClass(AuditEntry.class);
verify(auditRepository).save(captor.capture());
assertThat(captor.getValue().getOperationType(), is(AuditOperationType.CASE_ACCESSED.getLabel()));
assertThat(captor.getValue().getCaseId(), is("1504259907353529"));
assertThat(captor.getValue().getCaseType(), is("TestAddressBookNoEventAccessToCaseRole"));
assertThat(captor.getValue().getJurisdiction(), is("PROBATE"));
}
@Test
@Sql(executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD, scripts = { "classpath:sql/insert_cases_event_access_case_roles.sql" })
public void shouldGetEventById() throws Exception {
UserInfo userInfo = UserInfo.builder()
.uid(UID_WITH_EVENT_ACCESS)
.roles(Lists.newArrayList(MockUtils.ROLE_CASEWORKER_PUBLIC))
.build();
stubFor(WireMock.get(urlMatching("/o/userinfo"))
.willReturn(okJson(mapper.writeValueAsString(userInfo)).withStatus(200)));
HttpHeaders headers = new HttpHeaders();
headers.add(AUTHORIZATION, "Bearer " + UID_WITH_EVENT_ACCESS);
headers.add(V2.EXPERIMENTAL_HEADER, "true");
final MvcResult result = mockMvc.perform(get(GET_EVENT)
.contentType(JSON_CONTENT_TYPE)
.headers(headers))
.andExpect(status().is(200))
.andReturn();
assertEquals(result.getResponse().getContentAsString(), 200, result.getResponse().getStatus());
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
String content = result.getResponse().getContentAsString();
CaseHistoryViewResource response = mapper.readValue(content, CaseHistoryViewResource.class);
assertThat(response.getEvent().getId(), is(1L));
ArgumentCaptor<AuditEntry> captor = ArgumentCaptor.forClass(AuditEntry.class);
verify(auditRepository).save(captor.capture());
assertThat(captor.getValue().getOperationType(), is(AuditOperationType.VIEW_CASE_HISTORY.getLabel()));
assertThat(captor.getValue().getCaseId(), is("1504259907353529"));
assertThat(captor.getValue().getEventSelected(), is("TEST_EVENT_ACCESS"));
assertThat(captor.getValue().getCaseType(), is("TestAddressBookNoEventAccessToCaseRole"));
assertThat(captor.getValue().getJurisdiction(), is("PROBATE"));
}
private void assertCaseDataResultSetSize() {
final int count = template.queryForObject("SELECT count(1) as n FROM case_data",Integer.class);
assertEquals("Incorrect case data size", NUMBER_OF_CASES, count);
}
}
| java |
<reponame>ONSdigital/tredegar<filename>src/main/taxonomy/businessindustryandtrade/changestobusiness/businessbirthsdeathsandsurvivalrates/datasets/businessbirthsanddeaths/data.json
{
"nextRelease": "21 November 2014",
"contact": {
"name": "Jukesie",
"email": "<EMAIL>"
},
"lede": "This content is not available in the prototype but in future will describe this dataset.",
"more": "Real descriptive content will be available in the live version of this website",
"download": [
{
"title": "Latest",
"xls": "http://www.ons.gov.uk/ons/rel/bus-register/business-demography/2012/rft-business-demography-2012-tables.xls"
}
],
"notes": [
{
"data": "This content is not available in the prototype but in future will provide a note about this dataset."
},
{
"data": "This content is not available in the prototype but in future will provide a note about this dataset."
}
],
"summary": "Contains enterprise births, deaths and survivals",
"nationalStatistic": true,
"description": "Contains enterprise births, deaths and survivals",
"title": "Business births and deaths",
"releaseDate": "19 February 2014",
"type": "dataset",
"name": "Business births and deaths",
"uri": "/businessindustryandtrade/changestobusiness/businessbirthsdeathsandsurvivalrates/datasets/businessbirthsanddeaths",
"fileName": "businessbirthsanddeaths",
"breadcrumb": [
{
"index": 0,
"type": "home",
"name": "Business, industry and trade",
"fileName": "businessindustryandtrade"
},
{
"index": 0,
"type": "home",
"name": "Changes to business",
"fileName": "changestobusiness"
},
{
"index": 0,
"type": "home",
"name": "Business births, deaths and survival rates",
"fileName": "businessbirthsdeathsandsurvivalrates",
"breadcrumb": []
}
]
} | json |
Tabu has proved to be one of the finest actors in Bollywood. With her biggest hits like Cheeni Kum, Haider, Maqbool and The Namesake, Tabu has gained expertise of a master performer. Now, she is gearing up for her next release De De Pyaar De.
The Akiv Ali directorial De De Pyaar De also stars Ajay Devgn and Rakul Preet Singh. While Tabu, Ajay and Rakul Preet are now gearing for their next release, we couldn’t stop but ponder about how successful has been the Bollywood jodi of Ajay and Tabu. Tabu has shared screen space with Ajay in multiple films in the past.
While Tabu and Ajay have reunited once again for De De Pyaar De, here’s a look at all the movies that Tabu and Ajay Devgn have done together:
The 2015 Indian thriller had Tabu and Ajay Devgn in lead roles. While Ajay played the role of Vijay Salgaonkar, a businessman who runs a cable TV service in Goa, Tabu played the role of Inspector General of Goa Police, Meera Deshmukh.
Ajay Devgn and Tabu worked together in Golmaal Again, a 2017 comedy movie. Tabu played the character of Anna Matthew, who can see ghosts and spiritual spirits due to a special power given to her by God. Ajay plays the role of Gopal, the character he has been playing since the first movie of Golmaal franchise.
The 2016 romance drama had Tabu and Ajay in lead roles, where Tabu portrayed the role of Begum Hazrat Jahaan and Ajay Devgn played a terrorist.
Tabu and Ajay were a hit Jodi in the 90s. The duo was in Thakshak. The movie was a poetic romance between Ishaan (Ajay Devgn) and Suman (Tabu) set against the concrete Mumbai cityscape.
The first film of Tabu and Ajay together, Vijaypath is a 1994 Bollywood action drama, which was also one of the biggest hits of 1994. The movie also bagged Tabu the Filmfare for Best Female debutant. | english |
{
"type": "tconstruct:material_melting",
"input": "adventtic:elecanium",
"temperature": 670,
"result": {
"fluid": "adventtic:molten_elecanium",
"amount": 144
}
} | json |
{"status_id":4886325362688000,"text":"Ge noldickul deejues epepod vecav ahigevij ihukjug luw jejbocuz keg pu ji los dazkuphe pi fedahe judkuhwo. #vaf","user":{"user_id":7687744140607488,"name":"<NAME>","screen_name":"@rugo","created_at":1370122497,"followers_count":73,"friends_count":11,"favourites_count":15},"created_at":911852083,"favorite_count":96,"retweet_count":90,"entities":{"hashtags":[{"text":"#vaf","indices":[8,24]}]},"in_reply_to_status_id":null} | json |
<filename>jss/0.2.10.json
{"jss.js":"<KEY>,"jss.min.js":"<KEY>} | json |
"use strict";
var _utils = require("./utils.js");
/* eslint-disable no-unused-vars */
const defaultLsOptions = { ...(0, _utils.defaultOptions)(""),
endpointPathLsDir: "/renter/dir",
endpointPathLsFile: "/renter/file"
};
_utils.SkynetClient.prototype.ls = async function (customOptions = {}) {
const opts = { ...defaultLsOptions,
...customOptions
};
throw new Error("Unimplemented");
}; | javascript |
import { UserRole } from '@core/common/enums/UserEnums';
import { User } from '@core/domain/user/entity/User';
import { Exclude, Expose, plainToClass } from 'class-transformer';
@Exclude()
export class UserUseCaseDto {
@Expose()
public id: string;
@Expose()
public firstName: string;
@Expose()
public lastName: string;
@Expose()
public email: string;
@Expose()
public role: UserRole;
public static newFromUser(user: User): UserUseCaseDto {
return plainToClass(UserUseCaseDto, user);
}
public static newListFromUsers(users: User[]): UserUseCaseDto[] {
return users.map(user => this.newFromUser(user));
}
}
| typescript |
<reponame>tobby2002/python-sandbox
import matplotlib.pyplot as plt
import pandas as pd
# http://queirozf.com/entries/pandas-dataframe-plot-examples-with-matplotlib-pyplot
df = pd.DataFrame({
'name': ['john','mary','peter','jeff','bill','lisa','jose'],
'age': [23,78,22,19,45,33,20],
'gender': ['M','F','M','M','M','F','M'],
'state': ['california','dc','california','dc','california','texas','texas'],
'num_children': [2,0,0,3,2,1,4],
'num_pets': [5,1,0,5,2,2,3]
})
print(df)
# 1. a scatter plot comparing num_children and num_pets
df.plot(kind='scatter', x='num_children', y='num_pets', color='red')
plt.show()
# plt.savefig('output.png')
# 2. a simple line plot
df.plot(kind='bar', x='name', y='age')
plt.show()
# 3. gca stands for 'get current axis'
plt.clf()
ax = plt.gca()
df.plot(kind='line', x='name', y='num_children', ax=ax)
df.plot(kind='line', x='name', y='num_pets', color='red', ax=ax)
plt.show()
# 4. Bar plot with group by
plt.clf()
df.groupby('state')['name'].nunique().plot(kind='bar')
plt.show()
# 5. Stacked bar plot with group byPermalink
# Example: plot count by category as a stacked column:
# create a dummy variable and do a two-level group-by based on it:
# fix the x axis label and the legend
df.assign(dummy = 1).groupby(
['dummy','state']
).size().to_frame().unstack().plot(kind='bar',stacked=True,legend=False)
plt.title('Number of records by State')
# other it'll show up as 'dummy'
plt.xlabel('state')
# disable ticks in the x axis
plt.xticks([])
# fix the legend
current_handles, _ = plt.gca().get_legend_handles_labels()
reversed_handles = reversed(current_handles)
labels = reversed(df['state'].unique())
plt.legend(reversed_handles,labels,loc='lower right')
plt.show()
# 6. Stacked bar plot with group by, normalized to 100%Permalink
# A plot where the columns sum up to 100%.
#
# Similar to the example above but:
#
# normalize the values by dividing by the total amounts
#
# use percentage tick labels for the y axis
#
# Example: Plot percentage count of records by state
import matplotlib.ticker as mtick
# create dummy variable then group by that
# set the legend to false because we'll fix it later
df.assign(dummy = 1).groupby(
['dummy','state']
).size().groupby(level=0).apply(
lambda x: 100 * x / x.sum()
).to_frame().unstack().plot(kind='bar',stacked=True,legend=False)
# or it'll show up as 'dummy'
plt.xlabel('state')
# disable ticks in the x axis
plt.xticks([])
# fix the legend or it'll include the dummy variable
current_handles, _ = plt.gca().get_legend_handles_labels()
reversed_handles = reversed(current_handles)
correct_labels = reversed(df['state'].unique())
plt.legend(reversed_handles,correct_labels)
plt.gca().yaxis.set_major_formatter(mtick.PercentFormatter())
plt.show()
# 7. Stacked bar plot with two-level group byPermalink
# Just do a normal groupby() and call unstack():
df.groupby(['state','gender']).size().unstack().plot(kind='bar',stacked=True)
plt.show()
# Another example: count the people by gender, spliting by state:
df.groupby(['gender','state']).size().unstack().plot(kind='bar',stacked=True)
plt.show()
# 8. Stacked bar plot with two-level group by, normalized to 100%Permalink
# Sometimes you are only ever interested in the distributions, not raw amounts:
df.groupby(['gender','state']).size().groupby(level=0).apply(
lambda x: 100 * x / x.sum()
).unstack().plot(kind='bar',stacked=True)
plt.gca().yaxis.set_major_formatter(mtick.PercentFormatter())
plt.show()
# 9. Plot histogram of column values
df[['age']].plot(kind='hist',bins=[0,20,40,60,80,100],rwidth=0.8)
plt.show()
#10. Plot date histogram
# To plot the number of records per unit of time, you must first convert the date column to datetime using pandas.to_datetime().
df = pd.DataFrame({
'name':[
'john','lisa','peter','carl','linda','betty'
],
'date_of_birth':[
'01/21/1988','03/10/1977','07/25/1999','01/22/1977','09/30/1968','09/15/1970'
]
})
#Now convert the date column into datetime type and use plot(kind='hist'):
df['date_of_birth'] = pd.to_datetime(df['date_of_birth'],infer_datetime_format=True)
plt.clf()
df['date_of_birth'].map(lambda d: d.month).plot(kind='hist')
plt.show() | python |
<reponame>bengm/farse
{"number":"32.804","title":"Extent of assignee’s protection.","children":[{"text":"(a) No payments made by the Government to the assignee under any contract assigned in accordance with the Act may be recovered on account of any liability of the contractor to the Government. This immunity of the assignee is effective whether the contractor’s liability arises from or independently of the assigned contract.","type":"paragraph","level":null},{"text":"(b) Except as provided in paragraph (c) of this section, the inclusion of a no-setoff commitment in an assigned contract entitles the assignee to receive contract payments free of reduction or setoff for—","type":"paragraph","level":null},{"text":"(1) Any liability of the contractor to the Government arising independently of the contract; and","type":"outline","level":1},{"text":"(2) Any of the following liabilities of the contractor to the Government arising from the assigned contract:","type":"outline","level":1},{"text":"(i) Renegotiation under any statute or contract clause.","type":"outline","level":2},{"text":"(ii) Fines.","type":"outline","level":2},{"text":"(iii) Penalties, exclusive of amounts that may be collected or withheld from the contractor under, or for failure to comply with, the terms of the contract.","type":"outline","level":2},{"text":"(iv) Taxes or social security contributions.","type":"outline","level":2},{"text":"(v) Withholding or nonwithholding of taxes or social security contributions.","type":"outline","level":2},{"text":"(c) In some circumstances, a setoff may be appropriate even though the assigned contract includes a no-setoff commitment; e.g.—","type":"paragraph","level":null},{"text":"(1) When the assignee has neither made a loan under the assignment nor made a commitment to do so; or","type":"outline","level":1},{"text":"(2) To the extent that the amount due on the contract exceeds the amount of any loans made or expected to be made under a firm commitment for financing.","type":"outline","level":1}]}
| json |
{
"name": "quill-base",
"version": "0.2.5",
"description": "Base system on which all quill systems must depend",
"keywords": ["conservatory", "configuration", "quill", "base", "required"],
"author": "Nodejitsu Inc <<EMAIL>>",
"contributors": [{ "name": "<NAME>", "email": "<EMAIL>" }],
"dependencies": {
"nodejs": "0.x.x"
}
}
| json |
Strip club rules – If your sex whims are not strictly vanilla, and you are drained by the repetitive sameness, strip clubs are your sure go-to.
India has none too many strip clubs but once people visit abroad, they are head on interested in seeing love live show of flesh. However, most men will want to write their memory off after spending helluva night in a strip club and all the testosterone soaked endeavours don’t show the light of the day as you leave all your memories there.
So, if your stomach is in knots too before taking that plunge, you need to know the different strip club rules across the world.
So, here goes some strip club rules from across the world and you completely need to get your head around them:
1 – The United States of America:
San Francisco pioneered the Lap Dancing style and now in 2017, strippers have their own way of walking into you as you enter the strip club. You can opt for tipping, touching and fetishes. But thing to be noted is that you will be banned from the strip joint if you comment on any woman’s appearance.
2 – South East Asia:
South East Asia is a breeding ground of many stag parties and the night life is devil-may-care ones to say the least. The ping pong shows are infamous enough for the folks shoot balls from their nether regions. They also have labelled bachelor party services that are ‘bro’ types. Not to mention, the most bookings around the year come from the Indian clientele as being the most popular bachelor party services in Bangkok. You can choose your woman and go about it in the midst of pool parties, sunset-watching and yachts. The party service manager will be attuned to your needs.
3 – Asia:
China government has ordered for blanket ban on sex clubs but they still cash on the wealthy businessmen in their underground spots. There are some ground rules set by the club owners whatsoever and the clients visit a giant circus of sex that make them sweat. What’s bizarre is that, in Taiwan, they also hire at the most 50 strippers in a man’s funeral.
Unlike in India, where the strippers dance as per the choices of the men clad in Ghaghra Cholis doing juvenile attempts on lap dancing. They even do some flirting, talking and come up close if they have an idea of your fortune.
4 – Europe:
Europe is the torch-bearer of satisfying pleasures of human flesh whilst Amsterdam is one of the well sought after places for mainstream media. The name itself springs up the image of insufficiently attired women standing like mannequins against the glass door. The customers can also enjoy live sex shows between actual couples there.
Thse are the Strip Club Rules across the world – Interesting much? So heat up all your kinky whims and get going.
| english |
/*=========================================================================
*
* Copyright NumFOCUS
*
* 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.txt
*
* 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.
*
*=========================================================================*/
#ifndef itkConvertPixelBuffer_hxx
#define itkConvertPixelBuffer_hxx
#include "itkConvertPixelBuffer.h"
#include "itkRGBPixel.h"
#include "itkDefaultConvertPixelTraits.h"
#include <cstddef>
namespace itk
{
template <typename InputPixelType, typename OutputPixelType, typename OutputConvertTraits>
template <typename UComponentType>
std::enable_if_t<!NumericTraits<UComponentType>::IsInteger, UComponentType>
ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::DefaultAlphaValue()
{
return NumericTraits<UComponentType>::One;
}
template <typename InputPixelType, typename OutputPixelType, typename OutputConvertTraits>
template <typename UComponentType>
std::enable_if_t<NumericTraits<UComponentType>::IsInteger, UComponentType>
ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::DefaultAlphaValue()
{
return NumericTraits<UComponentType>::max();
}
template <typename InputPixelType, typename OutputPixelType, typename OutputConvertTraits>
void
ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::Convert(InputPixelType * inputData,
int inputNumberOfComponents,
OutputPixelType * outputData,
size_t size)
{
switch (OutputConvertTraits::GetNumberOfComponents())
{
// output number of components is 1
case 1:
{
switch (inputNumberOfComponents)
{
case 1:
ConvertGrayToGray(inputData, outputData, size);
break;
case 3:
ConvertRGBToGray(inputData, outputData, size);
break;
case 4:
ConvertRGBAToGray(inputData, outputData, size);
break;
default:
ConvertMultiComponentToGray(inputData, inputNumberOfComponents, outputData, size);
break;
}
break;
}
// handle the complex case
case 2:
{
switch (inputNumberOfComponents)
{
case 1:
ConvertGrayToComplex(inputData, outputData, size);
break;
case 2:
ConvertComplexToComplex(inputData, outputData, size);
break;
default:
ConvertMultiComponentToComplex(inputData, inputNumberOfComponents, outputData, size);
break;
}
break;
}
// output number of components is 3 RGB
case 3:
{
switch (inputNumberOfComponents)
{
case 1:
ConvertGrayToRGB(inputData, outputData, size);
break;
case 3:
ConvertRGBToRGB(inputData, outputData, size);
break;
case 4:
ConvertRGBAToRGB(inputData, outputData, size);
break;
default:
ConvertMultiComponentToRGB(inputData, inputNumberOfComponents, outputData, size);
}
break;
}
// output number of components is 4 RGBA
case 4:
{
switch (inputNumberOfComponents)
{
case 1:
ConvertGrayToRGBA(inputData, outputData, size);
break;
case 3:
ConvertRGBToRGBA(inputData, outputData, size);
break;
case 4:
ConvertRGBAToRGBA(inputData, outputData, size);
break;
default:
ConvertMultiComponentToRGBA(inputData, inputNumberOfComponents, outputData, size);
}
break;
}
// output number of components is 6 (SymmetricSecondRankTensor)
case 6:
{
switch (inputNumberOfComponents)
{
case 6:
ConvertTensor6ToTensor6(inputData, outputData, size);
break;
case 9:
ConvertTensor9ToTensor6(inputData, outputData, size);
break;
default:
itkGenericExceptionMacro("No conversion available from " << inputNumberOfComponents
<< " components to: 6 components");
break;
}
break;
}
default:
itkGenericExceptionMacro("No conversion available from "
<< inputNumberOfComponents
<< " components to: " << OutputConvertTraits::GetNumberOfComponents() << " components");
break;
}
}
template <typename InputPixelType, typename OutputPixelType, typename OutputConvertTraits>
void
ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::ConvertGrayToGray(
InputPixelType * inputData,
OutputPixelType * outputData,
size_t size)
{
InputPixelType * endInput = inputData + size;
while (inputData != endInput)
{
OutputConvertTraits::SetNthComponent(0, *outputData++, static_cast<OutputComponentType>(*inputData));
inputData++;
}
}
template <typename InputPixelType, typename OutputPixelType, typename OutputConvertTraits>
void
ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::ConvertRGBToGray(InputPixelType * inputData,
OutputPixelType * outputData,
size_t size)
{
// Weights convert from linear RGB to CIE luminance assuming a
// modern monitor. See <NAME>'s Colour FAQ
// http://www.poynton.com/notes/colour_and_gamma/ColorFAQ.html
// NOTE: The scale factors are converted to whole numbers for precision
InputPixelType * endInput = inputData + size * 3;
while (inputData != endInput)
{
auto val = static_cast<OutputComponentType>((2125.0 * static_cast<OutputComponentType>(*inputData) +
7154.0 * static_cast<OutputComponentType>(*(inputData + 1)) +
0721.0 * static_cast<OutputComponentType>(*(inputData + 2))) /
10000.0);
inputData += 3;
OutputConvertTraits::SetNthComponent(0, *outputData++, val);
}
}
template <typename InputPixelType, typename OutputPixelType, typename OutputConvertTraits>
void
ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::ConvertRGBAToGray(
InputPixelType * inputData,
OutputPixelType * outputData,
size_t size)
{
// Weights convert from linear RGB to CIE luminance assuming a
// modern monitor. See Charles Pontyon's Colour FAQ
// http://www.poynton.com/notes/colour_and_gamma/ColorFAQ.html
// NOTE: The scale factors are converted to whole numbers for
// precision
InputPixelType * endInput = inputData + size * 4;
double maxAlpha(DefaultAlphaValue<InputPixelType>());
//
// To be backwards campatible, if the output pixel type
// isn't a short or char type, don't fix the problem.
if (sizeof(*outputData) > 2)
{
maxAlpha = 1.0;
}
while (inputData != endInput)
{
// this is an ugly implementation of the simple equation
// greval = (.2125 * red + .7154 * green + .0721 * blue) / alpha
//
double tempval = ((2125.0 * static_cast<double>(*inputData) + 7154.0 * static_cast<double>(*(inputData + 1)) +
0721.0 * static_cast<double>(*(inputData + 2))) /
10000.0) *
static_cast<double>(*(inputData + 3)) / maxAlpha;
inputData += 4;
auto val = static_cast<OutputComponentType>(tempval);
OutputConvertTraits::SetNthComponent(0, *outputData++, val);
}
}
template <typename InputPixelType, typename OutputPixelType, typename OutputConvertTraits>
void
ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::ConvertMultiComponentToGray(
InputPixelType * inputData,
int inputNumberOfComponents,
OutputPixelType * outputData,
size_t size)
{
//
// To be backwards campatible, if the output pixel type
// isn't a short or char type, don't fix the problem.
double maxAlpha(DefaultAlphaValue<InputPixelType>());
if (sizeof(*outputData) > 2)
{
maxAlpha = 1.0;
}
// 2 components assumed intensity and alpha
if (inputNumberOfComponents == 2)
{
InputPixelType * endInput = inputData + size * 2;
while (inputData != endInput)
{
OutputComponentType val =
static_cast<OutputComponentType>(*inputData) * static_cast<OutputComponentType>(*(inputData + 1) / maxAlpha);
inputData += 2;
OutputConvertTraits::SetNthComponent(0, *outputData++, val);
}
}
// just skip the rest of the data
else
{
// Weights convert from linear RGB to CIE luminance assuming a
// modern monitor. See <NAME>ontyon's Colour FAQ
// http://www.poynton.com/notes/colour_and_gamma/ColorFAQ.html
// NOTE: The scale factors are converted to whole numbers for
// precision
ptrdiff_t diff = inputNumberOfComponents - 4;
InputPixelType * endInput = inputData + size * (size_t)inputNumberOfComponents;
while (inputData != endInput)
{
double tempval = ((2125.0 * static_cast<double>(*inputData) + 7154.0 * static_cast<double>(*(inputData + 1)) +
0721.0 * static_cast<double>(*(inputData + 2))) /
10000.0) *
static_cast<double>(*(inputData + 3)) / maxAlpha;
inputData += 4;
auto val = static_cast<OutputComponentType>(tempval);
OutputConvertTraits::SetNthComponent(0, *outputData++, val);
inputData += diff;
}
}
}
template <typename InputPixelType, typename OutputPixelType, typename OutputConvertTraits>
void
ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::ConvertGrayToRGB(InputPixelType * inputData,
OutputPixelType * outputData,
size_t size)
{
InputPixelType * endInput = inputData + size;
while (inputData != endInput)
{
OutputConvertTraits::SetNthComponent(0, *outputData, static_cast<OutputComponentType>(*inputData));
OutputConvertTraits::SetNthComponent(1, *outputData, static_cast<OutputComponentType>(*inputData));
OutputConvertTraits::SetNthComponent(2, *outputData, static_cast<OutputComponentType>(*inputData));
inputData++;
outputData++;
}
}
template <typename InputPixelType, typename OutputPixelType, typename OutputConvertTraits>
void
ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::ConvertRGBToRGB(InputPixelType * inputData,
OutputPixelType * outputData,
size_t size)
{
InputPixelType * endInput = inputData + size * 3;
while (inputData != endInput)
{
OutputConvertTraits::SetNthComponent(0, *outputData, static_cast<OutputComponentType>(*inputData));
OutputConvertTraits::SetNthComponent(1, *outputData, static_cast<OutputComponentType>(*(inputData + 1)));
OutputConvertTraits::SetNthComponent(2, *outputData, static_cast<OutputComponentType>(*(inputData + 2)));
inputData += 3;
outputData++;
}
}
template <typename InputPixelType, typename OutputPixelType, typename OutputConvertTraits>
void
ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::ConvertRGBAToRGB(InputPixelType * inputData,
OutputPixelType * outputData,
size_t size)
{
InputPixelType * endInput = inputData + size * 4;
while (inputData != endInput)
{
OutputConvertTraits::SetNthComponent(0, *outputData, static_cast<OutputComponentType>(*inputData));
OutputConvertTraits::SetNthComponent(1, *outputData, static_cast<OutputComponentType>(*(inputData + 1)));
OutputConvertTraits::SetNthComponent(2, *outputData, static_cast<OutputComponentType>(*(inputData + 2)));
inputData += 3;
inputData++; // skip alpha
outputData++;
}
}
template <typename InputPixelType, typename OutputPixelType, typename OutputConvertTraits>
void
ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::ConvertMultiComponentToRGB(
InputPixelType * inputData,
int inputNumberOfComponents,
OutputPixelType * outputData,
size_t size)
{
// assume intensity alpha
if (inputNumberOfComponents == 2)
{
InputPixelType * endInput = inputData + size * 2;
while (inputData != endInput)
{
OutputComponentType val =
static_cast<OutputComponentType>(*inputData) * static_cast<OutputComponentType>(*(inputData + 1));
inputData += 2;
OutputConvertTraits::SetNthComponent(0, *outputData, val);
OutputConvertTraits::SetNthComponent(1, *outputData, val);
OutputConvertTraits::SetNthComponent(2, *outputData, val);
outputData++;
}
}
// just skip the rest of the data
else
{
ptrdiff_t diff = inputNumberOfComponents - 3;
InputPixelType * endInput = inputData + size * (size_t)inputNumberOfComponents;
while (inputData != endInput)
{
OutputConvertTraits::SetNthComponent(0, *outputData, static_cast<OutputComponentType>(*inputData));
OutputConvertTraits::SetNthComponent(1, *outputData, static_cast<OutputComponentType>(*(inputData + 1)));
OutputConvertTraits::SetNthComponent(2, *outputData, static_cast<OutputComponentType>(*(inputData + 2)));
inputData += 3;
inputData += diff;
outputData++;
}
}
}
template <typename InputPixelType, typename OutputPixelType, typename OutputConvertTraits>
void
ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::ConvertGrayToRGBA(
InputPixelType * inputData,
OutputPixelType * outputData,
size_t size)
{
InputPixelType * endInput = inputData + size;
while (inputData != endInput)
{
OutputConvertTraits::SetNthComponent(0, *outputData, static_cast<OutputComponentType>(*inputData));
OutputConvertTraits::SetNthComponent(1, *outputData, static_cast<OutputComponentType>(*inputData));
OutputConvertTraits::SetNthComponent(2, *outputData, static_cast<OutputComponentType>(*inputData));
OutputConvertTraits::SetNthComponent(
3, *outputData, static_cast<OutputComponentType>(DefaultAlphaValue<InputPixelType>()));
inputData++;
outputData++;
}
}
template <typename InputPixelType, typename OutputPixelType, typename OutputConvertTraits>
void
ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::ConvertRGBToRGBA(InputPixelType * inputData,
OutputPixelType * outputData,
size_t size)
{
using InputConvertTraits = itk::DefaultConvertPixelTraits<InputPixelType>;
using InputComponentType = typename InputConvertTraits::ComponentType;
InputPixelType * endInput = inputData + size * 3;
while (inputData != endInput)
{
OutputConvertTraits::SetNthComponent(0, *outputData, static_cast<OutputComponentType>(*inputData));
OutputConvertTraits::SetNthComponent(1, *outputData, static_cast<OutputComponentType>(*(inputData + 1)));
OutputConvertTraits::SetNthComponent(2, *outputData, static_cast<OutputComponentType>(*(inputData + 2)));
OutputConvertTraits::SetNthComponent(
3, *outputData, static_cast<OutputComponentType>(DefaultAlphaValue<InputComponentType>()));
inputData += 3;
outputData++;
}
}
template <typename InputPixelType, typename OutputPixelType, typename OutputConvertTraits>
void
ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::ConvertRGBAToRGBA(
InputPixelType * inputData,
OutputPixelType * outputData,
size_t size)
{
InputPixelType * endInput = inputData + size * 4;
while (inputData != endInput)
{
OutputConvertTraits::SetNthComponent(0, *outputData, static_cast<OutputComponentType>(*inputData));
OutputConvertTraits::SetNthComponent(1, *outputData, static_cast<OutputComponentType>(*(inputData + 1)));
OutputConvertTraits::SetNthComponent(2, *outputData, static_cast<OutputComponentType>(*(inputData + 2)));
OutputConvertTraits::SetNthComponent(3, *outputData, static_cast<OutputComponentType>(*(inputData + 3)));
inputData += 4;
outputData++;
}
}
template <typename InputPixelType, typename OutputPixelType, typename OutputConvertTraits>
void
ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::ConvertMultiComponentToRGBA(
InputPixelType * inputData,
int inputNumberOfComponents,
OutputPixelType * outputData,
size_t size)
{
// equal weights for 2 components??
if (inputNumberOfComponents == 2)
{
InputPixelType * endInput = inputData + size * 2;
while (inputData != endInput)
{
auto val = static_cast<OutputComponentType>(*inputData);
auto alpha = static_cast<OutputComponentType>(*(inputData + 1));
inputData += 2;
OutputConvertTraits::SetNthComponent(0, *outputData, val);
OutputConvertTraits::SetNthComponent(1, *outputData, val);
OutputConvertTraits::SetNthComponent(2, *outputData, val);
OutputConvertTraits::SetNthComponent(3, *outputData, alpha);
}
}
else
{
ptrdiff_t diff = inputNumberOfComponents - 4;
InputPixelType * endInput = inputData + size * (size_t)inputNumberOfComponents;
while (inputData != endInput)
{
OutputConvertTraits::SetNthComponent(0, *outputData, static_cast<OutputComponentType>(*inputData));
OutputConvertTraits::SetNthComponent(1, *outputData, static_cast<OutputComponentType>(*(inputData + 1)));
OutputConvertTraits::SetNthComponent(2, *outputData, static_cast<OutputComponentType>(*(inputData + 2)));
OutputConvertTraits::SetNthComponent(3, *outputData, static_cast<OutputComponentType>(*(inputData + 3)));
inputData += 4;
inputData += diff;
outputData++;
}
}
}
template <typename InputPixelType, typename OutputPixelType, typename OutputConvertTraits>
void
ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::ConvertTensor6ToTensor6(
InputPixelType * inputData,
OutputPixelType * outputData,
size_t size)
{
for (size_t i = 0; i < size; ++i)
{
OutputConvertTraits::SetNthComponent(0, *outputData, static_cast<OutputComponentType>(*inputData));
OutputConvertTraits::SetNthComponent(1, *outputData, static_cast<OutputComponentType>(*(inputData + 1)));
OutputConvertTraits::SetNthComponent(2, *outputData, static_cast<OutputComponentType>(*(inputData + 2)));
OutputConvertTraits::SetNthComponent(3, *outputData, static_cast<OutputComponentType>(*(inputData + 3)));
OutputConvertTraits::SetNthComponent(4, *outputData, static_cast<OutputComponentType>(*(inputData + 4)));
OutputConvertTraits::SetNthComponent(5, *outputData, static_cast<OutputComponentType>(*(inputData + 5)));
++outputData;
inputData += 6;
}
}
// Convert Grayscale to Complex
template <typename InputPixelType, typename OutputPixelType, typename OutputConvertTraits>
void
ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::ConvertGrayToComplex(
InputPixelType * inputData,
OutputPixelType * outputData,
size_t size)
{
InputPixelType * endInput = inputData + size;
while (inputData != endInput)
{
OutputConvertTraits::SetNthComponent(0, *outputData, static_cast<OutputComponentType>(*inputData));
OutputConvertTraits::SetNthComponent(1, *outputData, static_cast<OutputComponentType>(*inputData));
inputData++;
outputData++;
}
}
template <typename InputPixelType, typename OutputPixelType, typename OutputConvertTraits>
void
ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::ConvertComplexToComplex(
InputPixelType * inputData,
OutputPixelType * outputData,
size_t size)
{
InputPixelType * endInput = inputData + size * 2;
while (inputData != endInput)
{
OutputConvertTraits::SetNthComponent(0, *outputData, static_cast<OutputComponentType>(*inputData));
OutputConvertTraits::SetNthComponent(1, *outputData, static_cast<OutputComponentType>(*(inputData + 1)));
inputData += 2;
outputData++;
}
}
template <typename InputPixelType, typename OutputPixelType, typename OutputConvertTraits>
void
ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::ConvertTensor9ToTensor6(
InputPixelType * inputData,
OutputPixelType * outputData,
size_t size)
{
for (size_t i = 0; i < size; ++i)
{
OutputConvertTraits::SetNthComponent(0, *outputData, static_cast<OutputComponentType>(*inputData));
OutputConvertTraits::SetNthComponent(1, *outputData, static_cast<OutputComponentType>(*(inputData + 1)));
OutputConvertTraits::SetNthComponent(2, *outputData, static_cast<OutputComponentType>(*(inputData + 2)));
OutputConvertTraits::SetNthComponent(3, *outputData, static_cast<OutputComponentType>(*(inputData + 4)));
OutputConvertTraits::SetNthComponent(4, *outputData, static_cast<OutputComponentType>(*(inputData + 5)));
OutputConvertTraits::SetNthComponent(5, *outputData, static_cast<OutputComponentType>(*(inputData + 8)));
++outputData;
inputData += 9;
}
}
template <typename InputPixelType, typename OutputPixelType, typename OutputConvertTraits>
void
ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::ConvertMultiComponentToComplex(
InputPixelType * inputData,
int inputNumberOfComponents,
OutputPixelType * outputData,
size_t size)
{
ptrdiff_t diff = inputNumberOfComponents - 2;
InputPixelType * endInput = inputData + size * (size_t)inputNumberOfComponents;
while (inputData != endInput)
{
OutputConvertTraits::SetNthComponent(0, *outputData, static_cast<OutputComponentType>(*inputData));
OutputConvertTraits::SetNthComponent(1, *outputData, static_cast<OutputComponentType>(*(inputData + 1)));
inputData += 2;
inputData += diff;
outputData++;
}
}
template <typename InputPixelType, typename OutputPixelType, typename OutputConvertTraits>
void
ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::ConvertVectorImage(
InputPixelType * inputData,
int inputNumberOfComponents,
OutputPixelType * outputData,
size_t size)
{
size_t length = size * (size_t)inputNumberOfComponents;
for (size_t i = 0; i < length; ++i)
{
OutputConvertTraits::SetNthComponent(0, *outputData, static_cast<OutputComponentType>(*inputData));
++outputData;
++inputData;
}
}
} // end namespace itk
#endif
| cpp |
<filename>posts/migrations/0006_post_status.py
# Generated by Django 2.0.6 on 2018-06-17 13:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('posts', '0005_auto_20180616_2037'),
]
operations = [
migrations.AddField(
model_name='post',
name='status',
field=models.CharField(choices=[('PUB', 'Published'), ('DRA', 'Draft')], default='DRA', max_length=3),
),
]
| python |
Father of “East Turkestan”: Russian Sinologist Nikita Yakovlevich Bichurin. He 1st invented the term “East Turkestan” to replace “Chinese Turkestan” in foreign language usage in 1829.
This 1897 map of Russian conquest use “East Turkestan” to denoted Tarim Basin area, #Uyghur homeland in South #Xinjiang under Chinese Empire.
It also marked in orange, part of Ghulja, Xinjiang occupied by Russia in 1871 and cede by China in Treaty of Saint Petersburg (1881),
It also marked in orange, part of Ghulja, Xinjiang occupied by Russia in 1871 and cede by China in Treaty of Saint Petersburg (1881),
The traditional #Uyghur name for their homeland is Altishahr, or 6 cities, for traditional Turkic speaking oasis cities in Tarim Basin.
Tianshan mountain cuts #Xinjiang into 2 parts. Dzungaria in red, Tarim Basin in blue.
Tianshan mountain cuts #Xinjiang into 2 parts. Dzungaria in red, Tarim Basin in blue.
During Civil War and Rebellion in #Xinjiang in 1930s, group of conservative #Uyghur religious clerics founded Turkish Islamic Republic of Eastern Turkestan (TIRET) in Kashgar, Hotan and Aksu on Nov 12,1933. It lasted 5 month til April 16, 1934.
The Islamic Republic of East Turkistan ran afoul w Chinese Muslim Warlord Ma Zhongying who led Hui Army into #Xinjiang in 1930s to carve up a new power base.
Then Soviet Union send in 7,000 troops into #Xinjiang to help Warlord Shen Shicai crush Ma Zhongying’s Hui Muslim Army. Soviet planes bombed Ma army. Then Ma for unknown reason crossed into Soviet Union and is never heard of again.
| english |
When Jesus finished saying these things, he told his disciples, “You know that Passover comes in two days. That’s when the Son of Man will be betrayed and handed over for crucifixion.” At that very moment, the party of high priests and religious leaders was meeting in the chambers of the Chief Priest named Caiaphas, conspiring to seize Jesus by stealth and kill him. They agreed that it should not be done during Passover Week. “We don’t want a riot on our hands,” they said.
And it came to pass, when Jesus had finished all these sayings, he said unto his disciples, Ye know that after two days is the feast of the passover, and the Son of man is betrayed to be crucified. Then assembled together the chief priests, and the scribes, and the elders of the people, unto the palace of the high priest, who was called Caiaphas, and consulted that they might take Jesus by subtilty, and kill him. But they said, Not on the feast day, lest there be an uproar among the people.
And it came to pass, when Jesus had finished all these words, he said unto his disciples, Ye know that after two days the passover cometh, and the Son of man is delivered up to be crucified. Then were gathered together the chief priests, and the elders of the people, unto the court of the high priest, who was called Caiaphas; and they took counsel together that they might take Jesus by subtlety, and kill him. But they said, Not during the feast, lest a tumult arise among the people.
| english |
<gh_stars>1-10
{
"alias": "video/540/pyohio-2011--bringing-modern-python-to-the-atari",
"category": "PyOhio 2011",
"copyright_text": "Creative Commons Attribution 2.0",
"description": "Bringing Modern Python to the Atari\n\nPresented by <NAME>\n\nThe Atari ST continues to fulfill a niche in the computing world amongst\nhobbyists. Later Atari computers, such as the TT030 and Falcon030, and\nthe numerous clones are relatively competent 32-bit machines. To this\nday, the open source FreeMiNT operating system continues to be\ndeveloped, bringing a UNIX-like environment to these computers.\n",
"duration": null,
"id": 540,
"language": "eng",
"quality_notes": "",
"recorded": null,
"slug": "pyohio-2011--bringing-modern-python-to-the-atari",
"speakers": [
"<NAME>"
],
"summary": "",
"tags": [
"atari",
"freemint",
"pyohio",
"pyohio2011"
],
"thumbnail_url": "http://a.images.blip.tv/Pyohio-BringingModernPythonToTheAtari253.png",
"title": "PyOhio 2011: Bringing Modern Python to the Atari",
"videos": [
{
"length": null,
"type": "mp4",
"url": "http://05d2db1380b6504cc981-8cbed8cf7e3a131cd8f1c3e383d10041.r93.cf2.rackcdn.com/pyohio-2011/540_pyohio-2011-bringing-modern-python-to-the-atari.m4v"
}
]
} | json |
<reponame>sparsick/java-examples
package com.github.sparsick.java.examples.java8.a04.method.reference;
class Car {
private int horsepower;
Car(int horsepower) {
this.horsepower = horsepower;
}
Car() {
}
void run(){
System.out.println(String.format("Run car with %s horsepower!", Integer.toString(horsepower)));
}
public String createName(String name) {
return String.format("Car: %s", name);
}
}
| java |
<reponame>usmnzain/realestate
const Joi = require("@hapi/joi");
const schema = Joi.object().keys({
fname: Joi.string()
.min(3)
.max(20)
.required(),
lname: Joi.string()
.min(2)
.max(20)
.required(),
email: Joi.string().email({
minDomainSegments: 2,
tlds: { allow: ["com", "net"] }
}),
password1: Joi.string()
.min(6)
.max(30)
.required(),
password2: Joi.any()
.equal(Joi.ref("password1"))
.required()
});
export function registerValidate(fname, lname, email, password1, password2) {
const result = schema.validate(
{
fname,
lname,
email,
password1,
password2
},
{ abortEarly: false }
);
return result;
}
export function loginValidate(fname, lname, email, password1, password2) {
const result = schema.validate(
{
email,
password1
},
{ abortEarly: false }
);
return result;
}
| javascript |
package init
import _ "github.com/kirillDanshin/go-wde/win"
| go |
// Calculate the mean of two numbers
package main
import (
"fmt"
)
func main() {
// x := 1.0
// y := 2.0
x, y := 1.0, 2.0
fmt.Printf("x=%v, Type of %T\n", x, x)
fmt.Printf("x=%v, Type of %T\n", y, y)
mean := (x + y) / 2.0
fmt.Printf("result: %v, Type of %T\n", mean, mean)
}
| go |
<filename>src/response/MemberResponse.ts
import MemberType from '../model/MemberType';
import SettlementEarningsDestination from '../model/SettlementEarningsDestination';
import Status from '../model/Status';
type MemberResponse = {
id: number;
createdDate: Date;
updatedDate: Date;
status: Status;
isBuyer: boolean;
isSubMerchant: boolean;
memberType: MemberType;
memberExternalId: string;
name: string;
email: string;
iban: string;
address: string;
phoneNumber: string;
taxOffice: string;
taxNumber: string;
contactName: string;
contactSurname: string;
identityNumber: string;
legalCompanyTitle: string;
settlementEarningsDestination: SettlementEarningsDestination;
};
export default MemberResponse;
| typescript |
- #Donald TrumpTrump's Classified Documents Case: What Happened In The Courtroom?
Washington, Oct 05: Former US President Donald Trump has asked the Supreme Court to intervene in his legal battle over classified documents that were seized at his Mar-a-Lago mansion on August 8.
On Tuesday, Trump's lawyers filed a request with the Supreme Court to overturn a previous ruling from the Court of Appeals that prevented an independent arbiter requested by Trump, known as a special master, from vetting more than 100 classified documents that were among 11,000 records seized by FBI agents.
In the filing on Tuesday, Trump's legal team said the special master should have access to "determine whether documents bearing classification markings are in fact classified, and regardless of classification, whether those records are personal records or presidential records. "
Lawyers point to Trump's 'absolute authority'
On September 15, New York Judge Raymond Dearie was appointed as a special master, tasked with screening the documents and weeding out anything that may be covered by attorney-client privilege or executive privilege. The Justice Department was prevented from reviewing the documents until this process was completed.
However, the Justice Department successfully appealed this decision and some of Dearie's powers were wound back by the Court of Appeals a week later.
"Since [former] President Trump had absolute authority over classification decisions during his presidency, the current status of any disputed document cannot possibly be determined solely by reference to the markings on that document," Trump's lawyers said in the filing on Tuesday.
They said that without the oversight of Dearie as a special master, "the unchallenged views of the current Justice Department would supersede the established authority of the chief executive. "
The petition was submitted to conservative Justice Clarence Thomas, who oversees emergency matters from Florida and several other southern states.
He can act on his own or refer the emergency appeal to the rest of the court, as is convention.
Thomas has previously been criticized for being the only dissenting vote in another Trump documents case pertaining to the January 6 insurrection at the US Capitol. His wife, Virginia "Ginni" Thomas, is also a conservative activist and noted Trump supporter. | english |
<filename>page/pictures/src/index.html
---
title: Pictures
order: 1
date: 2019-07-25T23:14:39+0900
scripts:
- src: <%= htmlWebpackPlugin.files.js[0] %>
defer: true
---
<div id="pictures"></div>
| html |
<gh_stars>1-10
{"id": "VTANR5L15V2103", "code_type_vote": "SPO", "libelle_type_vote": "scrutin public ordinaire", "demandeur": "Pr\u00e9sident du groupe \"La R\u00e9publique en Marche\" Pr\u00e9sident du groupe \"UDI et Ind\u00e9pendants\"", "libelle": "l'amendement n\u00b0 2559 (rect.) de <NAME> apr\u00e8s l'article 2 du projet de loi relatif \u00e0 la bio\u00e9thique (premi\u00e8re lecture).", "nb_votants": "36", "date": "2019-09-27"} | json |
One of the best ways to understand IBM's Watson is to shop for a biking jacket.
That might seem like an odd statement, but it's true. The North Face has tapped the power of Watson to help you find the right spring attire, and so have several other companies.
IBM has built up Watson into a celebrity that has 'appeared' on Jeopardy and in recent commercials. Yet, its natural language processing ability is a good example of cognitive computing for any IT worker or executive trying to understand the future of the industry. According to IBM, 80% of all data in the world is unstructured data – in other words, snippets of facts scattered everywhere.
Each of the examples detailed in this slideshow is a good 'state of the industry' showcase. Without the 'Powered by Watson' capability on demonstration, there would be too much unstructured data and not enough guidance. Most chatbots for shopping, customer support, and technical advice will be powered by similar technology meant to sift through a database and the cloud.
Before explaining each example, it's important to first give a quick summary of IBM Watson and why it even exists. All companies have some form of structured data. This might be the directory of employee records in HR or the images used for a website. You can predict with some degree of accuracy how your storage needs will change over time, based on the usage pattern over the past few years.
For example, you might predict that you'll hire a certain number of employees and allocate a set amount of storage for each one. That makes budgeting plans easier, security infrastructure less of a nightmare, and avoids abject chaos.
But unstructured data? It's much more of a sprawling web. There might be millions and millions of documents scattered all over a network. Technically, IBM Watson is a service that runs on 90 servers with 2,880 processor cores running concurrently. It has 16TB of RAM. Yet, the core function is related to IBM's DeepQA technology, essentially a question and answer system. A human can ask a question and IBM Watson finds the answer.
So in this article we'll cover five of the best examples of how this works.
That's right, IBM Watson can help you "design" your granola. While it might seem cheeky, the brand uses Watson to analyse thousands and thousands of possible ingredient combinations. Once again, this is a good example of analysing unstructured data.
If you pick an ingredient like Blackberry Powder, Watson will determine that Dried Pomegranate Arils and Red Bean Crisps match up nicely. You can remove an ingredient (like the Blackberry Powder) and Watson will suggest an alternative (like Coriander). The alternative to this incredible intelligence would be to tap an expert chef who already knows which recipes work best for granola.
People don't go shopping for clothing. They shop for clothes that match up with an activity, such as hiking or power walking. Yet, the amount of unstructured data related to adventure sports is scattered all over the globe. Most stores don't keep a mountain biking expert on staff at all times. That's why The North Face uses Watson to guide customers to the right product.
You begin by entering a phrase like "Biking in London in March" to kick things off. You enter whether you are male or female. Watson might ask if you expect rain or snow, and if you prefer any custom options. You'll then see a selection of products, not a laundry list of sizes and colours, but rather clothing that matches up with your upcoming activity. It takes the 'unstructured' database of an e-commerce site and makes it more of a human-centric experience.
Choosing a wine is more complex than you think. You might like a red wine, but is it plush, soft, tannic and sweet? Does it have a hint of strawberries? Is it 'perfumed' just right? Even for wine connoisseurs, you might not know all of the proper terms, but you do know which flavors you like.
The Wine4.me app uses IBM Watson to look through an inventory of products to match up with taste preferences. You don't need to use the right terms or even know the brands and labels, you just need to indicate which flavours you like. It's another good example of having the AI do the hard part of searching through hundreds of wine options looking for preferences, rather than expecting the shopper to have all of the expertise.
Workplace wellness is a serious issue. But most of us can't visit the doctor on a weekly basis or get constant wellness check-ups. The CafeWell Concierge app employs IBM Watson so that users can type in questions about diet, nutrition, and exercise. For example, you can ask about which recipes work best when you are trying to lose weight or how exercise impacts sleeping.
The app is another good example of presenting information that is important and vital to a customer, yet usually consumes the time of nurses and doctors. Also, many of the answers to health questions are fairly routine.
A final example of handling unstructured data – one that might be the best example of how IBM Watson can help – pertains to a Hilton concierge robot named Connie. Hilton installed this robot as a test at the Hilton McLean hotel in Virginia over in the US. Guests can walk up and ask questions about bus routes or sporting events, and Connie will search through reams of data to find the answer – in seconds.
In this case, Watson learns from each interaction, knowing which questions are asked the most and incorporating insight from previous discussions with guests into new answers. The idea is not to replace human workers, but to give them more meaningful tasks than repeating the same answer all day about how to get to the airport.
Sign up to the TechRadar Pro newsletter to get all the top news, opinion, features and guidance your business needs to succeed!
John Brandon has covered gadgets and cars for the past 12 years having published over 12,000 articles and tested nearly 8,000 products. He's nothing if not prolific. Before starting his writing career, he led an Information Design practice at a large consumer electronics retailer in the US. His hobbies include deep sea exploration, complaining about the weather, and engineering a vast multiverse conspiracy.
| english |
We also offer you product sourcing and flight consolidation expert services. We've our personal manufacturing unit and sourcing business. We can offer you virtually every variety of merchandise associated to our item range for sweatshirt sweatpant tracksuit, Yoga Sport Bra , Design Bicycle Clothing , Tracksuit ,Sublimation Mesh Cotton Crop Top . If possible, be sure to send your needs with a detailed list including the style/item and quantity you require. We will then deliver our greatest price ranges to you. The product will supply to all over the world, such as Europe, America, Australia,Denver , Cape Town ,Philippines , Angola .To make every client satisfied with us and achieve win-win success, we will continue to try our best to serve and satisfy you! Sincerely looking forward to cooperating with more overseas customers based on mutual benefits and great future business. Thank you.
| english |
#!/bin/sh
import os
import env
import time
import glob
from datetime import date
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.options import Options
def DownloadMerchantCSV(DL,NEW_NAME):
headless = 1
DOWNLOAD_PATH = DL
chrome_options = Options()
chrome_options.add_argument("--window-size=1920,1080")
if headless == 1:
chrome_options.add_argument('--headless')
chrome_options.add_argument('--disable-dev-shm-usage')
chrome_options.add_argument('--no-sandbox')
chrome_options.add_argument('--ignore-certificate-errors')
driver = webdriver.Chrome(executable_path=os.path.abspath("/usr/bin/chromedriver"), chrome_options=chrome_options)
driver.command_executor._commands["send_command"] = ("POST", '/session/$sessionId/chromium/send_command')
params = {'cmd': 'Page.setDownloadBehavior', 'params': {'behavior': 'allow', 'downloadPath': DOWNLOAD_PATH}}
command_result = driver.execute("send_command", params)
username = os.getenv('EMAIL')
password = <PASSWORD>('PASSWORD')
driver.get('https://accounts.google.com/signin/v2/identifier?service=merchants&passive=1209600&continue=https%3A%2F%2Fmerchants.google.com%2Fmc%2Fdefault%3Fhl%3Den%26fmp%3D1%26utm_id%3Dgfr%26mcsubid%3Duk-en-web-g-mc-gfr%26_ga%3D2.30098943.1769887343.1591033073-1156362069.1591033073&followup=https%3A%2F%2Fmerchants.google.com%2Fmc%2Fdefault%3Fhl%3Den%26fmp%3D1%26utm_id%3Dgfr%26mcsubid%3Duk-en-web-g-mc-gfr%26_ga%3D2.30098943.1769887343.1591033073-1156362069.1591033073&hl=en&flowName=GlifWebSignIn&flowEntry=ServiceLogin') #go to desired site and continue navigation
driver.implicitly_wait(10)
if headless == 1:
driver.find_element_by_name('Email').send_keys(username)
driver.find_element_by_name('signIn').click()
else:
driver.find_element_by_name('identifier').send_keys(username)
driver.find_element_by_xpath('//*[@id="identifierNext"]/span/span').click()
driver.implicitly_wait(20)
if headless == 1:
driver.find_element_by_name('Passwd').send_keys(password)
driver.implicitly_wait(4)
driver.find_element_by_id('submit').click()
else:
driver.find_element_by_name('password').send_keys(password)
driver.implicitly_wait(4)
driver.find_element_by_xpath('//*[@id="passwordNext"]/span/span').click()
time.sleep(20)
driver.get('https://merchants.google.com/mc/bestsellers?a='+ os.getenv('MERCHANT_ID') +'&tab=product&tableState=ChYKDGNvdW50cnlfY29kZRABGgQyAlVTCloKD3JhbmtlZF9jYXRlZ29yeRADGkU6Q3siMSI6IjE4NyIsIjIiOiJTaG9lcyIsIjMiOnsiMSI6IjE2NiIsIjIiOiJBcHBhcmVsICYgQWNjZXNzb3JpZXMifX0SGgoWZ29vZ2xlX3BvcHVsYXJpdHlfcmFuaxABGDI%3D&hl=en&fmp=1&utm_id=gfr&mcsubid=uk-en-web-g-mc-gfr&_ga=2.27780219.632847136.1591024293-1801482839.1591024293')
time.sleep(20)
driver.find_element_by_xpath('//*[@id="products-root"]/product-google-popularity-rank-view/best-sellers-tabs/scroll-host-with-footer/product-google-popularity-rank-report/tableview/toolbelt/div/toolbelt-bar[1]/div[2]/div[2]/element/icon-text/material-button/material-ripple').click()
time.sleep(30) #wait for the download to finish
#Download should be finished
driver.close()
CSV_NAME = ""
for name in glob.glob(DOWNLOAD_PATH + "/*.csv"):
CSV_NAME = name
os.rename(CSV_NAME, os.path.join(DOWNLOAD_PATH, NEW_NAME))
return os.path.join(DOWNLOAD_PATH, NEW_NAME)
| python |
'use strict';
import * as debug from 'debug';
import * as express from 'express';
import * as _ from 'lodash';
import { Errors } from '../typescript-rest';
import { ServiceClass, ServiceMethod, ServiceProperty } from './model/metadata';
import { DownloadBinaryData, DownloadResource, NoResponse } from './model/return-types';
import { HttpMethod, ReferencedResource, ServiceContext, ServiceProcessor } from './model/server-types';
import { ParameterProcessor } from './parameter-processor';
import { ServerContainer } from './server-container';
export class ServiceInvoker {
private serviceClass: ServiceClass;
private serviceMethod: ServiceMethod;
private preProcessors: Array<ServiceProcessor>;
private postProcessors: Array<ServiceProcessor>;
private debugger = debug('typescript-rest:service-invoker:runtime');
constructor(serviceClass: ServiceClass, serviceMethod: ServiceMethod) {
this.serviceClass = serviceClass;
this.serviceMethod = serviceMethod;
this.preProcessors = _.union(serviceMethod.preProcessors, serviceClass.preProcessors);
this.postProcessors = _.union(serviceMethod.postProcessors, serviceClass.postProcessors);
}
public async callService(context: ServiceContext) {
try {
await this.callTargetEndPoint(context);
if (this.mustCallNext()) {
context.next();
} else if (this.debugger.enabled) {
this.debugger('Ignoring next middlewares');
}
}
catch (err) {
context.next(err);
}
}
private mustCallNext() {
return !ServerContainer.get().ignoreNextMiddlewares &&
!this.serviceMethod.ignoreNextMiddlewares && !this.serviceClass.ignoreNextMiddlewares;
}
private async runPreProcessors(context: ServiceContext): Promise<void> {
this.debugger('Running preprocessors');
for (const processor of this.preProcessors) {
await Promise.resolve(processor(context.request, context.response));
}
}
private async runPostProcessors(context: ServiceContext): Promise<void> {
this.debugger('Running postprocessors');
for (const processor of this.postProcessors) {
await Promise.resolve(processor(context.request, context.response));
}
}
private async callTargetEndPoint(context: ServiceContext) {
this.debugger('Calling targetEndpoint %s', this.serviceMethod.resolvedPath);
this.checkAcceptance(context);
if (this.preProcessors.length) {
await this.runPreProcessors(context);
}
const serviceObject = this.createService(context);
const args = this.buildArgumentsList(context);
const toCall = this.getMethodToCall();
if (this.debugger.enabled) {
this.debugger('Invoking service method <%s> with params: %j', this.serviceMethod.name, args);
}
const result = toCall.apply(serviceObject, args);
if (this.postProcessors.length) {
await this.runPostProcessors(context);
}
this.processResponseHeaders(context);
await this.sendValue(result, context);
}
private getMethodToCall() {
return this.serviceClass.targetClass.prototype[this.serviceMethod.name]
|| this.serviceClass.targetClass[this.serviceMethod.name];
}
private checkAcceptance(context: ServiceContext): void {
this.debugger('Verifying accept headers');
this.identifyAcceptedLanguage(context);
this.identifyAcceptedType(context);
if (!context.accept) {
throw new Errors.NotAcceptableError('Accept');
}
if (!context.language) {
throw new Errors.NotAcceptableError('Accept-Language');
}
}
private identifyAcceptedLanguage(context: ServiceContext) {
if (this.serviceMethod.resolvedLanguages) {
const lang: any = context.request.acceptsLanguages(this.serviceMethod.resolvedLanguages);
if (lang) {
context.language = lang as string;
}
} else {
const languages: Array<string> = context.request.acceptsLanguages();
if (languages && languages.length > 0) {
context.language = languages[0];
}
}
this.debugger('Identified the preferable language accepted by server: %s', context.language);
}
private identifyAcceptedType(context: ServiceContext) {
if (this.serviceMethod.resolvedAccepts) {
context.accept = context.request.accepts(this.serviceMethod.resolvedAccepts) as string;
} else {
const accepts: Array<string> = context.request.accepts();
if (accepts && accepts.length > 0) {
context.accept = accepts[0];
}
}
this.debugger('Identified the preferable media type accepted by server: %s', context.accept);
}
private createService(context: ServiceContext) {
const serviceObject = ServerContainer.get().serviceFactory.create(this.serviceClass.targetClass, context);
this.debugger('Creating service object');
if (this.serviceClass.hasProperties()) {
this.serviceClass.properties.forEach((property, key) => {
this.debugger('Setting service property %s', key);
serviceObject[key] = this.processParameter(context, property);
});
}
return serviceObject;
}
private buildArgumentsList(context: ServiceContext) {
const result: Array<any> = new Array<any>();
this.serviceMethod.parameters.forEach(param => {
this.debugger('Processing service parameter [%s]', param.name || 'body');
result.push(this.processParameter(context, {
name: param.name,
propertyType: param.type,
type: param.paramType
}));
});
return result;
}
private processParameter(context: ServiceContext, property: ServiceProperty) {
return ParameterProcessor.get().processParameter(context, property);
}
private processResponseHeaders(context: ServiceContext) {
if (this.serviceMethod.resolvedLanguages) {
if (this.serviceMethod.httpMethod === HttpMethod.GET) {
this.debugger('Adding response header vary: Accept-Language');
context.response.vary('Accept-Language');
}
this.debugger('Adding response header Content-Language: %s', context.language);
context.response.set('Content-Language', context.language);
}
if (this.serviceMethod.resolvedAccepts) {
if (this.serviceMethod.httpMethod === HttpMethod.GET) {
this.debugger('Adding response header vary: Accept');
context.response.vary('Accept');
}
}
}
private async sendValue(value: any, context: ServiceContext) {
if (value !== NoResponse) {
this.debugger('Sending response value: %o', value);
switch (typeof value) {
case 'number':
context.response.send(value.toString());
break;
case 'string':
context.response.send(value);
break;
case 'boolean':
context.response.send(value.toString());
break;
case 'undefined':
if (!context.response.headersSent) {
context.response.sendStatus(204);
}
break;
case null:
context.response.send(value);
break;
default:
await this.sendComplexValue(context, value);
}
} else {
this.debugger('Do not send any response value');
}
}
private async sendComplexValue(context: ServiceContext, value: any) {
if (value.filePath && value instanceof DownloadResource) {
await this.downloadResToPromise(context.response, value);
}
else if (value instanceof DownloadBinaryData) {
this.sendFile(context, value);
}
else if (value.location && value instanceof ReferencedResource) {
await this.sendReferencedResource(context, value);
}
else if (value.then && value.catch) {
const val = await value;
await this.sendValue(val, context);
}
else {
this.debugger('Sending a json value: %j', value);
context.response.json(value);
}
}
private async sendReferencedResource(context: ServiceContext, value: ReferencedResource<any>) {
this.debugger('Setting the header Location: %s', value.location);
this.debugger('Sendinf status code: %d', value.statusCode);
context.response.set('Location', value.location);
if (value.body) {
context.response.status(value.statusCode);
await this.sendValue(value.body, context);
}
else {
context.response.sendStatus(value.statusCode);
}
}
private sendFile(context: ServiceContext, value: DownloadBinaryData) {
this.debugger('Sending file as response');
if (value.fileName) {
context.response.writeHead(200, {
'Content-Length': value.content.length,
'Content-Type': value.mimeType,
'Content-disposition': 'attachment;filename=' + value.fileName
});
}
else {
context.response.writeHead(200, {
'Content-Length': value.content.length,
'Content-Type': value.mimeType
});
}
context.response.end(value.content);
}
private downloadResToPromise(res: express.Response, value: DownloadResource) {
this.debugger('Sending a resource to download. Path: %s', value.filePath);
return new Promise((resolve, reject) => {
res.download(value.filePath, value.filePath, (err) => {
if (err) {
reject(err);
} else {
resolve();
}
});
});
}
}
| typescript |
The Samsung Galaxy Note is like the little engine that could -- except for the little part. At 5.3 inches, it's a behemoth of a smartphone, which many critics originally thought would flatline with consumers.
But despite original naysayers, the Note looks to be gaining traction. On Wednesday, Samsung Korea reported that shipments of the phone-cum-tablet (phablet?) have surpassed five million units.
Earlier this month, we reported that the Galaxy Note was picking up momentum among smartphone purchasers. As of March 5, two million units had shipped. Granted, it's not the 37 million units Apple sold during the iPhone's first three months on the market (or the four million sold during its opening weekend alone). But similarly jumbo-sized devices like the 5-inch Dell Streak, which debuted in 2010 and was marketed as a tablet rather than a phone, struck out in a major way. So Samsung seems to be doing something right.
Devices like the 4.5-inch Galaxy S II and other smartphones in the 4 to 4.7-inch category have paved the way for the Galaxy Note's acceptance. And with phones increasingly being used for video streaming, photo taking, and photo editing, a larger display, to some, isn't so much a burden as a benefit.
The Galaxy Note is most definitely a niche device, but its spacious Super AMOLED display, 4G connectivity, and its pressure-sensitive S Pen stylus seem to be striking a chord with consumers.
| english |
<filename>mlab_api/models/server_models.py
# -*- coding: utf-8 -*-
'''
Models for definging return value of Server specific calls
'''
from flask_restplus import fields
from mlab_api.rest_api import API
from mlab_api.format_utils import meta_results_to_csv, \
meta_data_in_row_to_csv, meta_data_to_csv
from mlab_api.models.base_models import SEARCH_DATA_FIELDS, \
METRIC_META_FIELDS, SERVER_SEARCH_META_FIELDS, SERVER_META_FIELDS
# -------------------------------------------
# Servers: search
# -------------------------------------------
SERVER_SEARCH_RESULTS_FIELD = API.model('Server ASN Search Result', {
'meta': fields.Nested(SERVER_SEARCH_META_FIELDS, required=True),
'data': fields.Nested(SEARCH_DATA_FIELDS, required=True)
})
SERVER_SEARCH_MODEL = API.model('Server ASN Search Results', {
'results': fields.List(fields.Nested(SERVER_SEARCH_RESULTS_FIELD),
required=True)
})
def server_search_to_csv(data):
'''
Converts server search results into a CSV
'''
return meta_data_in_row_to_csv(data, SERVER_SEARCH_META_FIELDS,
SEARCH_DATA_FIELDS)
# -------------------------------------------
# Servers: info
# -------------------------------------------
SERVER_INFO_MODEL = API.model('Server Info Model', {
'meta': fields.Nested(SERVER_SEARCH_META_FIELDS, required=True),
})
def server_info_to_csv(data):
'''
Converts server info to csv format
'''
return meta_data_to_csv(data, SERVER_META_FIELDS, None)
# -------------------------------------------
# Servers: metrics
# -------------------------------------------
SERVER_METRIC_MODEL = API.model('Server Metric Model', {
'meta': fields.Nested(SERVER_META_FIELDS, required=True),
'results': fields.List(fields.Nested(METRIC_META_FIELDS), required=True)
})
def server_metric_to_csv(data):
'''
Converts server metric data to CSV
'''
return meta_results_to_csv(data, SERVER_META_FIELDS, METRIC_META_FIELDS)
| python |
<reponame>jjsendor/surveylance
.dijitRtl .soria .dijitMenuItem .dijitMenuItemIcon {
padding-left: 3px;
padding-right: 0px;
}
.dijitRtl .soria .dijitMenuItem .dijitMenuExpand {
background-position: left top;
}
| css |
Your login session has expired. Please logout and login again.
Player Focus: Is versatile Cuadrado an upgrade on Schurrle for Chelsea?
Schurrle and Salah OUT and Cuadrado IN, but who else will join the Colombian at Chelsea?
Schurrle: "I am happy in London. I love the city, I love the fans. "
Who will replace Chelsea's Cesc Fabregas against Hull City?
R U Next?
🏃🏻♀️ Sports (30+)
Edition: | english |
<filename>Assets/Resources/Entities/Terra/Abilities/StoneSkin.json<gh_stars>0
{
"m_abilityName": "Stone Skin",
"m_description": "Lets the skin becomes hard as stone increasing the defense by $PER% for $SEC.",
"m_targetType": 2,
"m_preparationTime": 3.0,
"m_range": 2.0,
"m_stat": 3,
"m_percentage": 0.2,
"m_duration": 120,
"m_resourceType": 1,
"m_costs": 8,
"m_hasAreaOfEffect": false,
"m_radius": 0.0
} | json |
{"data":{"token":[{"reveal_status":2,"timestamp":"2022-02-23T08:08:40+00:00","owner_id":"tz1SvWP42PA7Ga1Pwg4naWTYrYS3Ub3B6HuT","creator_id":"tz1SvWP42PA7Ga1Pwg4naWTYrYS3Ub3B6HuT","metadata":{"description":"DOGAMI, Adopt Raise, Earn.","name":"DOGAMI #4794","display_uri":"https://nft-zzz.mypinata.cloud/ipfs/QmPMkRqzB43FNPWR4ji45Ju2kh2s1LFzHDNJLbbc5kiDeV","thumbnail_uri":"https://nft-zzz.mypinata.cloud/ipfs/QmSNVsLpopcYDcbhFgEHDzazWbPm6Djmp741p3f7MqEyEm","artifact_uri":"https://nft-zzz.mypinata.cloud/ipfs/QmXNzXrJWVadHrGv2UeeHBFgNwotu1EjKNtvzSNYkKNZWR","decimals":0,"attributes":{"rarity_score":47,"ranking":4072,"rarity_tier":{"name":"Bronze","__typename":"rarity_tier"},"generation":"Alpha","gender":"Female","breed":{"name":"Border Collie","__typename":"breed"},"fur_color":"Blue merle #10","friendliness":3,"eyes_color":"Green #4","intelligence":9,"strength":5,"obedience":4,"vitality":7,"secondary_personality":"Jolly","bonding_level":1,"primary_personality":"Cool","stats":{"bonding_level_top_pct":0,"breed_pct":11,"eyes_color_pct":2,"friendliness_top_pct":49,"fur_color_pct":0,"gender_pct":49,"generation_pct":395,"intelligence_top_pct":12,"obedience_top_pct":68,"rarity_tier_pct":59,"primary_personality_pct":4,"size_pct":18,"vitality_top_pct":26,"strength_top_pct":33,"secondary_personality_pct":5,"__typename":"attributes_stats"},"__typename":"attributes"},"is_boolean_amount":true,"__typename":"metadata"},"id":4794,"swaps":[],"__typename":"token"}]}} | json |
<reponame>dwomick/slick<gh_stars>10-100
{
"name": "slick",
"version": "0.3.8",
"description": "A Hugo theme focused on content, cleanliness, speed, responsiveness and privacy.",
"repository": {
"type": "git",
"url": "git+https://github.com/spookey/slick.git"
},
"author": "<NAME>",
"license": "MIT",
"bugs": {
"url": "https://github.com/spookey/slick/issues"
},
"homepage": "https://github.com/spookey/slick#readme",
"dependencies": {
"purecss": "^2.0.6",
"source-code-pro": "^2.38.0",
"source-sans": "^3.46.0",
"source-serif": "^4.4.0"
},
"devDependencies": {
"@rollup/plugin-typescript": "^8.2.5",
"autoprefixer": "^10.3.6",
"cssnano": "^5.0.8",
"del-cli": "^4.0.1",
"postcss-discard-comments": "^5.0.1",
"postcss-import": "^14.0.2",
"postcss-url": "^10.1.3",
"rollup": "^2.58.0",
"rollup-plugin-copier": "^1.1.0",
"rollup-plugin-postcss": "^4.0.1",
"rollup-plugin-terser": "^7.0.2",
"tslib": "^2.3.1",
"typescript": "^4.4.3"
},
"scripts": {
"preversion": "npm run dist",
"version": "git add -Afv assets static",
"dev": "rollup -c --environment BUILD:dev",
"devdist": "rollup -c --environment BUILD:dist",
"dist": "npm run clean && npm run devdist",
"watch": "npm run dev -- --watch",
"clean": "del 'assets' 'static' '_sites/*/public' '_sites/*/resources'"
}
}
| json |
<filename>src/Creation.js<gh_stars>0
import React from 'react';
import {
Button,
Col,
Panel,
ListGroup,
ListGroupItem,
Modal,
} from 'react-bootstrap';
import Selector from './Selector';
import { trophiesShoots, trophiesStems, trophiesRoots } from './mock';
import html2canvas from 'html2canvas';
import cloudinary from 'cloudinary';
import { cloudinaryConfig } from './secret';
export default class Creation extends React.Component {
constructor(props) {
super(props);
this.state = {
shootSelection: 0,
stemSelection: 0,
rootSelection: 0,
showModal: false,
};
cloudinary.config(cloudinaryConfig);
}
getActiveSelection = (activeIndex, selectionPart) => {
switch (selectionPart) {
case 'shoot':
this.setState({
shootSelection: activeIndex,
});
break;
case 'stem':
this.setState({
stemSelection: activeIndex,
});
break;
case 'root':
this.setState({
rootSelection: activeIndex,
});
break;
default:
}
};
renderPreview() {
return (
<ListGroup>
<h5>Selected product no.</h5>
<ListGroupItem header={`${this.state.shootSelection}`}>
Shoot
</ListGroupItem>
<ListGroupItem header={`${this.state.stemSelection}`}>
Stem
</ListGroupItem>
<ListGroupItem header={`${this.state.rootSelection}`}>
Root
</ListGroupItem>
</ListGroup>
);
}
saveCreatingTrophy = () => {
const uniqueIdPasses =
this.props.uniqueId === '' || this.props.uniqueId === null
? new Date()
: this.props.uniqueId;
html2canvas(this.myDiv).then(canvas => {
const createdImage = canvas.toDataURL('image/png', 1.0);
cloudinary.uploader.upload(createdImage, result => {}, {
public_id: uniqueIdPasses,
});
});
this.setState({
showModal: true,
});
};
render() {
const editorStyles = {
marginTop: '10rem',
};
const smallImage = {
width: '50px',
};
return (
<div style={editorStyles}>
<Col lg={8}>
<Selector
inputSliderData={trophiesShoots}
getActiveSelection={this.getActiveSelection}
name="shoot"
/>
<Selector
inputSliderData={trophiesStems}
getActiveSelection={this.getActiveSelection}
name="stem"
/>
<Selector
inputSliderData={trophiesRoots}
getActiveSelection={this.getActiveSelection}
name="root"
/>
</Col>
<Col lgOffset={1} lg={3}>
<Panel>
<h4>Create your Product</h4>
{this.renderPreview()}
<Panel>
<h5>Preview</h5>
<div ref={c => (this.myDiv = c)}>
<div>
<img
alt="shoot"
style={smallImage}
src={trophiesShoots[this.state.shootSelection]}
/>
</div>
<div>
<img
alt="stem"
style={smallImage}
src={trophiesStems[this.state.stemSelection]}
/>
</div>
<div>
<img
alt="root"
style={smallImage}
src={trophiesRoots[this.state.rootSelection]}
/>
</div>
</div>
</Panel>
<Button block>Cancel</Button>
<Button block bsStyle="success" onClick={this.saveCreatingTrophy}>
Confirm Selection
</Button>
</Panel>
<Modal show={this.state.showModal}>
<Modal.Header closeButton>
<Modal.Title>Customization Successfull</Modal.Title>
</Modal.Header>
<Modal.Body>
You may now add the your customized product to cart
</Modal.Body>
</Modal>
</Col>
</div>
);
}
}
| javascript |
package br.com.softbox.thrust.test;
import org.junit.Test;
public class HelpTest extends AbstractTpmTest {
@Test
public void helpCall() {
tpmHelp();
}
@Test
public void showHelpFromInvalidCommand() {
final String javaLibraryPathProperty = "java.library.path";
final String javaLibraryPathValue = System.getProperty(javaLibraryPathProperty);
System.setProperty(javaLibraryPathProperty, "");
try {
tpmMain("invalid-call");
} finally {
System.setProperty(javaLibraryPathProperty, javaLibraryPathValue);
}
}
@Test
public void showHelpForInit() {
tpmMain("init", "-h");
}
@Test
public void showHelpForInstall() {
tpmMain("install", "--help");
}
@Test
public void showHelpForRun() {
tpmMain("run", "-h");
}
@Test
public void callNoArgs() {
tpmMain();
}
@Test
public void call1stJs() {
tpmMain("a.js");
}
}
| java |
The whole cricketing fraternity was eagerly awaiting the return of Royal Challengers Bangalore batsmanAB de Villiers in the tenth edition of the Indian Premier League and the Protea superstar lived up to all the expectations.
In his very match of the tournament, the explosive batsman gave the fans a glimpse of his unbelievable potentials with the willow. On a two-paced pitch where his batting partners were struggling even to time the ball against the Kings XI Punjab bowlers, de Villiers looked at his devastating best and smashed 89 off just 46 deliveries to help his team recover from a shaky start and post a decent total of 148 for 4.
With wickets falling at the other end, de Villiers did not take his chances early on and looked more than happy to play cautiously. But once the slog overs arrived, the right-handed batsman turned himself into the hard-hitting monster that has made him arguably the most dangerous batsman in the world. He completed his fifty on the last ball of the seventeenth over by hitting a Marcus Stoinis delivery for a maximum. He hit a six in the 18th over also but the real carnage began from the penultimate over. In the 19th over bowled by Sandeep Sharma, de Villiers hit two sixes to take his tally to 7 maximums for the night. But the best of the lot was yet to come. In the final over, Mohit Sharma managed to keep de Villiers and his partner Stuart Bunny under check, conceding only 2 runs including a rare dot delivery to de Villiers. But the South Africa batsman turned on the heat on the final two balls. He sent the fifth ball of the over the long-off fence before hitting the final ball of the night for the biggest six of the night.
Sharma bowled one onto the stumps and de Villiers sat down on his knees to send the ball out of the park and by the time the dust had settled the ball had travelled a mind-boggling 102 metres.
Here is a clip of his stunning knock:
Meanwhile, de Villiers’ heroic knock went in vain as Kings XI Punjab chased down the total inside 15 overs.
| english |
Equity crowdfunding, or raising funds from both unaccredited and accredited investors, can be a great alternative to venture capital for startups. The strategy has become significantly more popular in recent years now that venture capital is harder to come by, and changes in regulations allow companies to raise more money at one time.
But even though crowdfunding is growing in prominence and offers a whole host of benefits to the startups that choose it, many VCs continue to talk negatively about the strategy. Many traditional investors feel equity crowdfunding is only for startups that can’t raise venture money. And they even deem capital raised this way as just cash that lacks the value an investor brings, be it their network that can help with hiring and connections to customers, or their own mentorship and experience.
Still, startups that have been down the crowdfunding road say that VCs are just talking their own book.
Chris Lustrino, the founder and CEO of crowdfunding data platform KingsCrowd, thinks crowdfunding definitely isn’t just for raising capital. KingsCrowd has been able to get repeat investors, customers and even talent from their crowdfunding campaigns, he told TechCrunch+, adding that he’s seen numerous other startups do the same.
| english |
{"organizations": [], "uuid": "ed5bd85a36ced288daae646e5496a8acbb824fdb", "thread": {"social": {"gplus": {"shares": 0}, "pinterest": {"shares": 0}, "vk": {"shares": 0}, "linkedin": {"shares": 0}, "facebook": {"likes": 0, "shares": 0, "comments": 0}, "stumbledupon": {"shares": 0}}, "site_full": "www.tripadvisor.com", "main_image": "https://media-cdn.tripadvisor.com/media/photo-s/03/42/c8/c5/wolcott-hotel.jpg", "site_section": "https://www.tripadvisor.com/Hotel_Review-g60763-d93333-Reviews-or10-Wolcott_Hotel-New_York_City_New_York.html", "section_title": "Wolcott Hotel - UPDATED 2017 Reviews & Price Comparison (New York City) - TripAdvisor", "url": "https://www.tripadvisor.com/ShowUserReviews-g60763-d93333-r464875503-Wolcott_Hotel-New_York_City_New_York.html", "country": "US", "domain_rank": 189, "title": "Great hotel within walking distance to Madison Square Garden", "performance_score": 0, "site": "tripadvisor.com", "participants_count": 2, "title_full": "Great hotel within walking distance to Madison Square Garden - Review of Wolcott Hotel, New York City, NY - TripAdvisor", "spam_score": 0.001, "site_type": "discussions", "published": "2017-03-05T02:00:00.000+02:00", "replies_count": 1, "uuid": "ed5bd85a36ced288daae646e5496a8acbb824fdb"}, "author": "Collable1434", "url": "https://www.tripadvisor.com/ShowUserReviews-g60763-d93333-r464875503-Wolcott_Hotel-New_York_City_New_York.html", "ord_in_thread": 0, "title": "Great hotel within walking distance to Madison Square Garden", "locations": [], "entities": {"persons": [], "locations": [], "organizations": []}, "highlightText": "", "language": "english", "persons": [], "text": "I chose this hotel due to it's proximity to NY Penn Station and Madison Square Garden. My son, his girlfriend and I were attending a concert at MSG. We took the train into the city and were easily able to walk the 1/2 mile to the hotel. Very easy to find. The hotel had a room for the three of us. Hotel was clean, nice, extremely reasonably priced and so easy to get to from major sites in NYC. I would def. go again. The only negative was the bathroom was rather small but overall it didn't matter as it was clean", "external_links": [], "published": "2017-03-05T02:00:00.000+02:00", "crawled": "2017-03-30T20:06:37.095+03:00", "highlightTitle": ""} | json |
<filename>layout/js/fly.js
/*console.log("sds");
var char_num =0;
var num_product =document.getElementById("num_product");
/*Product_1*/
/*
function myFunction() {
document.getElementById("slected_item").style.display = "block";
char_num++;
num_product.innerHTML =char_num;
}
/*Product_2*/
/*
function myFunction2() {
document.getElementById("slected_item2").style.display = "block";
char_num++;
num_product.innerHTML =char_num;
}
/*Product_3*/
/*
function myFunction3() {
document.getElementById("slected_item3").style.display = "block";
char_num++;
num_product.innerHTML =char_num;
}
/*Product_4*/
/*
function myFunction4() {
document.getElementById("slected_item4").style.display = "block";
char_num++;
num_product.innerHTML =char_num;
}
/*Product_5*/
/*
function myFunction5() {
document.getElementById("slected_item5").style.display = "block";
char_num++;
num_product.innerHTML =char_num;
}
/*Product_6*/
/*
function myFunction6() {
document.getElementById("slected_item6").style.display = "block";
char_num++;
num_product.innerHTML =char_num;
}
*/
var num_pro = 0;
$(document).on('click','add-to-cart',function()
{
$(this).preventDefault();
num_pro++;
var countItems = document.getElementsByClassName('shopping-cart')
countItems.innerText = num_pro;
var cart = $('.shopping-cart');
var imgtodrag = $(this).parent.parent('product-top').find('img').eq(0);
var imageSrc = imgtodrag.attr('src');
if (imgtodrag) {
var imgclone = imgtodrag.clone()
.offset({
top: imgtodrag.offset().top,
left: imgtodrag.offset().left
})
.css({
'opacity': '0.5',
'position': 'absolute',
'height': '150px',
'width': '150px',
'z-index': '100'
})
.appendTo($('body'))
.animate({
'top': cart.offset().top + 10,
'left': cart.offset().left + 10,
'width': 75,
'height': 75
}, 1000, 'easeInOutExpo');
setTimeout(function () {
cart.effect("shake", {
times: 2
}, 200);
}, 1500);
imgclone.animate({
'width': 0,
'height': 0
}, function () {
// product.detach()
});
}
/*
var imgSelected = product.parent('.product-top').find("img").eq(1);
setTimeout(function () {
imgSelected.addClass('image_selected_active');
}, 1000);
var price = product.parent('.product-bottom').find("h5").eq(0);
var name = product.parent('.product-bottom').find("h3").eq(0);
myProdact[name.text().trim()] = ({
name: name.text().trim(),
price: price.text().trim(),
count: 1,
src: imageSrc
});
*/
}
function addProductToCartClickHandler(product) {
// $(document).on('click', product, function (event) {
product.addEventListener('click', function (event) {
event.preventDefault();
if ($(this).attr('data-image-role') == 'product-add') {
AddProductToCart($(this));
$(this).attr('data-image-role', 'product-remove');
$(this).attr('class', 'btn btn-danger product-detail');
$(this).text('delete from cart');
getAllSelectorsAndAppendEvent(deleteFromCartBttn, DeleteProductToCartClickHandler);
} else {
var imgSelected = $(this).parent('.product-item').find("img").eq(1);
imgSelected.removeClass('image_selected_active');
$(this).attr('data-image-role', 'product-add');
$(this).attr('class', 'btn btn-primary product-detail');
$(this).text('add to cart');
var n = ($(this).prev('').prev().text().trim());
deleteFromCart($("#btnDel" + n), n);
}
});
}
//$('.add-to-cart').on('click', function () {
// var cart = $('.shopping-cart');
// var imgtodrag = $(this).parent('.product-top').find("img").eq(0);
// if (imgtodrag) {
// var imgclone = imgtodrag.clone()
// .offset({
// top: imgtodrag.offset().top,
// left: imgtodrag.offset().left
// })
// .css({
// 'opacity': '0.5',
// 'position': 'absolute',
// 'height': '150px',
// 'width': '150px',
// 'z-index': '100'
// })
// .appendTo($('body'))
// .animate({
// 'top': cart.offset().top + 10,
// 'left': cart.offset().left + 10,
// 'width': 75,
// 'height': 75
// }, 1000, 'easeInOutExpo');
//
// setTimeout(function () {
// cart.effect("shake", {
// times: 2
// }, 200);
// }, 1500);
//
// imgclone.animate({
// 'width': 0,
// 'height': 0
// }, function () {
// $(this).detach()
// });
// }
});
// property ==> unicodebind : is used for language from ltr and rtl
| javascript |
//--------------------------------------------------------------------------------------
// File: PrimitiveBatch.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//
// http://go.microsoft.com/fwlink/?LinkID=615561
//--------------------------------------------------------------------------------------
#include "pch.h"
#include "PrimitiveBatch.h"
#include "DirectXHelpers.h"
#include "PlatformHelpers.h"
#include "GraphicsMemory.h"
using namespace DirectX;
using namespace DirectX::Internal;
using Microsoft::WRL::ComPtr;
// Internal PrimitiveBatch implementation class.
class PrimitiveBatchBase::Impl
{
public:
Impl(_In_ ID3D12Device* device, size_t maxIndices, size_t maxVertices, size_t vertexSize);
void Begin(_In_ ID3D12GraphicsCommandList* cmdList);
void End();
void Draw(D3D_PRIMITIVE_TOPOLOGY topology, bool isIndexed, _In_opt_count_(indexCount) uint16_t const* indices, size_t indexCount, size_t vertexCount, _Outptr_ void** pMappedVertices);
private:
void FlushBatch();
GraphicsResource mVertexSegment;
GraphicsResource mIndexSegment;
ComPtr<ID3D12Device> mDevice;
ComPtr<ID3D12GraphicsCommandList> mCommandList;
size_t mMaxIndices;
size_t mMaxVertices;
size_t mVertexSize;
size_t mVertexPageSize;
size_t mIndexPageSize;
D3D_PRIMITIVE_TOPOLOGY mCurrentTopology;
bool mInBeginEndPair;
bool mCurrentlyIndexed;
size_t mIndexCount;
size_t mVertexCount;
size_t mBaseIndex;
size_t mBaseVertex;
};
// Constructor.
PrimitiveBatchBase::Impl::Impl(_In_ ID3D12Device* device, size_t maxIndices, size_t maxVertices, size_t vertexSize)
: mDevice(device),
mCommandList(nullptr),
mMaxIndices(maxIndices),
mMaxVertices(maxVertices),
mVertexSize(vertexSize),
mVertexPageSize(maxVertices * vertexSize),
mIndexPageSize(maxIndices * sizeof(uint16_t)),
mCurrentTopology(D3D_PRIMITIVE_TOPOLOGY_UNDEFINED),
mInBeginEndPair(false),
mCurrentlyIndexed(false),
mIndexCount(0),
mVertexCount(0),
mBaseIndex(0),
mBaseVertex(0)
{
if (!maxVertices)
throw std::invalid_argument("maxVertices must be greater than 0");
if (vertexSize > D3D12_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES)
throw std::invalid_argument("Vertex size is too large for DirectX 12");
if ((uint64_t(maxIndices) * sizeof(uint16_t)) > uint64_t(D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM * 1024u * 1024u))
throw std::invalid_argument("IB too large for DirectX 12");
if ((uint64_t(maxVertices) * uint64_t(vertexSize)) > uint64_t(D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM * 1024u * 1024u))
throw std::invalid_argument("VB too large for DirectX 12");
}
// Begins a batch of primitive drawing operations.
void PrimitiveBatchBase::Impl::Begin(_In_ ID3D12GraphicsCommandList* cmdList)
{
if (mInBeginEndPair)
throw std::logic_error("Cannot nest Begin calls");
mCommandList = cmdList;
mInBeginEndPair = true;
}
// Ends a batch of primitive drawing operations.
void PrimitiveBatchBase::Impl::End()
{
if (!mInBeginEndPair)
throw std::logic_error("Begin must be called before End");
FlushBatch();
// Release our smart pointers and end the block
mIndexSegment.Reset();
mVertexSegment.Reset();
mCommandList.Reset();
mInBeginEndPair = false;
}
// Can we combine adjacent primitives using this topology into a single draw call?
static bool CanBatchPrimitives(D3D_PRIMITIVE_TOPOLOGY topology) noexcept
{
switch (topology)
{
case D3D_PRIMITIVE_TOPOLOGY_POINTLIST:
case D3D_PRIMITIVE_TOPOLOGY_LINELIST:
case D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST:
// Lists can easily be merged.
return true;
default:
// Strips cannot.
return false;
}
// We could also merge indexed strips by inserting degenerates,
// but that's not always a perf win, so let's keep things simple.
}
// Adds new geometry to the batch.
_Use_decl_annotations_
void PrimitiveBatchBase::Impl::Draw(D3D_PRIMITIVE_TOPOLOGY topology, bool isIndexed, uint16_t const* indices, size_t indexCount, size_t vertexCount, void** pMappedVertices)
{
if (isIndexed && !indices)
throw std::invalid_argument("Indices cannot be null");
if (indexCount >= mMaxIndices)
throw std::invalid_argument("Too many indices");
if (vertexCount >= mMaxVertices)
throw std::invalid_argument("Too many vertices");
if (!mInBeginEndPair)
throw std::logic_error("Begin must be called before Draw");
assert(pMappedVertices != nullptr);
// Can we merge this primitive in with an existing batch, or must we flush first?
bool wrapIndexBuffer = (mIndexCount + indexCount > mMaxIndices);
bool wrapVertexBuffer = (mVertexCount + vertexCount > mMaxVertices);
if ((topology != mCurrentTopology) ||
(isIndexed != mCurrentlyIndexed) ||
!CanBatchPrimitives(topology) ||
wrapIndexBuffer || wrapVertexBuffer)
{
FlushBatch();
}
// If we are not already in a batch, lock the buffers.
if (mCurrentTopology == D3D_PRIMITIVE_TOPOLOGY_UNDEFINED)
{
mIndexCount = 0;
mVertexCount = 0;
mBaseIndex = 0;
mBaseVertex = 0;
mCurrentTopology = topology;
mCurrentlyIndexed = isIndexed;
// Allocate a page for the primitive data
if (isIndexed)
mIndexSegment = GraphicsMemory::Get(mDevice.Get()).Allocate(mIndexPageSize);
mVertexSegment = GraphicsMemory::Get(mDevice.Get()).Allocate(mVertexPageSize);
}
// Copy over the index data.
if (isIndexed)
{
auto outputIndices = static_cast<uint16_t*>(mIndexSegment.Memory()) + mIndexCount;
for (size_t i = 0; i < indexCount; i++)
{
outputIndices[i] = static_cast<uint16_t>(indices[i] + mVertexCount - mBaseIndex);
}
mIndexCount += indexCount;
}
// Return the output vertex data location.
*pMappedVertices = static_cast<uint8_t*>(mVertexSegment.Memory()) + mVertexSize * mVertexCount;
mVertexCount += vertexCount;
}
// Sends queued primitives to the graphics device.
void PrimitiveBatchBase::Impl::FlushBatch()
{
// Early out if there is nothing to flush.
if (mCurrentTopology == D3D_PRIMITIVE_TOPOLOGY_UNDEFINED)
return;
mCommandList->IASetPrimitiveTopology(mCurrentTopology);
// Set the vertex buffer view
D3D12_VERTEX_BUFFER_VIEW vbv;
vbv.BufferLocation = mVertexSegment.GpuAddress();
vbv.SizeInBytes = static_cast<UINT>(mVertexSize * (mVertexCount - mBaseVertex));
vbv.StrideInBytes = static_cast<UINT>(mVertexSize);
mCommandList->IASetVertexBuffers(0, 1, &vbv);
if (mCurrentlyIndexed)
{
// Set the index buffer view
D3D12_INDEX_BUFFER_VIEW ibv;
ibv.BufferLocation = mIndexSegment.GpuAddress();
ibv.Format = DXGI_FORMAT_R16_UINT;
ibv.SizeInBytes = static_cast<UINT>(mIndexCount - mBaseIndex) * sizeof(uint16_t);
mCommandList->IASetIndexBuffer(&ibv);
// Draw indexed geometry.
mCommandList->DrawIndexedInstanced(static_cast<UINT>(mIndexCount - mBaseIndex), 1, 0, 0, 0);
}
else
{
// Draw non-indexed geometry.
mCommandList->DrawInstanced(static_cast<UINT>(mVertexCount - mBaseVertex), 1, 0, 0);
}
mCurrentTopology = D3D_PRIMITIVE_TOPOLOGY_UNDEFINED;
}
// Public constructor.
PrimitiveBatchBase::PrimitiveBatchBase(_In_ ID3D12Device* device, size_t maxIndices, size_t maxVertices, size_t vertexSize)
: pImpl(std::make_unique<Impl>(device, maxIndices, maxVertices, vertexSize))
{
}
// Move constructor.
PrimitiveBatchBase::PrimitiveBatchBase(PrimitiveBatchBase&& moveFrom) noexcept
: pImpl(std::move(moveFrom.pImpl))
{
}
// Move assignment.
PrimitiveBatchBase& PrimitiveBatchBase::operator= (PrimitiveBatchBase&& moveFrom) noexcept
{
pImpl = std::move(moveFrom.pImpl);
return *this;
}
// Public destructor.
PrimitiveBatchBase::~PrimitiveBatchBase()
{
}
void PrimitiveBatchBase::Begin(_In_ ID3D12GraphicsCommandList* cmdList)
{
pImpl->Begin(cmdList);
}
void PrimitiveBatchBase::End()
{
pImpl->End();
}
_Use_decl_annotations_
void PrimitiveBatchBase::Draw(D3D12_PRIMITIVE_TOPOLOGY topology, bool isIndexed, uint16_t const* indices, size_t indexCount, size_t vertexCount, void** pMappedVertices)
{
pImpl->Draw(topology, isIndexed, indices, indexCount, vertexCount, pMappedVertices);
}
| cpp |
{
"changes": [{
"packageName": "cyclic-dep-explicit-1",
"type": "major",
"comment": "Patching cyclic dep"
}]
}
| json |
{"nom":"Marseille","circ":"3ème circonscription","dpt":"Bouches-du-Rhône","inscrits":73497,"abs":47413,"votants":26084,"blancs":1219,"nuls":398,"exp":24467,"res":[{"nuance":"REM","nom":"<NAME>","voix":12826},{"nuance":"FN","nom":"M. <NAME>","voix":11641}]} | json |
{
"department": "MUSEN",
"description": [
"The Jazz Ensemble program offers the opportunity to play the music of the big bands of the",
"20th and 21st centuries as well as exploring newer forms of the genre. Admission to one of",
"the three jazz ensembles is based on yearly auditions and available openings. The ensemble",
"conductor provides full details of all rehearsal and performance obligations. P/N only. May be",
"repeated."
],
"fullname": "<NAME> (0)",
"number": 132,
"section": "",
"semester": 3,
"shortname": "<NAME>",
"type": "E",
"year": 2016
}
| json |
const bool test=1;
#include<iostream>
#include<cctype>
#include<algorithm>
#include<cstdio>
#include<cstdlib>
#include<vector>
#include<map>
#include<queue>
#include<set>
#include<cctype>
#include<cstring>
#include<utility>
#include<cmath>
const int inf=0x7fffffff;
#define IF if(test)
#define FI if(!test)
#define gts(s) fgets((s),sizeof(s),stdin)
typedef long long int ll;
using namespace std;
typedef pair<int,int> point;
template <typename T>
void pA(T *begin,int n){ for(int i=0;i<n;i++){ cout<<' '<<*(begin+i); } printf("\n"); }
const int N=1e6+10;
int is_prime[N];
int prime[N];
void sol(){
int m,n;
scanf("%d%d",&m,&n);
int cnt=0;
for(int i=2;i<=N;i++){
if(is_prime[i]==0)prime[cnt++]=i;
for(int j=2;(ll)i*j<=N;j++){
is_prime[i*j]=1;
}
}
// cout<<cnt;
// return ;
int i=m-1;
while(i<n){
bool fflag=0;
for(int j=0;j<10;j++){
if(fflag)printf(" ");
fflag=1;
printf("%d", prime[i]);
i++;
if(i<n);
else break;
}
printf("\n");
}
}
int main()
{
sol();
return 0;
}
//bsc_1013.cc
//generated automatically at Fri Nov 4 16:12:48 2016
//by xsthunder
//AC at Fri Nov 4 16:26:29 2016
| cpp |
[Kumari Mamta Banerjee ]
Bengal' of Jibanananda Das has today turned into the dumb Bengal of killings and murders in the hands of the left front Government there. Therefore the voice of justice is today striking its head all over in Bengal but there is nobody to hear it and there is no redress. The protector has turned into the destroyer. The voice of justice is shedding tears silently. Sir, I want to highlight the atrocities being perpetrated in West Bengal. I am reading from an important Bengali daily dated 28th March. The heading of this news item says "Due to the atrocities of the party Pulin Jana had to die after abandoning his hearth and home, the CPM performed his 'peoples' last rites," His only crime was that he was a Congress worker. After his death his sons were not even allowed to perform his 'Shradh' or last rites. The CPM workers looted his House, he had to struggle with death for five years, no medicines even were available to him. He had to die without medical treatment. I am not lying, you sce here in this paper full articles have been published. When this unfortunate person, being harassed day and night and after his land, house ctc. was snatched away by CPM offered to sit with the CPM so as to come to some understanding, he was told by the CPM party office, look here Sir, a photostat copy of the letter written on the CPM party's letter pad has been published here; he was told by the CPM party office that 'Pulin Jana we can sit with you to discuss these affairs but there is one condition which is, you will have to provide the following items for our refreshment and amusement :
Chops- 60
lemons 8 Meat, rice etc.
Demands for Grants (General), 1983-86
This shows that everything is being snatched away even from a dying person. He fell at the feet of the CPM party workers begging for adjustment and understanding but the party workers are demanding all sorts of luxurius eatables from him as a precondition, taking advantage of his helplessness. This is the condition in West Bengal under the left front regime.
I am now referring to a case in my own constituency, viz, Mandibajır. This news item was published in the 'Jugantar' paper' an important daily of West Bengal, on 29th March. One poor woman voted for me, voted for the Congress. Due to that crime of her, the day after the voting took place, eight CPM workers attacked and raped her. The police refused to even diarise the case, what to say of punishing the miscrepants. When I came to know of it, and took up the issue, the case was diarised on 23rd January. The incident took place on the 26th December, but the complaint was registered only on the 23rd January that too, after I got the information and took up the issue. This is the condition of law and order in West Bengal.
Sir, this is not my statement alone, Smt. Geeta Mukherjee of the CPI is present here on 28th March last this following news item was published in the 'Ananda Bazar Patrika', the most important and most popular paper of West Bengal. The caption says "The dead boy of a housewife found in the pond." The deadbody of a young housewife of Bowbazar area was found in the pond of Nilraran Sircar hospital on Tuesday, 48 hours after she was reported missing. Her name was Sutapa Nag and she was aged 18 years. Inspite of the case being already diarised with the police, a post-mortem was conducted On her without informing her parents. As soon as she was reported missing, Sutapa's parents had registered the case with the police. The police knew everything. In spite of that the postmortem was conducted without inform329
Demands for Grants CHAITRA 11, 1907 (SAKA) Demands for Grants 330 (General), 1985-86 (General), 1985-86
ing her parents. The statement of the CPI against this incident and against th: police administration has been highlighted here. This is the law and order situation.
Now Sir, I shall refer to another item mentioned in the editorial of the paper 'Aaj Kaai' dated 12th March. On the 11th March last, an employee of this paper was observing the first death anniversary of his only son, Rahul. After one year of fruitless effort to find out the cause of the death of Rahul or who were behind it, the unfortunate and hapless mother of the deceased appealed to the Chief Minister Shri Joyati Basu through the press. The paper says, "11th March is the first death anniversary of Rahul. Rahul's mother appealed to the Chief Minister, Jyoti Basu through the paper to join in the special prayer meeting to be held on this day. She has written
on 11th March when I will hold special Prayers for the eternal peace of Rahul's soul, at that time hon. Chief Minister you can also join in my stream of tears. Apart from this pitiable appeal what else can a mother who has lost her son? She only wanted to know the cause of the unnatural death of her brilliant management trainee only son. She wanted to know the identity of those who killed her son in the heart of the capital. She wanted justice for the murder of her son. This is the condition in West Bengal. Some time back there was police firing centred on the regional college at Durgapur.
SHRIMATI GEETA MUKHERJEE (Panskura): Sir, I am on a point of order. Can we discuss the law and order situation of each and every State here ?
SHRI BASUDEB ACHARIA; Sir, are you allowing this?
SHRIMATI GEETA MUKHERJEE : Can we discuss the law and order situation of Bihar, Orissa, Maharashtra and other States? If it is so, you also allow us to discuss the law and order situation in all the States.
SHRI BASUDEB ACHARIA : We are discussing the Demands of the Ministry of Home Affairs. Why are you allowing this ?
MR. DEPUTY SPEAKER : Please sit down.
MR. DEPUTY SPEAKER: What is your point of order? I could not hear.
SHRIMATI GEETA MUKHAERJEE: My point of order is whether we are allowed to discuss the law and order situation, other than Scheduled Castes and Scheduled Tribes, of all the States here. If it is so, we have no objection, let her discuss, we can also discuss the internal law and order situation of Bihar, Orissa, Rajasthan, Madhya Pradesh, Maharashtra and all other States. But is it allowed ? (Interruptions). We are fully prepared, we have no objection if you also allow us to discuss.
SHRI BASUDEB ACHARIA : We want your Ruling, Sir.
SHRI RAM PYARE PANIKA : She is speaking about the law and order situation prevailing in her State.
SHRI SAIFUDDIN CHOWDHURY : Of course, we need not give any importance to what she said, but we have to bserve the decorum and dignity of
[Shri Saifuddin Chowdhury]
the House. The hon. Home Minister as also the Parliamentary Affairs Minister is here. You should look into this. We don't mind her way of speaking sometimes we require entertainment. But the point is whether it is according to the rules or not. If we say something about Maharashtra during this debate, will that be permitted ?
MR. DEPUTY SPEAKER: If it is purely an internal matter, we cannot allow.
SHRI AJIT KUMAR SAHA: Can we discuss here the law and order of a State ?
SHRI ZAINUL BASHER: The law and order situation is always discussed in the House.
SHRI SAIFUDDIN CHOWDHURY : You arc in the panel of Chairmen. Don't you know the rules? We go by certain rules.
SHRIMATI GEETA MUKHERJEE : Should we discuss the internal law and order situation of Maharashtra also ? We have no objection her speaking whatever she likes to speak. But there should be some uniform rules.
SHRIMATI GEETA MUKHERJE E : Not only West Bengal but all the States should be discussed. We want
to listen to you.
SHRI MOOL CHAND DAGA : Under what rule finished raising the point pf order ? I know, it is rule 376.
But a point of order or not ?
MR. DFPUTY SPEAKER: If it is purely an internal matter of any State, it is better to avoid.
SHRI K. RAMAMURTHY: I am on a point of clarification.
MR. DEPUTY SPEAKER : I have only said that it must be avoided. That is what I have said.
SHRI ZAINUL BASHËR : The law and order situation of the country is always discussed under the Home Ministry's Demands for Grants.
MR. DEPUTY SPEAKER : You please sit down. All of you sit down. I have given my ruling. It is purely an internal matter of any State-law and order От anything I request the Members to avoid making a reference.
KUMARI MAMATA BANERJEE : They are always trying to disturb me. How can I continue ?
MR. DEPUTY SPEAKER : You follow the ruling which I have given. If it is purely an internal matter of any State, don't try to make a reference to it. Please conclude. You have already taken 15 minutes.
SHRI K. RAMAMURTHY : The law and order situation always used to be discussed in this House. Kindly listen to me.
MR. DEPUTY SPEAKER : No. If it is about the general law and order situation, you can discuss.
SHRI K. RAMAMURTHY : Have we not discussed here about Punjab or Assam ?
Ďımı ils for Grants CHAITRA 11, 1907 (SAKA) Demands for Grants (General) 19 5-86 (Ge..eral), 1985-86
SHRI ZAINUL BASHER: The law and order situation of the entire country is always discussed.
MR. DEPUTY SPEAKER: I am not allowing. Please sit down. Please wind up
*KUMARY MAMATA BANERJEE : Sir, I want to say that more assistance should be given to West Bengal, something more has got to be done for the people there. About the I.R.D.P. and NREP programmes in West Bengal. I want to say, I know whenever I speak the truth the CPM m abers will raise a hue and cry d oppose me, but I will again say that opposition must oppose but it should be constructive. I say that the rural people of West Bengal are not getting any benefit from the funds being provided by the Centre for the NREP and IRDP programmes.
There arc many roads in West Bengal where the people cannot even walk. These poor people of rural Bengal are living in very neglected conditions. The State Government should be given more powers. The Chief Minister of West Bengal Jyoti Bosu goes on repeating that the Centre is not giving any assistance and they are responsible for all the ills of Bengal. He blames the Centre for everything. He says that the Centre has adopted a step-motherly attitude towards Bengal, This way he is misleading the people. But we know that the Centre is giving bountiful assistance to Bengal for the betterment of the people there, for the development of the State. But those funds are being misused for political purposes and going in the party coffers of CPM. They are being used for party work and party offices of the CPM. The people of West Bengal do not consist of the CPM alone. Once the definition of democracy was, "Govern334
ment of the people, for the people and by the people. But Sir, in West Bengal the definition of democracy today is, "Government of the Marxists, by the Marxists and for the Marxists."
With that Sir, I thank you and conclud: my speech.
SHRI SHIV PRASAD SAHU (Ranchi) : Mr. Deputy Speaker, Sir, I thank you for giving me an opportunity to speak. I wholeheartedly support the demands presented by the Ministry of Home Affairs.
It is the duty of the Home Ministry to protect the life and property of the people belonging to the weaker sections, the people living in backward areas, the harijans, the Adivasis and other communities and to make them prosper. It is also its du'y to curb the activities of the people indulging in violence and to maintain law and order.
I would like to place before you a few serious problems of district Ranchi in Chhota Nagpur, the area which I represent here, which is the most backward area in Bihar. Sir, you know that there cannot be two opinions about the fact that the Chhotta Nagpur area of Bihar is the heart of India. I would like to bring it to your notice that the Chhota Nagpur area is, in a way, unique in the entire world. It has the biggest coal reserves in Asia. Uranium, iron, copper, gold, mica and Bauxite reserves are also found there. There are so many reserves of minerals in the hills of Chhota Nagpur. Raw material for paper, like bomboo, etc., and fine clay china clay are also available there? Then why is it that the standard of living of the people is not rising there ? I would like to give some figures to the Home Ministry. This is a seriouse problem. In Chhota Nagpur and Santhal Parganar the population of the Santhals is 1801304, the Uraon caste is 876211, the Munda caste is 753111, the Ho caste is 505172 and that of Kharia caste is
*The speech was originally Delivered in Bengali.
| english |
package helmapi
import (
"encoding/json"
"time"
"github.com/softplan/tenkai-helm-api/pkg/service/_helm/istio"
)
//GetVirtualServices Get virtual services dns names
func (svc HelmServiceImpl) GetVirtualServices(kubeconfig string, namespace string) ([]string, error) {
hostNames := make([]string, 0)
restConfig, _, err := svc.GetHelmConnection().GetKubeClient("", kubeconfig)
if err != nil {
return nil, err
}
ix, err := istio.NewForConfig(restConfig)
if err != nil {
return nil, err
}
c := ix.RESTClient()
var timeout time.Duration
bytes, _ := c.Get().
Namespace(namespace).
Resource("virtualservices").
Timeout(timeout).
Do().Raw()
var objmap map[string]interface{}
json.Unmarshal(bytes, &objmap)
items := objmap["items"].([]interface{})
for _, e := range items {
switch e.(type) {
case map[string]interface{}:
k := e.(map[string]interface{})
if k["spec"] != "" {
hostName := ""
specMap := k["spec"].(map[string]interface{})
if specMap["hosts"] != "" {
hosts := specMap["hosts"].([]interface{})
for _, h := range hosts {
hostName = h.(string)
}
}
if specMap["http"] != "" {
http := specMap["http"].([]interface{})
for _, k := range http {
httpMap := k.(map[string]interface{})
uri := httpMap["match"]
if uri != nil {
matchArray := uri.([]interface{})
for _, matchElement := range matchArray {
prefixName := ""
uriValue := matchElement.(map[string]interface{})["uri"]
if uriValue != nil {
prefix := uriValue.(map[string]interface{})["prefix"]
if prefix != nil {
prefixName = prefix.(string)
}
}
hostName = hostName + prefixName
}
}
}
}
hostNames = append(hostNames, hostName)
}
}
}
return hostNames, nil
}
| go |
<gh_stars>0
var curl = require('curl');
var botb_api_root = 'http://battleofthebits.org/api/v1/';
module.exports = {
request: function(request_url) {
return new Promise(function(resolve, reject) {
curl.get(botb_api_root + request_url, {
headers: {
'User-Agent': 'curl'
}
},
function(err, response, body) {
var stat = response.statusCode;
if (stat == '400' || stat == '500') {
reject(response);
return;
}
resolve(JSON.parse(body));
}
);
});
},
post: function(post_url) {
// XXX BotB API does not yet accept POSTs
},
}; | javascript |
Begin typing your search above and press return to search.
Gandhinagar: Bharatiya Janata Party (BJP) national President Amit Shah surpassed the victory margin of senior party leader L. K. Advani as counting entered 22nd round, even as his party was all set to bag all the 26 seats in Gujarat, repeating its 2014 performance. With every vote count almost going into his kitty, Amit Shah had posted a huge margin of more than 5. 10 lakh votes over Congress’ C. J. Chavda. With this, Shah has left BJP patriarch Advani’s 2014 lead of 4. 83 lakh votes from the Gandhinagar constituency far behind. Three more rounds of counting remained. (IANS) | english |
/**
* Connectix Boards 1.0, free interactive php bulletin boards.
* Copyright (C) 2005-2010 <NAME>.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You can find a copy of the GNU General Public License at
* <http://www.connectix-boards.org/license.txt>.
*/
var cb_stylecookiename = "cb_style";
var cb_hiddenfidscookiename = "cb_hidfids";
var Mozilla = (navigator.userAgent.toLowerCase().indexOf('gecko')!=-1) ? true : false;
/* LECTURE ET ECRITURE DE COOKIES */
function createCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
} else expires = "";
document.cookie = name+"="+value+expires+"; path=/";
}
function readCookie(name,tag) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0)
return c.substring(nameEQ.length,c.length);
}
return null;
}
/* AJOUT DE FONCTIONS DE SUPPRESSION ET DE VERIFICATION D'APPARTENANCE A LA CLASSE ARRAY */
Array.prototype.remove = function(s){
for (i=0;i<this.length;i++){
if(s==this[i]) this.splice(i, 1);
}
}
Array.prototype.inArray = function(s){
for (i=0;i<this.length;i++){
if (s==this[i]) return true;
}
return false;
}
/* POUR RECUPERER TOUS LES ELEMENTS D'UNE MEME CLASSE CSS */
document.getElementsByClassName = function(cl) {
var retnode = [];
var elem = this.getElementsByTagName('*');
for (var i = 0; i < elem.length; i++) {
if (elem[i].className == cl) retnode.push(elem[i]);
}
return retnode;
};
document.getElementsByClassFormat = function(cl) {
var retnode = [];
var elem = this.getElementsByTagName('*');
var match = new RegExp(cl,'g');
for (var i = 0; i < elem.length; i++) {
if (match.test(elem[i].className)) retnode.push(elem[i]);
}
return retnode;
};
/* POUR INSERER UN NOEUD APRES UN AUTRE NOEUD */
function insertAfter (node, refNode) {
if (refNode.parentNode.lastChild == refNode)
refNode.parentNode.appendChild(node);
else
refNode.parentNode.insertBefore(node,refNode.nextSibling);
}
/* FONCTION POUR MONTRER OU CACHER DES ELEMENTS (par id) */
function hideAndShow(field) {
var elem = document.getElementById(field);
elem.style.display = (elem.style.display == 'none') ? '' : 'none';
}
/* FONCTION POUR MONTRER OU CACHER DES ELEMENTS (par class) */
function hideAndShowC(field) {
var class_elems = document.getElementsByClassName(field);
for (var i=0; i<class_elems.length; i++)
class_elems[i].style.display = (class_elems[i].style.display == 'none') ? '' : 'none';
}
/* FONCTIONS POUR AFFICHER OU CACHER DES FORUMS (avec mémoire par cookies) */
var hiddenfids = (hiddencookie = readCookie(cb_hiddenfidscookiename)) ? hiddencookie.split(',') : new Array();
function hideAndShowF(fid) {
hideAndShow('forum'+fid+'_tb');
hideAndShow('forum'+fid+'_th');
hideAndShow('forum'+fid+'_tf');
var state = document.getElementById('forum'+fid+'_tb').style.display;
if (state == 'none') hiddenfids.push(fid);
else hiddenfids.remove(fid);
}
function checkF (fid) {
if (hiddenfids.inArray(fid)) {
hideAndShow('forum'+fid+'_tb');
hideAndShow('forum'+fid+'_th');
hideAndShow('forum'+fid+'_tf');
}
}
/* FONCTION DE CONFIRMATION AUTOMATIQUE DE FORMULAIRE */
function fast_list (select_goal) {
if (select_goal == 'showtopicgroup') {
box = document.getElementById('showtopicgroup');
location.href = document.getElementById('quick_redirect_form').action+'?showtopicgroup='+box.options[box.selectedIndex].value;
} else if (select_goal == 'mod_disp') {
document.getElementById('tg_displace').click();
} else if (select_goal == 'skin') {
document.getElementById('skin_select_submit').click();
}
}
/* FONCTION QUI SELECTIONNE TOUT LE CONTENU D'UN CHAMP */
function selectAll (field) {
field.focus();
if (Mozilla) {
field.setSelectionRange(0,field.value.length);
} else if (document.selection) {
var range = document.selection.createRange();
range.moveStart('character',-range.offsetLeft);
range.moveEnd('character',field.value.length);
range.select();
}
field.focus();
}
/* FONCTION ADMIN POUR LA SELECTION DES DROITS DES GROUPES */
function authfunc ( type , tgid ) {
if (document.getElementById(type+'_'+tgid).checked) {
if (type == 'see' || type=='reply') document.getElementById('create_'+tgid).checked = true;
if (type == 'see') document.getElementById('reply_'+tgid).checked = true;
} else {
if (type == 'create' || type=='reply') document.getElementById('see_'+tgid).checked = false;
if (type == 'create') document.getElementById('reply_'+tgid).checked = false;
}
}
/* FONCTIONS ADMIN POUR LA GESTION DES DROITS DE MODERATION */
function groupCl (grid,tgid) {
var newstate = (document.getElementById("gr" + tgid + "-" + grid).checked) ? true : false;
var checkbox = document.getElementsByClassName("u" + tgid + "-" + grid);
for (var i=0; i<checkbox.length; i++) checkbox[i].checked = newstate;
setColors(grid,tgid,newstate);
}
function userCl (uid,grid,tgid) {
if (!document.getElementById("u" + tgid + "-" + grid + "-" + uid).checked) {
document.getElementById("gr" + tgid + "-" + grid).checked = false;
setColors(grid,tgid,false);
}
}
function setColors (grid,tgid,checked) {
document.getElementById("cr" + tgid + "-" + grid).className = (checked)?'modgroupch':'modgroup';
var checkbox = document.getElementsByClassName("u" + tgid + "-" + grid);
for (var i=0; i<checkbox.length; i++) {
document.getElementById(checkbox[i].id.replace('u','c')).className = (checked)?'modusergr':'';
}
}
/* INVERSE LA SELECTION POUR UN TABLEAU DE CHECKBOX */
function invertselection (field) {
var checkbox = document.getElementsByName(field);
for (var i=0; i<checkbox.length;i++) {
if (checkbox[i].type == 'checkbox') {
checkbox[i].checked = (checkbox[i].checked) ? false : true;
}
}
}
/* MESSAGE D'AVERTISSEMENT PERSONNALISE */
var alertOpened = false;
function cbAlert (fmessage,finput) {
if (alertOpened) removeAlert();
var cbalert = document.createElement('div');
cbalert.id = 'cbalert';
cbalert.innerHTML =
'<form onsubmit="return false;">'+
'<p id="alert_message">'+fmessage+'</p>'+
(finput?'<p id="alert_input"><input type="text" id="alert_field" name="alert_field" value="'+finput+'" onkeyup="if(event.keyCode==13) removeAlert();" /></p>':'')+
'<p id="alert_submit">'+
'<input type="button" name="prompt_ok" id="prompt_ok" value="'+lang['ok']+'" onclick="removeAlert();" onkeyup="if(event.keyCode==13) removeAlert();" />'+
'</p>'+
'</form>';
document.getElementsByTagName('body')[0].appendChild(cbalert);
cbalert.focus();
document.getElementById('prompt_ok').focus();
if (finput)
selectAll(document.getElementById('alert_field'));
alertOpened = true;
}
function removeAlert() {
var cbalert = document.getElementById('cbalert');
cbalert.style.display = "none";
cbalert.innerHTML = "";
cbalert.id = null;
cbalert = null;
alertOpened = false;
}
/* GESTION DU STYLESWITCHER */
function setActiveStyleSheet(title) {
var i, a, main;
for (i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if (a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title"))
a.disabled = (a.getAttribute("title") == title) ? false : true;
}
}
function getActiveStyleSheet() {
var i, a;
for (i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if (a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled)
return a.getAttribute("title");
}
return null;
}
function getPreferredStyleSheet() {
var i, a;
for (i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if (a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("rel").indexOf("alt") == -1 && a.getAttribute("title"))
return a.getAttribute("title");
}
return null;
}
/* FONCTIONS POUR LE FORMULAIRE DE CONNEXION RAPIDE */
var fc_username_clicked = false;
var fc_password_clicked = false;
function fc_username () {
if (!fc_username_clicked) {
document.getElementById("fcf_login").value = "";
fc_username_clicked = true;
}
}
function fc_password () {
if (!fc_password_clicked) {
document.getElementById("fcf_password").value = "";
fc_password_clicked = true;
}
}
/* CHOSES A FAIRE AU CHARGEMENT DE LA PAGE */
window.onload = function (e) {
var stylecookie = readCookie(cb_stylecookiename);
var size = document.getElementsByTagName("link").length;
var title = getPreferredStyleSheet();
for (j=0; j<size ; j++) {
if (document.getElementsByTagName("link")[j].getAttribute("title") == stylecookie)
title = stylecookie;
}
initAnchors();
if (Mozilla) setActiveStyleSheet(title);
}
/* CHOSES A FAIRE AU DECHARGEMENT DE LA PAGE */
window.onunload = function (e) {
createCookie(cb_stylecookiename, getActiveStyleSheet(), 365);
createCookie(cb_hiddenfidscookiename, hiddenfids.join(','), 365);
}
/* FONCTIONS D'ENCODAGE */
function utf8_encode ( argString ) {
// Encodes an ISO-8859-1 string to UTF-8
//
// version: 909.322
// discuss at: http://phpjs.org/functions/utf8_encode
// + original by: Webtoolkit.info (http://www.webtoolkit.info/)
// + improved by: <NAME> (http://kevin.vanzonneveld.net)
// + improved by: sowberry
// + tweaked by: Jack
// + bugfixed by: <NAME>
// + improved by: <NAME>
// + bugfixed by: <NAME>
// + bugfixed by: Ulrich
// * example 1: utf8_encode('<NAME>');
// * returns 1: '<NAME>'
var string = (argString+''); // .replace(/\r\n/g, "\n").replace(/\r/g, "\n");
var utftext = "";
var start, end;
var stringl = 0;
start = end = 0;
stringl = string.length;
for (var n = 0; n < stringl; n++) {
var c1 = string.charCodeAt(n);
var enc = null;
if (c1 < 128) {
end++;
} else if (c1 > 127 && c1 < 2048) {
enc = String.fromCharCode((c1 >> 6) | 192) + String.fromCharCode((c1 & 63) | 128);
} else {
enc = String.fromCharCode((c1 >> 12) | 224) + String.fromCharCode(((c1 >> 6) & 63) | 128) + String.fromCharCode((c1 & 63) | 128);
}
if (enc !== null) {
if (end > start) {
utftext += string.substring(start, end);
}
utftext += enc;
start = end = n+1;
}
}
if (end > start) {
utftext += string.substring(start, string.length);
}
return utftext;
}
| javascript |
<gh_stars>0
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
import { ClipboardService } from 'ngx-clipboard';
import { ToastrService } from 'ngx-toastr';
@Component({
selector: 'app-sidenav',
templateUrl: './sidenav.component.html',
styleUrls: ['./sidenav.component.scss'],
encapsulation: ViewEncapsulation.None
})
export class SidenavComponent implements OnInit {
// (fullScreen, remove, toggle)
htmlCode: string;
tsCode: string;
cssCode: string;
showFiller = false;
constructor(
private _clipboardService: ClipboardService,
private toastr: ToastrService
) {}
ngOnInit() {
this.htmlCode = `
<mat-drawer-container class="example-container" autosize>
<mat-drawer #drawer class="example-sidenav" mode="side">
<p>Auto-resizing sidenav</p>
<p *ngIf="showFiller">Lorem, ipsum dolor sit amet consectetur.</p>
<button (click)="showFiller = !showFiller" mat-raised-button>
Toggle extra text
</button>
</mat-drawer>
<div class="example-sidenav-content">
<button type="button" mat-button (click)="drawer.toggle()">
Toggle sidenav
</button>
</div>
</mat-drawer-container>
`;
this.tsCode = `
import {Component} from '@angular/core';
/**
* @title Autosize sidenav
*/
@Component({
selector: 'sidenav-autosize-example',
templateUrl: 'sidenav-autosize-example.html',
styleUrls: ['sidenav-autosize-example.css'],
})
export class SidenavAutosizeExample {
showFiller = false;
}
`;
this.cssCode = `
.example-container {
width: 500px;
height: 300px;
border: 1px solid rgba(0, 0, 0, 0.5);
}
.example-sidenav-content {
display: flex;
height: 100%;
align-items: center;
justify-content: center;
}
.example-sidenav {
padding: 20px;
}
`;
}
copy(type: string) {
let code: string;
if (type === 'html') {
code = this.htmlCode;
} else if (type === 'ts') {
code = this.tsCode;
} else if (type === 'css') {
code = this.cssCode;
}
this._clipboardService.copyFromContent(code);
this.toastr.success('Code copied!');
}
}
| typescript |
Having trouble sleeping at night? Your neighbourhood street lights may be to blame!
Light pollution from street lamps may be interfering with the sleep patterns and health of millions of people who live in urban areas, according to new research.
"Our world has become a 24/7 society. We use outdoor lighting, such a street lights, to be more active at night and to increase our safety and security," said study author Maurice Ohayon, from Stanford University in California.
"The concern is that we have reduced our exposure to darkness and it could be affecting our sleep," said Ohayon. For the study, 15,863 people were interviewed by phone over an eight-year period. They were asked about sleep habits, quality of sleep as well as medical and psychiatric disorders.
The researchers looked at how much outdoor light those people were exposed to at night.
People living in urban areas of 500,000 people or more were exposed to nighttime lights that were three to six times more intense than people living in small towns and rural areas.
light areas were six per cent more likely to sleep less than six hours per night than those in less intense light areas.
People living in more intense light areas were more likely to be dissatisfied with their sleep quantity or quality than those in less intense light areas, with 29 per cent dissatisfied compared to 16 per cent.
Those with high light exposure were also more likely to report fatigue than those with low light exposure, with 9 per cent compared to 7 per cent.
People with high light exposure also slept less per night than those with low light exposure, with an average of 412 minutes per night compared to 402 minutes per night.
In addition, people with high light exposure were more likely to wake up confused during the night than people with low light exposure, with 19 per cent experiencing this compared to 13 per cent.
They were also more likely to have excessive sleepiness and impaired functioning, at 6 per cent compared to 2 per cent.
"Light pollution can be found in any sizable city in the world. Yet, excessive exposure to light at night may affect how we function during the day and increase the risks of excessive sleepiness," said Ohayon. | english |
<gh_stars>0
"""
Django settings for mywebsite project.
Generated by 'django-admin startproject' using Django 2.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
from .conf.dev import *
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = ''
# Database
# https://docs.djangoproject.com/en/2.1/ref/settings/#databases
DATABASES = {
'default': {
ENGINE: '',
NAME: '',
}
}
| python |
<reponame>pixelastic/terrainbuilding-data
{
"author": {
"id": "t2_arlj5ieu",
"name": "WeltenbauerClub"
},
"date": {
"day": 1615593600,
"full": 1615650602,
"month": 1614556800,
"week": 1615075200
},
"id": "t3_m48w3s",
"picture": {
"filesize": 114292,
"fullUrl": "https://preview.redd.it/jj4m0u08htm61.jpg?auto=webp&s=13bb5b37c88f55a0e03099f201f1dc7a1212e0eb",
"hash": "336fba7556",
"height": 640,
"lqip": "data:image/jpg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAAQABADASIAAhEBAxEB/8QAFgABAQEAAAAAAAAAAAAAAAAABgQF/8QAJBAAAgEDBAEFAQAAAAAAAAAAAQIDBBEhAAUGEhQTIzJRkUH/xAAVAQEBAAAAAAAAAAAAAAAAAAAEBf/EABwRAAICAgMAAAAAAAAAAAAAAAECAAMEERIhUf/aAAwDAQACEQMRAD8AIb7yJd18STa6h1qSwdkQsxiUC9iFF83yRqzY9rFdN5exCeOWNH9T2yezkW6l2tYFrYsLC+b6xE4hFS8Yi3hTI6hunZB83+iB9E/n7pVDydeMUrvNEr1gpUkihL9Sz2GGxkX/AJcnGpGStipqlOXuzFAAdsZ//9k=",
"url": "https://preview.redd.it/jj4m0u08htm61.jpg?width=640&crop=smart&auto=webp&s=f14d280c7b669351785b39602ff31f195997fb52",
"width": 640
},
"score": {
"comments": 2,
"downs": 0,
"ratio": 1,
"ups": 48,
"value": 48
},
"subreddit": {
"id": "t5_2xy5e",
"name": "TerrainBuilding"
},
"tags": [],
"title": "Green roof - playing with vegetation on a small table top terrain huts roof aka toilet 😅",
"url": "https://www.reddit.com/r/TerrainBuilding/comments/m48w3s/green_roof_playing_with_vegetation_on_a_small/"
}
| json |
<reponame>rootadminWalker/Face-app
import dlib
import cv2
import pandas as pd
import numpy as np
import os
path = "./Users"
_shape_dat = "shape_predictor_68_face_landmarks.dat"
_face_dat = "dlib_face_recognition_resnet_model_v1.dat"
_detector = dlib.get_frontal_face_detector()
_predictor = dlib.shape_predictor(_shape_dat)
_recognizer = dlib.face_recognition_model_v1(_face_dat)
data = []
faces = []
face_name = []
for _, _, filenames in os.walk(path):
for file in filenames:
if file.endswith(".xlsx"):
data = pd.read_excel("Users/" + file)
desc = np.array(data.iloc[:, 1].values.tolist()).reshape(1, -1)[0]
faces.append(desc)
face_name.append(file)
print(faces)
cap = cv2.VideoCapture(0)
success = False
frame = None
shape = None
description = None
if cap.isOpened():
success, frame = cap.read()
while success:
dets, scores, orientations = _detector.run(frame, False)
for i, d in enumerate(dets):
x1 = d.left()
y1 = d.top()
x2 = d.right()
y2 = d.bottom()
cv2.rectangle(frame, (x1, y1), (x2, y2), (0, 255, 0), 2)
shape = _predictor(frame, d)
description = np.array(_recognizer.compute_face_descriptor(frame, shape))
for x in range(68):
cv2.circle(frame, (shape.part(x).x, shape.part(x).y), 3, (0, 0, 255), 1)
"""
writer = pd.ExcelWriter("description.xlsx", engine='xlsxwriter')
data = pd.DataFrame(description)
data.to_excel(writer, '128D', float_format='%.9f')
writer.save()
"""
if description is not None:
for i, x in enumerate(faces):
dist = np.sqrt(np.sum(np.square(description - x)))
if dist < 0.4:
print(face_name[i][0:-5])
else:
print("Nobody is here")
cv2.imshow("frame", frame)
if cv2.waitKey(1) == ord('q'):
break
success, frame = cap.read()
cap.release()
cv2.destroyAllWindows()
print("OK")
| python |
<gh_stars>1-10
{
"id": 24417,
"title": [
"[Ranger Guild, Pavilion]"
],
"description": [
"Open on all sides to the mild breeze, this tent is large enough to shelter many. Zephyrs tease the tassels of numerous cushions scattered on the intricately woven rugs which cover smoothly packed earth. A lectern carved from a tree stump stands at one end of the pavilion, its surface polished to a mellow sheen and engraved with twining vines. A path leads west to a garden."
],
"paths": [
"Obvious exits: north, south"
],
"location": "River's Rest",
"wayto": {
"24418": "go path",
"24416": "south",
"24421": "north"
},
"timeto": {
"24418": 0.2,
"24416": 0.2,
"24421": 0.2
}
} | json |
Punjab Chief Minister Amarinder Singh on Friday made it clear that there was no question of withdrawing free power to farmers in the state and it will continue as long as he is leading the government.
Singh said although the report of Montek Singh Ahluwalia-led experts group was only a preliminary one, his government would not consider any recommendation on withdrawal of free power by any expert.
"As long as I am here, free power to tubewells will continue," he said.
Ahluwalia himself clarified during a video conference interaction with Singh that the report of the expert group was not anti-farmer. The media reports suggesting so were misleading, he said, adding what the group had suggested was diversification as the only hope for Punjab agriculture.
Ahluwalia said since the state government had categorically announced that it had no plans to change its free power for farmers policy, the expert group had recommended that farmers must be incentivised to diversify out of rice, since the water intensive crop was economically profitable for farmers even though the ecological damage was massive.
Diversification implies a reduction in area under rice and modernisation of marketing, which in turn implies a much larger role for the private sector, said Ahluwalia.
The expert group was set up by Singh to formulate a strategy for post-Covid economic revival of Punjab.
Singh said diversification had already been started in Punjab during his first term as Chief Minister. He pointed out that the state had significantly increased cotton this year by reducing paddy, but the problem of price support remains a big obstacle to diversification. (This story has not been edited by News18 staff and is published from a syndicated news agency feed - IANS) | english |
Guwahati: Although the first two waves of flood in Assam were much discussed and debated, even on national media platforms, the third wave has been largely ignored. However, that does not mean that the third wave of floods has not been destructive. As per the latest flood report of State Disaster Management Authority, around 2. 25 lakhs people have been affected in the third wave of flood in Assam in as many as 219 villages across 9 districts.
A total of 219 villages in 13 revenue circles across 9 districts have been affected by floods in this fresh wave, resulting in much grief and inconvenience to the local public. Due to the floods, at least 10,000 hectares of cropland have been submerged under floodwater.
Dhemaji, Lakhimpur, Nagaon, Morigaon, Majuli, West Karbi Anglong, Sivasagar, Dibrugarh, and Tinsukia are the districts that have been affected in the fresh wave, and 43 relief camps have been set up for the flood-affected people in the districts. Nagaon, Dhemaji, Dibrugarh, and Morigaon have emerged as the worst-affected districts.
The impact of the floods has also been felt by the domesticated animals, as 40,000 livestock are suffering due to the floods, as per the ASDMA report.
The river Brahmaputra, which caused massive losses to lives and property in the first two waves, is again flowing above the danger level at Nimatighat in Jorhat and Sonitpur district. Two tributaries -- Jia Bharali and Kopili -- crossed the danger mark in northeastern Assam's Sonitpur and Nagaon districts respectively.
2020 has been a rather sad year for Assam, as far as losses from floods are concerned. According to reports, this year till the first week of August, the floods killed 118 people in 22 districts, while 26 others were killed in landslides since May 22.
It needs mention here that Assam has witnessed 12% of excess rainfall (actual 1644. 2 mm against normal 1464. 9 mm) for the last four months. In September, Assam recorded 46% of excess rainfall, which has again caused great grief to the denizens of the state.
Meanwhile, in the Nagaon district, extensive areas have been reportedly flooded due to the sudden release of waters by NEEPCO and Karbi Langpi hydel projects. | english |
According to reports, Cristiano Ronaldo is willing to join Bundesliga team Borussia Dortmund. The Manchester United forward previously stated that he would like to leave the organisation this summer in order to play in the Champions League.
Despite links to some of the greatest teams in Europe, such as Bayern Munich, Napoli, and Chelsea, no transfer has taken place as of yet. However, according to a report in Bild, Ronaldo is open to joining Borussia Dortmund, so a departure from Old Trafford is still a possibility.
Jorge Mendes is allegedly now negotiating a move, and Dortmund is debating whether or not to make an offer for the 37-year-old.Despite Ronaldo's willingness to accept a price drop, the German club is concerned about the deal's sustainability because of the player's high wage demands.
The German newspaper claims that Mendes has already made him available to BVB executives but has only received disappointing feedback. Ronaldo is eager to move to Dortmund since the Bundesliga powerhouses are participating in the Champions League this season, and the Portuguese superstar wants to solidify his status as the competition's leading scorer.
In terms of goals scored, Ronaldo leads Lionel Messi by 15 goals in the history of the competition. Ronaldo, a former Real Madrid and Juventus talisman, scored six goals in seven games for United last season in the UCL.
The Red Devils will now, however, participate in the inferior Europa League for the following season, with new manager Erik ten Hag charged with elevating United to the top. However, it might take some time, and Ronaldo isn't keen on staying for what is expected to be a protracted rebuilding phase.
The Red Devils' No. 7 has played in both of their Premier League games thus far, but numerous rumours indicate that he hasn't been in a good mood at the Carrington training facility. The five-time Ballon d'Or winner recently posted on Instagram that the truth about his status will surface "in a matter of weeks" as Ten Hag and United executives debate if it is worth maintaining a disgruntled Ronaldo for the sake of his goals.
"They know the truth when they interview in a couple weeks,"
Ronaldo wrote.
"The media is telling lies. I have a notebook and in the last few months of the 100 news I made, only 5 were right. Imagine how it is. Stick with that tip."
Sporting Lisbon reportedly offered to take him back in a homecoming transfer, according to The Independent, but only if the Red Devils tore up his £360,000-per-week contract and allowed him to depart for free. Ronaldo's future will need to be decided on shortly, though, as the September 1 transfer deadline is drawing near.
Now, it will be interesting to see which club opts for Ronaldo with only 14 days left in closing of the summer transfer window.
| english |
/**
* Styles by <NAME>.
*/
/* #ff6c5d Red
#34383b
#383c3f
text on dark:
#747c82
Accent color:
#0586A6
*/
body{font-family:"Open Sans"; direction:ltr;}
a:hover{text-decoration:none;}
/*a:focus{color:transparent;}*/
.upside-bar{width:100%; height:35px; background:#383c3f;}
.upside-bar address{height:100%; float:left;}
header{width:100%; height:55px; background:#2c2f33;}
header > nav, header > nav > ul{height:100%;}
header > nav > ul > li{height:100%; margin-right:20px; list-style:none; float:left;}
header > nav > ul > li > a{height:100%; line-height:55px; font-family:"Open Sans"; font-size:14px; font-weight:bold; color:#ff6c5d; transition:all 250ms ease-in;}
header > nav > ul > li > a:hover{/*color:#d9534f;*/color:#ea5245;}
header > nav > .sign > li{float:right;}
header > nav > .sign > li > a{font-weight:normal; color: #0596b8;}
header > nav > .sign > li > a:hover{color: #06c8f3;}
.bg-header{width:100%; height:450px; background:url(../images/bg.jpg) no-repeat center center / cover;}
.texts article{min-height:255px; margin:40px 0; line-height:22px;}
/*.panel-default{border:solid 1px #ccc;}*/
.panel-heading{width:100%; height:38px; font-family:"Open Sans"; font-size:14px; padding: 10px 15px; /*background:#f5f5f5;*/
color:#181818;}
.account-panel{margin-top:15px;}
.panel-body .message{font-family:"Open Sans"; text-align:center;}
.form-group{width:100%; margin-top:9px; margin-bottom:9px; min-height:35px; float:left;}
.form-group .control-label{margin-bottom:0;}
.form-group label{text-align:right;}
.form-group .control-label{margin-top:8px;}
.form-group.form-remember{margin-bottom:5px; height:24px;}
.form-group.form-remember label{font-weight: normal; margin-left:7px;}
.form-group.form-submit{margin-top:3px;}
.form-group label, .form-group input{float:left;}
.form-group input[type=text], .form-group input[type=password], .form-group input[type=email]{width:100%;}
footer{width:100%; height:50px; background:#34383b;}
footer .container{color:#747c82; line-height:50px;}
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans'), local('OpenSans'), url(../fonts/OpenSans-Regular.woff2) format('woff2'), url(../fonts/OpenSans-Regular.woff) format('woff');
}
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
src: local('Open Sans Bold'), local('OpenSans-Bold'), url(../fonts/OpenSans-Bold.woff2) format('woff2'), url(../fonts/OpenSans-Bold.woff) format('woff');
}
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 400;
src: local('Open Sans Italic'), local('OpenSans-Italic'), url(../fonts/OpenSans-Italic.woff2) format('woff2'), url(../fonts/OpenSans-Italic.woff) format('woff');
}
| css |
<gh_stars>0
---
title: "<NAME>, Who Rowed Across Oceans, Dies at 74"
external_link: http://www.nytimes.com/2012/02/19/us/john-fairfax-who-rowed-across-oceans-dies-at-74.html?_r=3
---
The Most Interesting Obituary in the World:
>At 9, he settled a dispute with a pistol. At 13, he lit out for the Amazon jungle.
>At 20, he attempted suicide-by-jaguar. Afterward he was apprenticed to a pirate. To please his mother, who did not take kindly to his being a pirate, he briefly managed a mink farm, one of the few truly dull entries on his otherwise crackling resume, which lately included a career as a professional gambler.
>Mr. Fairfax was among the last avatars of a centuries-old figure: the lone-wolf explorer, whose exploits are conceived to satisfy few but himself. His was a solitary, contemplative art that has been all but lost amid the contrived derring-do of adventure-based reality television.
| markdown |
from flask import abort, Flask, request, send_from_directory, send_file
import solvers
app = Flask(__name__)
@app.route("/")
def root():
return send_file('index.html')
@app.route("/app.js")
def js():
return send_file('app.js')
@app.route("/favicon.ico")
def favicon():
return send_file('favicon.ico')
@app.route("/<path:path>")
def pzprjs(path):
return send_from_directory('pzprjs/dist', path)
@app.route("/api/list", methods=['GET'])
def puzzle_list():
return {'puzzles': solvers.puzzle_list()}
@app.route("/api/solve", methods=['POST'])
def solve():
try:
return {'pzprv3': solvers.solve(request.json['pzprv3'], request.json['different_from'])}
except TimeoutError as e:
abort(e.args[0])
| python |
2020 is set to be a defining year for European tech. While startups and scaleups have been supported over the years through a number of EU-based programs, newly elected European Commission President Ursula von der Leyen has made achieving technological sovereignty a rallying cry for more globally competitive European tech brands.
This shift is heating up Europe’s focus on the promise its hot young scaleups can bring. But what will define the ‘Made in Europe’ tech brand, and how can it compete against the Facebooks and Googles of the world?
To find out, I attended this year’s EIT Digital Challenge to speak with the movers and shakers shaping this new era of European tech.
I first sat down with EIT Digital’s Chief Innovation Officer, Chahab Nastar, to discuss the broader context facing the European tech scene. As Nastar explained, the Commission’s new call for technological sovereignty isn’t just about increasing revenue:
It has to do with Europe being able to counter the American and Chinese platforms that have these very virtuous network effects that lead to a winner-takes-all landscape. You want to buy something? There’s Amazon. You want to chat with your friends? There’s Facebook. You want to look for a CV? There’s LinkedIn.
So far, Europe has been a little bit passive with respect to other continents’ platforms coming in and taking over. So what should Europe do? And how will Europe defend its technological sovereignty?
At the same time, major tech giants like Facebook have faced public backlash in recent years for failing to protect their users’ data, with many vowing to delete their profiles — meanwhile continuing to use Facebook-owned Instagram and Whatsapp. And therein lies the problem.
The EU has responded to these scandals by introducing stricter privacy regulations to protect users’ data. But has this come at the expense of innovation? Nastar told TNW:
What makes Europe very specific is that you have to manage the balance between innovation and regulation. Innovation is bold. It’s about experimentation. It’s about going wild, making mistakes, being on the edge... and regulation is all about protecting the citizens, defending their interests, enabling them to look over their data, to give their consent, and opt out, etc.
So the European DNA needs to find the right balance between protecting citizens while still letting innovators flourish and experiment. And sometimes we need to introduce regulations that actually favor experimentation.
In an era when many tech giants and institutions have lost public trust, this balance may just be the key differentiator the ‘Made in Europe’ tech brand needs.
But how will Europe’s tech identity translate into the different practical areas of tech? To find out I spoke with EIT Digital finalists from the areas of digital finance, tech, cities, industry, and wellbeing to get their perspective.
Trust in financial services and institutions took a nosedive globally during the 2008 financial crisis. 11 years later, they still haven’t fully gained it back, especially within Europe.
Payment Services Directive 2, better known as PSD2, is one recent EU regulation aimed at making users’ banking experience more transparent, accessible, and secure.
If this sounds confusing, that’s because is. I spoke with two of EIT Digital’s finalists in Digital Finance to find some examples of how this works in practice.
Today we have subscriptions for absolutely everything, whether it’s your internet, electricity, Netflix, Spotify, or that pricey gym membership you said you’d use but never actually do. Often we have so many, we either forget we’re still paying for them, or continue to pay rather than go through the hassle of canceling them.
Minna Technologies is a subscription management software that integrates with retail banking services. It improves the user experience by creating a list of recurring costs that come up in your bank account and canceling any you wish to terminate with a simple click. You’ll never have to come up with an elaborate story about moving to a remote island where they don’t have BasicFit again.
Minna CEO Joakim Sjöblom was pretty confident PSD2 will not only improve users’ baking experience, but it’ll also provide new opportunities for banks to diversify their services, earn customer trust, and gain higher approval ratings:
I would say that the past three, four years with the PSD2 initiative has been about maturing into infrastructure. And I think now is the first time that we’ll see actual products delivered on that data. So we’re moving from European legislation to customer value and I’m really looking forward to that.
Another major issue that’s been plaguing the financial industry is cybersecurity. While banks have increasingly sophisticated protections in place, the weakest point of entry is often users themselves.
Buguroo is turning anti-fraud security on its head. Instead of focusing on reactionary measures, they’re analyzing anomalies in user behavior. Using behavioral biometrics, Buguroo’s platform can create user-profiles and detect when someone else may be using your account.
Hackers aren’t just going after cold hard cash; personal data has become even more valuable, and harder to defend. Everyday platforms like DropBox, Whatsapp, and even institutions like the NHS, have been hit by cyberattacks, leaving our personal data vulnerable.
The EU has responded by introducing new blanket regulations on cybersecurity, focusing on the ‘operators of essential services.’ Directive (EU) 2016/1148, which came into effect in November 2018, has sent companies scrambling to introduce new protective measures.
This has really paved the way for companies offering both more evolved and user-friendly solutions that companies big and small can introduce.
I spoke with Ioannis Bizimis, CFO of cybersecurity platform QuoScient, one of the winners of EIT Digital, about this ongoing shift. He explained:
So obviously there’s a big regulatory change in certain industries, like banking, which has traditionally been heavily regulated, but more and more industries that were not early adopters of cyber security solutions are having to react now. And then there’s another trend which we see that is going from a reactive to a more proactive, threat centric, risk centric approach.
The most meme-worthy Halloween costume of 2019 was the ‘busted e-scooter,’ and if you live in any major city, from London to Madrid, you certainly know why. Zipping through sidewalks during rush hour let us finally reenact a slightly less cool version of Marty McFly’s skateboard scene in Back to the Future. But the novelty soon wore off when we began having to navigate through a minefield of randomly discarded e-scooters on Saturday mornings.
In terms of digital cities, again, the European focus will be on tech innovation, not simply for the purpose of innovation itself, but solutions that will actually enhance people’s lives for the better.
No startup represented this better than EIT Digital’s Digital Cities winner Cerbair. While the growing use of drones has represented new opportunities for everything from medical supply delivery to pizza delivery, we haven’t considered the impact this largely unregulated technology could have on citizens if misused.
So far anti-drone protection solutions have been made for military use only, but, in a world where anyone can buy a drone online, civilians are left largely unprotected from potential threats. Cerbair CEO Lucas Le Bell explained:
All of these people, they will never be able to afford, let alone have the legal right to buy such (anti-drone protection) military solutions. So how can we democratize such complex solutions to give the people in our societies the level of performance they deserve to ensure their safety? The industry is converging towards an integration process where the different technologies out there have to work together to synergize their strengths.
Complex technologies will also help bolster the growth of European businesses by providing better insights and more user-friendly tools to innovate processes. This year’s Digital Industry winners are great examples of this.
In a market that often ignores the needs of the minority in favor of the majority, Europe’s digital wellness scaleups are harnessing the power of emerging technologies to provide healthcare solutions that benefit the people who need them most.
What if you needed a new pair of shoes but they only came in small, medium, or large? Or what if you could get any style or fit you wanted, but it would cost thousands of euros and will take multiple fittings?
With their software enabling them to scale down models of a prosthetic foot to any size, his team suddenly had parents asking:
Voiceitt’s mobile application uses speech recognition technology to enable users with nonstandard speech (whether it’s due to hearing loss, cerebral palsy, Parkinson’s Disease, Down syndrome, etc.,) to communicate with others clearly in real-time.
Sidekick Health is a digital therapeutics platform that uses gamification to help patients manage chronic diseases on a daily basis.
With these scaleups leading the way, Europe’s quest for technological sovereignty has a good chance of becoming a reality. For now, let’s see what 2020 has in store.
Get the most important tech news in your inbox each week.
This post is brought to you by EIT Digital Challenge.
| english |
How Do Face Masks Control the Spread of Disease?
What Are the Symptoms of a Stroke?
What Was Life Like Before We Knew About Germs?
How Much Water Should a Person Drink in a Day?
Is It ISIS or ISIL?
Pectus excavatum.
in these related Britannica articles:
| english |
**New Delhi: ** From his days of being an iconic editor to the alleged sexual predator — the fall of M.J. Akbar has been sudden and steep.
Caught as he was in the web of #MeToo allegations, Akbar stepped down as Minister of State for External Affairs on Wednesday.
In his chequered career, Akbar was spokesperson for both the Congress and BJP. Highly regarded for his journalistic abilities, Akbar was founder-editor of weekly magazine Sunday and The Telegraph and The Asian Age newspapers.
He commanded respect of generations of aspiring and budding journalists for his erudition, his command and crispness of language, his play of words as also his articulation. Akbar became Editor of Sunday, which turned into a successful news magazine in 1976, and of The Telegraph 1982.
All that changed as allegations started pouring in against him in the wake of #MeToo campaign alleging sexual harassment and molestation by women who had worked with him.
He joined the Congress and was a member of of the ninth Lok Sabha from 1989 to 1991. From 1991 to 1993, he was Advisor to the Human Resource Development Ministry.
He returned to journalism with an aim of creating a newspaper with an international focus. He launched The Asian Age in 1994 with editions in Delhi, Mumbai and London, the first Indian newspaper to have an international edition.
In his long journalistic career, he was also associated with The Sunday Guardian and India Today magazine.
Akbar joined the BJP ahead of 2014 Lok Sabha elections expressing his faith in the leadership of Narendra Modi. He was first elected to Rajya Sabha in July 2015 and was re-elected in July 2016.
Akbar has authored 10 books including India: The Siege Within; Riot after Riot: Reports on Caste and Communal Violence in India; Nehru: The Making of India,1989 and Kashmir: Behind the Vale.
Akbar’s columns were widely followed and he continued writing till he became a minister in the BJP-led government in 2016.
He was given the portfolio of Minister of State for External Affairs in an apparent bid to increase Narendra Modi government’s outreach, especially to the Muslim countries.
Women, who had worked with him came up with their accounts of travails one after another in the social media.
Akbar, who was abroad when the allegations first surfaced about 10 days back, termed them as “wild, baseless and false” on his return. He also filed a defamation case against the journalist who had first levelled the charges, but the accounts against him continued to pour in.
Journalists, individually and also through their representative organisations, expressed their dismay over his decision not to quit.
The government also gave signal that Akbar has to fight his battles individually as the complaints pertained to the period when he was editor.
| english |
Fertiliser company Paradeep Phosphates Ltd's initial public offering (IPO) opened for subscription on Tuesday. The price band for the public issue, which concludes on May 19, has been fixed at Rs 39-42 per share.
Through the initial share sale, the government will be offloading its entire 19. 55 per cent stake in the company.
The IPO comprises fresh issuance of equity shares worth Rs 1,004 crore and an offer for sale component of 11. 85 crore equity shares by promoters and other selling shareholder.
As part of the offer-for-sale (OFS), selling shareholders -- Zuari Maroc Phosphates Pvt Ltd (ZMPPL) will offload 60,18,493 equity shares and the Centre will sell up to 11,24,89,000 equity shares.
At present, ZMPPL owns 80. 45 per cent shareholding in Paradeep Phosphates, while the government has 19. 55 per cent stake.
Incorporated in 1981, Paradeep Phosphates Ltd is primarily engaged in manufacturing, trading, distribution and sales of complex fertilisers such as Di-Ammonium Phosphate (DAP) and NPK fertilisers.
It has raised a little over Rs 450 crore from anchor investors days before the roll-out of its initial public offering.
Goldman Sachs, BNP Paribas Arbitrage, Kuber India Fund, Copthall Mauritius Investment and Societe Generale are among the anchor investors.
Axis Capital, ICICI Securities, JM Financial and SBI Capital Markets are the book running lead managers to the issue. | english |
Garlic is a culinary staple that has been used for both its flavour and medicinal properties for centuries. It is a member of the Allium family, which also includes onions, shallots, and leeks. Garlic is used in many dishes worldwide, from Italian pasta to Indian curries. Besides being a popular ingredient in the kitchen, garlic is also widely recognized for its numerous health benefits.
According to a study Immunomodulation and Anti-Inflammatory Effects of Garlic Compounds, published in the journal of NCBI, garlic has the most compelling health benefits in our daily diet. Here are some of its benefits:
Garlic is an excellent source of vitamin C, which is a vital nutrient for a healthy immune system. Vitamin C helps to stimulate the production of white blood cells, which are responsible for fighting off infections and diseases. Garlic also contains a compound called allicin, which has been shown to have antibacterial, antiviral, and antifungal properties. Studies have shown that consuming garlic regularly can help to reduce the frequency and severity of common illnesses such as the flu and the common cold.
High levels of cholesterol in the blood can increase the risk of heart disease and stroke. Garlic has been shown to be effective in lowering cholesterol levels, particularly LDL (low-density lipoprotein) cholesterol, which is the "bad" cholesterol. Garlic contains compounds that inhibit the production of cholesterol in the liver, reducing the amount of LDL cholesterol in the bloodstream. Studies have shown that consuming garlic regularly can lead to a significant reduction in LDL cholesterol levels.
In addition to lowering cholesterol levels, garlic has several other benefits for cardiovascular health. Garlic can help to lower blood pressure, which is a major risk factor for heart disease and stroke. Garlic contains compounds that help to relax the blood vessels, making it easier for blood to flow through them. This reduces the strain on the heart, leading to lower blood pressure. Garlic also has anti-inflammatory properties, which can help to reduce inflammation in the arteries, reducing the risk of cardiovascular disease.
Garlic contains several compounds that have been shown to have anti-cancer properties. These compounds can help to inhibit the growth and spread of cancer cells, reducing the risk of several types of cancer, including colon, stomach, and prostate cancer. Studies have shown that consuming garlic regularly can help to reduce the risk of cancer, particularly in the digestive system.
Garlic contains compounds that have been shown to improve brain function and reduce the risk of age-related cognitive decline. Garlic contains antioxidants that help to protect the brain from oxidative stress, which can damage brain cells and lead to cognitive decline. Garlic has also been shown to improve memory and learning abilities in both animals and humans.
Garlic has been shown to have several benefits for digestive health. Garlic contains compounds that help to stimulate the production of digestive enzymes, improving the digestion of food. Garlic also has prebiotic properties, which means that it helps to promote the growth of beneficial bacteria in the gut. This can help to improve gut health and reduce the risk of digestive disorders such as irritable bowel syndrome (IBS) and inflammatory bowel disease (IBD).
Garlic is a potent natural remedy that has been used for centuries to treat a wide range of ailments. It is a versatile ingredient that can be incorporated into many different dishes, making it easy to include in our everyday diet. Garlic has numerous health benefits, including boosting the immune system, lowering cholesterol levels, improving cardiovascular health, preventing cancer, enhancing brain function, and promoting digestive health. By incorporating garlic into our everyday foods, we can enjoy these health benefits and improve our overall well being. | english |
Bigg Boss 16 Weekend Ka Vaar: This weekend, Gautam Vig was eliminated from Bigg Boss 16. The actor, who was romantically linked to Soundarya Sharma, was shown the exit door by Salman Khan on Sunday after he got the least number of votes. He along with Shalin Bhanot, Tina Datta, and Soundarya Sharma were nominated. Gautam became the first male contestant to have been eliminated this season. His exit left Soundarya in tears.
The eviction began with Salman teasing Shalin. The actor, who was also nominated this week, had previously said he wanted to leave. Referring to his statement, Salman poked fun at him. He then asked the four nominated if they would continue to have their relationship if they exit the house. After he was done teasing, Salman announced that Tina was evicted. Shocked by the decision, Shalin begged Salman to let her stay. When Tina prepared to leave, Salman changed his decision and named Shalin. When Shalin prepares to leave, Salman finally names Gautam. Unsure if that’s the final name, the contestants wait for Salman to return. Soon enough, they realize that Gautam is indeed evicted.
Gautam prepares to leave but Soundarya is not ready to leave. Instead, she ends up having one last fight with him. After the fight, an emotional Soundarya bids him farewell. After Gautam hugs everyone, he shares a private moment with Soundarya and leaves the house.
Once he left the house, several contestants try to console a heartbroken Soundarya. At first, Shiv approaches her, attempting to calm her down. Soon, Archana and Priyanka follow but it goes in vain. Priyanka also attempted to apologise to Soundarya but the latter turns a deaf-ear to it. Upset with her reaction, Priyanka discusses the incident with Ankit Gupta. | english |
Actor Raja Chaudhary courted a controversy once again on Friday after he allegedly got into a fight with a group of people under the influence of alcohol in Uttar Pradesh's Kanpur. The police registered a case against Raja Chaudhary, who became a familiar name after his appearance in season 2 of popular reality show 'Big Boss'. "We have registered a case against him and have sent him for medical tests. Further investigation underway," SP Kanpur West, Sanjeev Suman told ANI.
Mr Chaudhary, a former Bigg Boss contestant, has a notorious reputation. He has been accused of domestic violence by ex-wife Shweta Tiwari, whom he married in 1998. The two, who have a daughter Palak together, separated in 2007 and finally divorced in 2012 citing irreconcilable differences.
Ms Tiwari moved on to married her fiance Abhinav Kohli in a grand ceremony in Mumbai on July 13, 2013. Later, Mr Chaudhary also married longtime girlfriend, Delhi-based professional Shveta Sood, in 2015. | english |
package com.cool.model;
import java.util.Date;
import com.alibaba.fastjson.annotation.JSONField;
import com.cool.base.BaseModel;
/**
*
* @ClassName: Scheduler
* @Description: 定时任务
* @author panlei
* @date 2017年8月10日 上午10:56:15
*
*/
public class TaskScheduler extends BaseModel {
private static final long serialVersionUID = 1L;
/**
* 所属分组ID
*/
private Long groupId;
/**
* 任务名称
*/
private String taskName;
/**
* 任务描述
*/
private String taskDesc;
/**
* 任务类型
*/
private String taskType;
/**
* 时间策略
*/
private String timeConfig;
/**
* 状态,0:停用;1:启用
*/
private Integer status;
/**
* 任务最后执行时间
*/
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date taskLastExecTime;
/**
* 任务最近一次执行时长
*/
private Long taskLastExecTimes;
/**
* 任务下次执行时间
*/
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date taskNextExecTime;
/**
* 生效时间
*/
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date effectTime;
/**
* 自动随系统启动
*/
private Integer autoStart;
/**
* @param groupId
* the groupId to set
*/
public void setGroupId(Long groupId) {
this.groupId = groupId;
}
/**
* @return the groupId
*/
public Long getGroupId() {
return this.groupId;
}
/**
* @param taskName
* the taskName to set
*/
public void setTaskName(String taskName) {
this.taskName = taskName;
}
/**
* @return the taskName
*/
public String getTaskName() {
return this.taskName;
}
/**
* @param taskDesc
* the taskDesc to set
*/
public void setTaskDesc(String taskDesc) {
this.taskDesc = taskDesc;
}
/**
* @return the taskDesc
*/
public String getTaskDesc() {
return this.taskDesc;
}
/**
* @param taskType
* the taskType to set
*/
public void setTaskType(String taskType) {
this.taskType = taskType;
}
/**
* @return the taskType
*/
public String getTaskType() {
return this.taskType;
}
/**
* @param timeConfig
* the timeConfig to set
*/
public void setTimeConfig(String timeConfig) {
this.timeConfig = timeConfig;
}
/**
* @return the timeConfig
*/
public String getTimeConfig() {
return this.timeConfig;
}
/**
* @param status
* the status to set
*/
public void setStatus(Integer status) {
this.status = status;
}
/**
* @return the status
*/
public Integer getStatus() {
return this.status;
}
/**
* @param taskLastExecTime
* the taskLastExecTime to set
*/
public void setTaskLastExecTime(Date taskLastExecTime) {
this.taskLastExecTime = taskLastExecTime;
}
/**
* @return the taskLastExecTime
*/
public Date getTaskLastExecTime() {
return this.taskLastExecTime;
}
/**
* @param taskLastExecTimes
* the taskLastExecTimes to set
*/
public void setTaskLastExecTimes(Long taskLastExecTimes) {
this.taskLastExecTimes = taskLastExecTimes;
}
/**
* @return the taskLastExecTimes
*/
public Long getTaskLastExecTimes() {
return this.taskLastExecTimes;
}
/**
* @param taskNextExecTime
* the taskNextExecTime to set
*/
public void setTaskNextExecTime(Date taskNextExecTime) {
this.taskNextExecTime = taskNextExecTime;
}
/**
* @return the taskNextExecTime
*/
public Date getTaskNextExecTime() {
return this.taskNextExecTime;
}
/**
* @param effectTime
* the effectTime to set
*/
public void setEffectTime(Date effectTime) {
this.effectTime = effectTime;
}
/**
* @return the effectTime
*/
public Date getEffectTime() {
return this.effectTime;
}
/**
* @return property value of autoStart
*/
public Integer getAutoStart() {
return autoStart;
}
/**
* @param autoStart value to be assigned to property autoStart
*/
public void setAutoStart(Integer autoStart) {
this.autoStart = autoStart;
}
}
| java |
<filename>public/data/passives/b/shield-pulse-1.json
{
"name": "Shield Pulse 1",
"sp": 60,
"type": "B",
"description": "If unit's Special triggers based on a foe's attack, Special cooldown count-1 at start of turn 1.",
"icon": "/images/icons/passives/shield-pulse-1.png",
"link": "https://kagerochart.com/hero/passives/shield-pulse-1",
"id": "shield-pulse-1"
} | json |
<gh_stars>1-10
{"pos":"n","translits":{"bas·san·wê·rîm":{"gen.19.11|6":["they struck","with blindness、","from small"],"2ki.6.18|12":["this","with blindness.","And He struck them"],"2ki.6.18|14":["And He struck them","with blindness","according to the word"]}},"meanings":{"blindness":3},"meaningsCount":1,"occurences":3} | json |
Formula One world champion Lewis Hamilton said on Thursday he saw no need for a new racetrack in Rio de Janeiro and was against cutting down forest trees to make way for it.
Plans for a grand prix circuit, which will replace Sao Paolo’s Interlagos on the F1 calendar, have caused controversy locally with environmentalists opposed to the location.
Supporters of the project say more trees would be planted than those removed from the forested area in the Deodoro sector of western Rio, around what is now a disused military site.
Hamilton, who could be a seven-times world champion by the time he next visits Brazil, has been outspoken on environmental issues.
“I was hoping I wasn’t really going to get this question,” said the Mercedes driver ahead of Sunday’s Eifel Grand Prix at the Nuerburgring. “My personal opinion is the world doesn’t need a new circuit.
Hamilton said he did not know all the details of the planned circuit and had heard it was going to be a sustainable development.
“The most sustainable thing you can do is not tear down any trees,” he added.
Interlagos has been a fixture on the F1 calendar since 1990 but is not hosting a race this year due to the COVID-19 pandemic.
Rio’s old Jacarepagua circuit was demolished to make way for facilities for the 2016 Olympics.
Brazilian President Jair Bolsonaro said last year that the privately-built new track would have a capacity for 130,000 fans. | english |
/*
* Serial.java
*
* Copyright (c) 2008-2010 CSIRO, Delft University of Technology.
*
* This file is part of Darjeeling.
*
* Darjeeling is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Darjeeling is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Darjeeling. If not, see <http://www.gnu.org/licenses/>.
*/
import java.io.IOException;
import javax.darjeeling.Darjeeling;
import javax.darjeeling.io.Serial;
import javax.darjeeling.io.SerialInputStream;
import javax.darjeeling.io.SerialOutputStream;
public class SerialExample
{
public static void main(String args[])
{
SerialInputStream input = Serial.getInputStream((byte)0);
final SerialOutputStream output = Serial.getOutputStream((byte)0);
while (true)
{
try
{
// Echo bytes.
int b;
b = input.read();
output.write(b);
} catch (IOException e)
{
Darjeeling.print(e.toString());
}
}
}
}
| java |
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="../style.css">
</head>
<body>
<h1>LevelUpMenuController.java</h1>
<table class="src">
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_1'/>
1
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_1'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>package com.lpoo.fallout.controller.levelup;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_2'/>
2
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_2'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''></span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_3'/>
3
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_3'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>import com.lpoo.fallout.controller.Game;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_4'/>
4
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_4'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>import com.lpoo.fallout.controller.option.OptionMenuController;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_5'/>
5
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_5'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>import com.lpoo.fallout.controller.levelup.command.*;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_6'/>
6
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_6'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>import com.lpoo.fallout.gui.GUI;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_7'/>
7
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_7'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>import com.lpoo.fallout.model.levelup.LevelUpModel;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_8'/>
8
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_8'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''></span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_9'/>
9
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_9'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>import java.util.HashMap;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_10'/>
10
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_10'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>import java.util.Map;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_11'/>
11
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_11'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''></span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_12'/>
12
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_12'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>public class LevelUpMenuController extends OptionMenuController<LevelUpModel> {</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_13'/>
13
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_13'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''> private Map<LevelUpModel.OPTION, LevelUpCommand> commandMap;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_14'/>
14
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_14'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''></span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_15'/>
15
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_15'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''> public LevelUpMenuController(LevelUpModel model) {</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_16'/>
16
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_16'></a>
<span>
</span>
</span>
</td>
<td class='covered'><pre><span class=''> super(model);</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_17'/>
17
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_17'></a>
<span>
</span>
</span>
</td>
<td class='covered'><pre><span class=''> commandMap = createCommands(model);</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_18'/>
18
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_18'></a>
<span>
</span>
</span>
</td>
<td class='covered'><pre><span class=''> }</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_19'/>
19
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_19'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''></span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_20'/>
20
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_20'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''> public static Map<LevelUpModel.OPTION, LevelUpCommand> createCommands(LevelUpModel model) {</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_21'/>
21
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_21'></a>
<span>
</span>
</span>
</td>
<td class='covered'><pre><span class=''> Map<LevelUpModel.OPTION, LevelUpCommand> result = new HashMap<>();</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_22'/>
22
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_22'></a>
<span>
</span>
</span>
</td>
<td class='covered'><pre><span class=''> result.put(LevelUpModel.OPTION.STRENGTH, new StrengthCommand(model));</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_23'/>
23
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_23'></a>
<span>
</span>
</span>
</td>
<td class='covered'><pre><span class=''> result.put(LevelUpModel.OPTION.AGILITY, new AgilityCommand(model));</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_24'/>
24
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_24'></a>
<span>
</span>
</span>
</td>
<td class='covered'><pre><span class=''> result.put(LevelUpModel.OPTION.INTELLIGENCE, new IntelligenceCommand(model));</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_25'/>
25
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_25'></a>
<span>
</span>
</span>
</td>
<td class='covered'><pre><span class=''> result.put(LevelUpModel.OPTION.LUCK, new LuckCommand(model));</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_26'/>
26
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_26'></a>
<span>
</span>
</span>
</td>
<td class='covered'><pre><span class=''> result.put(LevelUpModel.OPTION.NEXT, new CommitCommand(model));</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_27'/>
27
</td>
<td class='survived'>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_27'>1</a>
<span>
1. createCommands : replaced return value with null for com/lpoo/fallout/controller/levelup/LevelUpMenuController::createCommands → SURVIVED<br/>
</span>
</span>
</td>
<td class='covered'><pre><span class='survived'> return result;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_28'/>
28
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_28'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''> }</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_29'/>
29
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_29'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''></span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_30'/>
30
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_30'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''> @Override</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_31'/>
31
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_31'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''> public void step(Game game, GUI.ACTION action) {</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_32'/>
32
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_32'></a>
<span>
</span>
</span>
</td>
<td class='covered'><pre><span class=''> switch (action) {</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_33'/>
33
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_33'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''> case ENTER: {</span></pre></td></tr>
<tr>
<td class='uncovered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_34'/>
34
</td>
<td class='survived'>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_34'>1</a>
<span>
1. step : removed call to com/lpoo/fallout/controller/levelup/command/LevelUpCommand::activate → NO_COVERAGE<br/>
</span>
</span>
</td>
<td class='uncovered'><pre><span class='survived'> commandMap.get(getModel().getSelectedOption()).activate(game);</span></pre></td></tr>
<tr>
<td class='uncovered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_35'/>
35
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_35'></a>
<span>
</span>
</span>
</td>
<td class='uncovered'><pre><span class=''> break;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_36'/>
36
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_36'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''> }</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_37'/>
37
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_37'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''> case LEFT: {</span></pre></td></tr>
<tr>
<td class='uncovered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_38'/>
38
</td>
<td class='survived'>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_38'>1</a>
<span>
1. step : removed call to com/lpoo/fallout/controller/levelup/command/LevelUpCommand::left → NO_COVERAGE<br/>
</span>
</span>
</td>
<td class='uncovered'><pre><span class='survived'> commandMap.get(getModel().getSelectedOption()).left();</span></pre></td></tr>
<tr>
<td class='uncovered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_39'/>
39
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_39'></a>
<span>
</span>
</span>
</td>
<td class='uncovered'><pre><span class=''> break;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_40'/>
40
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_40'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''> }</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_41'/>
41
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_41'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''> case RIGHT: {</span></pre></td></tr>
<tr>
<td class='uncovered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_42'/>
42
</td>
<td class='survived'>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_42'>1</a>
<span>
1. step : removed call to com/lpoo/fallout/controller/levelup/command/LevelUpCommand::right → NO_COVERAGE<br/>
</span>
</span>
</td>
<td class='uncovered'><pre><span class='survived'> commandMap.get(getModel().getSelectedOption()).right();</span></pre></td></tr>
<tr>
<td class='uncovered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_43'/>
43
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_43'></a>
<span>
</span>
</span>
</td>
<td class='uncovered'><pre><span class=''> break;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_44'/>
44
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_44'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''> }</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_45'/>
45
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_45'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''> case ESCAPE: {</span></pre></td></tr>
<tr>
<td class='uncovered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_46'/>
46
</td>
<td class='survived'>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_46'>1</a>
<span>
1. step : removed call to com/lpoo/fallout/controller/Game::popState → NO_COVERAGE<br/>
</span>
</span>
</td>
<td class='uncovered'><pre><span class='survived'> game.popState();</span></pre></td></tr>
<tr>
<td class='uncovered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_47'/>
47
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_47'></a>
<span>
</span>
</span>
</td>
<td class='uncovered'><pre><span class=''> break;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_48'/>
48
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_48'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''> }</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_49'/>
49
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_49'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''> default: {</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_50'/>
50
</td>
<td class='killed'>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_50'>1</a>
<span>
1. step : removed call to com/lpoo/fallout/controller/OptionMenuController::step → KILLED<br/>
</span>
</span>
</td>
<td class='covered'><pre><span class='killed'> super.step(game, action);</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_51'/>
51
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_51'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''> break;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_52'/>
52
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_52'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''> }</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_53'/>
53
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_53'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''> }</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_54'/>
54
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_54'></a>
<span>
</span>
</span>
</td>
<td class='covered'><pre><span class=''> }</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4a49b26f_55'/>
55
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_55'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>}</span></pre></td></tr>
<tr><td></td><td></td><td><h2>Mutations</h2></td></tr>
<tr>
<td><a href='#org.pitest.mutationtest.report.html.SourceFile@4a49b26f_27'>27</a></td>
<td></td>
<td>
<a name='grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_27'/>
<p class='SURVIVED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>createCommands<br/><b>Killed by : </b>none</span></span> replaced return value with null for com/lpoo/fallout/controller/levelup/LevelUpMenuController::createCommands → SURVIVED</p>
</td>
</tr>
<tr>
<td><a href='#org.pitest.mutationtest.report.html.SourceFile@4a49b26f_34'>34</a></td>
<td></td>
<td>
<a name='grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_34'/>
<p class='NO_COVERAGE'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>step<br/><b>Killed by : </b>none</span></span> removed call to com/lpoo/fallout/controller/levelup/command/LevelUpCommand::activate → NO_COVERAGE</p>
</td>
</tr>
<tr>
<td><a href='#org.pitest.mutationtest.report.html.SourceFile@4a49b26f_38'>38</a></td>
<td></td>
<td>
<a name='grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_38'/>
<p class='NO_COVERAGE'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>step<br/><b>Killed by : </b>none</span></span> removed call to com/lpoo/fallout/controller/levelup/command/LevelUpCommand::left → NO_COVERAGE</p>
</td>
</tr>
<tr>
<td><a href='#org.pitest.mutationtest.report.html.SourceFile@4a49b26f_42'>42</a></td>
<td></td>
<td>
<a name='grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_42'/>
<p class='NO_COVERAGE'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>step<br/><b>Killed by : </b>none</span></span> removed call to com/lpoo/fallout/controller/levelup/command/LevelUpCommand::right → NO_COVERAGE</p>
</td>
</tr>
<tr>
<td><a href='#org.pitest.mutationtest.report.html.SourceFile@4a49b26f_46'>46</a></td>
<td></td>
<td>
<a name='grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_46'/>
<p class='NO_COVERAGE'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>step<br/><b>Killed by : </b>none</span></span> removed call to com/lpoo/fallout/controller/Game::popState → NO_COVERAGE</p>
</td>
</tr>
<tr>
<td><a href='#org.pitest.mutationtest.report.html.SourceFile@4a49b26f_50'>50</a></td>
<td></td>
<td>
<a name='grouporg.pitest.mutationtest.report.html.SourceFile@4a49b26f_50'/>
<p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>step<br/><b>Killed by : </b>com.lpoo.fallout.controller.levelup.LevelUpMenuControllerTest.[engine:junit-jupiter]/[class:com.lpoo.fallout.controller.levelup.LevelUpMenuControllerTest]/[method:sendUpAlreadyTopSelected()]</span></span> removed call to com/lpoo/fallout/controller/OptionMenuController::step → KILLED</p>
</td>
</tr>
</table>
<h2>Active mutators</h2>
<ul>
<li class='mutator'>BOOLEAN_FALSE_RETURN</li>
<li class='mutator'>BOOLEAN_TRUE_RETURN</li>
<li class='mutator'>CONDITIONALS_BOUNDARY_MUTATOR</li>
<li class='mutator'>EMPTY_RETURN_VALUES</li>
<li class='mutator'>INCREMENTS_MUTATOR</li>
<li class='mutator'>INVERT_NEGS_MUTATOR</li>
<li class='mutator'>MATH_MUTATOR</li>
<li class='mutator'>NEGATE_CONDITIONALS_MUTATOR</li>
<li class='mutator'>NULL_RETURN_VALUES</li>
<li class='mutator'>PRIMITIVE_RETURN_VALS_MUTATOR</li>
<li class='mutator'>VOID_METHOD_CALL_MUTATOR</li>
</ul>
<h2>Tests examined</h2>
<ul>
<li>com.lpoo.fallout.controller.levelup.LevelUpMenuControllerTest.[engine:junit-jupiter]/[class:com.lpoo.fallout.controller.levelup.LevelUpMenuControllerTest]/[method:sendOrderDown()] (8 ms)</li><li>com.lpoo.fallout.controller.levelup.LevelUpMenuControllerTest.[engine:junit-jupiter]/[class:com.lpoo.fallout.controller.levelup.LevelUpMenuControllerTest]/[method:sendUpAlreadyTopSelected()] (7 ms)</li><li>com.lpoo.fallout.controller.battle.BattleControllerTest.[engine:junit-jupiter]/[class:com.lpoo.fallout.controller.battle.BattleControllerTest]/[method:processEnemyDeath()] (23 ms)</li>
</ul>
<br/>
Report generated by <a href='http://pitest.org'>PIT</a> 1.6.3
</body>
</html> | html |
var searchData=
[
['wwdg_5firqn_0',['WWDG_IRQn',['../group___peripheral__interrupt__number__definition.html#gga7e1129cd8a196f4284d41db3e82ad5c8a971089d7566ef902dfa0c80ac3a8fd52',1,'stm32l073xx.h']]]
];
| javascript |
For well over five months and on 31 grounds 18 teams contest the two divisions of the County Championship. For long periods of the summer it is not clear quite what the shape of the four-day season will be. Then, sometimes quite suddenly, the beguiling kaleidoscope becomes an all but clear picture. The final afternoon of this round of games was such a time.
While Durham were beating Nottinghamshire at Chester-le-Street, Yorkshire's outstanding team were choking the life out of Lancashire's second innings at Old Trafford and completing an utterly deserved innings victory. Andrew Gale's men now have a 26-point lead at the top of Division One and, barring the sort of disasters this deeply impressive team seems unlikely to encounter, the pennant is going back to Headingley for the first time since 2001.
Whether the title is sealed at Trent Bridge, where the leaders meet Nottinghamshire next week, or at Headingley in the final round of games, does not matter that much. It will be a major shock if Gale's men blow it now.
It says something that Yorkshire's first victory against their oldest rivals in 16 attempts will be remembered not so much because it ended that dismal run or because it was achieved at Old Trafford, but because it set up a Championship win these players have craved for a couple of years and so nearly achieved last year. Yet the triumph also had its sour aspect when skipper Gale was banned for two matches after his heated verbal altercation with Ashwell Prince on the third evening of the game.
That dispute means that Gale will miss games for which he was not certain to be selected, given that Joe Root, Gary Ballance and Tim Bresnan may also be available. It would certainly be a shame if Yorkshire's probable triumph was to be clouded by Gale's disciplinary problem. Likewise, it would be wrong to let the fine cricket played by Gale's players be forgotten amid the brouhaha caused by a lost temper and foolish comments.
On the final day of this game much of that fine cricket was played by Adil Rashid, who bowled unchanged from the Statham End during the morning session yet had only the wickets of Prince, caught down the leg side by Bairstow, and Steven Croft, brilliantly snaffled one-handed by diving second slip Kane Williamson, to show for his efforts on a hard pitch from which the legspinner extracted bounce and turn.
Lancashire lunched on 241 for 4 with Usman Khawaja unbeaten on 111, having played by far his best innings for the county he joined in June. The home side were only 91 in arrears and the outcome of the game was nothing like settled.
An hour after the resumption, however, Yorkshire's win was all but sealed. Gale took the new ball immediately the players returned and Jack Brooks removed both Alex Davies and Tom Smith in four accurate overs. When Smith, Lancashire's last recognised batsman, edged a catch to Bairstow, Adam Lyth turned to the dressing room and clenched his raised fists in undisguised, unfettered joy. Yorkshire were nearly home.
Next over Khawaja was smartly stumped by Bairstow when he came down the pitch to the leg spinner's quicker ball and Lancashire were 254 for 7. The last three wickets added 60 runs most of them coming in a last wicket entertainment between Stephen Parry and Tom Bailey which did little more than irritate Yorkshire.
Then from the Pavilion End, Lyth, whose double-hundred was one of highlights of the game, bowled Parry for 28 and one of the more memorable wins in even Yorkshire's illustrious history was completed. Rashid ended the innings with figures of 5 for 117 to add to his 3 for 109 in the first innings and an unbeaten 159. One could say he had enjoyed a decent game.
For Lancashire, of course, this defeat and Durham's win deepens their already severe relegation problems. Glen Chapple acknowledged that his side needs to win both their remaining games and they go to Hove next Tuesday. The prospects are not promising.
None of which concerned Yorkshire coach Jason Gillespie as he reviewed one of his team's most famous victories and one of the county's more eventful days.
"It was a lovely win," he said "We set our goal to play real positive disciplined cricket. I don't think we were at our best with the ball in the first innings, but the batting was outstanding - I was especially pleased with how we attacked the spinners.
"We just needed to stay patient. I thought Rashid was outstanding, and Brooks has a happy knack of finding a wicket out of nowhere. The way we went about it was absolutely fantastic.
"It's a great position to be in, no question. But we've got Nottinghamshire away and they're a bloody good team. We're under no illusions, it's going to be a tough challenge for us down at Trent Bridge. We've got a lot of work to do yet, there's still eight days cricket to play."
| english |
Hailing Sachin Tendulkar‘s contribution to Indian cricket, his long-time teammate Rahul Dravid on Thursday said the veteran has inspired many youngsters across the country to take up the game.
“Yesterday, at the BCCI’s annual awards function, Sachin said that Sunil Gavaskar had inspired him to take up the game.
What Sachin has done is inspire generations of players in the small towns and villages across the country. That is the impact he has had on India and Indian society through television,” said Dravid while launching the book “Sachin – Born To Bat” by Khalid AH Ansari.
The former skipper, who released the book edited by Clayton Murzello, said it had been a pleasure to play alongside Tendulkar and sharing the dressing room with him.
“We might have scored 6900 runs together. People may not remember me, but will certainly remember Sachin,” said Dravid, who has moved over from the playing field to sharing television commentary duties with another former India captain Sourav Ganguly.
Recalling the first time he had seen Tendulkar bat as a 13-year-old boy in Cuttack in a match between his team South Zone against West Zone, Dravid said the way Tendulkar batted was a revelation to him.
“I was not included in the playing eleven. In those days who are not in the eleven were given scoring duties and I was scoring for my team in that match. Prior to reaching Cuttack I had made some runs at Bangalore and fancied myself as a batsman.
“After seeing Sachin score 67 there I put aside my pen and said...buddy you have a long way to go,” said Dravid, who has amassed 13,388 runs from 164 Tests before retiring earlier this year.
“I have with great pleasure seen Sachin from close quarters construct an innings. He has great talent and a great mind. Here is a man who is not only born to bat but born to play cricket,” gushed Dravid about the Mumbai batsman.
Dravid said he recently had a chat with fellow commentator and former Test player Sanjay Manjrekar who recalled a game for West Zone against South Zone in Chennai.
“Manjrekar said that it was a turning track and West did not have enough bowlers to exploit it. Overhearing his conversation with Ravi (Shastri), Tendulkar said in his squeaky voice “mai daloonga (I will bowl)”.
“Asked what will he bowl, Tendulkar replied kuch bhi (anything), off spin, leg spin...”, said Dravid quoting Manjrekar.
The book has been published by Jaico Publishing House and has an introduction by Tendulkar.
“It has articles in it written on Tendulkar by Ganguly, (former Australia captain) Ian Chappell and (late journalist) Peter Roebuck,” said a representative of the publishing house.
| english |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.