text
stringlengths
1
1.04M
language
stringclasses
25 values
Recover your password. A password will be e-mailed to you. On the occasion of 20th edition of Safer Internet Day 2023, CyberPeace in collaboration with UNICEF, DELNET, NCERT, and The National Book Trust (NBT), India, took steps towards safer cyberspace by launching iSafe Multimedia Resources, CyberPeace TV, and CyberPeace Cafe in an event held today in Delhi. CyberPeace also showcased its efforts, in partnership with UNICEF, to create a secure and peaceful online world through its Project iSafe, which aims to bridge the knowledge gap between emerging advancements in cybersecurity and first responders. Through Project iSafe, CyberPeace has successfully raised awareness among law enforcement agencies, education departments, and frontline workers across various fields. The event marked a significant milestone in the efforts of the foundation to create a secure and peaceful online environment for everyone. Launching the Cyberpeace TV, cafe and isafe material, National Cybersecurity Coordinator of Govt of India, Lt. Gen Rajesh Pant interacts with the students by introducing them with the theme of this safer internet day. He launched the coword cyber challenge initiative by the countries. Content is most important in cyberspace. He also assured everyone that the government of India is taking a lot of steps at national level to make cyber space safer. He compliments CPF for their initiatives. Ms. Zafrin Chowdhry, Chief of Communication, UNICEF India addresses students with the facts that children make out 1 out of 3 in cyberspace, so they should have a safe cyberspace. They should be informed and equipped with all the information on how to deal with any kind of issues they face in cyberspace. They should share their experience with everyone to make others aware. UNICEF in partnership with CPF is extending help to children to equip them with the help and information. Major Vineet Kumar, Founder and Global President, CyberPeace Foundation welcomed all and introduced us about the launching of iSafe Multimedia Resources, CyberPeace TV, and CyberPeace Cafe. With this launch he threw some light on upcoming plans like launching a learning module of metaverse with AR and VR. He wants to make cyberspace safe even in tier 3 cities that’s why he established the first cybercafe in Ranchi. As the internet plays a crucial role in our lives, CyberPeace has taken action to combat potential cyber threats. They introduced CyberPeace TV, the world’s first multilingual TV Channel on Jio TV focusing on Education and Entertainment, a comprehensive online platform that provides the latest in cybersecurity news, expert analysis, and a community for all stakeholders in the field. CyberPeace also launched its first CyberPeace Cafe for creators and innovators and released the iSafe Multimedia resource containing Flyers, Posters, E hand book and handbook on digital safety for children developed jointly by CyberPeace, UNICEF and NCERT for the public. Mr. O. P. Singh, Former DGP, UP Police & CEO Kailash Satyarthi Foundation, started with the data of internet users in India. The Internet is used in day-to -day activities nowadays and primarily in social media. Students should have a channelized approach to cyberspace like fixed screen time, information to the right content, and usage of the internet. I really appreciate the initiates that CyberPeace is taking in this direction. The celebration continued by iSafe Panel Discussion on “Creating Safer Cyberspace for Children“. The discussion was moderated by Dr. Sangeeta Kaul, Director of DELNET, and was attended by panellists Mr. Rakesh Maheshwari from MeitY (Ministry of electronics and information Technology, Govt. of India), Dr. Indu Kumar from CIET-NCERT, Ms. Bindu Sharma from ICMEC, and Major Vineet Kumar from CyberPeace. Get real time updates directly on you device, subscribe now.
english
package net.coding.mart.activity.mpay.pay; import android.widget.TextView; import net.coding.mart.R; import net.coding.mart.activity.mpay.FinalPayOrdersActivity_; import net.coding.mart.common.BackActivity; import net.coding.mart.json.mpay.Order; import net.coding.mart.json.reward.MulStageOrder; import net.coding.mart.json.reward.Published; import net.coding.mart.json.reward.Stage; import org.androidannotations.annotations.AfterViews; import org.androidannotations.annotations.Click; import org.androidannotations.annotations.EActivity; import org.androidannotations.annotations.Extra; import org.androidannotations.annotations.OnActivityResult; import org.androidannotations.annotations.ViewById; import java.util.ArrayList; @EActivity(R.layout.activity_pay_stage) public class PayStageActivity extends BackActivity { private static final int RESULT_PAY = 1; @Extra Stage stage; @Extra String present = "10"; @Extra Published published; @Extra Order order; @Extra MulStageOrder mulStageOrder; @Extra boolean isAllPay = true; @ViewById TextView title, payDetail, payMoney; @AfterViews void initPayStageActivity() { if (mulStageOrder != null) { String allPayString = isAllPay ? "全部" : "剩余"; String titleString = String.format("项目[%s]的%s阶段款项", published.id, allPayString); title.setText(titleString); String payDetailString = String.format("包含 %s 元阶段款 + %s%% 平台服务费", mulStageOrder.stageAmount, present); payDetail.setText(payDetailString); String payMoneyString = String.format("%s 元", mulStageOrder.orderAmount); payMoney.setText(payMoneyString); } else { String titleString = String.format("项目[%s]的阶段[%s]的款项", published.id, stage.stageNo); title.setText(titleString); String payDetailString = String.format("包含 %s 元阶段款 + %s%% 平台服务费", stage.formatPrice, present); payDetail.setText(payDetailString); String payMoneyString = String.format("%s 元", order.totalFee); payMoney.setText(payMoneyString); } } @Click void sendButton() { // if (mulStageOrder != null) { // PayOrderActivity_.intent(this) // .mulStageOrder(mulStageOrder) // .order(order) // .publishJob(published) // .startForResult(RESULT_PAY); // } else { // PayOrderActivity_.intent(this) // .publishJob(published) // .order(order) // .startForResult(RESULT_PAY); // } ArrayList<String> ids = new ArrayList<>(); if (mulStageOrder != null) { for (Order item : mulStageOrder.order) { ids.add(item.orderId); } } else { ids.add(order.orderId); } FinalPayOrdersActivity_.intent(this) .orderIds(ids) .startForResult(RESULT_PAY); } @OnActivityResult(RESULT_PAY) void onResultPay(int result) { if (result == RESULT_OK) { setResult(RESULT_OK); finish(); } } }
java
<reponame>m2jobe/c_x import logging import sys from django.conf import settings def exception(): """ Log an exception during execution. This method should be used whenever an user wants to log a generic exception that is not properly managed. :param exception: :return: """ logger = logging.getLogger(settings.LOGGER_EXCEPTION) logger.exception(msg=sys.exc_info()) def error(message, details={}, status_code=400): """ Log an error occurred during execution. This method should be used when an exception is properly managed but shouldn't occur. Args: message: message identifying the error details: dict with context details status_code: http status code associated with the error Returns: """ details['http_status_code'] = status_code logger = logging.getLogger(settings.LOGGER_ERROR) logger.exception(msg=message, extra=details) def warning(message, details={}): """ Log a warning message during execution. This method is recommended for cases when behaviour isn't the appropriate. Args: message: message identifying the error details: dict with context details Returns: """ logger = logging.getLogger(settings.LOGGER_WARNING) logger.warning(msg=message, extra=details) def info(message): """ Log a info message during execution. This method is recommended for cases when activity tracking is needed. Args: message: message identifying the error Returns: """ logger = logging.getLogger(settings.LOGGER_INFO) logger.info(msg=message)
python
<filename>index/b/broiled-vegetable-sandwiches.json { "directions": [ "Preheat the oven's broiler. In a medium bowl, toss together the tomatoes, onion, red bell pepper, and green bell pepper.", "Place the slices of bread on a baking sheet, and place under the broiler. Broil for about 2 minutes, just until lightly toasted. Remove from the oven, and turn the bread untoasted side up. Place a handful of the vegetable mixture on top of each slice. Drizzle with a bit of olive oil, then top with a slice of cheese.", "Return the bread slices to the broiler, and cook until the cheese is melted. Serve immediately." ], "ingredients": [ "2 medium tomatoes, chopped", "1 large onion, chopped", "1 red bell pepper, chopped", "1 green bell pepper, chopped", "2 teaspoons olive oil", "6 slices white American cheese", "6 slices white bread" ], "language": "en-US", "source": "allrecipes.com", "tags": [], "title": "Broiled Vegetable Sandwiches", "url": "http://allrecipes.com/recipe/73327/broiled-vegetable-sandwiches/" }
json
Mumbai, June 27: On R. D. Burman's 77th birth anniversary on Monday, Indian film celebrities like Rishi Kapoor, Adnan Sami and Amit Trivedi paid homage to the legendary music director by lauding his evergreen and magical tunes. Rahul Dev Burman was born on June 27, 1939. He passed away at the age of 54 in 1994. Known for his knack for experimenting with sounds, Burman -- affectionately called Pancham Da -- is best known for his evergreen songs like “Tum se milke aisa laga”, “Tere bina zindagi se koi shikwa”, “Yaadon ki baraat”, “Mehbooba mehbooba” and “Chura liya hai tumne jo dil ko” Son of late music composer S. D. Burman, Pancham Da gave legendary singers Lata Mangeshkar, Kishore Kumar and Asha Bhosle some of the best tunes to lend their voices to. To celebrate his 77th birth anniversary, Google honoured him with a doodle on its homepage. Celebrities across different fields also took to Twitter to pay homage to him. Here's what they tweeted: Rishi Kapoor: Happy 77th birthday! And thank you for all! Kumar Sanu: Happy Birthday Pancham Da! Farah Khan: Happy Birthday R. D. Burman. The reason I loved movies. So lucky to have choreographed his music in '1942 - A Love Story'. Adnan Sami: R. D. Burman didn't just create music. He created a 'movement' that exists today. Happy Birthday Pancham Da. Your home was my first address in India. Ayushmann Khurrana: I listen to Pancham Da's songs everyday. Don't know how differently I can celebrate his birthday. R. D. Burman. Amit Trivedi: Happy birthday to the boss. Your music, even today sounds magical. Thank you Pancham Da for the amazing work you have done. R. D. Burman. Madhur Bhandarkar: Happy 77th birthday Pancham Da. Life would be incomplete without your music. Music directors like you happen once in a lifetime. Vivek Agnihotri: Pancham Da, I don't care much about your birthday as you are always with me like no one else.
english
{ "Site Name" : "سامانه نظر سنجی آی\u200Cنو", "Home" : "خانه", "Register" : "ثبت نام", "Login" : "ورود", "Logout" : "خروج", "Name" : "نام", "Mobile" : "موبایل", "National Code" : "کد ملی", "E-Mail Address": "ایمیل", "Remember Me" : "مرا به خاطر بسئار", "Forgot Your Password?" : "رمز عبور خود را فراموش کرده اید؟", "Mobile Verification" : "تایید شماره موبایل", "The given data was invalid." : "داده ورودی نامعتبر می باشد" }
json
/* YUI 3.8.0pr1 (build 140) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('button', function (Y, NAME) { /** * A Button Widget * * @module button * @since 3.5.0 */ var CLASS_NAMES = Y.ButtonCore.CLASS_NAMES, ARIA_STATES = Y.ButtonCore.ARIA_STATES, ARIA_ROLES = Y.ButtonCore.ARIA_ROLES; /** * Creates a Button * * @class Button * @extends Widget * @param config {Object} Configuration object * @constructor */ function Button(config) { Button.superclass.constructor.apply(this, arguments); } /* Button extends Widget */ Y.extend(Button, Y.Widget, { BOUNDING_TEMPLATE: Y.ButtonCore.prototype.TEMPLATE, CONTENT_TEMPLATE: null, /** * @method initializer * @description Internal init() handler. * @param config {Object} Config object. * @private */ initializer: function(config) { this._host = this.get('boundingBox'); }, /** * bindUI implementation * * @description Hooks up events for the widget * @method bindUI */ bindUI: function() { var button = this; button.after('labelChange', button._afterLabelChange); button.after('disabledChange', button._afterDisabledChange); }, /** * @method syncUI * @description Updates button attributes */ syncUI: function() { var button = this; button._uiSetLabel(button.get('label')); button._uiSetDisabled(button.get('disabled')); }, /** * @method _afterLabelChange * @private */ _afterLabelChange: function(e) { this._uiSetLabel(e.newVal); }, /** * @method _afterDisabledChange * @private */ _afterDisabledChange: function(e) { this._uiSetDisabled(e.newVal); } }, { // Y.Button static properties /** * The identity of the widget. * * @property NAME * @type String * @default 'button' * @readOnly * @protected * @static */ NAME: 'button', /** * Static property used to define the default attribute configuration of * the Widget. * * @property ATTRS * @type {Object} * @protected * @static */ ATTRS: { label: { value: Y.ButtonCore.ATTRS.label.value }, disabled: { value: false } }, /** * @property HTML_PARSER * @type {Object} * @protected * @static */ HTML_PARSER: { label: function(node) { this._host = node; // TODO: remove return this._getLabel(); }, disabled: function(node) { return node.getDOMNode().disabled; } }, /** * List of class names used in the ButtonGroup's DOM * * @property CLASS_NAMES * @type Object * @static */ CLASS_NAMES: CLASS_NAMES }); Y.mix(Button.prototype, Y.ButtonCore.prototype); /** * Creates a ToggleButton * * @class ToggleButton * @extends Button * @param config {Object} Configuration object * @constructor */ function ToggleButton(config) { Button.superclass.constructor.apply(this, arguments); } // TODO: move to ButtonCore subclass to enable toggle plugin, widget, etc. /* ToggleButton extends Button */ Y.extend(ToggleButton, Button, { trigger: 'click', selectedAttrName: '', initializer: function (config) { var button = this, type = button.get('type'), selectedAttrName = (type === "checkbox" ? 'checked' : 'pressed'), selectedState = config[selectedAttrName] || false; // Create the checked/pressed attribute button.addAttr(selectedAttrName, { value: selectedState }); button.selectedAttrName = selectedAttrName; }, destructor: function () { delete this.selectedAttrName; }, /** * @method bindUI * @description Hooks up events for the widget */ bindUI: function() { var button = this, cb = button.get('contentBox'); ToggleButton.superclass.bindUI.call(button); cb.on(button.trigger, button.toggle, button); button.after(button.selectedAttrName + 'Change', button._afterSelectedChange); }, /** * @method syncUI * @description Syncs the UI for the widget */ syncUI: function() { var button = this, cb = button.get('contentBox'), type = button.get('type'), ROLES = ToggleButton.ARIA_ROLES, role = (type === 'checkbox' ? ROLES.CHECKBOX : ROLES.TOGGLE), selectedAttrName = button.selectedAttrName; ToggleButton.superclass.syncUI.call(button); cb.set('role', role); button._uiSetSelected(button.get(selectedAttrName)); }, _afterSelectedChange: function(e){ this._uiSetSelected(e.newVal); }, /** * @method _uiSetSelected * @private */ _uiSetSelected: function(value) { var button = this, cb = button.get('contentBox'), STATES = ToggleButton.ARIA_STATES, type = button.get('type'), ariaState = (type === 'checkbox' ? STATES.CHECKED : STATES.PRESSED); cb.toggleClass(Button.CLASS_NAMES.SELECTED, value); cb.set(ariaState, value); }, /** * @method toggle * @description Toggles the selected/pressed/checked state of a ToggleButton * @public */ toggle: function() { var button = this; button._set(button.selectedAttrName, !button.get(button.selectedAttrName)); } }, { /** * The identity of the widget. * * @property NAME * @type {String} * @default 'buttongroup' * @readOnly * @protected * @static */ NAME: 'toggleButton', /** * Static property used to define the default attribute configuration of * the Widget. * * @property ATTRS * @type {Object} * @protected * @static */ ATTRS: { type: { value: 'toggle', writeOnce: 'initOnly' } }, /** * @property HTML_PARSER * @type {Object} * @protected * @static */ HTML_PARSER: { checked: function(node) { return node.hasClass(CLASS_NAMES.SELECTED); }, pressed: function(node) { return node.hasClass(CLASS_NAMES.SELECTED); } }, /** * @property ARIA_STATES * @type {Object} * @protected * @static */ ARIA_STATES: ARIA_STATES, /** * @property ARIA_ROLES * @type {Object} * @protected * @static */ ARIA_ROLES: ARIA_ROLES, /** * Array of static constants used to identify the classnames applied to DOM nodes * * @property CLASS_NAMES * @type Object * @static */ CLASS_NAMES: CLASS_NAMES }); // Export Y.Button = Button; Y.ToggleButton = ToggleButton; }, '3.8.0pr1', {"requires": ["button-core", "cssbutton", "widget"]});
javascript
<reponame>theBowja/genshin-db { "name": "<NAME>", "description": "Matériau d'amélioration d'aptitude.\nL'or est le symbole du Pays de la Roche.\nAbondant sous ses terres, il est le nerf de la guerre de Liyue qui tient debout grâce à lui.", "sortorder": 981, "rarity": "2", "category": "AVATAR_MATERIAL", "materialtype": "Matériau d'amélioration d'aptitude", "dropdomain": "Donjon du mystère : Cercle brûlant", "daysofweek": [ "Mercredi", "Samedi", "Dimanche" ], "source": [] }
json
<gh_stars>0 header, nav, article, section, footer, address {display:block;} header{ height:50px; overflow:hidden; background:#e1e1e1; background:-webkit-gradient(linear, left top, left bottom, from(#d1d1d1), to(#e1e1e1)); background:-moz-linear-gradient(top, #d1d1d1, #e1e1e1); padding:0 5px; } header h1{ line-height:32px; font-size:14px; text-shadow:#fff 0 1px 0; text-align:center; } nav{ height:28px; overflow:hidden; } nav ul{ margin:0; padding:0 5px; width:100%; height:28px; -moz-box-shadow:inset 0 2px 2px #999; -webkit-box-shadow:inset 0 2px 2px #999; box-shadow:inset 0 2px 2px #999; background:#bbb; } nav li{ list-style:none; float:left; height:24px; line-height:24px; -moz-box-shadow:0 0 3px #888; -webkit-box-shadow:0 0 3px #888; box-shadow:0 0 3px #888; -webkit-border-bottom-right-radius:3px; -webkit-border-bottom-left-radius:3px; -moz-border-radius-bottomright:3px; -moz-border-radius-bottomleft:3px; border-bottom-right-radius:3px; border-bottom-left-radius:3px; margin:0 2px; width:200px; overflow:hidden; position:relative; background:#ccc; background:-webkit-gradient(linear, left top, left bottom, from(#ccc), to(#aaa)); background:-moz-linear-gradient(top, #ccc, #aaa); } nav li a, nav li a:visited, nav li a:hover{ list-style:none; display:block; position:absolute; top:0; left:-2px; height:24px; line-height:24px; width:204px; text-align:center; color:#333; font-size:11px; text-shadow:#e8e8e8 0 1px 0; -moz-box-shadow:inset 0 1px 1px #888; -webkit-box-shadow:inset 0 1px 1px #888; box-shadow:inset 0 1px 1px #888; } nav li.selected{ background:#e1e1e1; background:-webkit-gradient(linear, left top, left bottom, from(#e1e1e1), to(#d1d1d1)); background:-moz-linear-gradient(top, #e1e1e1, #d1d1d1); } nav li.selected a{ -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; } nav li a:focus{outline:none;} /* style your sections here */ section{ padding:20px; }
css
<reponame>jordanmkimball/TextBasedAdventureHorrorGame public class Table extends ItemHolder { private Letter letter; private Buttons buttons; //CONSTRUCTORS public Table(String name, Player playerName, Letter letter, Buttons buttons){ super(name, playerName); this.letter = letter; this.addStoredItem(letter); this.buttons = buttons; this.addStoredItem(buttons); } //METHODS public boolean attemptTake(){ return false; } public String takeMessage(boolean attemptTake){ return "The " + this.quote() + " is too big for you to carry."; } public String look(){ boolean hasButtons = this.hasButtons(); boolean hasLetter = this.hasButtons(); String generalDescription = "A plain wooden table. Looks a little worn.\n"; String tableTopDescription = getTableTopDescription(); return generalDescription + tableTopDescription; } public String examine(){ boolean hasButtons = this.hasButtons(); boolean hasLetter = this.hasButtons(); String generalFeelings = "You inspect the table. Besides looking a bit worn, it appears to just be an ordinary " + this.quote() + ".\n"; String tableTopDescription = getTableTopDescription(); return generalFeelings + tableTopDescription; } //Returns true if the letter is still on top of the table. public boolean hasLetter(){ boolean hasLetter = false; for(Item item : this.getStoredItems()) { if (item.equals(this.letter)) { hasLetter = true; } } return hasLetter; } //Returns true if the buttons are still on top of the table. public boolean hasButtons(){ boolean hasButtons = false; for(Item item : this.getStoredItems()) { if (item.equals(this.buttons)) { hasButtons = true; } } return hasButtons; } //Returns the Buttons public Buttons getButtons(){ return this.buttons; } public String getTableTopDescription(){ boolean hasButtons = this.hasButtons(); boolean hasLetter = this.hasLetter(); String tableTopDescription = ""; if(hasButtons && hasLetter){ tableTopDescription = "On top of the table is a " + this.letter.quote() + " and an assortment of " + this.buttons.quote() + "."; } else if(hasButtons){ tableTopDescription = "There is an assortment of different " + this.buttons.quote() + " on top of the " + this.quote() + "."; } else if(hasLetter){ tableTopDescription = "There is a " + this.letter.quote() + " on top of the " + this.quote() + ". It looks like someone has removed the various " + this.buttons.quote() + " that used to rest on top of the table."; } else{ tableTopDescription = "It looks like someone has removed the various " + this.buttons.quote() + " that used to rest on top of the table."; } return tableTopDescription; } }
java
{ "templmd5": "0f5f718e7703eaa46b1a36127cb4199f", "number": "381", "title": "Regione Veneto attiva “IncontraLavoro Emergenza Ucraina” per mettere in contatto aziende con lavoratori ucraini", "BACKCOLOR": "white", "FRONTCOLOR": "black", "filemd5": "8b0203adbc077582f6b9043bae7b670e" }
json
Click on the links and then answer on respective questions! 1. Prostitution is old a profession as the the human civilization is. In this light do you think it is ethical to deem it illegal? Explain in Indian context. 2. India has actively been involved with its close neighbours. It emerged as biggest help during the earthquake crisis in Nepal while it initiated economic blockade during constitutional crisis. Comment keeping in view this paradoxical reaction of India. Also bring out ethical dimensions involved. 4. The Indian middle class is significantly different from it’s counterparts in other regions of the world. Do you agree? What are those attributes that impart uniqueness to the middle class in India? Discuss. 5. The success story of the Indian economy has been scripted more by private enterprise than the state itself. Do you agree? Also, do you subscribe to the argument that India is all about private success and state failure? Analyse. 6. The practice of returning awards and titles in protest of the state is not new to the Indian intelligentsia. In light of this fact, how do you view the recent protest being registered by the Indian intellectuals? Critically analyse.
english
While defending his arguments in the affidavit, Sarma further said that it is not related to acquisition of land, it is only related to encroachment and eviction. Guwahati: The Assam Government has said that the relocation will be provided to the evicted families of Groukuti in Darrang district provided they are valid citizens. However, the government in an affidavit asserted that they will not be paid any compensation as they are ''encroachers''. ''An area of about 1,000 bighas (about 134 hectares) of land in the southern part of No 1 & No 3 Dhalpur village has been earmarked for relocating the evicted persons subject to verification of the status of erosion affected and landless status in their respective original places and districts, citizenship and existing rehabilitation policy of the state," the affidavit read. Quoting the rules framed under Assam Land and Revenue Regulation, 1886, Sipajhar Revenue Circle Officer Kamaljeet Sarma, representing the Assam government asserted that the occupants of the area were liable to be evicted at any time as they were encroachers. While defending his arguments in the affidavit, Sarma further said that it is not related to acquisition of land, it is only related to encroachment and eviction. ''Therefore, the question of resettlement, rehabilitation and compensation etc as per Land Acquisition Act is irrelevant," he added. The Gauhati High Court had earlier itself registered a suo moto PIL after the violent eviction drive at Sipajhar apart from Saikia's case. Both the matters were clubbed together. The bench of the Gauhati High Court heard the matter on Wednesday and gave one week's time to the Assam government for filing a detailed counter affidavit and fixed December 14 for the next hearing. The court also took cognizance of state government's assurance that for current encroachers no coercive measure is being adopted. "All the same, as and when such measures are adopted, the petitioner would be at liberty to move an application before this Court," the court added. "You cannot just evict people from their homes on suspicion of being foreigners and later make their rehabilitation contingent on proof of citizenship", PTI quoted Saikia's counsel Talha Abdul Rahman as saying. Also watch:
english
Exclusive: Daryl Harper opens up on Sachin ‘Tenducker’ LBW, MS Dhoni criticism, Bollywood and more (Part 1) Bengaluru: It has been more than two decades since that ‘infamous’ LBW against Sachin Tendulkar in Adelaide. But, Indian cricket fans still remember the umpire who adjudged the batting legend ‘shoulder before the wicket’ against Australian great Glenn McGrath. At the time, Daryl Harper became the most hated man in India. He was the umpire who raised the finger to send back captain Tendulkar for a duck at the Adelaide Oval in 1999. Even now, more than 20 years after that verdict, Harper admits that he remembers it every day of his life and calls it ‘Tenducker’. And, he feels he made the right decision. In this freewheeling two-part exclusive interview with Asianet Newsable, the 68-year-old Harper not only recalled that game but also the Test when skipper MS Dhoni criticised his decisions and that India-West Indies encounter in 2011 turned out to be his last international assignment. In the same match, Virat Kohli made his Test debut. Apart from those two matches, Harper, who is now a match referee in Australian domestic circuit, opened up on his love for India, Bollywood, standing in India-Pakistan clashes, learning Hindi, a message for Indian fans, and more. Between the ‘controversies’ in Adelaide and Jamaica 12 years apart, Harper enjoyed a fine 17-year international umpiring career, officiating 94 Tests, 174 ODIs and 10 T20Is. Also read: AV Jayaprakash backs Sachin Tendulkar on 'Umpire's Call' Daryl Harper: I recall early in my career, telling my wife that I couldn’t call myself a real umpire until I officiated in India and survived to talk about it. I later met so many wonderful people in many Indian cities that I felt comfortable enough to wander the streets surrounding the hotels where we were accommodated. I was joined by my wife and our daughter on different tours and I proudly introduced them both to Indian customs and foods. I am still in contact with Indian friends around the world and in India. I did make my Bollywood debut in the cricket movie Victory. I was cast in a familiar role…as a cricket umpire! Unfortunately it was a non-speaking role so I wasn’t able to deliver any wise words in Hindi! I debut late in the movie when the star local batsman takes on and overpowers Brett Lee bowling from The Pavilion End of the Sawai Mansingh Stadium in The Pink City (Jaipur). At this moment, I don’t have any further Bollywood appearances planned. Q: How do you look back at the ‘infamous’ LBW decision of Sachin Tendulkar in 1999 at the Adelaide Oval? Do you regret it? Harper: I look back on that ‘Tenducker’ decision every day of my life. It’s not that I sleep badly or have nightmares and replays dancing through my brain. When I walk through my garage I am confronted by a huge canvas print of Sachin and Glenn McGrath, taken momentarily after the ball made contact. You may be disappointed to know that I’m still extremely proud of that decision because I considered the action before me and applied the Law without fear or favour. That’s what umpires are trained and expected to do. Regarding the accuracy of the decision, Sachin was the Indian captain at that time and ICC officials informed me that he didn’t note that decision when he assessed my performance on the standard post-match paperwork. I recall realising that suddenly one sixth of the world’s population knew my name…and they probably didn’t speak very highly of me. In December 2018, I met Indian selector MSK Prasad during a lunch at Adelaide Oval during the Australia-India Test match. We probably hadn’t seen each other since that Test 20 years earlier at the same beautiful ground. MSK was the Indian wicketkeeper, playing in his fourth Test when he took six catches in the match. I was umpiring with Kiwi Steve Dunne, officiating in my sixth Test. Seven weeks earlier I had umpired my first Test involving India when they played New Zealand in Kanpur and MSK Prasad was behind the stumps in Uttar Pradesh. We embraced each other as we did in pre-COVID-19 days with a generous and respectful hug. MSK was the first to speak. “Sachin said he was out…Sachin said he was out,” the Indian selector exclaimed excitedly. “Well I thought he was too,” I confirmed. It was a very unusual dismissal. I’ve never seen anything similar and I’ve watched a lot of cricket over the years…but I still believe it was correct. I accept that viewers the world over were surprised and even shocked. I was also apparently rattled by the scenario. I say ‘apparently’ because years later I discovered in doing research that Glenn McGrath dismissed Sachin Tendulkar with the middle ball of a five-ball over. I didn’t err in counting very often so I can only conclude that the gravity of the moment disrupted my concentration and routines. It was a bizarre moment. I went on to umpire India in 26 Tests and 44 ODIs all over the world. I can’t recall ever discussing that specific decision with the great man, but I believed Sachin and I were always on good terms. My decision followed an appeal. That’s how cricket works. Players and umpire moved on. That’s what I consider as the true Spirit of cricket. That’s why I almost always enjoyed umpiring India and especially in India. Q: What do you have to say now about MS Dhoni’s comments about your decisions in that 2011 Test in Kingston, which turned out to be your final match? Harper: Dhoni was right. It did turn out to be my final Test, but my contract was due to expire two weeks later after the third Test in Dominica so the end was close, regardless of any comments by MS Dhoni or anyone else. I accepted that I had made two incorrect decisions during the match and some other moments could not be determined with the available technology. I didn’t have a clean sheet and that always disappointed me when it happened, but my decision-making statistics in Tests with India were second to none at the time. MS was always a tough competitor on the field and I admired him for his leadership and cricketing abilities that bordered on being super-human. Maybe he was letting off steam and hadn’t appreciated me removing Test debutant Praveen Kumar from the attack for repeatedly running down the middle of the pitch into the protected area. I recall MS suggesting I should have been more lenient to the newcomer, but Praveen had already played in 52 ODIs before his first Test so he knew the Laws. I have a very good memory and recall MS responding to me when I informed him that the bowler was banned for the rest of the innings. “We’ve had trouble with you before, Harper,” were his exact words. I laughed aloud heartily as I wandered away to square-leg which probably wasn’t a respectful response on my behalf. After the Test was won by India, MS was reported to have said to the media assembled that the players would have been back in their hotel rooms earlier if the umpires had made the correct decisions. It’s true…but they would have been back earlier if the Indian fieldsmen had taken their catches as well. Sometimes I wished I could have attended those post-match press conferences on a regular basis in order to set the record straight. Q: Was India the toughest team and the difficult country to umpire considering the amount of fan following for the sport and its stars? Harper: The obvious answer is yes. The sheer number of Indian people around the globe following the game is enormous. Indians have been great travellers throughout history and wherever I travelled I encountered fanatical Indian supporters. One day in Manhattan, New York in July 2011, on my way home from my final Test in Jamaica, while wearing plain clothes, I was stopped in the street thrice by complete strangers who recognised me and asked cricket questions. All three were Indians. All three were extremely polite and respectful. In Cape Town at the close of the fourth day of a Test with South Africa, I was asked to attend the media gathering to explain an unusual incident from earlier in the day when Sachin Tendulkar had been ineligible to bat when Wasim Jaffar was the second Indian wicket of the second innings. I obliged, expecting to find a gathering of possibly 10 journalists. When I took my seat and turned to answer the first question, I was shocked to find approximately 50 media representatives eagerly awaiting my answer. I reminded myself that India was on tour. The press contingent was a big audience to feed on every Indian tour. Q: How was your experience in India-Pakistan matches? And, that game in Karachi in 2006 when Irfan Pathan took a hat-trick in the very first over of the Test? Harper: I considered India versus Pakistan matches as the best appointments I could ever get. Two of the most highly skilled cricket teams of the era always competed so fiercely for their nations. I was rewarded with four contests between the cricketing giants, with three ODIs and one memorable Test match. India won the tosses in Brisbane, Hobart and in Karachi for the Test while Moin (Khan) called correctly for Pakistan in Sharjah. As keenly as the matches were contested, the results all fell one way…4-0…a whitewash. The first ODI at the Gabba in January 2000 was a surprise match for me. I had umpired the previous day when Pakistan defeated Australia by 45 runs. I was assisting my wife on a shopping expedition in Brisbane, along with our two teenage children when India batted first against Pakistan and totalled 195 from 48. 4 overs. Imagine my surprise when I received a brief phone call from Australian Cricket Board Umpires Manager, Tony Crafter telling me to get myself to the Gabba ASAP. Big lovable Steve Davis had strained a calf, not the bovine variety but a very large left calf muscle of his own. Very late medical advice scratched him from the second session as he was put out to pasture for a spell. Wearing my discarded and creased uniform from the previous night, I must have appeared a trifle dishevelled as I hurriedly made my way to the middle with Simon Taufel standing in only his fifth ODI. As I took a breath and realised where I was, Ajit Agarkar shuffled past me and the innings was on. In his fourth over, he trapped Ijaz Ahmed Sr. in front and repeated the dose to big Inzamam-Ul-Haq in his next over. Despite losing an over due to their slow over-rate when India batted, Pakistan held on, scoring the winning run in their two-wicket victory from their final delivery. When Irfan Pathan dismissed Salman Butt, Younis Ahmed and Mohammad Yousuf with a hat-trick in the opening over of the Test in Karachi, I was standing quietly at square-leg, waiting to start at my end. India seized the advantage. At drinks, Pakistan was 6/39 and it appeared that all was lost for them. Yuvraj Singh later batted magnificently for India, top-scoring in both innings with 45 and 122. A young wicketkeeper with a distinctive mullet haircut was playing in his sixth Test after debuting in Chennai against Sri Lanka only eight weeks earlier. MS Dhoni had arrived and at that time of his career, was still particularly quiet when it came to conversations with the umpires. He later changed and made up for lost time. Pakistan built a substantial lead in their second innings, bolstered by Faisal Iqbal’s maiden and only Test century (139) from his 26 Test match appearances. The first seven batsmen all passed the fifty run milestone before a declaration. But a target of 607 runs was always out of the question and India succumbed to be all out for 265 from 58. 4 overs on the fourth afternoon. My fourth India versus Pakistan confrontation had again been won by Pakistan, this time by 341 runs. They seemed to be a hoodoo team for India, so Indians should have been delighted that I wasn’t appointed to any more! Q: Do you miss India and its culture? What are your favourite Indian food/movie stars/places? Harper: Early in my umpiring career I told my wife that I wouldn’t consider myself a successful umpire unless I officiated in India and survived. Looking back now, I believe I achieved that goal. It wasn’t all plain sailing but I loved every visit…Tests, ODIs, Champions Trophy, IPL and even Bollywood. Some of my colleagues thrived on Indian foods but I have a very sensitive disposition. Butter chicken was my dish of choice, but go easy on the butter was my request. On match days, I thrived on plain rice and ice cream…in different bowls of course. I was always a keen fan of the Big B…Amitabh Bachchan who recently contracted the virus and of course Shah Rukh Khan who I met after a Kolkata Knight Riders (KKR) match. Kareena Kapoor debuted in Refugee in 2000, soon after my first visit to India so I have followed her career with great interest. But to be honest, my very favourite Bollywood star is Gulshan Grover who I met in Mumbai at Bandra West on the Premiere Night of Victory, a movie that featured us both. Well…it featured Gulshan Grover but you need to search the last few minutes very carefully to find my Bollywood cameo. I had a non-speaking role…as a cricket umpire of all things. Gulshan’s popularity with me came about through his nickname 'Bad Man'. As a cricket umpire I felt that I was often depicted as a bad man so the connection appealed to me immediately. With over four hundred movies to his credit, Gulshan Grover is a super star in his field. Nominating favourite Indian places is challenging because every city and state has iconic locations. My wife and I enjoyed roaming around Colaba, enjoying some brilliant local restaurants and visiting The Gateway to India. We were fascinated by the Taj Mahal, a monument that has no equal in our travels. Jaipur, my Bollywood debut movie setting and Rajasthan have colourful traditions, with our daughter enjoying her visit to the Pushkar Camel Fair. Further south, highlights for us included the city of Bengaluru and the Golkonda Fort in Hyderabad. The fort was built about 500 years ago and in Australia, our oldest man-made building is just over 200 years old. The city of Vellore also has a special place in our memories as I became a blood donor for the first time in my life at the Christian Medical College Hospital where we have some wonderful friends who once lived in Adelaide. Q: What are the most famous Hindi lines who always remember? And, was there any Hindi guru for you or picked it up from Indian players? During a rain delay in a televised match, one of my favourite commentators called me to speak with him across the fence. Arun Lal, with live microphone in hand, asked me how long I thought it would be before we resumed play. Perfect opportunity, I thought. “Dobara mat poochna! ” I screeched at him, as he jumped backwards in shock. I didn’t have any particular mentors to learn Hindi but I did listen and repeat words and phrases like a parrot. I also made written notes so I could communicate with anyone in a simple way. I memorised the numbers from one to six and I very quickly discovered the two most commonly used words in the Hindi language…”Shabash, shabash! ” You can’t say it once: it only comes in pairs. Just listen to the stump microphone on any Indian match if you don’t believe me. Q: What do you want to tell the Indian fans? Harper: Trust me. That delivery in 1999 at Adelaide Oval to Sachin was on target to strike the top five centimetres of the middle and off stumps…I’m reasonably sure.
english
<reponame>Kelin2025/vue-awesome<gh_stars>0 import Icon from '../components/Icon.vue' Icon.register({"gitter":{"width":384,"height":512,"paths":[{"d":"M66.4 322.5H16V0h50.4v322.5zM166.9 76.1h-50.4V512h50.4V76.1zm100.6 0h-50.4V512h50.4V76.1zM368 76h-50.4v247H368V76z"}]}})
javascript
Hello people. For the last 3/4 days I am receiving 2/3 mails from a person not known to me. The mail directly goes to the junk folder, has an attachment with an extension .HQX and shows 3 gray thumbnails named like photo,photo2,photo3. I guess its embedded with some kind of malicious item, so never opened or clicked over them, but they keep coming. Attaching the screenshot below. Explain me what are the risks involved and what are the possibility of it being a virus attack attempt.
english
27th June; 1978The A. P. Municipalieties (Third Amendment) Bill, 1978. "The Andhra Pradesh Municipalities (Third Amendment) Bill, 1978 be taken into consideration.' Mr. Députy Speaker Motion moved. శ్రీ టి.పి.వి.ఎస్. వీరప్ప రాజు : ఈ సవరణ బిల్లులో 18 సంవత్సరాలు వయో పరిమితి పెట్టి ఆ వయస్సుకు పై బడిన వారికి ఓటింగు హక్కు ఇచ్చినందుకు అభినందిస్తూ దానితో నేను ఏకీభవిస్తున్నాను, వార్డులో ఓటర్స్ మిగిలివుంటే వారినందరనూ ఒక గ్రూపుగా చేయటాన్ని నేను వ్యతిరేకిస్తున్నాను. వెనుక బడిన వర్గాలకు మునిసిపాలిటీలలో ప్రాతినిధ్యం ఇస్తామని ముఖ్యమంత్రి గారు ప్రకటించినట్లు పతి' ల్లో చూశాను. వారికి ఎంతవరకూ ప్రాతినిధ్యం ఇచ్చారో వివరించవలసిందిగా కోరుతున్నాను. (సమాధానం లేదు.) Mr. Deputy Speaker : "The Andhra Pradesh Municipalieies (Third Amendment) Bill, 1978 be taken into consideration.” The question is: The Motion was adopted and the Bill was considered. Mr. Deputy Speaker :The question is : ‘That Clauses 2 to 7 do stand part of the Bill.” The Motion was adopted and-clauses 2 to 7 were added to the Bill. Sri Vadde Nageswara Rao:- Sir, I beg to move : “That in Sub-elause (1) of the Andhra Pradesh Municipalities (Third Amendment) Act, 1978, substitute "Andhra Pradesh Municipalities (Second Amendment) Act, 1978". Mr. Deputy Speaker : -Amendment moved. The question is : **That in subtolause (1) of the Andhra Pradesh Municipalities (Third Amendment) Act, 1978, substitute- "Andhra Pradesh Municipalities (Second Amendment) Act, 1978". The amendment was adopted. to the Bill. "That Clause 1; as amended, do stand part of tha Bill". The Motion was adopted and clause 1, as amended, was addad
english
<filename>package.json { "private": true, "author": "bruffridge", "license": "CC0-1.0", "scripts": { "build": "bundle exec jekyll build", "start": "bundle exec jekyll serve --host 0.0.0.0", "update-nasawds": "npm run update-assets && npm run update-sass", "update-assets": "rsync -avrC --delete node_modules/nasawds/dist/ assets/nasawds/", "update-sass": "rsync -avrC --delete node_modules/nasawds/src/stylesheets/ _sass/nasawds/" }, "dependencies": { "nasawds": "^1.0.0" } }
json
// THIS FILE IS AUTO GENERATED import { IconTree, IconType } from '../lib' export declare const GiDogBowl: IconType;
typescript
A sensible batting display by lower order batsmen Iqbal Abdullah and Shardul Thakur ensured Mumbai beat Madhya Pradesh to reach the quarterfinal stage of the Ranji trophy on Wednesday. A sensible batting display by lower order batsmen Iqbal Abdullah and Shardul Thakur ensured Mumbai beat Madhya Pradesh to reach the quarterfinal stage of the Ranji trophy on Wednesday. Abdullah (39) and Thakur (38) stitched an unbeaten 68-run stand when Mumbai were down at 215 for seven while chasing a total of 280 runs. The duo made sure there were no further hiccups before reaching 283 for seven on the third and penultimate day of the Group B Ranji encounter at the Holkar cricket stadium. Mumbai skipper Aditya Tare (45) also played a good hand in his side’s win. With 17 points in seven matches, Madhya Pradesh need an outright victory against Andhra Pradesh at home (Dec 1 - 4) for a quarterfinal berth. Much depends on other match results of Group B too. In the morning session, Mumbai began with a disastrous start as the visiting side lost Akhil Herwadkar (1) in the second over of the day. Needing a big partnership, Jay Bista (74) and Shreyas Iyer (36) scored 99 runs to put Mumbai in command. Leg-spinner Mihir Hirwani broke the partnership in the 21st over when he scalped the wicket of Iyer. Surya Kumar Yadav (18) joined Jay Bista to add 27 runs for the third wicket. But Madhya Pradesh bowlers got breakthroughs at regular interval in the second session of the day. The home team took the wickets of Bista, Siddhesh Lad (18), Aditya Tare (45) and Nikhil Patil (3). Patil’s departure saw the visitors 65 runs away from victory with only three wickets in hand. Thakur teamed up with Abdullah and held fort to see the visiting team through to their fourth win this season. For Madhya Pradesh, Jalaj Saxena scalped four-wicket, taking his match haul to 9 wickets for 155 runs.
english
Our editors will review what you’ve submitted and determine whether to revise the article. - Awards And Honors: - Copley Medal (1845) - Subjects Of Study: Theodor Schwann (born December 7, 1810, Neuss, Prussia [Germany]—died January 11, 1882, Cologne, Germany) German physiologist who founded modern histology by defining the cell as the basic unit of animal structure. He was cofounder (with Matthias Jakob Schleiden) of the cell theory. Schwann studied at the Jesuits’ College at Cologne before attending the University of Bonn and then the University of Würzburg, where he began his medical studies. In 1834, after graduating with a medical degree from the University of Berlin, Schwann assisted renowned physiologist Johannes Peter Müller. In 1836, while investigating digestive processes, he isolated a substance responsible for digestion in the stomach and named it pepsin, the first enzyme prepared from animal tissue. In 1839 Schwann took an appointment as professor of anatomy at the Catholic University of Leuven (Louvain) in Belgium. That same year his seminal work, Microscopical Researches into the Accordance in the Structure and Growth of Animals and Plants, was published. In it he extended to animals the cell theory that had been developed the year before for plants by German botanist Matthias Jacob Schleiden, who was working at the University of Jena and who Schwann knew well. At Leuven Schwann observed the formation of yeast spores and concluded that the fermentation of sugar and starch was the result of life processes. In this way, Schwann was one of the first to contribute to the germ theory of alcoholic fermentation, later elucidated by French chemist and microbiologist Louis Pasteur. In 1848 Schwann accepted a professorship at the University of Liège, where he stayed for the remainder of his career. At Liège he investigated muscular contraction and nerve structure, discovering the striated muscle in the upper esophagus and the myelin sheath covering peripheral axons, now known as Schwann cells. He coined the term metabolism for the chemical changes that take place in living tissue, identified the role played by microorganisms in putrefaction, and formulated the basic principles of embryology by observing that the egg is a single cell that eventually develops into a complete organism. His later years were marked by increasing concern with theological issues.
english
The 1961 UN Single Convention on Narcotic Drugs ordered the elimination of chewing coca leaves within 25 years of the treaty going into effect. Bolivia has again resurfaced as a proponent to eliminate this UN ban. The US moved to block Bolivia’s request, further citing that an amendment to the article shows Bolivia’s lack of cooperation in the fight against the drug trade. The 8. 9 magnitude earthquake which shook Japan on March 11th has provoked reactions from Spanish-speaking bloggers from all over the world. After reviewing news of various disasters around the world and most recently in Japan, the question which arises is: faced with a disaster, would you abandon your home? Blogger Mario R. Duran in Palabras Libres [es] regrets a decision by the Municipal Council of El Alto, La Paz to reject funding from the World Bank to build a bike path (“ciclovía” in Spanish) in that area of the city. In I'm crazy for you, Latin America! , Vitor Taveira previews a series of drawings of current Latin American political figures by cartoonist Luke Fontana. The set begins with drawings of Subcomandante Marcos from Mexico, Venezuelan President Hugo Chávez, and Bolivian President Evo Morales. Blogger Pablo Andrés Rivero [es] lists aid related information netizens can spread on social networks to help the victims of the massive mudslide that destroyed hundreds of homes in La Paz.
english
<filename>src/popup/index.html <html> <head> <title>Facebook Video Speed Control</title> <style type="text/css"> body { width: 200px; } form, h5 { text-align: center; } </style> </head> <body> <div> <form class="playback"> <h4>Facebook Video Playback Speed</h4> <select name="speed"> <option value="0.25">Slow (0.25x)</option> <option value="0.5">Slow (0.5x)</option> <option value="0.75">Slow (0.75x)</option> <option value="1.0">Normal (1.0x)</option> <option value="1.25">Fast (1.25x)</option> <option value="1.5">Fast (1.5x)</option> <option value="1.75">Fast (1.75x)</option> <option value="2.0">Fast (2.0x)</option> <option value="2.25">Faster (2.25x)</option> <option value="2.5">Faster (2.5x)</option> <option value="2.75">Faster (2.75x)</option> <option value="3.0">Faster (3.0x)</option> <option value="3.5">Faster (3.5x)</option> <option value="4.0">Faster (4.0x)</option> <option value="4.5">Faster (4.5x)</option> <option value="5.0">Faster (5.0x)</option> </select> </form> <h5> <a href="https://github.com/RemLampa/facebook-video-speed-control" target="_blank"> Open Source </a> </h5> <h5> <a href="https://www.remlampa.com" target="_blank"> &copy; </a> </h5> </div> <script src="popup.js"></script> </body> </html>
html
On Tuesday evening, two of the 2020-21 NBA season Eastern Conference heavyweights - the Milwaukee Bucks and Miami Heat - will face off in the first game of a double-header. This will be the first time the duo will lock horns since the Heat took down Milwaukee in five games in the playoff semi-finals last season. It is unclear yet if the Miami Heat will be without superstar Jimmy Butler after the small forward sat out the second half of their Christmas Day win over the New Orleans Pelicans. Therefore, the majority of the attention will be on Giannis Antetokounmpo and if he can help the Bucks bounce back after an embarrassing 20-point loss to the New York Knicks. Date & Time: Tuesday, December 29th, 2020 - 7:30 PM ET (Wednesday, December 30th, 2020 - 6:00 AM IST) Venue: American Airlines Arena, Miami, FL. The Milwaukee Bucks have started the 2020-21 NBA season on an indifferent note. Despite bringing in additional scorers in the off-season, they have lost their opening two games on the road, doing so against the Boston Celtics and New York Knicks respectively. Sandwiched between these two games was a blowout victory over the Golden State Warriors on Christmas Day. Down in Miami, the Heat were also able to succeed in their festive fixture with a comfortable win over the New Orleans. However, their win was marred by their leader Jimmy Butler's ankle stiffness. Miami were able to get the better of Milwaukee last year and will hope that their defensive solidity will be enough to thwart the Bucks' firepower. After smothering a weak Golden State Warriors side on Christmas Day, the Milwaukee Bucks were dealt a timely reminder that they won't have it all their own way in the East this season. The franchise had an extremely positive off-season this year but were unable to handle the New York Knicks' shooting efficiency on Sunday night. The Milwaukee Bucks shot just 18% from beyond the arc compared with the Knicks' 59%. On all three shooting gauges (field goal, 3-PT and FT), the Knicks were better than their opponents. If the Milwaukee Bucks harbor any hope of overcoming the Miami Heat's solid defensive unit, they will need to reverse these statistics. If there is one player the Milwaukee Bucks can rely on, it is their two-time MVP Giannis Antetokounmpo. Thiis season, the power forward, who has averaged 25 points and 13 rebounds, will hope to join a historic group of players with a three peat of MVP trophies. Antetokounmpo kept the Milwaukee Bucks faithful waiting during the off-season before signing a massive max contract extension that will keep him at the franchise for another five years. The Greek superstar missed his chance to succeed in the playoffs last year after he was forced off with an injury sustained against the Heat in Game 4. After being 3-0 down, the series was already gone, and the Bucks made a disappointing exit. If the Milwaukee Bucks are to improve their fortunes this time around, Giannis Antetokounmpo will have to be at the center of everything they conjure. G Jrue Holiday, G Donte DiVincenzo, F Giannis Antetokounmpo, F Khris Middleton, C Brook Lopez. The Miami Heat have picked up from where they left off last season. Their all-for-one attitude means that their offense has several points of attack, and their defensive structure is difficult to break down. Their teamwork makes them unafraid of any opponent, and the Heat thrive on being classed as the underdogs. Duncan Robinson lit up the Miami Heat offense on Christmas Day, sinking seven threes in a record-tying feat on a festive matchup. Robinson, along with the Heat's other perimeter shooters, will be key, as they have the ability to hurt the Milwaukee Bucks. With consistent 3-point scoring hurting the Bucks in New York, the Heat could rely on this tactic to help them get past the Bucks on Tuesday night. The Miami Heat's Bam Adebayo earned his first All-Star appearance in 2020 in what was a career-year for the young power forward. His development was exponential last season, and the franchise clearly have huge faith in Adebayo, as they offered the 23-year-old a contract extension in November. With the possibility that Jimmy Butler could be out, Adebayo will have to be dominant on the floor, as he will have the likes of Antetokounmpo to contend with. Adebayo could have his hands full facing up to the Greek. However, if his performances thus far are anything to go by, coach Spoelstra could rely on another impressive display from his young star. After recording 21 points and 7. 5 rebounds in the opening two games, Adebayo will need to continue his good form if he hopes to get the better of Giannis Antetokounmpo. G Tyler Herro, G Avery Bradley, F Duncan Robinson, F Bam Adebayo, C Meyers Leonard. The Miami Heat will fancy their chances in their matchup with the Milwaukee Bucks if they have talismanic forward Jimmy Butler available. However, with the likelihood that Butler could be absent, Milwaukee are expected to be too strong for the Heat. After being run out of New York by the Knicks, the Bucks could be out for revenge. They have an elite defense that can nullify the threat the Heat possess from beyond the arc. Giannis Antetokounmp will be confident of scoring big in this game and lead his team back to winning ways. Where to watch Milwaukee Bucks vs Miami Heat? In the USA, the game will be live on the Fox Sports and TNT networks. International fans can stream the game live on the NBA League Pass. 5 Times Steph Curry Was HUMILIATED On And Off The Court!
english
<filename>util/createTables.js const { Pool } = require("pg"); const pool = new Pool({ user: "user", host: "postgres", database: "db", password: "<PASSWORD>", port: 5432, }); const tables = ` CREATE TABLE IF NOT EXISTS carModel ( model text PRIMARY KEY, color text, productionYear int ); CREATE INDEX carModel_model on carModel (model); CREATE TABLE IF NOT EXISTS car ( registrationNumber text PRIMARY KEY, carModel text, owner text, FOREIGN KEY (carModel) REFERENCES carModel(model) ON DELETE CASCADE ); CREATE INDEX car_registrationNumber on car (registrationNumber); CREATE TABLE IF NOT EXISTS garage ( address text, licencePlate text PRIMARY KEY, FOREIGN KEY (licencePlate) REFERENCES car(registrationNumber) ON DELETE CASCADE ); CREATE INDEX garage_licencePlate on garage (licencePlate); CREATE INDEX garage_address on garage (address); `; const createTables = pool.query(tables, (err, res) => { console.log(err, res); // pool.end(); }); exports.createTables = createTables;
javascript
IPL 2020's match 35 saw Eoin Morgan-led Kolkata Knight Riders (KKR) take on the David Warner-led Sunrisers Hyderabad (SRH) camp in Abu Dhabi on Sunday (October 18). With an aim to return to winning ways, the two-time winners KKR emerged on top of SRH by a whisker as the contest went to the Super Over, where KKR won their first-ever tie. Winning the toss, Warner-led SRH opted to bowl first. While Shubman Gill, Nitish Rana and Rahul Tripathy gave a good start, Morgan and Dinesh Karthik's finishing skills propelled KKR to 163-5. In reply, Jonny Bairstow and Kane Williamson's 57-run opening stand kept SRH ahead but they lost wickets regularly before Warner's 47 pushed the game to the Super Over, where KKR won. "The team has been going good. Pleasure to get an opportunity and do well. We’ve obviously had a big sit with no cricket which is interesting back home. Had a couple of warm-ups and a lot of training sessions. Always getting David Warner, especially start of the Super Over was satisfying. It’s great having Morgs, we’ve both been part of this. Was good to use of his experience. Will take this win, enjoy tonight. It was a tough win on a very tough wicket", Lockie Ferguson stated after his side pulled off an impressive win courtesy his 5 wickets in the outing. Updated Points table: With this win, the KKR camp is still at the fourth spot but with ten points. Meanwhile, the SRH line-up remain in the bottom four, in the fifth position, with problems aplenty. Orange Cap list: There were no major changes post KKR's win over SRH as KL Rahul holds the top spot in the Orange Cap list. However, David Warner has jumped to the sixth spot whereas Bairstow and Gill occupy the ninth and tenth spot respectively. Purple Cap list: In the bowlers' list, Kagiso Rabada tops the chart whereas wily leg-spinner Yuzvendra Chahal is at the second spot. Meanwhile, Rashid Khan and T Natarajan are in the top ten, occupying the eighth and ninth position respectively. With this much-needed win, KKR remain in contention for the playoffs and return to winning ways after thrashing from Mumbai Indians (MI).
english
{ "aws_region": "eu-central-1", "aws_profile": "terraform", "vpc_cidr_region": "10.99.0.0/12", "init_name": "lab-03-b", "init_namespace": "doit-03-b", "ec2_backend_instance_type": "t2.micro", "ec2_backend_storage_root_type": "gp2", "ec2_backend_storage_root_allocated": 20, "ec2_backend_instance_centos_9_ami": "ami-077b25cf148d02b23" }
json
South superstar Rajinikanth’s daughter Soundarya is all set to tie the knot to businessman-actor Vishagan Vanangamudi on February 11, 2019. Meanwhile, a pre-wedding reception held at Raghavendra Kalyanamandapam in Chennai on Friday. Soundarya is seen draped in a gorgeous blue and gold silk saree. While, Vishagan, is dressed in a cream shirt and veshti. Pictures from the ceremony show the bride’ family members including father and actor Rajinikanth wearing a simple white kurta pyjama, sister Aishwarya and mother Latha wearing a lime green saree. Checkout the pictures here: The couple will tie the knot at a plush hotel in MRC Nagar, Chennai on February 11. This is Soundarya’s second marriage. She was earlier married to industrialist Ashwin Ramkumar in 2010 and they filed for divorce in 2016 and then got separated. They share a son, Ved. Read also: For the uninitiated, Vishagan is the owner of a pharmaceutical company and has also acted in films. Like Soundarya, this will be Vishagan’s second marriage as well.
english
Want to know about Chief Ministers of India? Read about 29 CM's of our country. The new ones have been added to the list. By India Today Web Desk: After the recent Assembly Elections 2018, the Indian National Congress (INC) on Saturday has announced that it has captured the power in three vital states of India---Madhya Pradesh, Rajasthan, and Chhattisgarh. With the rounds of discussions and top-level meetings, the Congress has appointed new Chief Ministers in these states after their major victory. Who is a Chief Minister in India? - The Chief Minister is vested with the 'de facto' executive powers and Governor is the official 'head of the state' Currently, the seat of CM in the state is vacant. However, now Jammu and Kashmir have Kavinder Gupta as a new deputy CM, replacing BJP's Nirmal Singh. - Manohar Lal Khattar is the current Chief Minister of Haryana and belongs to the Bharatiya Janata Party (BJP) In March 2017, he was elected as the leader of the BJP Legislatures Party of Manipur and was sworn in as Chief Minister of Manipur on March 15, 2017. - He is the founding chief of the Biju Janata Dal (BJD) Naveen Patnaik was honored by the United Nations (UN) for evacuating nearly a million people ahead of the tropical storm Cyclone Phailin that hit coastal Odisha in October 2013. Chamling was continuously engaged in political activities since 1973 and was actively involved in people's revolution in the same year. - His party is known as 'All India Anna Dravida Munnetra Kazhagam' 1. Arvind Kejriwal- Delhi (NCT) After the Constitution (69th Amendment) Act, 1991 came into force, followed by the Government of National Capital Territory of Delhi Act, 1991, the Union Territory of Delhi officially became the National Capital Territory of Delhi. The Act gave Delhi its own legislative assembly and directed that the administrator thereof appointed shall be designated as the Lieutenant Governor (LG). At present, Delhi is governed by multiple authorities including the CM. 2. V Narayanasamy- Puducherry (UT) Interested in General Knowledge and Current Affairs? Click here to know what is happening around the world with our G. K. and Current Affairs section.
english
Few benefits of using organic compost instead of fertilizers laden with chemicals - 1) It improves soil structure and helps it holds just the right amount of moisture for the plants to grow. 2) It helps control weed growth and ensures all the nutrients of the soil reach the plant. 3) Organic compost contains the right amount of nitrates to improve soil fertility. Here is a step by step procedure to make your very own garden compost at home - 1) Choose A Suitable Place- This may be the trickiest part of the procedure. Choosing a good location to make your compost is essential. The ideal location needs to be away from your main house, if it gets too smelly. Also, the place shouldn't be too sunny or shady with easy access to water and air. You can either dig a pit for the purpose or use a bin. 2) Start Adding Your Materials- All vegetable scraps can go into the composting pit. Egg shells can be added as well. Waste from your garden such as leaves or grass clippings can make for good composting material. Interestingly, newspapers too can be added. Manure is essential in the mix but make sure it is only from grass-fed animals as the waste of carnivorous animals contains harmful microbes. Wood chips also make for a great addition. It is important to have brown and green matter in equal proportions along with sufficient water to start the breeding of good bacteria. 3) Keep A Close Watch- Now that you have started the process, it is important to maintain it. The compost has to be turned around every week to aerate the mixture and give room for the growing bacteria. Keep adding water as well. Just make sure that the mixture is not too soaking wet or dry. In the next 2-3 months, you may have your compost ready when it is semi-dry and has a pleasant earthy smell to it. You can mix the nutrient-rich compost with the soil and give your plants the perfect boost of nutrients. This loan is a support system for budding women entrepreneurs looking to start new ventures in the fields of the retail sector, loan against property, MICRO loans, and SME loans. The maximum loan amount under this loan goes up to INR 20 crores in case of manufacturing industries and also a concession is available to the extent of 0. 25% on the interest rate and interest rates usually range from 10. 15% and higher. Additionally, under the Credit Guarantee Fund Trust for Micro and Small Enterprises (CGTMSE), there is no requirement of collateral security for a loan of up to INR 1 crore. During 1970 Asian Games, Bangkok, Kamaljeet Sandhu created history by becoming the first Indian woman to win a gold medal when she topped the field in the 400m. Prior to that no Indian woman had achieved such a high podium in the previous four editions of the continental competition. She was the first Indian man athlete to win gold medal at any Asian games. She hails from Punjab state in India. She received the Padma Shri Award in 1971.
english
Rajinikanth will be playing dual roles in the movie - King & Prince. The King was an efficient ruler and people used to live happily under his rule. Few of his ministers conspire to dethrone the King and implement their plan successful. The King ends his ties with the Kingdom and moves to a distant place along with his newly born son (Young Rajini). From then, King starts training his son in all sorts of techniques to rule a Kingdom efficiently. The Prince forms an army with his close confidents and revolts against the ministers to get hold of his Kingdom. The mission gets accomplished successfully and Prince will take charge as a new ruler in the end. 'Kochadaiyaan' is being directed by Rajini's daughter Soundarya and it's the first of its kind cinema on Indian screen. The visual effects are going to be mind blowing and the film will release in seven languages (Telugu, Tamil, Hindi, English, Japanese, Russain and Chinese).
english
<reponame>ozguncagri/passgen package generators import "math/rand" // generateRandomRuneArray function generates array of runes with selected length, selected scope and random seed func generateRandomRuneArray(length int, scope string, seed int64) (randomRunes []rune) { pickingPool := GenerateKeyboardWritableRunePool(scope) // Loop trough character length for i := 0; i < length; i++ { // Add every loop's index to the seed for avoid getting same number from random's seed rand.Seed(seed + int64(i)) // Get new random number on each pass randomNumber := int64(rand.Intn(len(pickingPool) - 1)) // Append randomly picked runes to return array randomRunes = append(randomRunes, pickingPool[randomNumber]) } return }
go
package net.turnbig.jdbcx.sql.loader; import java.io.IOException; import java.io.StringWriter; import javax.annotation.PostConstruct; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; import freemarker.template.Configuration; import freemarker.template.Template; import freemarker.template.TemplateException; import net.turnbig.jdbcx.sql.loader.SqlTemplateLoaderFactory.SqlTemplateLoader; /** * * To use sql-loader, you need to initial a Freemarker configuration first. * For spring-boot style {@link net.turnbig.jdbcx.configs.Configurations.FreeMarkerConfiguration} * * For spring-xml-cfg style, you can share an exists freemarker which is used by springmvc or other. * <pre> <bean id="xmlTemplate" class="com.woo.jdbcx.sql.loader.SqlTemplateLoaderFactory.SqlTemplateLoader" > <property name="locations"> <list> <value>classpath:/templates/</value> <value>classpath:/template2/sample.xml</value> </list> </property> </bean> <bean id="freemarkerConfigurer" class="org.springframework.ui.freemarker.FreeMarkerConfigurationFactoryBean" lazy-init="false"> <property name="preTemplateLoaders"> <list> <ref bean="xmlTemplate" /> </list> </property> <property name="defaultEncoding" value="UTF-8" /> <property name="freemarkerSettings"> <props> <prop key="template_update_delay">0</prop> </props> </property> </bean> </pre> * * @author <NAME> * @date 2016年2月2日 * @version $Revision$ */ @Component @ConfigurationProperties(prefix = "spring.jdbcx.sql") public class SqlLoader { private Logger logger = LoggerFactory.getLogger(SqlLoader.class); String[] templatePath; String templateEncoding = "UTF-8"; Long updateDelay = 5000L; String relocateTo; private Configuration configuration; @PostConstruct public void initConfiguration() throws Exception { if (templatePath == null || templatePath.length == 0) { throw new RuntimeException("no sql template path has been set"); } // build template loader SqlTemplateLoaderFactory sqlTemplateFactory = new SqlTemplateLoaderFactory(); sqlTemplateFactory.setLocations(templatePath); sqlTemplateFactory.setRelocateTo(relocateTo); sqlTemplateFactory.afterPropertiesSet(); SqlTemplateLoader sqlTemplateLoader = sqlTemplateFactory.getSqlTemplateLoader(); // build configuration Configuration configuration = new Configuration(Configuration.getVersion()); configuration.setTemplateLoader(sqlTemplateLoader); configuration.setTemplateUpdateDelayMilliseconds(updateDelay); configuration.setDefaultEncoding(templateEncoding); this.configuration = configuration; } private Template getTemplate(String name) { try { return configuration.getTemplate(name); } catch (IOException e) { logger.error("Can not get freemarker template resource", e); throw new RuntimeException(e); } } /** * * process template to string * * @param template * @param model * @return * @throws IOException * @throws TemplateException */ public String processTpl(Template template, Object model) throws IOException, TemplateException { StringWriter result = new StringWriter(); template.process(model, result); return result.toString(); } /** * * get the SQL which is a plain-text SQL * * @param sqlTplName * @return */ public String getSql(String sqlTplName) { try { Template template = getTemplate(sqlTplName); String result = processTpl(template, null); return result.trim(); } catch (IOException e) { logger.error("Can not get freemarker template resource", e); throw new RuntimeException(e); } catch (TemplateException e) { logger.error("There got a grammar error in freemarker template " + sqlTplName, e); throw new RuntimeException(e); } } /** * * get the processed SQL with model as context * * @param sqlTplName * @param model * @return */ public String getSql(String sqlTplName, Object model) { try { Template template = getTemplate(sqlTplName); return processTpl(template, model); } catch (IOException e) { logger.error("Can not get freemarker template resource", e); throw new RuntimeException(e); } catch (TemplateException e) { logger.error("There got a grammar error in freemarker template " + sqlTplName, e); throw new RuntimeException(e); } } public void setTemplateEncoding(String templateEncoding) { this.templateEncoding = templateEncoding; } public void setUpdateDelay(Long updateDelay) { this.updateDelay = updateDelay; } public void setTemplatePath(String[] templatePath) { this.templatePath = templatePath; } /** * @param relocateTo the relocateTo to set */ public void setRelocateTo(String relocateTo) { this.relocateTo = relocateTo; } }
java
import Vue from 'vue' import App from './App.vue' import router from './router' import store from '@/store/store' import { library } from '@fortawesome/fontawesome-svg-core' import { faAlignJustify, faAngleDown, faArrowLeft, faArrowRight, faBullseye, faCalendar, faCamera, faCaretDown, faCaretLeft, faCaretRight, faClone, faCogs, faExclamationTriangle, faFastBackward, faFastForward, faFile, faFilm, faFolder, faImage, faHome, faInfo, faLocationArrow, faLightbulb, faList, faMap, faMapMarker, faMapPin, faMapSigns, faSearch, faServer, faSlidersH, faTags, faTimes, faVectorSquare, faWindowMinimize } from '@fortawesome/free-solid-svg-icons' import 'blaze-css/dist/blaze.min.css' /* tslint:disable:no-var-requires */ declare function require(name: string): any const fontawesome = require('@fortawesome/vue-fontawesome') library.add(faAlignJustify, faAngleDown, faArrowLeft, faArrowRight, faBullseye, faCalendar, faCamera, faCaretDown, faCaretLeft, faCaretRight, faClone, faCogs, faExclamationTriangle, faFastBackward, faFastForward, faFile, faFilm, faFolder, faImage, faHome, faInfo, faLocationArrow, faLightbulb, faList, faMap, faMapMarker, faMapPin, faMapSigns, faSearch, faServer, faSlidersH, faTags, faTimes, faVectorSquare, faWindowMinimize) Vue.component('font-awesome-icon', fontawesome.FontAwesomeIcon) import Buefy from 'buefy' import 'buefy/dist/buefy.css' Vue.use(Buefy, { defaultIconPack: 'fas' }) Vue.config.productionTip = false new Vue({ router, store, render: (h) => h(App), }).$mount('#app')
typescript
China’s foreign ministry urged the United States to lift the sanctions on the Bank of Kunlun and stop “damaging China’s interests and Sino-US relations”. US President Barack Obama on Tuesday imposed new economic sanctions on Iran’s oil export sector and on a pair of Chinese and Iraqi banks accused of doing business with Tehran. Obama said the new measures underlined the United States’ determination to force Tehran “to meet its international obligations” in nuclear negotiations, according to a statement released by the White House. The US president accused the Bank of Kunlun and the Elaf Islamic Bank in Iraq of arranging transactions worth millions of dollars with Iranian banks already under sanctions because of alleged links to Tehran’s weapons program. In a brief statement, China’s foreign ministry expressed “strong dissatisfaction and firm opposition” to the US move and said it would officially protest the decision. “China has regular relations with Iran in the energy and trade fields, which have no connection with Iran’s nuclear plans,” the statement said. The banking dispute comes after Washington and Beijing clashed last month over proposed United Nations’ sanctions against Syria, which were vetoed by China and Russia, provoking criticism by the Obama administration.
english
<gh_stars>0 import pytest import omk_core as omk @pytest.fixture def tonal_tuples(): MS = [ (0, 0), (1, 2), (2, 4), (3, 5), (4, 7), (5, 9), (6,11) ] return [(x[0],(x[1]+m)%12) for m in [0,1,2,-1,-2] for x in MS] @pytest.fixture def tonal_vectors(tonal_tuples): return [omk.TonalVector(x) for x in tonal_tuples] @pytest.fixture def tonal_oct_tuples(tonal_tuples): return [(x[0], x[1], y) for y in [0,1,2,-1,-2] for x in tonal_tuples] @pytest.fixture def tonal_oct_vectors(tonal_oct_tuples): return [omk.TonalVector(x) for x in tonal_oct_tuples]
python
“I embraced a cloud, “I'll say I love you, Which will lead, of course, to disappointment, poison every next moment. Which will lead, of course, to disappointment, poison every next moment. “But stories are like people, Atticus. Loving them doesn’t make them perfect. You try to cherish their virtues and overlook their flaws. The flaws are still there, though. " "But you don’t get mad. Not like Pop does." "But you don’t get mad. Not like Pop does." “My heart is burning a hole in my chest and every time you speak to me, it keeps sinking, and I'm left with nothing but ashes. I wish she were talking to me, because the more she speaks to me, the more my heart flutters like a rising phoenix. ― Brushstrokes of a Gadfly, ― Brushstrokes of a Gadfly,
english
There are 1 റെനോ cars with turbo engine currently available in India for sale . The Top റെനോ cars with turbo engine are റെനോ kiger (rs. 6.50 - 11.23 ലക്ഷം). To know more about the latest prices and offers of റെനോ cars with turbo engine in your city, specifications, pictures, mileage, reviews and other details, please select your desired car model from the list below.
english
#!/Usr/bin/env python """ You are given an array of numbers Ai which contains positive as well as negative numbers . The cost of the array can be defined as C(X) C(x) = |A1 + T1| + |A2 + T2| + ... + |An + Tn|, where T is the transfer array which contains N zeros initially. You need to minimize this cost. You can transfer value from one array element to another if and only if the distance between them is at most K. Also, transfer value can't be transferred further. Say array contains 3, -1, -2 and K = 1 if we transfer 3 from 1st element to 2nd, the array becomes Original Value 3, -1, -2 Transferred value -3, 3, 0 C(x) = |3 - 3| + |-1 + 3| + ... + |-2 + 0| = 4 which is minimum in this case Note : Only positive value can be transferred It is not necessary to transfer whole value i.e partial transfer is also acceptable. This means that if you have A[i] = 5 then you can distribute the value 5 across many other array elements provided that they finally sum to a number less than equal to 5. For example 5 can be transferred in chunks of smaller values say 2 , 3 but their sum should not exceed 5. INPUT: First line contains N and K separated by space Second line denotes an array of size N OUTPU: Minimum value of C(X) CONSTRAINTS: 1 ≤ N,K ≤ 10^5 -10^9 ≤ Ai ≤ 10^9 """ import io __author__ = "<NAME>" __date__ = "March 18, 2019" __email__ = "<EMAIL>" N=os.read(0,2).decode() print(type(N))
python
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.uima.ducc.sm; import java.io.IOException; import java.io.InputStream; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.OutputStream; import java.io.StringReader; import java.io.StringWriter; import java.net.Socket; import java.net.UnknownHostException; import java.util.HashMap; import java.util.Map; import org.apache.uima.ducc.cli.AServicePing; import org.apache.uima.ducc.cli.CommandLine; import org.apache.uima.ducc.cli.IUiOption; import org.apache.uima.ducc.cli.ServiceStatistics; import org.apache.uima.ducc.common.IServiceStatistics; import org.apache.uima.ducc.common.utils.DuccProperties; /** * If an external pinger is specified for a service, this method instantiates and executes * the pinger. * * The pinger must extend org.apache.uima.ducc.sm.cli.ServicePing and implement the ping() method. * */ public class ServicePingMain implements SmConstants { /** * */ boolean debug = false; int error_max = 10; int error_count = 0; CommandLine command_line = null; enum OptionSet implements IUiOption { Class { public String pname() { return "class"; } public String argname() { return "Java classname"; } public boolean required() { return true; } public String description() { return "This is the name of the class implementing the pinger"; } public String example() { return "org.bob.PingClass"; } }, Endpoint { public String pname() { return "endpoint"; } public String argname() { return "string"; } public boolean required() { return true; } public String description() { return "Thsi is the endpoint specified in teh registration."; } public String example() { return "UIMA-AS:MyUimaAsEndpoint:/tcp//broker1:1234"; } }, Port { public String pname() { return "port"; } public String argname() { return "integer"; } public boolean required() { return true; } public String description() { return "This is the port the broker is listening on."; } public String example() { return "12345"; } public String label() { return name(); } }, Arguments { public String pname() { return "arguments"; } public String argname() { return "string"; } public String description() { return "Argument string from pinger registration, if any."; } }, Initprops { public String pname() { return "initprops"; } public String argname() { return "string"; } public String description() { return "Initialization properties, if any."; } }, ; public boolean multiargs() { return false; } // the option can have >1 arg public boolean required() { return false; } // this option is required public String deflt() { return null; } // default, or "" public String label() { return null; } // Parameter name for label in web form public String sname() { return null; } // short name of option public boolean optargs() { return false; } // is the argument optional? public boolean noargs() { return false; } public String example() { return null; } public String makeDesc() { if ( example() == null ) return description(); return description() + "\nexample: " + example(); } }; IUiOption[] options = { OptionSet.Class, OptionSet.Endpoint, OptionSet.Port, OptionSet.Arguments, OptionSet.Initprops, }; public ServicePingMain() { } public void usage() { System.out.println(command_line.formatHelp(this.getClass().getName())); System.exit(1); } void appendStackTrace(StringBuffer s, Throwable t) { s.append("\nAt:\n"); StackTraceElement[] stacktrace = t.getStackTrace(); for ( StackTraceElement ste : stacktrace ) { s.append("\t"); s.append(ste.toString()); s.append("\n"); } } public void print(Object ... args) { StringBuffer s = new StringBuffer(); for ( Object a : args ) { if ( a == null ) a = "<null>"; // avoid null pointers s.append(" "); if ( a instanceof Throwable ) { Throwable t = (Throwable ) a; s.append(t.toString()); s.append("\n"); appendStackTrace(s, t); } else { s.append(a.toString()); } } System.err.println(s.toString()); } // // resolve the customMeta string inta a class if we can // AServicePing resolve(String cl, String args, String ep, Map<String, Object> initprops) { print("ServicePingMain.resolve:", cl, "ep", ep); AServicePing pinger = null; try { @SuppressWarnings("rawtypes") Class cls = Class.forName(cl); pinger = (AServicePing) cls.newInstance(); pinger.init(args, ep, initprops); } catch (Exception e) { //print(e); // To the logs e.printStackTrace(); } return pinger; } void handleError(AServicePing custom, Throwable t) { t.printStackTrace(); if ( ++error_count >= error_max ) { custom.stop(); System.out.println("Exceeded error count. Exiting."); System.exit(1); } System.out.println("ServicePingMain: Error count " + error_count + " < threshold of " + error_max); } // /** // * Simple argument parser for this class. It is spawned only by SM so even though we do // * validity checking, we assume the args are correct and complete, and just crash hard if not as // * it's an internal error that should not occur. // */ // void parseOptions(String[] args) // { // // First read them all in // if ( debug ) { // for ( int i = 0; i < args.length; i++ ) { // print("Args[" + i + "] = ", args[i]); // } // } // for ( int i = 0; i < args.length; ) { // if ( clioptions.containsKey(args[i]) ) { // Object o = clioptions.get(args[i]); // if ( (o != clioptions) && ( o != None ) ) { // System.out.println("Duplicate argument, not allowed: " + args[i]); // System.exit(1); // } // System.out.println("Put " + args[i] + ", " + args[i+1]); // clioptions.put(args[i], args[i+1]); // i += 2; // } else { // System.out.println("Invalid argument: " + args[i]); // System.exit(1); // } // } // // Now make sure they all exist // ArrayList<String> toRemove = new ArrayList<String>(); // for ( Object o : clioptions.keySet()) { // String k = (String) o; // Object v = clioptions.get(k); // if ( v == clioptions ) { // System.out.println("Missing argument: " + k); // System.exit(1); // } // if ( v == None ) { // optional arg, we want fetches to return null if it wasn't set // toRemove.add(k); // } // } // for ( String k : toRemove ) { // clioptions.remove(k); // } // } /** * Convert the initialization props into a map<string, object> * * It seems perhaps dumb at first, why not just use properties? * * It's because the internal pinger can use the map directly without lots of conversion and * parsing, and that's by far the most common case. To insure common code all around we * jump through this tiny hoop for external pingers. */ protected Map<String, Object> stringToProperties(String prop_string) { String[] as = prop_string.split(","); StringWriter sw = new StringWriter(); for ( String s : as ) sw.write(s + "\n"); StringReader sr = new StringReader(sw.toString()); DuccProperties props = new DuccProperties(); try { props.load(sr); } catch (IOException e) { // nastery internal error if this occurs e.printStackTrace(); System.exit(1); } Map<String, Object> ret = new HashMap<String, Object>(); int v_int; long v_long; boolean v_bool; String k; k = "failure-window"; v_int = props.getIntProperty(k); ret.put(k, v_int); k = "failure-max"; v_int = props.getIntProperty(k); ret.put(k, v_int); k = "monitor-rate"; v_int = props.getIntProperty(k); ret.put(k, v_int); k = "service-id"; v_long = props.getLongProperty(k); ret.put(k, v_long); k = "do-log"; v_bool = props.getBooleanProperty(k, false); ret.put(k, v_bool); k = "autostart-enabled"; v_bool = props.getBooleanProperty(k, false); ret.put(k, v_bool); k = "last-use"; v_long = props.getLongProperty(k, 0L); ret.put(k, v_long); for ( String rk : ret.keySet() ) { print("init:", rk, "=", ret.get(rk)); } return ret; } // // 1. Instantiate the pinger if possible. // 2. Read ducc.proeprties to find the ping interval // 3. Start pinging and wriging results to stdout // // The ServiceManager must start this process as the user. It monitors stdout for success // or failute of the ping and reacts accordingly. // protected int start(String[] args) { command_line = new CommandLine(args, options); command_line.parse(); IServiceStatistics default_statistics = new ServiceStatistics(false, false, "<N/A>"); String arguments = command_line.get (OptionSet.Arguments); String pingClass = command_line.get (OptionSet.Class); String endpoint = command_line.get (OptionSet.Endpoint); int port = command_line.getInt(OptionSet.Port); String initters = command_line.get (OptionSet.Initprops); Map<String, Object> initprops = stringToProperties(initters); Socket sock = null; try { try { sock = new Socket("localhost", port); } catch (NumberFormatException e2) { e2.printStackTrace(); return 1; } catch (UnknownHostException e2) { e2.printStackTrace(); return 1; } catch (IOException e2) { e2.printStackTrace(); return 1; } print ("ServicePingMain listens on port", sock.getLocalPort()); InputStream sock_in = null; OutputStream sock_out = null; try { sock_in = sock.getInputStream(); sock_out = sock.getOutputStream(); } catch (IOException e2) { e2.printStackTrace(); return 1; } ObjectOutputStream oos; try { oos = new ObjectOutputStream(sock_out); oos.flush(); } catch (IOException e1) { e1.printStackTrace(); return 1; } ObjectInputStream ois; try { ois = new ObjectInputStream(sock_in); } catch (IOException e1) { e1.printStackTrace(); return 1; } AServicePing custom = resolve(pingClass, arguments, endpoint, initprops); if ( custom == null ) { print("bad_pinger:", pingClass, endpoint); return 1; } while ( true ) { if ( debug ) print("ServicePingMeta starts ping."); Ping ping = null; try { ping = (Ping) ois.readObject(); if ( debug ) { print("Total instances:" , ping.getSmState().get("total-instances")); print("Active instances:", ping.getSmState().get("active-instances")); print("References:" , ping.getSmState().get("references")); print("Run Failures:" , ping.getSmState().get("runfailures")); } } catch (IOException e) { handleError(custom, e); } catch ( ClassNotFoundException e) { handleError(custom, e); } boolean quit = ping.isQuit(); if ( debug ) print("Read ping: ", quit); try { if ( quit ) { if ( debug ) System.out.println("Calling custom.stop"); custom.stop(); oos.close(); ois.close(); sock.close(); if ( debug ) System.out.println("Custom.stop returns"); return 0; } else { Pong pr = new Pong(); custom.setSmState(ping.getSmState()); IServiceStatistics ss = custom.getStatistics(); if ( ss == null ) { ss = default_statistics; } pr.setStatistics (ss); pr.setAdditions (custom.getAdditions()); pr.setDeletions (custom.getDeletions()); pr.setExcessiveFailures(custom.isExcessiveFailures()); pr.setAutostart (custom.isAutostart()); pr.setLastUse (custom.getLastUse()); oos.writeObject(pr); oos.flush(); // The ObjectOutputStream will cache instances and if all you do is change a // field or two in the object, it won't be detected and the stale object will be // sent. So you have to reset() the stream, (or use a new object, or use // clone() here also if you want, but this is simplest and safest since we have // no control over what the external pinger gives us. oos.reset(); } } catch (Throwable e) { handleError(custom, e); } } } finally { try { if ( sock != null ) { sock.close(); } } catch (IOException e) { // Junk catch to keep Eclipse from whining e.printStackTrace(); } } } public static void main(String[] args) { ServicePingMain wrapper = new ServicePingMain(); int rc = wrapper.start(args); System.exit(rc); } }
java
What do you stand to gain if you Become A Canadian Citizen? Do you think Canadian citizens get more perks than Canadian permanent residents? If you are an Immigrant who wants to move to Canada, you need to know a few things. Yes, you might be wondering why you should become a Canadian citizen. In this blog post, we’ll talk about the many benefits of Canadian citizenship, such as knowing your status, having job opportunities, being able to vote, traveling without a visa, having dual citizenship, helping your children, getting free health care and education, getting tax breaks, and feeling like you belong. Let’s talk about each point and other aspect one at a time. There are many reasons to move to Canada, and everyone has their own reasons. People from all over the world come to Canada for a variety of reasons, including job prospects and the chance to start a new life there. But once you’re a permanent resident, you’d want to have all the rights and opportunities that only Canadian residents have. But what are these added things that Canadians get? Canadians get a lot of good things. Both inside and outside the country. And one of the most interesting things about them is that they can go to many big countries without a Visa. Let’s find out more about the perks of Canadian citizenship for Indians and what benefits Canadian citizens have. In contrast to permanent residents, Canadian citizens do not have to do anything to keep their Status. They can live there and enter the country whenever they want. When You Become A Canadian Citizen, You Have Lots of Jobs to choose from. Canada always picks people from their own country. When there is a job opening in Canada, permanent residents and citizens of Canada are always given the job first. And many jobs are only open to people who live in Canada. Like some government jobs that can only be filled by Canadian citizens. A Canadian can take part in Canadian politics if they want to. Some of the rights that come with being a Canadian citizen are freedom of speech, freedom of thought, the right to vote, etc. Canada’s passport is one of the 10 most important in the world. With a Canadian Passport, a person can go to nearly 185 countries without getting a visa first. Even just in the Schengen area, 27 countries don’t need visas when you arrive. This includes Belgium, Austria, Denmark, France, Germany, Italy, Greece, Spain, Switzerland, etc. Most countries don’t let you be a member of more than one. And you can have more than two in Canada. You can be a citizen of Canada and another country at the same time. It doesn’t matter if a baby is born in Canada or somewhere else. When a child is born, if either parent is a Canadian citizen, the child immediately becomes a Canadian citizen. The Canadian state healthcare system makes it possible for Canadians to get medical care for free. Canadians can get a free education until they are 18 years old. Canadian citizens can take advantage of a number of tax perks, such as the child tax benefit and the GST/HST credit. Canadian citizens have the basic right to vote in federal, provincial, and local elections. Becoming a Canadian citizen shows that you care about Canada and want to be a full part of the Canadian community. So let’s dig deeper and find out what the benefits of being a Canadian citizen are for families, students, companies, retirees, and other groups. What you need to do to become a Canadian citizen? You must meet the following requirements to become a Canadian citizen: You must be 18 years old or older. You must have lived in Canada full-time for at least 3 years. You need to know the basics about Canada’s past and government. You must know how to speak and understand English or French at a basic level. You must not have any crimes on your record. You must be able to show that you have a good sense of right and wrong. You have to swear to be loyal to Canada. The steps to becoming a Canadian citizen are as follows: You have to fill out an application to become a citizen. You must pass a test about being a citizen. You have to swear to be loyal to Canada. You will become a citizen of Canada. One of the most powerful papers in the world is a Canadian passport. It lets you visit nearly 185 countries without getting a visa. This means it will be easier for you to move than if you had a passport from a different country. If you are a permanent resident of Canada, becoming a Canadian citizen can give you a lot of perks. Among these benefits are: You will know for sure what your state is. You will be able to vote in national, regional, and local elections. You will be able to go to almost 185 countries without a ticket. Your children will be able to take over your identity. You will be able to take advantage of tax breaks that are only available to Canadian citizens. You will feel like you really fit in Canada. If you are a student in Canada, becoming a Canadian citizen can give you a lot of perks. Among these benefits are: You won’t need a work pass to work in Canada. After you finish school, you will be able to stay in Canada. Your family members will be able to come to Canada with your help. You will be able to take advantage of tax breaks that are only available to Canadian citizens. Your family members will be able to come to Canada with your help. In Canada, there won’t be any rules about how you can live together. Your children will be able to take over your identity. You will be able to use tax breaks that are only available to families in Canada. You will be able to bring foreign workers to Canada to work for your business if you support them. You will be able to perform better on the international market. You’ll be able to find and keep the best people from all over the world. You will be able to use government programs and incentives that are only open to Canadian businesses. You will be able to stay in Canada for the rest of your life. You will be able to use Canada’s system of free healthcare for everyone. You will be able to take advantage of tax breaks that are only available to Canadian seniors. You will be able to join Canada’s active group of retired people. You will be able to stay in Canada for the rest of your life. You will be able to use Canada’s healthcare system, which is easy to use. You will be able to get tax breaks that are only open to Canadian citizens with disabilities. You will be able to take part in Canada’s culture that welcomes everyone. These perks are great, don’t you think? Well, each one has its own worth. By now, you must want to know if you can become a Canadian citizen or how to get a work permit in Canada. So, once someone is a permanent resident of Canada, it is easy for them to become a citizen. Permanent residents in Canada get almost the same perks as anyone else who lives there. Permanent residents in Canada have a good life. They get free health care, free schooling for their children, and tax breaks. Over the next couple of years, Canada wants to let in a lot of people (4,31,000). Don’t miss out on the chance to be part of the Canadian society. Go through our posts on How to Relocate to Canada for FREE!!! To know more. Connect with us on social media (Instagram, Facebook, LinkedIn) and get short updates on PR visas every day.
english
3 (A)Do not drag me away with the wickedAnd with workers of iniquity,Who (B)speak peace with their neighbors,While evil is in their hearts. Legacy Standard Bible Copyright ©2021 by The Lockman Foundation. All rights reserved. Managed in partnership with Three Sixteen Publishing Inc. LSBible.org For Permission to Quote Information visit https://www.LSBible.org.
english
Saturday May 07, 2022, Artificial intelligence (AI) is now transforming the manufacturing industry. AI can extend the sheer reach of potential applications in the manufacturing process from real-time equipment maintenance to virtual design that allows for new, improved, and customized products to a smart supply chain and the creation of new business models. Artificial intelligence (AI) in the manufacturing industry is being used across a variety of different application cases. It is being used as a way to enhance defect detection through sophisticated image processing algorithms that can then automatically categorize defects across any industrial object that it sees. The term artificial intelligence is used because these machines are artificially incorporated with human-like to perform tasks as we do. This intelligence is built using complex algorithms and mathematical functions. Artificial intelligence (AI) is used in smartphones, cars, social media feeds, video games, banking, surveillance, and many other aspects of our daily lives. It’s being used to analyze sensor technologies and internet of things (IoT) technologies that are looking into the industrial manufacturing process to collect data to understand how to improve those efficiencies in terms of the production output. Artificial intelligence is also being used as a way to support simply enhancing the individual operator experiences either through augmented reality technologies that are assisting in field workers being able to perform their duties or otherwise in just supporting various health and safety aspects of their field workers. Supporting them to make sure that they’re wearing the correct personal protective gear and also supporting them throughout the entire operational process. making sure that if they fall in that the artificial intelligence can pick them up making sure that entire operations are safe. 1) Artificial intelligence (AI) is transforming the manufacturing industry by augmenting operators through the active analysis of all of the process and quality data coming off a manufacturing line. 2) Through the analysis of this data, operators can be provided with the optimal decision-making at the point that they need to. 3) This might be computer vision used for quality inspection to flag where surface defects have occurred. It might be the analysis of the process data to recommend changes in the production variables to prevent defects that might occur due to variation in the raw material, or it might be the analysis of the machine data to prevent failure of that machine at some future date through predictive maintenance. 4) In order to leverage AI, data must exist. In most cases, it has been found that there is already a large amount of valuable data at the manufacturing sites. 5) This data might be in PLC’s historians or even logbooks and we often have to work with our customers to uplift this data from typically a siloed environment into a much more holistic space. 6) This might be mapping the data processor rather than data through the process as well as inferring traceability where traceability doesn’t exist between two processes. 7) AI-based sensor technology and advanced analytics embedded into the machinery can provide fast and accurate information on possible machine problems as well. 8) Artificial intelligence (AI) is making great strides in improving efficiency in manufacturing environments, leading to better performance. Managers can also make more informed business decisions with the implementation of AI as it also provides critical information. 9) AI-equipped cameras provide levels of sensitivity to spot the items that need corrections immediately. Machine-vision software uses computer vision to spot microparticles and surface defects while enabling computers to see, process, and learn from collected data. Not only can this boost an inspection process but it can also ensure changes in the final product. 10) Artificial intelligence not only plays a role in operational levels of production but also in optimizing manufacturing supply chains, pattern recognition, or analysis of consumer behavior. This is to ensure an organization can predict shifts in the market, but plans, track metrics or even automate processes in the output, quality, or cost control of analytics. In addition, with AI algorithms able to formulate estimates on the information gathered, manufacturers can also optimize manpower, raw material availability, inventory management, and many other vital processes for the industry. According to a study report developing AI capabilities in industrial manufacturing is not only critical for economic transformation but also a mechanism toward sustainable competitive advantages. To sum up, Artificial intelligence (AI) is transforming and revolutionizing the manufacturing industry in industrial revolution 4.0 AI has played a vital role in uplifting the growth of the manufacturing industry. I have came across many companies who are providing solutions for problems in the manufacturing industry and one such company is Aeologic Technologies which is actively working in this sector. Manufacturers from all over the world are reaping plenty of benefits from artificial intelligence (AI) and optimizing the productivity of their businesses.
english
package algo4.chap2_Sort; /** * @author wenghengcong * @className: BubbleSort * @desc: * @date 2019-06-1207:37 */ /** * 冒泡排序 * 算法思想: * 1. 每一趟比较相邻的两个元素,将更大的元素一直往后移动,第一趟下来就能将最大的元素移动到最后。 * 2. 依次重复以上,直到最后 * * 性能分析: * 1. 访问数组次数,都是 N²/2 次 * 2. 交换次数 * 3. 稳定排序 * 4. 原地排序 * * * 适用场景: * * * * * * */ public class BubbleSort extends SortTemplate { public static void sort(Comparable[] a) { int N = a.length; for (int i = 0; i < N-1; i++) { for (int j = 0; j < N-i-1; j++) { if (less(a[j+1], a[j])) { exch(a, j, j+1); } } } } }
java
#include "Display.hpp" Display::Display(uint8_t address, uint8_t col, uint8_t row) { lcd = new LiquidCrystal_I2C(address, col, row); lcd->init(); lcd->backlight(); } Display::~Display() { delete lcd; } void Display::printOnLCD(char text[100]) { lcd->print(text); } void Display::printOnLCD(char text[100], int num) { lcd->print(text); lcd->print(num); } void Display::printOnLCD(char text[100], float num) { lcd->print(text); lcd->print(num); } void Display::setStr(uint8_t colomn, uint8_t row) { lcd->setCursor(colomn, row); } void Display::lcdClear() { lcd->clear(); }
cpp
Begin typing your search above and press return to search. Bhubaneswar: Odisha Chief Minister Naveen Patnaik on Sunday directed the administration to put a stop to the cutting of trees at the proposed beer-bottling plant near Balarampur in the Dhenkanal district after protests by the villagers. The Chief Minister also ordered the Revenue Divisional Commissioner (RDC) concerned to probe the incident of tree-felling. The villagers, protesting against the cutting of trees for the bottling plant, had a scuffle with the police on Saturday. Noted environmentalist Praffula Samantara, who reached the place of the incident, demanded that the state government compensate the community that has protected the forests for generations. (IANS)
english
package com.roro.springcloud; public class UserServiceApplication { }
java
After a gap of almost one year, India’s premier all-rounder Hardik Pandya is all set to stage a comeback in the upcoming series against South Africa, starting from March 13. Before that, the stylish cricketer took part in Mumbai’s local T20 Cricket League name DY Patil Cup to get into the groove. As always, he made a stunning impact on the team’s victory in the tournament as he smashed two swashbuckling centuries to clap back at his critics and let everyone know that he is as effective as he was before making an exit from the team due to injury. The Indian team is sweating it out in the nets at Dharamshala where the first ODI game against South Africa will take place. The Board of Control for Cricket in India (BCCI) shared an interesting video of Hardik Pandya on Twitter in which he can be smashing some balls over the boundary ropes just ahead of the inaugural game of the series. In the video, the “Kung Fu Pandya” can be taking a step back before dispatching the good length to a massive six. In the background, we can see people cheering for Pandya and his power-hitting. Pandya is coming into this series after a string of centuries in the DY Patil cup. He played an extraordinary knock of 105 off just 39 balls in an encounter against CAG in the ongoing 16th DY Patil Cup and followed it up with an amazing knock of 158 off just 55 balls which helped Reliance 1 post a massive total of 238 for 4 in 20 overs. Hardik last played an international game for India back in September 2019 before undergoing back surgery. This will be India’s first series after the humiliating loss they suffered in the Test series against New Zealand. Indian skipper Virat Kohli will be leading the side once against while Rohit Sharma has been given rest for the entire ODI series. Prithvi Shaw and Shubman Gill have also been included in the list while in the bowling department Bhuvneshwar Kumar makes a grand entry into the side. His bowling partner Mohammad Shami has also been rested. On the other hand, the South African side will have the services of the former skipper Faf du Plessis for the ODI series and Janneman Malan has been added to the squad after an amazing show in the series against Australia. The first match of the series will be played tomorrow in Dharamshala while the second game will be played in Lucknow on March 15. The third and final game will take place on March 18 in Kolkata. INDIA – Shikhar Dhawan, Prithvi Shaw, Virat Kohli (C), KL Rahul, Manish Pandey, Shreyas Iyer, Rishabh Pant, Hardik Pandya, Ravindra Jadeja, Bhuvneshwar Kumar, Yuzvendra Chahal, Jasprit Bumrah, Navdeep Saini, Kuldeep Yadav, and Shubman Gill. SOUTH AFRICA – Quinton de Kock (c & wk), Temba Bavuma, Rassie van der Dussen, Faf du Plessis, Kyle Verreynne, Heinrich Klaasen, David Miller, Jon-Jon Smuts, Andile Phehlukwayo, Lungi Ngidi, Lutho Sipamla, Beuran Hendricks, Anrich Nortje, George Linde, Keshav Maharaj, and Janneman Malan.
english
GTA 5 Expanded & Enhanced is just over a week away, and the community could not be more excited. More information has been released in recent weeks that has enlightened fans on what to expect. For example, it has always been known that the graphics would be significantly improved. However, there are certain new features and additions for the entire community to look forward to. This article will discuss the five ways that GTA 5 Expanded & Enhanced will be more fun to play than GTA 5. One of the most valuable features for GTA 5 Expanded & Enhanced is going to be the fact that gamers will not lose any of their progress from the past eight years. It is possible to transfer everything gamers have earned and created with their avatars from GTA 5 to the Expanded & Enhanced Edition. At one point, there was a slight concern that moving to GTA5 on the next-gen consoles would mean that players lost all of their progress, potentially hundreds of millions of GTA$ and thousands of hours. Thankfully, this is not the case, and everyone is genuinely over the moon. The best example that Rockstar has confirmed to do with the new mission updates has to do with the Short Trips missions. Usually, players would have to complete all of the contract missions at their Agency business to unlock these missions, but this is not the case in GTA Online Expanded & Enhanced. If Rockstar has already changed this aspect of GTA Online, gamers are very excited to find other ways to access and play specific missions in the game. New vehicles and customization options have always been some of the most fun features that Rockstar adds to GTA Online with its updates. The Expanded & Enhanced Edition will have a new auto workshop and some new cars. Hao's Workshop will give players a new location to amp up their favorite vehicles, as well as five new cars that are being added to the game. Combining these new features creates a whole host of recent upgrades and options at the workshop that gamers have never seen before. The career builder is a new GTA Online Expanded & Enhanced Edition feature. This is the first time that GTA Online will be available as a stand-alone game, and fans are very excited to see what this means for the future of content and DLC. With Career Builder, older players and beginners are given a chance to start fresh with a business of their choice and a bankroll of $4 million to get started in Los Santos. This is an excellent idea, especially for newcomers, and is somewhat reminiscent of the Criminal Enterprises pack that was available online. One thing that is certain to improve players' fun in the next-gen consoles is the updated graphics. Gamers can now experience GTA 5 in stunning 4K resolutions and see things that have never been seen before. New ray tracing and other improvements will provide a much more immersive experience with realistic depictions of the reflections and weather effects in the game.
english
<reponame>pauleaster/karzok_fork<filename>templates/index.html<gh_stars>0 {% extends 'base.html' %} <body> {% block body %} {% block content %} {% block welcome %} <h1 class="welcome"> Welcome to Karzok</h1> <p class="welcome-p"> A theme for your documentation. Fast and secure </p> {% endblock welcome %} <section class="menu"> {% if config.extra.menu %} {% for link in config.extra.menu %} {% set item_link = link.link | replace(from="$base_url", to=config.base_url) %} <a class="menu-a" href="{{ item_link | safe }}"> <div class="menu-div"> <h3 class="menu-index"> {{ link.text }} </h3> </div> </a> {% endfor %} </section> {% endif %} {% endblock content %} {% endblock body %} </body> </html>
html
/* istanbul ignore file */ import '../css/options.css';
javascript
package util.study.Designpattern.proxy.gupo.staticproxy; /** * 【代理模式】 * 静态代理实现类:张三 * * @version: java version 1.7+ * @Author : mzp * @Time : 2020/8/15 14:09 * @File : ZhangSan * @Software: IntelliJ IDEA 2019.2.04 */ public class ZhangSan implements IPerson { private String require = "肤白、貌美、大长腿"; @Override public void findLove() { System.out.println("儿子(张三)的要求:"+require); } }
java
{ "name": "dynamicprosit", "version": "3.1.0", "description": "Interface d'édition de Prosits", "main": "main.js", "build": { "appId": "com.electron.DynamicProsit", "productName": "DynamicProsit", "copyright": "Copyright © 2019 Leafgard", "directories": { "buildResources": "build", "output": "dist", "app": "." } }, "dependencies": { "docxtemplater": "^3.9.9", "electron-store": "^2.0.0", "jquery": "^3.3.1", "jszip": "^2.6.1", "material-design-icons": "^3.0.1", "moment": "^2.24.0", "request": "^2.88.0" }, "devDependencies": { "electron": "^7.2.4" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "start": "electron ." }, "repository": { "type": "git", "url": "git+https://github.com/Leafgard/DynamicProsit.git" }, "author": "<NAME> <<EMAIL>>", "license": "MIT", "bugs": { "url": "https://github.com/Leafgard/DynamicProsit/issues" }, "homepage": "https://github.com/Leafgard/DynamicProsit#readme" }
json
<reponame>vinzusama/CobolBebop<filename>package.json { "name": "cobolbebop", "version": "0.0.1", "description": "Basic Satanistical shoot'em up for learning purpose", "main": "index.html", "window": { "width": 320, "height": 240, "max_width": 320, "max_height": 240, "resizable": false, "fullscreen": false, "frame": false, "transparent": true }, "scripts": { "test": "nw ." }, "repository": { "type": "git", "url": "git+https://github.com/vinzusama/CobolBebop.git" }, "keywords": [ "phaser.io", "satan", "santa", "satna", "gameshell" ], "author": "<NAME>", "license": "MIT", "bugs": { "url": "https://github.com/vinzusama/CobolBebop/issues" }, "homepage": "https://github.com/vinzusama/CobolBebop#readme", "dependencies": { "nwjs": "^1.4.4", "phaser": "^3.16.1" } }
json
<reponame>Atom-me/xcEdu package com.xuecheng.manage_media.config; import org.springframework.amqp.core.*; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; /** * @author Administrator * @version 1.0 * @create 2018-07-12 9:04 **/ @Configuration public class RabbitMQConfig { public static final String EX_MEDIA_PROCESSTASK = "ex_media_processor"; //视频处理队列 @Value("${xc-service-manage-media.mq.queue-media-video-processor}") public String queue_media_video_processtask; //视频处理路由 @Value("${xc-service-manage-media.mq.routingkey-media-video}") public String routingkey_media_video; //消费者并发数量 public static final int DEFAULT_CONCURRENT = 10; /** * 交换机配置 * * @return the exchange */ @Bean(EX_MEDIA_PROCESSTASK) public Exchange EX_MEDIA_VIDEOTASK() { return ExchangeBuilder.directExchange(EX_MEDIA_PROCESSTASK).durable(true).build(); } //声明队列 @Bean("queue_media_video_processtask") public Queue QUEUE_PROCESSTASK() { Queue queue = new Queue(queue_media_video_processtask, true, false, true); return queue; } /** * 绑定队列到交换机 . * * @param queue the queue * @param exchange the exchange * @return the binding */ @Bean public Binding binding_queue_media_processtask(@Qualifier("queue_media_video_processtask") Queue queue, @Qualifier(EX_MEDIA_PROCESSTASK) Exchange exchange) { return BindingBuilder.bind(queue).to(exchange).with(routingkey_media_video).noargs(); } }
java
<filename>springboot-security/src/main/java/com/javanorth/spring/springbootsecurity/service/impl/TokenServiceImpl.java package com.javanorth.spring.springbootsecurity.service.impl; import com.javanorth.spring.springbootsecurity.entity.UserDetail; import com.javanorth.spring.springbootsecurity.service.TokenService; import com.javanorth.spring.springbootsecurity.util.LogUtil; import io.jsonwebtoken.Claims; import io.jsonwebtoken.Jwts; import io.jsonwebtoken.SignatureAlgorithm; import io.jsonwebtoken.io.Encoders; import io.jsonwebtoken.security.Keys; import org.springframework.beans.factory.annotation.Value; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.stereotype.Service; import java.io.Serializable; import java.security.Key; import java.time.Instant; import java.util.Date; import java.util.HashMap; import java.util.Map; import java.util.UUID; @Service public class TokenServiceImpl implements TokenService, Serializable { private static final String CLAIM_KEY_USERNAME = "username"; private static final long EXPIRATION_TIME = 432000000; @Value("${jwtConfig.secret}") private String SECRET_KEY; /** * 生成token * 1.设置用户角色 * 2.设置token过期时间 * 3.设置token的签发时间 * 3.设置token的加密方式 * @param userDetails * @return */ @Override public String generateToken(UserDetails userDetails) { Map<String, Object> claims = new HashMap<>(); claims.put(CLAIM_KEY_USERNAME, userDetails.getUsername()); Map<String, Object> header = new HashMap<>(); header.put("typ", "JWT"); return Jwts.builder() .setId(UUID.randomUUID().toString()) // 设置header .setHeader(header) // claim设置用户的角色 .setClaims(claims) // 设置token过期时间 .setExpiration(new Date(Instant.now().toEpochMilli() + EXPIRATION_TIME)) // 设置加密方式 .signWith(generateKey(), SignatureAlgorithm.HS256) .compact(); } /** * 解析token * @param token token字符串 */ @Override public Claims parseToken(String token) { LogUtil.info(this.getClass(), "parseToken params: {}", token); Claims claims = Jwts.parserBuilder() .setSigningKey(generateKey()) .build() .parseClaimsJws(token) .getBody(); LogUtil.info(this.getClass(),"claims: {}", claims.toString()); return claims; } @Override public String getUsernameFromToken(Claims claims) { LogUtil.info(this.getClass(), "claims params is : {}", claims.toString()); return String.valueOf(claims.get(CLAIM_KEY_USERNAME)); } /** * 生成密钥 * @return 生成的密钥 */ private Key generateKey() { String keys = Encoders.BASE64.encode(SECRET_KEY.getBytes()); return Keys.hmacShaKeyFor(keys.getBytes()); } }
java
<filename>src/mesh_functions/CompositeVectorFunction.hh /* -*- mode: c++; c-default-style: "google"; indent-tabs-mode: nil -*- */ /* ------------------------------------------------------------------------- ATS License: see $AMANZI_DIR/COPYRIGHT Author <NAME> Function applied to a mesh component, along with meta-data to store the values of this function in a ComposteVector. ------------------------------------------------------------------------- */ #ifndef AMANZI_COMPOSITE_VECTOR_FUNCTION_HH_ #define AMANZI_COMPOSITE_VECTOR_FUNCTION_HH_ #include <string> #include <utility> #include <vector> #include "Teuchos_RCP.hpp" #include "MeshFunction.hh" #include "CompositeVector.hh" namespace Amanzi { namespace Functions { class CompositeVectorFunction { public: CompositeVectorFunction(const Teuchos::RCP<const MeshFunction>& func, const std::vector<std::string>& names); virtual ~CompositeVectorFunction() = default; virtual void Compute(double time, const Teuchos::Ptr<CompositeVector>& vec); protected: typedef std::pair<std::string, Teuchos::RCP<MeshFunction::Spec> > CompositeVectorSpec; typedef std::vector<Teuchos::RCP<CompositeVectorSpec> > CompositeVectorSpecList; Teuchos::RCP<const MeshFunction> func_; CompositeVectorSpecList cv_spec_list_; }; } // namespace } // namespace #endif
cpp
Apple announced the addition of a DVD burner to its Titanium PowerBook portable computer on Wednesday. The burning question: Will consumers who burn billions of audio CDs a year use the new portables to bootleg Hollywood movies? The answer: Probably not. Even the Motion Picture Association of America doesn't seem too worried about it. "The reason we're not particularly jumping up and down is we're spending a great deal of time in private forums with the people offering these products," said Scott Dinsdale, the MPAA's executive vice president of digital strategy. Dinsdale acknowledged that MPAA officials had been in talks with Apple prior to its release of its SuperDrive, which burns DVDs as well as CDs. "We talk to everybody," he said. New notebooks from Sony and Toshiba also sport DVD-R drives. One result of those talks: The DVD drives in the new laptops are different than those used to stamp out mass-market movie discs, and will not burn bit-for-bit copies of them. Most releases today come on dual-layer discs, which are impossible to replicate exactly using the single-layer DVD-R drives sold to consumers. "There are probably home users out there who buy DVD recorders thinking they're going to copy movies, only to find that they can't," said Mark Ely, who heads the desktop products group for Sonic Solutions in Novato, California, maker of MyDVD authoring software. Both technical and business sources said when it comes to preventing piracy, the movie industry has learned from mistakes made by the music biz in terms of technology, availability and pricing. "There was no concept of Napster or playing CDs on PCs when the format was defined," Ely said. "As a result, they've got a format that's inherently unprotected, but they don't want to stop selling discs. That kind of conundrum informed the MPAA when the DVD format was being developed." Besides better -– or at least more challenging -- copy protection, Dinsdale said the movie industry would rely on competitive pricing and a variety of formats to discourage DVD piracy. "If you offer the consumers enough sense of choice, they're less likely to feel they need to do something rash to snag it on their own," he said. Programmers who claimed to have cracked and copied DVD said that while they felt no guilt about duplicating Hollywood's products, they rarely bothered to spend the two or more hours necessary to do so. "Dude, it's $12 to buy it," one said. "The soundtrack album is $18. What does that tell you?"
english
Everyone loves Windows 10 - even if its newer, shinier sibling Windows 11 is a bit more contentious. But what’s next for Microsoft? Well, the 12th edition, of course - even if the long-awaited Windows 12 won’t actually be the 12th iteration of Microsoft’s ever-popular operating system (it’s actually more like the 26th). The new version of Windows is expected to arrive some time in 2024. We don’t know what it’ll look like, but we do have some ideas of what we’re hoping to see from Windows 12. What we do know that is Microsoft is already working on it (as well as updating and improving Windows 11), and that the tech giant has big plans to produce its own processors for powering future Windows 12 devices. Below, you’ll find everything we know about Microsoft’s next OS so far. Opinion Microsoft’s New Year resolution should be to fix Windows 11’s major problems – or just ditch it for Windows 12. Microsoft's AI assistant is fantastic so far — but it could be even better with these five features. After Apple rolled out Personal Voice, Assistive Access, and more, Microsoft should take note for Windows 12. It might not be Windows 12, but the next version of Microsoft’s OS promises some heavyweight AI features. Got used to the constant drip of Moment feature updates for Windows? Well, that approach could be changed next year. Windows 11 24H2 reference spotted – does this mean no Windows 12 next year? Windows 12? Windows 11 24H2? The naming roulette wheel continues to spin with a fresh rumor. Windows 12 needs to be a hit – not just for Microsoft, but for the entire PC market – and it may launch next year. Here's what we know about Windows 12 so far - and what we'd like to see from it. Microsoft's Windows 11 2023 Update brings a sleek UI overhaul, enhanced Microsoft Teams integration, improved app management, Windows Copilot, and more. Microsoft's ambitious Windows 12 with AI-powered 'Windows Copilot,' hybrid computing, and Qualcomm's groundbreaking Snapdragon X Elite, set to revolutionize user experiences. Get the hottest deals available in your inbox plus news, reviews, opinion, analysis and more from the TechRadar team.
english
<gh_stars>0 {"brief":"","long":"<i>Usage:</i> Shealtiel.<br/><i>Source:</i> (Aramaic) corresponding to \"H7597\""}
json
<gh_stars>100-1000 registerEA( "decentralized_exchange_eos_propose", "A decentralized exchange plugin to propose for exchanging digital assets via EOS platform(v1.01)", [{ // parameters name: "proposalName", value: "", required: false, type: PARAMETER_TYPE.STRING, range: null }, { name: "asset", value: "eosio.token", required: true, type: PARAMETER_TYPE.STRING, range: null }, { name: "proposer", value: "", required: false, type: PARAMETER_TYPE.STRING, range: null }, { name: "exchange", value: "", required: false, type: PARAMETER_TYPE.STRING, range: null }, { name: "escrow", value: "", required: false, type: PARAMETER_TYPE.STRING, range: null }, { name: "amount", value: 0, required: true, type: PARAMETER_TYPE.INTEGER, range: [0, null] }, { name: "currency", value: "SYS", required: true, type: PARAMETER_TYPE.STRING, range: null }, { name: "memo", value: "", required: false, type: PARAMETER_TYPE.STRING, range: null }], function (context) { // Init() var proposalName = getEAParameter(context, "proposalName") var asset = getEAParameter(context, "asset") var proposer = getEAParameter(context, "proposer") var exchange = getEAParameter(context, "exchange") var escrow = getEAParameter(context, "escrow") var amount = getEAParameter(context, "amount") var currency = getEAParameter(context, "currency") var memo = getEAParameter(context, "memo") if (proposalName == null || proposalName == "") { popupErrorMessage("The proposal name should not be empty.") return } if (proposer == null || proposer == "") { popupErrorMessage("The proposer should not be empty.") return } if (exchange == null || exchange == "") { popupErrorMessage("The exchange should not be empty.") return } if (escrow == null || escrow == "") { popupErrorMessage("The escrow account should not be empty.") return } if (amount <= 0) { popupErrorMessage("The amount should be greater than zero.") return } if (memo == null) { memo = "" } const actions = [{ account: asset, name: "transfer", authorization: [{ actor: escrow, permission: "active", }], data: { from: escrow, to: exchange, quantity: Math.floor(amount) + ".0000 " + currency, memo: memo } }]; (async () => { try { const serialized_actions = await window.eos_api.serializeActions(actions) const proposeInput = { proposer: proposer, proposal_name: proposalName, // We make the threshold be 1(not 2) to simplify the process, because multi-sig requires that all approvers are online, which is not that realistic. requested: [{ actor: exchange, permission: "active" }], trx: { expiration: new Date(new Date().getTime() + 3600000).toISOString().slice(0,19), ref_block_num: 0, ref_block_prefix: 0, max_net_usage_words: 0, max_cpu_usage_ms: 0, delay_sec: 0, context_free_actions: [], actions: serialized_actions, transaction_extensions: [] } } const result = await window.eos_api.transact({ actions: [{ account: "eosio.msig", name: "propose", authorization: [{ actor: proposer, permission: "active" }], data: proposeInput }] }, { blocksBehind: 3, expireSeconds: 30, broadcast: true, sign: true }) popupMessage("Proposed!\n\n" + JSON.stringify(result, null, 2)) } catch (e) { popupErrorMessage("Caught exception: " + e) if (e instanceof window.eosjs_jsonrpc.RpcError) { popupErrorMessage(JSON.stringify(e.json, null, 2)) } } })() }, function (context) { // Deinit() }, function (context) { // OnTick() } )
javascript
<gh_stars>1-10 /* * Copyright 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package easy.peasy.cardview.widget; import android.content.Context; import android.content.res.ColorStateList; import androidx.annotation.ColorInt; import androidx.annotation.Nullable; /** * Interface for platform specific CardView implementations. */ interface CardViewImpl { void initialize(CardViewDelegate cardView, Context context, ColorStateList backgroundColor, CornerRadius cornerRadius, float elevation, float maxElevation, int shadowStartColor, int shadowEndColor); void setCornerRadii(CardViewDelegate cardView, float[] radii); float[] getCornerRadii(CardViewDelegate cardView); void setElevation(CardViewDelegate cardView, float elevation); float getElevation(CardViewDelegate cardView); void initStatic(); void setMaxElevation(CardViewDelegate cardView, float maxElevation); float getMaxElevation(CardViewDelegate cardView); void setShadowStartColor(CardViewDelegate cardView, @ColorInt int color); @ColorInt int getShadowStartColor(CardViewDelegate cardView); void setShadowEndColor(CardViewDelegate cardView, @ColorInt int color); @ColorInt int getShadowEndColor(CardViewDelegate cardView); float getMinWidth(CardViewDelegate cardView); float getMinHeight(CardViewDelegate cardView); void updatePadding(CardViewDelegate cardView); void setBackgroundColor(CardViewDelegate cardView, @Nullable ColorStateList color); ColorStateList getBackgroundColor(CardViewDelegate cardView); }
java
Uttarakhand-Nainital, Ranikhet, Kausani Binsar; Himachal: Dharamshala, Bir-Billing, Kangra Valley; An interesting getaway might be Orchha, Khajuraho, Panna; These places can be built into a 3N-4D trip. You can cover quite a few places in that period of time. One good trip can be Udaipur and Mount Abu. It depends on what kind of a trip it is, whether you want to go to a place and relax, roam around at leisure, or whether you want to cover maximum places and points.
english
More than 130 years ago, at the first Olympic Games in Athens, Boston University law student Thomas Burke took his mark at the 100-meter dash not in a standing position, but a crouch—what was then considered an unusual starting stance. But far more unusual, by today's standards, was his gold-medal winning time of 12 seconds flat. These days, talented middle schoolers post 100-meter times better than Burke's. In March 2018, 15-year-old Briana Williams, a high school sophomore, set a world age-group record in the event with a time of 11.13 seconds. The record for boys 18-and-under is nearly a second faster still: Set in 2017 by Anthony Schwartz, the 10.15-second time would have won gold at 1980's Summer Games. Today, though, on the world stage, Schwartz wouldn't even podium: In the past 30 years, only three sprinters have medaled at the Olympics with a time slower than 10 seconds. Propelled by more effective training, grippier track surfaces, faster footwear, and, yes, pharmaceuticals, competitors at every level of track and field's premier event have steadily chipped away at the world's best 100-meter times. Jamaican sprinter Usain Bolt holds the current world record: a sprightly 9.58 seconds. The surprisingly persistent record progression is enough to make anyone ask: When will the fastest people on Earth cease to become any faster? And when they do, what will the fastest time ultimately be? Depending on how you look at it, the answer to the first question could be "very soon," or "not soon at all." As recently as 2008, the popular perception among people who think about such things was that elite 100-meter runners were approaching the limits of possibility. Then came Bolt, who burst onto the scene at the Beijing Olympics with a record-wrecking time of 9.69 seconds—an anomalous performance, mathematicians thought, that statistical models placed two decades ahead of its time. But the following year, when Bolt broke his record by nine-hundredths of a second, he also broke, categorically, those old models. Today, revised probabilistic estimates project that his record could stand for upwards of two centuries. But who knows how that projection will measure up against reality. As applied mathematician David Sumpter has observed, Bolt singlehandedly demolished our ability to make reliable predictions about the 100-meter dash. Which is one reason biomechanists approach the matter somewhat differently than mathematicians. They address the second question by investigating not when Bolt's record might fall, but by how much, based on the bodies of today's fastest sprinters. "Once they get rolling, the force they apply becomes a motion-based mechanism, where they use their limbs to throw a punch at the ground," says biomechanist Peter Weyand. As director of the Locomotor Performance Laboratory at Southern Methodist University in Dallas, Weyand invites many of the fastest sprinters on Earth to run in short bursts in front of high-speed, motion-tracking cameras on a bespoke, force-sensing treadmill that makes the thing you trot on at your gym look like a glorified hamster wheel. Based on his observations, Weyand says the two biggest factors limiting the performance of elite sprinters are how much force they can apply to the ground, and how fast. At current top speeds of around 27 miles per hour, he says elite male sprinters like Usain Bolt put down roughly five times their body weight, in between .085 and 0.09 seconds. Just for fun, I ask Weyand what kind of numbers a sprinter would need to complete the 100 meter dash in 9 seconds, on the nose. "To get to what would be required for nine flat, they would have to approach forces roughly six times their body weight, and a ground contact time of just over seven hundredths of a second," he says. At those figures, a sprinter could, in theory, reach a maximum speed of 13.5 meters per second—a hair over 30 miles per hour. But according to Weyand, no sprinter on Earth comes anywhere close to those numbers. That probably puts the theoretical limit for the 100 meter dash closer to 9.58 than 9.00. But Weyand, for his part, thinks athletes have plenty of room to improve. "If you put together a perfect human being, and the perfect race, I could certainly see something in the low 9.40-second range, maybe a little bit faster than that, under currently legal conditions," he says. Then again, who knows how those conditions could change. When Thomas Burke coiled into a crouch at the starting line for the first Olympic 100 meter dash, he did so without the speed-boosting benefits of modern nutrition, apparel, or training. He didn't even have starting blocks. Athletes at the Olympic Games in 2120 may well scoff at the rudimentary preparations of today’s sprinters too. - How much screen time should your kids get, really?
english
package com.project.one.dao; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import com.project.one.Money; import com.project.one.model.ReimbDetailed; import com.project.one.model.ReimbStatus; import com.project.one.model.ReimbType; import com.project.one.model.Reimbursement; /** * DAO layer for reimbursement table. * * @author <NAME> */ public class ReimbDao extends DataAccessObject { private static ReimbDao inst = null; private PreparedStatement psSelectReimb; private PreparedStatement psSelectReimbDetailed; private PreparedStatement psSelectAllReimb; private PreparedStatement psSelectAllReimbDetailed; private PreparedStatement psInsertReimb; private PreparedStatement psUpdateReimbStatus; private ReimbDao() { Connection conn = connection(); try { psSelectReimb = conn.prepareStatement("SELECT * FROM reimbursement WHERE reimb_author = ?"); psSelectReimbDetailed = conn.prepareStatement("SELECT * FROM reimb_detailed WHERE author = ?"); psSelectAllReimb = conn.prepareStatement("SELECT * FROM reimbursement"); psSelectAllReimbDetailed = conn.prepareStatement("SELECT * FROM reimb_detailed"); psUpdateReimbStatus = conn.prepareStatement( "UPDATE reimbursement\n" + "SET\n" + " reimb_status_id = ?,\n" + " reimb_resolver = ?,\n" + " reimb_resolved = current_timestamp\n" + "WHERE reimb_id = ?"); psInsertReimb = conn.prepareStatement( "INSERT INTO reimbursement VALUES (\n" + " DEFAULT,\n" + " ?,\n" + " current_timestamp,\n" + " NULL,\n" + " ?,\n" + " NULL,\n" + " ?,\n" + " NULL,\n" + " (SELECT reimb_status_id FROM reimbursement_status WHERE reimb_status = 'PENDING'),\n" + " ?\n" + ")\n" + "RETURNING *"); } catch (SQLException e) { e.printStackTrace(); } } /** * @return The current instance of the singleton class {@code ReimbDao}. */ public static ReimbDao getInstance() { if (inst == null) inst = new ReimbDao(); return inst; } /** * @param rs - {@code ResultSet} selected from the reimbursement table. * @return A {@code Reimbursement} object representing a row from {@code rs}. * @throws SQLException */ private Reimbursement decodeReimb(ResultSet rs) throws SQLException { return new Reimbursement( rs.getInt(1), new Money(rs.getLong(2)), rs.getTimestamp(3), rs.getTimestamp(4), rs.getString(5), rs.getBytes(6), rs.getInt(7), rs.getInt(8), ReimbStatus.values()[rs.getInt(9)], ReimbType.values()[rs.getInt(10)]); } /** * @param rs - {@code ResultSet} selected from the reimb_detailed view. * @return A {@code ReimbDetailed} object representing a row from {@code rs}. * @throws SQLException */ private ReimbDetailed decodeReimbDetailed(ResultSet rs) throws SQLException { return new ReimbDetailed( rs.getInt(1), new Money(rs.getLong(2)), rs.getTimestamp(3), rs.getTimestamp(4), rs.getString(5), rs.getBytes(6), rs.getInt(7), rs.getString(8), rs.getString(9), rs.getInt(10), rs.getString(11), rs.getString(12), ReimbStatus.values()[rs.getInt(13)], ReimbType.values()[rs.getInt(14)]); } /** * Selects all reimbursements by a certain author. * * @param author - ID of author to select by. * @return A list of reimbursements, or {@code null} if there are no reimbursements by {@code author}. * @throws SQLException */ public List<Reimbursement> selectReimbursements(int author) throws SQLException { psSelectReimb.setInt(1, author); ResultSet rs = psSelectReimb.executeQuery(); if (!rs.next()) return null; List<Reimbursement> res = new ArrayList<Reimbursement>(); do res.add(decodeReimb(rs)); while (rs.next()); return res; } /** * Selects all reimbursements by a certain author. * * @param author - ID of author to select by. * @param detailed - {@code false} to select from reimbursement table, * {@code true} to select from reimb_detailed view. * @return A list of reimbursements, or {@code null} if there are no reimbursements by {@code author}. * @throws SQLException */ public List<Reimbursement> selectReimbursements(int author, boolean detailed) throws SQLException { if (!detailed) return selectReimbursements(author); psSelectReimbDetailed.setInt(1, author); ResultSet rs = psSelectReimbDetailed.executeQuery(); if (!rs.next()) return null; List<Reimbursement> res = new ArrayList<Reimbursement>(); do res.add(decodeReimbDetailed(rs)); while (rs.next()); return res; } /** * Selects all reimbursements. * * @return A list of reimbursements, or {@code null} if there are no reimbursements. * @throws SQLException */ public List<Reimbursement> selectAllReimbursements() throws SQLException { ResultSet rs = psSelectAllReimb.executeQuery(); if (!rs.next()) return null; List<Reimbursement> res = new ArrayList<Reimbursement>(); do res.add(decodeReimb(rs)); while (rs.next()); return res; } /** * Selects all reimbursements. * * @param detailed - {@code false} to select from reimbursement table, * {@code true} to select from reimb_detailed view. * @return A list of reimbursements, or {@code null} if there are no reimbursements. * @throws SQLException */ public List<Reimbursement> selectAllReimbursements(boolean detailed) throws SQLException { if (!detailed) return selectAllReimbursements(); ResultSet rs = psSelectAllReimbDetailed.executeQuery(); if (!rs.next()) return null; List<Reimbursement> res = new ArrayList<Reimbursement>(); do res.add(decodeReimbDetailed(rs)); while (rs.next()); return res; } /** * Attempts to insert a new ticket into the reimbursement table. * * @param amount - Amount for the reimbursement. * @param desc - Description of the reimbursement. * @param author - ID of the reimbursement's author. * @param type - Type of the reimbursement. * @return The reimbursement inserted, or {@code null} if it was not inserted. * @throws SQLException */ public Reimbursement insertReimbursement(Money amount, String desc, int author, ReimbType type) throws SQLException { psInsertReimb.setLong(1, amount.getAmount()); psInsertReimb.setString(2, desc); psInsertReimb.setInt(3, author); psInsertReimb.setInt(4, type.getValue()); ResultSet rs = psInsertReimb.executeQuery(); if (!rs.next()) return null; return decodeReimb(rs); } /** * Updates the status of a reimbursement to anything but {@code ReimbStatus.PENDING}. * * @param reimb - ID of reimbursement to update. * @param resolver - ID of resolver. * @param status - Status to set. * @return Number of rows altered. * @throws SQLException */ public int updateReimbursementStatus(int reimb, int resolver, ReimbStatus status) throws SQLException { if (status == ReimbStatus.PENDING) return 0; psUpdateReimbStatus.setInt(1, status.getValue()); psUpdateReimbStatus.setInt(2, resolver); psUpdateReimbStatus.setInt(3, reimb); return psUpdateReimbStatus.executeUpdate(); } }
java
package com.game.monopoly.Client.controller; import com.game.monopoly.Client.model.*; import com.game.monopoly.Client.model.Objects.*; import com.game.monopoly.Client.view.*; import java.util.*; public class FrameController { private static FrameController frameController; private HashMap<FramesID, IController> windows; private IController currentWindow; private FrameController(){ windows = new HashMap<>(); windows.put(FramesID.LOGIN, new LoginController(new LoginWindow())); windows.put(FramesID.GAME, new GameController(new GameWindow())); windows.put(FramesID.TABLE, new CardsController(new CardsWindow())); windows.put(FramesID.DICEORDER, new OrderController(new OrderWindow())); } public static FrameController getInstance(){ if (frameController == null){ frameController = new FrameController(); } return frameController; } public IController getWindow(FramesID frame){ return windows.get(frame); } // Cambia de ventana principal public void openWindow(FramesID frame){ if (currentWindow == null){ currentWindow = windows.get(frame); } currentWindow.close(); windows.get(frame).init(); windows.get(frame).start(); currentWindow = windows.get(frame); } // Abre las cartas de un jugador public void openCardsFromPlayer(Players player){ int[] cards = player.getCardsArray(); CardWindowType type = (player.getID() == Player.getInstance().getID()) ? CardWindowType.FRIEND : CardWindowType.ENEMY; CardsScrollWindow window = new CardsScrollWindow(cards, type); window.setVisible(true); } // Abre una nueva ventana sin sustituir a la principal public void openNewWindow(FramesID frame){ IController controller = generateWindow(frame); controller.init(); controller.start(); } // Genera una nueva instancia de una ventana public static IController generateWindow(FramesID frame){ IController controller = null; switch(frame){ case LOGIN: controller = new LoginController(new LoginWindow()); break; case GAME: controller = new GameController(new GameWindow()); break; case CARDS: break; case TABLE: controller = new CardsController(new CardsWindow()); break; case DICEORDER: controller = new OrderController(new OrderWindow()); break; } return controller; } }
java
Commerce Minister Nirmala Sitharaman told the Lok Sabha during Question Hour that India is vigorously articulating its concerns on visa policy to the new American administration, which has assured there is no significant change in the H1-B visa regime. "The fear, at least for 2017, is not proved to be correct. They (US authorities) are saying their current priority is to deal with the illegal immigrants," Sitharaman said. The issue was also taken up recently with the visiting Congressional delegation led by Bob Goodlatte, as well as during the visit of Commerce Secretary and Foreign Secretary to the US during the first week of March 2017, she said. Indian concerns on visa issues were articulated during the Strategic and Commerce Dialogue 2016 and Trade Policy Forum held in October last year, she added. Sitharaman said that a number of industry bodies have raised concerns over US visa policies and these concerns have been conveyed to the US authorities. IT industry body Nasscom has said it will continue to highlight the discriminatory nature of the proposed provisions of the bill for H1-B visas which has been re-introduced in the US Congress after a failed attempt in July last year. The bill proposes a minimum pay of $100,000 annually to every employee taken to US under the H1-B visa which is an over 66 per cent increase from the current average.
english
<filename>jax_md/partition.py # Copyright 2019 Google LLC # # 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 # # https://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. """Code to transform functions on individual tuples of particles to sets.""" from absl import logging from functools import reduce, partial from collections import namedtuple from enum import Enum from typing import Any, Callable, Optional, Dict, Tuple, Generator, Union import math from operator import mul import numpy as onp from jax import lax from jax import ops from jax import jit, vmap, eval_shape from jax.abstract_arrays import ShapedArray from jax.interpreters import partial_eval as pe import jax.numpy as jnp from jax_md import quantity, space, dataclasses, util import jraph # Types Array = util.Array f32 = util.f32 f64 = util.f64 i32 = util.i32 i64 = util.i64 Box = space.Box DisplacementOrMetricFn = space.DisplacementOrMetricFn MetricFn = space.MetricFn # Cell List @dataclasses.dataclass class CellList: """Stores the spatial partition of a system into a cell list. See cell_list(...) for details on the construction / specification. Cell list buffers all have a common shape, S, where * `S = [cell_count_x, cell_count_y, cell_capacity]` * `S = [cell_count_x, cell_count_y, cell_count_z, cell_capacity]` in two- and three-dimensions respectively. It is assumed that each cell has the same capacity. Attributes: position_buffer: An ndarray of floating point positions with shape S + [spatial_dimension]. id_buffer: An ndarray of int32 particle ids of shape S. Note that empty slots are specified by id = N where N is the number of particles in the system. kwarg_buffers: A dictionary of ndarrays of shape S + [...]. This contains side data placed into the cell list. """ position_buffer: Array id_buffer: Array kwarg_buffers: Dict[str, Array] def _cell_dimensions(spatial_dimension: int, box_size: Box, minimum_cell_size: float) -> Tuple[Box, Array, Array, int]: """Compute the number of cells-per-side and total number of cells in a box.""" if isinstance(box_size, int) or isinstance(box_size, float): box_size = float(box_size) # NOTE(schsam): Should we auto-cast based on box_size? I can't imagine a case # in which the box_size would not be accurately represented by an f32. if (isinstance(box_size, onp.ndarray) and (box_size.dtype == jnp.int32 or box_size.dtype == jnp.int64)): box_size = float(box_size) cells_per_side = onp.floor(box_size / minimum_cell_size) cell_size = box_size / cells_per_side cells_per_side = onp.array(cells_per_side, dtype=jnp.int64) if isinstance(box_size, onp.ndarray): if box_size.ndim == 1 or box_size.ndim == 2: assert box_size.size == spatial_dimension flat_cells_per_side = onp.reshape(cells_per_side, (-1,)) for cells in flat_cells_per_side: if cells < 3: raise ValueError( ('Box must be at least 3x the size of the grid spacing in each ' 'dimension.')) cell_count = reduce(mul, flat_cells_per_side, 1) elif box_size.ndim == 0: cell_count = cells_per_side ** spatial_dimension else: raise ValueError('Box must either be a scalar or a vector.') else: cell_count = cells_per_side ** spatial_dimension return box_size, cell_size, cells_per_side, int(cell_count) def count_cell_filling(R: Array, box_size: Box, minimum_cell_size: float) -> Array: """Counts the number of particles per-cell in a spatial partition.""" dim = int(R.shape[1]) box_size, cell_size, cells_per_side, cell_count = \ _cell_dimensions(dim, box_size, minimum_cell_size) hash_multipliers = _compute_hash_constants(dim, cells_per_side) particle_index = jnp.array(R / cell_size, dtype=jnp.int64) particle_hash = jnp.sum(particle_index * hash_multipliers, axis=1) filling = ops.segment_sum(jnp.ones_like(particle_hash), particle_hash, cell_count) return filling def _is_variable_compatible_with_positions(R: Array) -> bool: if (util.is_array(R) and len(R.shape) == 2 and jnp.issubdtype(R.dtype, jnp.floating)): return True return False def _compute_hash_constants(spatial_dimension: int, cells_per_side: Array) -> Array: if cells_per_side.size == 1: return jnp.array([[cells_per_side ** d for d in range(spatial_dimension)]], dtype=jnp.int64) elif cells_per_side.size == spatial_dimension: one = jnp.array([[1]], dtype=jnp.int32) cells_per_side = jnp.concatenate((one, cells_per_side[:, :-1]), axis=1) return jnp.array(jnp.cumprod(cells_per_side), dtype=jnp.int64) else: raise ValueError() def _neighboring_cells(dimension: int) -> Generator[onp.ndarray, None, None]: for dindex in onp.ndindex(*([3] * dimension)): yield onp.array(dindex, dtype=jnp.int64) - 1 def _estimate_cell_capacity(R: Array, box_size: Box, cell_size: float, buffer_size_multiplier: float) -> int: # TODO(schsam): We might want to do something more sophisticated here or at # least expose this constant. spatial_dim = R.shape[-1] cell_capacity = onp.max(count_cell_filling(R, box_size, cell_size)) return int(cell_capacity * buffer_size_multiplier) def _unflatten_cell_buffer(arr: Array, cells_per_side: Array, dim: int) -> Array: if (isinstance(cells_per_side, int) or isinstance(cells_per_side, float) or (util.is_array(cells_per_side) and not cells_per_side.shape)): cells_per_side = (int(cells_per_side),) * dim elif util.is_array(cells_per_side) and len(cells_per_side.shape) == 1: cells_per_side = tuple([int(x) for x in cells_per_side[::-1]]) elif util.is_array(cells_per_side) and len(cells_per_side.shape) == 2: cells_per_side = tuple([int(x) for x in cells_per_side[0][::-1]]) else: raise ValueError() # TODO return jnp.reshape(arr, cells_per_side + (-1,) + arr.shape[1:]) def _shift_array(arr: onp.ndarray, dindex: Array) -> Array: if len(dindex) == 2: dx, dy = dindex dz = 0 elif len(dindex) == 3: dx, dy, dz = dindex if dx < 0: arr = jnp.concatenate((arr[1:], arr[:1])) elif dx > 0: arr = jnp.concatenate((arr[-1:], arr[:-1])) if dy < 0: arr = jnp.concatenate((arr[:, 1:], arr[:, :1]), axis=1) elif dy > 0: arr = jnp.concatenate((arr[:, -1:], arr[:, :-1]), axis=1) if dz < 0: arr = jnp.concatenate((arr[:, :, 1:], arr[:, :, :1]), axis=2) elif dz > 0: arr = jnp.concatenate((arr[:, :, -1:], arr[:, :, :-1]), axis=2) return arr def _vectorize(f: Callable, dim: int) -> Callable: if dim == 2: return vmap(vmap(f, 0, 0), 0, 0) elif dim == 3: return vmap(vmap(vmap(f, 0, 0), 0, 0), 0, 0) raise ValueError('Cell list only supports 2d or 3d.') def cell_list(box_size: Box, minimum_cell_size: float, cell_capacity_or_example_R: Union[int, Array], buffer_size_multiplier: float=1.1 ) -> Callable[[Array], CellList]: r"""Returns a function that partitions point data spatially. Given a set of points {x_i \in R^d} with associated data {k_i \in R^m} it is often useful to partition the points / data spatially. A simple partitioning that can be implemented efficiently within XLA is a dense partition into a uniform grid called a cell list. Since XLA requires that shapes be statically specified, we allocate fixed sized buffers for each cell. The size of this buffer can either be specified manually or it can be estimated automatically from a set of positions. Note, if the distribution of points changes significantly it is likely the buffer the buffer sizes will have to be adjusted. This partitioning will likely form the groundwork for parallelizing simulations over different accelerators. Args: box_size: A float or an ndarray of shape [spatial_dimension] specifying the size of the system. Note, this code is written for the case where the boundaries are periodic. If this is not the case, then the current code will be slightly less efficient. minimum_cell_size: A float specifying the minimum side length of each cell. Cells are enlarged so that they exactly fill the box. cell_capacity_or_example_R: Either an integer specifying the size number of particles that can be stored in each cell or an ndarray of positions of shape [particle_count, spatial_dimension] that is used to estimate the cell_capacity. buffer_size_multiplier: A floating point multiplier that multiplies the estimated cell capacity to allow for fluctuations in the maximum cell occupancy. Returns: A function `cell_list_fn(R, **kwargs)` that partitions positions, `R`, and side data specified by kwargs into a cell list. Returns a CellList containing the partition. """ if util.is_array(box_size): box_size = onp.array(box_size) if len(box_size.shape) == 1: box_size = jnp.reshape(box_size, (1, -1)) if util.is_array(minimum_cell_size): minimum_cell_size = onp.array(minimum_cell_size) cell_capacity = cell_capacity_or_example_R if _is_variable_compatible_with_positions(cell_capacity): cell_capacity = _estimate_cell_capacity( cell_capacity, box_size, minimum_cell_size, buffer_size_multiplier) elif not isinstance(cell_capacity, int): msg = ( 'cell_capacity_or_example_positions must either be an integer ' 'specifying the cell capacity or a set of positions that will be used ' 'to estimate a cell capacity. Found {}.'.format(type(cell_capacity)) ) raise ValueError(msg) def build_cells(R: Array, extra_capacity: int=0, **kwargs) -> CellList: N = R.shape[0] dim = R.shape[1] _cell_capacity = cell_capacity + extra_capacity if dim != 2 and dim != 3: # NOTE(schsam): Do we want to check this in compute_fn as well? raise ValueError( 'Cell list spatial dimension must be 2 or 3. Found {}'.format(dim)) neighborhood_tile_count = 3 ** dim _, cell_size, cells_per_side, cell_count = \ _cell_dimensions(dim, box_size, minimum_cell_size) hash_multipliers = _compute_hash_constants(dim, cells_per_side) # Create cell list data. particle_id = lax.iota(jnp.int64, N) # NOTE(schsam): We use the convention that particles that are successfully, # copied have their true id whereas particles empty slots have id = N. # Then when we copy data back from the grid, copy it to an array of shape # [N + 1, output_dimension] and then truncate it to an array of shape # [N, output_dimension] which ignores the empty slots. mask_id = jnp.ones((N,), jnp.int64) * N cell_R = jnp.zeros((cell_count * _cell_capacity, dim), dtype=R.dtype) cell_id = N * jnp.ones((cell_count * _cell_capacity, 1), dtype=i32) # It might be worth adding an occupied mask. However, that will involve # more compute since often we will do a mask for species that will include # an occupancy test. It seems easier to design around this empty_data_value # for now and revisit the issue if it comes up later. empty_kwarg_value = 10 ** 5 cell_kwargs = {} for k, v in kwargs.items(): if not util.is_array(v): raise ValueError(( 'Data must be specified as an ndarry. Found "{}" with ' 'type {}'.format(k, type(v)))) if v.shape[0] != R.shape[0]: raise ValueError( ('Data must be specified per-particle (an ndarray with shape ' '(R.shape[0], ...)). Found "{}" with shape {}'.format(k, v.shape))) kwarg_shape = v.shape[1:] if v.ndim > 1 else (1,) cell_kwargs[k] = empty_kwarg_value * jnp.ones( (cell_count * _cell_capacity,) + kwarg_shape, v.dtype) indices = jnp.array(R / cell_size, dtype=i32) hashes = jnp.sum(indices * hash_multipliers, axis=1) # Copy the particle data into the grid. Here we use a trick to allow us to # copy into all cells simultaneously using a single lax.scatter call. To do # this we first sort particles by their cell hash. We then assign each # particle to have a cell id = hash * cell_capacity + grid_id where grid_id # is a flat list that repeats 0, .., cell_capacity. So long as there are # fewer than cell_capacity particles per cell, each particle is guarenteed # to get a cell id that is unique. sort_map = jnp.argsort(hashes) sorted_R = R[sort_map] sorted_hash = hashes[sort_map] sorted_id = particle_id[sort_map] sorted_kwargs = {} for k, v in kwargs.items(): sorted_kwargs[k] = v[sort_map] sorted_cell_id = jnp.mod(lax.iota(jnp.int64, N), _cell_capacity) sorted_cell_id = sorted_hash * _cell_capacity + sorted_cell_id cell_R = ops.index_update(cell_R, sorted_cell_id, sorted_R) sorted_id = jnp.reshape(sorted_id, (N, 1)) cell_id = ops.index_update( cell_id, sorted_cell_id, sorted_id) cell_R = _unflatten_cell_buffer(cell_R, cells_per_side, dim) cell_id = _unflatten_cell_buffer(cell_id, cells_per_side, dim) for k, v in sorted_kwargs.items(): if v.ndim == 1: v = jnp.reshape(v, v.shape + (1,)) cell_kwargs[k] = ops.index_update(cell_kwargs[k], sorted_cell_id, v) cell_kwargs[k] = _unflatten_cell_buffer( cell_kwargs[k], cells_per_side, dim) return CellList(cell_R, cell_id, cell_kwargs) # pytype: disable=wrong-arg-count return build_cells def _displacement_or_metric_to_metric_sq( displacement_or_metric: DisplacementOrMetricFn) -> MetricFn: """Checks whether or not a displacement or metric was provided.""" for dim in range(1, 4): try: R = ShapedArray((dim,), f32) dR_or_dr = eval_shape(displacement_or_metric, R, R, t=0) if len(dR_or_dr.shape) == 0: return lambda Ra, Rb, **kwargs: \ displacement_or_metric(Ra, Rb, **kwargs) ** 2 else: return lambda Ra, Rb, **kwargs: space.square_distance( displacement_or_metric(Ra, Rb, **kwargs)) except TypeError: continue except ValueError: continue raise ValueError( 'Canonicalize displacement not implemented for spatial dimension larger' 'than 4.') class NeighborListFormat(Enum): """An enum listing the different neighbor list formats. Attributes: Dense: A dense neighbor list where the ids are a square matrix of shape `(N, max_neighbors_per_atom)`. Here the capacity of the neighbor list must scale with the highest connectivity neighbor. Sparse: A sparse neighbor list where the ids are a rectangular matrix of shape `(2, max_neighbors)` specifying the start / end particle of each neighbor pair. OrderedSparse: A sparse neighbor list whose format is the same as `Sparse` where only bonds with i < j are included. """ Dense = 0 Sparse = 1 OrderedSparse = 2 def is_sparse(format: NeighborListFormat) -> bool: return (format is NeighborListFormat.Sparse or format is NeighborListFormat.OrderedSparse) def is_format_valid(format: NeighborListFormat): if not format in list(NeighborListFormat): raise ValueError(( 'Neighbor list format must be a member of NeighorListFormat' f' found {format}.')) @dataclasses.dataclass class NeighborList(object): """A struct containing the state of a Neighbor List. Attributes: idx: For an N particle system this is an `[N, max_occupancy]` array of integers such that `idx[i, j]` is the jth neighbor of particle i. reference_position: The positions of particles when the neighbor list was constructed. This is used to decide whether the neighbor list ought to be updated. did_buffer_overflow: A boolean that starts out False. If there are ever more neighbors than max_neighbors this is set to true to indicate that there was a buffer overflow. If this happens, it means that the results of the simulation will be incorrect and the simulation needs to be rerun using a larger buffer. max_occupancy: A static integer specifying the maximum size of the neighbor list. Changing this will invoke a recompilation. format: A NeighborListFormat enum specifying the format of the neighbor list. cell_list_fn: A static python callable that is used to construct a cell list used in an intermediate step of the neighbor list calculation. update_fn: A static python function used to update the neighbor list. """ idx: Array reference_position: Array did_buffer_overflow: Array max_occupancy: int = dataclasses.static_field() format: NeighborListFormat = dataclasses.static_field() cell_list_fn: Callable[[Array], CellList] = dataclasses.static_field() update_fn: Callable[[Array, 'NeighborList'], 'NeighborList'] = dataclasses.static_field() def update(self, R, **kwargs): return self.update_fn(R, self, **kwargs) @dataclasses.dataclass class NeighborListFns: """A struct containing functions to allocate and update neighbor lists. Attributes: allocate: A function to allocate a new neighbor list. This function cannot be compiled, since it uses the values of positions to infer the shapes. update: A function to update a neighbor list given a new set of positions and a new neighbor list. """ allocate: Callable[..., NeighborList] = dataclasses.static_field() update: Callable[[Array, NeighborList], NeighborList] = dataclasses.static_field() def __call__(self, R: Array, neighbor_list: Optional[NeighborList]=None, extra_capacity: int=0, **kwargs) -> NeighborList: """A function for backward compatibility with previous neighbor lists. Attributes: R: An `(N, dim)` array of particle positions. neighbor_list: An optional neighor list object. If it is provided then the function updates the neighbor list, otherwise it allocates a new neighbor list. extra_capacity: Extra capacity to add if allocating the neighbor list. """ logging.warning('Using a depricated code path to create / update neighbor ' 'lists. It will be removed in a later version of JAX MD. ' 'Using `neighbor_fn.allocate` and `neighbor_fn.update` ' 'is preferred.') if neighbor_list is None: return self.allocate(R, extra_capacity, **kwargs) return self.update(R, neighbor_list, **kwargs) def __iter__(self): return iter((self.allocate, self.update)) NeighborFn = Callable[[Array, Optional[NeighborList], Optional[int]], NeighborList] def neighbor_list(displacement_or_metric: DisplacementOrMetricFn, box_size: Box, r_cutoff: float, dr_threshold: float, capacity_multiplier: float=1.25, disable_cell_list: bool=False, mask_self: bool=True, fractional_coordinates: bool=False, format: NeighborListFormat=NeighborListFormat.Dense, **static_kwargs) -> NeighborFn: """Returns a function that builds a list neighbors for collections of points. Neighbor lists must balance the need to be jit compatable with the fact that under a jit the maximum number of neighbors cannot change (owing to static shape requirements). To deal with this, our `neighbor_list` returns a `NeighborListFns` object that contains two functions: 1) `neighbor_fn.allocate` create a new neighbor list and 2) `neighbor_fn.update` updates an existing neighbor list. Neighbor lists themselves additionally have a convenience `update` member function. Note that allocation of a new neighbor list cannot be jit compiled since it uses the positions to infer the maximum number of neighbors (along with additional space specified by the `capacity_multiplier`). Updating the neighbor list can be jit compiled; if the neighbor list capacity is not sufficient to store all the neighbors, the `did_buffer_overflow` bit will be set to `True` and a new neighbor list will need to be reallocated. Here is a typical example of a simulation loop with neighbor lists: >>> init_fn, apply_fn = simulate.nve(energy_fn, shift, 1e-3) >>> exact_init_fn, exact_apply_fn = simulate.nve(exact_energy_fn, shift, 1e-3) >>> >>> nbrs = neighbor_fn.allocate(R) >>> state = init_fn(random.PRNGKey(0), R, neighbor_idx=nbrs.idx) >>> >>> def body_fn(i, state): >>> state, nbrs = state >>> nbrs = nbrs.update(state.position) >>> state = apply_fn(state, neighbor_idx=nbrs.idx) >>> return state, nbrs >>> >>> step = 0 >>> for _ in range(20): >>> new_state, nbrs = lax.fori_loop(0, 100, body_fn, (state, nbrs)) >>> if nbrs.did_buffer_overflow: >>> nbrs = neighbor_fn.allocate(state.position) >>> else: >>> state = new_state >>> step += 1 Args: displacement: A function `d(R_a, R_b)` that computes the displacement between pairs of points. box_size: Either a float specifying the size of the box or an array of shape [spatial_dim] specifying the box size in each spatial dimension. r_cutoff: A scalar specifying the neighborhood radius. dr_threshold: A scalar specifying the maximum distance particles can move before rebuilding the neighbor list. capacity_multiplier: A floating point scalar specifying the fractional increase in maximum neighborhood occupancy we allocate compared with the maximum in the example positions. disable_cell_list: An optional boolean. If set to True then the neighbor list is constructed using only distances. This can be useful for debugging but should generally be left as False. mask_self: An optional boolean. Determines whether points can consider themselves to be their own neighbors. fractional_coordinates: An optional boolean. Specifies whether positions will be supplied in fractional coordinates in the unit cube, [0, 1]^d. If this is set to True then the box_size will be set to 1.0 and the cell size used in the cell list will be set to cutoff / box_size. format: The format of the neighbor list; see the NeighborListFormat enum for details about the different choices for formats. Defaults to `Dense`. **static_kwargs: kwargs that get threaded through the calculation of example positions. Returns: A pair. The first element is a NeighborList containing the current neighbor list. The second element contains a function `neighbor_list_fn(R, neighbor_list=None)` that will update the neighbor list. If neighbor_list is None then the function will construct a new neighbor list whose capacity is inferred from R. If neighbor_list is given then it will update the neighbor list (with fixed capacity) if any particle has moved more than dr_threshold / 2. Note that only `neighbor_list_fn(R, neighbor_list)` can be `jit` since it keeps array shapes fixed. """ is_format_valid(format) box_size = lax.stop_gradient(box_size) r_cutoff = lax.stop_gradient(r_cutoff) dr_threshold = lax.stop_gradient(dr_threshold) box_size = f32(box_size) cutoff = r_cutoff + dr_threshold cutoff_sq = cutoff ** 2 threshold_sq = (dr_threshold / f32(2)) ** 2 metric_sq = _displacement_or_metric_to_metric_sq(displacement_or_metric) cell_size = cutoff if fractional_coordinates: cell_size = cutoff / box_size box_size = f32(1) use_cell_list = jnp.all(cell_size < box_size / 3.) and not disable_cell_list @jit def candidate_fn(R, **kwargs): return jnp.broadcast_to(jnp.reshape(jnp.arange(R.shape[0]), (1, R.shape[0])), (R.shape[0], R.shape[0])) @jit def cell_list_candidate_fn(cl, R, **kwargs): N, dim = R.shape R = cl.position_buffer idx = cl.id_buffer cell_idx = [idx] for dindex in _neighboring_cells(dim): if onp.all(dindex == 0): continue cell_idx += [_shift_array(idx, dindex)] cell_idx = jnp.concatenate(cell_idx, axis=-2) cell_idx = cell_idx[..., jnp.newaxis, :, :] cell_idx = jnp.broadcast_to(cell_idx, idx.shape[:-1] + cell_idx.shape[-2:]) def copy_values_from_cell(value, cell_value, cell_id): scatter_indices = jnp.reshape(cell_id, (-1,)) cell_value = jnp.reshape(cell_value, (-1,) + cell_value.shape[-2:]) return ops.index_update(value, scatter_indices, cell_value) # NOTE(schsam): Currently, this makes a verlet list that is larger than # needed since the idx buffer inherets its size from the cell-list. In # three-dimensions this seems to translate into an occupancy of ~70%. We # can make this more efficient by shrinking the verlet list at the cost of # another sort. However, this seems possibly less efficient than just # computing everything. neighbor_idx = jnp.zeros((N + 1,) + cell_idx.shape[-2:], jnp.int32) neighbor_idx = copy_values_from_cell(neighbor_idx, cell_idx, idx) return neighbor_idx[:-1, :, 0] @jit def mask_self_fn(idx): self_mask = idx == jnp.reshape(jnp.arange(idx.shape[0]), (idx.shape[0], 1)) return jnp.where(self_mask, idx.shape[0], idx) @jit def prune_neighbor_list_dense(R, idx, **kwargs): d = partial(metric_sq, **kwargs) d = space.map_neighbor(d) N = R.shape[0] neigh_R = R[idx] dR = d(R, neigh_R) mask = (dR < cutoff_sq) & (idx < N) out_idx = N * jnp.ones(idx.shape, jnp.int32) cumsum = jnp.cumsum(mask, axis=1) index = jnp.where(mask, cumsum - 1, idx.shape[1] - 1) p_index = jnp.arange(idx.shape[0])[:, None] out_idx = out_idx.at[p_index, index].set(idx) max_occupancy = jnp.max(cumsum[:, -1]) return out_idx[:, :-1], max_occupancy @jit def prune_neighbor_list_sparse(R, idx, **kwargs): d = partial(metric_sq, **kwargs) d = space.map_bond(d) N = R.shape[0] sender_idx = jnp.broadcast_to(jnp.arange(N)[:, None], idx.shape) sender_idx = jnp.reshape(sender_idx, (-1,)) receiver_idx = jnp.reshape(idx, (-1,)) dR = d(R[sender_idx], R[receiver_idx]) mask = (dR < cutoff_sq) & (receiver_idx < N) if format is NeighborListFormat.OrderedSparse: mask = mask & (receiver_idx < sender_idx) out_idx = N * jnp.ones(receiver_idx.shape, jnp.int32) cumsum = jnp.cumsum(mask) index = jnp.where(mask, cumsum - 1, len(receiver_idx) - 1) receiver_idx = out_idx.at[index].set(receiver_idx) sender_idx = out_idx.at[index].set(sender_idx) max_occupancy = cumsum[-1] return jnp.stack((receiver_idx[:-1], sender_idx[:-1])), max_occupancy def neighbor_list_fn(R: Array, neighbor_list: Optional[NeighborList]=None, extra_capacity: int=0, **kwargs) -> NeighborList: nbrs = neighbor_list def neighbor_fn(R_and_overflow, max_occupancy=None): R, overflow = R_and_overflow N = R.shape[0] if cell_list_fn is not None: cl = cell_list_fn(R) idx = cell_list_candidate_fn(cl, R, **kwargs) else: idx = candidate_fn(R, **kwargs) if mask_self: idx = mask_self_fn(idx) if is_sparse(format): idx, occupancy = prune_neighbor_list_sparse(R, idx, **kwargs) else: idx, occupancy = prune_neighbor_list_dense(R, idx, **kwargs) if max_occupancy is None: _extra_capacity = (extra_capacity if not is_sparse(format) else N * extra_capacity) max_occupancy = int(occupancy * capacity_multiplier + _extra_capacity) if max_occupancy > R.shape[0] and not is_sparse(format): max_occupancy = R.shape[0] padding = max_occupancy - occupancy if max_occupancy > occupancy: idx = jnp.concatenate( [idx, N * jnp.ones((idx.shape[0], padding), dtype=idx.dtype)], axis=1) idx = idx[:, :max_occupancy] update_fn = (neighbor_list_fn if neighbor_list is None else neighbor_list.update_fn) return NeighborList( idx, R, jnp.logical_or(overflow, (max_occupancy < occupancy)), max_occupancy, format, cell_list_fn, update_fn) # pytype: disable=wrong-arg-count if nbrs is None: cell_list_fn = (cell_list(box_size, cell_size, R, capacity_multiplier) if use_cell_list else None) return neighbor_fn((R, False)) else: cell_list_fn = nbrs.cell_list_fn neighbor_fn = partial(neighbor_fn, max_occupancy=nbrs.max_occupancy) d = partial(metric_sq, **kwargs) d = vmap(d) return lax.cond( jnp.any(d(R, nbrs.reference_position) > threshold_sq), (R, nbrs.did_buffer_overflow), neighbor_fn, nbrs, lambda x: x) return NeighborListFns(lambda R, extra_capacity=0, **kwargs: neighbor_list_fn(R, extra_capacity=extra_capacity, **kwargs), lambda R, nbrs, **kwargs: # pytype: disable=wrong-arg-count neighbor_list_fn(R, nbrs, **kwargs)) def neighbor_list_mask(neighbor: NeighborList, mask_self: bool=False) -> Array: """Compute a mask for neighbor list.""" if is_sparse(neighbor.format): mask = neighbor.idx[0] < len(neighbor.reference_position) if mask_self: mask = mask & (neighbor.idx[0] != neighbor.idx[1]) return mask mask = neighbor.idx < len(neighbor.idx) if mask_self: N = len(neighbor.reference_position) self_mask = neighbor.idx != jnp.reshape(jnp.arange(N), (N, 1)) mask = mask & self_mask return mask def to_jraph(neighbor: NeighborList, mask: Array=None) -> jraph.GraphsTuple: """Convert a sparse neighbor list to a `jraph.GraphsTuple`. As in jraph, padding here is accomplished by adding a ficticious graph with a single node. Args: neighbor: A neighbor list that we will convert to the jraph format. Must be sparse. mask: An optional mask on the edges. Returns: A `jraph.GraphsTuple` that contains the topology of the neighbor list. """ if not is_sparse(neighbor.format): raise ValueError('Cannot convert a dense neighbor list to jraph format. ' 'Please use either NeighborListFormat.Sparse or ' 'NeighborListFormat.OrderedSparse.') receivers, senders = neighbor.idx N = len(neighbor.reference_position) _mask = neighbor_list_mask(neighbor) if mask is not None: _mask = _mask & mask cumsum = jnp.cumsum(_mask) index = jnp.where(_mask, cumsum - 1, len(receivers)) ordered = N * jnp.ones((len(receivers) + 1,), jnp.int32) receivers = ordered.at[index].set(receivers)[:-1] senders = ordered.at[index].set(senders)[:-1] mask = receivers < N return jraph.GraphsTuple( nodes=None, edges=None, receivers=receivers, senders=senders, globals=None, n_node=jnp.array([N, 1]), n_edge=jnp.array([jnp.sum(_mask), jnp.sum(~_mask)]), ) def to_dense(neighbor: NeighborList) -> Array: """Converts a sparse neighbor list to dense ids. Cannot be JIT.""" if neighbor.format is not Sparse: raise ValueError('Can only convert sparse neighbor lists to dense ones.') receivers, senders = neighbor.idx mask = neighbor_list_mask(neighbor) receivers = receivers[mask] senders = senders[mask] N = len(neighbor.reference_position) count = ops.segment_sum(jnp.ones(len(receivers), jnp.int32), receivers, N) max_count = jnp.max(count) offset = jnp.tile(jnp.arange(max_count), N)[:len(senders)] hashes = senders * max_count + offset dense_idx = N * jnp.ones((N * max_count,), jnp.int32) dense_idx = dense_idx.at[hashes].set(receivers).reshape((N, max_count)) return dense_idx Dense = NeighborListFormat.Dense Sparse = NeighborListFormat.Sparse OrderedSparse = NeighborListFormat.OrderedSparse
python
The Barbados Royals claimed victory in their opening fixture of 2022 Hero Caribbean Premier League (CPL) against the St Kitts & Nevis Patriots with a dominant performance in all three facets of the game. St Kitts & Nevis Patriots 149/8 (17 ov) Barbados Royals 150/3 (15.1 ov) The Barbados Royals claimed victory in their opening fixture of 2022 Hero Caribbean Premier League (CPL) against the St Kitts & Nevis Patriots with a dominant performance in all three facets of the game. The Royals won the toss and opted to field first and it proved to be a wise decision as Andre Fletcher’s sparkling 81 aside they were able to take regular wickets to restrict the Patriots to 149/8. In reply Rahkeem Cornwall and Kyle Mayers raced to a 64 run partnership to set the platform for a straight forward win. With Mayers batting through the majority of the innings the chase was always a formality as his 73 from 46 balls put the result beyond doubt. The Patriots were handed a blow prior to the match with the injury enforced absence of Evin Lewis but the new opening pair of Andre Fletcher and Joshua Da Silva ensured that the Patriots had a firm foundation reaching 43/0 at the end of the PowerPlay. Fletcher was in imperious form as he raced into the 40s and although he slowed down somewhat as he approached his 50, once that landmark was reached he pressed on the accelerator once again eventually being dismissed for a brilliant 81 from 55 balls. However that was the only knock of substance in the Patriots innings as no other batter was able to stick with Fletcher long enough to help set a more challenging total. The Barbados Royals were excellent in the field, and this was no more typified than Corbin Bosch’s five catches in the outfield, a Hero CPL record. Mayers was to be the biggest beneficiary of the chances that went begging as he survived three drops to guide to the Royals to the cusp of victory before Azam Khan and David Miller saw them over the line with plenty of balls to spare.
english
MLB fans are growing increasingly frustrated with having to watch Shohei Ohtani miss out on the playoffs season after season. The two-way superstar has been one of the few bright spots in a roster that is struggling to get going. Ohtani leads the MLB in several major offensive and defensive categories and looks destined for the 2023 American League MVP award. Despite Ohtani's strong numbers, the Los Angeles Angels are currently 45-46 and have lost nine of their last 10 games. They have dropped to fourth in the American League West and trail the Texas Rangers by seven games. In a recent episode of "Talkin' Baseball," MLB insider Chris Rose added his views on the possibility of an Ohtani trade. Rose believes it is time for the Japanese superstar to move on from an Angels team that is likely to once again miss out on the postseason. "They stink... I want to see Shohei Ohtani play in October!" Rose believes that the team they have now, combined with recent injuries, provides the Angels with little hope of qualifying for the playoffs. Talkin' Baseball Podcast (23:05) Mike Trout suffered a fractured wrist bone prior to the All-Star break. Third baseman Anthony Rendon has been on the sidelines since fouling a ball off his leg against the San Diego Padres on July 4. Catcher Logan O'Hoppe, infielder Zach Neto and reliever Matt Moore are all currently on the sidelines. With the trade deadline less than three weeks away, speculation regarding an Ohtani trade continues. Ohtani signed a one-year, $30 million deal to remain in Anaheim prior to the 2023 season. If he decides not to extend his deal with the Angels, he will become a free agent at the end of the season. This season, Ohtani leads the league in home runs (32), triples (6), OPS (1.050). As a pitcher, he ranks first in opposing batting average (.189) and fourth in strikeouts (132). If Ohtani does decide to test the market, there will be plenty of interest in signing the 29-year-old. The Los Angeles Dodgers and San Francisco Giants have been mentioned as possible landing spots for the 2021 AL MVP. Click here for 2023 MLB Free Agency Tracker Updates. Follow Sportskeeda for latest news and updates on MLB.
english
.container{ width:800px; } #logo { display: block; text-align: center; margin: auto; } #intro { padding-top: 1cm; } p { font-size: 16px; } h2 { color: #006699; } .btn { background: none; padding: 14px 24px; border: 0 none; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; box-shadow: none; text-shadow: none; } .btn-success { border: 2px solid #ff44aa; color: #ff44aa; background: none; box-shadow: none; text-shadow: none; } .btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active, .open > .dropdown-toggle.btn-success .btn-success:active, .btn-success.active { color: #fff; background-color: #ff44aa !important; border-color: #ff44aa !important; box-shadow: none; text-shadow: none; } #about { padding-top: 1cm; display: block; text-align: center; margin: auto; } .footer { background-color: #006699; color: #fff; padding-top: 14px; } .footer ul { list-style: none; } .footer li a { text-decoration: none; color: #ffffff; } .footer li a:hover, .footer li a:focus { color: #ff44aa; }
css
'use strict' // Node.JS standard modules var fs = require('fs') var path = require('path') // 3rd-party modules var Q = require('q') var async = require('async') var cli = require('cli') var findup = require('findup-sync') var ProgressBar = require('progress') // custom modules var cdnSync = require(path.join(__dirname, 'lib')) var ActionList = cdnSync.ActionList var Config = cdnSync.Config var FileList = cdnSync.FileList // promise-bound anti-callbacks // this module var localFiles // lift the default socket cap from 5 to Infinity require('http').globalAgent.maxSockets = Infinity require('https').globalAgent.maxSockets = Infinity function init (options) { var target = path.join(process.cwd(), '.cdn-sync.json') if (options.force) { cli.fatal('`init` not implemented yet') } else { fs.access(target, function (err) { if (!err) { cli.info('remove existing file or use --force') cli.fatal(target + ' already exists') } else { cli.fatal('`init` not implemented yet') } }) } } function testConfig () { var config, dfrd, file dfrd = Q.defer() file = findup('.cdn-sync.json', { nocase: true }) if (file) { try { config = Config.fromFile(file) } catch (err) { cli.fatal(err) } config.validate().fail(function (err) { cli.fatal(err) }) config.testTargets().fail(function () { cli.fatal('configured target fails basic tests') }).done(function () { cli.ok('configured targets pass basic tests') dfrd.resolve(config) }) } else { cli.info('use `cdn-sync init` to get started') cli.fatal('.cdn-sync.json not found for ' + process.cwd()) } return dfrd.promise } function eachTarget (t, options, done) { var actions, info, theseLocalFiles, bar info = function (msg) { cli.info(t.label + ': ' + msg) } t.on('progress', function (action) { cli.info(action.toString()) }) cli.info('applying "' + t.strategy + '" strategy to local file(s)') localFiles.applyStrategy(t.strategy).then(function (files) { theseLocalFiles = files info('scanning...') t.cdn.once('files.length', function (length) { bar = new ProgressBar('[:bar] :current/:total :percent :elapsed :etas', { total: length }) }) t.cdn.on('file:fixed', function () { bar.tick() }) return t.cdn.listFiles() }).then(function (remoteFiles) { actions = new ActionList() actions.compareFileLists(theseLocalFiles, remoteFiles) info(actions.length + ' synchronisation action(s) to perform') return t.cdn.executeActions(actions, options) }).fail(function (err) { cli.fatal(err) }).done(function () { done() }) } function go (options) { var config testConfig().then(function (cfg) { config = cfg cli.info('content root: ' + config.cwd) return FileList.fromPath(config.cwd) }).then(function (files) { localFiles = files cli.info(localFiles.length + ' file(s) found here') async.eachLimit(config.targets, 1, function (t, done) { eachTarget(t, options, done) }, function () { cli.ok('all done!') }) }).done() } cli.parsePackageJson() cli.parse({ 'dry-run': ['n', 'make no changes, only simulate actions'] }, { 'init': 'create a .cdn-sync.json file in this directory', 'test': 'health-check on active .cdn-syn.json file', 'go': 'execute synchronisation (default if no command)' }) /* jslint unparam:true */ cli.main(function (args, options) { switch (cli.command) { case 'init': init(options) break case 'test': testConfig() break default: // 'go' go(options) } }) /* jslint unparam:false */
javascript
Neetu Kapoor keeps sharing priceless throwback pictures of husband Rishi Kapoor on her Instagram profile. On Sunday, Neetu Kapoor took another trip down memory lane and came back with an adorable picture of herself and Rishi Kapoor. In the picture, Rishi Kapoor can be seen smiling with all his heart while Neetu can be seen looking away from the camera. Rishi Kapoor was claimed by cancer on April 30 this year. Sharing the throwback picture, Neetu Kapoor wrote about family and happiness. "Big or small, we all have a battle to fight in our heads. You may have a huge house with all the luxuries and still be unhappy whereas have nothing and be the happiest; it's all a state of mind," she wrote. She also asked her Instafam to value their family and added, "All one needs is a strong mind and hope for a better tomorrow! Live with gratitude, hope, work hard! Value your loved ones as that's your biggest wealth. " Take a look: Within minutes, Neetu's picture was filled with comments from her family and friends. Reacting to the picture, Neetu and Rishi Kapoor's daughter Riddhima Kapoor Sahni commented, "so beautiful ma," and added a heart icon. Designer Manish Malhotra also added heart icons to Neetu's picture. A few weeks ago, Neetu Kapoor trended a great deal with a throwback picture featuring herself with Rishi Kapoor. Sharing the picture, where they can be seen twinning in blue, Neetu wrote a warm poem for Rishi Kapoor: "Wish me luck as you wave me goodbye. Cheerio, here I go on my way. With a cheer, not a tear, in your eye. Give me a smile, I can keep for a while. In my heart, while I'm away. " Neetu Kapoor got married to Rishi Kapoor in January, 1980. They welcomed their daughter Riddhima in September, 1980 and son Ranbir in September, 1982. Rishi Kapoor, star of films such as Amar Akbar Anthony, Chandni, Bobby and many others, was diagnosed with cancer in 2018 after which he underwent treatment in New York for 11 months. He returned to India in September last year. Rishi Kapoor was last seen in Jhootha Kahin Ka.
english
document.addEventListener('DOMContentLoaded', () => { const htmlClasses = document.getElementsByTagName('html')[0].classList; htmlClasses.remove('no-js'); htmlClasses.add('js'); // our menu can use the :target pseudo class to open and close the menu as // a pure CSS solution. however, that may not be the most accessible way to // handle it. these statements grab the menu elements and controls the way // it's displayed using the aria-expanded attribute which is better. const menu = document.querySelector('#main-menu'); const toggler = (event) => { event.preventDefault(); const opening = event.target.getAttribute('aria-label') === 'open main menu'; menu.setAttribute('aria-expanded', opening ? 'true' : 'false'); } document.querySelector('.hamburger').addEventListener('click', toggler); document.querySelector('#main-menu-close').addEventListener('click', toggler); });
javascript
<reponame>caesarchad/DeCore<gh_stars>1-10 pub const PACKET_DATA_SIZE: usize = 1280 - 40 - 8; /// Default port number for JSON RPC API pub const DEFAULT_RPC_PORT: u16 = 10099; /// Default port number for JSON RPC pubsub pub const DEFAULT_RPC_PUBSUB_PORT: u16 = 10100; // The default _drop rate that the cluster attempts to achieve. Note that the actual _drop // rate at any given time should be expected to drift pub const DEFAULT_NUM_DROPS_PER_SECOND: u64 = 10; // At 10 drops/s, 8 drops per slot implies that leader rotation and voting will happen // every 800 ms. A fast voting cadence ensures faster finality and convergence pub const DEFAULT_DROPS_PER_SLOT: u64 = 8; // 1 Epoch = 800 * 4096 ms ~= 55 minutes pub const DEFAULT_SLOTS_PER_EPOCH: u64 = 4096; pub const NUM_CONSECUTIVE_LEADER_SLOTS: u64 = 8; /// The time window of recent block hash values that the treasury will track the signatures /// of over. Once the treasury discards a block hash, it will reject any transactions that use /// that `recent_transaction_seal` in a transaction. Lowering this value reduces memory consumption, /// but requires clients to update its `recent_transaction_seal` more frequently. Raising the value /// lengthens the time a client must wait to be certain a missing transaction will /// not be processed by the network. pub const MAX_HASH_AGE_IN_SECONDS: usize = 120; // This must be <= MAX_HASH_AGE_IN_SECONDS, otherwise there's risk for DuplicateSignature errors pub const MAX_RECENT_TRANSACTION_SEALS: usize = MAX_HASH_AGE_IN_SECONDS; /// This is maximum time consumed in forwarding a transaction from one node to next, before /// it can be processed in the target node #[cfg(feature = "cuda")] pub const MAX_TRANSACTION_FORWARDING_DELAY: usize = 4; /// More delay is expected if CUDA is not enabled (as signature verification takes longer) #[cfg(not(feature = "cuda"))] pub const MAX_TRANSACTION_FORWARDING_DELAY: usize = 12; pub const QUALIFIER: &str = "org"; pub const ORGANIZATION: &str = "bitconch-core"; pub const APPLICATION: &str = "bitconch-core"; pub const KEYS_DIRECTORY: &str = "keys"; pub const N3H_BINARIES_DIRECTORY: &str = "n3h-binaries"; pub const DNA_EXTENSION: &str = "dna.json";
rust
<gh_stars>10-100 { "symbol": "APM", "name": "<NAME>", "description": "Blockchain-powered Customer Rewards Management Platform", "website": "https://apm-coin.com/ ", "communities": { "telegram": "https://t.me/apmcoin_official", "twitter": "https://twitter.com/apmcoin", "medium": "https://medium.com/apmcoin", "github": "https://github.com/apmcoin" } }
json
<gh_stars>0 package com.sdsxer.mmdiary.config; import com.sdsxer.mmdiary.common.Constants; import javax.sql.DataSource; import org.apache.commons.dbcp.BasicDataSource; import org.h2.server.web.WebServlet; import org.springframework.boot.context.embedded.ServletRegistrationBean; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Primary; import org.springframework.context.annotation.Profile; import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder; import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType; import org.springframework.jndi.JndiObjectFactoryBean; /** * Data source config * Created by leon on 2017/9/15. */ @Configuration public class DataSourceConfig { /** * schema.sql and data.sql is spring's default script * import.sql is hibernate's default script * * spring will set hibernate.hbm2ddl.auto to create or create-drop by default when using hibernate * when it find an embedded data source was defined. * @return */ @Profile(Constants.CONFIG_ENV_DEV) @Bean(destroyMethod = "shutdown") @Primary public DataSource dataSourceEmbedded() { return new EmbeddedDatabaseBuilder() .setType(EmbeddedDatabaseType.H2) .setScriptEncoding("UTF-8") .build(); } /** * this enables embedded h2 database access by console * @return */ @Profile(Constants.CONFIG_ENV_DEV) @Bean public ServletRegistrationBean h2servletRegistration() { ServletRegistrationBean registration = new ServletRegistrationBean(new WebServlet()); registration.addUrlMappings("/console/*"); return registration; } /** * use connection pool under qa environment * @return */ @Profile(Constants.CONFIG_ENV_QA) @Bean(destroyMethod = "close") public DataSource dataSourcePool() { BasicDataSource basicDataSource = new BasicDataSource(); basicDataSource.setDriverClassName("com.mysql.jdbc.Driver"); basicDataSource.setUrl("jdbc:mysql://localhost:3306/mmdiary"); basicDataSource.setUsername("root"); basicDataSource.setPassword("<PASSWORD>"); basicDataSource.setInitialSize(5); basicDataSource.setMaxActive(10); return basicDataSource; } /** * use jndi under prod environment * @return */ @Profile(Constants.CONFIG_ENV_PROD) @Bean public DataSource dataSourceLookup() { JndiObjectFactoryBean jndiObjectFactoryBean = new JndiObjectFactoryBean(); jndiObjectFactoryBean.setJndiName("java:comp/env/jdbc/mmdiary"); jndiObjectFactoryBean.setResourceRef(true); jndiObjectFactoryBean.setProxyInterface(javax.sql.DataSource.class); return (DataSource) jndiObjectFactoryBean.getObject(); } }
java
{ "out": [ "/lib/python3.8/site-packages/typecode_libmagic/__init__.py", "/lib/python3.8/site-packages/typecode_libmagic/__pycache__/__init__.cpython-38.pyc", "/lib/python3.8/site-packages/typecode_libmagic/data/magic.mgc", "/lib/python3.8/site-packages/typecode_libmagic/lib/libmagic.so", "/lib/python3.8/site-packages/typecode_libmagic/lib/libz-lm539.so.1", "/lib/python3.8/site-packages/typecode_libmagic/licenses/libmagic/AUTHORS", "/lib/python3.8/site-packages/typecode_libmagic/licenses/libmagic/COPYING", "/lib/python3.8/site-packages/typecode_libmagic/licenses/libmagic/ChangeLog", "/lib/python3.8/site-packages/typecode_libmagic/licenses/libmagic/INSTALL_RECEIPT.json", "/lib/python3.8/site-packages/typecode_libmagic/licenses/libmagic/README", "/lib/python3.8/site-packages/typecode_libmagic/licenses/zlib/ChangeLog", "/lib/python3.8/site-packages/typecode_libmagic/licenses/zlib/INSTALL_RECEIPT.json", "/lib/python3.8/site-packages/typecode_libmagic/licenses/zlib/README", "/lib/python3.8/site-packages/typecode_libmagic-5.39.210223.dist-info/INSTALLER", "/lib/python3.8/site-packages/typecode_libmagic-5.39.210223.dist-info/METADATA", "/lib/python3.8/site-packages/typecode_libmagic-5.39.210223.dist-info/README.rst", "/lib/python3.8/site-packages/typecode_libmagic-5.39.210223.dist-info/RECORD", "/lib/python3.8/site-packages/typecode_libmagic-5.39.210223.dist-info/REQUESTED", "/lib/python3.8/site-packages/typecode_libmagic-5.39.210223.dist-info/WHEEL", "/lib/python3.8/site-packages/typecode_libmagic-5.39.210223.dist-info/bsd-new.LICENSE", "/lib/python3.8/site-packages/typecode_libmagic-5.39.210223.dist-info/bsd-original.LICENSE", "/lib/python3.8/site-packages/typecode_libmagic-5.39.210223.dist-info/bsd-simplified-darwin.LICENSE", "/lib/python3.8/site-packages/typecode_libmagic-5.39.210223.dist-info/bsd-simplified.LICENSE", "/lib/python3.8/site-packages/typecode_libmagic-5.39.210223.dist-info/direct_url.json", "/lib/python3.8/site-packages/typecode_libmagic-5.39.210223.dist-info/entry_points.txt", "/lib/python3.8/site-packages/typecode_libmagic-5.39.210223.dist-info/gpl-1.0-plus.LICENSE", "/lib/python3.8/site-packages/typecode_libmagic-5.39.210223.dist-info/gpl-1.0.LICENSE", "/lib/python3.8/site-packages/typecode_libmagic-5.39.210223.dist-info/isc.LICENSE", "/lib/python3.8/site-packages/typecode_libmagic-5.39.210223.dist-info/libmagic.ABOUT", "/lib/python3.8/site-packages/typecode_libmagic-5.39.210223.dist-info/libmagic.NOTICE", "/lib/python3.8/site-packages/typecode_libmagic-5.39.210223.dist-info/public-domain.LICENSE", "/lib/python3.8/site-packages/typecode_libmagic-5.39.210223.dist-info/top_level.txt", "/lib/python3.8/site-packages/typecode_libmagic-5.39.210223.dist-info/typecode-libmagic.ABOUT", "/nix-support/propagated-build-inputs" ] }
json
Fortnite Battle Royale players now have the opportunity to purchase Destiny 2 cosmetic items. Different items have been introduced with the Fortnite x Destiny 2 collaboration, including three skins, pickaxes, and the Investigate emote. It turns out that the Investigate emote is secretly reactive to Fortnite's Ariana Grande skin, although no one really knows whether this was intended or not. Chances are that this is just a visual glitch that was accidentally released to the game. Ariana Grande is one of the most popular celebrities to be featured in Fortnite Battle Royale. The artist had her own concert in the game on August 7, 2021, and it was glorious. A few months after the singer's live event, Epic Games released another variant of her skin called Spacefarer Ariana Grande. This is an Icon Series skin that has multiple styles. The latest Fortnite emote, which was added with the Destiny 2 collaboration, has an unusual effect when used on Ariana Grande's Spacefarer skin. The emote completely changes the skin, and the result looks really cool. This reaction was discovered by GKI, a popular YouTuber who is best known for posting different glitches. This is most likely just another glitch, but considering that it doesn't break the game, Epic Games may not fix it very soon. The emote makes the skin look even more amazing, especially its Starfire variant. The variant has a combination of black and red colors, but the emote turns the entire skin into a bright red color. Unfortunately, the emote only lasts for a couple of seconds. Once it ends, the skin will revert to its original look. It's important to note that Ariana Grande's Spacefarer skin has its own built-in emote, which could be the reason why it's secretly reactive to the Investigate emote. As you can see in the video above, Ariana Grande's skin allows players to change their styles on the go with a built-in emote. Considering that GKI's channel is very popular, Epic Games has probably already seen the glitch, which means that it could be fixed soon. The glitch, however, is not very important and does not ruin the gameplay, so the development team may take their time. The next update is scheduled for Tuesday, August 30. This will be a major Fortnite update that will bring a lot of new content and several bug fixes. The Ariana Grande Spacefarer bug fix could also come with it. This skin is relatively rare, as it was last seen in the Item Shop on March 17, 2022. It hasn't been out since Chapter 3 Season 2, which makes it one of the rarest skins in the current chapter.
english
# by <NAME> # Remove control flag # Reference: https://stackoverflow.com/a/10140333/81306 # This code snippet reads up to the end of the file n = 16 file = 'foobar.file' def readfile(file, n): with open(file, 'rb') as fp: chunk = fp.read(n) if chunk == '': # end of file, stop running. return print(chunk) # process(chunk) readfile(file, n)
python
Discounted prices, car-share programmes and at least one million more public charging stations are among the ways California will try to make electric cars easier to buy and drive as it phases out the sale of gas-powered cars. But the state won’t force automakers to participate in any equity programmes designed to ensure people of all income levels can buy electric cars. “This rule had the opportunity to really set the path for lower-income households to have increased access and affordability for electric vehicles, but it missed the mark,” said Roman Partida-Lopez, legal counsel for transportation equity with The Greenlining Institute. Instead, car companies will get extra credit toward their sales quotas if they make cars available to car share or other programs aimed at disadvantaged Californians. Democratic Governor Gavin Newsom has also pledged billions for programmes aimed at getting used or new electric cars into the hands of low-income Californians. The Stockton Mobility Collective is one example. Designed to increase transportation options in disadvantaged parts of the city, the collective will set up five to seven neighbourhood charging stations with 30 electric cars people can rent out on an hourly or daily basis. The first cars and charging stations launched last week in an apartment complex. The programme got USD 7.4 million from the state. Car ownership in South Stockton is low, so interest in the program is high, said Christine Corrales, senior regional planner for the programme. But its just the first step in what must be a major effort to make electric vehicles a realistic option for lower-income Californians. “If the infrastructure is not available locally, it may be challenging to encourage people to adopt and switch over,” she said. “That’s something that we’re trying to be proactive about.” The regulations passed by the California Air Resources Board last week say that 2035 the state will require automakers to sell only cars that run on electricity or hydrogen, though some can be plug-in hybrids that use gas and batteries. People will still be able to buy used cars that run on gas, and car companies will still sell some plug-in hybrids. Beyond questions of affordability and access, the state will need to overcome the scepticism of people who think electric cars simply aren’t for them. “We’ve got to get past the elitism that’s involved with owning an electric car,” said Daniel Myatt, who brought an electric car in 2020 through the state’s Clean Cars 4 All programme, which he qualified for when he was out of work due to an illness. Since 2015, more than 13,000 electric cars have been purchased through the programme. It offers people up to USD 9,500 for people to trade in their gas cars for electric or hybrid models. About 38 percent of the money spent on a separate rebate programme has gone toward low-income or disadvantaged communities, and the state has spent hundreds of millions of dollars building charging stations in those neighbourhoods. Today, though, there are just 80,000 public charging stations around the state, far short of the 1.2 million the state estimates it needs by 2030. Under the new regulations, car makers can get extra credit toward their sales quotas if they participate in several equity programmes. Those programmes include: Selling cars at a discount to car-share or other community programmes; making sure cars that come off lease go to California dealers that participate in trade-in programs; or selling cars at a discounted price. To meet the third option, cars would have to cost less than USD 20,275 and light-duty trucks less than USD 26,670 to qualify for the extra credit. It only applies to model years 2026 through 2028, and there’s no restriction on who those cars can be sold to. Southern California EVen Access is using a USD 2.5 million state grant to install at least 120 chargers across a 12-county region, at apartment complexes and public places like library parking lots. Apartment complex owners can get USD 2,500 per charger installed on the property. Overall, the state should do more public messaging about the programmes that are available to buy electric vehicles so that all communities can enjoy the benefits of fewer cars that spew emissions and pollution, said Lujuana Medina, environmental initiatives manager for Los Angeles County. The state must also invest in a workforce that can support an electric transportation economy, she said. “There will have to be some really progressive public purpose programmes that help drive electric vehicle adoption and sales,” she said. Alicia Young of Santa Clara, California, was unsure when she first heard about the state’s trade-in programme. But she eventually pursued the deal, leaving behind her 2006 Nissan for a plug-in hybrid from Ford. It cost USD 9,000 after her trade-in value. The car runs more smoothly and just as fast as any gas-powered car she’s ever owned. She mostly runs it on battery charges, though she still fills the gas tank about once a month. The apartment complex where she lives with her mother does not have a car charger, so she often relies on charging stations at the grocery store or other public places. She’s shared information about the trade-in programme with her colleagues at the senior retirement centre where she works, but many of them seem mistrustful, she said. The state could speed adoption by having public messengers from a wide variety of backgrounds to help build trust in electric cars, she said. “It’s a little bit different at first, but that’s normal with any new car,” she said.
english
<filename>css/main.css<gh_stars>0 @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@500;700&display=swap"); /* primary */ /* secondary */ /* neutral */ html { font-size: 18px; } body { text-align: center; font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 1rem; background: #E8E6EB; } h1, h2, h3 { color: #232127; font-weight: 700; padding: 0 1rem; } p { color: #9e9aa7; padding: 0 1rem; } .cta { background: #2acfcf; height: 2.8rem; border-radius: 2.8rem; color: #ffffff; border: none; padding: 0 3rem; font-weight: 700; cursor: pointer; } .cta:hover { -webkit-filter: brightness(1.1); filter: brightness(1.1); } header { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; -webkit-box-align: center; -ms-flex-align: center; align-items: center; background: #ffffff; padding: 0 1rem; height: 70px; padding-bottom: 2rem; } /* menu hamburguesa */ nav { width: calc(100vw - 2rem); background-color: #3b3054; position: absolute; background-image: url("../images/bg-pattern-mobile-nav.svg"); background-position: bottom; background-repeat: no-repeat; top: 70px; left: 0; right: 0; margin: auto; -webkit-transition: .5s ease; transition: .5s ease; z-index: -1; border-radius: .7rem; opacity: 0; } nav hr { height: .5px; border: 0; background-color: rgba(255, 255, 255, 0.2); margin: 0 1rem; } nav ul { list-style: none; margin: 0; padding: 0; color: #ffffff; text-transform: capitalize; text-align: center; font-weight: bold; padding: .5rem 1.5rem; } nav ul li { padding: 8px 0; margin: .7rem 0; } nav ul .nav__registrarse { width: 100%; } .nav-active { opacity: 1; z-index: 1000; } .menu-btn { position: relative; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; width: 27px; height: 27px; cursor: pointer; -webkit-transition: .5s ease; transition: .5s ease; text-align: left; } .menu-btn .menu-btn__burger, .menu-btn .menu-btn__burger::before, .menu-btn .menu-btn__burger::after { width: 27px; height: 3px; background: #bfbfbf; border-radius: 5px; -webkit-transition: .3s ease; transition: .3s ease; } .menu-btn .menu-btn__burger::before, .menu-btn .menu-btn__burger::after { content: ""; position: absolute; } .menu-btn .menu-btn__burger::before { -webkit-transform: translateY(-8px); transform: translateY(-8px); } .menu-btn .menu-btn__burger::after { -webkit-transform: translateY(8px); transform: translateY(8px); } /* animacion de menu hamburguesa */ .menu-btn.open .menu-btn__burger, .menu-btn.open .menu-btn__burger::before, .menu-btn.open .menu-btn__burger::after { -webkit-transform: translateX(-10px); transform: translateX(-10px); background: transparent; -webkit-box-shadow: none; box-shadow: none; /*-15*/ } .menu-btn.open .menu-btn__burger::before { -webkit-transform: rotate(45deg) translate(7px, -7px); transform: rotate(45deg) translate(7px, -7px); background: #bfbfbf; } .menu-btn.open .menu-btn__burger::after { -webkit-transform: rotate(-45deg) translate(7px, 7px); transform: rotate(-45deg) translate(7px, 7px); background: #bfbfbf; } main { overflow-x: hidden; } .home { background: #ffffff; position: relative; padding-bottom: 12rem; } .home .home__img { width: 120%; margin: auto; position: relative; right: -8%; } .home p { margin-bottom: 2rem; } .home > button { margin-bottom: 5rem; border: 3px solid red; } .link__input { padding: 1rem 1.5rem; background: grey; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; border-radius: .5rem; background-image: url(../images/bg-shorten-mobile.svg); background-repeat: no-repeat; background-position: right top; background-size: cover; background-color: #3b3054; position: relative; top: 0; right: 0; left: 0; margin: auto 1rem; -webkit-transform: translateY(-50%); transform: translateY(-50%); position: relative; } .link__input > * { height: 3rem; margin: .5rem 0; border-radius: .3rem; border: none; outline: 0; } .link__input input { padding: 0 1rem; } .link__input input:focus { outline: 0; } .error-message { color: #f46262; font-style: italic; position: relative; top: 0; right: 0; text-align: left; margin: 0; margin-bottom: .5rem; padding: 0; margin-top: .2rem; height: auto; font-size: 0.9rem; display: none; } .error { -webkit-box-shadow: 0px 0px 0px 3px #f46262; box-shadow: 0px 0px 0px 3px #f46262; } .error::-webkit-input-placeholder { color: #f46262; } .error:-ms-input-placeholder { color: #f46262; } .error::-ms-input-placeholder { color: #f46262; } .error::placeholder { color: #f46262; } #link-container { position: relative; top: -4rem; } #link-container * { padding: .7rem 0; } #link-container .link-acortado { background: #ffffff; border-radius: 5px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; padding: 1rem; margin: 1rem 1rem; word-wrap: break-word; } #link-container .link-acortado .link__long { border-bottom: 1px solid rgba(0, 0, 0, 0.2); text-decoration: none; color: inherit; width: 100%; } #link-container .link-acortado .link__right-section { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; width: 100%; } #link-container .link-acortado .link__right-section a { padding: 1rem 0; color: #2acfcf; text-decoration: none; } #link-container .link-acortado .link__right-section button { background: #2acfcf; border: none; border-radius: 5px; width: 100%; color: #ffffff; } #link-container .link-acortado .link__right-section .btn-copiado { background: #3b3054; } .estadisticas { position: relative; } .estadisticas > p { margin-bottom: 8rem; } .estadisticas .card__container .card { position: relative; background: #ffffff; padding: 1rem; padding-top: 4rem; margin: 6rem 1rem; border-radius: 0.4rem; } .estadisticas .card__container .card img { position: absolute; left: 0; right: 0; top: 0; -webkit-transform: translateY(-50%); transform: translateY(-50%); margin: auto; width: 2rem; } .estadisticas .card__container .card::before { content: ""; width: 5rem; height: 5rem; border-radius: 50%; background: #3b3054; position: absolute; left: 0; right: 0; top: -2.5rem; margin: auto; } .boost { padding: 5rem 1rem; background-color: #3b3054; background-image: url(../images/bg-boost-mobile.svg); background-repeat: no-repeat; background-size: cover; } .boost h2 { color: #ffffff; font-size: 1.4rem; } footer { background: #35323e; color: #ffffff; padding: 3rem 1rem; } footer svg { margin-bottom: 2rem; } footer .footer__block { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; margin-bottom: 2rem; } footer .footer__block p { font-weight: bold; font-size: 1.1rem; color: #ffffff; margin-bottom: 2rem; } footer .footer__block a { color: #9e9aa7; text-decoration: none; margin-bottom: 1rem; font-size: .9rem; } footer .footer__block a:hover { color: #2acfcf; } footer .social-media { font-size: 1.3rem; } footer .social-media i { margin: 0 .5rem; } footer .social-media i:hover { color: #2acfcf; } .attribution { font-size: 11px; text-align: center; } .attribution a { color: #3e52a3; } @media (min-width: 1200px) { body { max-width: 1440px; margin: auto; } .cta { background: #2acfcf; height: 2.5rem; border-radius: 2.5rem; color: #ffffff; border: none; padding: 0 2rem; font-weight: 700; } header { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; -webkit-box-align: center; -ms-flex-align: center; align-items: center; background: #E8E6EB; padding: 0 10rem; height: 70px; padding-bottom: 4rem; padding-top: 1.5rem; background: #ffffff; margin-bottom: 0; } header img { width: 7rem; margin-right: 2rem; } /* menu hamburguesa */ nav { width: auto; background-color: inherit; position: static; background-image: none; -webkit-transition: none; transition: none; z-index: 2; border-radius: 0; opacity: 1; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; -webkit-box-align: center; -ms-flex-align: center; align-items: center; margin: 0; width: calc(100% - 7rem); } nav ul { list-style: none; padding: 0; color: #9e9aa7; text-transform: capitalize; padding: 0; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; margin: 0; } nav ul hr { display: none; } nav ul li { padding: 0; margin: 0 1rem; cursor: pointer; font-size: .9rem; } nav ul li:hover { color: #2acfcf; } nav ul .nav__registrarse { width: auto; font-size: .9rem; } .menu-btn { display: none; } main .home { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: horizontal; -webkit-box-direction: reverse; -ms-flex-direction: row-reverse; flex-direction: row-reverse; -webkit-box-align: center; -ms-flex-align: center; align-items: center; padding: 0 10rem; background: #ffffff; padding-bottom: 10rem; position: relative; } main .home .home__img { margin: 0; position: relative; right: -20%; width: 60%; height: 60%; margin-left: -20%; } main .home .home__content { text-align: left; width: 60%; padding-right: .5rem; background: #ffffff; } main .home .home__content h1 { font-size: 4rem; margin-bottom: .5rem; padding-left: 0; width: 98%; } main .home .home__content p { width: 80%; margin-top: 0; margin-bottom: 2rem; padding-left: 0; } main .home .home__content button { height: 2.8rem; border-radius: 2.8rem; padding: 0 3rem; } .link__input { margin: 0 10rem; padding: 2rem 3rem; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; -webkit-box-align: center; -ms-flex-align: center; align-items: center; border-radius: .7rem; background-image: url(../images/bg-shorten-desktop.svg); margin: auto 10rem; position: relative; } .link__input > * { height: 3rem; margin: .5rem 0; border-radius: .5rem; border: none; } .link__input input { padding: 0 1rem; width: 100%; margin-right: 1.3rem; } .link__input button { min-width: 11rem; } .link__input .error-message { color: #f46262; font-style: italic; position: absolute; top: 6rem; left: 3rem; text-align: left; margin: 0; margin-bottom: .5rem; padding: 0; margin-top: .2rem; height: auto; font-size: 0.9rem; display: none; } #link-container { position: relative; top: -4rem; } #link-container * { padding: .7rem 0; } #link-container .link-acortado { background: #ffffff; border-radius: 5px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; padding: 0.5rem 3rem; margin: 1rem 10rem; word-wrap: break-word; } #link-container .link-acortado .link__long { border-bottom: none; text-decoration: none; color: inherit; text-align: left; } #link-container .link-acortado .link__right-section { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; -webkit-box-pack: end; -ms-flex-pack: end; justify-content: flex-end; width: 50%; } #link-container .link-acortado .link__right-section a { padding: 1rem 0; color: #2acfcf; text-decoration: none; } #link-container .link-acortado .link__right-section button { background: #2acfcf; border: none; border-radius: 5px; width: auto; color: #ffffff; padding: 1rem 2rem; margin-left: 2rem; cursor: pointer; -webkit-transition: .5s ease; transition: .5s ease; } #link-container .link-acortado .link__right-section button:hover { -webkit-transform: translateY(-2px); transform: translateY(-2px); -webkit-box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.23); box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.23); } #link-container .link-acortado .link__right-section .btn-copiado { background: #3b3054; } .estadisticas h2 { font-size: 2rem; } .estadisticas > p { margin-bottom: 8rem; width: 25rem; margin: auto; line-height: 200%; } .estadisticas .card__container { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; margin: 0 10rem; text-align: left; } .estadisticas .card__container .card { position: relative; padding: 1rem; padding-top: 4rem; margin: 6rem 0; font-size: .9rem; line-height: 150%; } .estadisticas .card__container .card:nth-child(1) { -webkit-transform: translateY(-12%); transform: translateY(-12%); margin-right: 2rem; } .estadisticas .card__container .card:nth-child(3) { -webkit-transform: translateY(12%); transform: translateY(12%); margin-left: 2rem; } .estadisticas .card__container .card img { position: absolute; left: -10rem; } .estadisticas .card__container .card::before { content: ""; width: 5rem; height: 5rem; border-radius: 50%; background: #3b3054; position: absolute; left: -10rem; right: 0; top: -2.5rem; margin: auto; } .boost { padding: 3rem 10rem; background-image: url(../images/bg-boost-desktop.svg); } .boost h2 { color: #ffffff; font-size: 2rem; } footer { padding: 4rem 10rem; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; text-align: left; -webkit-box-align: start; -ms-flex-align: start; align-items: flex-start; } footer svg { margin-bottom: 0; cursor: pointer; } footer .footer__block { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; margin: 0; padding: 0; } footer .footer__block p { font-weight: bold; font-size: 1.1rem; color: #ffffff; margin: 0; margin-bottom: 2rem; padding: 0; } footer .footer__block a { color: #9e9aa7; text-decoration: none; margin-bottom: 1rem; font-size: .9rem; } footer .social-media { font-size: 1.3rem; } footer .social-media i { margin: 0 .5rem; cursor: pointer; } } /*# sourceMappingURL=main.css.map */
css
<filename>jhipster_rng_vulnerability/save_points/g__farzad-sedaghatbin__bebarbiarCore.json { "project_name": "farzad-sedaghatbin/bebarbiarCore", "files": { "/src/main/java/ir/anijuu/products/service/util/RandomUtil.java": 3 }, "pull_request": "https://github.com/farzad-sedaghatbin/bebarbiarCore/pull/1", "report": { "files_fixed": 1, "vulnerabilities_fixed": 3 } }
json
Russia’s envoy to Afghanistan says the Taliban must form an inclusive government and live up to international “expectations” on human rights if they want to be recognized by governments around the world. On Wednesday, Russia hosted talks on Afghanistan involving senior representatives of the Taliban and the neighboring countries. The Russian government invited the Taliban and other Afghan parties for talks, voicing hope they will help encourage discussions and tackle Afghanistan’s challenges. Elsewhere in his remarks, Kabulov said a joint statement from all the 10 participating countries concluding the talks would call on the United Nations to convene a donor conference to raise funds for Afghanistan. Russian Foreign Minister Sergei Lavrov earlier opened the talks and emphasized that “forming a really inclusive government fully reflecting the interests of not only all ethnic groups but all political forces of the country” is necessary to achieve a stable peace in Afghanistan. Lavrov also commended the Taliban for their efforts to stabilize the military-political situation in Afghanistan and ensure the operation of state structures. At the same time, the Russian foreign minister underlined the importance of respecting human rights and pursuing well-balanced social policies, adding that he discussed those issues with the Taliban delegation before the talks. Lavrov said Russia would soon dispatch a shipment of humanitarian aid to Afghanistan and urged the international community to quickly mobilize resources to prevent a humanitarian crisis in the country. Last week, President Vladimir Putin of Russia noted that there must be no rush in officially recognizing the Taliban as the new rulers of Afghanistan, but emphasized the need to engage in talks with them.
english
{"t":"pa'icelen","h":[{"d":[{"f":"給…力量;讓…使勁、出力。","e":["`Pa'icel~`e~`n~ `a~ `dademak~, `aka~ `talalikor~ `no~ `tao~ `a~ `dademak~.加把勁工作,不要落後於別人。","`Pa'icel~`e~`n~ `ko~ `paliding~ `ako~ `a~ `micoroh~ !請用力推我的車!"]}]}],"stem":"'icel"}
json
Dait na matien na turadi nalamin ta ira harubaal. 1-2 Jon 21:15-17; Apostolo 20:28Mu ira tena harbalaurai ta ira lotu, iou bileng tike tamat hoke mu. Iou ga nes ira harangungut tane Krais ma iou nong iou hininaawas ine. Iou nong ni hatur kawase bileng no minamar ing na harapuasa. Io kaie, iou saring mu be mu na balaure ira matanabar tane God nalamin ta mu hoke ira ut na balaura sipsip di la balbalaure ira nudi sipsip. I tahut be mu na kanan ura balbalaure di hoke God i sip be mu na gil hobi. Waak mu balaure di hoke be tikenong mon i hagut mu. Waak mu gil ikin ra pinapalim uta barbarat mon. Iesene mu na gil ie kinong mu manga sip be mu na papalim hobi. 3 2 Korin 1:24; Pilipai 3:17; Taitus 2:7Waak mu lik hatamat mu ura kurkure hadades ira matanabar ing God te ter ta mu be mu na balaure di. Iesene be ira numu tintalen na haruat ma ra tahut na hapupuo be di na mur, hoke ira sipsip di la gilgil hobi. 4 Ma be no Tamat na Ut na Balaura Sipsip na harapuasa, mu na hatur kawase no minamar, hoke ra bilai na balaparik ing pai nale panim leh ira minamar tana. 5 Epesas 5:21; Jemes 4:6Ma hobi bileng ta mu ira marawan. Mu na hasiksik ter mu ta ira numu tena harbalaurai ta ira lotu. Ma mu bakut, mu na matien na turadi harbasie ta mu kinong no nianga tane God di ga pakat ie i tange be, “God i malok leise di ira ut na latlaat, 6 Matiu 23:12; Luk 14:11; Jemes 4:10Io, mu na hasiksik ter um mu ra hena no dades na lumane God waing inage hatamat mu tano pana bung haruat ma no nuno sinisip. 7 Matiu 6:25-30Mu na ter leise ira numu nginarau na bunurut tana kinong i manga lilik uta mu ma i balaure mu. 8 1 Tesolonaika 5:6Na palai ira numu lilik ma mu na balaure timaan mu! No numu ebar Satan i wawar hanana hoke tike laion i sisilih ta tikenong be na kanam kudule. 9 Epesas 6:11-13; Jemes 4:7Iesene mu na tur dades ta ira numu nurnur ma mu na tur bat ie kinong mu nunure be ira hinsaa mu tano hinsane Krais kira ra ula hanuo di puspusak kakarek ra mangana harangungut bileng. 10 Iesene no harangungut pai nale ubal halawaas baak mu, ma namur God no burwana ta ira harmarsai bakut nong ga tato mu be mu na lala tano nuno minamar hathatikai naramon tane Krais, io, na hanunuhuan mu ma ina hadades mu be mu na manga dikdikit. 11 Aie nong i hatur kawase ira dades hathatikai. A tutuno. Pita ga haragat di ma iga haatne di. 12 Apostolo 15:22,37-40; 12:2,25; 13:13Iou pakat ikin ra da pakpakat ma no harharahut tane Sailas no tasi dait. A tutuno na turadi ie. Iou ura haragat mu ma iou ura hininaawas palai be ikin no tutuno na harmarsai tane God. Mu na tur dades tana. 13 2 Timoti 4:11Ira matanabar na lotu kira Babilon ing God te gilamis di tikai ma mu, di haatne mu. Hobi bileng no nugu bulu Mak. 14 Mu na haatne harbasiane mu ma ra tamat na harmarsai. A malum ta mu bakut ing mu kis ter tane Krais.
english
{"status":200,"data":{"totalSubs":65,"subsInEachSource":{"feedly":55,"inoreader":0,"feedsPub":10},"failedSources":{"inoreader":"RSS feed not found on Inoreader"}},"lastModified":1643587955070}
json
Editor: OPPO, the leading global smart device brand, has announced the launch of OPPO A54 in Nepal. Taiwan Semiconductor Manufacturing Co, the world’s biggest contract producer of processor chips, said Friday its revenue rose 16. 7% in the latest quarter over a year ago. Xiaomi, a global technology leader, has announced another addition to its product category in Nepal. Editor: KMC-02, UttarDhoka,
english
{% extends custom_template("base.html") %} {% block top %} {% if mode != 'dataentry' %} {{ parent() }} {% endif %} {% endblock %} {% block footer %} {% if mode != 'dataentry' %} {{ parent() }} {% endif %} {% endblock %} {% block script %}{% endblock %} {% block onload %}{% endblock %} {% block extrahead %} <link rel="stylesheet" href="{{ constant("STATIC_URL") }}css/decs-locator.css" type="text/css" media="screen"> <script language="javascript" type="text/javascript" src="{{ constant("STATIC_URL") }}js/jquery-ui-1.10.1.custom.min.js "></script> <link rel="stylesheet" href="{{ constant("STATIC_URL") }}css/ui-lightness/jquery-ui-1.10.1.custom.min.css" type="text/css" media="screen"> <script> // autocomplete $(document).ready(function() { $( "#query" ).autocomplete({ source: function( request, response ) { $.ajax({ url: '{{ constant("SEARCH_URL") }}lib/decs-autocomplete.php?lang={{ lang }}', dataType: "jsonp", data: { count: 100, query: request.term }, success: function( data ) { response( $.map( data.descriptors, function( item ) { return { label: __highlight(item.name, request.term), value: item.id } })); } }); }, select: function( event, ui){ submit_tree_id(ui.item.value); }, minLength: 3, }) .data('ui-autocomplete')._renderItem = function( ul, item ) { return $( "<li></li>" ) .data( "ui-autocomplete-item", item ) .append( '<a>' + item.label + '</a>' ) .appendTo( ul ); }; }); function __highlight(s, t) { var matcher = new RegExp("("+$.ui.autocomplete.escapeRegex(t)+")", "ig" ); return s.replace(matcher, "<strong>$1</strong>"); } // submit autocomplete form function submit_tree_id(value){ $("#tree_id").val(value); $("#searchForm").submit(); } function view_tree(id){ $("#tree_id").val(id); $("#searchForm").submit(); } // css tree view $(document).ready(function () { $('ul.tree li:last-child').addClass('last'); }); // submit search form function make_search_query(){ var query = ""; var qlf_selected = $('input:checkbox:checked.qlf').map(function () { return this.value; }).get(); // if user select qualifiers make combination query if (qlf_selected.length > 0){ $.each(qlf_selected, function(index, qlf){ $('<input>').attr({ type: 'hidden', id: 'decslocator_{{qlf}}', name: 'filter[{{ filter_prefix }}][]', value: '{{ decs.tree.self.term_list.term }}/' + qlf }).appendTo( $('#searchForm') ); }); }else{ $('<input>').attr({ type: 'hidden', id: 'decslocator', name: 'filter[{{ filter_prefix }}][]', value: '{{ decs.tree.self.term_list.term }}' }).appendTo( $('#searchForm') ); } $("#searchForm").attr('action', '{{ constant("SEARCH_URL") }}'); $('#searchForm').submit(); } function postMsg(descriptor) { window.opener.postMessage(descriptor, '*'); window.close(); } function showQualifierInfo(qlf_id) { var lng = {% if lang != 'pt' %}'{{lang}}/'{% else %}'/'{% endif %}; var decs_url = 'http://decs.bvsalud.org/' + lng + 'ths/resource/?id=' + qlf_id + '#myTabContent'; window.open(decs_url, 'decsqlf', 'scrollbars=1,width=630,height=650'); } </script> {% endblock %} {% block content %} {% block breadcrumb %} {% if mode != 'dataentry' %} {% include custom_template("top-breadcrumb.html") %} {% else %} <div class="resultsFor"> <a href="#">Fechar</a> </div> {% endif %} {% endblock %} <h2> {{ texts.DECS_LOOKUP }}</h2> <form action="" name="lookup" id="searchForm"> {% for key, value in params %} {% if key != "filter" and key != "submit" %} {% if key == "from" or key == "page" %} <input type="hidden" name="{{ key }}" value="1"> {% else %} <input type="hidden" name="{{ key }}" value="{{ value }}"> {% endif %} {% else %} {% for name, items in value %} {% for item in items %} <input type="hidden" name="filter[{{ name }}][]" value="{{ item }}"> {% endfor %} {% endfor %} {% endif %} {% endfor %} <input type="hidden" name="tree_id" id="tree_id" value=""/> <input type="text" name="term" id="query" class="text-input" autocomplete="off" /> </form> <div id="hierarchy"> <h2><a href="#" onclick="view_tree('')">{{ texts.HIERARCHY }}</a></h2> {# CASE 1: LEVEL 0 OF DECS HIERARCY #} {% if decs.tree.term_list.term is defined %} <ul class="tree"> {% for t_list in decs.tree.term_list %} {% if t_list.attributes.lang == lang %} {% for term in t_list %} <li><a href="#" onclick="view_tree('{{ term.attributes.tree_id }}')">{{ term }}</a></li> {% endfor %} {% endif %} {% endfor %} </ul> {% else %} {# CASE 2: TERM WITH ANCESTORS #} {% if decs.tree.ancestors.term_list.term is defined %} {% set tree_count = 1 %} {% for i_tree in ancestors_i_tree %} {% for current_term in i_tree %} <ul class="tree"> <li> {% if loop.first %}{{ tree_count }}.{% endif %} <a href="#" onclick="view_tree('{{ current_term|substring_before('|') }}')">{{ current_term|substring_after('|') }} </a> </li> {% if loop.last and tree_count == 1 %} <ul> <!-- preceding_sibling - self --> {% if decs.tree.preceding_sibling.term_list.term is defined %} <li><!-- preceding_sibling --></li> {% for term in decs.tree.preceding_sibling.term_list.term %} <li><a href="#" onclick="view_tree('{{ term.attributes.tree_id }}')">{{ term }}</a></li> {% endfor %} {% endif %} <li>{{ decs.tree.self.term_list.term }}</a></li> <ul> <!-- descending --> {% if decs.tree.descendants.term_list.term is defined %} <li><!-- descendants --></li> {% for term in decs.tree.descendants.term_list.term %} <li><a href="#" onclick="view_tree('{{ term.attributes.tree_id }}')">{{ term }}</a></li> {% endfor %} {% endif %} </ul> <!-- /descending --> {% if decs.tree.following_sibling.term_list.term is defined %} <li><!-- following_sibling --></li> {% for term in decs.tree.following_sibling.term_list.term %} <li><a href="#" onclick="view_tree('{{ term.attributes.tree_id }}')">{{ term }}</a></li> {% endfor %} {% endif %} </ul> <!-- /preceding_sibling - self --> {% endif %} {% endfor %} {# add at final term for the last tree #} {% if tree_count != 1 %} <ul> <li>{{ decs.tree.self.term_list.term }}</a></li> </ul> {% endif %} {# close ancestors itens #} {% for current_term in i_tree %} </ul> <!-- /ancestor --> {% endfor %} <br/> {% set tree_count = tree_count + 1 %} {% endfor %} {% else %} {# else if dont have ancestors #} {# CASE 3: TERM WITHOUT ANCESTORS #} <ul class="tree"> <!-- descending --> <li>{{ decs.tree.self.term_list.term }}</a></li> <ul> {% if decs.tree.descendants.term_list.term is defined %} <li><!-- descendants --></li> {% for term in decs.tree.descendants.term_list.term %} <li><a href="#" onclick="view_tree('{{ term.attributes.tree_id }}')">{{ term }}</a></li> {% endfor %} {% endif %} </ul> </ul> <!-- /descending --> {% endif %} {# close if have ancestors #} {% endif %} </div> <div id="details"> {% if decs.record_list.record is defined %} <form action="" onsubmit="make_search_query(); return false" id="searchDocsTrigger"> {% if lang == 'pt' %} <h2>{{ decs.record_list.record.descriptor_list.descriptor.2 }} / <small>{{ decs.record_list.record.descriptor_list.descriptor.0 }} / {{ decs.record_list.record.descriptor_list.descriptor.1 }}</small></h2> {% elseif lang == 'es' %} <h2>{{ decs.record_list.record.descriptor_list.descriptor.1 }} / <small>{{ decs.record_list.record.descriptor_list.descriptor.0 }} / {{ decs.record_list.record.descriptor_list.descriptor.2 }}</small></h2> {% else %} <h2>{{ decs.record_list.record.descriptor_list.descriptor.0 }} / <small>{{ decs.record_list.record.descriptor_list.descriptor.1 }} / {{ decs.record_list.record.descriptor_list.descriptor.2 }}</small></h2> {% endif %} {% if mode is defined and mode == 'dataentry'%} {% if decs.record_list.record.tree_id_list.tree_id.0|trim|slice(0,1) != 'Q' %} <input type="button" value="{{ texts.SELECT }}" onclick="postMsg('{{ decs.tree.self.term_list.term }}|^d{{ decs.record_list.record.attributes.mfn }}');" class="btn-custom btn-large" /> {% endif %} {% else %} <input type="submit" value="{{ texts.SEARCH_DOCUMENTS }}" class="btn-custom btn-large" /> {% endif %} <div class="spacer"></div> {% if decs.record_list.record.definition.occ.attributes.n != '' or decs.record_list.record.synonym_list.synonym != '' %} <div class="definition"> {{ decs.record_list.record.definition.occ.attributes.n }} {% if mode == 'dataentry' and decs.record_list.record.indexing_annotation %} <div> <span>{{ texts.INDEXING_ANNOTATION }}:</span> <blockquote> {{ decs.record_list.record.indexing_annotation }} </blockquote> <div> {% endif %} {% if decs.record_list.record.synonym_list.synonym %} <div class="syn"> <span>{{ texts.SYNONYMS }}:</span> <ul> {% for syn in decs.record_list.record.synonym_list.synonym %} <li>{{ syn }} </li> {% endfor %} </ul> </div> {% endif %} <div class="syn"> <span>{{ texts.CATEGORIES }}:</span> <ul> {% for category in decs.record_list.record.tree_id_list.tree_id %} <li>{{ category }} </li> {% endfor %} </ul> </div> {% if mode == 'dataentry' and decs.record_list.record.pharmacological_action_list.pharmacological_action %} <div class="syn"> <span>{{ texts.PHARMACOLOGIAL_ACTION }}:</span> <ul> {% for pharmacological_action in decs.record_list.record.pharmacological_action_list.pharmacological_action %} <li>{{ pharmacological_action }} </li> {% endfor %} </ul> </div> {% endif %} {% if mode == 'dataentry' and decs.record_list.record.consider_also_terms_at %} <div> <span>{{ texts.CONSIDER_ALSO_TERMS }}:</span> <blockquote> {{ decs.record_list.record.consider_also_terms_at }} </blockquote> <div> {% endif %} {% if mode == 'dataentry' and decs.record_list.record.entry_combination_list.entry_combination %} <div> <span>{{ texts.PRECOORD }}:</span> <ul> {% for entry_combination in decs.record_list.record.entry_combination_list.entry_combination %} <li>/{{ attribute(texts, entry_combination.attributes.sh_abbr1) }} Use <strong>{{ entry_combination }}</strong> </li> {% endfor %} </ul> <div> {% endif %} {% if decs.record_list.record.see_related_list.see_related %} <div class="syn"> <span>{{ texts.RELATED }}:</span> <ul> {% for see_related in decs.record_list.record.see_related_list.see_related %} <li>{{ see_related }} </li> {% endfor %} </ul> </div> {% endif %} </div> {% endif %} {% if decs.record_list.record.allowable_qualifier_list.allowable_qualifier != '' %} <span>{{ texts.RESTRICT_BY_ASPECT }}:</span> <div class="qlf_box"> <ul> {% for qlf in decs.record_list.record.allowable_qualifier_list.allowable_qualifier %} <li> {% if mode is defined and mode == 'dataentry'%} <input type="button" name="qlf" class="qlf btn-custom" value="{{ qlf }}" id="{{ qlf }}" onclick="postMsg('{{ decs.tree.self.term_list.term }}/{{ attribute(texts, qlf) }}|^d{{ decs.record_list.record.attributes.mfn }}^s{{ qlf.attributes.id }}');" style="width: 30px" /> <a href="javascript:showQualifierInfo('{{qlf.attributes.id}}')">{{ attribute(texts, qlf) }}</a> {% else %} <input type="checkbox" name="qlf" class="qlf" value="{{ qlf }}" id="{{ qlf }}"/><label for="{{ qlf }}"> {{ attribute(texts, qlf) }}</label> {% endif %} </li> {% endfor %} <div class="spacer"></div> </ul> </div> {% endif %} </form> {% endif %} </div> {% endblock %}
html
Washington, Jan 15 (IANS) Describing US President Barack Obama's November trip to India as a full "embrace" of India as a great power and partner, US officials say the trip resulted in a great leap in their economic ties. It ". . . was an extraordinary trip, to India, where we fully embraced India's rise as a great power and a great partner for the United States," Obama's National Security Advisor Tom Donilon told reporters Friday ahead of next week's state visit of Chinese President Hu Jintao. The US engagement with both India and China was part of Obama administration's Asia policy "to get great power relationships right, with positive, cooperative and comprehensive relationships, as we are seeking with China, with great powers. " One piece of the US effort in Asia "is to engage rising countries in Asia, and that was on display I think in our work on the India-Indonesia trip. We really have deepened these relationships," Donilonn said. Making a distinction between Hu's Washington visit and Obama's New Delhi trip, he said: "The visit to India was the first visit by an American President to India since 2006, since March of 2006. " "There was an effort there where we were really trying to make really kind of a step function increase in the quality of the relationship and had a different set-it just had a different strategic dynamic to it. "Also, the-three days there in India, again, trying to build out each of the aspects of the relationship. It was a different project," Donilonn said. "Obviously, the commercial and economic relationship between those two countries is obviously fundamentally different," Press Secretary Robert Gibbs added. "And the investment that we saw in American companies represented a fairly decent-size leap in the type of economic relationship that we've had with the Indians in trying to put that on a bigger playing field in terms of its citizens. " Meanwhile, in a follow up to the Obama visit, 24 US businesses including Boeing, Lockheed Martin, GE Hitachi, Westinghouse are embarking on a mission to India to pitch their high tech ware from civil-nuclear to defence and civil aviation. Leading the Feb 6-11 business development mission to India will be US Commerce Secretary Gary Locke who accompanied Obama to India in November. More than $10 billion in business deals between US companies and Indian private sector and government entities, supporting 50,000 American jobs were signed during the Obama visit. Besides the aviation and nuclear power majors, other businesses joining the trade mission are based in 13 states across the country and more than half of them are small- and medium-sized companies, the US commerce department announced Friday. The delegation, which also includes senior officials from the Export-Import Bank (EX-IM) and the Trade Development Agency (TDA), will make stops in New Delhi, Mumbai and Bangalore. During the trip Locke will highlight export opportunities for US businesses in the advanced industrial sectors, of civil-nuclear trade, defence and security, civil aviation, and information and communication technologies.
english
Police in Northern Ireland said Monday they were looking into an unverified statement by an Irish Republican Army splinter group claiming responsibility for the shooting of a senior police officer. A statement purportedly from the dissident group known as the New IRA appeared on a wall in Londonderry late Sunday, claiming it was responsible for Wednesday's attack on Detective Chief Inspector John Caldwell. Two masked men shot Caldwell in front of his young son after the off-duty officer coached a children's soccer team in Omagh, about 60 miles west of Belfast. Caldwell remained in critical condition in hospital. Assistant Chief Constable Mark McEwan said Monday police were aware of the claim of responsibility and was "reviewing its contents as part of the overall investigation. " Police said last week they were treating the attempted murder of Caldwell as terrorism-related, and that the New IRA was its primary line of enquiry. Six men were detained for questioning. Paramilitary groups in Northern Ireland put down their arms after the 1998 Good Friday peace accord largely ended three decades of violent conflict, known as "the Troubles," between Irish republican and British loyalist groups and U. K. security forces. But small IRA splinter groups have continued to launch sporadic attacks on security forces. The last fatal attack on a police officer in Northern Ireland was the April 2011 killing of Constable Ronan Kerr, who died when a booby-trap bomb exploded under his car in Omagh.
english
THE TRICITY witnessed a foggy morning Saturday, which also resulted in cancellation of at least two flights two flights and led to delay in the operations of at least ten other flights. Officials said the weather would continue to remain dry for the next two days and morning fog was also likely till February 4. The visibility recorded by the MeT department at its Sector 39 office around 8:30 am hours was 150 metres and at the same time it was about 350 metres around the airport. While 50-200 metres is termed as dense fog, between 200 and 500 metres is considered moderate fog. Two flights from Delhi, of Alliance Air and Air India, which were expected to land around 7 am were cancelled due to the fog. PRO of the Chandigarh International Airport Limited Deepesh Joshi said at least 10 flights were delayed by at least one to three hours owing to the weather. The airport is expected to be equipped with CAT-II landing system and other infrastructure by March 31 because of which it will be able to remain operational at low visibility also. The maximum temperature during the day on Saturday was 20. 9 Degree Celsuis and visibility also improved as the day progressed. The night temperature during the Friday night was 6. 3 Degree Celsuis. Both the temperatures were normal. According to the MeT department, the weather in the region including Punjab, Haryana and Chandigarh for the next 2-3 days will remain mostly dry “in view of the passage of western disturbance eastwards across Western Himalaya. ” However, there could be a decline in the night temperature during the period. Due to another active western disturbance, the MeT department has forecast light rainfall in the region, including the Tricity from the night of February 4, “which will increase in intensity and distribution during 5- 7 February 2019 with moderate rainfall (2-4 cm) at many parts in Punjab, Haryana including Chandigarh. ” There could also be hailstorm or thundersquall during the period, officials said. “There will be decrease in the day temperature and increase in the minimum temperatures due to the precipitation. However, we expect the temperatures to rise from February 15 in accordance with the usual departure of winter season,” the official said. The day temperature in Chandigarh on Sunday is predicted to remain around 20 Degree Celsuis and also the minimum temperature will remain around 7-10 Degree Celsuis during the next two nights. “Mainly clear sky. Fog/Mist fog likely during morning,” the MeT department said in its forecast bulletin for Sunday. Meanwhile, the Chandigarh International Airport Limited (CHAIL) has decided to increase the timing forfree pick-up and drop of passengers by non-commercial vehicles from the existing eight minutes to 12 minutes, officials said on Saturday. The PRO of CHAIL, Deepesh Joshi told the Chandigarh Newsline that the CHAIL is itself managing the car parking facility at the airport till 6 February and after that it will be then again handed over to the contractor on February 07. “The 12 minutes free pick and drop is now available at the airport and it will be incorporated in the contract also,” Joshi said, adding that the rates for commercial vehicles will continue to remain as existing.
english
<filename>src/security/securityFilter.ts import { RequestHandler, Request, Response } from "express"; export default class SecurityFilter{ constructor() { } public checkAuth(req:Request, res:Response, next:Function):void { let isLogged:boolean = false; if (isLogged) { next(); } else { res .status(401) .json({ ok: false, msg: 'Login requierd' }); } } }
typescript
<filename>package.json { "name": "bitbox-scaffold-node", "version": "8.7.0", "description": "Basic command line node app w/ BITBOX bindings", "author": "<NAME> <<EMAIL>>", "engines": { "node": ">=10.15.3" }, "license": "MIT", "main": "index.js", "scripts": { "start": "node index.js", "test": "nyc --reporter=text mocha --require babel-core/register --timeout 5000", "coverage": "nyc report --reporter=text-lcov | coveralls", "coverage:report": "nyc --reporter=html mocha --require babel-core/register --timeout 5000" }, "repository": { "type": "git", "url": "git+https://github.com/Bitcoin-com/bitbox-scaffold-node.git" }, "bugs": { "url": "https://github.com/Bitcoin-com/bitbox-scaffold-node/issues" }, "homepage": "https://github.com/Bitcoin-com/bitbox-scaffold-node#readme", "devDependencies": { "bitbox-sdk": "8.7.0", "coveralls": "^3.0.2", "eslint": "^5.5.0", "eslint-config-prettier": "^3.0.1", "eslint-config-standard": "^12.0.0", "eslint-plugin-prettier": "^2.6.2", "eslint-plugin-promise": "^2.0.1", "eslint-plugin-standard": "^4.0.0", "node-mocks-http": "^1.7.0", "prettier": "^1.14.2", "supertest": "^2.0.0" }, "dependencies": { "mocha": "^5.2.0" } }
json
<reponame>lazyfatkid/advOs-MAPSnap package Node; public class SnapshotInfo { private int sentMessages; private int processedMessages; private int snapshotNumber; public SnapshotInfo() { this.sentMessages = 0; this.processedMessages = 0; this.snapshotNumber = 0; } public int getSentMessages() { return sentMessages; } public void incrementSentMessages() { this.sentMessages++; } public void incrementProcessedMessages() { this.processedMessages++; } public void incrementSnapshotNumber() { this.snapshotNumber++; } public int getProcessedMessages() { return processedMessages; } public int getSnapshotNumber() { return snapshotNumber; } }
java
<filename>package.json { "name": "nick-snyder-settings", "version": "1.0.0", "description": "A collection of system settings", "main": "index.js", "scripts": { "build": "zsh $PWD/config/build", "clean": "zsh $PWD/config/clean", "deploy": "npm run build; zsh $PWD/config/deploy", }, "repository": { "type": "git", "url": "git+https://github.com/ncksnydr/zsh-profiles.git" }, "author": "", "license": "UNLICENSED", "bugs": { "url": "https://github.com/ncksnydr/zsh-profiles/issues" }, "homepage": "https://github.com/ncksnydr/zsh-profiles#readme" }
json
Qatari World Cup organizers have apologized to a Danish television station whose live broadcast from a street in Doha was interrupted by security staff who threatened to break camera equipment. Journalists from the TV2 channel “were mistakenly interrupted” late on Tuesday evening, the Supreme Committee for Delivery & Legacy acknowledged in a statement. “Upon inspection of the crew’s valid tournament accreditation and filming permit, an apology was made to the broadcaster by on-site security before the crew resumed their activity,” organizers said. Reporter Rasmus Tantholdt was speaking live to a news anchor in Denmark when three men drove up behind him on an electric cart and tried to block the camera lens. The incident five days before the World Cup starts revisited a subject that has been sensitive for tournament organizers who have denied claims there are strict limits on where media can film in Qatar. Denmark’s soccer federation has also been one of the biggest critics of Qatar among the 32 World Cup teams over the emirate’s record on human rights and treatment of low-paid migrant workers. They were needed to build massive construction projects since FIFA picked Qatar as host in 2010. Danish players will wear game jerseys that have a toned down badge and manufacturers’ logo as a protest in support of labor rights when they play France, Australia and Tunisia in Group D. A third-choice black jersey option has been included as “the color of mourning,” for construction workers who have died in Qatar.
english
India has been supporting Swedish initiatives in the areas of anti-microbial resistance and alcohol abuse in various international fora including WHO. Sh. Azad informed the Swedish Minister of the National Task Force on Anti-Microbial Resistance set up by the Ministry which will help in formulating policies to check the spread of anti-microbial resistance. The two countries also decided to collaborate in the field of alcohol abuse. The Health &Family Welfare minister Sh. Ghulam Nabi Azad also flagged the issue of smokeless form of tobacco consumption, peculiar to India in the form of chewing tobacco and sought collaboration from Sweden in this area. A MoU between the two countries was signed in February 2009. In the last one year and a half, since the MoU came into existence, three Joint Working Group meetings- two in India and one in Geneva have been held. A very successful Indo-Swedish Health Week in the month of February 2010 was also celebrated.
english
<filename>src/screens/LocationScreen.js<gh_stars>0 import React from 'react'; import { ScrollView, StyleSheet, View, Linking, Text } from 'react-native'; import { Card, Button } from 'react-native-elements'; const LocationScreen = () => { // Business co-ordinates const lat = -33.85662400803782; const lng = 151.21527524042008; const scheme = Platform.select({ ios: 'maps:0,0?q=', android: 'geo:0,0?q=' }); const latLng = `${lat},${lng}`; const label = 'MYBIZ'; const url = Platform.select({ ios: `${scheme}${label}@${latLng}`, android: `${scheme}${latLng}(${label})` }); return ( <ScrollView> <Card title="ADDRESS" titleStyle={{ color: '#7f8989', fontFamily: 'quicksand-semibold-600' }} > <Text style={styles.heading}>MYBIZ</Text> <Text></Text> <Text style={styles.address}>Unit 1, Level 2</Text> <Text style={styles.address}>3 Main Street</Text> <Text style={styles.address}>Sydney NSW 2000</Text> <Text></Text> <Text style={styles.phone}>p: 1800 000 000</Text> <Text style={styles.phone}>e: <EMAIL></Text> <View style={styles.button}> <Button onPress={() => {Linking.openURL(url);}} title='GET DIRECTIONS' buttonStyle={{ backgroundColor: '#41aed5', fontFamily: 'quicksand-semibold-600' }} /> </View> </Card> </ScrollView> ) }; const styles = StyleSheet.create({ main: { backgroundColor: '#f0f6f6', flex: 1 }, heading: { fontWeight: 'bold', fontSize: 20, color: '#313e47', fontFamily: 'quicksand-semibold-600', }, address: { fontSize: 16, color: '#313e47', fontFamily: 'quicksand-semibold-600', }, phone: { fontSize: 16, fontWeight: 'bold', color: '#313e47', fontFamily: 'quicksand-semibold-600', }, button: { marginTop: 25, padding: 20 } }); export default LocationScreen;
javascript
<filename>src/config/attributes/card/cardMeta.json { "fa-card-meta/avatar": { "description": "avatar or icon", "optionType": "slot", "defaultValue": "-" }, "fa-card-meta/description": { "description": "description content", "optionType": "string|slot", "defaultValue": "-" }, "fa-card-meta/title": { "description": "title content", "optionType": "string|slot", "defaultValue": "-" } }
json