text
stringlengths
1
1.04M
language
stringclasses
25 values
<gh_stars>0 /* * stream.cpp * * Created on: 9. 1. 2021 * Author: ondra */ #include "stream.h" #include "async_provider.h" namespace userver { std::string_view SocketStream::read() { std::string_view out; if (curbuff.empty()) { if (!eof) { if (rdbuff.empty()) rdbuff.resize(1000); int sz = sock->read(rdbuff.data(), rdbuff.size()); if (sz == 0) { eof = true; } else { if (sz == static_cast<int>(rdbuff.size())) rdbuff.resize(sz*3/2); out = rdbuff; out = out.substr(0, sz); } } } else { std::swap(out, curbuff); } return out; } std::size_t SocketStream::maxWrBufferSize = 65536; void SocketStream::putBack(const std::string_view &pb) { curbuff = pb; } void SocketStream::write(const std::string_view &data) { wrbuff.append(data); if (wrbuff.size() >= wrbufflimit) { flush_lk(); } } bool SocketStream::timeouted() const { return sock->timeouted(); } void SocketStream::closeOutput() { flush_lk(); sock->closeOutput(); } void SocketStream::closeInput() { sock->closeInput(); } void SocketStream::flush() { flush_lk(); } ISocket& SocketStream::getSocket() const { return *sock; } bool SocketStream::writeNB(const std::string_view &data) { wrbuff.append(data); return (wrbuff.size() >= wrbufflimit); } void SocketStream::flushAsync(const std::string_view &data, bool firstCall, CallbackT<void(bool)> &&fn) { if (data.empty()) { getCurrentAsyncProvider().runAsync([fn = std::move(fn)] { fn(true); }); } else { sock->write(data.data(), data.size(), [this, data, firstCall, fn = std::move(fn)](int r) mutable { if (r <= 0) { wrbuff.clear(); fn(false); } else if (static_cast<std::size_t>(r) == data.size()) { wrbufflimit = std::min(wrbufflimit * 3 / 2, maxWrBufferSize); wrbuff.clear(); fn(true); } else { if (!firstCall) wrbufflimit = (r * 2 + 2) / 3 ; flushAsync(data.substr(r), false, std::move(fn)); } }); } } void SocketStream::flushAsync(CallbackT<void(bool)> &&fn) { if (wrbuff.empty()) { getCurrentAsyncProvider().runAsync([fn = std::move(fn)] { fn(true); }); } else { std::string_view s(wrbuff); flushAsync(s, true, std::move(fn)); } } void SocketStream::flush_lk() { std::string_view s(wrbuff); if (!s.empty()) { unsigned int wx = sock->write(s.data(),s.length()); bool rep = wx < s.length(); while (rep) { s = s.substr(wx); wx = sock->write(s.data(),s.length()); rep = wx < s.length(); if (rep && wx < wrbufflimit) { wrbufflimit = (wx * 2+2) / 3; } } wrbufflimit = std::min(wrbufflimit *3/2, maxWrBufferSize); wrbuff.clear(); } } void SocketStream::readAsync(CallbackT<void(const std::string_view &data)> &&fn) { std::string_view out; if (curbuff.empty() && !eof) { if (rdbuff.empty()) rdbuff.resize(1000); sock->read(rdbuff.data(), rdbuff.size(), [this, fn = std::move(fn)](int sz){ std::string_view out; if (sz == 0) { eof = true; } else { if (sz == static_cast<int>(rdbuff.size())) rdbuff.resize(sz*3/2); out = rdbuff; out = out.substr(0, sz); } fn(out); }); } else { std::swap(out,curbuff); getCurrentAsyncProvider().runAsync([fn = std::move(fn), out](){ fn(out); }); } } std::size_t SocketStream::getOutputBufferSize() const { return wrbufflimit; } void SocketStream::clearTimeout() { sock->clearTimeout(); eof = false; } }
cpp
{"remainingRequest":"F:\\workspace\\jf_front_end\\node_modules\\babel-loader\\lib\\index.js!F:\\workspace\\jf_front_end\\node_modules\\eslint-loader\\index.js??ref--13-0!F:\\workspace\\jf_front_end\\src\\api\\modules\\file.js","dependencies":[{"path":"F:\\workspace\\jf_front_end\\src\\api\\modules\\file.js","mtime":1590460801053},{"path":"F:\\workspace\\jf_front_end\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"F:\\workspace\\jf_front_end\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"F:\\workspace\\jf_front_end\\node_modules\\eslint-loader\\index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:<KEY>},{"version":3,"sources":["F:/workspace/jf_front_end/src/api/modules/file.js"],"names":["service","request","serviceForMock","requestForMock","mock","faker","tools","FILE_GET","url","baseURL","process","env","BASE_URL","method"],"mappings":"AAAA,gBAAe;AAAA,MAAGA,OAAH,QAAGA,OAAH;AAAA,MAAYC,OAAZ,QAAYA,OAAZ;AAAA,MAAqBC,cAArB,QAAqBA,cAArB;AAAA,MAAqCC,cAArC,QAAqCA,cAArC;AAAA,MAAqDC,IAArD,QAAqDA,IAArD;AAAA,MAA2DC,KAA3D,QAA2DA,KAA3D;AAAA,MAAkEC,KAAlE,QAAkEA,KAAlE;AAAA,SAA+E;AAC5F;;;;AAIAC,IAAAA,QAL4F,sBAKxE;AAAA,UAAVC,GAAU,uEAAJ,EAAI;AAClB,aAAOP,OAAO,CAAC;AACbQ,QAAAA,OAAO,EAAEC,OAAO,CAACC,GAAR,CAAYC,QADR;AAEbJ,QAAAA,GAAG,EAAHA,GAFa;AAGbK,QAAAA,MAAM,EAAE;AAHK,OAAD,CAAd;AAKD;AAX2F,GAA/E;AAAA,CAAf","sourcesContent":["export default ({ service, request, serviceForMock, requestForMock, mock, faker, tools }) => ({\r\n /**\r\n * @description 请求项目中的文件\r\n * @param {String} url 文件地址\r\n */\r\n FILE_GET (url = '') {\r\n return request({\r\n baseURL: process.env.BASE_URL,\r\n url,\r\n method: 'get'\r\n })\r\n }\r\n})\r\n"]}]}
json
<gh_stars>1-10 # Black Gakkou ni Tsutometeshimatta Sensei ![black-gakkou-ni-tsutometeshimatta-sensei](https://cdn.myanimelist.net/images/manga/3/212584.jpg) - **type**: manga - **original-name**: ブラック学校に勤めてしまった先生 - **start-date**: 2017-08-09 ## Tags - comedy - ecchi - school - harem - seinen ## Authors - Souryuu (Story & Art) ## Sinopse The largest rise of dark skin gals of this century! The start of high school life with best and strongest girls out there!! High school teacher <NAME> has been assigned to work at this school, only to find out that everyone in the class is a dark skinned gal! Kuroi, Kuroiwa, Kuroiso...all the names have kuro (black) in them! Meanwhile, <NAME> already fell in love with her teacher...!? It's the start of these lust-filled girls straight love-attacks on teacher's life! (Source: MU) ## Links - [My Anime list](https://myanimelist.net/manga/114003/Black_Gakkou_ni_Tsutometeshimatta_Sensei)
markdown
from hytra.pluginsystem import transition_feature_vector_construction_plugin import numpy as np from compiler.ast import flatten class TransitionFeaturesSubtraction( transition_feature_vector_construction_plugin.TransitionFeatureVectorConstructionPlugin ): """ Computes the subtraction of features in the feature vector """ def constructFeatureVector( self, featureDictObjectA, featureDictObjectB, selectedFeatures ): assert "Global<Maximum >" not in selectedFeatures assert "Global<Minimum >" not in selectedFeatures assert "Histrogram" not in selectedFeatures assert "Polygon" not in selectedFeatures features = [] for key in selectedFeatures: if key == "RegionCenter": continue else: if ( not isinstance(featureDictObjectA[key], np.ndarray) or featureDictObjectA[key].size == 1 ): features.append( float(featureDictObjectA[key]) - float(featureDictObjectB[key]) ) else: features.extend( flatten( ( featureDictObjectA[key].astype("float32") - featureDictObjectB[key].astype("float32") ).tolist() ) ) # there should be no nans or infs assert np.all(np.isfinite(np.array(features))) return features def getFeatureNames(self, featureDictObjectA, featureDictObjectB, selectedFeatures): assert "Global<Maximum >" not in selectedFeatures assert "Global<Minimum >" not in selectedFeatures assert "Histrogram" not in selectedFeatures assert "Polygon" not in selectedFeatures featuresNames = [] for key in selectedFeatures: if key == "RegionCenter": continue else: if ( not isinstance(featureDictObjectA[key], np.ndarray) or featureDictObjectA[key].size == 1 ): featuresNames.append("A[{key}]-B[{key}]".format(key=key)) else: featuresNames.extend( [ "A[{key}][{i}]-B[{key}][{i}]".format(key=key, i=i) for i in range( len( ( featureDictObjectA[key] - featureDictObjectB[key] ).tolist() ) ) ] ) return featuresNames
python
{ "name": "ht-jsonrpc-http-transport", "version": "1.0.0", "description": "Hudson-Taylor JSONRPC/HTTP transport", "main": "lib/index.js", "scripts": { "test": "semistandard && mocha -r babel-register -R spec --bail", "build": "babel src -d lib", "prepublish": "npm run build" }, "repository": { "type": "git", "url": "git+https://github.com/hudson-taylor/jsonrpc-http-transport.git" }, "keywords": [ "hudson-taylor", "ht-transport" ], "author": "jasonk000", "license": "ISC", "bugs": { "url": "https://github.com/hudson-taylor/jsonrpc-http-transport/issues" }, "homepage": "https://github.com/hudson-taylor/jsonrpc-http-transport#readme", "devDependencies": { "babel-cli": "^6.5.1", "babel-plugin-add-module-exports": "^0.1.2", "babel-preset-es2015": "^6.5.0", "babel-register": "^6.5.2", "mocha": "^5.2.0", "openport": "0.0.4", "semistandard": "^10.0.0" }, "dependencies": { "body-parser": "^1.15.0", "cors": "^2.7.1", "express": "^4.13.4", "ht-utils": "^1.0.0", "request": "^2.69.0" } }
json
कांग्रेस से घबराई तेलंगाना सरकार, रैली रोकने की तैयारी ! Product Links : PS - My channel is dedicated to my much beloved n most missed Father - Mr. Kulwant Singh. He was, is and will always be in my heart to heal it whenever it gets hurt. He's living this life through me. Pilgrim, a vegan skincare brand, has announced that it is launching a lip care range, including lip serums, lip balms, lip scrubs and lip sleeping masks, in a range of fun and deliciously fragrant flavours including bubblegum, blueberry, and peppermint. (Code available only on their official website) Follow me on all my social media's below: Hi friends..Today i will show you how to make thorana beautiful..Thorana decorations.. Follow me : Subscribe Now - http://bit.ly/2ofH4S4 Stay Updated! ???? Press Conference by Union Minister of Jal Shakti Shri Gajendra Singh Shekhawat at BJP HQ. TV24 is Punjab's Best News channel which includes all the News from Punjab state. please do subscribe our channel for all the latest updates. Tv24 punjab is a 24*7 news channel. Tv24 established its image as a voice for society, in a free and fair way, without fear or favour from any political or other vested interests. Tv24 punjab Broadcast and Publish News, Special reports to provide a voice to the society . We at Tv24 Punjab Conduct conferences, seminars and promote art and culture. We are your voice. We are for Human rights. Send your voice to us we will raise your voice. Follow us for Breaking News, Sports Coverage, Entertainment, Bollywood news & more!
english
Back in February, Uilleam Blacker of Memory at War: Blog wrote about “a war of monuments” in Ukraine. LEvko of Foreign Notes explains possible reasons – here and here – for targeting Ukraine's ex-president Leonid Kuchma, against whom a criminal investigation has recently been opened on suspicion of his involvement in the 2000 murder of journalist Georgiy Gongadze. Viktor Kovalenko writes about the views of Myroslava Gongadze – who is the widow of the slain Ukrainian journalist Georgiy Gongadze – on the freedom of the press and other issues in Ukraine. Ukraine: Comparing Fukushima to Chernobyl? The media are increasingly present the situation at Fukushima as the world’s worst nuclear accident since the Soviet-era Chernobyl disaster. This news has hit home in Ukraine, where Chernobyl is located and where memories of the terrible events of 25 years ago are still very much alive. Katya Trubilova of Social Media Lessons From Russia and the UK writes about social media monitoring tools produced in Russia and Ukraine. @BrianDunning, author of a science podcast Skeptoid, explains: “Fukushima nuclear plant does NOT have a combustible graphite core like Chernobyl. A total meltdown should flow into underground containment. ” (This explanation has been retweeted by over 100 people already. ) Foreign Notes writes about the cases against Ukraine's ex-PM Yulia Tymoshenko (“180 volumes of evidence of between 250 and 300 pages each”) and ex-Interior Minister Yuri Lutsenko.
english
import json import string, sys from random import * class Token: def __init__(self): self.company, self.website, self.email, self.username, self.password = None, None, None, None, None def get_input(self): while(self.company in (None,'')): self.company = input('Account Association:') if(self.company in (None,'')): print('Account Association cannot be null, try again.') self.website = input('Website linked to the account:') self.email = input('Email linked to the account:') # while(self.email in (None,'')): # self.email = input('Registered Email:') # if(self.email in (None,'')): # print('Email cannot be null, try again.') while(self.username in (None,'')): self.username = input('Username:') if(self.username in (None,'')): print('Username cannot be null, try again.') while(self.password in (None,'')): select = input('Random generate a password for you? Type Y or N. ').strip().lower() if(select in ('y','yes')): characters = string.ascii_letters + string.punctuation + string.digits low_bound, up_bound = 10, 20 password = "".join(choice(characters) for x in range(randint(low_bound, up_bound))) self.password = password print('auto generated password:'+self.password) elif(select in ('n','no')): self.password = input('Password:') if(self.password in (None,'')): print('Password cannot be null, try again.') else: print('Incorrect choice. Try again.') class MyEncoder(json.JSONEncoder): def default(self, obj): if not isinstance(obj, Token): return super().default(obj) return obj.__dict__ # tok = Token() # tok.get_input() # print(json.dumps(tok, cls=MyEncoder))
python
Ravi, (55) a fisherman on the Wellawatte beach, remembers when the thick black sludge started washing ashore the beaches on the western coast of Sri Lanka. It was a Sunday—June 2—and the usual crowds that are drawn to the beach on the weekend were there; tourists wanting to soak in the sights and sun, and families wanting to bathe and lunch by the sea. “We told them there’s oil in the water but they didn’t listen to us,” Ravi told Roar Media. Beachgoers found themselves covered in the oil when they came out of the water. “There were children too, who were covered in the black residue. They had to wash themselves in kerosene before they left,” Ravi said. Dr. B. P. Terney Pradeep Kumara, General Manager of the Marine Environment Protection Agency (MEPA), noted that the situation is called a ‘tarball effect’, where a mass of petroleum has ‘weathered’ after floating in the ocean. When exposed to elements like wind and water, petroleum undergoes physical changes and is scattered over a wider area. The MEPA had only warned the public about a kilometre-long stretch on the Wellawatte beach being polluted, but the full extent of the oil slick was very visible by the next day. Trash coated in the tar and oil had washed up after the previous night’s high tide and was seen lining the Wellawatte beach stretch. A murder of crows, an unusual sight according to the residents of the beach, were seen flocking at the beach, scavenging the shored up trash. Dr. Kumara told Roar Media that the situation arises when a vessel releases oil after cleaning — which is illegal. “The oil substance is similar to the oil released from ships after a tank is cleaned. The act could either be an accident or deliberate. It nevertheless is criminal; therefore, the offenders can be fined up to Rs. 14 million. MEPA has also lodged a complaint with the Mount Lavinia Police in this regard, while the Coast Guard and Sri Lanka Navy are assisting investigations. We have received information as to the vessels that have travelled in the vicinity in the last few days but it’s a difficult task to determine which vessel committed the act,” he said. When the MEPA was informed, it issued a public notice that Sunday morning, advising the public to exercise caution while using the beach. The beach, which is a hotspot for joggers and tourists, was empty, and fishermen claimed there weren’t any fish in the area either. A few days after the cleanup operation, the beach strip from Wellawatte to Mount Lavinia has been now been declared open to the public, according to Dr. Kumara. “What remains is a little amount that will not have a great impact on the environment. Cleanup operations were successful and it was called off due to the fact that it is impossible to clean small particles that have mixed with the sand,” he said. Dr. Kumara said there was no visible impact from the incident on the local biosphere and noted that the consequences of the incident, if any, were not immediately quantifiable. He also said that MEPA had not yet received any complaints of major health issues as a result of the incident.
english
<reponame>Paul11100/LeetCode class Solution: # Accumulator List (Accepted), O(n) time and space def waysToMakeFair(self, nums: List[int]) -> int: acc = [] is_even = True n = len(nums) for i in range(n): even, odd = acc[i-1] if i > 0 else (0, 0) if is_even: even += nums[i] else: odd += nums[i] is_even = not is_even acc.append((even, odd)) res = 0 for i in range(n): even = odd = 0 if i > 0: even += acc[i-1][0] odd += acc[i-1][1] if i < n-1: even += acc[n-1][1] - acc[i][1] odd += acc[n-1][0] - acc[i][0] if even == odd: res += 1 return res # Two Sum Pairs for even and odd (Top Voted), O(n) time, O(1) space def waysToMakeFair(self, A: List[int]) -> int: s1, s2 = [0, 0], [sum(A[0::2]), sum(A[1::2])] res = 0 for i, a in enumerate(A): s2[i % 2] -= a res += s1[0] + s2[1] == s1[1] + s2[0] s1[i % 2] += a return res
python
{ "name":"cuddle", "actor_no_arg":"Whom do you feel like cuddling today?", "others_no_arg":"$n throws $s arms wide open, yelling 'Cuddle me!'", "actor_found_target":"You cuddle $M.", "others_found":"$n cuddles $N.", "target_found":"$n cuddles you.", "actor_auto":"They aren't here.", "others_auto":"$n cuddles up to $s shadow. What a sorry sight." }
json
MS Subbulakshmi, who had performed at the world body 50 years ago was honored by the UN Postal Administration as postal stamps were released on Sunday (October 1). According to reports, the stamp was released at a special ceremony at the UN headquarters to mark India's ratification of the historic Paris climate deal. It was attended by several dignitaries who hailed the country's move to combat global warming. The event also was graced by the presence of several dignitaries. Sudha Raghunathan concluded the ceremony with a soulful rendition of Subbulakshmi's music as well as of Gandhi's beloved Ram Dhun. Interestingly, Sudha Raghunathan performed songs in seven languages, including Bengali, and received a standing ovation from the audience. The first stamp was presented to Ragunathan to honor her performance at the UN. Subbulakshmi, the first ever musician to be awarded Bharat Ratna, India's highest civilian honor, was invited by the then UN Secretary General Late U Thant to perform at the General Assembly in October 1966, becoming the first Indian to perform there. The Indian mission here had also organised a photo exhibition in August at the world body's headquarters to commemorate Subbulakshmi's birth centenary which fell on September 16.
english
Pro-rakyat economists have called for urgent scrutiny of the proposed UEM Sunrise-Eco World merger. The main concern is, according to them, is the deal a way to bail out a highly indebted developer? I'll try and explain some of the key contentious issues about the merger. 1) Loss of control. UEM Sunrise is technically the people's company through UEM Group vai Khazanah and also LUTH. A merger could dilute Khazanah's shares to about 40% from 66%, LUTH's to under 4% from 7%. EcoWorld will have about 24% of the combined entity. *note that UEM maintains that it will remain in charge of the new entity although critics are challenging this. The latter claimed Eco World's management will lead. Critics thus ask why would Khazanah willingly cede control? *Questions were raised as to why Khazanah would want to incur more debt. Indirectly, the new debt becomes our debt. There is also suspicion that Eco World needed Khazanah as a backer because they could borrow more. *UEM Sunrise has much lower borrowings and also access to cheaper land. UEM Group, however, said Eco World's assets have potential despite its smaller landbank. 3) Why now? The timing of the merger is suspect. Critics of the merger said Khazanah would be investing in a high-end property company in the middle of a downturn. Then there is the question of who gets to stay and who or how many would be out of jobs. 4) Liew's history. The tycoon founded SP Setia but later sold it to PNB at RM3.95 per share. It's dropped to just 75 cents now, critics noted. Liew was also accused of poaching SP Setia's management and absorb them into Focal Aims Sdn Bhd, which was later renamed to Eco World.
english
export * from "./class"; export * from "./file"; export * from "./function"; export * from "./import";
typescript
Automotive Supplier Sona Comstar will launch its Rs 5,550-crore initial public offer (IPO) next week. The company has priced the offer at Rs 285–291 per share. The IPO will remain open between June 14 to June 16, and anchor investors will be allotted shares on Friday. The issue consists of a fresh sale of Rs 300 crore and an offer for sale (OFS) worth Rs 5,250 crore, of shares held by Singapore Topco, an affiliate of the Blackstone group. Singapore Topco's current holding stands at 66. 2 per cent of the pre-offer paid-up equity capital of the company. Sona Comstar was planning to raise Rs 6,000 crore earlier, but Singapore Topco decided to reduce the OFS portion. Post-offer, the firm will hold a little over 33 per cent in the company. The company intends to use the proceeds from the fresh issue to repay Rs 241 crore of borrowings. TO READ THE FULL STORY, SUBSCRIBE NOW NOW AT JUST RS 249 A MONTH. What you get on Business Standard Premium? - Unlock 30+ premium stories daily hand-picked by our editors, across devices on browser and app. - Pick your 5 favourite companies, get a daily email with all news updates on them. - Full access to our intuitive epaper - clip, save, share articles from any device; newspaper archives from 2006. - Preferential invites to Business Standard events. - Curated newsletters on markets, personal finance, policy & politics, start-ups, technology, and more.
english
Kathmandu, Dec 16. NIBL Ace Capital Ltd. has launched Free DEMAT account and Free MEROSHARE registration starting from today Poush 01, 2077 (December 16, 2020). This offer is for limited time period only. The Free DEMAT Account and Free MEROSHARE is offered from NIBL Ace Capital Lazimpat, Kathmandu and its branches as well as from all the branches of Nepal Investment Bank Ltd. In addition to this, they have assured to provide demat account number and meroshare registration in the same day. NIBL Ace Capital has promised to provide many more services that would ease their customers and would like to extend a sincere thanks to their entire customer who have been associated and contributed with their feedback and suggestions.
english
Strict vigil was being kept in Maoist-hit Palamau, Latehar and Garhwa districts of Jharkhand with the intelligence having been directed to report about any ‘suspicious act’ to the police headquarters in the wake of Mumbai bomb blasts. “We are keeping watch on people with past criminal records. The police have stepped up patrolling in sensitive areas in the districts,” Deputy Inspector General of Police (Palamau Range), Laxman Prasad Singh, told reporters. Referring to Thursday midnight’s raid of a suspected SIMI activist in Ranchi by an anti—terrorist squad from Hyderabad, Singh said raids could not be ruled out anywhere, based on intelligence inputs. “Besides keeping strict vigil in sensitive areas of Palamau division, the intelligence network has been alerted with the order to report any suspicious action immediately,” he added. A senior IPS official had on Thursday said that the ATS team from Hyderabad carried out the raids at the house of a suspected SIMI activist at Bariatu in Ranchi in connection with a case pertaining to Ahmedabad, but could not locate him. Deputy Inspector General of Police Laxman Prasad Singh told the media at Medininagar that special anti-naxal operation is being carried out in Palamau and Chatra districts with assistance from security forces in Bihar’s Gaya district. The police and the para-military forces have launched a coordinated operation against all the Naxal outfits, including the CPI (Maoist) in Chatra and Palamau, he said. The forces from Jharkhand’s Hazaribagh and Koderma and neighbouring Gaya are also assisting in the operation so that the extremists could not escape and confine to their areas. “This operation will continue indefinitely as the effort will be to root out extremists from these areas,” he added. Palamau and Chatra are among 18 of the 24 districts in the state where at least six Naxal outfits are operating, including the CPI (Maoist) and its splinter groups.
english
<gh_stars>0 import wandb import torch from utils.print_util import cprint def wandb_init(config): cprint("[ Setting up project on W&B ]", type="info3") wandb.init(project="plantpatho-2020") wandb.config.experiment_name = config['experiment_name'] wandb.config.seed = config['seed'] wandb.config.model = config['model']['name'] wandb.config.prediction_type = config['model']['pred_type'] wandb.config.optimiser = config['optimiser']['name'] wandb.config.learning_rate = config['optimiser']['hyper_params']['learning_rate'] wandb.config.loss_function = config['loss_function']['name'] wandb.config.resize_dims = config['train_dataset']['resize_dims'] wandb.config.epochs = config["epochs"] wandb.config.batch_size = config["batch_size"] # saving config files to W&B wandb.save('./config/' + config['experiment_name'] + '.yml') return True def publish_intermediate(results, best_val_loss, best_kaggle_metric, output_list, target_list): wandb.run.summary["best_val_loss"] = best_val_loss wandb.run.summary["best_kaggle_metric"] = best_kaggle_metric # saving confusion matrix (image) # wandb.sklearn.plot_confusion_matrix( # torch.argmax(target_list, dim=1).numpy(), # torch.argmax(output_list, dim=1).numpy(), # ['H', 'MD', 'R', 'S'] # ) return wandb.log(results)
python
New Delhi: The Delhi High Court has given a go-ahead to Delhi University to declare the results for the post of President in the Delhi University Students Union (DUSU) election which is being held today. The counting of votes is scheduled for tomorrow. The High Court's order came on a plea by the University seeking modification of its September 8 interim order by which it had allowed National Students Union of India (NSUI) presidential candidate Rocky Tuseed to contest the election but directed the varsity not to declare the results for the post of the President. The order came after the university contended that partial counting of votes would not be possible as the polls were being conducted through electronic voting machine (EVM) which consists of a single control unit. The court however said the election outcome will be subject to its final decision in the pending petition of Mr Tuseed who has challenged the University Election Commission's order rejecting his nomination for the election. "The result for the post of the President be declared as per schedule. The outcome of the election result will be subject to the outcome of this main petition," Justice Indermeet Kaur said. The high court had in an interim order on September 8 allowed Mr Tuseed to contest the DUSU elections while setting aside the September 7 order of Delhi University Chief Election Officer. "The petitioner (Tuseed) is permitted to participate in the election of the DUSU for the post of President. He is also permitted to to campaign for the said post. The result of the election will, however, not be declared, it will be kept in a sealed cover. Subject to the final outcome of the writ petition, final result will be declared," it had then said. During the day's hearing, the University's counsel sought modification of the court's order saying polling was done by electronic voting machine (EVM) comprising one control unit. He said that partial counting was not possible in the machine and it will not be able to complete the counting and the election process. The court noted that the plea was not opposed by Mr Tuseed's counsel. Mr Tuseed, who has filed the petition through advocate Nikhil Bhalla and Harsh Bawa, challenged the decision to reject his nomination for the post of President. The court had listed for September 28, his main petition challenging the rejection of his nomination on grounds of disciplinary action. The high court had earlier posed searching questions to Delhi University for rejecting the nomination of the Congress-affiliate NSUI's presidential candidate. It had asked the University how a warning given to a student by a college could be termed as disciplinary action taken against him. "The petitioner says he was warned by Shivaji College and it was not a disciplinary action which this court is finding to be true. I don't understand how can it be a disciplinary action. By no stretch of imagination, it can be put as a disciplinary action," the judge had said. The court had also said that Delhi University was "stigmatising" the student by rejecting his nomination. The petition was opposed by DU saying it was not maintainable and the university has been wrongly made a party.
english
<!DOCTYPE html> <html lang="en" class="no-js"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>3D Letters Menu Hover Effect | Codrops</title> <meta name="description" content="A hover animation for a menu with 3D letters and image effect."> <meta name="keywords" content="gsap, animation, 3d, hover, menu, image, web design, javascript, template"> <meta name="author" content="Codrops"> <link rel="shortcut icon" href="favicon.26242483.ico"> <link rel="stylesheet" href="https://use.typekit.net/pkk0kuo.css"> <link rel="stylesheet" type="text/css" href="base.98fd6c19.css"> <script>document.documentElement.className = "js"; var supportsCssVars = function supportsCssVars() { var e, t = document.createElement("style"); return t.innerHTML = "root: { --tmp-var: bold; }", document.head.appendChild(t), e = !!(window.CSS && window.CSS.supports && window.CSS.supports("font-weight", "var(--tmp-var)")), t.parentNode.removeChild(t), e; }; supportsCssVars() || alert("Please view this demo in a modern browser that supports CSS Variables.");</script> <link rel="stylesheet" href="js.00a46daa.css"></head> <body class="loading"> <main> <div class="frame"> <h1 class="frame__title">3D Letters Menu Hover Effect</h1> <div class="frame__links"> <a href="http://tympanus.net/Development/3DGridContentPreview/" class="frame__link">Previous demo</a> <a href="https://tympanus.net/codrops/?p=54446" class="frame__link">Article</a> <a href="https://github.com/codrops/3DLettersMenuHover/" class="frame__link">GitHub</a> </div> <a class="frame__author noline" href="https://arielcnd.com/">@Ariel C_ND_</a> <a class="frame__related noline" href="https://tympanus.net/codrops/category/playground/">More demos</a> </div> <nav class="menu"> <a class="menu__item" data-img="img/1.jpg"> <span class="menu__item-text" data-splitting="">Alegreya</span> </a> <a class="menu__item" data-img="img/2.jpg"> <span class="menu__item-text" data-splitting="">Antonio</span> </a> <a class="menu__item" data-img="img/3.jpg"> <span class="menu__item-text" data-splitting="">Archivo</span> </a> <a class="menu__item" data-img="img/4.jpg"> <span class="menu__item-text" data-splitting="">Valo</span> </a> <a class="menu__item" data-img="img/5.jpg"> <span class="menu__item-text" data-splitting="">Opanci</span> </a> <a class="menu__item" data-img="img/6.jpg"> <span class="menu__item-text" data-splitting="">Insan</span> </a> </nav> <p class="content"> Sinoć kad se vraćah iz topla hamama,<br> prođoh pokraj bašče staroga imama.<br> Kad tamo u bašči, u hladu jasmina<br> s ibrikom u ruci stajaše Emina.<br> Ja kakva je pusta! Tako mi imana,<br> stid je ne bi bilo da je kod sultana.<br> Pa još kada šeće i plećima kreće,<br> ni hodžin mi zapis više pomoć' neće!<br> Ja joj nazvah selam. Al' moga mi dina,<br> ne šće ni da čuje lijepa Emina,<br> već u srebrn ibrik zahvatila vode,<br> pa niz bašču đule zaljevati ode. </p> </main> <svg class="cursor" width="20" height="20" viewBox="0 0 20 20"> <circle class="cursor__inner" cx="10" cy="10" r="5"></circle> </svg> <script src="js.00a46daa.js"></script> </body> </html>
html
# Material Design Icons for Flutter Material Design Icons generated using `@mdi/util` provided by [materialdesignicons.com](https://materialdesignicons.com). ### Install ```yaml mdi: 0.2.2 ``` ### Usage ```dart import 'package:mdi/mdi.dart'; class AccessPointButton extends StatelessWidget { Widget build(BuildContext context) { return IconButton( icon: Icon(Mdi.accessPoint), ); } } ``` ### Naming The icon names provided via `Mdi` are camelCased variants of the original name. ##### Exceptions: 1. null -> nullIcon 2. switch -> switchIcon 3. sync -> syncIcon 4. factory -> factoryIcon ### Want to help? If you find the icons are outdated or there are bugs to be fixed, just submit a PR. To update the icon base and regenerate newer bindings to it, do the following: ``` $ yarn upgrade $ yarn build ```
markdown
Trailing 0-1 in the series, the West Indies have brought in two fresh faces – Kyle Hope and Sunil Ambris – for the remaining three ODIs against India. Hope and Ambris replaced Jonathan Carter and Kesrick Williams in the 13-man squad, reported PTI. Hope, brother of current West Indies wicketkeeper, leads Trinidad and Tobago in domestic cricket while Ambris plays as a wicketkeeper-batsman for Windward Islands. “Sunil Ambris and Kyle Hope are two very promising young batsmen who have been selected on the basis of strong performances in our competitions,” said Courtney Browne, Cricket West Indies’ chairman of selectors. Talking about Ambris, Browne added: “Sunil did well in our Regional Super50 One-Day tournament and also had a good showing in this year’s PCL first-class tournament for Windward Islands Volcanoes, and therefore will fit within our middle order. The third ODI takes place in Antigua on Friday and the same venue will also stage the fourth ODI before teams travel to Jamaica for the final ODI and a T20 International. India lead the series 1-0 after a comfortable 105-run win in the second ODI at Port of Spain, following the washed out series opener. Jason Holder (captain), Sunil Ambris, Devendra Bishoo, Roston Chase, Miguel Cummins, Kyle Hope, Shai Hope, Alzarri Joseph, Evin Lewis, Jason Mohammed, Ashley Nurse, Kieran Powell, Rovman Powell.
english
import React, {useCallback, useEffect, useState} from 'react'; import Grid from "@material-ui/core/Grid"; import {makeStyles} from '@material-ui/core/styles'; import Drawer from '@material-ui/core/Drawer'; import CssBaseline from '@material-ui/core/CssBaseline'; import List from '@material-ui/core/List'; import Divider from '@material-ui/core/Divider'; import ListItem from '@material-ui/core/ListItem'; import ListItemText from '@material-ui/core/ListItemText'; import MapContainer from "../../components/mapContainer/MapContainer"; import {Button, Dialog, DialogTitle, Tooltip} from "@material-ui/core"; import {useRecoilState} from "recoil"; import { deceasedSelector, infectiousCountriesCountSelector, infectiousSelector, recoveredSelector, separateCountryByInfectivitySelector, susceptiblesSelector } from "../../data/map/MapContainerState"; import BottomInfoBar from "../../components/bottomInfoBar/BottomInfoBar"; import DateRightBar from "../../components/dateRightBar/DateRightBar"; import { AirplanemodeInactive, DeveloperBoardTwoTone, EmailTwoTone, ExitToAppTwoTone, FastForward, ForumTwoTone, ListAltTwoTone, LocalHospitalTwoTone, Pause, PlayArrow, PollTwoTone, SecurityTwoTone } from "@material-ui/icons"; import PermContactCalendarTwoToneIcon from '@material-ui/icons/PermContactCalendarTwoTone'; import TravelRestriction from "../../components/gameControls/TravelRestriction"; import CountriesListRightBar from "../../components/countriesListRightBar/CountriesListRightBar"; import {GameTimeState} from "../../data/gameTime/GameTimeState"; import {GameFlowState} from "../../data/gameTime/GameFlowState"; import {GameIntervalState} from "../../data/gameTime/GameIntervalState"; import TracingTesting from "../../components/gameControls/TracingTesting"; import InfectionPrevention from "../../components/gameControls/InfectionPrevention"; import Cure from "../../components/gameControls/Cure"; import Communication from "../../components/gameControls/Communication"; import Vaccine from "../../components/gameControls/Vaccine"; import GraphContainer from "../../components/graphContainer/GraphContainer"; import MessageModal from "../../components/messageModal/MessageModal"; import {ToggleButton, ToggleButtonGroup} from "@material-ui/lab"; import {mapColorDataState} from "../../data/map/MapColorDataState"; import GameTrust from "../../components/gameTrust/GameTrust"; import {GameTrustState} from "../../data/gameTrust/GameTrustState"; import {TrustMessageState} from "../../data/gameTrust/TrustMessageState"; import GameCurrencyRightBar from "../../components/gameCurrencyRightBar/GameCurrencyRightBar"; import MessageWrapper from "../../components/messageModal/MessageWrapper"; import {MessageModalState} from "../../data/messages/MessageModalState"; import PagesNavigationModal from "../../components/pagesNavigation/PagesNavigationModal"; import {GameOverState} from "../../data/GameOverState"; import GameOverModal from "../../components/gameOverModal/GameOverModal"; import ResponsiveDesign, {useWindowDimensions} from "../ResponsiveDesign"; import Typography from "@material-ui/core/Typography"; import {GameStartState} from "../../data/GameStartState"; /** * Renders a MainPage component. * Component is used as main page (page for playing). * @returns {JSX.Element} * @constructor * @component */ function MainPage() { //width of drawer component on right side of the screen let drawerWidth = 240; const {height, width} = useWindowDimensions(); //breakpoint for changing drawer width const mobileDrawerBreakpoint = 820; if (width < mobileDrawerBreakpoint) { drawerWidth = 200; } /** * styling of specific components */ const useStyles = makeStyles(() => ({ downInfoBar: { width: `calc(100% - ${drawerWidth}px)`, marginRight: drawerWidth, backgroundColor: 'lightgrey', }, appBar: { width: `calc(100% - ${drawerWidth}px)`, marginRight: drawerWidth, }, drawer: { width: drawerWidth, flexShrink: 0, }, drawerPaper: { width: drawerWidth, }, gameSpeedButtons: { margin: "2px" }, gameSpeedButtonsMobile: { margin: '1px', }, content: { backgroundColor: 'lightgrey', position: 'absolute', width: '100% !important', height: '100% !important', }, drawerIcons: { marginRight: "20px" }, gameSpeedButtonsWrapperMobile: { padding: "0px" }, gameSpeedButtonsWrapper: {}, toggleButtonGroup: { display: 'flex' }, toggleButton: { flex: 1 }, aboutInfo: { marginLeft: "10px", } })); const classes = useStyles(); //setter for setting game flow (running or paused) const [, setGameFlow] = useRecoilState(GameFlowState); //setter for setting time for interval const [, setIntervalSpeed] = useRecoilState(GameIntervalState); //color of buttons, which handle game flow const [pauseColor, setPauseColor] = useState("primary"); const [unpauseColor, setUnpauseColor] = useState("default"); const [forwardColor, setForwardColor] = useState("default"); const [pauseOutline, setPauseOutline] = useState("contained"); const [unpauseOutline, setUnpauseOutline] = useState("outlined"); const [forwardOutline, setForwardOutline] = useState("outlined"); /** * arrow function for pausing game */ const gamePause = useCallback(() => { setGameFlow(false); setPauseColor("primary"); setUnpauseColor("default"); setForwardColor("default"); setPauseOutline("contained"); setUnpauseOutline("outlined"); setForwardOutline("outlined"); }, [setGameFlow]) /** * arrow function for unpausing game */ const gameUnpause = () => { setGameFlow(true); setPauseColor("default"); setUnpauseColor("primary"); setForwardColor("default"); setPauseOutline("outlined"); setUnpauseOutline("contained"); setForwardOutline("outlined"); setIntervalSpeed(2500); } /** * arrow function for speeding the game */ const gameForward = () => { setGameFlow(true); setPauseColor("default"); setUnpauseColor("default"); setForwardColor("primary"); setPauseOutline("outlined"); setUnpauseOutline("outlined"); setForwardOutline("contained"); setIntervalSpeed(1000); } //modal for countries list const [openCountriesList, setOpenCountriesList] = React.useState(false); const handleClickOpenCountriesList = () => { gamePause(); setOpenCountriesList(true); }; const handleClickCloseCountriesList = () => { gameUnpause(); setOpenCountriesList(false); }; //measurements modal 1 const [openTravelRestriction, setOpenTravelRestriction] = React.useState(false); const handleClickOpenTravelRestriction = () => { setOpenTravelRestriction(true); }; const handleCloseTravelRestriction = () => { setOpenTravelRestriction(false); }; //measurements modal 2 const [openTracingTesting, setOpenTracingTesting] = React.useState(false); const handleClickOpenTracingTesting = () => { setOpenTracingTesting(true); }; const handleCloseTracingTesting = () => { setOpenTracingTesting(false); }; //measurements modal 3 const [openInfectionPrevention, setOpenInfectionPrevention] = React.useState(false); const handleClickOpenInfectionPrevention = () => { setOpenInfectionPrevention(true); }; const handleCloseInfectionPrevention = () => { setOpenInfectionPrevention(false); }; //measurements modal 4 const [openCure, setOpenCure] = React.useState(false); const handleClickOpenCure = () => { setOpenCure(true); }; const handleCloseCure = () => { setOpenCure(false); }; //measurements modal 5 const [openCommunication, setOpenCommunication] = React.useState(false); const handleClickOpenCommunication = () => { setOpenCommunication(true); }; const handleCloseCommunication = () => { setOpenCommunication(false); }; //measurements modal6 const [openVaccine, setOpenVaccine] = React.useState(false); const handleClickOpenVaccine = () => { setOpenVaccine(true); }; const handleCloseVaccine = () => { setOpenVaccine(false); }; //modal7 - graph const [openGraph, setOpenGraph] = React.useState(false); const handleClickOpenGraph = () => { setOpenGraph(true); }; const handleCloseGraph = () => { setOpenGraph(false); }; // modal8 - game trust const [openTrust, setOpenTrust] = React.useState(false); const handleClickOpenTrust = () => { setOpenTrust(true); }; const handleCloseTrust = () => { setOpenTrust(false); }; //modal9 - game messages const [openMessages, setOpenMessages] = React.useState(false); const handleClickOpenMessages = () => { setOpenMessages(true); }; const handleCloseMessages = () => { setOpenMessages(false); }; //modal10 - navigation to welcome page const [openPageNavigation, setOpenPageNavigation] = React.useState(false); const handleClickOpenPageNavigation = () => { setOpenPageNavigation(true); }; const handleClickClosePageNavigation = () => { setOpenPageNavigation(false); }; //game started check const [openGameStartModal, setOpenGameStartModal] = useRecoilState(GameStartState); const handleCloseGameStartModal = () => { setOpenGameStartModal(false); gameUnpause(); }; //game over check const [gameOver,] = useRecoilState(GameOverState); const [openGameOver, setOpenGameOver] = React.useState(false); useEffect(() => { return () => { setOpenGameOver(true); gamePause(); }; }, [gameOver, gamePause]); //map data - color const [mapColor, setMapColor] = useRecoilState(mapColorDataState); const handleMapColor = (event, newColor) => { setMapColor(newColor); }; return ( <div> <CssBaseline/> <main className={classes.content}> <Grid container direction="row" justify="center" alignItems="center"> {/*map wrapper*/} <Grid item xs={12} className={classes.appBar}> <MapContainer/> </Grid> <Grid container direction="row" justify="space-around" alignItems="center" spacing={1} className={classes.downInfoBar}> {/*components with compartment stats at the bottom*/} <Grid item xs={6} md={3}> <BottomInfoBar name="Náchylní" dataSelector={susceptiblesSelector}/> </Grid> <Grid item xs={6} md={3}> <BottomInfoBar name="Infekční" dataSelector={infectiousSelector}/> </Grid> <Grid item xs={6} md={3}> <BottomInfoBar name="Zotavení" dataSelector={recoveredSelector}/> </Grid> <Grid item xs={6} md={3}> <BottomInfoBar name="Zosnulí" dataSelector={deceasedSelector}/> </Grid> </Grid> </Grid> </main> <Drawer className={classes.drawer} variant="permanent" classes={{paper: classes.drawerPaper}} anchor="right"> {/*buttons for map color change*/} <ToggleButtonGroup value={mapColor} exclusive onChange={handleMapColor} className={classes.toggleButtonGroup}> <ToggleButton value="infectious" className={classes.toggleButton}> <Tooltip title="Mapa infekčných"> <Typography> Infekční</Typography> </Tooltip> </ToggleButton> <ToggleButton value="deceased" className={classes.toggleButton}> <Tooltip title="Mapa zosnulých"> <Typography> Zosnulí</Typography> </Tooltip> </ToggleButton> </ToggleButtonGroup> <Divider/> <List> {/*game time wrapper*/} <ListItem button> <Tooltip title="Herný dátum"> <ListItemText> <DateRightBar dateState={GameTimeState}/> </ListItemText> </Tooltip> </ListItem> {/*game flow buttons*/} <ListItem button className={width < mobileDrawerBreakpoint ? classes.gameSpeedButtonsWrapperMobile : classes.gameSpeedButtonsWrapper}> <Tooltip title="Stopnutie hry"> <Button onClick={gamePause} color={pauseColor} variant={pauseOutline} className={width < mobileDrawerBreakpoint ? classes.gameSpeedButtonsMobile : classes.gameSpeedButtons}> <Pause/> </Button> </Tooltip> <Tooltip title="Pokračovať v hre"> <Button onClick={gameUnpause} color={unpauseColor} variant={unpauseOutline} className={width < mobileDrawerBreakpoint ? classes.gameSpeedButtonsMobile : classes.gameSpeedButtons}> <PlayArrow/> </Button> </Tooltip> <Tooltip title="Zrýchliť hru"> <Button onClick={gameForward} color={forwardColor} variant={forwardOutline} className={width < mobileDrawerBreakpoint ? classes.gameSpeedButtonsMobile : classes.gameSpeedButtons}> <FastForward/> </Button> </Tooltip> </ListItem> <Divider/> {/*game trust wrapper*/} <ListItem button> <ListItemText onClick={handleClickOpenTrust}> <GameTrust trustState={GameTrustState}/> </ListItemText> </ListItem> {/*game currency wrapper*/} <ListItem button> <ListItemText> <GameCurrencyRightBar/> </ListItemText> </ListItem> </List> <Divider/> {/*game measurements wrapper*/} <List> <ListItem button onClick={handleClickOpenTravelRestriction}> <AirplanemodeInactive className={classes.drawerIcons}/> <ListItemText primary="Obmedzenia cestovania"/> </ListItem> <ListItem button onClick={handleClickOpenTracingTesting}> <PermContactCalendarTwoToneIcon className={classes.drawerIcons}/> <ListItemText primary="Trasovanie kontaktov a testovanie"/> </ListItem> <ListItem button onClick={handleClickOpenInfectionPrevention}> <SecurityTwoTone className={classes.drawerIcons}/> <ListItemText primary="Prevencia nakazenia"/> </ListItem> <ListItem button onClick={handleClickOpenCure}> <LocalHospitalTwoTone className={classes.drawerIcons}/> <ListItemText primary="Liečba"/> </ListItem> <ListItem button onClick={handleClickOpenCommunication}> <ForumTwoTone className={classes.drawerIcons}/> <ListItemText primary="Komunikácia a spolupráca"/> </ListItem> <ListItem button onClick={handleClickOpenVaccine}> <DeveloperBoardTwoTone className={classes.drawerIcons}/> <ListItemText primary="Vakcína"/> </ListItem> </List> <Divider/> <List> {/*coutnries table wrapper*/} <ListItem button onClick={handleClickOpenCountriesList}> <ListAltTwoTone className={classes.drawerIcons}/> <ListItemText primary="Prehľad všetkých krajín"/> </ListItem> {/*graph wrapper*/} <ListItem button onClick={handleClickOpenGraph}> <PollTwoTone className={classes.drawerIcons}/> <ListItemText primary="Globálny graf"/> </ListItem> {/*gamme messages wrapper*/} <ListItem button onClick={handleClickOpenMessages}> <EmailTwoTone className={classes.drawerIcons}/> <MessageWrapper/> </ListItem> </List> <Divider/> <List> {/*navigation wrapper*/} <ListItem button onClick={handleClickOpenPageNavigation}> <ExitToAppTwoTone className={classes.drawerIcons}/> <ListItemText primary="Návrat na úvodnú stránku"/> </ListItem> </List> </Drawer> {/*SET OF DIALOGS (MODALS) THAT OPENS UP AFTER TRIGGERING SPECIFIC BUTTON*/} <Dialog fullWidth={true} maxWidth={"lg"} onClose={handleClickCloseCountriesList} open={openCountriesList}> <DialogTitle onClose={handleClickCloseCountriesList}> Zoznam krajín </DialogTitle> <CountriesListRightBar dataHeight={height} dataSelector={separateCountryByInfectivitySelector} dataSelectorCount={infectiousCountriesCountSelector}/> </Dialog> <Dialog onClose={handleCloseTravelRestriction} open={openTravelRestriction}> <DialogTitle onClose={handleCloseTravelRestriction}> Obmedzenia cestovania </DialogTitle> <TravelRestriction/> </Dialog> <Dialog onClose={handleCloseTracingTesting} open={openTracingTesting}> <DialogTitle onClose={handleCloseTracingTesting}> Trasovanie kontaktov a testovanie </DialogTitle> <TracingTesting/> </Dialog> <Dialog onClose={handleCloseInfectionPrevention} open={openInfectionPrevention}> <DialogTitle onClose={handleCloseInfectionPrevention}> Prevencia nakazenia </DialogTitle> <InfectionPrevention/> </Dialog> <Dialog onClose={handleCloseCure} open={openCure}> <DialogTitle onClose={handleCloseCure}> Liečba </DialogTitle> <Cure/> </Dialog> <Dialog onClose={handleCloseCommunication} open={openCommunication}> <DialogTitle onClose={handleCloseCommunication}> Komunikácia a spolupráca </DialogTitle> <Communication/> </Dialog> <Dialog onClose={handleCloseVaccine} open={openVaccine}> <DialogTitle onClose={handleCloseVaccine}> Vakcína </DialogTitle> <Vaccine/> </Dialog> <Dialog fullWidth={true} maxWidth={"md"} onClose={handleCloseGraph} open={openGraph}> <GraphContainer dataWidth={width} dataHeight={height}/> </Dialog> <Dialog fullWidth={true} maxWidth={"sm"} scroll={"paper"} onClose={handleCloseTrust} open={openTrust}> <DialogTitle onClose={handleCloseTrust}> Dôvera </DialogTitle> <MessageModal dataSelector={TrustMessageState}/> </Dialog> <Dialog fullWidth={true} maxWidth={"sm"} scroll={"paper"} onClose={handleCloseMessages} open={openMessages}> <DialogTitle onClose={handleCloseMessages}> Správy </DialogTitle> <MessageModal dataSelector={MessageModalState}/> </Dialog> <Dialog onClose={handleClickClosePageNavigation} open={openPageNavigation}> <PagesNavigationModal/> </Dialog> <Dialog fullWidth={true} maxWidth={"xs"} scroll={"paper"} open={openGameOver}> <GameOverModal data={gameOver} dataWidth={width} dataHeight={height} pointsRecovered={recoveredSelector} pointsInfected={infectiousSelector} pointsSusceptibles={susceptiblesSelector}/> </Dialog> {/*check if (mobile) device has right orientation - horizontal*/} <ResponsiveDesign/> <Dialog fullWidth={true} maxWidth={"xs"} open={openGameStartModal}> <Grid className={classes.aboutInfo}> <Typography variant={"h6"}> Cieľ: </Typography> <Typography> Cieľom hry je vyliečiť aspoň 1-milión ľudí (Zotavení) pomocou vakcíny. <br/> <br/> </Typography> <Typography variant={"h6"}> Tipy: </Typography> <Typography> 1. Hernú menu získavaš viacerými spôsobmi - napr. šanca na získanie za novo-nakazenú krajinu, plynutím času... <br/> 2. Zdravotnícke jednotky je možné zakúpiť po kliknutí na symbol hernej meny (dolár). <br/> 3. Skóre na konci hry sa počíta z počtu zotavených ľudí. <br/> </Typography> <br/> </Grid> <Button color={"primary"} variant={"contained"} onClick={handleCloseGameStartModal}> <PlayArrow/> </Button> </Dialog> </div> ); } export default MainPage;
javascript
<reponame>dp1140a/InfluxTools package main /** References: https://community.hortonworks.com/articles/44148/hdfs-balancer-3-cluster-balancing-algorithm.html */ import ( "flag" "fmt" "github.com/dp1140a/InfluxTools/cluster" "github.com/dp1140a/InfluxTools/net" "github.com/dp1140a/InfluxTools/util" "math" "math/rand" "os" "strings" "time" ) type PlanStep struct { FromNode string ToNode string shardId string } type ShardStats struct { IdealShardsPerNode int OverThreshold int UnderThreshold int } type NodeShards struct { NodeId int TCPAddr string Shards []string IdealDiff int } const ( OVER = "over" ABOVE = "above" IDEAL = "ideal" BELOW = "below" UNDER = "under" REQ_PAUSE_TIME = time.Duration(1) * time.Second // Pause for 1 second ) var metaNodeURL = flag.String("url", "http://10.0.1.215:8091", "The host and port of the cluster metanode to use.") var verbose = flag.Bool("debug", false, "Print verbose output to console") var threshold = flag.Float64("threshold", .10, "Threshold for shard count variance on a node") var autoReplicate = flag.Bool("autoreplicate", false, "Automatically replicate under replicated shards") var autoExecute = flag.Bool("autoExecute", false, "Automatically execute the rebalancing plan") var zeta *rand.Rand var shardStats = ShardStats{} //Keep shard stats at this level since they are calcd once and referred to often func init() { seed := rand.NewSource(time.Now().Unix()) zeta = rand.New(seed) // initialize local pseudorandom generator } func createPlan(nodeShards []NodeShards) []PlanStep { plan := make([]PlanStep, 0) var step = PlanStep{} curState := bucketize(nodeShards) fmt.Println(curState) /** Shard Pairing: Over-Utilized -> Under-Utilized Over-Utilized -> Below-Average Above-Average -> Under-Utilized */ for isbalancingNeeded(curState) { //balance := 0 //for balance < 3 { fmt.Println("Current State: ", curState) switch { case len(curState[OVER]) > 0 && len(curState[UNDER]) > 0: from := curState[OVER] to := curState[UNDER] step = pair(from, to) curState[OVER] = from curState[UNDER] = to case len(curState[OVER]) > 0 && len(curState[BELOW]) > 0: step = pair(curState[OVER], curState[BELOW]) case len(curState[ABOVE]) > 0 && len(curState[UNDER]) > 0: step = pair(curState[ABOVE], curState[UNDER]) } if step == (PlanStep{}) { //Empty PlanStep do nothing } else { plan = append(plan, step) } tShard := []NodeShards{} for _, bucket := range curState { for _, node := range bucket { tShard = append(tShard, node) } } curState = bucketize(tShard) fmt.Println("Current State: ", curState) fmt.Println(isbalancingNeeded(curState)) //balance++ } return plan } func pair(from []NodeShards, to []NodeShards) PlanStep { fmt.Println("From: ", from) fmt.Println("To: ", to) var planStep = PlanStep{} badShard := true for badShard { fromIdx := zeta.Intn(len(from[0].Shards)) potentialShard := from[0].Shards[fromIdx] fmt.Printf("Potential Shard %v from node %v to node %v\n", potentialShard, from[0].TCPAddr, to[0].TCPAddr) if isShardFreeToCopy(potentialShard, to[0].Shards) { fmt.Printf("Shard %v is free to copy\n", potentialShard) //add shard to plan planStep.shardId = potentialShard planStep.FromNode = from[0].TCPAddr planStep.ToNode = to[0].TCPAddr //update datanodes: // 1. remove shard id from "from" shard list in cur State from[0] = removeShardFromList(potentialShard, from[0]) // 2. add shard to "to" node shard list in curState to[0].Shards = append(to[0].Shards, potentialShard) to[0].IdealDiff = to[0].IdealDiff + 1 badShard = false fmt.Println(from) fmt.Println(to) } else { fmt.Printf("Shard %v is NOT free to copy\n", potentialShard) } } return planStep } func removeShardFromList(shardId string, nodeShard NodeShards) NodeShards { for i, id := range nodeShard.Shards { if id == shardId { nodeShard.Shards = append(nodeShard.Shards[:i], nodeShard.Shards[i+1:]...) nodeShard.IdealDiff = nodeShard.IdealDiff - 1 break } } return nodeShard } func mapNodeShards(datanodes []cluster.Datanode) []NodeShards { nodeShards := make([]NodeShards, len(datanodes)) for i, node := range datanodes { nodeShards[i] = NodeShards{ node.ID, node.TCPAddr, node.Shards, 0, } fmt.Printf("Node %v has %v shards: %v \n", node.TCPAddr, len(node.Shards), node.Shards) } return nodeShards } func bucketize(nodeShards []NodeShards) map[string][]NodeShards { var buckets = make(map[string][]NodeShards) buckets[OVER] = make([]NodeShards, 0) buckets[ABOVE] = make([]NodeShards, 0) buckets[IDEAL] = make([]NodeShards, 0) buckets[BELOW] = make([]NodeShards, 0) buckets[UNDER] = make([]NodeShards, 0) for i, node := range nodeShards { nodeShards[i].IdealDiff = len(node.Shards) - shardStats.IdealShardsPerNode shardCount := len(nodeShards[i].Shards) ovrundr := UNDER if nodeShards[i].IdealDiff > 0 { ovrundr = OVER } fmt.Printf("Node %v: %d shard(s) %v\n", node.TCPAddr, nodeShards[i].IdealDiff, ovrundr) switch { case shardCount >= shardStats.OverThreshold: buckets[OVER] = append(buckets[OVER], nodeShards[i]) case shardCount > shardStats.IdealShardsPerNode && shardStats.UnderThreshold < shardStats.OverThreshold: buckets[ABOVE] = append(buckets[ABOVE], nodeShards[i]) case shardCount == shardStats.IdealShardsPerNode: buckets[IDEAL] = append(buckets[IDEAL], nodeShards[i]) case shardCount < shardStats.IdealShardsPerNode && shardCount >= shardStats.UnderThreshold: buckets[BELOW] = append(buckets[BELOW], nodeShards[i]) case shardCount <= shardStats.UnderThreshold: buckets[UNDER] = append(buckets[UNDER], nodeShards[i]) } } return buckets } func getShardCount(shards map[string]*cluster.Shard) int { shardCount := 0 for _, shard := range shards { shardCount += shard.ReplicaN } return shardCount } func calcNodeShardStats(datanodes []cluster.Datanode, totalShards int) ShardStats { idealShardsPerNode := int(math.Floor(float64(totalShards) / float64(len(datanodes)))) overThreshold := int(math.Floor(float64(idealShardsPerNode) + (float64(idealShardsPerNode) * *threshold))) underThreshold := int(math.Ceil(float64(idealShardsPerNode) - (float64(idealShardsPerNode) * *threshold))) fmt.Printf("There should be %d total shards.\n", totalShards) fmt.Printf("Each node should have %d shards\n", idealShardsPerNode) fmt.Println("Overthrehold is: ", overThreshold) fmt.Println("Underthreshold is: ", underThreshold) return ShardStats{ idealShardsPerNode, overThreshold, underThreshold, } } func getDatanodeById(nodeId int, datanodes []cluster.Datanode) cluster.Datanode { for idx, node := range datanodes { if nodeId == node.ID { return datanodes[idx] } } return cluster.Datanode{} } //Over-Utilized -> Under-Utilized //Over-Utilized -> Below-Average //Above-Average -> Under-Utilized func isbalancingNeeded(buckets map[string][]NodeShards) bool { if len(buckets[OVER]) > 0 && len(buckets[UNDER]) > 0 { return true } else if len(buckets[OVER]) > 0 && len(buckets[BELOW]) > 0 { return true } else if len(buckets[ABOVE]) > 0 && len(buckets[UNDER]) > 0 { return true } else { return false } } func isShardFreeToCopy(shardId string, shardList []string) bool { fmt.Printf("Looking for shard %v in %v\n", shardId, shardList) doesHave := true for _, id := range shardList { if id == shardId { doesHave = false break } } return doesHave } func truncateShards() { fmt.Printf("Truncating Shards\n") //fmt.Printf("Using MetaNode URL: %v\n", *metaNodeURL) body := net.MakeRequest(*metaNodeURL+"/truncate-shards", net.POST, "delay=1m0s") if string(body) == "204" { fmt.Println("Truncate Shards: OK") } } //copy-shard dest=data2%3A8088&shard=24&src=data1%3A8088 // remove-shard shard=24&src=data1%3A8088 func doRebalance(plan []PlanStep) { fmt.Printf("Moving Shards\n") for _, step := range plan { copyShard(step) removeShard(step) } } func removeShard(planStep PlanStep) { fmt.Printf("Removing Shard %v from %v\n", planStep.shardId, planStep.FromNode) // Encoded to shard=161&src=data2%3A8088 qStr := "shard=" + planStep.shardId + "&src=" + strings.Replace(planStep.FromNode, ":", "%3A", -1) //fmt.Println(qStr) body := net.MakeRequest(*metaNodeURL+"/remove-shard?"+qStr, net.POST, "") if string(body) == "204" { fmt.Println("Remove shard OK") } else { fmt.Println("oops something went wrong") fmt.Println(string(body[:])) } } func copyShard(planStep PlanStep) { fmt.Printf("Copying Shard %v from %v to %v\n", planStep.shardId, planStep.FromNode, planStep.ToNode) // Encoded to dest=data2%3A8088&shard=27&src=data1%3A8088 qStr := "dest=" + strings.Replace(planStep.ToNode, ":", "%3A", -1) + "&shard=" + planStep.shardId + "&src=" + strings.Replace(planStep.FromNode, ":", "%3A", -1) //fmt.Println(qStr) body := net.MakeRequest(*metaNodeURL+"/copy-shard?"+qStr, net.POST, "") if string(body) == "204" { fmt.Println("Shard Copy OK") } else { fmt.Println("oops something went wrong") fmt.Println(string(body[:])) } } func copyUnderReplicatedShard(underReplicatedShards map[string]cluster.Shard, datanodes []cluster.Datanode) { fmt.Println("") //TODO: Handle case where underreplication is more than one ie: should have 3 copies but only has 1 for _, shard := range underReplicatedShards { diff := shard.ReplicaN - len(shard.Owners) fmt.Printf("Shard %s\n-----------------\n", shard.ID) fmt.Printf("Shard %s needs to be copied %d times\n", shard.ID, diff) for i := 1; i <= diff; i++ { badCopy := true nodeIdx := 0 for badCopy { if isShardFreeToCopy(shard.ID, datanodes[nodeIdx].Shards) { fmt.Printf("Copying shard %v to %v.\n", shard.ID, datanodes[nodeIdx].TCPAddr) copyShard(PlanStep{ shard.Owners[rand.Intn(len(shard.Owners))].TCPAddr, datanodes[nodeIdx].TCPAddr, shard.ID, }) fmt.Println("") time.Sleep(REQ_PAUSE_TIME) badCopy = false } else { fmt.Printf("Shard %v is NOT free to copy to %v\n", shard.ID, datanodes[nodeIdx].TCPAddr) nodeIdx++ } } } } } func askForConfirmation() bool { var response string _, err := fmt.Scanln(&response) if err != nil { fmt.Println(err) } okayResponses := []string{"y", "Y", "yes", "Yes", "YES"} nokayResponses := []string{"n", "N", "no", "No", "NO"} if util.ContainsString(okayResponses, response) { return true } else if util.ContainsString(nokayResponses, response) { return false } else { fmt.Println("Please type yes or no and then press enter:") return askForConfirmation() } } func printPlan(plan []PlanStep) { for _, step := range plan { fmt.Printf("Move shard %v from %v to %v\n", step.shardId, step.FromNode, step.ToNode) } } func main() { /** Rebalance to Create Space From https://docs.influxdata.com/enterprise_influxdb/v1.5/guides/rebalance/#rebalance-procedure-1-rebalance-a-cluster-to-create-space 1. Truncate hot shards: /truncate-shards 2. ID Cold Shards: Look at: "end-time" 3. Copy Cold Shards 4. Confirm copied shards 5. Remove Unnecessary Cold Shards 6. Confirm the Rebalance Rebalance to Increase Availbility From https://docs.influxdata.com/enterprise_influxdb/v1.5/guides/rebalance/#rebalance-procedure-2-rebalance-a-cluster-to-increase-availability 1. Update Retention Policy 2. Truncate hot shards: /truncate-shards 3. ID Cold Shards: Look at: "end-time" 4. Copy Cold Shards 5. Confirm the Rebalance */ flag.Parse() fmt.Println("Starting Influx Cluster Rebalancer") fmt.Printf("Using Meta Node Address %s\n", *metaNodeURL) if *verbose == false { fmt.Println("No verbose output. Set verbose flag to true to see additional detail") } fmt.Println("Gathering Cluster Information") c := cluster.NewCluster(*metaNodeURL) // Create new cluster if *verbose { c.PrintCluster() } // Check for and handle under replicated shards // TODO: If we have under-replicated shards we should handle it. Otherwise our shard count will be screwed up underReplicatedShards := c.GetUnderReplcatedShards() if len(underReplicatedShards) > 0 { fmt.Println("There are under replicated shards") c.PrintUnderReplicatedShards() if *autoReplicate == true { fmt.Println("Replicate flag is on. We will automatically replicate under replicated shards.") copyUnderReplicatedShard(underReplicatedShards, c.GetDataNodes()) } else { fmt.Println("Replicate flag is off. Since there are under replicated shards you will need to fix this before continuing with a rebalance.") fmt.Println("Do you wish to replicate underreplicated shards? [Y/N]") if askForConfirmation() { fmt.Println("Ok. Starting Replication.") copyUnderReplicatedShard(underReplicatedShards, c.GetDataNodes()) } else { fmt.Println("Exiting") os.Exit(0) } } } truncateShards() // Truncate Shards shardStats = calcNodeShardStats(c.GetDataNodes(), getShardCount(c.GetShards())) // Get Shard Stats plan := createPlan(mapNodeShards(c.GetDataNodes())) // Create the rebalance plan //Execute the plan if not empty if len(plan) == 0 { fmt.Println("Cluster is already balanced. Nothing to do.") os.Exit(0) } else { fmt.Println("Rebalance Plan:") fmt.Printf("The plan has %d steps.\n", len(plan)) printPlan(plan) if *autoExecute == true { fmt.Println("Execute flag is on. We will automatically execute the plan.") doRebalance(plan) } else { fmt.Println("Do you wish to execute the plan? [Y/N]") if askForConfirmation() { fmt.Println("Got it. Executing plan.") doRebalance(plan) } else { fmt.Println("Exiting") os.Exit(0) } } } }
go
<reponame>LinqLover/esdoc<gh_stars>1000+ export default class TestEmitsClass { /** * @emits {TestEmitsEvent1} emits event when foo. * @emits {TestEmitsEvent2} emits event when bar. */ methodEmits(){} } /** * @emits {TestEmitsEvent1} */ export function testEmitsFunction(){} export class TestEmitsEvent1 {} export class TestEmitsEvent2 {}
javascript
import yargs from 'yargs' import sqip from './index.js' const { argv } = yargs .usage('\nUsage: sqip --input [path]') .option('input', { alias: 'i', type: 'string', normalize: true, required: true }) .option('output', { alias: 'o', type: 'string', normalize: true, description: 'Save the resulting SVG to a file. The svg result will be returned by default.' }) .option('numberOfPrimitives', { alias: 'n', type: 'number', description: 'The number of primitive shapes to use to build the SQIP SVG', example: "'sqip --numberOfPrimitives=4' or 'sqip -n 4'", default: 8 }) .option('mode', { alias: 'm', type: 'number', description: 'The style of primitives to use: \n0=combo, 1=triangle, 2=rect, 3=ellipse, 4=circle, 5=rotatedrect, 6=beziers, 7=rotatedellipse, 8=polygon', default: 0 }) .option('blur', { alias: 'b', type: 'number', description: 'Set the GaussianBlur SVG filter value. Disable it via 0.', default: 12 }) .example('sqip --input /path/to/input.jpg', 'Output input.jpg image as SQIP') .example( 'sqip -i input.jpg -n 25 -b 0 -o result.svg', 'Save input.jpg as result.svg with 25 shapes and no blur' ) .epilog( '"SQIP" (pronounced \\skwɪb\\ like the non-magical folk of magical descent) is a SVG-based LQIP technique - https://github.com/technopagan/sqip' ) .wrap(Math.max(80, yargs.terminalWidth())) const { input, output, numberOfPrimitives, mode, blur } = argv const options = { input, output, numberOfPrimitives, mode, blur } // Remove undefined arguments coming from yargs to enable proper default options for lib & cli. Object.keys(options).forEach(key => { if (options[key] === undefined) { delete options[key] } }) sqip(options).catch(err => { console.log(err) process.exit(1) })
javascript
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_30) on Wed Nov 30 13:46:31 PST 2011 --> <TITLE> javax.lang.model.element (Java Platform SE 6) </TITLE> <META NAME="date" CONTENT="2011-11-30"> <META NAME="keywords" CONTENT="javax.lang.model.element package"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="javax.lang.model.element (Java Platform SE 6)"; } } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <HR> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-use.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> <b>Java&#x2122;&nbsp;Platform<br>Standard&nbsp;Ed.&nbsp;6</b></EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;<A HREF="../../../../javax/lang/model/package-summary.html"><B>PREV PACKAGE</B></A>&nbsp; &nbsp;<A HREF="../../../../javax/lang/model/type/package-summary.html"><B>NEXT PACKAGE</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?javax/lang/model/element/package-summary.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="package-summary.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <H2> Package javax.lang.model.element </H2> Interfaces used to model elements of the Java programming language. <P> <B>See:</B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="#package_description"><B>Description</B></A> <P> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Interface Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../javax/lang/model/element/AnnotationMirror.html" title="interface in javax.lang.model.element">AnnotationMirror</A></B></TD> <TD>Represents an annotation.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../javax/lang/model/element/AnnotationValue.html" title="interface in javax.lang.model.element">AnnotationValue</A></B></TD> <TD>Represents a value of an annotation type element.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="interface in javax.lang.model.element">AnnotationValueVisitor&lt;R,P&gt;</A></B></TD> <TD>A visitor of the values of annotation type elements, using a variant of the visitor design pattern.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../javax/lang/model/element/Element.html" title="interface in javax.lang.model.element">Element</A></B></TD> <TD>Represents a program element such as a package, class, or method.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../javax/lang/model/element/ElementVisitor.html" title="interface in javax.lang.model.element">ElementVisitor&lt;R,P&gt;</A></B></TD> <TD>A visitor of program elements, in the style of the visitor design pattern.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../javax/lang/model/element/ExecutableElement.html" title="interface in javax.lang.model.element">ExecutableElement</A></B></TD> <TD>Represents a method, constructor, or initializer (static or instance) of a class or interface, including annotation type elements.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../javax/lang/model/element/Name.html" title="interface in javax.lang.model.element">Name</A></B></TD> <TD>An immutable sequence of characters.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../javax/lang/model/element/PackageElement.html" title="interface in javax.lang.model.element">PackageElement</A></B></TD> <TD>Represents a package program element.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../javax/lang/model/element/TypeElement.html" title="interface in javax.lang.model.element">TypeElement</A></B></TD> <TD>Represents a class or interface program element.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../javax/lang/model/element/TypeParameterElement.html" title="interface in javax.lang.model.element">TypeParameterElement</A></B></TD> <TD>Represents a formal type parameter of a generic class, interface, method, or constructor element.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../javax/lang/model/element/VariableElement.html" title="interface in javax.lang.model.element">VariableElement</A></B></TD> <TD>Represents a field, <code>enum</code> constant, method or constructor parameter, local variable, or exception parameter.</TD> </TR> </TABLE> &nbsp; <P> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Enum Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../javax/lang/model/element/ElementKind.html" title="enum in javax.lang.model.element">ElementKind</A></B></TD> <TD>The <code>kind</code> of an element.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../javax/lang/model/element/Modifier.html" title="enum in javax.lang.model.element">Modifier</A></B></TD> <TD>Represents a modifier on a program element such as a class, method, or field.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../javax/lang/model/element/NestingKind.html" title="enum in javax.lang.model.element">NestingKind</A></B></TD> <TD>The <i>nesting kind</i> of a type element.</TD> </TR> </TABLE> &nbsp; <P> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Exception Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../javax/lang/model/element/UnknownAnnotationValueException.html" title="class in javax.lang.model.element">UnknownAnnotationValueException</A></B></TD> <TD>Indicates that an unknown kind of annotation value was encountered.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../javax/lang/model/element/UnknownElementException.html" title="class in javax.lang.model.element">UnknownElementException</A></B></TD> <TD>Indicates that an unknown kind of element was encountered.</TD> </TR> </TABLE> &nbsp; <P> <A NAME="package_description"><!-- --></A><H2> Package javax.lang.model.element Description </H2> <P> Interfaces used to model elements of the Java programming language. <p>When used in the context of annotation processing, an accurate model of the element being represented must be returned. As this is a language model, the source code provides the fiducial (reference) representation of the construct in question rather than a representation in an executable output like a class file. Executable output may serve as the basis for creating a modeling element. However, the process of translating source code to executable output may not permit recovering some aspects of the source code representation. For example, annotations with <A HREF="../../../../java/lang/annotation/RetentionPolicy.html#SOURCE">source</A> <A HREF="../../../../java/lang/annotation/Retention.html" title="annotation in java.lang.annotation">retention</A> cannot be recovered from class files and class files might not be able to provide source position information. The <A HREF="../../../../javax/lang/model/element/Modifier.html" title="enum in javax.lang.model.element">modifiers</A> on an element may differ in some cases including <ul> <li> <code>strictfp</code> on a class or interface <li> <code>final</code> on a parameter <li> <code>protected</code>, <code>private</code>, and <code>static</code> on classes and interfaces </ul> Additionally, synthetic constructs in a class file, such as accessor methods used in implementing nested classes and bridge methods used in implementing covariant returns, are translation artifacts outside of this model. <p>During annotation processing, operating on incomplete or erroneous programs is necessary; however, there are fewer guarantees about the nature of the resulting model. If the source code is not syntactically well-formed, a model may or may not be provided as a quality of implementation issue. If a program is syntactically valid but erroneous in some other fashion, the returned model must have no less information than if all the method bodies in the program were replaced by <code>"throw new RuntimeException();"</code>. If a program refers to a missing type XYZ, the returned model must contain no less information than if the declaration of type XYZ were assumed to be <code>"class XYZ {}"</code>, <code>"interface XYZ {}"</code>, <code>"enum XYZ {}"</code>, or <code>"@interface XYZ {}"</code>. If a program refers to a missing type <code>XYZ&lt;K1, ... ,Kn&gt;</code>, the returned model must contain no less information than if the declaration of XYZ were assumed to be <code>"class XYZ&lt;T1, ... ,Tn&gt; {}"</code> or <code>"interface XYZ&lt;T1, ... ,Tn&gt; {}"</code> <p> Unless otherwise specified in a particular implementation, the collections returned by methods in this package should be expected to be unmodifiable by the caller and unsafe for concurrent access. <p> Unless otherwise specified, methods in this package will throw a <code>NullPointerException</code> if given a <code>null</code> argument. <P> <P> <DL> <DT><B>Since:</B></DT> <DD>1.6</DD> </DL> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-use.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> <b>Java&#x2122;&nbsp;Platform<br>Standard&nbsp;Ed.&nbsp;6</b></EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;<A HREF="../../../../javax/lang/model/package-summary.html"><B>PREV PACKAGE</B></A>&nbsp; &nbsp;<A HREF="../../../../javax/lang/model/type/package-summary.html"><B>NEXT PACKAGE</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?javax/lang/model/element/package-summary.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="package-summary.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> <font size="-1"> <a href="http://bugs.sun.com/services/bugreport/index.jsp">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/javase/6/webnotes/devdocs-vs-specs.html">Java SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.<p> <a href="../../../../../legal/cpyr.html">Copyright</a> &#x00a9; 1993, 2011, Oracle and/or its affiliates. All rights reserved. </font> </BODY> </HTML>
html
{"pe_name":"winbiovsmstorageadapter.dll","pe_type":523,"pe_size":83968,"pe_subsystem":3,"pe_subsystem_caption":"The Windows character (Cosole UI) subsystem","pe_path":"c:\\Windows\\System32\\WinBioPlugIns\\winbiovsmstorageadapter.dll","pe_timedate_stamp":471920948,"pe_timedate_human":"1984-12-15T01:09:08.000Z","ImageDLLImports":[{"name":"api-ms-win-crt-runtime-l1-1-0.dll","imports":2,"functions":["_initterm","_initterm_e"]},{"name":"api-ms-win-crt-string-l1-1-0.dll","imports":1,"functions":["memset"]},{"name":"api-ms-win-crt-private-l1-1-0.dll","imports":27,"functions":["_CxxThrowException","__C_specific_handler","__CxxFrameHandler3","_o___std_exception_copy","_o___std_exception_destroy","_o___std_type_info_destroy_list","_o___stdio_common_vsnprintf_s","_o___stdio_common_vswprintf","_o__callnewh","_o__cexit","_o__configure_narrow_argv","_o__crt_atexit","_o__errno","_o__execute_onexit_table","_o__initialize_narrow_environment","_o__initialize_onexit_table","_o__invalid_parameter_noinfo","_o__invalid_parameter_noinfo_noreturn","_o__register_onexit_function","_o__seh_filter_dll","_o_free","_o_malloc","_o_wcscpy_s","_o_wcsncpy_s","memcmp","memcpy","memmove"]},{"name":"api-ms-win-core-libraryloader-l1-2-0.dll","imports":6,"functions":["DisableThreadLibraryCalls","FindStringOrdinal","GetModuleFileNameA","GetModuleHandleExW","GetModuleHandleW","GetProcAddress"]},{"name":"api-ms-win-core-synch-l1-1-0.dll","imports":9,"functions":["AcquireSRWLockExclusive","CreateMutexExW","CreateSemaphoreExW","OpenSemaphoreW","ReleaseMutex","ReleaseSRWLockExclusive","ReleaseSemaphore","WaitForSingleObject","WaitForSingleObjectEx"]},{"name":"api-ms-win-core-heap-l1-1-0.dll","imports":3,"functions":["GetProcessHeap","HeapAlloc","HeapFree"]},{"name":"api-ms-win-core-errorhandling-l1-1-0.dll","imports":4,"functions":["GetLastError","SetLastError","SetUnhandledExceptionFilter","UnhandledExceptionFilter"]},{"name":"api-ms-win-core-processthreads-l1-1-0.dll","imports":4,"functions":["GetCurrentProcess","GetCurrentProcessId","GetCurrentThreadId","TerminateProcess"]},{"name":"api-ms-win-core-localization-l1-2-0.dll","imports":1,"functions":["FormatMessageW"]},{"name":"api-ms-win-core-debug-l1-1-0.dll","imports":3,"functions":["DebugBreak","IsDebuggerPresent","OutputDebugStringW"]},{"name":"api-ms-win-core-handle-l1-1-0.dll","imports":1,"functions":["CloseHandle"]},{"name":"api-ms-win-core-heap-l2-1-0.dll","imports":2,"functions":["LocalAlloc","LocalFree"]},{"name":"api-ms-win-core-path-l1-1-0.dll","imports":1,"functions":["PathCchSkipRoot"]},{"name":"api-ms-win-core-file-l1-1-0.dll","imports":9,"functions":["CreateDirectoryW","CreateFileW","DeleteFileW","LockFileEx","ReadFile","SetFileInformationByHandle","SetFilePointerEx","UnlockFileEx","WriteFile"]},{"name":"api-ms-win-eventing-provider-l1-1-0.dll","imports":5,"functions":["EventActivityIdControl","EventRegister","EventSetInformation","EventUnregister","EventWriteTransfer"]},{"name":"api-ms-win-core-synch-l1-2-0.dll","imports":2,"functions":["InitOnceBeginInitialize","InitOnceComplete"]},{"name":"api-ms-win-core-rtlsupport-l1-1-0.dll","imports":3,"functions":["RtlCaptureContext","RtlLookupFunctionEntry","RtlVirtualUnwind"]},{"name":"api-ms-win-core-processthreads-l1-1-1.dll","imports":1,"functions":["IsProcessorFeaturePresent"]},{"name":"api-ms-win-core-profile-l1-1-0.dll","imports":1,"functions":["QueryPerformanceCounter"]},{"name":"api-ms-win-core-sysinfo-l1-1-0.dll","imports":2,"functions":["GetSystemTimeAsFileTime","GetTickCount"]},{"name":"api-ms-win-core-interlocked-l1-1-0.dll","imports":1,"functions":["InitializeSListHead"]},{"name":"api-ms-win-core-file-l2-1-0.dll","imports":1,"functions":["ReplaceFileW"]},{"name":"api-ms-win-security-base-l1-1-0.dll","imports":1,"functions":["EqualSid"]},{"name":"api-ms-win-core-heap-obsolete-l1-1-0.dll","imports":1,"functions":["LocalSize"]},{"name":"msvcp_win.dll","imports":1,"functions":["?_Xlength_error@std@@YAXPEBD@Z"]}],"ImageDLLExports":{"exports":1,"functions":["WbioQueryStorageInterface"]},"ImageHashSignatures":{"md5":"dd8c2224c96a33222f179cc404b54815","sha2":"cb6d488620160afda0b7a4025e3e52b238cd8d347009ebae4a186ae31718d17a"}}
json
<reponame>sethbrasile/Tone.js import { assertRange } from "./Debug"; /** * Assert that the number is in the given range. */ export function range(min, max) { if (max === void 0) { max = Infinity; } var valueMap = new WeakMap(); return function (target, propertyKey) { Reflect.defineProperty(target, propertyKey, { configurable: true, enumerable: true, get: function () { return valueMap.get(this); }, set: function (newValue) { assertRange(newValue, min, max); valueMap.set(this, newValue); } }); }; } /** * Convert the time to seconds and assert that the time is in between the two * values when being set. */ export function timeRange(min, max) { if (max === void 0) { max = Infinity; } var valueMap = new WeakMap(); return function (target, propertyKey) { Reflect.defineProperty(target, propertyKey, { configurable: true, enumerable: true, get: function () { return valueMap.get(this); }, set: function (newValue) { assertRange(this.toSeconds(newValue), min, max); valueMap.set(this, newValue); } }); }; } //# sourceMappingURL=Decorator.js.map
javascript
{ "occupation": "Adventurer, Student", "base": "San Francisco, formerly Los Angeles, Keystone City, Manchester, Alabama" }
json
{ "name": "puzzled-js", "version": "1.0.0", "description": "Puzzled in Javascript", "main": "main.js", "scripts_comments": { "compile-sass": "The CSS framework for this project, Bulma, is composed of many separate Sass files. This command converts bulma-stripped.sass, a file that imports only the necessary parts of Bulma for this project in order to save space, into bulma-stripped.css.", "concat-css": "Concatenates the non-Bulma CSS (page.css) and Bulma's CSS (bulma-stripped.css) into one file.", "purge-css": "Removes most CSS that is not used on the page. Certain CSS classes need to be whitelisted because they are added at runtime, so purge CSS cannot detect them in the project's HTML files.", "min-css": "Minifies CSS by stripping whitespace, removing comments, etc.", "delete-intermediate-css": "Deletes intermediate CSS files.", "build-css": "Combines all of the above commands.", "debug-build-css": "The same as the above command, but doesn't purge CSS because purge CSS can break page styling.", "watch-js": "Continuously watches source .js/.ts files and compiles and bundles them into docs/main.js upon changes. I needed the --no-hmr flag to avoid this error: https://github.com/parcel-bundler/parcel/issues/856", "build-js": "One time compilation and bundling of source files into docs/main.js. Performs optimizations, such as minification and comment stripping." }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "compile-sass": "node-sass ./src/styles/bulma/bulma-stripped.sass > ./src/styles/bulma/bulma-stripped.css", "concat-css": "concat -o ./docs/css/bundle.css ./src/styles/page/page.css ./src/styles/bulma/bulma-stripped.css", "purge-css": "purgecss --css ./docs/css/bundle.css --out ./docs/css/ --content ./docs/puzzle_view.html ./docs/index.html --whitelist has-text-danger has-text-warning has-text-success", "min-css": "cleancss -o ./docs/css/bundle.min.css ./docs/css/bundle.css", "delete-intermediate-css": "rm ./docs/css/bundle.css ./src/styles/bulma/bulma-stripped.css", "build-css": "npm run compile-sass && npm run concat-css && npm run purge-css && npm run min-css && npm run delete-intermediate-css", "debug-build-css": "npm run compile-sass && npm run concat-css && npm run min-css && npm run delete-intermediate-css", "watch-js": "parcel ./src/scripts/main.js --no-hmr --out-dir ./docs", "build-js": "parcel build ./src/scripts/main.js --out-dir ./docs " }, "author": "<NAME>", "license": "ISC", "devDependencies": { "@types/common-tags": "^1.4.0", "clean-css-cli": "^4.1.11", "common-tags": "^1.8.0", "concat": "^1.0.3", "node-sass": "^4.9.2", "parcel-bundler": "^1.9.7", "purgecss": "^1.0.1", "regenerator-runtime": "^0.12.1", "typescript": "^3.0.1" }, "dependencies": {}, "browserslist_comments": { "last 1 Chrome version": "Chrome 67 as of 10/8/18", "meta": "There is no browserslist right now - there was, at one point" } }
json
Name and address of NGO Holy Krishi Vigyan Kendra, Hazaribagh Technology Resource Communication & Service Centre, Welfare Tower, Flat No. 109, Dimma Road, P.O. MGM College, Dimma-831018 (c) and (d) No report of any financial irregularity has been received. Special Retail Panel 3313. SHRI S.K. KHARVENTHAN: Will the Minister of CONSUMER AFFAIRS, FOOD AND PUBLIC DISTRIBUTION be pleased to state: (a) whether the Government has constituted the Special Retail Panel; (b) if so, the details thereof alongwith the composition and terms and reference of the said panel; and (c) the time by which its report is likely to be submitted? THE MINISTER OF STATE IN THE MINISTRY OF AGRICULTURE AND MINISTER OF STATE IN THE MINISTRY OF CONSUMER AFFAIRS, FOOD AND PUBLIC DISTRIBUTION (SHRI TASLIMUDDIN): (a) No, Sir. (b) and (c) Does not arise in view of (a) above. Houses for Weavers 3314. SHRI DALPAT SINGH PARSTE: Will the Minister of TEXTILES be pleased to state: (a) whether the Union Government proposes to provide financial assistance to various States including Madhya Pradesh for the construction of houses for weavers during the Eleventh Five Year Plan; and (b) if so, the details thereof, State-wise; to Questions 174 (Rs. in lakh) Amount released THE MINISTER OF STATE IN THE MINISTRY OF TEXTILES (SHRI E.V.K.S. ELANGOVAN): (a) and (b) "Integrated Handloom Development Scheme (IHDS)" has been introduced for implementation during the XI Plan as a 'Centrally Sponsored Plan Scheme' for the development of handlooms sector and welfare of handlooms weavers. However, the component of housing under the 'Workshedcum-Housing Scheme' has been dis-continued during the XI Plan. The weavers may avail assistance towards construction of houses under Indira Awas Yojana of the Ministry of Rural Development. As such there is no proposal to provide financial assistance for construction of houses for weavers to any of the State Governments including Madhya Pradesh by the Ministry of Textiles. Distress Sale by Farmers 3315. SHRI EKNATH MAHADEO GAIKWAD: SHRIMATI NIVEDITA MANE: SHRI MADHU GOUD YASKHI: Will the Minister of CONSUMER AFFAIRS, FOOD AND PUBLIC DISTRIBUTION be pleased to state: (a) whether small farmers of the country are compelled to sell their produce in distress at a low price to the contractors and buy the same at a higher price for their consumption; (b) if so, the details thereof; (c) whether the Commission on Agricultural Costs and Prices has also suggested any measures to tackle this problem; and (d) if so, the details thereof and the remedial steps taken by the Goverment thereon? THE MINISTER OF STATE IN THE MINISTRY OF AGRICULTURE AND MINISTER OF STATE IN THE MINISTRY OF CONSUMER AFFAIRS, FOOD AND PUBLIC DISTRIBUTION (DR. AKHILESH PRASAD SINGH): (a) and (b) No, Sir. The Government extends price support to paddy, wheat and coarsegrains through the Food Corporation of India and State agencies. All foodgrains conforming to the prescribed specifications are bought by the public procurement agencies at Minimum Support Price (MSP). As per Government policy farmers are free to sell their produce to the Government agencies at MSP or to private agencies, as is advantageous to them. One of the objectives of this policy is to ensure that farmers get remunerative prices for their produce and do not have to resort to distress sale. (c) No, Sir. In the Price Policy Report of 2008-09, there is no reference "to small farmers selling their produce in distress i.e. sell at a low price to contractors and buy the same at a higher price for their consumption". (d) Does not arise. TV Programme through Internet 3316. SHRI RAKESH SINGH: Will the Minister of COMMUNICATIONS AND INFORMATION TECHNOLOGY be pleased to state: (a) whether the Government proposes to start the broadcast of TV programmes through the Internet; (b) if so, the time by which the said service is likely to be started; (c) whether necessary preparations for the said service have been made in the country, including Jabalpur, and (d) if so, the details thereof? THE MINISTER OF STATE IN THE MINISTRY OF COMMUNICATIONS AND INFORMATION TECHNOLOGY (SHRI JYOTIRADITYA M. SCINDIA): (a) to (d) The Government has issued guidelines on 08.09.2008 for launching digital television service using the Internet Protocol over a network infrastructure including delivery through Broadband Network. to Questions 176 Bharat Sanchar Nigam Limited (BSNL) and Mahanagar Telephone Nigam Limited (MTNL) have already started offering Internet Protocol Television (IPTV) services in the country. BSNL has decided to introduce IPTV services in 98 cities including Jabalpur during 2008-09. Plantation of Fruit Trees 3317. SHRI TEK LAL MAHTO: Will the Minister of AGRICULTURE be pleased to state: (a) the total area of land in hectares brought under fruit plantation during the last one year and the current year, State-wise; (b) the details of the funds allocated to various States by the Union Government for the purpose alongwith the amount actually spent thereon during the said period, State-wise; (c) the number of States in which the allocated amount could not be fully utilized alongwith the reasons therefor; (d) whether the Government has taken any initiative to expedite the plantation of fruit trees; and (e) if so, the details thereof? THE MINISTER OF STATE IN THE MINISTRY OF AGRICULTURE AND MINISTER OF STATE IN THE MINISTRY OF CONSUMER AFFAIRS, FOOD AND PUBLIC DISTRIBUTION (SHRI KANTILAL BHURIA): (a) and (b) The Department of Agriculture & Cooperation is implementing two Centrally Sponsored Schemes namely (1) Technology Mission on Integrated Development of Horticulture in North Eastern States, Sikkim, Uttarakhand, Jammu and Kashmir and Himachal Pradesh (TMNE) and (ii) National Horticulture Mission (NHM) during the eleventh Five Year Plan for the development of horticultural crops including fruits. State-wise details of area of land in hectares brought under the fruit plantation and funds allocated and released for the purpose during the last one year and the current year are given in the enclosed statement-I and II. (c) Under National Horticulture Mission (NHM) scheme, out of seventeen States, eight States could not fully utilize the funds allocated for the development of fruits. As the horticulture is seasonal activity and plantation depend on rains, sometimes there is less achievement of physical targets in some of the States.
english
<reponame>Integreat/integreat-react-native-app // @flow import * as React from 'react' import styled from 'styled-components/native' import { type StyledComponent } from 'styled-components' import { TouchableOpacity } from 'react-native' import TileModel from '../models/TileModel' import type { ThemeType } from '../../theme/constants' import Image from './Image' type PropsType = { tile: TileModel, onTilePress: (tile: TileModel) => void, theme: ThemeType } const ThumbnailContainer = styled(Image)` height: 150px; ` const TileTitle = styled.Text` margin: 5px; color: ${props => props.theme.colors.textColor}; text-align: center; font-family: ${props => props.theme.fonts.decorativeFontRegular}; ` const TileContainer: StyledComponent<{}, {}, *> = styled.View` margin-bottom: 20px; width: 50%; ` /** * Displays a single Tile */ class Tile extends React.Component<PropsType> { onTilePress = () => { this.props.onTilePress(this.props.tile) } render () { const { tile, theme } = this.props return ( <TileContainer> <TouchableOpacity onPress={this.onTilePress}> <ThumbnailContainer source={tile.thumbnail} /> <TileTitle theme={theme}>{tile.title}</TileTitle> </TouchableOpacity> </TileContainer> ) } } export default Tile
javascript
import pyspark from pyspark import SparkContext from pyspark.streaming import StreamingContext sc=SparkContext('local[2]',appName="MyStreamWordCount") ssc=StreamingContext(sc,2) lines = ssc.socketTextStream('localhost',9999) counts = lines.flatMap(lambda line: line.split(" ")).map(lambda word: (word, 1)).reduceByKey(lambda a, b: a+b) counts.pprint(); ssc.start() ssc.awaitTermination()
python
<gh_stars>0 # Leetcode <p align='left'> <img src='./assets/imgs/golang-algs.jpeg' height="250"> </p> [![language](https://img.shields.io/badge/language-Golang-blue)](https://golang.org/) [![Documentation](https://godoc.org/github.com/mind1949/leetcode?status.svg)](https://pkg.go.dev/github.com/mind1949/leetcode?tab=doc) [![Go Report Card](https://goreportcard.com/badge/github.com/mind1949/leetcode)](https://goreportcard.com/report/github.com/mind1949/leetcode) [![leetcode-cn@mind1949](https://img.shields.io/badge/leetcode--cn-%40mind1949-yellow)](https://leetcode-cn.com/u/mind1949/) My solutions to [leetcode](https://leetcode-cn.com/) problems. # Structure ``` algs ├── 0001.thought.md // 思路、正确性证明、复杂度分析 ├── 0001.two_sum.go // 实现代码 └── 0001.two_sum_test.go // 测试代码 ``` # Run Test `make test`
markdown
<gh_stars>0 package com.corejava.generics; import com.corejava.generics.Pair; import com.corejava.generics.GenericsDemo; public class OrderedPair<K, V> implements Pair<K,V> { private K k; private V v; public OrderedPair(K k, V v) { this.k = k; this.v = v; } public K getKey() { return k; } public V getValue() { return v; } public static void main(String[] args) { Pair<String, Integer> p1 = new OrderedPair<String, Integer>("Even", 8); System.out.println("Pair p1 added with k=Even v=8"); System.out.println(p1); // OrderedPair<String, Integer>, instantiates K as a String and V as an Intege Pair<String, String> p2 = new OrderedPair<String, String>("hello", "world"); System.out.println("Pair p2 added with k=hello v=world"); System.out.println(p2); GenBox<Integer> gBox = new GenBox<Integer>(100); OrderedPair<String, GenBox<Integer>> p3 = new OrderedPair<>("primes", gBox ); System.out.println("Pair p3 added with k=primes v=GenBox(100) "); System.out.println(p3); } }
java
.dataTables_wrapper table.dataTable { width: 100%; margin: 0 auto; clear: both; border-collapse: separate; border-spacing: 0; } .dataTables_wrapper table.dataTable thead th, .dataTables_wrapper table.dataTable tfoot th { font-weight: bold; } .dataTables_wrapper table.dataTable thead th, .dataTables_wrapper table.dataTable thead td { padding: 10px 18px; border-bottom: 1px solid #111; } .dataTables_wrapper table.dataTable thead th:active, .dataTables_wrapper table.dataTable thead td:active { outline: none; } .dataTables_wrapper table.dataTable tfoot th, .dataTables_wrapper table.dataTable tfoot td { padding: 10px 18px 6px 18px; border-top: 1px solid #111; } .dataTables_wrapper table.dataTable thead .sorting, .dataTables_wrapper table.dataTable thead .sorting_asc, .dataTables_wrapper table.dataTable thead .sorting_desc { cursor: pointer; *cursor: hand; } .dataTables_wrapper table.dataTable thead .sorting, .dataTables_wrapper table.dataTable thead .sorting_asc, .dataTables_wrapper table.dataTable thead .sorting_desc, .dataTables_wrapper table.dataTable thead .sorting_asc_disabled, .dataTables_wrapper table.dataTable thead .sorting_desc_disabled { background-repeat: no-repeat; background-position: center right; } .dataTables_wrapper table.dataTable thead .sorting { background-image: url("DataTables-1.10.10/images/sort_both.png"); } .dataTables_wrapper table.dataTable thead .sorting_asc { background-image: url("DataTables-1.10.10/images/sort_asc.png"); } .dataTables_wrapper table.dataTable thead .sorting_desc { background-image: url("DataTables-1.10.10/images/sort_desc.png"); } .dataTables_wrapper table.dataTable thead .sorting_asc_disabled { background-image: url("DataTables-1.10.10/images/sort_asc_disabled.png"); } .dataTables_wrapper table.dataTable thead .sorting_desc_disabled { background-image: url("DataTables-1.10.10/images/sort_desc_disabled.png"); } .dataTables_wrapper table.dataTable tbody tr { background-color: #ffffff; } .dataTables_wrapper table.dataTable tbody tr.selected { background-color: #B0BED9; } .dataTables_wrapper table.dataTable tbody th, .dataTables_wrapper table.dataTable tbody td { padding: 8px 10px; } .dataTables_wrapper table.dataTable.row-border tbody th, .dataTables_wrapper table.dataTable.row-border tbody td, .dataTables_wrapper table.dataTable.display tbody th, .dataTables_wrapper table.dataTable.display tbody td { border-top: 1px solid #ddd; } .dataTables_wrapper table.dataTable.row-border tbody tr:first-child th, .dataTables_wrapper table.dataTable.row-border tbody tr:first-child td, .dataTables_wrapper table.dataTable.display tbody tr:first-child th, .dataTables_wrapper table.dataTable.display tbody tr:first-child td { border-top: none; } .dataTables_wrapper table.dataTable.cell-border tbody th, .dataTables_wrapper table.dataTable.cell-border tbody td { border-top: 1px solid #ddd; border-right: 1px solid #ddd; } .dataTables_wrapper table.dataTable.cell-border tbody tr th:first-child, .dataTables_wrapper table.dataTable.cell-border tbody tr td:first-child { border-left: 1px solid #ddd; } .dataTables_wrapper table.dataTable.cell-border tbody tr:first-child th, .dataTables_wrapper table.dataTable.cell-border tbody tr:first-child td { border-top: none; } .dataTables_wrapper table.dataTable.stripe tbody tr.odd, .dataTables_wrapper table.dataTable.display tbody tr.odd { background-color: #f9f9f9; } .dataTables_wrapper table.dataTable.stripe tbody tr.odd.selected, .dataTables_wrapper table.dataTable.display tbody tr.odd.selected { background-color: #acbad4; } .dataTables_wrapper table.dataTable.hover tbody tr:hover, .dataTables_wrapper table.dataTable.display tbody tr:hover { background-color: #f6f6f6; } .dataTables_wrapper table.dataTable.hover tbody tr:hover.selected, .dataTables_wrapper table.dataTable.display tbody tr:hover.selected { background-color: #aab7d1; } .dataTables_wrapper table.dataTable.order-column tbody tr > .sorting_1, .dataTables_wrapper table.dataTable.order-column tbody tr > .sorting_2, .dataTables_wrapper table.dataTable.order-column tbody tr > .sorting_3, .dataTables_wrapper table.dataTable.display tbody tr > .sorting_1, .dataTables_wrapper table.dataTable.display tbody tr > .sorting_2, .dataTables_wrapper table.dataTable.display tbody tr > .sorting_3 { background-color: #fafafa; } .dataTables_wrapper table.dataTable.order-column tbody tr.selected > .sorting_1, .dataTables_wrapper table.dataTable.order-column tbody tr.selected > .sorting_2, .dataTables_wrapper table.dataTable.order-column tbody tr.selected > .sorting_3, .dataTables_wrapper table.dataTable.display tbody tr.selected > .sorting_1, .dataTables_wrapper table.dataTable.display tbody tr.selected > .sorting_2, .dataTables_wrapper table.dataTable.display tbody tr.selected > .sorting_3 { background-color: #acbad5; } .dataTables_wrapper table.dataTable.display tbody tr.odd > .sorting_1, .dataTables_wrapper table.dataTable.order-column.stripe tbody tr.odd > .sorting_1 { background-color: #f1f1f1; } .dataTables_wrapper table.dataTable.display tbody tr.odd > .sorting_2, .dataTables_wrapper table.dataTable.order-column.stripe tbody tr.odd > .sorting_2 { background-color: #f3f3f3; } .dataTables_wrapper table.dataTable.display tbody tr.odd > .sorting_3, .dataTables_wrapper table.dataTable.order-column.stripe tbody tr.odd > .sorting_3 { background-color: whitesmoke; } .dataTables_wrapper table.dataTable.display tbody tr.odd.selected > .sorting_1, .dataTables_wrapper table.dataTable.order-column.stripe tbody tr.odd.selected > .sorting_1 { background-color: #a6b4cd; } .dataTables_wrapper table.dataTable.display tbody tr.odd.selected > .sorting_2, .dataTables_wrapper table.dataTable.order-column.stripe tbody tr.odd.selected > .sorting_2 { background-color: #a8b5cf; } .dataTables_wrapper table.dataTable.display tbody tr.odd.selected > .sorting_3, .dataTables_wrapper table.dataTable.order-column.stripe tbody tr.odd.selected > .sorting_3 { background-color: #a9b7d1; } .dataTables_wrapper table.dataTable.display tbody tr.even > .sorting_1, .dataTables_wrapper table.dataTable.order-column.stripe tbody tr.even > .sorting_1 { background-color: #fafafa; } .dataTables_wrapper table.dataTable.display tbody tr.even > .sorting_2, .dataTables_wrapper table.dataTable.order-column.stripe tbody tr.even > .sorting_2 { background-color: #fcfcfc; } .dataTables_wrapper table.dataTable.display tbody tr.even > .sorting_3, .dataTables_wrapper table.dataTable.order-column.stripe tbody tr.even > .sorting_3 { background-color: #fefefe; } .dataTables_wrapper table.dataTable.display tbody tr.even.selected > .sorting_1, .dataTables_wrapper table.dataTable.order-column.stripe tbody tr.even.selected > .sorting_1 { background-color: #acbad5; } .dataTables_wrapper table.dataTable.display tbody tr.even.selected > .sorting_2, .dataTables_wrapper table.dataTable.order-column.stripe tbody tr.even.selected > .sorting_2 { background-color: #aebcd6; } .dataTables_wrapper table.dataTable.display tbody tr.even.selected > .sorting_3, .dataTables_wrapper table.dataTable.order-column.stripe tbody tr.even.selected > .sorting_3 { background-color: #afbdd8; } .dataTables_wrapper table.dataTable.display tbody tr:hover > .sorting_1, .dataTables_wrapper table.dataTable.order-column.hover tbody tr:hover > .sorting_1 { background-color: #eaeaea; } .dataTables_wrapper table.dataTable.display tbody tr:hover > .sorting_2, .dataTables_wrapper table.dataTable.order-column.hover tbody tr:hover > .sorting_2 { background-color: #ececec; } .dataTables_wrapper table.dataTable.display tbody tr:hover > .sorting_3, .dataTables_wrapper table.dataTable.order-column.hover tbody tr:hover > .sorting_3 { background-color: #efefef; } .dataTables_wrapper table.dataTable.display tbody tr:hover.selected > .sorting_1, .dataTables_wrapper table.dataTable.order-column.hover tbody tr:hover.selected > .sorting_1 { background-color: #a2aec7; } .dataTables_wrapper table.dataTable.display tbody tr:hover.selected > .sorting_2, .dataTables_wrapper table.dataTable.order-column.hover tbody tr:hover.selected > .sorting_2 { background-color: #a3b0c9; } .dataTables_wrapper table.dataTable.display tbody tr:hover.selected > .sorting_3, .dataTables_wrapper table.dataTable.order-column.hover tbody tr:hover.selected > .sorting_3 { background-color: #a5b2cb; } .dataTables_wrapper table.dataTable.no-footer { border-bottom: 1px solid #111; } .dataTables_wrapper table.dataTable.nowrap th, .dataTables_wrapper table.dataTable.nowrap td { white-space: nowrap; } .dataTables_wrapper table.dataTable.compact thead th, .dataTables_wrapper table.dataTable.compact thead td { padding: 4px 17px 4px 4px; } .dataTables_wrapper table.dataTable.compact tfoot th, .dataTables_wrapper table.dataTable.compact tfoot td { padding: 4px; } .dataTables_wrapper table.dataTable.compact tbody th, .dataTables_wrapper table.dataTable.compact tbody td { padding: 4px; } .dataTables_wrapper table.dataTable th.dt-left, .dataTables_wrapper table.dataTable td.dt-left { text-align: left; } .dataTables_wrapper table.dataTable th.dt-center, .dataTables_wrapper table.dataTable td.dt-center, .dataTables_wrapper table.dataTable td.dataTables_empty { text-align: center; } .dataTables_wrapper table.dataTable th.dt-right, .dataTables_wrapper table.dataTable td.dt-right { text-align: right; } .dataTables_wrapper table.dataTable th.dt-justify, .dataTables_wrapper table.dataTable td.dt-justify { text-align: justify; } .dataTables_wrapper table.dataTable th.dt-nowrap, .dataTables_wrapper table.dataTable td.dt-nowrap { white-space: nowrap; } .dataTables_wrapper table.dataTable thead th.dt-head-left, .dataTables_wrapper table.dataTable thead td.dt-head-left, .dataTables_wrapper table.dataTable tfoot th.dt-head-left, .dataTables_wrapper table.dataTable tfoot td.dt-head-left { text-align: left; } .dataTables_wrapper table.dataTable thead th.dt-head-center, .dataTables_wrapper table.dataTable thead td.dt-head-center, .dataTables_wrapper table.dataTable tfoot th.dt-head-center, .dataTables_wrapper table.dataTable tfoot td.dt-head-center { text-align: center; } .dataTables_wrapper table.dataTable thead th.dt-head-right, .dataTables_wrapper table.dataTable thead td.dt-head-right, .dataTables_wrapper table.dataTable tfoot th.dt-head-right, .dataTables_wrapper table.dataTable tfoot td.dt-head-right { text-align: right; } .dataTables_wrapper table.dataTable thead th.dt-head-justify, .dataTables_wrapper table.dataTable thead td.dt-head-justify, .dataTables_wrapper table.dataTable tfoot th.dt-head-justify, .dataTables_wrapper table.dataTable tfoot td.dt-head-justify { text-align: justify; } .dataTables_wrapper table.dataTable thead th.dt-head-nowrap, .dataTables_wrapper table.dataTable thead td.dt-head-nowrap, .dataTables_wrapper table.dataTable tfoot th.dt-head-nowrap, .dataTables_wrapper table.dataTable tfoot td.dt-head-nowrap { white-space: nowrap; } .dataTables_wrapper table.dataTable tbody th.dt-body-left, .dataTables_wrapper table.dataTable tbody td.dt-body-left { text-align: left; } .dataTables_wrapper table.dataTable tbody th.dt-body-center, .dataTables_wrapper table.dataTable tbody td.dt-body-center { text-align: center; } .dataTables_wrapper table.dataTable tbody th.dt-body-right, .dataTables_wrapper table.dataTable tbody td.dt-body-right { text-align: right; } .dataTables_wrapper table.dataTable tbody th.dt-body-justify, .dataTables_wrapper table.dataTable tbody td.dt-body-justify { text-align: justify; } .dataTables_wrapper table.dataTable tbody th.dt-body-nowrap, .dataTables_wrapper table.dataTable tbody td.dt-body-nowrap { white-space: nowrap; } .dataTables_wrapper table.dataTable, .dataTables_wrapper table.dataTable th, .dataTables_wrapper table.dataTable td { -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; } .dataTables_wrapper .dataTables_wrapper { position: relative; clear: both; *zoom: 1; zoom: 1; } .dataTables_wrapper .dataTables_wrapper .dataTables_length { float: left; } .dataTables_wrapper .dataTables_wrapper .dataTables_filter { float: right; text-align: right; } .dataTables_wrapper .dataTables_wrapper .dataTables_filter input { margin-left: 0.5em; } .dataTables_wrapper .dataTables_wrapper .dataTables_info { clear: both; float: left; padding-top: 0.755em; } .dataTables_wrapper .dataTables_wrapper .dataTables_paginate { float: right; text-align: right; padding-top: 0.25em; } .dataTables_wrapper .dataTables_wrapper .dataTables_paginate .paginate_button { box-sizing: border-box; display: inline-block; min-width: 1.5em; padding: 0.5em 1em; margin-left: 2px; text-align: center; text-decoration: none !important; cursor: pointer; *cursor: hand; color: #333 !important; border: 1px solid transparent; border-radius: 2px; } .dataTables_wrapper .dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover { color: #333 !important; border: 1px solid #979797; background-color: white; background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fff), color-stop(100%, #dcdcdc)); background: -webkit-linear-gradient(top, #fff 0%, #dcdcdc 100%); background: -moz-linear-gradient(top, #fff 0%, #dcdcdc 100%); background: -ms-linear-gradient(top, #fff 0%, #dcdcdc 100%); background: -o-linear-gradient(top, #fff 0%, #dcdcdc 100%); background: linear-gradient(to bottom, #fff 0%, #dcdcdc 100%); } .dataTables_wrapper .dataTables_wrapper .dataTables_paginate .paginate_button.disabled, .dataTables_wrapper .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover, .dataTables_wrapper .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active { cursor: default; color: #666 !important; border: 1px solid transparent; background: transparent; box-shadow: none; } .dataTables_wrapper .dataTables_wrapper .dataTables_paginate .paginate_button:hover { color: white !important; border: 1px solid #111; background-color: #585858; background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #585858), color-stop(100%, #111)); background: -webkit-linear-gradient(top, #585858 0%, #111 100%); background: -moz-linear-gradient(top, #585858 0%, #111 100%); background: -ms-linear-gradient(top, #585858 0%, #111 100%); background: -o-linear-gradient(top, #585858 0%, #111 100%); background: linear-gradient(to bottom, #585858 0%, #111 100%); } .dataTables_wrapper .dataTables_wrapper .dataTables_paginate .paginate_button:active { outline: none; background-color: #2b2b2b; background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #2b2b2b), color-stop(100%, #0c0c0c)); background: -webkit-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%); background: -moz-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%); background: -ms-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%); background: -o-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%); background: linear-gradient(to bottom, #2b2b2b 0%, #0c0c0c 100%); box-shadow: inset 0 0 3px #111; } .dataTables_wrapper .dataTables_wrapper .dataTables_paginate .ellipsis { padding: 0 1em; } .dataTables_wrapper .dataTables_wrapper .dataTables_processing { position: absolute; top: 50%; left: 50%; width: 100%; height: 40px; margin-left: -50%; margin-top: -25px; padding-top: 20px; text-align: center; font-size: 1.2em; background-color: white; background: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255, 255, 255, 0)), color-stop(25%, rgba(255, 255, 255, 0.9)), color-stop(75%, rgba(255, 255, 255, 0.9)), color-stop(100%, rgba(255, 255, 255, 0))); background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%); background: -moz-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%); background: -ms-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%); background: -o-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%); background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%); } .dataTables_wrapper .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_wrapper .dataTables_processing, .dataTables_wrapper .dataTables_wrapper .dataTables_paginate { color: #333; } .dataTables_wrapper .dataTables_wrapper .dataTables_scroll { clear: both; } .dataTables_wrapper .dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody { *margin-top: -1px; -webkit-overflow-scrolling: touch; } .dataTables_wrapper .dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody th, .dataTables_wrapper .dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody td { vertical-align: middle; } .dataTables_wrapper .dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody th > div.dataTables_sizing, .dataTables_wrapper .dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody td > div.dataTables_sizing { height: 0; overflow: hidden; margin: 0 !important; padding: 0 !important; } .dataTables_wrapper .dataTables_wrapper.no-footer .dataTables_scrollBody { border-bottom: 1px solid #111; } .dataTables_wrapper .dataTables_wrapper.no-footer div.dataTables_scrollHead table, .dataTables_wrapper .dataTables_wrapper.no-footer div.dataTables_scrollBody table { border-bottom: none; } .dataTables_wrapper .dataTables_wrapper:after { visibility: hidden; display: block; content: ""; clear: both; height: 0; } @media screen and (max-width: 767px) { .dataTables_wrapper .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_wrapper .dataTables_paginate { float: none; text-align: center; } .dataTables_wrapper .dataTables_wrapper .dataTables_paginate { margin-top: 0.5em; } } @media screen and (max-width: 640px) { .dataTables_wrapper .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_wrapper .dataTables_filter { float: none; text-align: center; } .dataTables_wrapper .dataTables_wrapper .dataTables_filter { margin-top: 0.5em; } } .dataTables_wrapper div.dt-autofill-handle { position: absolute; height: 8px; width: 8px; z-index: 102; box-sizing: border-box; border: 1px solid #316ad1; background: linear-gradient(to bottom, #abcffb 0%, #4989de 100%); } .dataTables_wrapper div.dt-autofill-select { position: absolute; z-index: 1001; background-color: #4989de; background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(255, 255, 255, 0.5) 5px, rgba(255, 255, 255, 0.5) 10px); } .dataTables_wrapper div.dt-autofill-select.top, .dataTables_wrapper div.dt-autofill-select.bottom { height: 3px; margin-top: -1px; } .dataTables_wrapper div.dt-autofill-select.left, .dataTables_wrapper div.dt-autofill-select.right { width: 3px; margin-left: -1px; } .dataTables_wrapper div.dt-autofill-list { position: fixed; top: 50%; left: 50%; width: 500px; margin-left: -250px; background-color: white; border-radius: 6px; box-shadow: 0 0 5px #555; border: 2px solid #444; z-index: 11; box-sizing: border-box; padding: 1.5em 2em; } .dataTables_wrapper div.dt-autofill-list ul { display: table; margin: 0; padding: 0; list-style: none; width: 100%; } .dataTables_wrapper div.dt-autofill-list ul li { display: table-row; } .dataTables_wrapper div.dt-autofill-list ul li:last-child div.dt-autofill-question, .dataTables_wrapper div.dt-autofill-list ul li:last-child div.dt-autofill-button { border-bottom: none; } .dataTables_wrapper div.dt-autofill-list ul li:hover { background-color: #f6f6f6; } .dataTables_wrapper div.dt-autofill-list div.dt-autofill-question { display: table-cell; padding: 0.5em 0; border-bottom: 1px solid #ccc; } .dataTables_wrapper div.dt-autofill-list div.dt-autofill-question input[type=number] { padding: 6px; width: 30px; margin: -2px 0; } .dataTables_wrapper div.dt-autofill-list div.dt-autofill-button { display: table-cell; padding: 0.5em 0; border-bottom: 1px solid #ccc; } .dataTables_wrapper div.dt-autofill-list div.dt-autofill-button button { color: white; margin: 0; padding: 6px 12px; text-align: center; border: 1px solid #2e6da4; background-color: #337ab7; border-radius: 4px; cursor: pointer; vertical-align: middle; } .dataTables_wrapper div.dt-autofill-background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); background: radial-gradient(ellipse farthest-corner at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%); z-index: 10; } .dataTables_wrapper table.DTFC_Cloned thead, .dataTables_wrapper table.DTFC_Cloned tfoot { background-color: white; } .dataTables_wrapper div.DTFC_Blocker { background-color: white; } .dataTables_wrapper div.DTFC_LeftWrapper table.dataTable, .dataTables_wrapper div.DTFC_RightWrapper table.dataTable { margin-bottom: 0; z-index: 2; } .dataTables_wrapper div.DTFC_LeftWrapper table.dataTable.no-footer, .dataTables_wrapper div.DTFC_RightWrapper table.dataTable.no-footer { border-bottom: none; } .dataTables_wrapper table.fixedHeader-floating { position: fixed !important; background-color: white; } .dataTables_wrapper table.fixedHeader-floating.no-footer { border-bottom-width: 0; } .dataTables_wrapper table.fixedHeader-locked { position: absolute !important; background-color: white; } @media print { .dataTables_wrapper table.fixedHeader-floating { display: none; } } .dataTables_wrapper div.DTS tbody th, .dataTables_wrapper div.DTS tbody td { white-space: nowrap; } .dataTables_wrapper div.DTS tbody tr.even { background-color: white; } .dataTables_wrapper div.DTS div.DTS_Loading { z-index: 1; } .dataTables_wrapper div.DTS div.dataTables_scrollBody { background: repeating-linear-gradient(45deg, #edeeff, #edeeff 10px, #fff 10px, #fff 20px); } .dataTables_wrapper div.DTS div.dataTables_scrollBody table { z-index: 2; } .dataTables_wrapper div.DTS div.dataTables_paginate { display: none; } .dataTables_wrapper table.dataTable tbody > tr.selected, .dataTables_wrapper table.dataTable tbody > tr > .selected { background-color: #B0BED9; } .dataTables_wrapper table.dataTable.stripe tbody > tr.odd.selected, .dataTables_wrapper table.dataTable.stripe tbody > tr.odd > .selected, .dataTables_wrapper table.dataTable.display tbody > tr.odd.selected, .dataTables_wrapper table.dataTable.display tbody > tr.odd > .selected { background-color: #acbad4; } .dataTables_wrapper table.dataTable.hover tbody > tr.selected:hover, .dataTables_wrapper table.dataTable.hover tbody > tr > .selected:hover, .dataTables_wrapper table.dataTable.display tbody > tr.selected:hover, .dataTables_wrapper table.dataTable.display tbody > tr > .selected:hover { background-color: #aab7d1; } .dataTables_wrapper table.dataTable.order-column tbody > tr.selected > .sorting_1, .dataTables_wrapper table.dataTable.order-column tbody > tr.selected > .sorting_2, .dataTables_wrapper table.dataTable.order-column tbody > tr.selected > .sorting_3, .dataTables_wrapper table.dataTable.order-column tbody > tr > .selected, .dataTables_wrapper table.dataTable.display tbody > tr.selected > .sorting_1, .dataTables_wrapper table.dataTable.display tbody > tr.selected > .sorting_2, .dataTables_wrapper table.dataTable.display tbody > tr.selected > .sorting_3, .dataTables_wrapper table.dataTable.display tbody > tr > .selected { background-color: #acbad5; } .dataTables_wrapper table.dataTable.display tbody > tr.odd.selected > .sorting_1, .dataTables_wrapper table.dataTable.order-column.stripe tbody > tr.odd.selected > .sorting_1 { background-color: #a6b4cd; } .dataTables_wrapper table.dataTable.display tbody > tr.odd.selected > .sorting_2, .dataTables_wrapper table.dataTable.order-column.stripe tbody > tr.odd.selected > .sorting_2 { background-color: #a8b5cf; } .dataTables_wrapper table.dataTable.display tbody > tr.odd.selected > .sorting_3, .dataTables_wrapper table.dataTable.order-column.stripe tbody > tr.odd.selected > .sorting_3 { background-color: #a9b7d1; } .dataTables_wrapper table.dataTable.display tbody > tr.even.selected > .sorting_1, .dataTables_wrapper table.dataTable.order-column.stripe tbody > tr.even.selected > .sorting_1 { background-color: #acbad5; } .dataTables_wrapper table.dataTable.display tbody > tr.even.selected > .sorting_2, .dataTables_wrapper table.dataTable.order-column.stripe tbody > tr.even.selected > .sorting_2 { background-color: #aebcd6; } .dataTables_wrapper table.dataTable.display tbody > tr.even.selected > .sorting_3, .dataTables_wrapper table.dataTable.order-column.stripe tbody > tr.even.selected > .sorting_3 { background-color: #afbdd8; } .dataTables_wrapper table.dataTable.display tbody > tr.odd > .selected, .dataTables_wrapper table.dataTable.order-column.stripe tbody > tr.odd > .selected { background-color: #a6b4cd; } .dataTables_wrapper table.dataTable.display tbody > tr.even > .selected, .dataTables_wrapper table.dataTable.order-column.stripe tbody > tr.even > .selected { background-color: #acbad5; } .dataTables_wrapper table.dataTable.display tbody > tr.selected:hover > .sorting_1, .dataTables_wrapper table.dataTable.order-column.hover tbody > tr.selected:hover > .sorting_1 { background-color: #a2aec7; } .dataTables_wrapper table.dataTable.display tbody > tr.selected:hover > .sorting_2, .dataTables_wrapper table.dataTable.order-column.hover tbody > tr.selected:hover > .sorting_2 { background-color: #a3b0c9; } .dataTables_wrapper table.dataTable.display tbody > tr.selected:hover > .sorting_3, .dataTables_wrapper table.dataTable.order-column.hover tbody > tr.selected:hover > .sorting_3 { background-color: #a5b2cb; } .dataTables_wrapper table.dataTable.display tbody > tr:hover > .selected, .dataTables_wrapper table.dataTable.display tbody > tr > .selected:hover, .dataTables_wrapper table.dataTable.order-column.hover tbody > tr:hover > .selected, .dataTables_wrapper table.dataTable.order-column.hover tbody > tr > .selected:hover { background-color: #a2aec7; } .dataTables_wrapper table.dataTable td.select-checkbox { position: relative; } .dataTables_wrapper table.dataTable td.select-checkbox:before, .dataTables_wrapper table.dataTable td.select-checkbox:after { display: block; position: absolute; top: 1.2em; left: 50%; width: 12px; height: 12px; box-sizing: border-box; } .dataTables_wrapper table.dataTable td.select-checkbox:before { content: ' '; margin-top: -6px; margin-left: -6px; border: 1px solid black; border-radius: 3px; } .dataTables_wrapper table.dataTable tr.selected td.select-checkbox:after { content: '\2714'; margin-top: -11px; margin-left: -4px; text-align: center; text-shadow: 1px 1px #B0BED9, -1px -1px #B0BED9, 1px -1px #B0BED9, -1px 1px #B0BED9; } .dataTables_wrapper div.dataTables_wrapper span.select-info, .dataTables_wrapper div.dataTables_wrapper span.select-item { margin-left: 0.5em; } @media screen and (max-width: 640px) { .dataTables_wrapper div.dataTables_wrapper span.select-info, .dataTables_wrapper div.dataTables_wrapper span.select-item { margin-left: 0; display: block; } }
css
<gh_stars>0 // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "config.h" #include "platform/graphics/paint/DrawingRecorder.h" #include "platform/RuntimeEnabledFeatures.h" #include "platform/graphics/GraphicsContext.h" #include "platform/graphics/GraphicsLayer.h" #include "platform/graphics/paint/CachedDisplayItem.h" #include "platform/graphics/paint/DisplayItemList.h" #include "platform/graphics/paint/DrawingDisplayItem.h" #include "third_party/skia/include/core/SkPicture.h" namespace blink { DrawingRecorder::DrawingRecorder(GraphicsContext& context, const DisplayItemClientWrapper& displayItemClient, DisplayItem::Type displayItemType, const FloatRect& cullRect) : m_context(context) , m_displayItemClient(displayItemClient) , m_displayItemType(displayItemType) , m_canUseCachedDrawing(false) #if ENABLE(ASSERT) , m_checkedCachedDrawing(false) , m_displayItemPosition(RuntimeEnabledFeatures::slimmingPaintEnabled() ? m_context.displayItemList()->newDisplayItemsSize() : 0) , m_skipUnderInvalidationChecking(false) #endif { if (!RuntimeEnabledFeatures::slimmingPaintEnabled()) return; ASSERT(context.displayItemList()); if (context.displayItemList()->displayItemConstructionIsDisabled()) return; ASSERT(DisplayItem::isDrawingType(displayItemType)); m_canUseCachedDrawing = context.displayItemList()->clientCacheIsValid(displayItemClient.displayItemClient()); #if ENABLE(ASSERT) context.setInDrawingRecorder(true); m_canUseCachedDrawing &= !RuntimeEnabledFeatures::slimmingPaintUnderInvalidationCheckingEnabled(); #endif #ifndef NDEBUG // Enable recording to check if any painter is still doing unnecessary painting when we can use cache. context.beginRecording(cullRect); #else if (!m_canUseCachedDrawing) context.beginRecording(cullRect); #endif #if ENABLE(ASSERT) if (RuntimeEnabledFeatures::slimmingPaintStrictCullRectClippingEnabled() && !m_canUseCachedDrawing) { // Skia depends on the cull rect containing all of the display item commands. When strict // cull rect clipping is enabled, make this explicit. This allows us to identify potential // incorrect cull rects that might otherwise be masked due to Skia internal optimizations. context.save(); context.clipRect(enclosingIntRect(cullRect), NotAntiAliased, SkRegion::kIntersect_Op); } #endif } DrawingRecorder::~DrawingRecorder() { if (!RuntimeEnabledFeatures::slimmingPaintEnabled()) return; ASSERT(m_context.displayItemList()); if (m_context.displayItemList()->displayItemConstructionIsDisabled()) return; #if ENABLE(ASSERT) if (RuntimeEnabledFeatures::slimmingPaintStrictCullRectClippingEnabled() && !m_canUseCachedDrawing) { m_context.restore(); } ASSERT(m_checkedCachedDrawing); m_context.setInDrawingRecorder(false); ASSERT(m_displayItemPosition == m_context.displayItemList()->newDisplayItemsSize()); #endif if (m_canUseCachedDrawing) { #ifndef NDEBUG RefPtr<const SkPicture> picture = m_context.endRecording(); if (picture && picture->approximateOpCount()) { WTF_LOG_ERROR("Unnecessary painting for %s\n. Should check recorder.canUseCachedDrawing() before painting", m_displayItemClient.debugName().utf8().data()); } #endif m_context.displayItemList()->add(CachedDisplayItem::create(m_displayItemClient, DisplayItem::drawingTypeToCachedType(m_displayItemType))); } else { OwnPtr<DrawingDisplayItem> drawingDisplayItem = DrawingDisplayItem::create(m_displayItemClient, m_displayItemType, m_context.endRecording()); #if ENABLE(ASSERT) if (m_skipUnderInvalidationChecking) drawingDisplayItem->setSkipUnderInvalidationChecking(); #endif m_context.displayItemList()->add(drawingDisplayItem.release()); } } } // namespace blink
cpp
You can update your channel preference from the Settings menu in the header menu. You can update your channel preference from the Settings menu in the header menu. Latest Topics For ' ' Anirudh and Vishal join hands! தமிழக அரசின் நடவடிக்கையை எதிர்த்து நடிகர் விஷால் வழக்கு! TN government appoints special officer for TFPC! Vishal's strong response to theater owner! Vishal's grand action episode! Exciting update on Ayogya trailer!
english
<reponame>rufset/bot-filter { "_id": { "$oid": "6071e39d43dd71267de1c3f0" }, "author_association": "COLLABORATOR", "issue_url": "https://api.github.com/repos/pydanny/cookiecutter-django/issues/1118", "updated_at": "2017-04-12T14:07:09Z", "performed_via_github_app": null, "html_url": "https://github.com/pydanny/cookiecutter-django/issues/1118#issuecomment-293588076", "created_at": "2017-04-12T14:07:09Z", "id": 293588076, "body": "@plus500s [`chardet`](https://github.com/chardet/chardet) released new version yesterday. \r\na very large changes in the code base.: https://github.com/chardet/chardet/compare/2.3.0...3.0.1\r\n\r\ntry install a old version of chardet:\r\n\r\n```\r\npip install \"chardet<3.0.0\"\r\n```\r\nAnd see if the error occur again ...\r\n\r\n", "user": { "gists_url": "https://api.github.com/users/luzfcb/gists{/gist_id}", "repos_url": "https://api.github.com/users/luzfcb/repos", "following_url": "https://api.github.com/users/luzfcb/following{/other_user}", "starred_url": "https://api.github.com/users/luzfcb/starred{/owner}{/repo}", "login": "luzfcb", "followers_url": "https://api.github.com/users/luzfcb/followers", "type": "User", "url": "https://api.github.com/users/luzfcb", "subscriptions_url": "https://api.github.com/users/luzfcb/subscriptions", "received_events_url": "https://api.github.com/users/luzfcb/received_events", "avatar_url": "https://avatars.githubusercontent.com/u/807599?v=4", "events_url": "https://api.github.com/users/luzfcb/events{/privacy}", "html_url": "https://github.com/luzfcb", "site_admin": false, "id": 807599, "gravatar_id": "", "node_id": "MDQ6VXNlcjgwNzU5OQ==", "organizations_url": "https://api.github.com/users/luzfcb/orgs" }, "url": "https://api.github.com/repos/pydanny/cookiecutter-django/issues/comments/293588076", "node_id": "MDEyOklzc3VlQ29tbWVudDI5MzU4ODA3Ng==" }
json
<reponame>kujirahand/nadesiko3rust //! 演算子の優先順位を定義 use crate::node::*; //// 演算における値の優先順位 const OP_PRIORITY_VALUE: i8 = 100; //// 演算における関数の優先順位 const OP_PRIORTY_FUNCTION: i8 = 5; /// 演算子の優先順位を定義 // (memo) なでしこv3 オリジナルの優先順位 <https://github.com/kujirahand/nadesiko3/blob/a80fd6074dc171cfae41457d1cd4c390a5aa43a4/src/nako_parser_const.js> pub fn get_priority(c: char) -> i8 { match c { '(' => 60, '^' => 50, // mul, div '*' => 40, '/' => 40, '%' => 40, // plus, minus '+' => 30, '結' => 30, // 文字列の加算 '-' => 30, // comp '>' => 20, '≧' => 20, '<' => 20, '≦' => 20, '=' => 20, '≠' => 20, // or and '&' => 10, '|' => 10, _ => OP_PRIORITY_VALUE, } } /// Nodeに対して優先順位を演算の取得する関数 pub fn get_node_priority(node_v: &Node) -> i8 { match node_v.kind { NodeKind::Operator => { match &node_v.value { NodeValue::Operator(op) => { get_priority(op.flag) }, _ => OP_PRIORITY_VALUE, } }, NodeKind::Bool => OP_PRIORITY_VALUE, NodeKind::Int => OP_PRIORITY_VALUE, NodeKind::Number => OP_PRIORITY_VALUE, NodeKind::String => OP_PRIORITY_VALUE, NodeKind::GetVar => OP_PRIORITY_VALUE, NodeKind::CallSysFunc => OP_PRIORTY_FUNCTION, NodeKind::CallUserFunc => OP_PRIORTY_FUNCTION, _ => OP_PRIORITY_VALUE, } }
rust
import wordToData, { normalizeMarkup } from './wordToData' import fetchMock from 'fetch-mock' import asdfasdfMarkup from '../../mocks/wordAsdfasdf' import setMarkup from '../../mocks/wordSet' import composeQuery from '../composeQuery/composeQuery' import { WordFetchError } from '../../types.d' jest.mock('../../core/composeWordData/composeWordData', () => jest.fn(a => a)) fetchMock.get(composeQuery('set'), setMarkup) fetchMock.get(composeQuery('asdfasdf'), asdfasdfMarkup) fetchMock.get(composeQuery('offline-request'), { throws: new Error('Failed to fetch') }) describe('wordToData', () => { it('returns correct status for offline request', () => { return wordToData('offline-request').then(data => { expect(data).toEqual({ status: WordFetchError.Offline }) }) }) it('returns correct status for non-existent word', () => { return wordToData('asdfasdf').then(data => { expect(data).toEqual({ status: WordFetchError.NotFound }) }) }) it('returns correct data for real word', () => { return wordToData('set').then(data => { expect(data).toEqual({ payload: normalizeMarkup(setMarkup) }) }) }) })
typescript
# capfile · [![Build Status](https://github.com/martinpaljak/capfile/workflows/Continuous%20Integration/badge.svg?branch=master)](https://github.com/martinpaljak/capfile/actions) [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/martinpaljak/capfile/blob/master/LICENSE) [![Release](https://img.shields.io/github/release/martinpaljak/capfile/all.svg)](https://github.com/martinpaljak/capfile/releases) [![Maven version](https://img.shields.io/maven-metadata/v?label=javacard.pro%20version&metadataUrl=https%3A%2F%2Fjavacard.pro%2Fmaven%2Fcom%2Fgithub%2Fmartinpaljak%2Fcapfile%2Fmaven-metadata.xml)](https://gist.github.com/martinpaljak/c77d11d671260e24eef6c39123345cae) [![Maven Central](https://img.shields.io/maven-central/v/com.github.martinpaljak/capfile)](https://mvnrepository.com/artifact/com.github.martinpaljak/capfile) > Handle JavaCard CAP files, from command line or Java project java -jar capfile.jar <capfile> ## Off-card verification java -jar capfile.jar -v <path to JavaCard SDK> [<targetsdkpath>] <capfile> [<expfiles...>] (SDK-s usable on Unix machines are conveniently available from https://github.com/martinpaljak/oracle_javacard_sdks/). EXP files can be plain EXP files or JAR files containing EXP files. Please use JavaCard 3.0.5u3 as the SDK and verify target SDK. ## DAP signing Usable with [GlobalPlatformPro](https://github.com/martinpaljak/GlobalPlatformPro). At the moment, only PKCS#1 v1.5 SHA1 signature with 1024 bit RSA key is supported. java -jar capfile.jar -s <keyfile.pem> <capfile> A sample flow would look along the lines of: ```shell openssl genrsa 1024 > dap.pem # generate DAP key capfile -s dap.pem applet.cap # sign CAP with DAP key gp -domain $SSD_AID -privs DAPVerification --allow-to # create SSD with DAP gp -sdaid $SSD_AID -put-key dap.pem -key $SSD_SCP_KEY # add DAP key to SSD gp -load applet.cap -to $SSD_AID # load signed CAP file to SSD ```
markdown
# embedded-linux-learning-and-practice-code
markdown
Japan’s SoftBank Group Corp on Friday posted a sharply narrower annual loss after a capital raise using its stake in Alibaba Group Holding Ltd helped cushion investment loss at its Vision Fund investing arm. SoftBank reported a net loss of 970 billion yen ($7. 18 billion) for the year ended March 31, compared with a 1. 7 trillion yen loss in the same period a year earlier. CEO Masayoshi Son’s attempt to bestride the tech investing industry has suffered a series of high-profile reversals after outsized bets through SoftBank’s first Vision Fund turned sour and investments made at bubbly valuations via a smaller second fund slumped. With key architects of that strategy having left, Son has focused on shoring up the balance sheet, cutting his stake in e-commerce giant Alibaba and stepping back from trademark presentations to focus on the listing of chip designer Arm. Over the January-March quarter the fair value of the Vision Fund unit’s portfolio was marked down by $2. 3 billion to $138 billion. The result marks the investing arm’s fifth consecutive quarter of investment loss, albeit smaller than in previous quarters. Assets gaining value include e-commerce retailer Coupang Inc and robotics company AutoStore Holdings Ltd, with office-share company WeWork Inc among the fallers. SoftBank wrote down the value of private portfolio companies in both the first and second funds. At the end of March, the second fund’s portfolio was worth $31 billion compared with an acquisition cost of $49. 9 billion. SoftBank has said it is in defence mode, putting investing activity on the backburner with the Vision Fund unit striking just 25 new deals over the past year. Looking to bolster its capital buffers, SoftBank raised $35. 46 billion through prepaid forward contracts using Alibaba shares during the fiscal year. A further $4. 1 billion was raised through forward contracts for the period after April 1, 2023. With the uptick in some tech stock prices, investor attention has turned to how long SoftBank will maintain its holding pattern. Referring to the rise of new technology such as generative artificial intelligence, “we need to look at whether we should stick to our defensive strategy, or whether we should also be on offence,” SoftBank Chief Financial Officer Yoshimitsu Goto told a news briefing. The Vision Fund emphasises that it holds stakes in companies including Arm and short video app TikTok parent Bytedance worth some $37 billion ready to go public in the future. Investors are also focused on the potential for further buybacks. SoftBank’s shares closed down 0. 85% ahead of earnings and have fallen almost 9% this year.
english
We celebrate the World AIDS Day on December 1 to show solidarity with the millions of people living with HIV worldwide. (The writer is a consultant dermatologist. He can be reached at drmontudeka13@gmail. com) We celebrate the World AIDS Day on December 1 to show solidarity with the millions of people living with HIV worldwide. On this day, we wear RED RIBBON to spread HIV awareness among the general public. The world has made significant progress since late 1990s and the movement to combat the AIDS epidemic has set an extraordinary example among the public health programme. The theme for the World AIDS Day 2020 is "Global Solidarity, Shared Responsibility". In October 2014, UNAIDS sets an ambitious goal of 90-90-90 to help in ending the epidemic by year 2030. This means 90% of all people living with HIV have to know their status, 90% of all the diagnosed HIV-infected individuals to receive the ANTI RETROVIRAL THERAPY and among those individuals receiving ART 90% to remain virally suppressed. To achieve this NACO-adopted test and treat policy for all PLHIV in country and they are monitored routinely by performing viral load test once in a year. The focus on the vulnerable groups, especially children, pregnant ladies and high-risk groups have been increased to many folds. The HIV prevention, testing, treatment and care services are all being provided to PLHIV in all ART Centers as well as non-governmental organizations across the country. Acquired Immune Deficiency Syndrome or commonly known as AIDS is caused by HIV or HUMAN IMMUNODEFICIENCY VIRUS. It attacks our body by jeopardizing our immune system and makes it vulnerable to other life-threatening infectious diseases, cancers and degenerative diseases which make it a most dreaded disease of present time. The virus incorporates its genetic material into human host cells mostly the CD4+T – cells of our immune system and thereby replicates inside it and make new virions after destroying the human host cell. The virions liberated attack newer cells and go on replicating and destroying more and more CD4+T cells. Slowly this weakens our ability to fight against the diseases. Due to its long incubation period people might stay asymptomatic until the disease spreads to a large extent. A few of the common symptoms and diseases include loss of weight and frequent fever not responding to traditional treatments, mostly because of tuberculosis, dysentery, oral ulcers due to candidiasis, viral infections like herpes and associated genital lesions due to various sexually transmitted diseases. HIV majorly transmits by sexual transmission, mother to child, blood and its products. Stringent measures for safe blood transfusions have been undertaken by allowing blood banks to operate only after obtaining proper license under SBTC, NACO. Mother-to-child transmission is curtailed by screening and treating every pregnant woman for HIV and STD. Early infant diagnosis also helps to identify and treats the infected child at an early stage of disease. Safe sexual practices like condom usage, non-sharing of needles, good hygiene, early treatment of STDs, behavioural therapy, counseling services in adolescent clinics, ICTCs and most importantly empathy and zero discrimination towards PLHIVs will go a long way to help us to contain the epidemic of HIV/AIDS.
english
Telugu Desam Party president and Andhra Pradesh Chief Minister N Chandrababu Naidu always cries from the roof tops about the empty exchequer and financial crisis caused due to bifurcation of erstwhile united Andhra Pradesh State. But the same gentleman does not hesitate to spend extravagantly to garner publicity and trouble the people. It was evident from the way Naidu convened the so-called “crucial” meeting of his Cabinet colleagues and senior bureaucrats at Secretariat in Hyderabad. And believe it or not, the government had spent nearly Rs 20 lakh on travel expenses alone for them to attend a meeting which did not last even three and a half hours. It is a known fact that Naidu has been running his administration from his make-shift camp office at Vijayawada and he is hardly coming to Hyderabad these days. For strange reasons, he somehow called for a high-level meeting at Secretariat in Hyderabad. As a result, all the ministers, special chief secretaries, principal secretaries and Secretaries camping in Vijayawada were forced to come to Hyderabad. Besides them, other heads of department working in different places of Andhra Pradesh were also asked to come to Hyderabad. Ironically, the agenda of the meeting was to fix revenue targets for the departments for the next financial year 2016-17 which could have been done at much later date! Most of the officials and ministers travelled by the air to reach Hyderabad spending huge amounts. And all of them were provided accommodation in star hotels spending lakhs of rupees. And Naidu himself had spent hefty amounts on his chartered flight and also helicopter. All of them were paid local conveyance expenses. Besides, huge amount was spent on the travel expenses of private secretaries and assistants of ministers and senior IAS officers. Ironically, Naidu has called for the Cabinet meeting at Vijaywada on Monday and all these ministers and officials and their staff were asked to come back to Vijayawada. This is additional expenditure. One wondered why Naidu did not think of hosting Cabinet meeting in Vijayawada, since all the cabinet colleagues are anyway in Hyderabad. But, that is Naidu!
english
<reponame>DavosLi59l1tt/selenium-webdriver-software-testings package gu.dtalk.cmd; import static com.google.common.base.Preconditions.checkNotNull; import com.google.common.base.Strings; import com.google.common.base.Supplier; import com.google.common.base.Suppliers; import gu.dtalk.DeviceInstruction; import gu.simplemq.Channel; public class FreshedChannelSupplier implements Supplier<Channel<DeviceInstruction>>{ private final Supplier<String> taskQueueSupplier; private Channel<DeviceInstruction> taskChannel; public FreshedChannelSupplier(Supplier<String> taskQueueSupplier) { this.taskQueueSupplier = checkNotNull(taskQueueSupplier,"taskQueueSupplier is null"); } public FreshedChannelSupplier(String taskQueue) { this(Suppliers.ofInstance(checkNotNull(Strings.emptyToNull(taskQueue),"taskQueue is null or empty"))); } @Override public Channel<DeviceInstruction> get(){ String name = checkNotNull(taskQueueSupplier.get(),"taskQueue provided by taskQueueSupplier is null"); if(taskChannel == null || !taskChannel.name.equals(name)){ Channel<DeviceInstruction> ch = new Channel<DeviceInstruction>(name){}; taskChannel = ch; } return taskChannel; } }
java
--- layout: post status: publish published: true title: Acrobat crashes a few seconds after opening a PDF... date: 2007-06-14 00:52:00.000000000 +02:00 categories: - hacks tags: [] --- **Problem:** Acrobat crashes a few seconds after opening a PDF. **Cause:** the acrobat updater... **Solution:** Go to acrobat plug-in directory (`c:\program files\adobe\acrobat 8.0\acrobat\plug_ins`) and rename `updater.api` to something else.
markdown
The Finance Ministry, in consultation with top bankers, has come up with an ambitious ‘asset quality blueprint’ to combat the crisis of accumulating non-performing assets (NPAs) impeding the growth of public sector banks. The action plan, after extensive discussions with Union Finance Minister Arun Jaitley and RBI Governor Raghuram Rajan at the ‘Gyan Sangam’ bankers retreat in Pune, aims to effect a radical change in the mindset of the functioning of PSBs, sources said. According to them, the government may consider selectively privatizing the 27 PSBs. A salient feature of the three-pronged approach to battle the malaise of deteriorating asset quality includes the setting up a public sector undertaking (PSU) ‘band bank’ where all big-ticket NPAs are to be parked. The Finance Ministry is planning to crackdown on defaulters by giving more teeth to DRT laws and tone up the long-suffering debt recovery tribunals (DRT) – a demand fervently expressed by top PSB heads during discussions here. According to reports, a staggering sum of nearly Rs. 1. 5 trillion in debts is locked on account of tardy loan recovery, a fact not aided by the slow and cumbersome disposal mechanism of DRTs. “Evolving a mechanism for time-bound disposal of bad loans was a top priority on the agenda. The Ministry is also mooting the setting-up of a central repository to deal with credit demands of small and medium enterprises SMEs,” said a top PSB head, speaking to The Hindu . Sources said the RBI would be framing guidelines to cap pledging of shares by promoters of defaulting companies. In its latest Financial Stability Report (FSR), the RBI had expressed grave concern over promoters’ share pledging. deposit-oriented plans. Banks have been asked to turn to multiple channels of loan recovery, namely by leveraging technology to recover stressed assets, said sources.
english
The UN is asking for 95 million dollars in food aid for almost a million Gazans, suffering under an Israeli blockade since 2006. Scores of UN projects have been shut down and thousands made jobless since Israel refused to allow in construction material in the besieged Gaza Strip. Palestinians are facing severe electricity shortages and reeling from devastating floods amid the cold winter weather. Meanwhile, the Israeli prime minister has said Tel Aviv will not stop even for a moment settlement construction on occupied Palestinian land despite the fact that U-N Resolution 4-4-6 and a ruling by the International Court of Justice conclude the Israeli settlements violate international law. Is Israel enjoying immunity from prosecution for its violations? On this edition of the Debate, we\'re discussing how a growing Boycott, Divestment and Sanctions campaign is affecting the global discourse on the Israeli-Palestinian problem. The tragedy of Imam Hussein who was martyred around 14 centuries ago along with 72 of his companions in Iraq\'s Karbala has touched the hearts of millions across the globe does not stop at the martyrdom Prophet Mohammad\'s grandson. Millions of Shiite Muslims also remember the sufferings of the survivors of Karbala, mostly women and children, many of whom spent the rest of their lives telling the tale. The Syrian foreign minister has accused foreign supporters of insurgents of leaking information about the locations of the country\'s chemical weapons. Walid Moallem slammed the countries that help militants locate Syria\'s chemical weapons, saying Damascus holds such states responsible for the consequences of their actions. The Syrian foreign ministry also called on international organizations to take action and help stop these acts. It also noted that government forces have foiled two insurgent attacks on the locations of chemical weapons in central and southern Syria. Earlier this week, militants tried to storm two facilities that stored the countries\' chemical arms. They attempted to break into the facilities with an armored vehicle loaded with explosives. Syrian armed forces continue making advances in Aleppo. The army has managed to retake a number of buildings in the district of Layramoun in the city\\\'s north. The area is considered the northern gateway into Aleppo. The army\\\'s advances stop foreign-backed militants from smuggling weapons into Aleppo from the northern part of the city. The achievement is the latest in a series of military operations against insurgents who receive military aid from their supporters in Western countries and their regional allies, especially Qatar, Saudi Arabia and Turkey. The head of the Atomic Energy Organization of Iran says Tehran has built a new generation of centrifuges for uranium enrichment. The head of the Atomic Energy Organization of Iran says Tehran has built a new generation of centrifuges for uranium enrichment. Ali Akbar Salehi says Iran has built two kinds of second generation centrifuges with capacity twice as the ones before. He says the second-generation centrifuges have been installed but under the Geneva deal, Iran will not inject gas into them for six months. He also says if Iran needs 20 percent enriched uranium for its nuclear facilities, the country has the right to enrich it. Salehi confirmed that Tehran has negotiated the construction of four new nuclear facilities with Moscow. Under an interim nuclear deal reached in Geneva in November, Iran has agreed not to bring new centrifuges into operation for six months. But the deal does not stop it from developing centrifuges. What is behind the surprise Saudi decision to provide 3 billion dollars worth of military aid to the Lebanese army? What is behind the surprise Saudi decision to provide 3 billion dollars worth of military aid to the Lebanese army? The announcement of this decision was recently made by Lebanese president Michel Suleiman, after Saudi King Abdullah and French president Francois Hollande apparently agreed on the issue during their summit in Riyadh. The deal says Paris is to play the role of the military supplier, while Riyadh will take care of the financing. No one has so far mentioned that the military aid could be used to deter Israel. Tel Aviv has launched wars on Lebanon ever since its existence but no such military aid has ever been granted to Lebanon. Moreover Israeli officials have not made any objections to this announcement. Hence the logical, widespread conclusion is that this step targets Hezbollah. In a recent visit by Suleiman to Riyadh, the Saudi Monarch reportedly called for the Lebanese army to stop Hezbollah from joining the fight in Syria. Many experts believe that this is a Saudi reaction to the role Hezbollah has played in thwarting Riyadh\\\'s agenda of toppling Syrian president Bashar Assad. Saudi Arabia\\\'s Lebanese allies in the March 14 movement appeared to confirm this view, with members of the movement describing this declaration as a blow to Hezbollah. Meanwhile, the designated supplier of the military aid, France, is believed to be the main force behind the recent E-U decision to blacklist the military wing of Hezbollah. Saudi Arabia is eager to escalate its campaign against Hezbollah, perhaps showing Washington that it can seek support elsewhere. France meanwhile welcomes the 3 billion dollar package, as it\\\'s trying to find ways to boost its austerity-hit economy. Now the main question is whether the deal could possibly change the Lebanese\\\'s anti-Israeli doctrine into an anti-Hezbollah stance? Beirut has filed a complaint to the United Nations against Israel over its spying on Lebanon. If Israel\'s spying, along with its violation of Lebanese airspace, \"constitutes a flagrant violation of international law and continuous aggression on Lebanese lands, Lebanese people, the military, security, and civilian institutions, then why hasn\'t the UN done anything about it? That\'s one of the questions we\'ll be asking in this edition of the debate. We\'ll also discuss the row over gas between Israel and Lebanon, and see what the chances are of a clash between Israel and Hezbollah. - Historian & Political Adviser, Geoffrey Alderman, (LONDON). - Prof., Notre Dame University, George Labaki (BEIRUT). 1) Lebanon\'s caretaker Fm has not only filed a complaint to the UN: He has sent similar letters to foreign ministers of nations belonging to the 15-member Security Council, as well as to the Arab League, European Union foreign policy chief Catherine Ashton, Secretary General of the Organization of Islamic Cooperation, and Chairman of the Non-Aligned Movement Iranian President Hassan Rouhani: Will any action be taken against Israel that will change Israel\'s behavior? 2) On Israel\'s illegal spying activities: the Dangers of the Israeli Telecomm Towers in Lebanese Territory, along with the Telecommunications Ministry announcement that Israel had installed surveillance posts along the border with Lebanon capable of monitoring the entire country: Why such interest in spying on such a vast scale over Lebanon? 3) REAX: \"Israel\'s next war must start in Lebanon\": Headline a few days of the Jewish Press: The next confrontation must start with heavy bombing attacks that would minimize later damage to Israeli cities like Kiryat Shmona, Tzfat, Nahariya and Tveria. - Israel air attacks inside Syria took place 5 times in 2013: Israel said to stop transfer of weapons to Hezbollah: Yet, other reports indicate most of the long-range surface to surface missiles has reached Hezbolah: Why has Israel not attacked Lebanon, or Hezbollah strongholds? - Syria spillover increasing chances of Israel attacking Lebanon: Two rockets fired from Lebanon landed close to the northern Israel: Israel responded to the attack immediately by shelling the area from which the attack originated. Possibility: that a Jihad group launched the attack in order to get Israel to attack Hezbollah and to force Hezbollah to divert some of its troops from Syria back to Lebanon. 4) The United States and Hezbollah are in secret talks to deal with the fight against al-Qaida, regional stability, and Lebanese political issues? 5) The Eastern Mediterranean\'s Oil And Gas: Israel and Lebanon have been at odds over their maritime borders for decades, and recent discoveries in what\'s called the Levant Basin could create more conflict? 6) Israel has found comfort in one of its enemies: Saudi Arabia (who has just given 3 billion in military aid to Lebanon): how do u view this alliance vis-à-vis Lebanon? 7) Terrorist attacks inside Lebanon have been on the rise recently, one twin bombings claiming the life of an Iranian diplomat: Do you agree with the Iranian ambassador to Beirut says all recent terrorist attacks in Lebanon were carried out to serve the interests of the Israeli regime? On the war on Syria: Syrian President Bashar al-Assad, in a meeting with Iranian Foreign Minister Mohammad Javad Zarif, warned that Saudi Arabia\'s political and religious ideology is \"a threat to the world\". Has Saudi Arabia\'s support for terrorists reached such an alarming level that UN Sec. Gen. Ban Ki Moon has said it will discuss Saudi support for terrorists in Iraq with UN members? In this edition of the debate, we\'ll discuss how isolated Saudi Arabia and its policy in Syria have become. Turkey, that has long called for the ouster of President Bashar Assad, is now calling for a shift in government policy towards Syria. In addition, we\'ll discuss how the U-S has come to recognize that their support for these insurgents has backfired, and further analyze reports of Western intel. agencies wanting to cooperate with Syria, Iran, and Russia in battling these extremists. - Journalist & Middle East Analyst, Sharif Nashashibi (LONDON). - Author & Historian, Webster Griffin Tarpley (WASHINGTON). 1. REAX: Syrian President Bashar al-Assad, in a meeting with Iranian Foreign Minister Mohammad Javad Zarif, warned that Saudi Arabia\'s political and religious ideology is \"a threat to the world\". - He was referring to Wahhabism, an ultra-conservative tradition which is predominant in Saudi Arabia, a key backer of insurgents fighting the Syrian government. - This seemed to reiterate the sentiment expressed by Saudi intelligence chief Bandar bin Sultan back in October when he talked of shifting away from the alliance with the U.S.: 3. It appears Saudi support for insurgents from AL Qaeda groups to otherwise, has created havoc in the region: From Syria, to Lebanon, to Iraq: And partly in Jordan, so much so that the UN chief Ban Ki Moon has said it may discuss this with security council members? 4. Turkey, has been a supporter of President Bashar Assad\'s ouster. But now Turkish President Abdullah Gul is now calling for a shift in government policy towards Syria. President Abdullah Gul said on Tuesday that \"I am of the opinion that we should recalibrate our diplomacy and security policies given the facts in the south of our country (in Syria).\" What do you make of Gul\'s call for a change in his country\'s policy? 5. MAJOR DEVELOPMENT: The Syrian deputy foreign minister says Western intelligence agencies have been recently visiting Damascus for talks on combating extremist insurgents. Mekdad: Mekdad said that the contacts appeared to show a rift between the political and security authorities in some countries opposed to Assad. Has the US and other Western countries like France and the UK realized that support for these insurgents have now backfired? 6. If Western intel. agencies are cooperating with Syria, which by default will include Iran, then why is the US then insisting Iran not to participate n Geneva 2, or only participate on the sidelines, a precondition that Iran has rejected? 7. United States, the West, Iran, Russia, Syria and the geopolitical shift, which has left Saudi Arabia isolated: Yet the pattern of global terrorism has been sponsored by the US, Israel, and their Arab partners Saudi Arabia and Qatar. Will the US stop its support for terrorists? 8. How far will the US go to counter Saudi Arabia\'s destructive role at least regionally: Are the 2 countries headed for a clash? This video is the English audio transcription of the speech delivered on January 19, 2014 by Ayatollah Khamenei, the Supreme Leader of the Islamic Revolution, in a meeting with government officials and foreign participants of the 27th Conference on Islamic Unity. The meeting was held in Imam Khomeini Hussainiyah on the occasion of the birthday anniversaries of the Holy Prophet (s.w.a.) and Imam Sadiq (a.s.). The following is the full text of the speech delivered on January 19, 2014 by Ayatollah Khamenei, the Supreme Leader of the Islamic Revolution, in a meeting with government officials and foreign participants of the 27th Conference on Islamic Unity. The meeting was held in Imam Khomeini Hussainiyah on the occasion of the birthday anniversaries of the Holy Prophet (s.w.a.) and Imam Sadiq (a.s.). I would like to congratulate all of you dear audience who are present in this meeting, the dear guests of Unity Week, the ambassadors of Islamic countries and all the honorable officials who have accepted heavy responsibilities in the country, on the occasion of the auspicious birthday anniversaries of the Holy Prophet (s.w.a.) and his outstanding grandson - Imam Sadiq (a.s.). I would like to extend my congratulations to all the people of Iran, all Muslims and all liberated people throughout the world. This auspicious birthday is the source of many blessings which have been bestowed on the lives of human beings over the course of many centuries. It has helped nations, peoples and humanity in general to achieve the best human, intellectual and mental qualities. It has helped them to create a lofty civilization and to achieve bright prospects for a better life. On this birthday anniversary, what is important for the world of Islam and the Islamic community is to pay attention to the Holy Prophet\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s (s.w.a.) expectations of the Islamic community and to try hard to meet these expectations. The happiness of the world of Islam lies in this and nothing else. Islam emerged for the liberation of humanity- both liberation from the suppression and pressures of oppressive and dictatorial regimes which have ruled over all people and in order to form a just government for the entire humanity, and liberation from deceptive thoughts and illusions which dominate the lives of people and which make their lives deviate from the right path. At a time when Islam was about to emerge, the Commander of the Faithful (peace and greetings be upon him) described the environment in which people were living as an environment of \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"fitna\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"At that time, people had fallen into fitna, whereby the rope of religion had been broken\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" [Nahjul Balaghah, Sermon 2]. Fitna means a dusty climate in which one cannot see anything. In such a climate, one cannot see the path and he does not know what to do. This was the conditions of the people who lived in that difficult area. The same conditions dominated - in a different way - the lives of the people in great countries and civilizations which existed at that time. It is not the case that we can think the people who were living in the Arabian Peninsula at a time when Islamic was about to emerge had terrible conditions while other people living in other areas were happy. The domination of cruel and oppressive regimes, their indifference towards the position of human beings and human principles and the outbreak of disastrous wars which were waged by powers for the sake of power had destroyed the lives of people. History shows that the two well-known civilizations of those days - that is to say, the Persian Sassanid civilization and the Roman civilization - were in such terrible conditions that it makes one pity the masses of the people who were living in those societies. The living conditions of those people were terrible and they were living in captivity. In such conditions, Islam came and freed people. This freedom first manifests itself in the hearts and souls of people. When one feels that he is free and when he feels the need to break chains, the forces inside him will be influenced by this feeling and then he can achieve social freedom if he shows determination and if he moves forward. Islam did this for people. The same message that Islam delivered at that time exists today in the world of Islam and in other parts of the world. The enemies of freedom kill the thought of freedom in people. When there is no thought of freedom, the movement towards freedom will either slow down or stop. Today, what we Muslims should do is to try to achieve the kind of freedom that Islam wants. The independence of Muslim nations, the establishment of popular governments throughout the world of Islam, the participation of all people in making decisions and determining fates and their movement on the basis of Islamic sharia are things which liberate nations. Of course, Muslim nations feel that they need this movement today. This feeling exists throughout the world of Islam and without a doubt, it will finally achieve results. If outstanding personalities - whether political, scientific and religious personalities - in Muslim countries carry out their responsibilities in the proper way, then the future of the world of Islam will be a bright one. Muslims are hopeful about this future. Today, the world of Islam feels that it is awake. It is exactly at this point that the enemies of Islam - those people who are opposed to Islamic Awakening, independence of nations and the domination of God\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s religion in all countries - enter the arena. It is exactly at this point that all kinds of tricks are used for creating obstacles in the way of Islamic societies. And the most important trick that they use is creating discord. It is 65 years now that the world of arrogance has been trying with all its power to impose the existence of the Zionist regime on Muslim nations and to make them accept this regime. But it has failed. We should not look at some countries and governments which are willing to act against their national interests in order to safeguard the interests of their foreign friends - who are the enemies of Islam - and to consign Islamic interests to oblivion. Peoples are opposed to the presence of the Zionists. It is 65 years now that they have been trying to erase the memory of Palestine, but they have failed. During the 33-day war in Lebanon and during the 22-day war and - for the second time - the eight-day war in Gaza which were waged in recent years, Muslim nations and the Islamic Ummah showed that they are alive. The Islamic Ummah showed that despite the investment of America and other western powers, it has managed to preserve its identity, to slap the fake and imposed Zionist regime across the face and to frustrate the allies of oppressive Zionists who did their best during this time to preserve this imposed, oppressive and criminal regime. The Islamic Ummah showed that it has not forgotten about Palestine. This is a very important issue. It is in such conditions that the enemy is focusing all its efforts on making the Islamic Ummah forget about Palestine. How do they want to do this? They want to do this by creating discord, waging domestic wars, promoting deviant extremism in the name of Islam, religion and Islamic sharia. They want a group of people to say takfiri things against Muslims. The existence of these takfiri orientations which have emerged in the world of Islam is good news for arrogance and the enemies of the world of Islam. It is these takfiri orientations that attract the attention of Muslims towards insignificant issues instead of letting them pay attention to the truth about the existence of the malevolent Zionist regime. This is the exact opposite of what Islam wants. Islam has asked Muslims to be \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"strong against unbelievers, (but) compassionate amongst each other\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" [The Holy Quran, 48, 29]. Muslims should be strong against the enemies of religion. They should stand firm and they should not be influenced by the enemies. Being \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"strong against unbelievers\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" is the clear message of this ayah. Muslims should be compassionate towards one another, they should stay together and join hands and they should hold fast to the rope which Allah stretches out for them. This is the command of Islam. Now what happens if an orientation emerges which divides Muslims into believers and unbelievers, which targets a group of people as unbelievers and which pits Muslims against one another? Who can doubt the role of arrogance and the security services of arrogant and malevolent governments in creating, supporting and enriching these orientations and in equipping them with weapons? These arrogant powers sit and plan for this. The world of Islam should attend to this issue because it is a grave danger. Unfortunately, a number of Muslim governments unwittingly add fuel to the fire of this discord. They do not understand that fueling this discord will kindle a fire which will burn them as well. This is what arrogance wants: they want a group of Muslims to wage a war against another group of Muslims. Those who give rise to this war are people who benefit from the money provided by puppet rulers. These puppet rulers give them money and weapons in order to pit people in such and such a country against one another. This move has been reinforced by arrogance in the past three, four years during which a wave of Islamic Awakening has emerged in a number of Islamic and Arabic countries. They want to do this in order to overshadow Islamic Awakening. By making this move, they are pitting Muslims against one another. Moreover, the propaganda networks of the enemies are projecting an ugly image of Islam for public opinion throughout the world. They are doing this by magnifying events. What do people think of Islam when media networks show a person who is devouring the liver of another person in the name of Islam? The enemies of Islam have planned this. These are not things that happen all of a sudden and out of the blue. These are things for which many plans have been devised over a long period of time. There are different policies and spy rings behind these moves. There is big money behind these moves. Muslims should confront any phenomenon which is against their unity. This is a great responsibility for all of us. Both Shia and Sunni Muslims, and different groups which exist among Shia and Sunni Muslims should shoulder this responsibility. Unity means reliance on common points. We have many common points. Muslims\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' common points are more than their disagreements and therefore, they should rely on them. The main responsibility in this regard falls on the shoulders of outstanding personalities - whether political, scientific or religious personalities. Religious scholars in the world of Islam should prevent Muslims from creating sectarian and religious discord. Academic scholars should help students understand that today, unity is the most important issue in the world of Islam. The most important issue is unity for the sake of reaching goals. These goals are achieving political independence, establishing religious democracy and observing divine rules in Islamic societies. Islam invites people to freedom, dignity and honor. This is an obligation and responsibility today. Political personalities too should know that their dignity and honor lies in their reliance on Muslim peoples, not on foreigners and those who are arch enemies of Islamic societies. One day, arrogant powers dominated people everywhere in Islamic regions. One day, policies carried out by America and before that England and other countries, dominated the lives of people in Islamic regions. Nations gradually managed to liberate themselves from this direct domination. In the present time, the enemies want to replace this direct domination, which they imposed during the era of imperialism, with indirect domination - that is to say, political, economic and cultural domination. Of course, in some areas they are imposing this direct domination again. As you see, a number of European countries want to create the same situation which existed in the past in Africa. The path is Islamic Awakening. The path is awareness about the position of Muslim nations. Muslim nations have many resources, they have sensitive geographical locations, they have a very valuable historical legacy and they have unique economic resources. If Muslims collect themselves, find their true identity, rely on themselves and extend the hand of friendship, then this region will be an outstanding and enlightened region and the world of Islam will witness dignity, greatness and honor. By Allah\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s favor, this is what will happen in the future. One can see the signs of this future such as the victory of the Islamic Revolution in Iran and the establishment and stability of the Islamic Republic in this sensitive region. It is 35 years now that arrogant regimes - including America and other powers - have been doing their best to work against the Islamic Republic and the people of Iran. Despite this, the people of Iran and the Islamic Republic are becoming stronger, more rooted, more powerful and more influential on a daily basis. By Allah\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s favor, this strength, this stability and this power will increase in the future. In the world of Islam too, one sees that the awareness of people and youth about Islam and the future of Islam has increased compared to the past. In some countries, people are much more aware than they were in the past. Of course, the enemy is making some efforts, but if we look carefully and vigilantly, we will see that - by Allah\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s favor - this wave of Islamic movement is going forward. God\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s mercy be upon our magnanimous Imam (r.a.) who opened up this path for us. He taught us that we should rely on God, ask Him alone for help and be hopeful about the future. Then, we moved forward on this path and by Allah\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s favor, we will continue to do this. I hope that Islam and Muslims achieve victory and I ask God to bestow His mercy and forgiveness on the martyrs of this bright path. [English Sub] Islamic Unity Conference - Birthday of Prophet Muhammad s.a.w / Imam Sadiq a.s Ayatullah Ali Khamenei\\\\\\\'s Full speech Farsi sub English 19 january 2014. The following is the full text of the speech delivered on January 19, 2014 by Ayatollah Khamenei, the Supreme Leader of the Islamic Revolution, in a meeting with government officials and foreign participants of the 27th Conference on Islamic Unity. The meeting was held in Imam Khomeini Hussainiyah on the occasion of the birthday anniversaries of the Holy Prophet (s.w.a.) and Imam Sadiq (a.s.). I would like to congratulate all of you dear audience who are present in this meeting, the dear guests of Unity Week, the ambassadors of Islamic countries and all the honorable officials who have accepted heavy responsibilities in the country, on the occasion of the auspicious birthday anniversaries of the Holy Prophet (s.w.a.) and his outstanding grandson - Imam Sadiq (a.s.). I would like to extend my congratulations to all the people of Iran, all Muslims and all liberated people throughout the world. This auspicious birthday is the source of many blessings which have been bestowed on the lives of human beings over the course of many centuries. It has helped nations, peoples and humanity in general to achieve the best human, intellectual and mental qualities. It has helped them to create a lofty civilization and to achieve bright prospects for a better life. On this birthday anniversary, what is important for the world of Islam and the Islamic community is to pay attention to the Holy Prophet\\\\\\\'s (s.w.a.) expectations of the Islamic community and to try hard to meet these expectations. The happiness of the world of Islam lies in this and nothing else. Islam emerged for the liberation of humanity- both liberation from the suppression and pressures of oppressive and dictatorial regimes which have ruled over all people and in order to form a just government for the entire humanity, and liberation from deceptive thoughts and illusions which dominate the lives of people and which make their lives deviate from the right path. At a time when Islam was about to emerge, the Commander of the Faithful (peace and greetings be upon him) described the environment in which people were living as an environment of \\\\\\\"fitna\\\\\\\": \\\\\\\"At that time, people had fallen into fitna, whereby the rope of religion had been broken\\\\\\\" [Nahjul Balaghah, Sermon 2]. Fitna means a dusty climate in which one cannot see anything. In such a climate, one cannot see the path and he does not know what to do. This was the conditions of the people who lived in that difficult area. The same conditions dominated - in a different way - the lives of the people in great countries and civilizations which existed at that time. It is not the case that we can think the people who were living in the Arabian Peninsula at a time when Islamic was about to emerge had terrible conditions while other people living in other areas were happy. The domination of cruel and oppressive regimes, their indifference towards the position of human beings and human principles and the outbreak of disastrous wars which were waged by powers for the sake of power had destroyed the lives of people. History shows that the two well-known civilizations of those days - that is to say, the Persian Sassanid civilization and the Roman civilization - were in such terrible conditions that it makes one pity the masses of the people who were living in those societies. The living conditions of those people were terrible and they were living in captivity. In such conditions, Islam came and freed people. This freedom first manifests itself in the hearts and souls of people. When one feels that he is free and when he feels the need to break chains, the forces inside him will be influenced by this feeling and then he can achieve social freedom if he shows determination and if he moves forward. Islam did this for people. The same message that Islam delivered at that time exists today in the world of Islam and in other parts of the world. The enemies of freedom kill the thought of freedom in people. When there is no thought of freedom, the movement towards freedom will either slow down or stop. Today, what we Muslims should do is to try to achieve the kind of freedom that Islam wants. The independence of Muslim nations, the establishment of popular governments throughout the world of Islam, the participation of all people in making decisions and determining fates and their movement on the basis of Islamic sharia are things which liberate nations. Of course, Muslim nations feel that they need this movement today. This feeling exists throughout the world of Islam and without a doubt, it will finally achieve results. If outstanding personalities - whether political, scientific and religious personalities - in Muslim countries carry out their responsibilities in the proper way, then the future of the world of Islam will be a bright one. Muslims are hopeful about this future. Today, the world of Islam feels that it is awake. It is exactly at this point that the enemies of Islam - those people who are opposed to Islamic Awakening, independence of nations and the domination of God\\\\\\\'s religion in all countries - enter the arena. It is exactly at this point that all kinds of tricks are used for creating obstacles in the way of Islamic societies. And the most important trick that they use is creating discord. It is 65 years now that the world of arrogance has been trying with all its power to impose the existence of the Zionist regime on Muslim nations and to make them accept this regime. But it has failed. We should not look at some countries and governments which are willing to act against their national interests in order to safeguard the interests of their foreign friends - who are the enemies of Islam - and to consign Islamic interests to oblivion. Peoples are opposed to the presence of the Zionists. It is 65 years now that they have been trying to erase the memory of Palestine, but they have failed. During the 33-day war in Lebanon and during the 22-day war and - for the second time - the eight-day war in Gaza which were waged in recent years, Muslim nations and the Islamic Ummah showed that they are alive. The Islamic Ummah showed that despite the investment of America and other western powers, it has managed to preserve its identity, to slap the fake and imposed Zionist regime across the face and to frustrate the allies of oppressive Zionists who did their best during this time to preserve this imposed, oppressive and criminal regime. The Islamic Ummah showed that it has not forgotten about Palestine. This is a very important issue. It is in such conditions that the enemy is focusing all its efforts on making the Islamic Ummah forget about Palestine. How do they want to do this? They want to do this by creating discord, waging domestic wars, promoting deviant extremism in the name of Islam, religion and Islamic sharia. They want a group of people to say takfiri things against Muslims. The existence of these takfiri orientations which have emerged in the world of Islam is good news for arrogance and the enemies of the world of Islam. It is these takfiri orientations that attract the attention of Muslims towards insignificant issues instead of letting them pay attention to the truth about the existence of the malevolent Zionist regime. This is the exact opposite of what Islam wants. Islam has asked Muslims to be \\\\\\\"strong against unbelievers, (but) compassionate amongst each other\\\\\\\" [The Holy Quran, 48, 29]. Muslims should be strong against the enemies of religion. They should stand firm and they should not be influenced by the enemies. Being \\\\\\\"strong against unbelievers\\\\\\\" is the clear message of this ayah. Muslims should be compassionate towards one another, they should stay together and join hands and they should hold fast to the rope which Allah stretches out for them. This is the command of Islam. Now what happens if an orientation emerges which divides Muslims into believers and unbelievers, which targets a group of people as unbelievers and which pits Muslims against one another? Who can doubt the role of arrogance and the security services of arrogant and malevolent governments in creating, supporting and enriching these orientations and in equipping them with weapons? These arrogant powers sit and plan for this. The world of Islam should attend to this issue because it is a grave danger. Unfortunately, a number of Muslim governments unwittingly add fuel to the fire of this discord. They do not understand that fueling this discord will kindle a fire which will burn them as well. This is what arrogance wants: they want a group of Muslims to wage a war against another group of Muslims. Those who give rise to this war are people who benefit from the money provided by puppet rulers. These puppet rulers give them money and weapons in order to pit people in such and such a country against one another. This move has been reinforced by arrogance in the past three, four years during which a wave of Islamic Awakening has emerged in a number of Islamic and Arabic countries. They want to do this in order to overshadow Islamic Awakening. By making this move, they are pitting Muslims against one another. Moreover, the propaganda networks of the enemies are projecting an ugly image of Islam for public opinion throughout the world. They are doing this by magnifying events. What do people think of Islam when media networks show a person who is devouring the liver of another person in the name of Islam? The enemies of Islam have planned this. These are not things that happen all of a sudden and out of the blue. These are things for which many plans have been devised over a long period of time. There are different policies and spy rings behind these moves. There is big money behind these moves. Muslims should confront any phenomenon which is against their unity. This is a great responsibility for all of us. Both Shia and Sunni Muslims, and different groups which exist among Shia and Sunni Muslims should shoulder this responsibility. Unity means reliance on common points. We have many common points. Muslims\\\\\\\' common points are more than their disagreements and therefore, they should rely on them. The main responsibility in this regard falls on the shoulders of outstanding personalities - whether political, scientific or religious personalities. Religious scholars in the world of Islam should prevent Muslims from creating sectarian and religious discord. Academic scholars should help students understand that today, unity is the most important issue in the world of Islam. The most important issue is unity for the sake of reaching goals. These goals are achieving political independence, establishing religious democracy and observing divine rules in Islamic societies. Islam invites people to freedom, dignity and honor. This is an obligation and responsibility today. Political personalities too should know that their dignity and honor lies in their reliance on Muslim peoples, not on foreigners and those who are arch enemies of Islamic societies. One day, arrogant powers dominated people everywhere in Islamic regions. One day, policies carried out by America and before that England and other countries, dominated the lives of people in Islamic regions. Nations gradually managed to liberate themselves from this direct domination. In the present time, the enemies want to replace this direct domination, which they imposed during the era of imperialism, with indirect domination - that is to say, political, economic and cultural domination. Of course, in some areas they are imposing this direct domination again. As you see, a number of European countries want to create the same situation which existed in the past in Africa. The path is Islamic Awakening. The path is awareness about the position of Muslim nations. Muslim nations have many resources, they have sensitive geographical locations, they have a very valuable historical legacy and they have unique economic resources. If Muslims collect themselves, find their true identity, rely on themselves and extend the hand of friendship, then this region will be an outstanding and enlightened region and the world of Islam will witness dignity, greatness and honor. By Allah\\\\\\\'s favor, this is what will happen in the future. One can see the signs of this future such as the victory of the Islamic Revolution in Iran and the establishment and stability of the Islamic Republic in this sensitive region. It is 35 years now that arrogant regimes - including America and other powers - have been doing their best to work against the Islamic Republic and the people of Iran. Despite this, the people of Iran and the Islamic Republic are becoming stronger, more rooted, more powerful and more influential on a daily basis. By Allah\\\\\\\'s favor, this strength, this stability and this power will increase in the future. In the world of Islam too, one sees that the awareness of people and youth about Islam and the future of Islam has increased compared to the past. In some countries, people are much more aware than they were in the past. Of course, the enemy is making some efforts, but if we look carefully and vigilantly, we will see that - by Allah\\\\\\\'s favor - this wave of Islamic movement is going forward. God\\\\\\\'s mercy be upon our magnanimous Imam (r.a.) who opened up this path for us. He taught us that we should rely on God, ask Him alone for help and be hopeful about the future. Then, we moved forward on this path and by Allah\\\\\\\'s favor, we will continue to do this. I hope that Islam and Muslims achieve victory and I ask God to bestow His mercy and forgiveness on the martyrs of this bright path. Iran welcomes a UN Security Council resolution which calls for greater cooperation against kidnappings by terrorist groups. Iran welcomes a UN Security Council resolution which calls for greater cooperation against kidnappings by terrorist groups. Foreign Ministry Spokeswoman Marzieh Afkham has said that the resolution is only a first step toward ending terrorism and that a collective effort by all countries is needed to achieve that. She warned against employing double standards in implementing the UN resolution. Afkham said that if the world fails to deal with terrorism properly and allows a discriminatory approach, all attempts would fail and more countries would fall victim to violence. Afkham said that Iran is ready to take practical steps at the regional and international levels to help tackle terrorism. The UN resolution strongly condemns incidents of kidnapping and hostage-taking committed by terrorists and calls on all countries to stop paying ransom to kidnappers who use the money to finance terrorist groups. Iran welcomes a UN Security Council resolution which calls for greater cooperation against kidnappings by terrorist groups. Iran welcomes a UN Security Council resolution which calls for greater cooperation against kidnappings by terrorist groups. Foreign Ministry Spokeswoman Marzieh Afkham has said that the resolution is only a first step toward ending terrorism and that a collective effort by all countries is needed to achieve that. She warned against employing double standards in implementing the UN resolution. Afkham said that if the world fails to deal with terrorism properly and allows a discriminatory approach, all attempts would fail and more countries would fall victim to violence. Afkham said that Iran is ready to take practical steps at the regional and international levels to help tackle terrorism. The UN resolution strongly condemns incidents of kidnapping and hostage-taking committed by terrorists and calls on all countries to stop paying ransom to kidnappers who use the money to finance terrorist groups. Iran welcomes a UN Security Council resolution which calls for greater cooperation against kidnappings by terrorist groups. Iran welcomes a UN Security Council resolution which calls for greater cooperation against kidnappings by terrorist groups. Foreign Ministry Spokeswoman Marzieh Afkham has said that the resolution is only a first step toward ending terrorism and that a collective effort by all countries is needed to achieve that. She warned against employing double standards in implementing the UN resolution. Afkham said that if the world fails to deal with terrorism properly and allows a discriminatory approach, all attempts would fail and more countries would fall victim to violence. Afkham said that Iran is ready to take practical steps at the regional and international levels to help tackle terrorism. The UN resolution strongly condemns incidents of kidnapping and hostage-taking committed by terrorists and calls on all countries to stop paying ransom to kidnappers who use the money to finance terrorist groups. Abbas Araqchi even cited the increasing number of visits to Tehran by international business delegations as evidence for his comment. Araqchi says the visits show there is a growing willingness from the outside world to enter the Iranian market. He says the cracks in the sanctions regime against the Iranian nation have emerged despite the fact that Iran is keeping the main structure of its peaceful nuclear energy program. Araqchi, who\'s Iran\'s deputy foreign minister, says Iran is not obliged under the Geneva deal with world powers to dismantle any part of its nuclear energy facilities. The official says Iran has achieved what it wanted in its nuclear energy activities. He says Iran only needed to stop unnecessary costs, and that, he says, was materialized as a result of the Geneva deal which was reached in November. Press TV has conducted an interview with Massoud Shadjareh, head of the Islamic Human Rights Commission, about Syrian deputy Foreign Minister Faisal Meqdad calling on the United States and its allies to stop arming terrorist groups who are fighting against the Syrian government. An Afghan refugee who was granted asylum in the UK has accepted substantial libel compensation at the high court in London after the daily express newspaper falsely accused him of being a member of the Taliban. Abdol Shazad who is 20 was recognized as a refugee by the Home Office last February after a four-year battle in which it was found that he was at fear of being persecuted by the Taliban. But a month later The express published a story saying that he was a member of the Taliban and posted an online version of the story under which hateful and abusive comments were posted causing great distress to Mr Shazad Journalists say this type of behavior is indicative of the lack of ethics of large segments of the right wing media.The Legal Counsel for the Express, Chloe Strong Said: \"The allegation in the articles was false and the defendant wishes to offer its sincerest apologies to the claimant for the damage, distress and embarrassment which the publication of the articles has caused him.\" The Daily Express has apologized and agreed to pay him substantial damages. The exact figure is undisclosed. But this type of behavior from elements of the right wing press is unlikely to stop as a result For Mr Shazid at least, there has been some kind of accountability for this unethical journalism. In the US, a camera crew from an Atlanta television station has filmed an incident that shows why Icy roads require their own kind of driving skills! The footage shows a vehicle sliding down a hill before hitting the side of the road. Moments later a passer-by in hi-visibility jacket comes to help the driver but only before another car spins out of control and slams into the stationary car. But that\'s not all. After bystanders call an ambulance for the drivers, a third car skids across the same part of the icy road and comes to an abrupt stop near the first two. The incident follows a snow storm that had nearly shut down Atlanta on Wednesday. Rogi gets greedy and drinks all the new engine oil when Hana is not looking. He starts hiccupping and it hinders his work. Worried, Tayo takes Rogi to the knowledgeable subway train \"Met\" in hopes that he\'ll know how to stop the hiccups. Met blows his horn to scare Rogi and it works. Rogi stops hiccupping. Rogi confesses to Tayo that he hogged the new engine oil and asks for forgiveness. Tayo consoles Rogi and their friendship becomes even stronger. Syria\'s deputy foreign minister says the priority to reach a solution to the crisis there, is to stand against terrorism. Syria\'s deputy foreign minister says the priority to reach a solution to the crisis there, is to stand against terrorism. Meqdad made the comments at a news conference in Geneva, ahead of the second round of negotiations with foreign-backed opposition there. He also warned that terrorist attacks could spread to the whole region if not countered. Meqdad also said that Western states must stop funding Takfiri terrorists in his country. Regarding the issue of transition, he said Damascus will discuss this whenever appropriate. The Syrian official stressed that his government is serious in pursuing peace and ending the conflict. Egyptians are set to mark the third anniversary of the ouster of former dictator Hosni Mubarak. On the eve of the occasion, supporters of deposed president Mohamed Morsi are planning mass rallies to condemn his ouster by the military last July. The Anti-coup Alliance, which is made up of 40 Egyptian Islamic parties, has issued a statement urging Morsi supporters to hold nationwide protests. The alliance also called for symbolic rallies near foreign embassies and consulates to condemn their support for the military-backed interim government. Supporters of the toppled leader have staged non-stop demonstrations since Morsi\'s ouster, demanding his reinstatement. Karim Khan, one of the strong opponents of US assassination drone attacks, went missing since Feb 5 from his residence in the outskirts of Pakistani capital Islamabad. His family says Khan was kidnapped by armed men from Rawalpindi city.Shazad Akbar, senior lawyer who is spearheading the legal battle against the drone strikes, has confirmed the incident. Despite efforts by his family and lawyers, Police and other authorities are not willing to share Khan\'s whereabouts.Karim Khan, originally a resident of North Waziristan, had been an active member of the anti-drone campaign and had organized several protests in Islamabad and Peshawar. He launched his campaign against the US assassination drone strikes after his son and a brother were killed in one of such attacks in 2009.In an exclusive interview for Press TV\'s Infocus program in 2011, Khan criticized Pakistani authorities for their failure to stop US unilateral attacks. An Israeli blockade, repeated airstrikes targeting their lands, and an Israeli threat on their lives along the no-go buffer zone; this is the story of Palestinian farmers in Gaza.Palestinian farmlands have been the target of many Israeli attacks during the years. The airstrikes and bombings have polluted the farmers\' lands, making it unsuitable for healthy plant cultivations.The misery of Gaza\'s farmers does not stop here as they lack the needed machinery and seeds and Israel does not allow them to export their goods to the outside world. The Ministry of Health and the farmers in Gaza have called on the international community and human rights organizations to end Israel\'s continuous attacks on Palestinian farmers and civilians.As the Israeli blockade and airstrikes on the coastal enclave continue, farmers in Gaza are the ones to pay the price. Iran and the P5+1 resume nuclear talks some three months after reaching an interim deal. Iran says the dismantling of its nuclear facilities is not on the agenda. Just a few days ago, the country\'s leader, Ayatollah Seyed Ali Khamenei said he was \"not optimistic\" about the negotiations but would not oppose them. Does Iran have good reasons to distrust the US? Is a final agreement within reach? I\'m Homa Lezgee and you\'re watching the Debate. -Press TV Newsroom Director, Hamid Reza Emadi (Tehran). - American Institute for Foreign Policy, Michael Linn (Washington). 1) In Geneva both parties agreed that \"the Iranian nuclear program will be treated in the same manner as that of any non-nuclear weapon state party to the non-proliferation treaty\". Yet Wendy Sherman, the US nuclear negotiator, told Congress she believes that Iran has no need for either a heavy water reactor or the second enrichment facilities in Fordo. She added that Iran should give up some centrifuges. All these demands go beyond the requirements of the NPT. How do you explain the duplicity? 2) Iran has announced it won\'t suspend activities in the Arak heavy water reactor, will not reduce the number of its centrifuges or stop RD-related projects...so is there going to be major disagreements about the agenda of the talks? 3) American insistence on \"zero enrichment in Iran\" is one reason for the failure of past talks. Last November\'s deal was only possible because the US was prepared to be more realistic. 4) Measures that go beyond the NPT may be required for a time to build confidence. 6) What is a compromise? Iran will probably have to accept temporary limitations on its nuclear program and submit to extra inspections. In return, world powers must respect the country\'s right to the peaceful use of nuclear technology, including enrichment. 7) How do you interpret the recent remarks by Iran\'s leader that he is \"not optimistic\" about the negotiations? Does Tehran have good reasons to distrust the US? 8) Is a final agreement within reach? NATO chief Anders Fogh Rasmussen says Afghan President Hamid Karzai will likely leave the signing of a security pact with the US to his successor. Rasmussen says he believes that Karzai will not sign the long-stalled pact until April\'s presidential election. The deal would allow American troops to stay in Afghanistan beyond the withdrawal deadline of the end of 2014. Rasmussen has acknowledged that NATO expects a separate pact with Kabul which would be impossible without a deal with the U-S. Back in November, Karzai told an assembly of elders known as the Loya Jirga that he will not sign the deal until certain conditions are met. He\'s demanded that the US immediately stop its military operations on Afghan homes. NATO chief Anders Fogh Rasmussen says Afghan President Hamid Karzai will likely leave the signing of a security pact with the US to his successor. Rasmussen says he believes that Karzai will not sign the long-stalled pact until April\'s presidential election. The deal would allow American troops to stay in Afghanistan beyond the withdrawal deadline of the end of 2014. Rasmussen has acknowledged that NATO expects a separate pact with Kabul which would be impossible without a deal with the US. Back in November, Karzai told an assembly of elders known as the Loya Jirga that he will not sign the deal until certain conditions are met. He\'s demanded that the US immediately stop its military operations on Afghan homes. The following is the full text of the sermons delivered on August 9, 2013 by Ayatollah Khamenei, the Supreme Leader of the Islamic Revolution, during Eid ul-Fitr prayers in Tehran. All praise is due to Allah, the Lord of the Worlds, the Creator of all creatures, Whom we praise, from Whom we seek help, to Whom we repent, and Whom we rely on, and peace and greetings be upon His beloved and noble one, the best among His servants, the protector of His secret, the promoter of His message, the harbinger of His mercy, the warner of His chastisement, our Master and Prophet, Ab-al-Qassem al-Mustafa Muhammad, upon his immaculate, pure and chosen household, and upon those who guide the guided, and who are immaculate and respected, especially the one remaining with Allah on earth. I advise myself and all of you dear brothers and sisters, who said your prayers in this magnificent meeting, to fear God and engage in piety which is the source of happiness and victory in this world and in the hereafter. I would like to congratulate all of you, all the people of Iran and all Muslims throughout the world on the occasion of the auspicious Eid ul-Fitr. The month of Ramadan, which is full of divine blessings for our nation and other Muslims, is over and many happy people benefited from the blessings of this month. These people spent the day obeying God while they were fasting and while they felt hungry and thirsty in such hot weather and on such hot days and they avoided carnal desires and curbed their human passions. I hope that Allah the Exalted accepts your prayers, bestows and showers His mercy and blessings on the people of Iran and bestows abundant rewards on you for the efforts that you made in this month. One of the great efforts that the people made in this month was the Quds Day rallies. One cannot describe in any way, how significant what you did is. Throughout the country, you marched on the streets in such hot weather and while you were fasting in order to prove the resistance of the Iranian nation on this important issue of the world of Islam and the history of Islam. This is the meaning of a living nation. I deem it necessary to express my gratitude, from the bottom of my heart, to the Iranian nation for this effort. This year, more than previous years, a good tradition was witnessed. It is good to pay attention to this issue which is the act of providing the people with simple and unadorned iftar meals in our mosques and on the streets of many cities of the country. Unlike the act of offering extravagant iftar meals which we heard a number of people did, this is a very appropriate act. Under the pretext of offering iftar meals, these people engaged in extravagant acts. Instead of becoming an instrument for establishing a psychological relationship with the poor and the deprived in the month of Ramadan, they indulged themselves in carnal desires by doing this. We do not want to say that if somebody eats a delicious food during iftar, this is forbidden. No, according to Sharia, these things are not forbidden. But extravagance and overindulgence are forbidden. The extravagance which is sometimes witnessed in such occasions is forbidden. It is so much better for those who want to offer iftar meals to do this by cherishing the tradition which has become common. In such traditions, a number of individuals offer free iftar meals - with great generosity - to people and passers-by and those who like to benefit from these iftar meals on the streets and in different Hussayniyyahs. I hope that Allah the Exalted bestows His blessings on all of you people of Iran and accepts your actions. I hope that He bestows on you the blessing to preserve the achievements of the auspicious month of Ramadan until next year. I swear by the time, Most surely man is in loss, All praise is due to Allah, the Lord of the Worlds, and peace and greetings be upon our Master and Prophet, Ab-al-Qassem al-Mustafa Muhammad and upon his immaculate, pure and chosen household, especially upon the Commander of the Faithful, the Mistress of all Women, Hassan and Hussein- the children of mercy and the Imams of the guided, Ali ibn al-Hussein Zayn al-Abidin, Muhammad ibn Ali al-Baqir, Ja\\\\\\\\\\\\\\\'far ibn Muhammad al-Sadiq, Musa ibn Ja\\\\\\\\\\\\\\\'far al-Kadhim, Ali ibn Musa ar-Ridha, Muhammad ibn Ali al-Jawad, Ali ibn Muhammad al-Hadi, Hassan ibn Ali al-Askari and Hujjat al-Qaem al-Mahdi. Greetings be upon them all and upon the Imams of Muslims, supporters of the oppressed, and those who guide the faithful. We ask for Allah\\\\\\\\\\\\\\\'s forgiveness and we turn repentant to Him. I advise all the brothers and sisters to observe piety in their speech, behavior and positions and in different social, economic and political arenas. These days, many events are taking place in West Asia, North Africa and, generally, in Islamic regions. I will briefly refer to a number of these events. In our own country, the important event is the formation of the new administration. Thankfully, with the determination and all-out efforts of the people, this legal request was granted and this national tradition was preserved in the best way possible. By Allah\\\\\\\\\\\\\\\'s favor, after the Majlis carries out its responsibility of choosing competent ministers, the administration will be formed and it will start to fulfill the great and important tasks which it is in charge of although it has already started to fulfill many of the tasks. I hope that the honorable president and the executive officials of the country will benefit from divine blessings. I hope that the people\\\\\\\\\\\\\\\'s support and assistance will help them carry out the great responsibilities - great responsibilities have great advantages as well as great difficulties - which they have in the best way possible. However in countries which are located around us - countries in West Asia and North Africa - the events that are taking place are not happy events. Rather, they are worrying events. One event is the event of the oppressed Palestine. After the passage of 65 years since the official occupation of Palestine, this oppressed nation continues to suffer from oppression and cruelty on a daily basis. Houses are destroyed, innocent people are arrested, children are separated from their parents and prisons are filled with people who are innocent or who have served their prison terms. What is distressing is that western powers support these criminals with all their power. One of the disasters of today\\\\\\\\\\\\\\\'s world is that an act of clear oppression, which is a combination of tens and hundreds of oppressive acts, is supported by those who claim they support human rights and democracy and who chant beautiful and colorful slogans, but who support criminals in practice. Now, a number of negotiations have begun again between the self-governing government of Palestine and the Zionists. These negotiations will definitely not produce any results other than what happened during previous negotiations in which Palestinians gave up their rights and encouraged the transgressors to transgress more and stop the lawful political activities of the people of Palestine. They destroy houses, build unlawful buildings for the people who have occupied Palestine and then they say that they are negotiating. Now, they have announced that negotiations will be conducted in secret. The way global arrogance cooks these negotiations will definitely be to the disadvantage of the Palestinians. We believe that the world of Islam should not back down on the issue of Palestine and it should condemn the usurping act of the predatory and wolf-like Zionists and their international supporters. It should not let these negotiations which are conducted with the so-called mediation of America lead to more oppression against the people of Palestine and to the isolation of Muslim Palestinian fighters. In fact, America is not a mediator. Rather, the Americans themselves are one side of these negotiations and they are on the side of the usurpers of Palestine, the Zionists. Another issue is the issue of Egypt. We are concerned about what is happening in Egypt. Considering the things that are being done in this country, the idea that a civil war may break out in Egypt is gaining strength on a daily basis and this is a disaster. It is necessary for the great people of Egypt and political, scientific and religious personalities in this country to take a look at the current situation and see what catastrophic consequences this situation may have. They should see the current situation in Syria. They should see the consequences of the presence of western and Zionist mercenaries and terrorists wherever they are active. They should see these dangers. Democracy should receive attention. The killing of people is vigorously condemned by Muslims. Using the language of violence and bullying by different groups of people is absolutely useless and it will cause great harm. The intervention of foreign powers - the way it is witnessed in the present time - will produce nothing except for loss and harm. The problems of Egypt should be solved by the people of Egypt and the outstanding personalities of Egypt. They should think about the catastrophic and dangerous consequences of this situation. If, God forbid, there is mayhem and if, God forbid, a civil war breaks out, what can then preclude this? In such conditions, there will be excuse for the intervention of superpowers which are the greatest disaster for any country and nation. We are concerned. We would like to offer a brotherly piece of advice to outstanding Egyptian personalities, the people of Egypt, political and religious groups and religious scholars. They should think of a solution on their own and adopt this solution on their own. They should not allow foreigners and powers - whose intelligence services have, most likely, played a role in creating this situation - to make more interventions. Another issue is the issue of Iraq. In Iraq, a democratic administration and government has come to power with the votes of the people. Because superpowers and the reactionary forces of the region are unhappy about this situation, they do not want to let the people of Iraq feel comfort. These explosions, these killings and these criminal and terrorist activities results from the assistance and financial, political and arms support of a number of regional and ultra-regional powers which do not want to let the Iraqi nation live its life the way it wants. It is necessary for Iraqi politicians and officials, Iraqi groups, Shia and Sunni Muslims, Arabs and Kurds to take a look at the situation which exists in a number of other countries. They should notice that the consequences of civil wars and domestic conflicts, which destroy the infrastructures of any country, ruin the future of any nation. In all these events, the Zionist regime and usurpers sit and watch this situation with satisfaction and they feel comfort. Should this be allowed to continue? Dear God, by the blessedness of Muhammad (s.w.a.) and his household (a.s.), awaken us from ignorance. Dear God, cut off the hands of malicious people and transgressors in Islamic nations and countries. Dear God, by the blessedness of Muhammad (s.w.a.) and his household (a.s.), make Islam and Muslims achieve victory wherever they are. To you, have We granted the Fount (of Abundance), Therefore to your Lord turn in Prayer and Sacrifice, The following is the full text of the speech delivered on September 5, 2013 by Ayatollah Khamenei, the Supreme Leader of the Islamic Revolution, in a meeting with the chairman and members of the Assembly of Experts.The meeting was held on the occasion of the 14th Congress of the Assembly of Experts which was held on the 12th and 13th of Shahrivar. I would like to welcome the honorable gentlemen and the ulama and seminary scholars who are outstanding personalities from throughout the country and who have thankfully gathered in this meeting. Although the responsibilities of the Assembly of Experts have been defined in the Constitution, the arrangement of this meeting has resulted in the generation of different discussions about different arenas of the country and the expression of different opinions by the gentlemen. Well, executive officials are also present in this meeting. Fortunately, the esteemed President and a number of other honorable officials are also members of this assembly and this has boosted the hope that the opinions of the gentlemen in this meeting will receive more attention. I hope that this will be done and we too will help, within the scope of our capabilities and responsibilities, for the gentlemen to achieve the stated matters. I deem it necessary to point out that your participation in the funeral procession of the [unknown war] martyrs - which was held in the beginning of this congress - was very valuable and constructive. When the people see that honorable and great personalities, such as the esteemed chairman of the Assembly of Experts and other personalities, pay their respects to the bodies and graves of martyrs - whom they do not know - and participate in their funeral procession because of the fact that they are the martyrs of the path of the Revolution and the path of righteousness, this will be a lesson for our society. And I will say that our country and our society will be in need of keeping the memory of the martyrs alive and preserving their path for a very long time. The point that I would like to make is that on different levels of decision- making for the Islamic Republic, it is our responsibility to adopt a comprehensive outlook towards the issues of the country. It is obvious that different events - on regional, international and domestic levels - occur which are beyond our power to prevent. The Islamic Republic, the officials, the people and those who protect the foundations of the Islamic Republic have certain responsibilities. These responsibilities cannot be defined on the basis of the events which occur. That is to say, when something happens, we cannot make a certain move and adopt a certain position in an inactive way. This should not be done. This means that the Islamic Republic is being dragged into different events. It is necessary to preserve our comprehensive outlook towards the issues of the country and we should adopt positions and identify events with this comprehensive outlook. Thankfully, this comprehensive outlook has dominated the country until today. It is not the case that officials have ignored this issue since the beginning of the Revolution until today. The Islamic Republic was formed amid a whirlwind of events. This has been repeatedly mentioned, but we should not forget that the heart of this statement is the preservation of God\\\\\\\\\\\\\\\'s religion in people\\\\\\\\\\\\\\\'s lives, in society and in our country. The heart of this statement is the formation of our social lives on the basis of sharia, the divine religion and the divine values and rules. The formation of such a government in a world which was quickly moving towards materialism was like a miracle and this miracle happened. When the Islamic Republic was formed, there was an opposition to the issue of reliance on Islam. We should not say that their opposition and enmity was because of our independence or because our policy of fighting against global arrogance. Of course, this is true and this is one reason for their enmity, but fighting against global arrogance grew out of the heart of Islam. Our democracy grew out of the heart of Islam as well. It has been said many times that when we speak about religious democracy, this does not mean an unusual combination between democracy and religion. This is not the case. Our democracy has originated from religion and Islam has shown us this path. We managed to form the Islamic Republic with the guidance of Islam. By Allah\\\\\\\\\\\\\\\'s favor, it will be the same in the future. As a result of this belief in Islam, the enemies have focused their attention on Islam. If they can take Islam away from the Islamic Republic, the products of Islam will naturally be destroyed and undermined. Issues should be analyzed by adopting this outlook. There are certain deployments in the world and we are always one side of things in many of these deployments. We should see who and what our opposing side is. We should see why it shows hostility towards us and why we put up a resistance against it. We should take a look at these things with a comprehensive outlook. Allah the Exalted says, \\\\\\\\\\\\\\\"Is then one who walks headlong, with his face groveling, better guided- or one who walks evenly on a straight path?\\\\\\\\\\\\\\\" [The Holy Quran, 67: 22] The meaning of \\\\\\\\\\\\\\\"walks evenly on a straight path\\\\\\\\\\\\\\\" is that we should see - with open eyes, with wisdom and foresight and by considering all aspects - what the goal is, how we should achieve it and what the existing realities are. We should make a decision and move forward by paying attention to these things. Today, you can see that different events are happening in our region. For several years up until today, global arrogance has chosen West Asia as a place where it can launch its attacks. But despite the presence of arrogant powers in the region and despite their activities, Islamic Awakening has emerged. And I will tell you that Islamic Awakening has not come to an end. It is not the case that we can think Islamic Awakening has been destroyed by the events which have taken place in a number of countries. Islamic Awakening is not like a mere political event or a coup d\\\\\\\\\\\\\\\'état. It is not like a process in which power is transferred from one individual to another. Islamic Awakening means the emergence of a kind of awareness and self-confidence which is based on Islam. Under certain circumstances, this Islamic Awakening created certain events in North Africa, Egypt, Tunisia and, before these countries, in Sudan. In other countries too, there is an enormous potential for such events. We should not think that Islamic Awakening has been destroyed. Islamic Awakening is a reality which is hidden beneath the outer layers of Islamic societies. This is why the people in any country which claims to be oriented towards Islam vote for an Islamic government. This is a sign of people\\\\\\\\\\\\\\\'s orientation towards and attention to Islam. Therefore, Islamic Awakening is a very great event and despite the efforts of global arrogance, this event has taken place. It was not what global arrogance wanted. Therefore, it is natural for the opposing side to react to it. Today, we are witnessing the reactions of the camp of the enemies. These reactions and responses can be seen in East Asia - that is to say, in Pakistan and Afghanistan - and the farthest corners of West Asia such as Syria and Lebanon. Arrogant powers - the government of the United States of America being the outstanding power among these arrogant powers - have defined certain interests for themselves based on their colonial outlook. This outlook is the same as the colonial outlook which they adopted in the 19th century, but it has a different form. And they are trying to solve all the regional issues by promoting the interests which they have defined for themselves. They are doing the same thing in Syria and Bahrain. The presence of global arrogance in the region is one which is based on transgression, oppression and greed and which wants to destroy every resistance which is put up against arrogant powers. Of course, thankfully, they have not managed and will not manage to do this. This region has enormous wealth and it has a very important geographical and natural location. Therefore, it is natural for them to pay attention to this region. If one takes a look at what they say and what they have already done, he will see that their goal is to possess and establish their domination over the region by making the Zionist regime play a pivotal role. They are after achieving this goal. As you can see, on the issue of the latest events in Syria, the excuse which they have recently made for their interference is the use of chemical weapons in this country. Of course, with sophistry and clever use of reasons, they are trying to pretend that they want to interfere on humanitarian grounds. Who in the world does not know that this is a false claim? Undoubtedly, what is not important at all for American politicians is humanitarian needs. These are the people who kept, for many years, thousands of prisoners in Guantanamo prisons and, before that, in Abu Ghraib in Iraq while there were not any trials for these prisoners. They were imprisoned just because of certain allegations. A number of them are still in prison. Well, is this humanitarian? These are the people who saw the heavy bombardment [with chemical weapons] of the region - whether what happened in Iraq\\\\\\\\\\\\\\\'s Halabja or what happened in our cities such as Sardasht and other cities - which was conducted by Saddam, but who did not at all react. Not only did they not react, but they also helped Saddam. Given that the Americans did not help Saddam by giving him chemical weapons - of course, westerners gave him chemical weapons and there is no doubt about this because we have the information which is related to this issue - they at least saw what happened. They became aware of this, but they did not express any opposition. This is the way they show their humanitarian support. In Afghanistan and Pakistan, they fire a volley of bullets at wedding caravans and kill many people. In Iraq, they killed hundreds of thousands of people with oppressive measures. Today too, their agents are still doing the same things, but they behave in an indifferent way. No one in the world believes that the Americans care about humanitarian issues. Of course, they use sophistry and give clever reasons, but they say such things to justify their own moves. We believe that they are doing is a mistake. On this issue, they will receive a serious blow and they will feel it. They will definitely suffer a loss in this regard and there is no doubt about this. Well, this is the condition of the region. The Islamic Republic was formed amid a whirlwind of events. At that time, it stood up against different hostile groups for many years. Not only was the Islamic Republic and its slogans not weakened and undermined, but it also became stronger, in the real sense of the word, on a daily basis. Today, the Islamic Republic is completely different - in terms of power, influence and domestic capabilities - from the Islamic Republic which existed 25, 30 years ago and today, its slogans are firm. Therefore, it should know what it wants to do by taking a look at its miraculous background and paying attention to the plots of the enemy in the region. Our responsibility, the responsibility of all the officials of the country and the responsibility of the Islamic Republic\\\\\\\\\\\\\\\'s government is to pay attention to three great criteria for all decisions and actions: The first criterion is the ideals and goals of the Islamic Republic. These ideals and goals should never be ignored. We can refer to one of the most important ideals of the Islamic Republic in a short phrase: ‘Creating an Islamic civilization\\\\\\\\\\\\\\\'. Islamic civilization means an environment in which we can achieve growth in spiritual and material areas and in which we can attain the ultimate goal for which Allah the Exalted has created us. It means living a good and dignified life. Islamic civilization means building a dignified, powerful, confident and innovative individual who can improve the natural world. This is the goal and ideal of the Islamic Republic. The second criterion is the methods and guidelines which help us achieve these goals. These are general guidelines and they should be identified. These guidelines are relying on Islam and taking care not to become the oppressor or the oppressed in different interactions. \\\\\\\\\\\\\\\"Be an enemy of tyrants and oppressors and be a friend and helper of those who are oppressed and tyrannized.\\\\\\\\\\\\\\\" [Nahjul Balaghah, Letter 47] This is a responsibility. This is a general guideline. Reliance on the votes of the people and reliance on what helps us establish democracy and other such things constitute the main policies and the major guidelines of the Islamic Republic for achieving ideals. Other guidelines are communal work, communal effort, communal innovation, national unity and other such things. And the third criterion is taking realities into consideration. We should see realities. In a meeting which was held in the auspicious month of Ramadan, I said to officials of the Islamic Republic that what we need is a kind of idealism which takes realities into consideration. We should gain a proper understanding of realities. We should take a look at realities and see what our weak and strong points are and we should know what prevents us from moving forward. We should gain a proper understanding of realities. In that meeting, I referred to a number of sweet realities which exist in our country. We should not always take a look at our weak points and shortcomings. The emergence of outstanding ideas and thoughts, the existence of active and innovative elements, the promotion of religious teachings and spiritual concepts among many youth, the preservation of religious and Islamic slogans, and the increasing influence of the Islamic Republic in the region and in the entire world constitute a number of the existing realities. These realities should be seen. Of course, besides these sweet realities, there are a number of bitter realities. This is similar to our [personal] lives which is a combination of sweetness and bitterness. By relying on and strengthening sweet realities, we should try to decrease bitter realities or make them fade away. These three elements should receive attention. Ideals and the guidelines which are necessary to achieve these ideals should not be ignored. Of course, realities should be taken into consideration as well. If we do not take realities into consideration, we will not tread our path in the right way. However, realities should not prevent us from treading our path. If the existence of a rock makes us turn back from our path, we have made a mistake. Also, if the existence of this rock is ignored and if we tread the path in a careless way, we have made another mistake. But if we take a look and see what ways we can find around this rock or how we can take the rock away from our path, make a hole in it or find an alternative path, then we have adopted the right outlook on realities. This is what our magnanimous Imam did in the first chapter of the Revolution - that is to say during the first 10 years of the Revolution which were very fateful and sensitive years. Our magnanimous Imam did not close his eyes to realities, but he did not back down and did not forget about the guidelines either. You should take a look at Imam\\\\\\\\\\\\\\\'s life and slogans. Our magnanimous Imam was a person who was not afraid of anyone on the issue of the Zionist regime. The idea that the Zionist regime is a cancer and should be destroyed was expressed by Imam. He was not afraid of anyone on the issue of the evil, arrogant and meddling moves of America. It was Imam who said, \\\\\\\\\\\\\\\"America is the Great Satan.\\\\\\\\\\\\\\\" It was Imam who said, \\\\\\\\\\\\\\\"The attack of Muslim youth and Muslim students on the U.S. embassy and taking their documents and tools - which were used for spying - is like conducting a second revolution and is perhaps better and more important than the first revolution\\\\\\\\\\\\\\\". These are the methods of Imam. One the issue of the war, he said, \\\\\\\\\\\\\\\"We fight until we end the fitna.\\\\\\\\\\\\\\\" This is what Imam said. Other people used to say, \\\\\\\\\\\\\\\"We should continue fighting until we can achieve victory.\\\\\\\\\\\\\\\" But Imam said that \\\\\\\\\\\\\\\"We fight until we end the fitna.\\\\\\\\\\\\\\\" It was such resistance which strengthened the foundations of the Islamic Republic. You can see what happened to those people who did not know this path, who acted in a different way in their own countries and who compromised their principles and forgot about their main slogans in order to please arrogant powers. If the slogan of fighting against Israel had been advocated in Egypt and if they had not accepted the false promises of America and its agents, the situation would definitely not have been like this. Today, the dictator of the Egyptian people, who destroyed their dignity for 30 years, has been released from prison and those who had been elected with the votes of the people may be sentenced to death. If they had not done these things, such a situation would never have been brought about. If the elected officials had adopted proper positions, those who gathered around Tahrir Square and chanted slogans against the elected officials- half or more than half of them would have started to support these elected officials. That is to say, they were not the kind of people to confront and oppose the elected government, but when one stops adopting correct and appropriate positions, such things happen. These are things which should receive attention. What we feel we should do to solve problems is that we should strengthen the Islamic Republic from inside the country. It is not only in this era that problems exist. Problems have always existed. Problems exist in all countries. If anyone thinks that there are no problems in such and such an advanced country, or in such and such a wealthy European or western country which is densely or sparsely populated, then they are wrong. Problems exist everywhere. Naturally, each nation faces certain problems when it wants to do something. The officials in such a country should solve the problems and move forward. Now, some people may want to solve problems by asking for help, by relying on others, by bribing other people and by suffering humiliation. And a number of people may want to solve problems with their own power and with the capabilities which exist in their own country. We believe that we should strengthen the Islamic Republic from inside the country. This is the essence of our work. We should strengthen ourselves from the inside. It is possible to strengthen ourselves from inside the country by thinking rationally and adopting a wise outlook. It can be done by making scientific progress and by building economic infrastructures and managing economic issues in the right way. In my opinion, these are things which are possible. Today, you can see that when they exert pressures on our oil industry, we will face certain problems. What is the reason for this? This is because since the war ended until today, we have not managed to reduce our dependence on oil. If we had reduced our dependence on oil, such pressures would not have brought about this situation. Therefore, we should take a look at ourselves and we should want to solve problems with our willpower. Thankfully, there is a new administration in our country today. One of the advantages of the current condition is that a fresh administration has entered the arena. With new ideas and thoughts, with new innovations and with a competent group of people, it wants to carry out its responsibilities and move things forward. It wants to move towards the goals which it has highlighted. The honorable President is a cleric who is active and experienced in different revolutionary arenas. This is also one of the advantages which we enjoy today. Naturally, all of us should help the administration. I think it is my responsibility to help. As we helped and supported all administrations, we will definitely help and support this administration as well. And officials will do this too. Of course, my support for different administrations does not mean that I agree with all the things that they do. In different eras, there were different administrations. We both supported and criticized all these administrations. But, such criticisms should not make us think that the administration is an outsider and it should not make us withdraw the support that we should provide to all administrations. It is necessary to provide such support and help. It is also necessary to pray for all administrations and offer our advice to them. \\\\\\\\\\\\\\\"Advice is necessary for all believers\\\\\\\\\\\\\\\" [speaking in Arabic]. A friendly piece of advice may sometimes be offered in a harsh and severe way. I believe that if the officials who receive such a harsh and severe piece of advice think carefully, they will be happy to have received such advice. Even this harsh and severe piece of advice is to their advantage. Anyway, when I take a look at the current conditions in the country, I see that the future is very promising despite the problems which were referred to by the friends in this meeting - of course, they did not refer to many of the existing problems. I see that we have a clear path ahead of us and we have clear and definite ideals. We know what we want to do. Also, the path to achieving these ideals is clear and well-defined and there is no ambiguity and confusion in our guidelines and it is clear what should be done. During the recent years, it has become clear where alignments - on a regional and international level - lie. Of course, flexibility and clever maneuvers in all political arenas are good and acceptable, but such maneuvers should not make us cross certain red lines, stop pursuing the main guidelines and ignore ideals. These things should be observed. Of course, each administration and each individual uses specific methods and implements specific ideas and they move things forward with these ideas. I am completely optimistic and I believe that all the existing problems - including economic, political and security problems and cultural problems which are deeper and more important than economic problems although a number of economic problems have a higher priority - can be solved and the path to achieving this goal can be taken. I ask Allah the Exalted to help us do this. There is a certain point that I have written down to discuss. You should pay attention to the fact that one of the main methods used by the enemies of Islam, particularly the enemies of the Islamic Republic in the region, is to create sectarian and denominational discord between Shia and Sunni Muslims. You should pay attention to this issue. There are two groups of people who have turned into the agents and mercenaries of the enemy. The first group is made up of a number of Sunni Muslims and the second group is made of a number of Shia Muslims. The first group engages in takfirism and has deviated from the essence of religion and the second group is made up of people who work for the enemy. In the name of Shia, these people provoke the feelings of other Muslims, justify their enmity and fuel the fire of fitna. Each group, each institution and each government which is deceived by this great plot, which involves itself in this issue and which makes a mistake in this regard will certainly harm the Islamic movement and the Islamic government. Our country in particular will be harmed if this happens. I insist that outstanding ulama - whether Shia or Sunni ulama and whether those who live in Iran or those who live in other countries - should pay attention to the fact that differences between Islamic denominations should not make us create a new camp against ourselves. Such differences should not make us ignore the main enemy which is the enemy of the essence of Islam and the enemy of the independence and welfare of the people of the region. I hope that Allah the Exalted will help all of us and I hope that all of you and us benefit from the blessings and prayers of the Imam of the Age (may our souls be sacrificed for his sake).
english
<filename>src/pages/index.css<gh_stars>1-10 :root { --background: white; --background-secondary: #f3f2f5; } body { background: var(--background-secondary); } .container-background { background: var(--background); width: 100%; } .dcl.hero { min-height: 800px; background: #000; overflow: visible; border: 0; margin: 0; } .dcl.hero .hero-content { z-index: 0; overflow: visible; background: #000 url("https://decentraland.org/blog/images/banners/specialnfts.png") center center; opacity: 0.75; filter: blur(0.5rem); background-size: cover; } /* .dcl.hero .hero-content canvas { filter: invert(1) opacity(0.5) hue-rotate(215deg); } */ .dcl.hero .hero-actions .ui.button { text-transform: uppercase; border: solid 1px rgba(115, 110, 125, 0.32); } .dcl.hero .hero-actions .ui.button.primary { border: 0; } .dcl.hero .ui.container { max-width: 800px !important; } .dcl.hero .ui.header.hero-title { margin-bottom: 32px; } .dcl.navbar.initial .ui.menu .item, .dcl.hero .MainTitle, .dcl.hero .SubTitle, .dcl.hero .Paragraph { color: white; } .dcl.hero .hero-title .MainTitle { margin-bottom: 6px; } .dcl.hero .hero-title .SubTitle { line-height: 1em; font-weight: normal; display: flex; align-items: center; justify-content: center; } .dcl.hero .hero-actions.hero-subscribe { flex-wrap: wrap; } .dcl.hero .hero-actions.hero-subscribe .ui input, .dcl.hero .hero-actions.hero-subscribe .ui.button { margin-top: 24px; margin-left: 8px; margin-right: 8px; } .dcl.hero .hero-actions.hero-subscribe .ui input { font-size: 16px; } .Subscribe .ui.input { margin: 0 16px; } .Subscribe .ui.input input { color: var(--secondary-text); background: var(--secondary); font-size: 17px; padding: 15px; } .dcl.hero .hero-actions.hero-subscribe .ui.input { width: 420px; } .dcl.hero .hero-actions.hero-subscribe .ui.card { width: 600px; background: transparent; border: 2px solid var(--card); text-align: center; padding: 15px; } .dcl.hero .hero-actions.hero-subscribe .ui.card .Paragraph { font-size: 17px; } .ui.container.subscribe .Subscribe .ui.input { flex: 1 1 100%; } .ui.container.subscribe .Subscribe { margin-bottom: 16px; } .dcl.hero .hero-actions.hero-note { color: var(--secondary-text); } .ui.container.cards .ui.grid { width: 100%; } .ui.container.cards .ui.card, .ui.container.subscribe .ui.card { padding: 50px 66px; width: 100%; height: 100%; border-radius: 12px; } .ui.container.cards .ui.card .ui.grid .row, .ui.container.cards .ui.card .ui.grid .column { padding: 0; } .ui.container.cards .ui.card .Link { margin: 1em 48px 0 0; display: inline-block; } .ui.container.scenes { padding-top: 80px; padding-bottom: 80px; } .ui.container.scenes .reward { display: inline-block; position: relative; margin: 0.5rem 1rem 0 0; width: 125px; height: 125px; } .ui.container.scenes .reward .name, .ui.container.scenes .reward .label { position: absolute; padding: 0.2rem 0.4rem; border-radius: 8px 0 8px 0; font-weight: bold; color: white; } .ui.container.scenes .reward .name { top: 0; left: 0; max-width: 90%; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; } .ui.container.scenes .reward .label { bottom: 0; right: 0; } .ui.container.scenes .reward img { border-radius: 8px; border: 0.3rem solid transparent; } .ui.container.scenes .reward.common img { background-color: #bed2d2; border-color: #bed2d2; } .ui.container.scenes .reward.common .name, .ui.container.scenes .reward.common .label { background-color: #bed2d2; } .ui.container.scenes .reward.uncommon img { background-color: #ff8563; border-color: #ff8563; } .ui.container.scenes .reward.uncommon .name, .ui.container.scenes .reward.uncommon .label { background-color: #ff8563; } .ui.container.scenes .reward.swanky img { background-color: #3ad682; border-color: #3ad682; } .ui.container.scenes .reward.swanky .name, .ui.container.scenes .reward.swanky .label { background-color: #3ad682; } .ui.container.scenes .reward.epic img { background-color: #6397f2; border-color: #6397f2; } .ui.container.scenes .reward.epic .name, .ui.container.scenes .reward.epic .label { background-color: #6397f2; } .ui.container.scenes .reward.legendary img { background-color: #a657ed; border-color: #a657ed; } .ui.container.scenes .reward.legendary .name, .ui.container.scenes .reward.legendary .label { background-color: #a657ed; } .ui.container.scenes .reward.mythic img { background-color: #ff63e1; border-color: #ff63e1; } .ui.container.scenes .reward.mythic .name, .ui.container.scenes .reward.mythic .label { background-color: #ff63e1; } .ui.container.scenes .reward.unique img { background-color: #ff63e1; border-color: #ff63e1; } .ui.container.scenes .reward.unique .name, .ui.container.scenes .reward.unique .label { background-color: #ff63e1; } @media only screen and (max-width: 767px) { .dcl.hero { padding-left: 16px; padding-right: 16px; } .dcl.hero .ui.container { padding-left: 0 !important; padding-right: 0 !important; } .dcl.hero .hero-title .SubTitle { font-size: 21px; } }
css
#!/usr/bin/env python import os import re import sys from codecs import open from setuptools import setup from setuptools.command.test import test as TestCommand with open('django_toolset/__init__.py', 'r') as fd: version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) if sys.argv[-1] == 'tag': os.system("git tag -a %s -m 'version %s'" % (version, version)) os.system("git push --tags") sys.exit() if sys.argv[-1] == 'publish': os.system("python setup.py sdist upload") os.system("python setup.py bdist_wheel upload") sys.exit() class PyTest(TestCommand): def initialize_options(self): TestCommand.initialize_options(self) self.pytest_args = [] def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): # import here, cause outside the eggs aren't loaded import pytest errno = pytest.main(self.pytest_args) sys.exit(errno) tests_require = ['Django', 'pytest', 'pytest-cov', 'coverage', 'mock'], if not version: raise RuntimeError('Cannot find version information') with open('README.rst', 'r', 'utf-8') as f: readme = f.read() setup( name='django-toolset', version=version, description='Python user input prompt toolkit', long_description=readme, author='<NAME>', author_email='<EMAIL>', url='https://github.com/dansackett/django-toolset', packages=['django_toolset'], package_data={'': ['LICENSE']}, package_dir={'django_toolset': 'django_toolset'}, include_package_data=True, tests_require=tests_require, cmdclass={'test': PyTest}, license='MIT', zip_safe=False, classifiers=[ 'Environment :: Web Environment', 'Framework :: Django', 'Framework :: Django :: 1.11', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Topic :: Utilities', ] )
python
Russian ransomware operators Conti has had thousands of sensitive internal chat logs leaked to journalists, law enforcement agencies and cybersecurity researchers, apparently by a disgruntled employee. The leak reportedly comes as retaliation for the group recently choosing to side with the Russian government following its invasion of Ukraine. The news was first broken by BleepingComputer, which said the ransomware group published a short announcement in the first days of the invasion expressing its full support for the Russian government, and threatening any cybersecurity or cybercrime groups who decide to use their skills to disrupt the Russian operation. We're looking at how our readers use VPNs with different devices so we can improve our content and offer better advice. This survey shouldn't take more than 60 seconds of your time. Thank you for taking part. However, Conti seems to have plenty of Ukraine-based affiliates, and after what seems to be a severe backlash, the group changed its stance, condemning the ongoing war and claiming not to be taking any sides. However it did add that it will utilize its full force in the battle against “western warmongering and American threats”. The as-yet-unnamed Ukrainian culprit behind the leak said the Conti gang has “lost all their sh*t”, before dumping more than 60,000 internal chat messages, the authenticity of which has now been confirmed by independent cybersecurity researchers. For now the media have only shared relatively benign chat logs in order to prove the authenticity of the leak. However, there seems to be plenty of dirty laundry among the chat logs, some of which might even lead to arrests. Initial investigations suggest the chat logs disclose details such as previously unreported victims, private data leak URLs, bitcoin addresses, and discussions about their operations. Conti is an active ransomware group, which only recently hit American cookware distributor Meyer, stealing sensitive employee information. The group seems to have taken Meyer employees’ full names, physical addresses, birthdates, gender and ethnicity information, Social Security numbers, health insurance information and data on employee medical conditions, random drug screening results, Covid vaccination cards, driver’s licenses, passport data, government ID numbers, permanent resident cards, immigration status information, and information on dependents. It was also reported that some of the top members of the notorious TrickBot malware family have also recently joined Conti’s ranks. Sign up to the TechRadar Pro newsletter to get all the top news, opinion, features and guidance your business needs to succeed! Sead is a seasoned freelance journalist based in Sarajevo, Bosnia and Herzegovina. He writes about IT (cloud, IoT, 5G, VPN) and cybersecurity (ransomware, data breaches, laws and regulations). In his career, spanning more than a decade, he’s written for numerous media outlets, including Al Jazeera Balkans. He’s also held several modules on content writing for Represent Communications.
english
import json import numpy as np import pdb import torch from ray_utils import get_rays, get_ray_directions, get_ndc_rays BOX_OFFSETS = torch.tensor([[[i,j,k] for i in [0, 1] for j in [0, 1] for k in [0, 1]]], device='cuda') SQR_OFFSETS = torch.tensor([[[i,j] for i in [0, 1] for j in [0, 1] ]], device='cuda') def hash(coords, log2_hashmap_size): ''' coords: 3D coordinates. B x 3 log2T: logarithm of T w.r.t 2 ''' x, y, z = coords[..., 0], coords[..., 1], coords[..., 2] return torch.tensor((1<<log2_hashmap_size)-1) & (x*73856093 ^ y*19349663 ^ z*83492791) #return ((1<<log2_hashmap_size)-1) & (x*73856093 ^ y*19349663 ^ z*83492791) def hash2d(coords, log2_hashmap_size): ''' coords: 2D coordinates. B x 3 log2T: logarithm of T w.r.t 2 ''' x, y = coords[..., 0], coords[..., 1] return torch.tensor((1<<log2_hashmap_size)-1) & (x*73856093 ^ y*19349663) def xy2index(xy,resolution): return xy[...,0]+xy[...,1]*resolution def get_bbox3d_for_blenderobj(camera_transforms, H, W, near=2.0, far=6.0): camera_angle_x = float(camera_transforms['camera_angle_x']) focal = 0.5*W/np.tan(0.5 * camera_angle_x) # ray directions in camera coordinates directions = get_ray_directions(H, W, focal) min_bound = [100, 100, 100] max_bound = [-100, -100, -100] points = [] for frame in camera_transforms["frames"]: c2w = torch.FloatTensor(frame["transform_matrix"]) rays_o, rays_d = get_rays(directions, c2w) def find_min_max(pt): for i in range(3): if(min_bound[i] > pt[i]): min_bound[i] = pt[i] if(max_bound[i] < pt[i]): max_bound[i] = pt[i] return for i in [0, W-1, H*W-W, H*W-1]: min_point = rays_o[i] + near*rays_d[i] max_point = rays_o[i] + far*rays_d[i] points += [min_point, max_point] find_min_max(min_point) find_min_max(max_point) return (torch.tensor(min_bound)-torch.tensor([1.0,1.0,1.0]), torch.tensor(max_bound)+torch.tensor([1.0,1.0,1.0])) def get_bbox3d_for_llff(poses, hwf, near=0.0, far=1.0): H, W, focal = hwf H, W = int(H), int(W) # ray directions in camera coordinates directions = get_ray_directions(H, W, focal) min_bound = [100, 100, 100] max_bound = [-100, -100, -100] points = [] poses = torch.FloatTensor(poses) for pose in poses: rays_o, rays_d = get_rays(directions, pose) rays_o, rays_d = get_ndc_rays(H, W, focal, 1.0, rays_o, rays_d) def find_min_max(pt): for i in range(3): if(min_bound[i] > pt[i]): min_bound[i] = pt[i] if(max_bound[i] < pt[i]): max_bound[i] = pt[i] return for i in [0, W-1, H*W-W, H*W-1]: min_point = rays_o[i] + near*rays_d[i] max_point = rays_o[i] + far*rays_d[i] points += [min_point, max_point] find_min_max(min_point) find_min_max(max_point) return (torch.tensor(min_bound)-torch.tensor([0.1,0.1,0.0001]), torch.tensor(max_bound)+torch.tensor([0.1,0.1,0.0001])) def get_voxel_vertices(xyz, bounding_box, resolution, log2_hashmap_size): ''' xyz: 3D coordinates of samples. B x 3 bounding_box: min and max x,y,z coordinates of object bbox resolution: number of voxels per axis ''' box_min, box_max = bounding_box if not torch.all(xyz <= box_max) or not torch.all(xyz >= box_min): # print("ALERT: some points are outside bounding box. Clipping them!") pdb.set_trace() xyz = torch.clamp(xyz, min=box_min, max=box_max) grid_size = (box_max-box_min)/resolution bottom_left_idx = torch.floor((xyz-box_min)/grid_size).int() voxel_min_vertex = bottom_left_idx*grid_size + box_min voxel_max_vertex = voxel_min_vertex + torch.tensor([1.0,1.0,1.0])*grid_size # hashed_voxel_indices = [] # B x 8 ... 000,001,010,011,100,101,110,111 # for i in [0, 1]: # for j in [0, 1]: # for k in [0, 1]: # vertex_idx = bottom_left_idx + torch.tensor([i,j,k]) # # vertex = bottom_left + torch.tensor([i,j,k])*grid_size # hashed_voxel_indices.append(hash(vertex_idx, log2_hashmap_size)) voxel_indices = bottom_left_idx.unsqueeze(1) + BOX_OFFSETS hashed_voxel_indices = hash(voxel_indices, log2_hashmap_size) return voxel_min_vertex, voxel_max_vertex, hashed_voxel_indices def get_plane_vertices_old(xyz, bounding_box, resolution, log2_hashmap_size): ''' xyz: 3D coordinates of samples. B x 3 bounding_box: min and max x,y,z coordinates of object bbox resolution: number of voxels per axis ''' def box2plane(input): in_xy = input[:,:2]#.unsqueeze(1) in_xz = input[:,::2]#.unsqueeze(1) in_yz = input[:,-2:]#.unsqueeze(1) return [in_xy,in_xz,in_yz] box_min, box_max = bounding_box if not torch.all(xyz <= box_max) or not torch.all(xyz >= box_min): # print("ALERT: some points are outside bounding box. Clipping them!") pdb.set_trace() xyz = torch.clamp(xyz, min=box_min, max=box_max) grid_size = (box_max-box_min)/resolution bottom_left_idx = torch.floor((xyz-box_min)/grid_size).int() #(B, 3) voxel_min_vertex = bottom_left_idx*grid_size + box_min voxel_max_vertex = voxel_min_vertex + torch.tensor([1.0,1.0,1.0])*grid_size # hashed_voxel_indices = [] # B x 8 ... 000,001,010,011,100,101,110,111 # for i in [0, 1]: # for j in [0, 1]: # for k in [0, 1]: # vertex_idx = bottom_left_idx + torch.tensor([i,j,k]) # # vertex = bottom_left + torch.tensor([i,j,k])*grid_size # hashed_voxel_indices.append(hash(vertex_idx, log2_hashmap_size)) #voxel_indices = bottom_left_idx.unsqueeze(1) + BOX_OFFSETS #(B, 8, 3) #hashed_voxel_indices = hash(voxel_indices, log2_hashmap_size) #(B, 8) voxel_indices_xy = bottom_left_idx[:,:2].unsqueeze(1) + SQR_OFFSETS #(B, 4, 2) voxel_indices_xz = bottom_left_idx[:,::2].unsqueeze(1) + SQR_OFFSETS #(B, 4, 2) voxel_indices_yz = bottom_left_idx[:,-2:].unsqueeze(1) + SQR_OFFSETS #(B, 4, 2) hashed_voxel_indices_xy = hash2d(voxel_indices_xy, log2_hashmap_size) #(B, 4) hashed_voxel_indices_xz = hash2d(voxel_indices_xz, log2_hashmap_size) #(B, 4) hashed_voxel_indices_yz = hash2d(voxel_indices_yz, log2_hashmap_size) #(B, 4) hashed_voxel_indices = [hashed_voxel_indices_xy, hashed_voxel_indices_xz, hashed_voxel_indices_yz] voxel_min_vertex = box2plane(voxel_min_vertex) voxel_max_vertex = box2plane(voxel_max_vertex) #pdb.set_trace() return voxel_min_vertex, voxel_max_vertex, hashed_voxel_indices def get_plane_vertices(xyz, bounding_box, resolution, log2_hashmap_size): ''' xyz: 3D coordinates of samples. B x 3 bounding_box: min and max x,y,z coordinates of object bbox resolution: number of voxels per axis ''' def box2plane(input): in_xy = input[:,:2]#.unsqueeze(1) in_xz = input[:,::2]#.unsqueeze(1) in_yz = input[:,-2:]#.unsqueeze(1) return [in_xy,in_xz,in_yz] box_min, box_max = bounding_box if not torch.all(xyz <= box_max) or not torch.all(xyz >= box_min): # print("ALERT: some points are outside bounding box. Clipping them!") pdb.set_trace() xyz = torch.clamp(xyz, min=box_min, max=box_max) grid_size = (box_max-box_min)/resolution bottom_left_idx = torch.floor((xyz-box_min)/grid_size).int() #(B, 3) voxel_min_vertex = bottom_left_idx*grid_size + box_min voxel_max_vertex = voxel_min_vertex + torch.tensor([1.0,1.0,1.0])*grid_size # hashed_voxel_indices = [] # B x 8 ... 000,001,010,011,100,101,110,111 # for i in [0, 1]: # for j in [0, 1]: # for k in [0, 1]: # vertex_idx = bottom_left_idx + torch.tensor([i,j,k]) # # vertex = bottom_left + torch.tensor([i,j,k])*grid_size # hashed_voxel_indices.append(hash(vertex_idx, log2_hashmap_size)) #voxel_indices = bottom_left_idx.unsqueeze(1) + BOX_OFFSETS #(B, 8, 3) #hashed_voxel_indices = hash(voxel_indices, log2_hashmap_size) #(B, 8) voxel_indices_xy = bottom_left_idx[:,:2].unsqueeze(1) + SQR_OFFSETS #(B, 4, 2) voxel_indices_xz = bottom_left_idx[:,::2].unsqueeze(1) + SQR_OFFSETS #(B, 4, 2) voxel_indices_yz = bottom_left_idx[:,-2:].unsqueeze(1) + SQR_OFFSETS #(B, 4, 2) #hashed_voxel_indices_xy = hash2d(voxel_indices_xy, log2_hashmap_size) #(B, 4) #hashed_voxel_indices_xz = hash2d(voxel_indices_xz, log2_hashmap_size) #(B, 4) #hashed_voxel_indices_yz = hash2d(voxel_indices_yz, log2_hashmap_size) #(B, 4) hashed_voxel_indices_xy = xy2index(voxel_indices_xy,resolution) #(B, 4) hashed_voxel_indices_xz = xy2index(voxel_indices_xz,resolution) #(B, 4) hashed_voxel_indices_yz = xy2index(voxel_indices_yz,resolution) #(B, 4) #print(hashed_voxel_indices_yz.shape) #pdb.set_trace() hashed_voxel_indices = [hashed_voxel_indices_xy, hashed_voxel_indices_xz, hashed_voxel_indices_yz] voxel_min_vertex = box2plane(voxel_min_vertex) voxel_max_vertex = box2plane(voxel_max_vertex) return voxel_min_vertex, voxel_max_vertex, hashed_voxel_indices if __name__=="__main__": with open("data/nerf_synthetic/chair/transforms_train.json", "r") as f: camera_transforms = json.load(f) bounding_box = get_bbox3d_for_blenderobj(camera_transforms, 800, 800)
python
interface Person { name: string; age: number; } type MyReadonly<T> = { readonly [P in keyof T]: T[P]; }; type MyPartial<T> = { [P in keyof T]?: T[P]; }; type PersonPartial = MyPartial<Person>; type ReadonlyPerson = MyReadonly<Person>;
typescript
Shaquille O’Neal reacted quite well to Chris Paul breaking a 37-year streak of his teammates making the NBA Finals, starting 1984. An NBA legend and probably the most dominant player of all time, Shaq has a unique legacy. He played in the league till he was old as dirt, so to speak. In doing so, he compiled a long list of illustrious teammates who’ve achieved great things in NBA basketball. His reaction to the streak being broken is a really far cry from the ‘sensitive’ picture NBA fans love to paint about him: Can Chris Paul lead the Phoenix Suns all the way to their first NBA title? Most NBA fans now recognize that the Suns are de facto favorites in this year’s Finals. They have a deep roster with a wealth of talent, both in their starting lineup as well as off the bench. Monty Williams has proven to be a great coach for a championship run thus far. He’s made the right personnel decisions and put his players in the best position to succeed. The way that he’s filled Cam Payne with confidence and ignited his NBA career is worthy of tons of praise. Irrespective of whether the Bucks take the Finals with Giannis in their ranks or if the Hawks reach that stage with Trae Young fit, both of these Eastern Conference teams will have a humongous task at their hand – stopping a motivated Chris Paul from winning his first NBA Finals.
english
In a quintessential Indian context,chai plays a significant role in our lives. Be it casual banter with friends,a bunch of uncles/aunties sitting together or a banal chat with an acquaintance a cup of chai is always an added flavour. For Jyoti Dogra,conversations over chai were rendered a distinct taste,being born and brought up in Delhi. Those conversations are things we absorb more than observe, she says. With this inherent combination in her mind,Dogra started putting together this pattern. That,along with her long engagement with sound,especially Tibetan throat sounds,has resulted in what she calls Notes on Chai,an abstract performance that involves conversations interwoven with voice as the sole instrument. These conversations are seemingly meaningless,where people often keep a mask on. Yet that mask often reveals a lot of things. I have juxtaposed such conversations with sounds which do not have a specific music tradition, says the 43-year-old,who moved base to Mumbai about 12 years ago. We just have to look where the meaning and meaninglessness lies, she says. Funded by India Foundation for Arts,the 75-minute piece will be performed in the Capital on September 13 for the first time. Notes on Chai employs no props,no recordings and no music. With basic light and costume,Dogra holds her own on stage through a thread of Tibetan chanting techniques,Western overtone singing and extended vocal techniques providing unconventional sonic textures,to her world of conversations over chai. Apart from theatre,in which Dogra uses physical and vocal techniques and minimal design support,the artiste has also been cast in Bollywood films such as Satya (1998),Hyderabad Blues 2 (2004),and Gulaal (2009).
english
Copulation in Luxembourgish: What's Luxembourgish for copulation? If you want to know how to say copulation in Luxembourgish, you will find the translation here. We hope this will help you to understand Luxembourgish better. "Copulation in Luxembourgish." In Different Languages, https://www.indifferentlanguages.com/words/copulation/luxembourgish. Accessed 08 Oct 2023. Check out other translations to the Luxembourgish language:
english
Saina Nehwal has crashed out of the French Open Superseries tournament in Paris. In the pre-quarterfinal match, Saina lost in straight games to Japanese fifth seed Akane Yamaguchi 9-21, 21-23. PV Sindhu and Kidambi Srikanth are among the eight other Indian shuttlers who will play tonight their pre-quarter-final matches. Sindhu, seeded 2nd, defeated Spain's Beatriz Corrales, 21-19, 21-18. Sindhu will meet Japanese Sayaka Takahashi for a place in the quarter-finals. In Men's Singles, eighth seed Srikanth made it to the Round-of-16 after German Fabian Roth retired during the game. Srikanth will face Hong Kong's Wong Wing Ki Vincent in his next match. advanced to the pre-quarterfinals with first-round victories. However, for Parupalli Kashyap, it was a disappointing day after he lost to Indonesian Anthony Sinisuka Ginting 23-21, 18-21, 17. The pair of Ashwini Ponnappa and N. Sikki Reddy in Women's Doubles, and the team of Satwiksairaj Rankireddy and Chirag Shetty in Men's Doubles also progressed to the last-16. Meanwhile, Spanish badminton star Carolina Marin kicked off her 2017 French Open campaign with a 21-17, 21-18 victory over Japan's Minatsu Mitani. In men's singles, second-seeded South Korean Son Wan-ho, the world No. 2, was stunned in the first round by Denmark's Hans-Kristian Vittinghus 21-16, 21-19.
english
/* * Collection utility of SinglePoint Struct * * Generated by: Go Streamer */ package cios import ( "fmt" "math" "reflect" "sort" ) type SinglePointStream []SinglePoint func SinglePointStreamOf(arg ...SinglePoint) SinglePointStream { return arg } func SinglePointStreamFrom(arg []SinglePoint) SinglePointStream { return arg } func CreateSinglePointStream(arg ...SinglePoint) *SinglePointStream { tmp := SinglePointStreamOf(arg...) return &tmp } func GenerateSinglePointStream(arg []SinglePoint) *SinglePointStream { tmp := SinglePointStreamFrom(arg) return &tmp } func (self *SinglePointStream) Add(arg SinglePoint) *SinglePointStream { return self.AddAll(arg) } func (self *SinglePointStream) AddAll(arg ...SinglePoint) *SinglePointStream { *self = append(*self, arg...) return self } func (self *SinglePointStream) AddSafe(arg *SinglePoint) *SinglePointStream { if arg != nil { self.Add(*arg) } return self } func (self *SinglePointStream) Aggregate(fn func(SinglePoint, SinglePoint) SinglePoint) *SinglePointStream { result := SinglePointStreamOf() self.ForEach(func(v SinglePoint, i int) { if i == 0 { result.Add(fn(SinglePoint{}, v)) } else { result.Add(fn(result[i-1], v)) } }) *self = result return self } func (self *SinglePointStream) AllMatch(fn func(SinglePoint, int) bool) bool { for i, v := range *self { if !fn(v, i) { return false } } return true } func (self *SinglePointStream) AnyMatch(fn func(SinglePoint, int) bool) bool { for i, v := range *self { if fn(v, i) { return true } } return false } func (self *SinglePointStream) Clone() *SinglePointStream { temp := make([]SinglePoint, self.Len()) copy(temp, *self) return (*SinglePointStream)(&temp) } func (self *SinglePointStream) Copy() *SinglePointStream { return self.Clone() } func (self *SinglePointStream) Concat(arg []SinglePoint) *SinglePointStream { return self.AddAll(arg...) } func (self *SinglePointStream) Contains(arg SinglePoint) bool { return self.FindIndex(func(_arg SinglePoint, index int) bool { return reflect.DeepEqual(_arg, arg) }) != -1 } func (self *SinglePointStream) Clean() *SinglePointStream { *self = SinglePointStreamOf() return self } func (self *SinglePointStream) Delete(index int) *SinglePointStream { return self.DeleteRange(index, index) } func (self *SinglePointStream) DeleteRange(startIndex, endIndex int) *SinglePointStream { *self = append((*self)[:startIndex], (*self)[endIndex+1:]...) return self } func (self *SinglePointStream) Distinct() *SinglePointStream { caches := map[string]bool{} result := SinglePointStreamOf() for _, v := range *self { key := fmt.Sprintf("%+v", v) if f, ok := caches[key]; ok { if !f { result = append(result, v) } } else if caches[key] = true; !f { result = append(result, v) } } *self = result return self } func (self *SinglePointStream) Each(fn func(SinglePoint)) *SinglePointStream { for _, v := range *self { fn(v) } return self } func (self *SinglePointStream) EachRight(fn func(SinglePoint)) *SinglePointStream { for i := self.Len() - 1; i >= 0; i-- { fn(*self.Get(i)) } return self } func (self *SinglePointStream) Equals(arr []SinglePoint) bool { if (*self == nil) != (arr == nil) || len(*self) != len(arr) { return false } for i := range *self { if !reflect.DeepEqual((*self)[i], arr[i]) { return false } } return true } func (self *SinglePointStream) Filter(fn func(SinglePoint, int) bool) *SinglePointStream { result := SinglePointStreamOf() for i, v := range *self { if fn(v, i) { result.Add(v) } } *self = result return self } func (self *SinglePointStream) FilterSlim(fn func(SinglePoint, int) bool) *SinglePointStream { result := SinglePointStreamOf() caches := map[string]bool{} for i, v := range *self { key := fmt.Sprintf("%+v", v) if f, ok := caches[key]; ok { if f { result.Add(v) } } else if caches[key] = fn(v, i); caches[key] { result.Add(v) } } *self = result return self } func (self *SinglePointStream) Find(fn func(SinglePoint, int) bool) *SinglePoint { if i := self.FindIndex(fn); -1 != i { tmp := (*self)[i] return &tmp } return nil } func (self *SinglePointStream) FindOr(fn func(SinglePoint, int) bool, or SinglePoint) SinglePoint { if v := self.Find(fn); v != nil { return *v } return or } func (self *SinglePointStream) FindIndex(fn func(SinglePoint, int) bool) int { if self == nil { return -1 } for i, v := range *self { if fn(v, i) { return i } } return -1 } func (self *SinglePointStream) First() *SinglePoint { return self.Get(0) } func (self *SinglePointStream) FirstOr(arg SinglePoint) SinglePoint { if v := self.Get(0); v != nil { return *v } return arg } func (self *SinglePointStream) ForEach(fn func(SinglePoint, int)) *SinglePointStream { for i, v := range *self { fn(v, i) } return self } func (self *SinglePointStream) ForEachRight(fn func(SinglePoint, int)) *SinglePointStream { for i := self.Len() - 1; i >= 0; i-- { fn(*self.Get(i), i) } return self } func (self *SinglePointStream) GroupBy(fn func(SinglePoint, int) string) map[string][]SinglePoint { m := map[string][]SinglePoint{} for i, v := range self.Val() { key := fn(v, i) m[key] = append(m[key], v) } return m } func (self *SinglePointStream) GroupByValues(fn func(SinglePoint, int) string) [][]SinglePoint { var tmp [][]SinglePoint for _, v := range self.GroupBy(fn) { tmp = append(tmp, v) } return tmp } func (self *SinglePointStream) IndexOf(arg SinglePoint) int { for index, _arg := range *self { if reflect.DeepEqual(_arg, arg) { return index } } return -1 } func (self *SinglePointStream) IsEmpty() bool { return self.Len() == 0 } func (self *SinglePointStream) IsPreset() bool { return !self.IsEmpty() } func (self *SinglePointStream) Last() *SinglePoint { return self.Get(self.Len() - 1) } func (self *SinglePointStream) LastOr(arg SinglePoint) SinglePoint { if v := self.Last(); v != nil { return *v } return arg } func (self *SinglePointStream) Len() int { if self == nil { return 0 } return len(*self) } func (self *SinglePointStream) Limit(limit int) *SinglePointStream { self.Slice(0, limit) return self } func (self *SinglePointStream) Map(fn func(SinglePoint, int) interface{}) interface{} { _array := make([]interface{}, 0, len(*self)) for i, v := range *self { _array = append(_array, fn(v, i)) } return _array } func (self *SinglePointStream) Map2Int(fn func(SinglePoint, int) int) []int { _array := make([]int, 0, len(*self)) for i, v := range *self { _array = append(_array, fn(v, i)) } return _array } func (self *SinglePointStream) Map2Int32(fn func(SinglePoint, int) int32) []int32 { _array := make([]int32, 0, len(*self)) for i, v := range *self { _array = append(_array, fn(v, i)) } return _array } func (self *SinglePointStream) Map2Int64(fn func(SinglePoint, int) int64) []int64 { _array := make([]int64, 0, len(*self)) for i, v := range *self { _array = append(_array, fn(v, i)) } return _array } func (self *SinglePointStream) Map2Float32(fn func(SinglePoint, int) float32) []float32 { _array := make([]float32, 0, len(*self)) for i, v := range *self { _array = append(_array, fn(v, i)) } return _array } func (self *SinglePointStream) Map2Float64(fn func(SinglePoint, int) float64) []float64 { _array := make([]float64, 0, len(*self)) for i, v := range *self { _array = append(_array, fn(v, i)) } return _array } func (self *SinglePointStream) Map2Bool(fn func(SinglePoint, int) bool) []bool { _array := make([]bool, 0, len(*self)) for i, v := range *self { _array = append(_array, fn(v, i)) } return _array } func (self *SinglePointStream) Map2Bytes(fn func(SinglePoint, int) []byte) [][]byte { _array := make([][]byte, 0, len(*self)) for i, v := range *self { _array = append(_array, fn(v, i)) } return _array } func (self *SinglePointStream) Map2String(fn func(SinglePoint, int) string) []string { _array := make([]string, 0, len(*self)) for i, v := range *self { _array = append(_array, fn(v, i)) } return _array } func (self *SinglePointStream) Max(fn func(SinglePoint, int) float64) *SinglePoint { f := self.Get(0) if f == nil { return nil } m := fn(*f, 0) index := 0 for i := 1; i < self.Len(); i++ { v := fn(*self.Get(i), i) m = math.Max(m, v) if m == v { index = i } } return self.Get(index) } func (self *SinglePointStream) Min(fn func(SinglePoint, int) float64) *SinglePoint { f := self.Get(0) if f == nil { return nil } m := fn(*f, 0) index := 0 for i := 1; i < self.Len(); i++ { v := fn(*self.Get(i), i) m = math.Min(m, v) if m == v { index = i } } return self.Get(index) } func (self *SinglePointStream) NoneMatch(fn func(SinglePoint, int) bool) bool { return !self.AnyMatch(fn) } func (self *SinglePointStream) Get(index int) *SinglePoint { if self.Len() > index && index >= 0 { tmp := (*self)[index] return &tmp } return nil } func (self *SinglePointStream) GetOr(index int, arg SinglePoint) SinglePoint { if v := self.Get(index); v != nil { return *v } return arg } func (self *SinglePointStream) Peek(fn func(*SinglePoint, int)) *SinglePointStream { for i, v := range *self { fn(&v, i) self.Set(i, v) } return self } func (self *SinglePointStream) Reduce(fn func(SinglePoint, SinglePoint, int) SinglePoint) *SinglePointStream { return self.ReduceInit(fn, SinglePoint{}) } func (self *SinglePointStream) ReduceInit(fn func(SinglePoint, SinglePoint, int) SinglePoint, initialValue SinglePoint) *SinglePointStream { result := SinglePointStreamOf() self.ForEach(func(v SinglePoint, i int) { if i == 0 { result.Add(fn(initialValue, v, i)) } else { result.Add(fn(result[i-1], v, i)) } }) *self = result return self } func (self *SinglePointStream) ReduceInterface(fn func(interface{}, SinglePoint, int) interface{}) []interface{} { result := []interface{}{} for i, v := range *self { if i == 0 { result = append(result, fn(SinglePoint{}, v, i)) } else { result = append(result, fn(result[i-1], v, i)) } } return result } func (self *SinglePointStream) ReduceString(fn func(string, SinglePoint, int) string) []string { result := []string{} for i, v := range *self { if i == 0 { result = append(result, fn("", v, i)) } else { result = append(result, fn(result[i-1], v, i)) } } return result } func (self *SinglePointStream) ReduceInt(fn func(int, SinglePoint, int) int) []int { result := []int{} for i, v := range *self { if i == 0 { result = append(result, fn(0, v, i)) } else { result = append(result, fn(result[i-1], v, i)) } } return result } func (self *SinglePointStream) ReduceInt32(fn func(int32, SinglePoint, int) int32) []int32 { result := []int32{} for i, v := range *self { if i == 0 { result = append(result, fn(0, v, i)) } else { result = append(result, fn(result[i-1], v, i)) } } return result } func (self *SinglePointStream) ReduceInt64(fn func(int64, SinglePoint, int) int64) []int64 { result := []int64{} for i, v := range *self { if i == 0 { result = append(result, fn(0, v, i)) } else { result = append(result, fn(result[i-1], v, i)) } } return result } func (self *SinglePointStream) ReduceFloat32(fn func(float32, SinglePoint, int) float32) []float32 { result := []float32{} for i, v := range *self { if i == 0 { result = append(result, fn(0.0, v, i)) } else { result = append(result, fn(result[i-1], v, i)) } } return result } func (self *SinglePointStream) ReduceFloat64(fn func(float64, SinglePoint, int) float64) []float64 { result := []float64{} for i, v := range *self { if i == 0 { result = append(result, fn(0.0, v, i)) } else { result = append(result, fn(result[i-1], v, i)) } } return result } func (self *SinglePointStream) ReduceBool(fn func(bool, SinglePoint, int) bool) []bool { result := []bool{} for i, v := range *self { if i == 0 { result = append(result, fn(false, v, i)) } else { result = append(result, fn(result[i-1], v, i)) } } return result } func (self *SinglePointStream) Reverse() *SinglePointStream { for i, j := 0, self.Len()-1; i < j; i, j = i+1, j-1 { (*self)[i], (*self)[j] = (*self)[j], (*self)[i] } return self } func (self *SinglePointStream) Replace(fn func(SinglePoint, int) SinglePoint) *SinglePointStream { return self.ForEach(func(v SinglePoint, i int) { self.Set(i, fn(v, i)) }) } func (self *SinglePointStream) Select(fn func(SinglePoint) interface{}) interface{} { _array := make([]interface{}, 0, len(*self)) for _, v := range *self { _array = append(_array, fn(v)) } return _array } func (self *SinglePointStream) Set(index int, val SinglePoint) *SinglePointStream { if len(*self) > index && index >= 0 { (*self)[index] = val } return self } func (self *SinglePointStream) Skip(skip int) *SinglePointStream { return self.Slice(skip, self.Len()-skip) } func (self *SinglePointStream) SkippingEach(fn func(SinglePoint, int) int) *SinglePointStream { for i := 0; i < self.Len(); i++ { skip := fn(*self.Get(i), i) i += skip } return self } func (self *SinglePointStream) Slice(startIndex, n int) *SinglePointStream { if last := startIndex + n; len(*self)-1 < startIndex || last < 0 || startIndex < 0 { *self = []SinglePoint{} } else if len(*self) < last { *self = (*self)[startIndex:len(*self)] } else { *self = (*self)[startIndex:last] } return self } func (self *SinglePointStream) Sort(fn func(i, j int) bool) *SinglePointStream { sort.SliceStable(*self, fn) return self } func (self *SinglePointStream) Tail() *SinglePoint { return self.Last() } func (self *SinglePointStream) TailOr(arg SinglePoint) SinglePoint { return self.LastOr(arg) } func (self *SinglePointStream) ToList() []SinglePoint { return self.Val() } func (self *SinglePointStream) Unique() *SinglePointStream { return self.Distinct() } func (self *SinglePointStream) Val() []SinglePoint { if self == nil { return []SinglePoint{} } return *self.Copy() } func (self *SinglePointStream) While(fn func(SinglePoint, int) bool) *SinglePointStream { for i, v := range self.Val() { if !fn(v, i) { break } } return self } func (self *SinglePointStream) Where(fn func(SinglePoint) bool) *SinglePointStream { result := SinglePointStreamOf() for _, v := range *self { if fn(v) { result.Add(v) } } *self = result return self } func (self *SinglePointStream) WhereSlim(fn func(SinglePoint) bool) *SinglePointStream { result := SinglePointStreamOf() caches := map[string]bool{} for _, v := range *self { key := fmt.Sprintf("%+v", v) if f, ok := caches[key]; ok { if f { result.Add(v) } } else if caches[key] = fn(v); caches[key] { result.Add(v) } } *self = result return self }
go
HYDERABAD: City Police Commissioner CV Anand said that 'Operation ROPE' (Road Obstructive Parking and Encroachment) is being implemented in the city from Monday. As part of this traffic rules will come into effect and fines will be levied for those who violate them. The Commissioner said that they will create awareness among motorists for another four days and challans will not be issued immediately but will be issued after three days. He made it clear that there should be a change in the motorists' mindset for traffic problems to be solved and regulated. The Commissioner also warned that strict action will be taken against those who violate traffic rules. As of now, the implementation of Operation ROPE is being done at Road No. 45, Jubilee Hills. He said that after four days there will be a complete understanding of how to take it forward across the city. Motorists watch out for these violations and fines: -Fine of Rs 600 if parking obstructs pedestrians.
english
116/7 (17. 0 ov) 119/4 (16. 1 ov) 172/7 (20. 0 ov) 157 (20. 0 ov) Pacer Ishant Sharma also had a good outing, finishing with impressive figures of two for 22. Virender Sehwag looking forward to the IPL to come back to form and make his presence felt. Here is a complete list of all the 300s scored by Indians in First-Class cricket. Virender Sehwag feels nostalgic about his triple ton against Pakistan in Multan. Mitchell Johnson was ruled out of ICC World T20 due to a toe injury. MCC chased down the 224-run target set by Durham in the Champion County Test match. The legendary all-rounder tipped an injury-free Kohli to scale bigger peaks than Tendulkar. Robin Uthappa has been in dazzling form for Karnataka. Bailey has been a fine captain of Australia's T20I setup. Sehwag and Muralitharan will alternately skipper MCC in a four-day and T20 game respectively.
english
<reponame>echocat/kubor package command import ( "fmt" "github.com/echocat/kubor/common" "github.com/echocat/kubor/model" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/serializer/json" "k8s.io/client-go/kubernetes/scheme" "os" ) func init() { cmd := &Evaluate{} cmd.Parent = cmd RegisterInitializable(cmd) common.RegisterCliFactory(cmd) } type Evaluate struct { Command SourceHint bool Predicate common.EvaluatingPredicate } func (instance *Evaluate) ConfigureCliCommands(context string, hc common.HasCommands, _ string) error { if context != "" { return nil } cmd := hc.Command("evaluate", "Evaluate the instances of this project using the provided values."). Alias("eval"). Action(instance.ExecuteFromCli) cmd.Flag("sourceHint", "Prints to the output a comment which indicates where the rendered content organically comes from."). Envar("KUBOR_SOURCE_HINT"). Default(fmt.Sprint(instance.SourceHint)). BoolVar(&instance.SourceHint) cmd.Flag("predicate", "Filters every object that should be listed. Empty allows everything."+ " Example: \"{{.spec.name}}=Foo.*\""). PlaceHolder("[!]<template>=<must match regex>"). Short('p'). Envar("KUBOR_PREDICATE"). SetValue(&instance.Predicate) return nil } func (instance *Evaluate) RunWithArguments(arguments Arguments) error { task := &evaluateTask{ source: instance, first: true, } oh, err := model.NewObjectHandler(task.onObject, arguments.Project) if err != nil { return err } cp, err := arguments.Project.RenderedTemplatesProvider() if err != nil { return err } return oh.Handle(cp) } type evaluateTask struct { source *Evaluate first bool } func (instance *evaluateTask) onObject(source string, object runtime.Object, unstructured *unstructured.Unstructured) error { if matches, err := instance.source.Predicate.Matches(unstructured.Object); err != nil { return err } else if !matches { return nil } if instance.first { instance.first = false } else { fmt.Print("---\n") } if instance.source.SourceHint { fmt.Printf(sourceHintTemplate, source) } encoder := json.NewSerializerWithOptions(json.DefaultMetaFactory, scheme.Scheme, scheme.Scheme, json.SerializerOptions{Yaml: true, Pretty: true}) return encoder.Encode(object, os.Stdout) }
go
{"ast":null,"code":"import '@babel/runtime/helpers/esm/objectWithoutProperties';\nimport '@babel/runtime/helpers/esm/extends';\nimport '@babel/runtime/helpers/esm/toConsumableArray';\nimport '@babel/runtime/helpers/esm/objectSpread';\nimport _classCallCheck from '@babel/runtime/helpers/esm/classCallCheck';\nimport _createClass from '@babel/runtime/helpers/esm/createClass';\nimport _possibleConstructorReturn from '@babel/runtime/helpers/esm/possibleConstructorReturn';\nimport _getPrototypeOf from '@babel/runtime/helpers/esm/getPrototypeOf';\nimport _inherits from '@babel/runtime/helpers/esm/inherits';\nimport _assertThisInitialized from '@babel/runtime/helpers/esm/assertThisInitialized';\nimport _defineProperty from '@babel/runtime/helpers/esm/defineProperty';\nimport React, { Component } from 'react';\nimport memoizeOne from 'memoize-one';\nimport { CacheProvider } from '@emotion/core';\nimport 'react-dom';\nimport 'prop-types';\nimport '@babel/runtime/helpers/esm/typeof';\nimport 'raf';\nimport './chunk-e8ae4b0f.browser.esm.js';\nexport { y as components } from './chunk-5d200a41.browser.esm.js';\nimport { S as Select } from './base/dist/react-select-a34e9d12.browser.esm.js';\nexport { c as createFilter, a as defaultTheme, m as mergeStyles } from './base/dist/react-select-a34e9d12.browser.esm.js';\nimport '@emotion/css';\nimport '@babel/runtime/helpers/esm/taggedTemplateLiteral';\nimport 'react-input-autosize';\nimport { m as manageState } from './chunk-b36baf1a.browser.esm.js';\nimport createCache from '@emotion/cache';\n\nvar NonceProvider =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(NonceProvider, _Component);\n\n function NonceProvider(props) {\n var _this;\n\n _classCallCheck(this, NonceProvider);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(NonceProvider).call(this, props));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"createEmotionCache\", function (nonce) {\n return createCache({\n nonce: nonce\n });\n });\n\n _this.createEmotionCache = memoizeOne(_this.createEmotionCache);\n return _this;\n }\n\n _createClass(NonceProvider, [{\n key: \"render\",\n value: function render() {\n var emotionCache = this.createEmotionCache(this.props.nonce);\n return React.createElement(CacheProvider, {\n value: emotionCache\n }, this.props.children);\n }\n }]);\n\n return NonceProvider;\n}(Component);\n\nvar index = manageState(Select);\nexport default index;\nexport { NonceProvider };","map":null,"metadata":{},"sourceType":"module"}
json
Mumbai : Beautiful Bollywood actress Sonam Kapoor took to her Instagram Stories to post a boomerang video of herself in a brand new avatar. She coloured her hair purple, with help from an Instagram filter. She mentioned she has done so only because of her husband, Anand Ahuja. Sharing it, she wrote: “Purple and yellow just for Anand Ahuja. ” The video showed her long tresses falling softly around her in purple waves. If talk about work front, Sonam has been shooting for her upcoming film, Blind in Glasgow, Scotland. Some time back, she had posted pictures of herself tackling the winter chill with the aid of a hot water bottle. Sonam has been away from India since last July and while she misses her family in Mumbai, she has always made sure she remembers them on special days.
english
Pokemon GO's Water Festival is currently ongoing, and trainers will have the chance to catch the Rock/Water-type Pokemon Binacle during the event. As an added bonus to 2022's Water Festival in Pokemon GO, Binacle's shiny form has made its debut. Trainers will have plenty of opportunities to spot and catch Binacle's shiny form and accrue enough candies to evolve Binacle into Barbaracle. Regardless, multiple avenues to capture shiny Binacle can be a tempting prospect for shiny hunters or simply trainers looking to pick up a few shiny Pokemon along the way for their collections. During Pokemon GO's Water Festival, there will be many opportunities to catch shiny Binacle. Binacle will be appearing fairly widespread in the wild but will also be appearing as a potential reward for completing Field Research Tasks, and trainers can also obtain Binacle from hatching 7-kilometer eggs. None of these methods guarantee that Binacle will appear in its shiny form, but its shiny form is currently boosted in appearances because of its debut. To maximize the chances of obtaining a shiny Binacle in Pokemon GO, trainers should follow as many methods as they can. This means heading out in the wild during the event, sticking close to lure modules on Pokestops if necessary, as well as incubating 7km eggs, and completing research tasks in the field from spinning Pokestop discs. None of these ensure that a shiny Binacle will appear, but the chances are very good if trainers are committed. The ideal time to pursue a shiny Binacle is very clearly during this event, as Pokemon GO shinies are considerably more difficult to find when their appearances aren't being boosted. Once the Water Festival ends, the shiny Binacle will likely be considerably more difficult to find, so time is of the essence for trainers. One of the primary focuses for Pokemon GO trainers may be Pokestops, as these locations provide not only field research tasks but can also provide eggs and be attached with lure modules to increase Pokemon spawns near the stop. In the event that isn't cutting it, trainers can also attempt to utilize incense if they so choose. This will increase the number of spawns around the player's character, and if the player keeps moving, they can ensure that the spawns around them refresh where applicable. Incense isn't as effective while a trainer is stationary, so staying mobile and traveling between Pokestops is a surefire way to maximize the potential of encountering Binacle's shiny form. Note: The article reflects the writer's own views.
english
const path = require("path"), fs = require('fs'), WorkerChannel = require(path.resolve(__dirname+'/../models/index')).WorkerChannel, twilio = require('twilio')(process.env.TWILIO_ACCOUNT_SID, process.env.TWILIO_AUTH_TOKEN), redisDriver = require('../lib/redis_driver'), resqueDriver = require('../lib/resque_driver'); module.exports = { queue: "worker.channel.availability.update", job: { perform: async (json) => { const data = JSON.parse(json); const resque = await resqueDriver.getQueue(); twilio.taskrouter.workspaces(process.env.TR_WORKSPACE_SID) .workers(data.WorkerSid) .workerChannels .list() .then(channels => { channels.forEach(channel => { WorkerChannel.upsert({ sid: channel.sid, workerSid: data.WorkerSid, taskChannelUniqueName: channel.taskChannelUniqueName, taskChannelSid: channel.taskChannelSid, available: channel.available, configuredCapacity: channel.configuredCapacity }).then(async () => { await resque.queue.enqueue('sync.workspace.capacity', 'sync_workspace_capacity'); await redisDriver.release(resque.client); return true; }) }) }); } } }
javascript
Our editors will review what you’ve submitted and determine whether to revise the article. - Related Topics: - On the Web: - United Nations Commission on International Religious Freedom - Conscientious Objection (Dec. 15, 2023) conscientious objector, one who opposes bearing arms or who objects to any type of military training and service. Some conscientious objectors refuse to submit to any of the procedures of compulsory conscription. Although all objectors take their position on the basis of conscience, they may have varying religious, philosophical, or political reasons for their beliefs. Conscientious objection to military service has existed in some form since the beginning of the Christian era and has, for the most part, been associated with religious scruples against military activities. It developed as a doctrine of the Mennonites in various parts of Europe in the 16th century, of the Society of Friends (Quakers) in England in the 17th century, and of the Church of the Brethren and of the Dukhobors in Russia in the 18th century. Throughout history, governments have been generally unsympathetic toward individual conscientious objectors; their refusal to undertake military service has been treated like any other breach of law. There have, however, been times when certain pacifistic religious sects have been exempted. During the 19th century, Prussia exempted the Mennonites from military service in return for a military tax, and until 1874 they were exempted in Russia. Such exceptions were unusual, however. The relatively liberal policy of the United States began in colonial Pennsylvania, whose government was controlled until 1756 by Quaker pacifists. Since the American Civil War and the enactment of the first U.S. conscript law, some form of alternative service has been granted to those unwilling to bear arms. Under the conscript laws of 1940, conscientious objector status, including some form of service unrelated to and not controlled by the military, was granted, but solely on the basis of membership in a recognized pacifistic religious sect. Objections of a philosophical, political, or personal moral nature were not considered valid reasons for refusing military service. In Great Britain a noncombatant corps was established during World War I, but many conscientious objectors refused to belong to it. During World War II, three types of exemption could be granted: (1) unconditional; (2) conditional on the undertaking of specified civil work; (3) exemption only from combatant duties. Conscription in Great Britain ended in 1960, and in 1968 recruits were allowed discharge as conscientious objectors within six months from the date of their entry into the military. Until the 1960s neither France nor Belgium had legal provision for conscientious objectors, although for some years in both countries growing public opinion—fortified in France by the unpopularity of the Algerian War of Independence—had forced limited recognition administratively. A French law of 1963 finally gave legal recognition to religious and philosophical objectors, providing both noncombatant and alternative civilian service with a term of service twice that of the military term. Belgium enacted a similar law in 1964, recognizing objection to all military service on religious, philosophical, and moral grounds. Scandinavian countries recognize all types of objectors and provide both noncombatant and civilian service. In Norway and Sweden civil defense is compulsory, with no legal recognition of objection to that type of service. A Swedish law of 1966 provided complete exemption from compulsory service for Jehovah’s Witnesses. In the Netherlands, religious and moral objectors are recognized. During the period of German partition (1949–90), the Federal Republic (West Germany) recognized all types of objectors, providing noncombatant service and alternative civilian service, while after 1964 East Germany provided noncombatant military services for conscientious objectors.
english
The Tesla “Master Plan Part Deux” published tonight by founder Elon Musk proposes numerous major projects, but perhaps the most far-reaching of them all is the plan to put solar panels on every house and a battery in every garage. And to do that, he not-so-subtly hints, Tesla and SolarCity will need to be more than friends. That rather overstates it, of course, and he largely undercuts that position with the next sentence, which implies that both companies are only just now arriving at a position to work with one another. All the same, it’s clearly a plea to the shareholders and investors who are skeptical of the financial alchemy by which combining two debts will produce a profit. They may not see as far as Musk does, but his long-distance vision seems to blind him to the difficulties right under his nose. What he and the others at Tesla have built is remarkable, but he only sees it as the beginning of a much longer journey, and there are plenty of people who’d like to get off — or at least take a breather. Even the ones who share Musk’s faith must surely want a few more specifics when it comes to next steps. I mean, here’s his pitch: Sounds great, except each single aspect of that so-called plan is more than enough to fill any sane company’s plate! It’s an admirable goal, of course, and I don’t doubt the companies are capable of bringing it off in time. But it doesn’t make much of a case for the proposed acquisition — here, today. (Of course a more detailed plan has surely circulated internally, but if it were much more fleshed out than this, Musk is the type to say so.) Not everyone moves at the speed of Musk, which is no doubt endlessly frustrating to him. But his numerous and glittering successes should comfort him in his frustration. It’s unlikely that anything he has built will go to waste (the Hyperloop, perhaps, but mostly because he didn’t build it), but he’ll need to do more than dream out loud if he wants Tesla’s weary backers to follow his lead.
english
Singer and actress Selena Gomez recently came under fire for her recent post about taking a break from social media. The Wolves singer spoke about the "horror, hate, violence, and terror" that is going on in the world that people assumed was about the recent Palestine-Israel conflict. Gomez took to her Instagram stories on Tuesday, October 31, 2023, to post about her hiatus. "I’ve been taking a break from social media because my heart breaks to see all of the horror, hate, violence, and terror that’s going on in the world," the singer wrote. (This is a part of the complete Instagram story) It is worth noting that Hamas, a militant organization, attacked Israel on October 7, 2023, by launching rockets at the southern and central cities. Meanwhile, the troops invaded the borders, killing and taking civilians hostage. Israel, in turn, sent out airstrikes on the Gaza Strip that are still ongoing, as per AP News. They have also ordered a "complete siege," blocking fuel, water, and electricity to nearly 2.3 million civilians. Selena Gomez expressed why she was choosing to be off social media for a while on October 31, 2023. She also explained why she chose not to comment on the recent violence in the world via her Instagram stories, which was a statement that people connected to the Israel-Palestine conflict. The Only Murders in the Building actress began her statement by saying that her heart broke due to all the terror in the world. "People being tortured and killed or any act of hate towards any one group is horrific. We need to protect ALL people, especially children, and stop the violence for good," Gomez added in her statement. While Selena Gomez's words seemed neutral in the beginning, she encouraged her followers to protect each other and advocate for ending violence. However, the part of her statement that enraged netizens was when she acknowledged that her social media post wouldn't create the change she was hoping for. The Wolves artist noted in her statement that she was sorry if her words "will never be enough for everyone or a hashtag." "I just can’t stand by innocent people getting hurt. That’s what makes me sick. I wish I could change the world. But a post won’t," she said concluding her statement. In a separate Instagram Story, Selena Gomez shared a picture of her younger sister Gracie Elliott Teefey, stating what it meant for her to have a younger sister. "Having a sister every day has made me tragically sick. I would do anything for children and innocent lives," Gomez wrote. As they pointed out Selena Gomez's massive Instagram following of 430 million followers, netizens called her actions and her statement hypocritical. They noted that she had been an influential advocate for mental health, black lives matter, women's rights, and more, as per Newsweek. Thus, Selena Gomez not taking a side in a significant conflict rubbed people off the wrong way. They took to X to state that she was "ignorant" and a "coward" with some stating that as a UNICEF ambassador, she needed to "do better." Many celebrities urged US President Joe Biden to call for a ceasefire in Gaza. According to Variety, more than 2000 artists signed an open letter for the same. These included celebrities like Joaquin Phoenix, Cate Blanchett, Jon Stewart, Kristen Stewart, Susan Sarandon, Mahershala Ali, Riz Ahmed, Ramy Youssef, and Quinta Brunson, among others. The open letter said: "We urge your administration, and all world leaders, to honor all of the lives in the Holy Land and call for and facilitate a ceasefire without delay – an end to the bombing of Gaza, and the safe release of hostages." A second letter also circulated asking Joe Biden to call for the release of all hostages taken by the Hamas organization. Amy Schumer, Sacha Baron Cohen, Chris Rock, Gwyneth Paltrow, Katy Perry, Bradley Cooper, Justin Timberlake, and others were among the celebrities to sign the note, launching a formal campaign called #NoHostageLeftBehind. As of October 31, at least 1,400 people have been killed in Israel, as per CBS. Meanwhile, more than 8,500 people have been killed in Gaza, according to the Gaza Health Ministry.
english
Test your preparation for the SBI Clerk exam by attempting selected questions based on previous years’ SBI Clerk papers. Prepare for the SBI Clerk exam by reviewing previous years’ question papers. Here are a few questions from previous years’ SBI Clerk exam question papers, with the answers, so that you are ready to take the exam. Go through the list of questions (with answers) that we’ve selected from previous years’ SBI Clerk exam papers, and then attempt our quiz at the bottom. 1. Valmiki National Park and Wildlife Sanctuary is located in which of the following states in India? 2. CSR and SLR is reserved in which form in the bank? 3. Ahmedabad city is located in the banks of which river? 4. Train A crosses a pole in 25 seconds and train B crosses a pole in 1 min and 15 sec. Length of train A is half the length of train B. What is the respective ratio between the speeds of Train A and Train B? 5. How many kilograms of salt at 42 paise per kilogram must we mix with 25 kilogram of salt of 24 paise per kilogram so that we may on selling the mixture at 40 paise per kilogram gain 25% on the outlay? 6. A bag contains 20 tickets numbered 1 to 20. Two tickets are drawn at random. What is the probability that both numbers are prime? 7. A number when divided by 627 leaves a remainder of 43. By dividing the same number by 19, the remainder will be _______. 8. Find which part of the sentence has grammatical or idiomatic error. Even a newly-recruited teacher in a government high school gets more than what a former principal gets as a pension. 9. Fill in the blanks with appropriate option. If India is _______ on protecting its resources, international business appears equally _______ to safeguard its profits. 10. Fill in the blanks with appropriate option. Lack of financing options _______ with HR and technological _______ make small and medium enterprise sector the most vulnerable component of our economy.
english
<gh_stars>0 { "name": "openvino-computer-pointer-controller", "scripts": { "install": "pip install -r requirements.txt --use-feature=2020-resolver", "venv:create": "virtualenv --system-site-packages venv", "start": "python src/main.py", "test": "echo no tests defined" }, "license": "MIT" }
json
Build your query, then add parameters. You can add them to Select, Make Table, Append, Update, Crosstab, and Union queries. With the query in Design view, click Parameters (Design tab), enter the parameter, choose a data type, click OK. Then add the same parameter (a.k.a. an identifier) to the Criteria row of the field you want to filter. Enclose second parameter in square brackets. Add a clause after each FROM statement: WHERE [field name] = [your parameter].Use the same parameter in each clause. Add your parameter to the Query Parameters dialog first, then place it on the Criteria row. No spaces in parameters or the query fails. Remember, Apps use different wildcards than desktop databases. Use a blank view with no data source. Add text boxes, apply date/time format, add labels, button, give the controls names, add formatting to taste. Home> Advanced> Datasheet View. Click Data, select your Parameter query, click Show only fields in the current record source, drag the fields to the view. On the first view, click the button > Actions> On Click>Open Popup. Under Parameters, enter the name(s) of the text box(es) on the first form, surrounded by square brackets. Save, close, save the database, then Launch App.
english
Begin typing your search above and press return to search. SHILLONG, Dec 2: The weeklong golden jubilee celebrations of Kiang ngbah College, Jowai, which started on 24th November, concluded on Friday with many of its students participating in various activities on the last day. Addressing the occasion as chief guest, former Jaintia Hills Autonomous District Council (JHADC) MDC Gilbert Sten urged the students to give 100% in their studies, adding that only hard work will lead them to success in their future. He also suggested that students should play a more vital role in the field of politics as they are the ones who will shape the future of the State. “We are lacking behind in all sectors, be it education, health, employment etc,” he said. The Kiang ngbah Government College has served the people of Jaintia hills in imparting education for the past 50 years. However, the college is still lacking behind when compared to colleges in Shillong. During the last day of the celebration, the college also organised a beauty pageant, Prince and Princess KNGC in which Carigmadem Shadap bagged the title of Princess KNGC 2017 and Isynei Dkhar won the Prince KNGC 2017 title.
english
<filename>Project/src/Modules/Computer/computer.py """ @name: Modules/Computer/computer.py @author: <NAME> @contact: <EMAIL> @copyright: (c) 2014-2020 by <NAME> @note: Created on Jun 24, 2014 @license: MIT License @summary: Handle the computer information. This handles the Computer part of the node. (The other part is "House"). """ __updated__ = '2020-02-20' __version_info__ = (20, 2, 12) __version__ = '.'.join(map(str, __version_info__)) # Import system type stuff from datetime import datetime import platform # Import PyHouse files from Modules.Core.Config.config_tools import Api as configApi from Modules.Core.Utilities import uuid_tools from Modules.Computer.Nodes.nodes import MqttActions as nodesMqtt from Modules.Computer.__init__ import MODULES, PARTS from Modules.Core.Utilities.debug_tools import PrettyFormatAny from Modules.Core import logging_pyh as Logger LOG = Logger.getLogger('PyHouse.Computer ') CONFIG_NAME = 'computer' class ComputerInformation: """ ==> PyHouse.Computer.xxx - as in the def below. """ def __init__(self): self.Name = None self.Comment = None self.UUID = None self.Primary = False self.Priority = 99 self.Bridges = {} # BridgeInformation() in Modules.Computer.Bridges.bridges.py self.Communication = {} # CommunicationInformation() self.Internet = {} # InternetInformation() self.Nodes = {} # Node Information() self.Weather = {} # WeatherInformation() self.Web = {} # WebInformation() class ComputerApis: """ ==> PyHouse.Computer.xxx as in the def below. """ def __init__(self): pass class MqttActions: """ """ def __init__(self, p_pyhouse_obj): self.m_pyhouse_obj = p_pyhouse_obj def decode(self, p_msg): """ Decode the computer specific portions of the message and append them to the log string. @param p_message: is the payload that is JSON """ p_msg.LogMessage += '\tComputer:\n' l_topic = p_msg.UnprocessedTopic[0].lower() p_msg.UnprocessedTopic = p_msg.UnprocessedTopic[1:] if l_topic == 'node': nodesMqtt(self.m_pyhouse_obj).decode(p_msg) else: p_msg.LogMessage += '\tUnknown sub-topic {}'.format(PrettyFormatAny.form(p_msg.Payload, 'Computer msg')) LOG.error(p_msg.LogMessage) class Utility: """ There are currently (2019) 8 components - be sure all are in every method. """ m_pyhouse_obj = None def __init__(self, p_pyhouse_obj): """ """ self.m_pyhouse_obj = p_pyhouse_obj def load_module_config(self, p_modules): # LOG.debug('Loading Componente') for l_module in p_modules.values(): l_module.LoadConfig() class LocalConfig: """ """ m_config_tools = None m_pyhouse_obj = None def __init__(self, p_pyhouse_obj): self.m_pyhouse_obj = p_pyhouse_obj self.m_config_tools = configApi(p_pyhouse_obj) # LOG.debug('Config - Progress') def _extract_computer_info(self, _p_config): """ The cpmputer.yamll file only contains module names to force load. @param p_pyhouse_obj: is the entire house object @param p_config: is the modules to force load. """ l_modules = [] # for l_ix, l_config in enumerate(p_config): # pass return l_modules # For testing. def load_yaml_config(self): """ Read the config file. """ LOG.info('Loading Config - Version:{}'.format(__version__)) # self.m_pyhouse_obj.Computer = None l_yaml = self.m_config_tools.read_config_file(CONFIG_NAME) if l_yaml == None: LOG.error('{}.yaml is missing.'.format(CONFIG_NAME)) return None try: l_yaml = l_yaml['Computer'] except: LOG.warning('The config file does not start with "Computer:"') return None l_computer = self._extract_computer_info(l_yaml) # self.m_pyhouse_obj.Computer = l_computer # LOG.debug('Computer.Yaml - {}'.format(l_yaml.Yaml)) return l_computer class Api: """ """ m_config_tools = None m_local_config = None m_module_apis = {} m_module_list = None m_pyhouse_obj = None def __init__(self, p_pyhouse_obj): """ Initialize the computer section of PyHouse. """ LOG.info('Initializing') self.m_pyhouse_obj = p_pyhouse_obj self._add_storage() self.m_config_tools = configApi(p_pyhouse_obj) self.m_local_config = LocalConfig(p_pyhouse_obj) # l_path = 'Modules.Computer.' l_modules_list = self.m_config_tools.find_module_list(MODULES) self.m_module_apis = self.m_config_tools.import_module_list(l_modules_list, l_path) # LOG.info("Initialized - Version:{}".format(__version__)) def _add_storage(self): """ """ self.m_pyhouse_obj.Computer = ComputerInformation() self.m_pyhouse_obj.Computer.Name = platform.node() self.m_pyhouse_obj.Computer.Key = 0 self.m_pyhouse_obj.Computer.UUID = uuid_tools.get_uuid_file(self.m_pyhouse_obj, CONFIG_NAME) self.m_pyhouse_obj.Computer.Comment = '' self.m_pyhouse_obj.Computer.LastUpdate = datetime.now() def LoadConfig(self): """ """ LOG.info('Loading Config - Version:{}'.format(__version__)) self.m_local_config.load_yaml_config() for l_module in self.m_module_apis.values(): l_module.LoadConfig() LOG.info('Loaded all computer Configs.') def Start(self): """ Start processing """ for l_module in self.m_module_apis.values(): l_module.Start() LOG.info('Started.') def SaveConfig(self): """ Take a snapshot of the current Configuration/Status and write out an XML file. """ for l_module in self.m_module_apis.values(): l_module.SaveConfig() LOG.info("Saved Computer Config.") def Stop(self): """ Append the house XML to the passed in xlm tree. """ for l_module in self.m_module_apis.values(): l_module.Stop() LOG.info("Stopped.") def MqttDispatch(self, p_msg): """ """ p_msg.LogMessage += '\tComputer: {}\n'.format(self.m_pyhouse_obj.House.Name) l_topic = p_msg.UnprocessedTopic[0].lower() p_msg.UnprocessedTopic = p_msg.UnprocessedTopic[1:] if l_topic in self.m_module_apis: self.m_module_apis[l_topic].MqttDispatch(p_msg) else: p_msg.LogMessage += '\tUnknown sub-topic: "{}"'.format(l_topic) LOG.warning('Unknown Computer Topic: {}\n\tTopic: {}\n\tMessge: {}'.format(l_topic, p_msg.Topic, p_msg.Payload)) LOG.debug(PrettyFormatAny.form(self.m_module_apis, 'Modules')) self.m_pyhouse_obj.Core.MqttApi.MqttDispatch(p_msg) # ## END DBK
python
<filename>package.json { "name": "simplecov-report-group-action", "version": "1.0.1", "description": "Simplecov Group Coverage Report", "main": "index.js", "scripts": { "lint": "eslint .", "prepare": "ncc build index.js -o dist --source-map --license licenses.txt", "test": "jest", "all": "npm run lint && npm run prepare && npm run test" }, "repository": { "type": "git", "url": "git+https://github.com/pi-chan/simplecov-report-group-action.git" }, "keywords": [ "GitHub", "Actions", "JavaScript" ], "author": "", "license": "MIT", "bugs": { "url": "https://github.com/pi-chan/simplecov-report-group-action/issues" }, "homepage": "https://github.com/pi-chan/simplecov-report-group-action", "dependencies": { "@actions/core": "^1.2.5", "@actions/github": "^4.0.0", "@aki77/actions-replace-comment": "^0.5.0", "markdown-table": "^2.0.0" }, "devDependencies": { "@vercel/ncc": "^0.26.1", "eslint": "^7.16.0", "eslint-config-standard": "^16.0.2", "eslint-plugin-import": "^2.22.1", "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint_d": "^9.1.2", "jest": "^26.1.0" } }
json
Today Express 24X7 provides comprehensive up-to-date coverage of the Breaking News, Politics, Latest News, Entertainment News, Business News, and Sports News. Stay tuned for all the News in Hindi. Today Express 24X7 पर आप ट्रेंडिंग न्यूज, राजनीति, मनोरंजन, बॉलीवुड, बिजनेस, क्रिकेट और अन्य खेलों की लेटेस्ट खबरों के साथ-साथ विस्तृत विश्लेषण पा सकते हैं। We do NOT own the video materials and all credits belong to respectful owner. In case of copyright issues, please contact us immediately for further credit or clip delete. Under Section 107 of the Copyright Act 1976, allowance is made for "fair use" for purposes such as criticism, commenting, news reporting, teaching, scholarship, and research. Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational or personal use tips the balance in favour of fair use. Contact Us for Copyright Related issues, Credit addition and deletion: Launch of Gujarat Election Campaign in Ahmedabad. This video is an intellectual property belonging to the Indian National Congress. Please seek prior permission before using any part of this video in any form. Follow Indian National Congress! TV24 is Punjab's Best News channel which includes all the News from Punjab state. please do subscribe our channel for all the latest updates. Tv24 punjab is a 24*7 news channel. Tv24 established its image as a voice for society, in a free and fair way, without fear or favour from any political or other vested interests. Tv24 punjab Broadcast and Publish News, Special reports to provide a voice to the society . We at Tv24 Punjab Conduct conferences, seminars and promote art and culture. We are your voice. We are for Human rights. Send your voice to us we will raise your voice. Subscribe Now - http://bit.ly/2ofH4S4 Stay Updated! ???? Press Conference by Union Minister of Jal Shakti Shri Gajendra Singh Shekhawat at BJP HQ. Kriti Sanon recently unveiled the Skechers Walkathon in Mumbai and when we caught up with the now National Award winning actress, we did a super fun Rapid Fire. From discussing what she, Kareena Kapoor Khan and Tabu bond over to revealing what she loves, hates and tolerates about her co-stars Prabhas, Varun Dhawan and Kartik Aaryan, she aces it. She also gives an insight on the dating rumours and explains why she wants to steal Gangubai Kathiawadi #from her fellow National Awardee colleague Alia Bhatt. Watch the video to know more. Check out the video to know more. SUBSCRIBE To Bollywood Bubble: Also, Visit - https://www.bollywoodbubble.com . One stop Destination for Latest Bollywood Updates. Click on the Subscribe Button NOW and Stay Tuned. Robotic Process Automation enables users to create software robots, or #Bots, that can observe, mimic & execute repetitive, time consuming #Digital #business processes by studying human actions. Watch the video to know how RPA is transforming #businesses. Una : During the winter season, the plain area of Una district of Himachal Pradesh often appears wrapped in fog. But this time, about 3 months ago, mist and fog have started showing their fierce form. While visibility became extremely low due to dense fog on Monday morning, drivers were also seen passing on the road with their headlights on. Along with the haze, the morning and evening cold has also started increasing in the district. Although the strong sunlight during the day leaves no stone unturned in making people sweat, the change in weather in the morning and evening is taking a toll on people. In this changing season, the number of patients suffering from cold, cough and cold has also started increasing. ► Thanks For Watching Our Channel. ► Thanks For Watching Our Channel. ► Thanks For Watching Our Channel. ????घरवा से चलनी जसही रूपवा सवार के हो , नया साड़ी हमार कइलस बेकार , रंगवा डाल के फरार हो गइल ! पोतलस गाल में अबीर हरिहर लाल , रंगवा डाल के फरार हो गइल !! ???? गमछा से ऑइल रहे मुहवा उ त बान्ह के , डाली के रंगवा बइठल गाड़ी प उ फ़ान के , कइलस चढ़ली जवनिया प वार, रंगवा डाल के फरार हो गइल ! पोतलस गाल में अबीर हरिहर लाल , रंगवा डाल के फरार हो गइल !! ???? जियरा सुबेरे से करता धक-धक हो, छोटका देवरवा प बाटे हमरा शक हो , शिवम् पता करअ जिमा बा तोहार, रंगवा डाल के फरार हो गइल ! पोतलस गाल में अबीर हरिहर लाल , रंगवा डाल के फरार हो गइल !! ► Thanks For Watching Our Channel. ► Thanks For Watching Our Channel. ► Thanks For Watching Our Channel. ► Thanks For Watching Our Channel. ► Thanks For Watching Our Channel. ► Thanks For Watching Our Channel. ► Thanks For Watching Our Channel. ►Movie - Maine unko Sajan Chun Liya (Bhojpuri Movie) Lyrics :- Ajit Mandal (Recreate) ► Thanks For Watching Our Channel. ► Thanks For Watching Our Channel. ► Thanks For Watching Our Channel. ► Thanks For Watching Our Channel. ????घरवा से चलनी जसही रूपवा सवार के हो , नया साड़ी हमार कइलस बेकार , रंगवा डाल के फरार हो गइल ! पोतलस गाल में अबीर हरिहर लाल , रंगवा डाल के फरार हो गइल !! ???? गमछा से ऑइल रहे मुहवा उ त बान्ह के , डाली के रंगवा बइठल गाड़ी प उ फ़ान के , कइलस चढ़ली जवनिया प वार, रंगवा डाल के फरार हो गइल ! पोतलस गाल में अबीर हरिहर लाल , रंगवा डाल के फरार हो गइल !! ???? जियरा सुबेरे से करता धक-धक हो, छोटका देवरवा प बाटे हमरा शक हो , शिवम् पता करअ जिमा बा तोहार, रंगवा डाल के फरार हो गइल ! पोतलस गाल में अबीर हरिहर लाल , रंगवा डाल के फरार हो गइल !! ► Thanks For Watching Our Channel. ► Thanks For Watching Our Channel. ► Thanks For Watching Our Channel. ► Thanks For Watching Our Channel. ► Thanks For Watching Our Channel.
english
Cricket hero turned politician Imran Khan ramped up the anti-corruption message at a rally of over 100,000 people in Pakistan on Sunday, boosting his image as a rising political force. Cricket hero turned politician Imran Khan ramped up the anti-corruption message at a rally of over 100,000 people in Pakistan on Sunday, boosting his image as a rising political force. All roads in the port city of Karachi near the rally venue were jammed for more than ten hours, an AFP reporter said, and hundreds of thousands of people waved party flags when the former Pakistan cricket captain arrived. “I promised to all you people that we’ll make a new and respectable Pakistan. Join me to achieve this goal,” he told the crowds, full of people waving the green and red flags of his opposition Movement for Justice Party. “I have been an honest cricketer who never fixed a match. I promise you that I’ll never fixed a match either during my political career,” he said, brushing aside speculation his rise had tacit support from the military establishment. “Once we are in power, we’ll end corruption in 90 days. My party has zero tolerance for corruption and corrupt people,” he said, calling his campaign “a good tsunami that will destroy injustice and corruption”. The 59-year-old who guided his country to a World Cup win in 1992, entered politics after founding his Movement for Justice Party in 1996. He has started campaigning against the ruling Pakistan Peoples Party in government and is also critical of the opposition party Pakistan Muslim League led by former prime minister Nawaz Sharif. Khan, who drew more than 100,000 people to his October 30 rally in Lahore, brimmed with confidence that he could solve the problems in Pakistan, plagued by terror attacks, corruption, a weak economy and power and gas outages. His party has tapped social media, including Facebook and Twitter, to reach the all-important 18-30 age group which represents about one-quarter of Pakistan’s population of 174 million — and more than the usual voting pool. Nearly 600,000 people have joined Khan’s party in recent months by sending a text on their mobile phone. “Who will save Pakistan? Imran Khan Imran Khan,” chanted supporters, between recorded music of popular singers playing intermittently for several hours. “We have estimated that more than 100,000 people have been gathered,” Javed Odho, a senior police official at the event told AFP. Khan, who cemented his national profile in 1992 when he captained the only Pakistani cricket team to clinch the World Cup, is pushing an anti-graft revolution, and some politicians have already defected to join his camp. Among them is former foreign minister Shah Mehmood Qureshi, who left the ruling Pakistan Peoples Party led by embattled President Asif Ali Zardari. The latest defection came on Saturday, as prominent politician Javed Hashmi broke with the Pakistan Muslim League to join Khan, and raised alarm bells in both ruling and opposition parties. Khan’s supporters said they believed he could turn the country around. “We see a ray of hope in him. He seems to me an honest man, which is rarity in Pakistan. I hope he makes our country respectable in the world,” 19-year-old university student Tashfeen Ash’ar said, her face painted in party colours. Khan told the crowd he was forming a team to formulate policies, notably aimed at alleviating poverty “We want to break the begging bowl once and for all”, he said, and make Pakistan a “true Islamic welfare state”. He hit out at Pakistan’s President Asif Zardari, claiming his days were numbered and accusing him of policies that encouraged corruption, and which cost Pakistan three billion rupees ($34 million) a day. Political analysts said Khan’s rally was impressive but it could impact politically on Pashtun voters in Karachi whose more than 2. 5 million population migrated from the northwest for better job prospects. “The majority of people who participated in the rally were Pashtuns, which shows they can vote for Imran Khan at the cost of religious and political parties they have been voting so far,” analyst Tauseef Ahmed Khan told AFP. Karachi, with a population of 18 million, is gateway to the Arabian Sea and provides the bulk of the democratically fragile country’s income. (AFP)
english
function Airport(){ this.planes = []; this.land = function(plane){ this.planes.push(plane); } this.isStormy = function(){ return (Math.floor(Math.random()*4)+1) === 1; } this.takeOff = function(plane){ if( this.isStormy() ){ throw new Error("Weather is too stormy!"); } else { var arr = this.planes; var deletePlane = function(arr,plane){ return arr.slice(0,arr.indexOf(plane)).concat(arr.slice(arr.indexOf(plane)+1)); }; this.planes = deletePlane(arr,plane); } } }
javascript
/** * @fileoverview Prefer function declaration instead of variable declaration when defining action creator * @author Prefer function declaration instead of variable declaration when defining action creator */ 'use strict'; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ var rule = require('../../../lib/rules/prefer-function-declaration-in-actions'), RuleTester = require('eslint').RuleTester; //------------------------------------------------------------------------------ // Tests //------------------------------------------------------------------------------ RuleTester.setDefaultConfig({ parser: '@typescript-eslint/parser', parserOptions: { ecmaVersion: 6, sourceType: 'module' } }); var ruleTester = new RuleTester(); ruleTester.run('prefer-function-declaration-in-actions', rule, { valid: [ { code: `export const SOME_ACTION_TYPE_CONST = 'SOME_ACTION_TYPE_CONST'`, filename: 'actions.js' }, { code: `export function someActionCreatorInTS() { return <const>{ type: SOME_ACTION_TYPE_CONST, }; }`, filename: 'actions.ts' }, { code: `export function someActionCreator() { return { type: SOME_ACTION_TYPE_CONST, }; }`, filename: 'actions.js' }, { code: `export const someRandomExport = () => {}`, filename: 'some/path/with/actions/file.js' } ], invalid: [ { code: `export const someActionCreator = () => { return { type: SOME_ACTION_TYPE_CONST, }; }`, filename: 'actions.js', errors: [ { message: `Prefer function declaration instead of variable declaration when defining action creator.`, type: 'ExportNamedDeclaration' } ] }, { code: `export const someActionCreatorTS = () => { return { type: SOME_ACTION_TYPE_CONST, } as const; }`, filename: 'actions.ts', errors: [ { message: `Prefer function declaration instead of variable declaration when defining action creator.`, type: 'ExportNamedDeclaration' } ] } ] });
javascript
import { Controller, Request, Get, Post,Body, UseGuards,HttpException,HttpStatus } from '@nestjs/common'; import { LocalAuthGuard } from '../local-auth.guard'; import { AuthService } from '../service/auth.service'; import { JwtAuthGuard } from '../guards/jwt-auth.guard'; import { LoginDTO, RespuestaLogin } from '../interfaces/auth.interface'; @Controller('api/auth') export class AuthController { constructor(private authService: AuthService) {} //@UseGuards(LocalAuthGuard) @Post('login') async login(@Body() login : LoginDTO ) { const user:RespuestaLogin = await this.authService.login(login); return user; } @UseGuards(JwtAuthGuard) @Get('profile') getProfile(@Request() req) { return req.body; } }
typescript
(Automated import of articles) Psubhashish (ଆଲୋଚନା | ଅବଦାନ) ଟିକେ (Adding Category:ଦେଶଜ ବିଶେଷ୍ୟ using Cat-a-lot) |୧୭ କ ଧାଡ଼ି: |୧୭ କ ଧାଡ଼ି: ପଦ୍ମାସନ — Posture of sitting cross-legged. ଭୂମିରେ ଜାନୁ ଛନ୍ଦି ଚକାସନରେ ବସିବା; ଚେକାମାଉଲି ପକାଇ ବସିଥିବା —Sitting cross-legged.
english
package com.dto; import java.io.Serializable; import javax.naming.InitialContext; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.dto.persistence.IDtoPersistence; import com.dto.utils.DtoMappingUtils; // TODO: Auto-generated Javadoc /** * The Class AbsUUID. */ public abstract class AbsCommonDTO extends AbstractCommonDTO implements Serializable { private static final Logger logger = LoggerFactory.getLogger(AbsCommonDTO.class); /** * */ private static final long serialVersionUID = 3180384114708349674L; /** The id. */ public Integer id; public AbsCommonDTO(){ try { if (dtoPersistence == null) { Object obj = new InitialContext().lookup("java:global/repositoryservice/repositoryservice-ejb/DtoPersistenceImpl!com.dto.persistence.IDtoPersistence"); if(obj instanceof IDtoPersistence){ dtoPersistence = (com.dto.persistence.IDtoPersistence) obj; } } } catch (Exception e) { logger.error("Error at AbsCommonDTO - {} is {}", this.getClass().getSimpleName(),e.getMessage()); } } public Integer populateIdBySid(){ Integer id = null; try { if(sid != null && !sid.isEmpty()){ id = dtoPersistence.findIdBySid(DtoMappingUtils.getInstance().getEntityClass(this.getClass().getSimpleName()), sid); } } catch (Exception e) { logger.error("Error at populateIdBySid - {} is {}", this.getClass().getSimpleName(),e.getMessage()); } return id; } public Integer populateIdByEntityNameAndSid(String entityClassName){ Integer id = null; try { if(sid != null && !sid.isEmpty()){ id = dtoPersistence.findIdBySid(entityClassName, sid); } } catch (Exception exception) { } return id; } /** * Gets the id. * * @return the id */ public Integer getId() { return id; } /** * Sets the id. * * @param id the new id */ public void setId(Integer id) { this.id = id; } }
java
def main(): print('Please enter x as base and exp as exponent.') try: while 1: x = float(input('x = ')) exp = int(input('exp = ')) print("%.3f to the power %d is %.5f\n" % (x,exp,x ** exp)) print("Please enter next pair or q to quit.") except:print('Hope you enjoyed the power trip...') main()
python
The two great indigenous philosophical and religious traditions of China, Daoism and Confucianism, originated about the same time (6th–5th century BCE) in what are now the neighboring eastern Chinese provinces of Henan and Shandong, respectively. Both traditions have permeated Chinese culture for some 2,500 years. Both are associated with an individual founder, though in the case of Daoism the figure, Laozi (flourished 6th century BCE), is extremely obscure, and some aspects of his traditional biography are almost certainly legendary. A conventional but unlikely story has it that Laozi and Confucius (551–479 BCE), the founder of Confucianism, once met and that the former (older) philosopher was not impressed. Be that as it may, their respective traditions share many of the same ideas (about humanity, society, the ruler, heaven, and the universe), and, over the course of millennia, they have influenced and borrowed from each other. Even since the end of the dynastic period (1911) and the establishment of the communist People’s Republic (1949), which was often violently hostile to religion, the influence of both Daoism and Confucianism in Chinese culture remains strong. Daoism and Confucianism arose as philosophical worldviews and ways of life. Unlike Confucianism, however, Daoism eventually developed into a self-conscious religion, with an organized doctrine, cultic practices, and institutional leadership. In part, because the doctrines of religious Daoism inevitably differed from the philosophy from which they arose, it became customary among later scholars to distinguish between the philosophical and the religious versions of Daoism, some taking the latter to represent a superstitious misinterpretation or adulteration of the original philosophy. That critical view, however, is now generally rejected as simplistic, and most contemporary scholars regard the philosophical and religious interpretations of Daoism as informing and mutually influencing each other. The basic ideas and doctrines of philosophical Daoism are set forth in the Daodejing (“Classic of the Way to Power”)—a work traditionally attributed to Laozi but probably composed after his lifetime by many hands—and in the Zhuangzi (“Master Zhuang”) by the 4th–3rd-century-BCE Daoist philosopher of the same name. The philosophical concept from which the tradition takes its name, dao, is broad and multifaceted, as indicated by the many interrelated meanings of the term, including “path,” “road,” “way,” “speech,” and “method.” Accordingly, the concept has various interpretations and plays various roles within Daoist philosophy. In its most profound interpretation, the Cosmic Dao, or the Way of the Cosmos, it is the immanent and transcendent “source” of the universe (Daodejing), spontaneously and incessantly generating the “ten thousand things” (a metaphor for the world) and giving rise, in its constant fluctuation, to the complementary forces of yinyang, which make up all aspects and phenomena of life. The Cosmic Dao is “imperceptible” and “indiscernible,” in the sense of being indeterminate or not any particular thing; it is the void that latently contains all forms, entities, and forces of particular phenomena. Another important interpretation of dao is that of the particular “way” of a thing or group of things, including individuals (e.g., sages and rulers) and humanity as a whole. Daoist philosophy characteristically contrasts the Cosmic Dao in its naturalness, spontaneity, and eternal rhythmic fluctuation with the artificiality, constraint, and stasis of human society and culture. Humanity will flourish only to the extent that the human way (rendao) is attuned to or harmonized with the Cosmic Dao, in part through the wise rule of sage-kings who practice wuwei, or the virtue of taking no action that is not in accord with nature. Generally speaking, whereas Daoism embraces nature and what is natural and spontaneous in human experience, even to the point of dismissing much of China’s advanced culture, learning, and morality, Confucianism regards human social institutions—including the family, the school, the community, and the state—as essential to human flourishing and moral excellence, because they are the only realm in which those achievements, as Confucius conceived them, are possible. A lover of antiquity, Confucius broadly attempted to revive the learning, cultural values, and ritual practices of the early Zhou kingdom (beginning in the 11th century BCE) as a means of morally renewing the violent and chaotic society of his day (that of the Spring and Autumn Period) and of promoting individual self-cultivation—the task of acquiring virtue (ren, or “humaneness”) and of becoming a moral exemplar (junzi, or “gentleman”). According to Confucius, all people, no matter their station, are capable of possessing ren, which is manifested when one’s social interactions demonstrate humaneness and benevolence toward others. Self-cultivated junzi possess ethical maturity and self-knowledge, attained through years of study, reflection, and practice; they are thus contrasted with petty people (xiaoren; literally “small person”), who are morally like children. Confucius’s thought was interpreted in various ways during the next 1,500 years by later philosophers who were recognized as founders of their own schools of Confucian and Neo-Confucian philosophy. About 1190 the Neo-Confucian philosopher Zhu Xi published a compilation of remarks attributed to Confucius, which had been transmitted both orally and in writing. Known as Lunyu, or the The Analects of Confucius, it has since been regarded as the most reliable historical account of Confucius’s life and doctrines.
english
Prv. Close: Prv. Close: Dear Shareholders, The year 2015-16 has indeed been an action packed year for the company. We started 2015-16 taking off for on the approval of our CDR in 2014 by a consortium of domestic tenders subsequent to which the company embarked on implementing a revival plan for the organization which focused on six strategic incorporate initiatives. On these strategic incorporate initiatives, among which were included change in the business model of the Smart Class business, organizational restructuring of the organization to become more customer focused, concentrating on the delinquent customers which fall in the red ERP category to recover the due moneys, further cost rationalization and working on the core areas of strength and trying to divest the non core areas. You will be happy to know that we have progressed very well on our strategic initiatives. We won orders from 742 new schools in FY16 compared to 490 new schools in FY15, an increase of 51%. It was also a year that was marked by an excellent renewal rate of our past customers showing the confidence that customers had on the company as well as two new strategic initiatives to leverage not only new channels of distribution for our existing products but also leveraging our existing sales channel to sell other value added products to the consumer. On both fronts we have made substantial progress. We have signed agreements with online portals such as FlipLearn for monetization of the Smart Class content as we recognize that the future is to directly sell our content to consumers through internet and online and given the resource constraints of the company as well as the obligations of the organization post CDR, we have moved forward to utilize and monetize our intellectual property by inking exclusive distribution arrangements to sell our content through other distribution channels. Further, the company has leveraged its rather large network of people across the country to introduce other value added products so that our cost of sales and cost of collections should be normalized and rationalized. These initiatives have shown sufficient traction and endorses our belief that Educomp is back to being the leading digital content company across the country. We continue to innovate across our entire product line and have focused on trying to provide and position the latest technology to our customers. We have also tried to unlock the distribution strength of the company to ensure that we position Educomp as a company that is a trusted brand providing various solutions to schools. In our education infrastructure business, we continue to advocate policy change and try to create awareness for the importance of private sector education in the country as our shareholders are aware that this high potential business has in the past been hampered by various regulations that have limited value creation such as fee regulation, the right to education act as well as the multiple approvals required to set up and manage schools. Further, the taxation policy of the government turned adverse towards the education sector by taxing the income generated from schools. Notwithstanding all of this, we have shown net increase and net enrolment across all the schools has increased from 24,871 students in FY15 to 25,774 students in FY16, an increase of 4%. The fact that our schools across the country stand for quality education and have won the trust of the consumers is testimony to the fact that eventually consumers will choose quality no matter what. Further, to bolster our brand presence, we have tied up with organizations to license our Millennium School brand so that more Millennium schools can come across the country, thereby popularizing the brand as well as bringing a healthy license fee to the organization. Lastly, as a part of our Government business, we have shifted focus to working with the Ministry of Skill Development and Entrepreneurship to work in the Skill India initiative and our Edureach team has already signed several contracts across 5 States in this space. Additionally, we are also implementing the Honorable Prime Minister’s flagship programme PMKVY in 8 States. Our focus on monetizing non-core assets continued and we successfully sold our Singapore company to Japanese listed company as well as took concrete steps towards monetizing other non-core assets. We have further divested our investments in other non-core assets such as Vidyamandir Classes and are closely looking at other divestments as well. every action that the company takes is fundamentally on a ‘Customer First’ principle and concept. Finally, I would like to thank our bankers who have worked very closely with the company and are always receptive to our ideas and work with the positive mindset with us to find ways to work together to unlock shareholder value as well as serve the education sector in our country. We look forward to Team Educomp contributing to the Indian education story for several decades to come. Date Sources:Live BSE and NSE Quotes Service: TickerPlant | Corporate Data, F&O Data & Historical price volume data: Dion Global Solutions Ltd. BSE Quotes and Sensex are real-time and licensed from the Bombay Stock Exchange. NSE Quotes and Nifty are also real time and licenced from National Stock Exchange. All times stamps are reflecting IST (Indian Standard Time). By using this site, you agree to the Terms of Service and Privacy Policy.
english
/* Copyright (c) 2017, United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * * All rights reserved. * * The Astrobee platform is licensed under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with the * License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations * under the License. */ // Implementation File // Look at polynomial.h for documentation #include <traj_opt_basic/polynomial_basis.h> #include <boost/math/special_functions/factorials.hpp> #include <boost/pointer_cast.hpp> #include <boost/range/irange.hpp> #include <iostream> #include <stdexcept> #include <vector> namespace traj_opt { Poly PolyCalculus::integrate(const Poly &p) { // integrates polynomial with 0 as constant of integration Poly::size_type rows = p.size(); std::vector<decimal_t> v; v.push_back(0.0); for (Poly::size_type i = 0; i < rows; i++) { decimal_t val = static_cast<decimal_t>(i + 1); v.push_back(p[i] / val); } Poly result(v.data(), rows); return result; } Poly PolyCalculus::differentiate(const Poly &p) { // differentiates polynomial Poly::size_type rows = p.size(); if (rows <= 1) return Poly(0.0); std::vector<decimal_t> v; for (Poly::size_type i = 1; i < rows; i++) { decimal_t val = static_cast<decimal_t>(i); v.push_back(p[i] * val); } Poly result(v.data(), rows - 2); return result; } uint Basis::dim() { return n_p; } // switched these constructors to use new generic one BasisBundle::BasisBundle(uint n_p_, uint k_r_) : BasisBundle(LEGENDRE, n_p_, k_r_) {} BasisBundle::BasisBundle(int n) : BasisBundle(BEZIER, n, 0) {} void StandardBasis::differentiate() { for (std::vector<Poly>::iterator it = polys.begin(); it != polys.end(); ++it) { *it = PolyCalculus::differentiate(*it); } } void StandardBasis::integrate() { for (std::vector<Poly>::iterator it = polys.begin(); it != polys.end(); ++it) { *it = PolyCalculus::integrate(*it); } } decimal_t StandardBasis::evaluate(decimal_t x, uint coeff) const { // std::cout << "poly size " << polys.size() << std::endl; assert(coeff < polys.size()); if (x > 1.0 || x < 0.0) throw std::out_of_range( "Tried to evaluate shifted legensdre basis out of normalized range " "[0,1]"); return polys[coeff].evaluate(x); } std::ostream &operator<<(std::ostream &os, const StandardBasis &lb) { for (std::vector<Poly>::const_iterator it = lb.polys.begin(); it != lb.polys.end(); ++it) { os << (*it) << std::endl; } return os; } decimal_t BasisBundle::getVal(decimal_t x, decimal_t dt, uint coeff, int derr) const { assert(derr < static_cast<int>(derrivatives.size())); if (derr < 0) { assert(-derr <= static_cast<int>(integrals.size())); if (dt != 0.0) { decimal_t factor = std::pow(dt, -static_cast<int>(derr)); return factor * integrals.at(-derr - 1)->evaluate(x, coeff); } else { return integrals.at(-derr - 1)->evaluate(x, coeff); } } else { if (dt != 0.0) { decimal_t factor = std::pow(dt, -static_cast<int>(derr)); return factor * derrivatives.at(derr)->evaluate(x, coeff); } else { return derrivatives.at(derr)->evaluate(x, coeff); } } } // BasisBundle::~BasisBundle() {} Basis::Basis(uint n_p_) : n_p(n_p_) { type_ = PolyType::STANDARD; } // Basis::~Basis() {} decimal_t StandardBasis::innerproduct(uint i, uint j) const { Poly L = polys.at(i) * polys.at(j); Poly Lint = PolyCalculus::integrate(L); return Lint.evaluate(1.0); } Poly StandardBasis::getPoly(uint i) const { return polys.at(i); } StandardBasis::StandardBasis(uint n) : Basis(n) { type_ = PolyType::STANDARD; if (n == 0) return; std::vector<decimal_t> simple; simple.push_back(1.0); for (uint i = 0; i <= n_p; i++) { Poly poly(simple.data(), simple.size() - 1); polys.push_back(poly); simple.back() = 0.0; simple.push_back(1.0); } } boost::shared_ptr<Basis> BasisBundle::getBasis(int i) { if (i >= 0) return derrivatives.at(i); else return integrals.at(-i - 1); } BasisBundle::BasisBundle(PolyType type, uint n_p_, uint k_r_) : n_p(n_p_), k_r(k_r_) { // only computer the first 4 derrivatives derrivatives.reserve(10); // computer the integral too, preferable use i7 to do computering integrals.reserve(1); for (auto i : boost::irange(0, 11)) { boost::shared_ptr<Basis> base; if (type == LEGENDRE) throw std::runtime_error( "Legendre Basis not implemented in basic package"); else if (type == STANDARD) base = boost::make_shared<StandardBasis>(n_p); else if (type == BEZIER) throw std::runtime_error("Bezier Basis not implemented in basic package"); else if (type == ENDPOINT) throw std::runtime_error( "Enpoint Basis not implemented in basic package"); else if (type == CHEBYSHEV) throw std::runtime_error( "Chebyshev Basis not implemented in basic package"); else throw std::runtime_error("Unknown basis type"); if (i == 11) { base->integrate(); integrals.push_back(base); } else { for (int j = 0; j < i; j++) base->differentiate(); derrivatives.push_back(base); } } } } // namespace traj_opt
cpp
South Indian actress Mamta Mohandas has made a shocking statement blaming women who become victims of sexual assault. By India Today Web Desk: Actress Mamta Mohandas's shocking statements about victims of sexual assault and Women in Cinema Collective (WCC) have caused a furore on social media. In a recent interview with a leading daily, she blatantly blamed the victims and said, "I don't know if I should be saying this, but if a woman gets into trouble, I feel somewhere she is responsible for it. Because if I have gotten into any sort of trouble where I have felt that someone has spoken to me with disrespect or in this situation, a sexual assault or a sexual abuse or anything indicative towards that manner, I feel I would have entertained some part of it. " Mamta quickly cleared the air saying that she is not pointing fingers at anyone specifically nor does she think that it should happen to anybody. These statements came across as a shock to many feminists and fellow industry people as well. Mamta also revealed that she doesn't think that there is a need for Women in Cinema Collective. She elaborated saying, "It was formed when I wasn't here. If you ask me would I have been a part of it if I was here, maybe not. It's not because I am against or for it. I just don't have an opinion. " Opening up about the actress assault case, she exclaimed, "During the press meet, they had asked me what I had to say about the actress assault incident. I said that in my knowledge, it was something that should have been discussed and resolved a few years ago. I know when the issue (between the actor and the assaulted actress) had erupted; it was not when the incident had happened. It was much before that. So, everybody who were part of what happened were very much aware of the mess they were getting into. " Actress Rima Kallingal, one of the founding members of WCC has slammed Mamta Mohandas for her comments on her Facebook page. She wrote, "Dear Mamtha Mohandas and my sisters and brothers and LGBTQ community out there who have been through harassment and assaults and molestations and rapes in life, you are not responsible when you get troubled, cat-called, assaulted, molested, abused, harassed, violated, attacked, kidnapped or raped. The molester, assaulter, aggressor, violater, kidnapper or the rapist is responsible. A society that normalises these wrongs is responsible. A world that protects the wrong-doer is responsible. Aly Raisman (She called out her doctor who sexually molested 141 women athletes including her, putting an end to years of torture. ) says, 'The ripple of our actions, or inactions, can be enormous, spanning generations. 'Please don't feel guilty for another person's act. Continue to speak out and stand up for each other. Let's break that wall of silence and ignorance. Love and strength to all. (sic)"
english
England and Australia traded blows in another action-packed session as the Headingley Test edged closer to a tight finish on the fourth day. Resuming at 27/0 in pursuit of 251, England ended up bringing down the equation to 98 needed from five sessions. However, they also lost the favourites tag on the fourth morning after Australia struck four times to stay alive in the contest. Australia had the field spread out to begin with as the two openers kept rotating the strike. Ben Duckett, who already had a close shave for lbw against Mitchell Starc, came a long way across once again to the left-arm pacer in his next over and this time, he was a goner. England then sprung a surprise and sent out Moeen Ali at No.3 having sent Harry Brook in the first innings. The move didn't work though as Moeen lasted only 15 deliveries for five runs and was cleaned up by Starc. A scrambled seam delivery came in after pitching to rattle the stumps as Australia made a fine start. A jittery Joe Root then got going with a neat cover drive and Zak Crawley started finding a few boundaries as well to eat into the target. After the drinks break, Crawley nailed a shot through the offside against Mitchell Marsh to move to 44 but the Australian allrounder staged a strong comeback by pulling the length a touch and getting the ball to move away. Crawley ended up edging it behind to give Australia a huge lift. Brook did finally come out at No.5 and after a watchful start, he smashed Scott Boland straight down the ground to collect his first boundary. The young right-hander then took on Boland again in his next over and hit him for successive boundaries as England slowly regained control again. Just minutes before lunch, he survived a scare when Pat Cummins found his outside edge but the ball just bounced in front of first slip. However, Root wasn't the beneficiary of any such luck at the other end as he took on a short-pitched delivery from Cummins, only to get a tickle through to the keeper much to Australia's delight. The wicket was absolutely massive from an Australian perspective given England had knocked off over 100 runs in the session. Ben Stokes was then given a rapturous welcome to the crease by the Headingley crowd. England will hope he can deliver the goods again post the lunch break.
english
<reponame>cetinajero/cv<gh_stars>0 { "name": "cv", "version": "1.0.0", "description": "<NAME>'s Curriculum Vitae", "main": "index.js", "repository": "<EMAIL>:cetinajero/cv.git", "author": "<<EMAIL>>", "license": "MIT", "dependencies": { "@fortawesome/fontawesome-free": "latest", "bootstrap": "latest", "jquery": "latest", "popper.js": "latest" } }
json
const errors = require('@tryghost/errors'); const should = require('should'); const sinon = require('sinon'); const Promise = require('bluebird'); const moment = require('moment'); const testUtils = require('../../../../../utils'); const models = require('../../../../../../core/server/models'); const events = require('../../../../../../core/server/lib/common/events'); const schedulingUtils = require('../../../../../../core/server/adapters/scheduling/utils'); const SchedulingDefault = require('../../../../../../core/server/adapters/scheduling/SchedulingDefault'); const urlUtils = require('../../../../../../core/shared/url-utils'); const PostScheduler = require('../../../../../../core/server/adapters/scheduling/post-scheduling/post-scheduler'); describe('Scheduling: Post Scheduler', function () { let adapter; before(function () { models.init(); }); beforeEach(function () { adapter = new SchedulingDefault(); sinon.stub(schedulingUtils, 'createAdapter').returns(Promise.resolve(adapter)); sinon.spy(adapter, 'schedule'); sinon.spy(adapter, 'unschedule'); }); afterEach(function () { sinon.restore(); }); describe('fn:constructor', function () { describe('success', function () { it('will be scheduled', async function () { const post = models.Post.forge(testUtils.DataGenerator.forKnex.createPost({ id: 1337, mobiledoc: testUtils.DataGenerator.markdownToMobiledoc('something') })); new PostScheduler({ apiUrl: 'localhost:1111/', integration: { api_keys: [{ id: 'integrationUniqueId', secret: 'super-secret' }] }, adapter, scheduledResources: { posts: [] }, events }); events.emit('post.scheduled', post); // let the events bubble up await Promise.delay(100); adapter.schedule.called.should.eql(true); adapter.schedule.calledOnce.should.eql(true); adapter.schedule.args[0][0].time.should.equal(moment(post.get('published_at')).valueOf()); adapter.schedule.args[0][0].url.should.startWith(urlUtils.urlJoin('localhost:1111/', 'schedules', 'posts', post.get('id'), '?token=')); adapter.schedule.args[0][0].extra.httpMethod.should.eql('PUT'); should.equal(null, adapter.schedule.args[0][0].extra.oldTime); }); }); describe('error', function () { it('no apiUrl parameter passed', function () { try { new PostScheduler(); throw new Error('should have thrown'); } catch (err) { (err instanceof errors.IncorrectUsageError).should.eql(true); } }); }); }); });
javascript
class MovieService { constructor(axios, baseUrl) { this.axios = axios; this.baseUrl = baseUrl; } findAll() { return this.makeRequest('', 'get') .then((response) => response.data); } findOne(id) { return this.makeRequest(id, 'get') .then((response) => response.data); } save(movie) { if (movie.id) { return this.makeRequest(movie.id, 'patch', movie) .then((response) => response.data); } return this.makeRequest('', 'post', movie) .then((response) => response.data); } delete(id) { return this.makeRequest(id, 'delete'); } makeRequest(url, method, data) { const request = { url: `${this.baseUrl}/${url}`, method }; if (data) { request.data = data; request.jsonApiType = 'movie'; } return this.axios.request(request); } } export default MovieService;
javascript
Ayodhya: Rashtriya Swayamsevak Sangh (RSS) chief Mohan Bhagwat said on Wednesday the foundation laying ceremony for the construction of the Ram temple in Ayodhya has come after decades-old struggle and has been a moment of great satisfaction.The RSS chief said the organisation worked nearly 30 years for the fulfilment of the resolve to construct the temple in Ayodhya.“We had taken a resolution. I remember the then RSS chief Balasaheb Deoras telling us that we will have to struggle for 20 to 30 years, only then will this be fulfilled. We struggled and at the beginning of the 30th year, we have attained the joy of fulfilling our resolution,” Bhagwat said.His comments came after Prime Minister Narendra Modi performed the bhoomi pujan of a Supreme Court-mandated Ram temple in Ayodhya, bringing to fruition the BJP’s movement that defined its politics for three decades.“There is a wave of joy in the entire country today. There is a pleasure about the fulfilment of centuries of hope. The greatest joy is because of the establishment of the self-confidence, which was lacking, today to make India self-reliant,” he said.“So many people had sacrificed but they couldn’t be here physically. There are some who couldn’t come here, Advani ji must be watching this at his home. There are some who should’ve come but couldn’t be invited because of the situation (coronavirus pandemic,” he added.Bhagwat and Uttar Pradesh chief minister Yogi Adityanath and Governor Anadiben Patel were among those who attended the event at the site where some Hindus believe Lord Ram was born.The guest list, including religious leaders who formed part of the movement that started in the 1980s, was restricted to 175 in view of the Covid-19 crisis.Priests chanted Sanskrit shlokas and the ground-breaking ceremony got underway under a giant marquee decorated in shades of reds and yellows and Modi and the other dignitaries, all in masks, maintained social distancing.As the Prime Minister laid the foundation of the temple, slogans of ‘Bharat Mata ki Jai’ and ‘Har Har Mahadev’ went up as the ritual ended.The temple town was decorated with marigold flowers and yellow and saffron flags as residents celebrated the beginning of the construction of a grand Ram temple. Roads leading to Ayodhya were adorned with hoardings of the proposed temple and of Ram Lalla, the infant Ram, the deity now housed in a makeshift temple.The Prime Minister had arrived in Ayodhya in a helicopter from the state capital of Lucknow and was received by Adityanath among others. Before the ceremony to lay the foundation stone of the Ram temple, the Prime Minister took part in prayers at the Hanuman Garhi temple.From there, he travelled to the Shri Ram Janmabhoomi site where he performed prayers to the Bhagwan Shree Ramlala Virajman. He also planted a sapling of Parijat or Indian night jasmine.
english
While every effort has been made to follow citation style rules, there may be some discrepancies. Please refer to the appropriate style manual or other sources if you have any questions. Our editors will review what you’ve submitted and determine whether to revise the article. - Live Science - Why Do Some Animals Eat Their Own Poop? - Related Topics: coprophagy, eating of dung, or feces, considered abnormal among human beings but apparently instinctive among certain members of the order Lagomorpha (rabbits and hares) and in at least one leaf-eating primate (genus Lepilemur). It is thought that these animals obtain needed vitamins in this way. The diets of certain insect species, among them the dung beetles and dung flies, are primarily or exclusively coprophagous.
english
Exorcism practised in middle of the night in a Sebashram exclusively for SC/ST girls in Kalahandi. Nearly thousands of people demonstrated in numerous cities of Oromia during the weekend to show their discontent. In Uttarakhand and Uttar Pradesh, 88 percent of milk samples were found adulterated. 3 teachers take care of 117 students.
english
<filename>src/utils/index.ts import sizeOf from 'image-size'; import imagemin from 'imagemin'; import imageminWebp from 'imagemin-webp'; import fs from 'fs'; import path from 'path'; import { Request } from 'express'; import { serviceDB as DBS, contentDB as DBC } from '../database'; import log from '../logger'; /** * remove last slash '/' */ export const trimDataPath = (path: string) => { const str = path.trim(); if(str.length > 1) { if(str[str.length - 1] === '/'){ return str.slice(0, str.length - 1) } } return str } /** * get width, height of image */ export const getImgDimensions = async (path: string) => { try { const dimensions = await sizeOf(path) const { width, height } = dimensions if(!width || !height){ throw new Error('could not determine the image dimensions') } return { width, height } } catch (err: any) { throw new Error(err.message) } } /** * convert to webp, resize and save */ export const optimizeFiles = async (filePath: string, destination: string, dimensions?: {width: number,height: number}) => { let options: any = { preset: 'photo', method: 6, lossless: true, } if(dimensions){ options = { ...options, resize: dimensions } } try { const optimized = await imagemin([filePath], { plugins: [ imageminWebp(options) ] }); const buffer = optimized[0]?.data; if(optimized.length === 0 || !buffer) { throw new Error('failed to optimize') } fs.writeFile(destination, buffer, (err) => { if(err){ throw new Error(err.message) } }) return path.basename(destination); } catch(e: any) { throw new Error(e.message) } } interface ICookieMap { [key: string]: string; } /** * parse cookies */ const getCookies = (req: Request) => { const cookieHeader = req.headers.cookie; if(!cookieHeader){ return null; } const cookieList = cookieHeader.split(';').map(cookie => cookie.trim()).map(cookie => { const list = cookie.split('='); if(list && list[0] && list[1]){ return { key: list[0], value: list[1] } } else { return null } }) let res: ICookieMap = {} cookieList.forEach(cookie => { if(cookie){ res[cookie.key] = cookie.value } }) return res } /** * parsing token from Authorization Header and Cookie Header */ export const parseTokenFromReq = (req: Request) => { const bearerHeader = req.headers['authorization']; const cookieHeader = getCookies(req); if(!bearerHeader && !cookieHeader ){ return null; } let token = null; /** * priority Authorization Token > priority Cookie Token */ if(bearerHeader) { token = bearerHeader.toLowerCase().split('bearer')[1]?.trim(); } if(!token) { token = cookieHeader && 'token' in cookieHeader ? cookieHeader.token : null; } return token } /** * initialize the database skeleton */ export const initializeDBSkeleton = () => { /** * initialize /tokens */ const tokensData = { master: { "12345678": [ "master_token" ] }, site_one: { password_1: [ "<PASSWORD>", "<PASSWORD>" ], password_2: [ "<PASSWORD>" ] }, site_two: { password_3: [ "token_<PASSWORD>" ], password_4: [ "<PASSWORD>" ] } } try { DBS.checkPath('/tokens'); } catch(e) { log.warn('[SERVER]: DB initialize /tokens') DBS.push('/tokens', tokensData) } /** * initialize /rights */ const rightsData = { master_token: { read: { show: ['/'], hide: [], secret: [] }, write: [ '/' ] }, another_token: { read: { show: ['/site_2'], hide: ['/site_2/hidden', '/site_2/users'], secret: ['/site_2/pages'] }, write: [ '/site_2' ] } } try { DBS.checkPath('/rights'); } catch(e) { log.warn('[SERVER]: DB initialize /rights') DBS.push('/rights', rightsData) } /** * initialize /public */ const publicData = [ "/", "/site_3/" ] try { DBS.checkPath('/public'); } catch(e) { log.warn('[SERVER]: DB initialize /public') DBS.push('/public', publicData) } } interface IReadRights { "show"?: Array<string>, "hide"?: Array<string>, "secret"?: Array<string> } type IWriteRights = Array<string> interface ITokenRights { "read"?: IReadRights, "write"?: IWriteRights } /** * checking READ rights * return true if have READ access, else false */ export const checkReadRights = (dataPath: string, rights: ITokenRights) => { let haveAccess = false if(dataPath && rights){ if('read' in rights && rights.read){ const read = rights.read /** * check SHOW */ if(read && read.show && read.show.length > 0){ read.show.forEach(path => { if(isPathConsist(dataPath, path)){ haveAccess = true; } }) } /** * check HIDE */ if(read && read.hide && read.hide.length > 0){ read.hide.forEach(path => { if(isPathConsist(dataPath, path)){ haveAccess = false; } }) } } } return haveAccess } /** * checking WRITE rights * return true if have WRITE access, else false */ export const checkWriteRights = (dataPath: string, rights: ITokenRights) => { let haveAccess = false if(dataPath && rights){ if('write' in rights && rights["write"] && rights["write"].length > 0){ const write = rights["write"] write.forEach((el: string) => { if(dataPath.indexOf(el) === 0){ haveAccess = true; } }) } } return haveAccess } /** * check token existens */ export const isTokenExist = (token: string) => { let tokens = [] const data = DBS.get('/tokens') for(let site in data){ const res = Object.values(data[site]) tokens.push(res) } tokens = tokens.flat(2) if(tokens.includes(token)){ return true } return false } export const getMasterToken = () => { const data = DBS.get('/tokens/master'); const token: any[] = Object.values(data).flat(2); return token[0] } /** * return true, if this DB route: "/get", "/push", "/merge", "delete" * else return false */ export const isRouteDB = (req: Request) => { const { url } = req; const listDataBaseRoute: string[] = [ "/get/", "/push/", "/merge/", "/delete/", ] for(let i = 0; i < listDataBaseRoute.length; i++) { const partURL: string = listDataBaseRoute[i] || ''; if(url.indexOf(partURL) === 0) { return true } } return false; } /** * return READ or WRITE * * read: * - /get * write: * - /push * - /merge * - /delete */ export const getDBMethodType = (req: Request) => { const readMethods = [ "/get/" ]; const writeMethods = [ "/push/", "/merge/", "/delete/" ]; const { url } = req; let methodType = null; readMethods.forEach(method => { if(url.indexOf(method) === 0){ methodType = 'read' } }) writeMethods.forEach(method => { if(url.indexOf(method) === 0){ methodType = 'write' } }) return methodType } /** * return path (/site_2/pages) from DB route (/get/site_2/pages) * work with routes: /get, /push, /merge, /delete */ export const getPathFromDBroute = (req: Request) => { const routes = [ "/get", "/push", "/merge", "/delete" ] const { url } = req; let path = ''; routes.forEach(route => { if(url.indexOf(route) === 0) { path = url.slice(route.length, url.length) } }) return path; } export const getTokenRights = (token: string, key?: 'read' | 'write' | 'show' | 'hide' | 'secret') => { const rights = DBS.get(`/rights/${token}`) if(!key) { return rights } if(key === 'read') { if('read' in rights && rights.read) { return rights.read } } if(key === 'write') { if('write' in rights && rights.write) { return rights.write } } if(key === 'show') { if('read' in rights && rights.read) { const read = rights.read; if('show' in read && read.show) { return read.show } } } if(key === 'hide') { if('read' in rights && rights.read) { const read = rights.read; if('hide' in read && read.hide) { return read.hide } } } if(key === 'secret') { if('read' in rights && rights.read) { const read = rights.read; if('secret' in read && read.secret) { return read.secret } } } } /** * return true, if this route is public (set in /public) */ export const isPublicPath = (req: Request): boolean => { const { url } = req; let isPublic = false; /** * check public paths for /get route */ if(url.indexOf('/get/') === 0) { const publicPaths = DBS.get('/public'); const path = url.slice(4, url.length); publicPaths.forEach((publicPath: string) => { if(path?.indexOf(publicPath) === 0) { isPublic = true } }); } return isPublic } /** * return true if this path is secret */ export const isSecretPath = (req: Request) => { let isSecret = false const token = parseTokenFromReq(req); if(token){ const rights: ITokenRights = getTokenRights(token) const path = getPathFromDBroute(req) if(rights && "read" in rights) { const read = rights.read; if(read && "secret" in read) { const secret = read.secret; if(secret && secret.length > 0){ secret.forEach(oneSecretPath => { if(trimDataPath(oneSecretPath) === trimDataPath(path)) { isSecret = true } }) } } } } else { throw new Error ("token not found. Can`t parse secret paths") } return isSecret } /** * return true, if this path inside secret path */ export const isInsideSecretPath = (req: Request) => { let isInside = false; const token = parseTokenFromReq(req); const { params }: any = req; const path = `/${params[0]}`; if(token){ const secretPath = getSecretPathByDataPath(token, path) if(secretPath){ if(isPathConsist(path, secretPath)) { const diff = path.length - secretPath.length; if(diff >= 2) { isInside = true } } } } return isInside } /** * return true if PATH consist SUB_PATH */ export const isPathConsist = (path: string, sub_path: string) => { if(path.indexOf(sub_path) === 0){ return true } return false } /** * return secret path by dataPath * */ export const getSecretPathByDataPath = (token: string, path: string): string | null => { const rights = getTokenRights(token); let res = null if('read' in rights && rights.read){ const read = rights.read; if('secret' in read && read.secret){ const secret = read.secret; if(secret.length > 0) { secret.forEach((oneSecret: string) => { if(isPathConsist(path, oneSecret)){ res = oneSecret } }); } } } return res } /** * get data by path and hidden paths */ export const getDataWithHiddenPaths = (path: string, hiddenPaths: string[]) => { let data = DBC.get(trimDataPath(path)); /** * make new list hidden paths from paths, who inside main path */ const hiddenInnerPaths: string[] = [] hiddenPaths.forEach(hiddenPath => { if(isPathConsist(hiddenPath, path)){ hiddenInnerPaths.push(hiddenPath) } }) /** * remove each hidden branch */ hiddenInnerPaths.forEach(oneHiddenPath => { const rawParts = trimDataPath(oneHiddenPath).split('/'); let parts: string[] = [] rawParts.forEach(part => { if(part && part.length > 0){ parts.push(part) } }) let branch = data parts.forEach((part: string, i: number) => { const keys = Object.keys(branch); keys.forEach(key => { if(key == part){ if(i === parts.length - 1) { delete branch[key]; } branch = branch[key] } }) }) }) return data }
typescript
"""Book related views.""" from django.views.generic import DetailView, ListView from django.shortcuts import get_object_or_404 from BookClub.models import Book, BookReview, BookList, BookShelf class BookDetailView(DetailView): """Render the details, reviews and actions for a book.""" model = Book template_name = 'library/book_detail_view.html' pk_url_kwarg = 'book_id' context_object_name = 'book' def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) book = context.get('book') user = self.request.user if not user.is_anonymous: context['lists'] = BookList.objects.filter(creator=user) context['user'] = user context['in_bookshelf'] = BookShelf.objects.filter(user=self.request.user, book=book).exists() else: context['lists'] = None context['user'] = None context['in_bookshelf'] = False reviews = BookReview.objects.filter(book=book) if reviews: context['reviews'] = reviews[:3] sum = 0 for review in reviews: sum += review.book_rating avg = sum / len(reviews) avg = round(avg, 2) context['average'] = avg if len(reviews) > 3: context['more'] = True else: reviews = None return context class BookReviewListView(ListView): """Render a table of reviews for a given book.""" model = BookReview template_name = 'library/book_reviews.html' context_object_name = 'reviews' paginate_by = 10 def get_queryset(self): book_pk = self.kwargs.get('book_id') book = get_object_or_404(Book, pk=book_pk) queryset = BookReview.objects.filter(book = book).order_by('-id') return queryset def get_context_data(self, **kwargs): context = super().get_context_data() book_pk = self.kwargs.get('book_id') book = Book.objects.get(pk=book_pk) context['book'] = book return context
python
Wednesday April 08, 2020, Governments worldwide are still grappling with the situation, while some countries have been successfully able to contain the spread such as South Korea and Japan, other countries such as Italy and USA still seem to be trying to get a handle on it while also becoming epicentres in the west. The pandemic has also completely brought the business world to a halt as businesses try and figure out how to ensure their survival in this new reality. While for some completely online businesses this can serve as a unique opportunity (Online streaming, Social Media, Online Gaming sites, etc) for most businesses the virus has mainly been bad news as everyone is trying to operate in a world where people and goods are not allowed to move and the future looks uncertain as to when all this will all come to an end. Startups, relatively, will end up suffering a bit more than established business given their size, cash reserves and the stage of most businesses where cash is being burnt to establish the business. Given that I too am in a similar situation, I thought it would be a good idea to share some thoughts on how Startups, especially early stage startups can deal with the current health crisis which is sure to turn into an economic crisis as well. WORK FROM HOME: This is a challenge which the entire world is facing right now, how do you ensure that business keeps running while your staff works from home. We have a staff of 40 people as of now, across customer support, operations, sales, etc, and our entire team is working from their respective homes. Your first step should be to separate essential services from non-essential services and staff. If there is staff which is non-essential, maybe you can negotiate a leave period for them at a lower than current salary rate. For essential staff, make sure that their tasks and work is measurable in a quantifiable manner, use tools such as Zoom, Slack, Asana plus form a daily reporting framework for all staff members and their supervisors so there is a clear record of how the team is spending their time and to ensure there is the least loss of productivity. The pandemic has resulted in the initiation of the largest work from home experiment ever conducted, the results of which are sure to be interesting and will definitely be used as a great case study for future managers and teams. It is very important to keep constant communication with the team and to keep the teams motivated. Working from home can be challenging, as a leader, offer help in any way you can to all your team members, be there for them during this time. If this is a test for team members to show their commitment to the company and their work, then this is also a test for senior management to show how much they care about their team’s well being, so keep them motivated. BUSINESS GROWTH: If your business relies on movement of goods and services (eg: Ecommerce, logistics, home services, etc) then beyond a point there is not much you would be able to do amidst this lockdown, and your operations would have to halted or slowed down unless you provide essential services or goods which the government is allowing in a phased manner. However, if you business is entirely online and does not require physical movement and users can still user your products or services while sitting at home, then this is an opportunity for your business to push for growth, engage with your users as much as you can, offer attractive products, understand their needs, use this time to make improvements to your products based on customer feedback. This time can be used to reprioritise your tech teams’ tasks where they can make changes to boost business growth more or make changes which have been pending since a while if there is less load on your platform. This also gives a chance for the leadership to find new and more innovative ways to sell their services and to establish stronger customer loyalty. CASH FLOWS: Most early stage startups are not cash positive and rely on external funding for their business growth, and working capital needs as well, they are at a stage where they are focussing on business growth and traction and burning cash to achieve the same. A nationwide or in a sense a worldwide lockdown has brought growth to a halt or at least slowed things down for many businesses and startups, a lot of startups tend to be online and it is possible that they may be able to continue as usual but most companies will witness a hit one way or another. In this case, companies will have to take some tough decisions in order to survive, these are the things i think which can be done: Lastly, discuss the situation with your external investors, in case there is a need for survival capital, they should be ready, look for a bridge loan if you can. Act fast, valuations will see a correction so do not dismiss deals on that basis, switch to survival mode if needed. There are tough times ahead and a lot of businesses might shut shop, but this will also help you realise efficiencies in your business and maybe take advantage of opportunities previously unknown. This too shall pass, keep your head down and keep moving ahead, a lot of businesses will be judged going forward on how they performed during this time.
english
from .command import Command from .add_connection import AddConnection class AddConnectionMutation(Command): def onGenome(self, gen): source = gen.getRandomNode() destination = gen.getRandomNode() while source.type == 'output': source = gen.getRandomNode() while destination.type == 'input': destination = gen.getRandomNode() gen.exec(AddConnection(source.innovationNumber, destination.innovationNumber))
python